This source file includes following definitions.
- SetDemuxer
- GetDemuxer
- SetAudioRenderer
- GetAudioRenderer
- SetVideoRenderer
- GetVideoRenderer
- SetTextRenderer
- GetTextRenderer
#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();
}
}