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_AV_CODEC_CONTEXT_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_FFMPEG_AV_CODEC_CONTEXT_H_ |
6 #define SERVICES_MEDIA_FRAMEWORK_FFMPEG_AV_CODEC_CONTEXT_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_FFMPEG_AV_CODEC_CONTEXT_H_ |
7 | 7 |
8 #include "services/media/framework/stream_type.h" | 8 #include "services/media/framework/stream_type.h" |
9 extern "C" { | 9 extern "C" { |
10 #include "third_party/ffmpeg/libavformat/avformat.h" | 10 #include "third_party/ffmpeg/libavformat/avformat.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 struct AvCodecContext { | 25 struct AvCodecContext { |
26 static AvCodecContextPtr Create(const StreamType& stream_type); | 26 static AvCodecContextPtr Create(const StreamType& stream_type); |
27 | 27 |
28 static std::unique_ptr<StreamType> GetStreamType(const AVCodecContext& from); | 28 static std::unique_ptr<StreamType> GetStreamType(const AVCodecContext& from); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace media | 31 } // namespace media |
32 } // namespace mojo | 32 } // namespace mojo |
33 | 33 |
34 #endif // SERVICES_MEDIA_FRAMEWORK_FFMPEG_AV_CODEC_CONTEXT_H_ | 34 #endif // SERVICES_MEDIA_FRAMEWORK_FFMPEG_AV_CODEC_CONTEXT_H_ |
OLD | NEW |