[FFmpeg-devel] [PATCH] avformat/nut: add support for P010 pixel format
Michael Niedermayer
michael at niedermayer.cc
Wed Jun 2 18:07:14 EEST 2021
On Tue, Jun 01, 2021 at 07:02:39AM +0300, Valerii Zapodovnikov wrote:
> 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 }
these are not listed in https://git.ffmpeg.org/gitweb/nut.git/blob_plain/HEAD:/docs/nut4cc.txt
and i also see no suggestion to add them
how could anyone be interoperable with this without them being documented ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210602/ef49bcd5/attachment.sig>
More information about the ffmpeg-devel
mailing list