[FFmpeg-cvslog] Support fourcc YV16 (ticket 307).

ami_stuff git at videolan.org
Mon Jun 27 10:25:58 CEST 2011


ffmpeg | branch: master | ami_stuff <ami_stuff at o2.pl> | Mon Jun 27 09:40:53 2011 +0200| [90d475a9e7ecc03f9b3067a90225a9438ac84b9f] | committer: Carl Eugen Hoyos

Support fourcc YV16 (ticket 307).

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=90d475a9e7ecc03f9b3067a90225a9438ac84b9f
---

 libavcodec/raw.c    |    1 +
 libavcodec/rawdec.c |    1 +
 libavformat/riff.c  |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index 0bc04df..c44220e 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -36,6 +36,7 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
     { PIX_FMT_YUV411P, MKTAG('Y', '4', '1', 'B') },
     { PIX_FMT_YUV422P, MKTAG('Y', '4', '2', 'B') },
     { PIX_FMT_YUV422P, MKTAG('P', '4', '2', '2') },
+    { PIX_FMT_YUV422P, MKTAG('Y', 'V', '1', '6') },
     /* yuvjXXX formats are deprecated hacks specific to libav*,
        they are identical to yuvXXX  */
     { PIX_FMT_YUVJ420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 503351e..04aa51e 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -199,6 +199,7 @@ static int raw_decode(AVCodecContext *avctx,
         flip(avctx, picture);
 
     if (   avctx->codec_tag == MKTAG('Y', 'V', '1', '2')
+        || avctx->codec_tag == MKTAG('Y', 'V', '1', '6')
         || avctx->codec_tag == MKTAG('Y', 'V', 'U', '9'))
         FFSWAP(uint8_t *, picture->data[1], picture->data[2]);
 
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 544c29f..1213edd 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -171,6 +171,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
     { CODEC_ID_RAWVIDEO,     MKTAG('y', 'u', 'v', 's') },
     { CODEC_ID_RAWVIDEO,     MKTAG('P', '4', '2', '2') },
     { CODEC_ID_RAWVIDEO,     MKTAG('Y', 'V', '1', '2') },
+    { CODEC_ID_RAWVIDEO,     MKTAG('Y', 'V', '1', '6') },
     { CODEC_ID_RAWVIDEO,     MKTAG('U', 'Y', 'V', 'Y') },
     { CODEC_ID_RAWVIDEO,     MKTAG('V', 'Y', 'U', 'Y') },
     { CODEC_ID_RAWVIDEO,     MKTAG('I', 'Y', 'U', 'V') },



More information about the ffmpeg-cvslog mailing list