[FFmpeg-devel] [PATCH 1/2] avutil/pixfmt: Add AV_PIX_MAX_PLANES

Michael Niedermayer michael at niedermayer.cc
Fri Feb 16 19:11:00 EET 2024


On Fri, Feb 16, 2024 at 02:39:33PM +0100, Anton Khirnov wrote:
> Quoting Michael Niedermayer (2024-02-08 13:57:57)
> > It seems we do not have a named identifier for the maximum planes of pixel formats
> > 
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavutil/pixfmt.h | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
> > index 9c87571f49e..67422f02d02 100644
> > --- a/libavutil/pixfmt.h
> > +++ b/libavutil/pixfmt.h
> > @@ -32,6 +32,8 @@
> >  #define AVPALETTE_SIZE 1024
> >  #define AVPALETTE_COUNT 256
> >  
> > +#define AV_PIX_MAX_PLANES 4
> 
> I'd call it AV_VIDEO_MAX_PLANES.
> 
> Also, needs doxy,APIchanges, and minor bump.

ok, will apply with all that

[...]

thx

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct answer.
-------------- 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/20240216/472ae8e5/attachment.sig>


More information about the ffmpeg-devel mailing list