root/media/base/filter_collection.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. SetDemuxer
  2. GetDemuxer
  3. SetAudioRenderer
  4. GetAudioRenderer
  5. SetVideoRenderer
  6. GetVideoRenderer
  7. SetTextRenderer
  8. GetTextRenderer

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/base/filter_collection.h"

#include "media/base/audio_renderer.h"
#include "media/base/demuxer.h"
#include "media/base/text_renderer.h"
#include "media/base/video_renderer.h"

namespace media {

FilterCollection::FilterCollection() : demuxer_(NULL) {}

FilterCollection::~FilterCollection() {}

void FilterCollection::SetDemuxer(Demuxer* demuxer) {
  demuxer_ = demuxer;
}

Demuxer* FilterCollection::GetDemuxer() {
  return demuxer_;
}

void FilterCollection::SetAudioRenderer(
    scoped_ptr<AudioRenderer> audio_renderer) {
  audio_renderer_ = audio_renderer.Pass();
}

scoped_ptr<AudioRenderer> FilterCollection::GetAudioRenderer() {
  return audio_renderer_.Pass();
}

void FilterCollection::SetVideoRenderer(
    scoped_ptr<VideoRenderer> video_renderer) {
  video_renderer_ = video_renderer.Pass();
}

scoped_ptr<VideoRenderer> FilterCollection::GetVideoRenderer() {
  return video_renderer_.Pass();
}

void FilterCollection::SetTextRenderer(
    scoped_ptr<TextRenderer> text_renderer) {
  text_renderer_ = text_renderer.Pass();
}

scoped_ptr<TextRenderer> FilterCollection::GetTextRenderer() {
  return text_renderer_.Pass();
}

}  // namespace media

/* [<][>][^][v][top][bottom][index][help] */