| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_BASE_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_BASE_H_ |
| 6 #define SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_BASE_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_BASE_H_ |
| 7 | 7 |
| 8 #include "services/media/framework/parts/decoder.h" | 8 #include "services/media/framework/parts/decoder.h" |
| 9 #include "services/media/framework_ffmpeg/av_codec_context.h" |
| 9 #include "services/media/framework_ffmpeg/av_frame.h" | 10 #include "services/media/framework_ffmpeg/av_frame.h" |
| 10 #include "services/media/framework_ffmpeg/av_packet.h" | 11 #include "services/media/framework_ffmpeg/av_packet.h" |
| 11 #include "services/media/framework_ffmpeg/ffmpeg_type_converters.h" | |
| 12 extern "C" { | 12 extern "C" { |
| 13 #include "third_party/ffmpeg/libavcodec/avcodec.h" | 13 #include "third_party/ffmpeg/libavcodec/avcodec.h" |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace media { | 17 namespace media { |
| 18 | 18 |
| 19 // Abstract base class for ffmpeg-based decoders. | 19 // Abstract base class for ffmpeg-based decoders. |
| 20 class FfmpegDecoderBase : public Decoder { | 20 class FfmpegDecoderBase : public Decoder { |
| 21 public: | 21 public: |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 AvCodecContextPtr av_codec_context_; | 70 AvCodecContextPtr av_codec_context_; |
| 71 AVPacket av_packet_; | 71 AVPacket av_packet_; |
| 72 ffmpeg::AvFramePtr av_frame_ptr_; | 72 ffmpeg::AvFramePtr av_frame_ptr_; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace media | 75 } // namespace media |
| 76 } // namespace mojo | 76 } // namespace mojo |
| 77 | 77 |
| 78 #endif // SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_BASE_H_ | 78 #endif // SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_BASE_H_ |
| OLD | NEW |