| 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 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "media/base/video_decoder.h" | 14 #include "media/base/video_decoder.h" |
| 15 #include "media/base/video_decoder_config.h" | 15 #include "media/base/video_decoder_config.h" |
| 16 #include "media/base/video_frame_pool.h" | 16 #include "media/base/video_frame_pool.h" |
| 17 #include "media/ffmpeg/ffmpeg_deleters.h" | 17 #include "media/ffmpeg/ffmpeg_deleters.h" |
| 18 | 18 |
| 19 struct AVCodecContext; | 19 struct AVCodecContext; |
| 20 struct AVFrame; | 20 struct AVFrame; |
| 21 | 21 |
| 22 namespace base { | |
| 23 class SingleThreadTaskRunner; | |
| 24 } | |
| 25 | |
| 26 namespace media { | 22 namespace media { |
| 27 | 23 |
| 28 class DecoderBuffer; | 24 class DecoderBuffer; |
| 29 | 25 |
| 30 class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder { | 26 class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder { |
| 31 public: | 27 public: |
| 32 static bool IsCodecSupported(VideoCodec codec); | 28 static bool IsCodecSupported(VideoCodec codec); |
| 33 | 29 |
| 34 FFmpegVideoDecoder(); | 30 FFmpegVideoDecoder(); |
| 35 ~FFmpegVideoDecoder() override; | 31 ~FFmpegVideoDecoder() override; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 VideoFramePool frame_pool_; | 87 VideoFramePool frame_pool_; |
| 92 | 88 |
| 93 bool decode_nalus_; | 89 bool decode_nalus_; |
| 94 | 90 |
| 95 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); | 91 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); |
| 96 }; | 92 }; |
| 97 | 93 |
| 98 } // namespace media | 94 } // namespace media |
| 99 | 95 |
| 100 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ | 96 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ |
| OLD | NEW |