| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Implements the Demuxer interface using FFmpeg's libavformat. At this time | 5 // Implements the Demuxer interface using FFmpeg's libavformat. At this time |
| 6 // will support demuxing any audio/video format thrown at it. The streams | 6 // will support demuxing any audio/video format thrown at it. The streams |
| 7 // output mime types audio/x-ffmpeg and video/x-ffmpeg and include an integer | 7 // output mime types audio/x-ffmpeg and video/x-ffmpeg and include an integer |
| 8 // key FFmpegCodecID which contains the CodecID enumeration value. The CodecIDs | 8 // key FFmpegCodecID which contains the CodecID enumeration value. The CodecIDs |
| 9 // can be used to create and initialize the corresponding FFmpeg decoder. | 9 // can be used to create and initialize the corresponding FFmpeg decoder. |
| 10 // | 10 // |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 bool audio_disabled_; | 246 bool audio_disabled_; |
| 247 | 247 |
| 248 // Whether text streams have been enabled for this demuxer. | 248 // Whether text streams have been enabled for this demuxer. |
| 249 bool text_enabled_; | 249 bool text_enabled_; |
| 250 | 250 |
| 251 // Set if we know duration of the audio stream. Used when processing end of | 251 // Set if we know duration of the audio stream. Used when processing end of |
| 252 // stream -- at this moment we definitely know duration. | 252 // stream -- at this moment we definitely know duration. |
| 253 bool duration_known_; | 253 bool duration_known_; |
| 254 | 254 |
| 255 // FFmpegURLProtocol implementation and corresponding glue bits. | 255 // FFmpegURLProtocol implementation and corresponding glue bits. |
| 256 BlockingUrlProtocol url_protocol_; | 256 scoped_ptr<BlockingUrlProtocol> url_protocol_; |
| 257 scoped_ptr<FFmpegGlue> glue_; | 257 scoped_ptr<FFmpegGlue> glue_; |
| 258 | 258 |
| 259 const NeedKeyCB need_key_cb_; | 259 const NeedKeyCB need_key_cb_; |
| 260 | 260 |
| 261 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); | 261 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 } // namespace media | 264 } // namespace media |
| 265 | 265 |
| 266 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ | 266 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ |
| OLD | NEW |