Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: services/media/framework_ffmpeg/av_codec_context.h

Issue 1923763002: Motown: Ffmpeg video decoder (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Minor fixes per feedback. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/media/framework_ffmpeg/av_codec_context.h
diff --git a/services/media/framework_ffmpeg/av_codec_context.h b/services/media/framework_ffmpeg/av_codec_context.h
index 0a552981175c4a5d8a4d1243ce268e2cda44c11e..f3506cf6c63d0774fd9fd2d088aa1c70c666768c 100644
--- a/services/media/framework_ffmpeg/av_codec_context.h
+++ b/services/media/framework_ffmpeg/av_codec_context.h
@@ -11,6 +11,9 @@ extern "C" {
#include "third_party/ffmpeg/libavformat/avformat.h"
}
+// Ffmeg defines this...undefine.
+#undef PixelFormat
+
namespace mojo {
namespace media {
@@ -29,6 +32,14 @@ struct AvCodecContext {
static std::unique_ptr<StreamType> GetStreamType(const AVCodecContext& from);
};
+// Converts an AVPixelFormat to a PixelFormat.
+VideoStreamType::PixelFormat PixelFormatFromAVPixelFormat(
+ AVPixelFormat av_pixel_format);
+
+// Converts a PixelFormat to an AVPixelFormat.
+AVPixelFormat AVPixelFormatFromPixelFormat(
+ VideoStreamType::PixelFormat pixel_format);
+
} // namespace media
} // namespace mojo
« no previous file with comments | « services/media/framework/types/video_stream_type.cc ('k') | services/media/framework_ffmpeg/av_codec_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698