[FFmpeg-devel] [PATCH] avformat/nut: add support for P010 pixel format
Valerii Zapodovnikov
val.zapod.vz at gmail.com
Tue Jun 1 07:02:39 EEST 2021
This is used for dshow, though may be swapped endianness there.
Fixes #8454. fate-pixdesc-p010le and be will have to be updated.
---
libavcodec/raw.c | 3 +++
libavformat/nut.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index 079d5c5d10..7efc0156ca 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -224,6 +224,9 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
{ AV_PIX_FMT_BAYER_GRBG16LE, MKTAG(0xBA, 'G', 'R', 16 ) },
{ AV_PIX_FMT_BAYER_GRBG16BE, MKTAG(16, 'R', 'G', 0xBA) },
+ { AV_PIX_FMT_P010LE, MKTAG('P', '0', '1', '0') },
+ { AV_PIX_FMT_P010BE, MKTAG('0', '1', '0', 'P') },
+
/* quicktime */
{ AV_PIX_FMT_YUV420P, MKTAG('R', '4', '2', '0') }, /* Radius DV YUV PAL */
{ AV_PIX_FMT_YUV411P, MKTAG('R', '4', '1', '1') }, /* Radius DV YUV NTSC */
diff --git a/libavformat/nut.c b/libavformat/nut.c
index 47ed152529..c69a9ab6ad 100644
--- a/libavformat/nut.c
+++ b/libavformat/nut.c
@@ -205,6 +205,9 @@ const AVCodecTag ff_nut_video_tags[] = {
{ AV_CODEC_ID_RAWVIDEO, MKTAG(0xBA, 'G', 'R', 16 ) },
{ AV_CODEC_ID_RAWVIDEO, MKTAG(16, 'R', 'G', 0xBA) },
+ { AV_CODEC_ID_RAWVIDEO, MKTAG('P', '0', '1', '0') },
+ { AV_CODEC_ID_RAWVIDEO, MKTAG('0', '1', '0', 'P') },
+
{ AV_CODEC_ID_NONE, 0 }
};
--
2.30.2
More information about the ffmpeg-devel
mailing list