Mercurial > libavcodec.hg
comparison avcodec.h @ 11059:e1bc53867092 libavcodec
Implement av_get_pix_fmt(), and deprecate avcodec_get_pix_fmt().
| author | stefano |
|---|---|
| date | Sat, 30 Jan 2010 18:50:00 +0000 |
| parents | dcb38ea8dad0 |
| children | 91b1e4327340 |
comparison
equal
deleted
inserted
replaced
| 11058:af4b724b99d5 | 11059:e1bc53867092 |
|---|---|
| 2993 int avpicture_get_size(enum PixelFormat pix_fmt, int width, int height); | 2993 int avpicture_get_size(enum PixelFormat pix_fmt, int width, int height); |
| 2994 void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift); | 2994 void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift); |
| 2995 const char *avcodec_get_pix_fmt_name(enum PixelFormat pix_fmt); | 2995 const char *avcodec_get_pix_fmt_name(enum PixelFormat pix_fmt); |
| 2996 void avcodec_set_dimensions(AVCodecContext *s, int width, int height); | 2996 void avcodec_set_dimensions(AVCodecContext *s, int width, int height); |
| 2997 | 2997 |
| 2998 #if LIBAVCODEC_VERSION_MAJOR < 53 | |
| 2998 /** | 2999 /** |
| 2999 * Returns the pixel format corresponding to the name name. | 3000 * Returns the pixel format corresponding to the name name. |
| 3000 * | 3001 * |
| 3001 * If there is no pixel format with name name, then looks for a | 3002 * If there is no pixel format with name name, then looks for a |
| 3002 * pixel format with the name corresponding to the native endian | 3003 * pixel format with the name corresponding to the native endian |
| 3003 * format of name. | 3004 * format of name. |
| 3004 * For example in a little-endian system, first looks for "gray16", | 3005 * For example in a little-endian system, first looks for "gray16", |
| 3005 * then for "gray16le". | 3006 * then for "gray16le". |
| 3006 * | 3007 * |
| 3007 * Finally if no pixel format has been found, returns PIX_FMT_NONE. | 3008 * Finally if no pixel format has been found, returns PIX_FMT_NONE. |
| 3008 */ | 3009 * |
| 3009 enum PixelFormat avcodec_get_pix_fmt(const char* name); | 3010 * @deprecated Deprecated in favor of av_get_pix_fmt(). |
| 3011 */ | |
| 3012 attribute_deprecated enum PixelFormat avcodec_get_pix_fmt(const char* name); | |
| 3013 #endif | |
| 3010 | 3014 |
| 3011 /** | 3015 /** |
| 3012 * Returns a value representing the fourCC code associated to the | 3016 * Returns a value representing the fourCC code associated to the |
| 3013 * pixel format pix_fmt, or 0 if no associated fourCC code can be | 3017 * pixel format pix_fmt, or 0 if no associated fourCC code can be |
| 3014 * found. | 3018 * found. |
