[FFmpeg-devel] [PATCH v2 2/3] avutil: add RGBF16 pix_fmt

Michael Niedermayer michael at niedermayer.cc
Mon Oct 14 01:45:53 EEST 2024


On Sun, Oct 13, 2024 at 08:03:56PM +0200, Martin Schitter wrote:
> ---
>  libavutil/pixdesc.c              | 25 +++++++++++++++++++++++++
>  libavutil/pixfmt.h               |  4 ++++
>  libavutil/version.h              |  2 +-
>  tests/ref/fate/imgutils          |  4 ++++
>  tests/ref/fate/sws-pixdesc-query | 11 +++++++++++
>  5 files changed, 45 insertions(+), 1 deletion(-)
> 
[...]
> diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
> index 3caa183..4efc4cb 100644
> --- a/libavutil/pixfmt.h
> +++ b/libavutil/pixfmt.h
> @@ -400,6 +400,9 @@ enum AVPixelFormat {
>  
>      AV_PIX_FMT_VUYA,        ///< packed VUYA 4:4:4:4, 32bpp (1 Cr & Cb sample per 1x1 Y & A samples), VUYAVUYA...
>  
> +    AV_PIX_FMT_RGBF16BE,    ///< IEEE-754 half precision packed RGB 16:16:16, 48bpp, RGBRGB..., big-endian
> +    AV_PIX_FMT_RGBF16LE,    ///< IEEE-754 half precision packed RGB 16:16:16, 48bpp, RGBRGB..., little-endian
> +
>      AV_PIX_FMT_RGBAF16BE,   ///< IEEE-754 half precision packed RGBA 16:16:16:16, 64bpp, RGBARGBA..., big-endian
>      AV_PIX_FMT_RGBAF16LE,   ///< IEEE-754 half precision packed RGBA 16:16:16:16, 64bpp, RGBARGBA..., little-endian

this would change the values of AV_PIX_FMT_RGBAF16BE and later
which would break ABI

new values have to be added so nothing changes (that generally means adding them
before AV_PIX_FMT_NB, but sometimes soms enums have fixed entries before
which additions are possible)

thx

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

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- 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/20241014/633c024e/attachment.sig>


More information about the ffmpeg-devel mailing list