[FFmpeg-devel] [PATCH v12 3/9] avutil/swscale: add YUV444F16 and UYVYF16 pixel format and input support

Michael Niedermayer michael at niedermayer.cc
Tue Oct 22 01:30:42 EEST 2024


On Mon, Oct 21, 2024 at 09:57:16PM +0200, Martin Schitter wrote:
> ---
>  libavutil/pixdesc.c              | 48 ++++++++++++++++
>  libavutil/pixfmt.h               |  6 ++
>  libswscale/input.c               | 99 ++++++++++++++++++++++++++++++++
>  libswscale/utils.c               |  4 ++
>  tests/ref/fate/imgutils          |  8 +++
>  tests/ref/fate/sws-pixdesc-query | 14 +++++
>  6 files changed, 179 insertions(+)
[...]

> diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
> index fde8dbb..67f568f 100644
> --- a/libavutil/pixfmt.h
> +++ b/libavutil/pixfmt.h
> @@ -460,9 +460,13 @@ enum AVPixelFormat {
>      AV_PIX_FMT_YUV444,      ///< packed YUV 4:4:4, 24bpp (1 Cr & Cb sample per 1x1 Y), YUVYUV...
>      AV_PIX_FMT_YUV444_16BE,  ///< packed YUV 4:4:4, 48bpp (1 Cr & Cb sample per 1x1 Y), YUVYUV..., big-endian
>      AV_PIX_FMT_YUV444_16LE,  ///< packed YUV 4:4:4, 48bpp (1 Cr & Cb sample per 1x1 Y), YUVYUV..., little-endian
> +    AV_PIX_FMT_YUV444F16BE,  ///< IEEE-754 half precision packed YUV 4:4:4, 48bpp (1 Cr & Cb sample per 1x1 Y), YUVYUV..., big-endian
> +    AV_PIX_FMT_YUV444F16LE,  ///< IEEE-754 half precision packed YUV 4:4:4, 48bpp (1 Cr & Cb sample per 1x1 Y), YUVYUV..., little-endian
>  
>      AV_PIX_FMT_UYVY422_16BE, ///< packed UYVU 4:2:2, 32bpp, Cb Y0 Cr Y1, big-endian
>      AV_PIX_FMT_UYVY422_16LE, ///< packed UYVU 4:2:2, 32bpp, Cb Y0 Cr Y1, little-endian

adding them in the middle will change the numbers of the following and break ABI
sadly

you have to add them at the end

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- 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/20241022/e0bf770c/attachment.sig>


More information about the ffmpeg-devel mailing list