| 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 #ifndef MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| 6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace media { | 22 namespace media { |
| 23 | 23 |
| 24 class DecoderBuffer; | 24 class DecoderBuffer; |
| 25 | 25 |
| 26 class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder { | 26 class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder { |
| 27 public: | 27 public: |
| 28 static bool IsCodecSupported(VideoCodec codec); | 28 static bool IsCodecSupported(VideoCodec codec); |
| 29 | 29 |
| 30 FFmpegVideoDecoder(); | 30 FFmpegVideoDecoder(); |
| 31 explicit FFmpegVideoDecoder( |
| 32 std::unique_ptr<VideoFrameProvider> video_frame_provider); |
| 31 ~FFmpegVideoDecoder() override; | 33 ~FFmpegVideoDecoder() override; |
| 32 | 34 |
| 33 // Allow decoding of individual NALU. Entire frames are required by default. | 35 // Allow decoding of individual NALU. Entire frames are required by default. |
| 34 // Disables low-latency mode. Must be called before Initialize(). | 36 // Disables low-latency mode. Must be called before Initialize(). |
| 35 void set_decode_nalus(bool decode_nalus) { decode_nalus_ = decode_nalus; } | 37 void set_decode_nalus(bool decode_nalus) { decode_nalus_ = decode_nalus; } |
| 36 | 38 |
| 37 // VideoDecoder implementation. | 39 // VideoDecoder implementation. |
| 38 std::string GetDisplayName() const override; | 40 std::string GetDisplayName() const override; |
| 39 void Initialize(const VideoDecoderConfig& config, | 41 void Initialize(const VideoDecoderConfig& config, |
| 40 bool low_delay, | 42 bool low_delay, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 VideoFramePool frame_pool_; | 89 VideoFramePool frame_pool_; |
| 88 | 90 |
| 89 bool decode_nalus_; | 91 bool decode_nalus_; |
| 90 | 92 |
| 91 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); | 93 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 } // namespace media | 96 } // namespace media |
| 95 | 97 |
| 96 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 98 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| OLD | NEW |