| 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/ffmpeg_type_converters.h" | 9 #include "services/media/framework_ffmpeg/av_codec_context.h" |
| 10 extern "C" { | 10 extern "C" { |
| 11 #include "third_party/ffmpeg/libavcodec/avcodec.h" | 11 #include "third_party/ffmpeg/libavcodec/avcodec.h" |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 namespace media { | 15 namespace media { |
| 16 | 16 |
| 17 // Abstract base class for ffmpeg-based decoders. | 17 // Abstract base class for ffmpeg-based decoders. |
| 18 class FfmpegDecoderBase : public Decoder { | 18 class FfmpegDecoderBase : public Decoder { |
| 19 public: | 19 public: |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 AvCodecContextPtr av_codec_context_; | 76 AvCodecContextPtr av_codec_context_; |
| 77 AVPacket av_packet_; | 77 AVPacket av_packet_; |
| 78 AvFramePtr av_frame_ptr_; | 78 AvFramePtr av_frame_ptr_; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace media | 81 } // namespace media |
| 82 } // namespace mojo | 82 } // namespace mojo |
| 83 | 83 |
| 84 #endif // SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_BASE_H_ | 84 #endif // SERVICES_MEDIA_FRAMEWORK_FFMPEG_FFMPEG_DECODER_BASE_H_ |
| OLD | NEW |