OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/base/filters.h" | 5 #include "media/base/filters.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 void MediaFilter::OnAudioRendererDisabled() { | 87 void MediaFilter::OnAudioRendererDisabled() { |
88 } | 88 } |
89 | 89 |
90 MediaFilter::~MediaFilter() {} | 90 MediaFilter::~MediaFilter() {} |
91 | 91 |
92 bool DataSource::IsUrlSupported(const std::string& url) { | 92 bool DataSource::IsUrlSupported(const std::string& url) { |
93 return true; | 93 return true; |
94 } | 94 } |
95 | 95 |
96 FilterType DataSource::filter_type() const { | |
97 return static_filter_type(); | |
98 } | |
99 | |
100 FilterType Demuxer::filter_type() const { | |
101 return static_filter_type(); | |
102 } | |
103 | |
104 bool Demuxer::requires_message_loop() const { | 96 bool Demuxer::requires_message_loop() const { |
105 return true; | 97 return true; |
106 } | 98 } |
107 | 99 |
108 const char* Demuxer::message_loop_name() const { | 100 const char* Demuxer::message_loop_name() const { |
109 return "DemuxerThread"; | 101 return "DemuxerThread"; |
110 } | 102 } |
111 | 103 |
112 FilterType AudioDecoder::filter_type() const { | |
113 return static_filter_type(); | |
114 } | |
115 | |
116 const char* AudioDecoder::major_mime_type() const { | 104 const char* AudioDecoder::major_mime_type() const { |
117 return mime_type::kMajorTypeAudio; | 105 return mime_type::kMajorTypeAudio; |
118 } | 106 } |
119 | 107 |
120 bool AudioDecoder::requires_message_loop() const { | 108 bool AudioDecoder::requires_message_loop() const { |
121 return true; | 109 return true; |
122 } | 110 } |
123 | 111 |
124 const char* AudioDecoder::message_loop_name() const { | 112 const char* AudioDecoder::message_loop_name() const { |
125 return "AudioDecoderThread"; | 113 return "AudioDecoderThread"; |
126 } | 114 } |
127 | 115 |
128 FilterType AudioRenderer::filter_type() const { | |
129 return static_filter_type(); | |
130 } | |
131 | |
132 const char* AudioRenderer::major_mime_type() const { | 116 const char* AudioRenderer::major_mime_type() const { |
133 return mime_type::kMajorTypeAudio; | 117 return mime_type::kMajorTypeAudio; |
134 } | 118 } |
135 | 119 |
136 FilterType VideoDecoder::filter_type() const { | |
137 return static_filter_type(); | |
138 } | |
139 | |
140 const char* VideoDecoder::major_mime_type() const { | 120 const char* VideoDecoder::major_mime_type() const { |
141 return mime_type::kMajorTypeVideo; | 121 return mime_type::kMajorTypeVideo; |
142 } | 122 } |
143 | 123 |
144 bool VideoDecoder::requires_message_loop() const { | 124 bool VideoDecoder::requires_message_loop() const { |
145 return true; | 125 return true; |
146 } | 126 } |
147 | 127 |
148 const char* VideoDecoder::message_loop_name() const { | 128 const char* VideoDecoder::message_loop_name() const { |
149 return "VideoDecoderThread"; | 129 return "VideoDecoderThread"; |
150 } | 130 } |
151 | 131 |
152 FilterType VideoRenderer::filter_type() const { | |
153 return static_filter_type(); | |
154 } | |
155 | |
156 const char* VideoRenderer::major_mime_type() const { | 132 const char* VideoRenderer::major_mime_type() const { |
157 return mime_type::kMajorTypeVideo; | 133 return mime_type::kMajorTypeVideo; |
158 } | 134 } |
159 | 135 |
160 DemuxerStream::~DemuxerStream() {} | 136 DemuxerStream::~DemuxerStream() {} |
161 | 137 |
162 VideoDecoder::VideoDecoder() {} | 138 VideoDecoder::VideoDecoder() {} |
163 | 139 |
164 VideoDecoder::~VideoDecoder() {} | 140 VideoDecoder::~VideoDecoder() {} |
165 | 141 |
166 AudioDecoder::AudioDecoder() {} | 142 AudioDecoder::AudioDecoder() {} |
167 | 143 |
168 AudioDecoder::~AudioDecoder() {} | 144 AudioDecoder::~AudioDecoder() {} |
169 | 145 |
170 } // namespace media | 146 } // namespace media |
OLD | NEW |