diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-01-12 00:48:29 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-01-12 00:48:29 +0000 |
commit | a33c7159e1630ecef81c71e3f2624f09e7d2a413 (patch) | |
tree | c7bac0bfca57bc616a25aa6e0e02f43a16545587 /libavcodec/avcodec.h | |
parent | 2a006cd3968461455c8d15640f8cec38ddfc97bb (diff) | |
download | ffmpeg-a33c7159e1630ecef81c71e3f2624f09e7d2a413.tar.gz |
get_format()
Originally committed as revision 1451 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 2b36aeb8c1..72d6d32efb 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -923,6 +923,16 @@ typedef struct AVCodecContext { */ 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 { |