[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:32:36 EEST 2024


On Tue, Oct 22, 2024 at 12:30:42AM +0200, Michael Niedermayer wrote:
> 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

I see you added these in the previous patch of the series, i guess its ok then

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- 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/17b861a9/attachment.sig>


More information about the ffmpeg-devel mailing list