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

Stefano Sabatini stefano.sabatini-lala
Sat May 26 15:36:49 CEST 2007


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?

Kind regards
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)




More information about the ffmpeg-devel mailing list