From c5cf98d77eede9bc759c1ded6a927fe1e89bc2f5 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 7 Oct 2024 14:10:13 -0300 Subject: [PATCH] avformat/movenc: add support for V30X pixel format Signed-off-by: James Almer --- libavformat/isom_tags.c | 1 + libavformat/movenc.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libavformat/isom_tags.c b/libavformat/isom_tags.c index 1605a669d3..5b3b859d37 100644 --- a/libavformat/isom_tags.c +++ b/libavformat/isom_tags.c @@ -35,6 +35,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = { { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2VUY but byte-swapped */ { AV_CODEC_ID_RAWVIDEO, MKTAG('v', '3', '0', '8') }, /* uncompressed 8-bit 4:4:4 */ { AV_CODEC_ID_RAWVIDEO, MKTAG('v', '4', '0', '8') }, /* uncompressed 8-bit 4:4:4:4 */ + { AV_CODEC_ID_RAWVIDEO, MKTAG('v', '4', '1', '0') }, /* uncompressed 10-bit 4:4:4 */ { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '5', '5') }, { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '6', '5') }, diff --git a/libavformat/movenc.c b/libavformat/movenc.c index cf1d0a3758..d54510a3de 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1881,6 +1881,7 @@ static const struct { { AV_PIX_FMT_UYVY422, MKTAG('2','v','u','y'), 0 }, { AV_PIX_FMT_VYU444, MKTAG('v','3','0','8'), 0 }, { AV_PIX_FMT_UYVA, MKTAG('v','4','0','8'), 0 }, + { AV_PIX_FMT_V30XLE, MKTAG('v','4','1','0'), 0 }, { AV_PIX_FMT_RGB555BE,MKTAG('r','a','w',' '), 16 }, { AV_PIX_FMT_RGB555LE,MKTAG('L','5','5','5'), 16 }, { AV_PIX_FMT_RGB565LE,MKTAG('L','5','6','5'), 16 }, @@ -2616,6 +2617,7 @@ static int mov_write_video_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex || (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_YUYV422) || (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_VYU444) || (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_UYVA) + || (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_V30X) || track->par->codec_id == AV_CODEC_ID_V308 || track->par->codec_id == AV_CODEC_ID_V408 || track->par->codec_id == AV_CODEC_ID_V410