[FFmpeg-cvslog] avformat/movenc: add support for VYU444 pixel format

James Almer git at videolan.org
Sat Oct 12 18:02:18 EEST 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Oct  7 00:23:31 2024 -0300| [12fc35824989e936f6df57c4a9bf81ce60351eff] | committer: James Almer

avformat/movenc: add support for VYU444 pixel format

Signed-off-by: James Almer <jamrial at gmail.com>

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

 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 836bf14b80..1605a669d3 100644
--- a/libavformat/isom_tags.c
+++ b/libavformat/isom_tags.c
@@ -33,6 +33,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = {
     { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* uncompressed YUV422 */
     { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* uncompressed 8-bit 4:2:2 */
     { 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('L', '5', '5', '5') },
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 9d525c66b4..cf1d0a3758 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1879,6 +1879,7 @@ static const struct {
     { AV_PIX_FMT_YUYV422, MKTAG('y','u','v','2'),  0 },
     { AV_PIX_FMT_YUYV422, MKTAG('y','u','v','s'),  0 },
     { 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_RGB555BE,MKTAG('r','a','w',' '), 16 },
     { AV_PIX_FMT_RGB555LE,MKTAG('L','5','5','5'), 16 },
@@ -2613,6 +2614,7 @@ static int mov_write_video_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
 
     int uncompressed_ycbcr = ((track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_UYVY422)
                            || (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_V308
                            ||  track->par->codec_id == AV_CODEC_ID_V408



More information about the ffmpeg-cvslog mailing list