[FFmpeg-devel] [PATCH] List supported pixel formats

Michael Niedermayer michaelni
Mon May 28 01:08:13 CEST 2007


Hi

On Sat, May 26, 2007 at 03:36:49PM +0200, Stefano Sabatini wrote:
> Hi.
> 
> On date Friday 2007-05-25 19:45:43 +0200, Michael Niedermayer encoded:
> > Hi
> > 
> > On Fri, May 25, 2007 at 05:46:35PM +0200, Stefano Sabatini wrote:
> > > Hi dear ffmpeg developers.
> > > 
> > > This patch is based on a patch recently posted by Panagiotis (see
> > > "List compiled in codecs"), and applies the same functionality and
> > > interface to -pix_fmt.
> > > 
> > > In order to get ffmpeg able to list the pixel formats the patch does what follows:
> > > 
> > > * move the PixFmtInfo structure definition from
> > >   libavcodec/imgconvert.c to libavcodec/avcodec.h
> > > 
> > > * declare as extern in avcodec.h the structure pix_fmt_info containing
> > >   all the pixel formats infos.
> > 
> > rejected this struct array is unfit to be exported like that
> > adding a field to the struct would break compatibility ...
> 
> Got it.
> 
> What about to define a list_pix_fmts() function in
> libavcodec/imgconvert.c and export its interface in
> libavcodec/avcodec.h?

hmm, maybe outputing a string similar to avcodec_string() would
be more flexible ...

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

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070528/48f059e6/attachment.pgp>



More information about the ffmpeg-devel mailing list