[FFmpeg-devel] [PATCH] Use pixdesc for avcodec_get_pix_fmt_name()

Michael Niedermayer michaelni
Wed Nov 25 12:38:13 CET 2009


On Wed, Nov 25, 2009 at 01:49:45AM +0100, Stefano Sabatini wrote:
> On date Monday 2009-11-09 15:41:02 +0100, Michael Niedermayer encoded:
> > On Sat, Nov 07, 2009 at 05:28:05PM +0100, Stefano Sabatini wrote:
> > > Hi,
> > > 
> > > this requires anyway the pixdesc.c compilation.
> > > 
> > > Also the names in pixdesc are defined consistently using the enum
> > > name, while currently pix_fmt_info uses different names.
> > > 
> > > The differences are:
> > > 
> > > pix_fmt_info -> av_pix_fmt_descriptors
> > > ======================================
> > > monow        -> monowhite
> > > monob        -> monoblack
> > > xvmcmc       -> xvmc_mpeg2_mc
> > > xvmcidct     -> xvmc_mpeg2_idct
> > > 
> > > I'm not very fond of arbitrary name contractions so I'd prefer to
> > > keep the pixdesc variants and use some backward-compatible mechanism
> > > and drop the old variant at the next major bump.
> > 

> > your patch breaks backward-compatibility

> 
> Updated (also I forgot gray -> gray8).
> 
> The test I attached for reference issues this:
> pix_fmt_info name:gray != av_pix_fmt_descriptors name:gray8
> pix_fmt_info name:monow != av_pix_fmt_descriptors name:monowhite
> pix_fmt_info name:monob != av_pix_fmt_descriptors name:monoblack
> pix_fmt_info name:xvmcmc != av_pix_fmt_descriptors name:xvmc_mpeg2_mc
> pix_fmt_info name:xvmcidct != av_pix_fmt_descriptors name:xvmc_mpeg2_idct

so it still break compatibility
patch rejected

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

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091125/aa678272/attachment.pgp>



More information about the ffmpeg-devel mailing list