Mercurial > libavutil.hg
diff pixdesc.h @ 827:f01765adeb5c libavutil
Implement av_get_pix_fmt(), and deprecate avcodec_get_pix_fmt().
author | stefano |
---|---|
date | Sat, 30 Jan 2010 18:50:00 +0000 |
parents | 7044a7c771b6 |
children | bd84e0b5d422 |
line wrap: on
line diff
--- a/pixdesc.h Fri Jan 29 03:26:17 2010 +0000 +++ b/pixdesc.h Sat Jan 30 18:50:00 2010 +0000 @@ -203,6 +203,19 @@ } /** + * Returns the pixel format corresponding to name. + * + * If there is no pixel format with name name, then looks for a + * pixel format with the name corresponding to the native endian + * format of name. + * For example in a little-endian system, first looks for "gray16", + * then for "gray16le". + * + * Finally if no pixel format has been found, returns PIX_FMT_NONE. + */ +enum PixelFormat av_get_pix_fmt(const char *name); + +/** * Returns the number of bits per pixel used by the pixel format * described by pixdesc. *