Mercurial > libavcodec.hg
diff avcodec.h @ 998:6129c88a6393 libavcodec
get_format()
author | michaelni |
---|---|
date | Sun, 12 Jan 2003 00:48:29 +0000 |
parents | 2fabb7d709e7 |
children | ef905ded19fe |
line wrap: on
line diff
--- a/avcodec.h Sat Jan 11 22:32:56 2003 +0000 +++ b/avcodec.h Sun Jan 12 00:48:29 2003 +0000 @@ -923,6 +923,16 @@ */ int me_subpel_quality; + /** + * callback to negotiate the pixelFormat + * @param fmt is the list of formats which are supported by the codec, + * its terminated by -1 as 0 is a valid format, the formats are ordered by quality + * the first is allways the native one + * @return the choosen format + * encoding: unused + * decoding: set by user, if not set then the native format will always be choosen + */ + enum PixelFormat (*get_format)(struct AVCodecContext *s, enum PixelFormat * fmt); } AVCodecContext; typedef struct AVCodec {