[FFmpeg-cvslog] lavc/x264: Support bgr0 as input pix_fmt.
Carl Eugen Hoyos
git at videolan.org
Thu May 28 14:39:25 CEST 2015
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu May 28 12:34:22 2015 +0200| [4792fb94098cf47bd8caf9b3a9795c666bae2220] | committer: Carl Eugen Hoyos
lavc/x264: Support bgr0 as input pix_fmt.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4792fb94098cf47bd8caf9b3a9795c666bae2220
---
libavcodec/libx264.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 82c4f2e..9020a40 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -148,6 +148,7 @@ static int avfmt2_num_planes(int avfmt)
case AV_PIX_FMT_YUV444P:
return 3;
+ case AV_PIX_FMT_BGR0:
case AV_PIX_FMT_BGR24:
case AV_PIX_FMT_RGB24:
return 1;
@@ -346,6 +347,8 @@ static int convert_pix_fmt(enum AVPixelFormat pix_fmt)
case AV_PIX_FMT_YUV444P9:
case AV_PIX_FMT_YUV444P10: return X264_CSP_I444;
#ifdef X264_CSP_BGR
+ case AV_PIX_FMT_BGR0:
+ return X264_CSP_BGRA;
case AV_PIX_FMT_BGR24:
return X264_CSP_BGR;
@@ -750,6 +753,7 @@ static const enum AVPixelFormat pix_fmts_10bit[] = {
};
static const enum AVPixelFormat pix_fmts_8bit_rgb[] = {
#ifdef X264_CSP_BGR
+ AV_PIX_FMT_BGR0,
AV_PIX_FMT_BGR24,
AV_PIX_FMT_RGB24,
#endif
More information about the ffmpeg-cvslog
mailing list