[FFmpeg-cvslog] avcodec/magicyuv: add support for recently added YUV444P10
Paul B Mahol
git at videolan.org
Thu Jul 11 17:56:10 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jul 11 16:53:09 2019 +0200| [2601eef850f1ec37fdcc6f36c89eeb1d361de348] | committer: Paul B Mahol
avcodec/magicyuv: add support for recently added YUV444P10
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2601eef850f1ec37fdcc6f36c89eeb1d361de348
---
libavcodec/magicyuv.c | 7 +++++++
libavformat/isom.c | 1 +
libavformat/riff.c | 1 +
3 files changed, 9 insertions(+)
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
index 1a129c2619..f4fb2a7809 100644
--- a/libavcodec/magicyuv.c
+++ b/libavcodec/magicyuv.c
@@ -592,6 +592,13 @@ static int magy_decode_frame(AVCodecContext *avctx, void *data,
s->magy_decode_slice = magy_decode_slice10;
s->bps = 10;
break;
+ case 0x76:
+ avctx->pix_fmt = AV_PIX_FMT_YUV444P10;
+ s->max = 1024;
+ s->huff_build = huff_build10;
+ s->magy_decode_slice = magy_decode_slice10;
+ s->bps = 10;
+ break;
case 0x6d:
avctx->pix_fmt = AV_PIX_FMT_GBRP10;
s->decorrelate = 1;
diff --git a/libavformat/isom.c b/libavformat/isom.c
index 6129e61d7e..c4880878c1 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -290,6 +290,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = {
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '0', 'R', 'A') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '0', 'R', 'G') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '0', 'Y', '2') },
+ { AV_CODEC_ID_MAGICYUV, MKTAG('M', '0', 'Y', '4') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '8', 'R', 'G') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '8', 'R', 'A') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '8', 'G', '0') },
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 56387916f2..e755ad8d5f 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -454,6 +454,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '0', 'R', 'G') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '0', 'G', '0') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '0', 'Y', '2') },
+ { AV_CODEC_ID_MAGICYUV, MKTAG('M', '0', 'Y', '4') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '2', 'R', 'A') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', '2', 'R', 'G') },
{ AV_CODEC_ID_YLC, MKTAG('Y', 'L', 'C', '0') },
More information about the ffmpeg-cvslog
mailing list