Mercurial > libavcodec.hg
comparison avcodec.h @ 11809:867d82f512df libavcodec
Implement av_get_codec_tag_string() and use it in ffprobe.
| author | stefano |
|---|---|
| date | Wed, 02 Jun 2010 10:54:45 +0000 |
| parents | 026edf66e3a9 |
| children | 9f7414707aa8 |
comparison
equal
deleted
inserted
replaced
| 11808:85f6fd5dd599 | 11809:867d82f512df |
|---|---|
| 28 | 28 |
| 29 #include <errno.h> | 29 #include <errno.h> |
| 30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
| 31 | 31 |
| 32 #define LIBAVCODEC_VERSION_MAJOR 52 | 32 #define LIBAVCODEC_VERSION_MAJOR 52 |
| 33 #define LIBAVCODEC_VERSION_MINOR 72 | 33 #define LIBAVCODEC_VERSION_MINOR 73 |
| 34 #define LIBAVCODEC_VERSION_MICRO 1 | 34 #define LIBAVCODEC_VERSION_MICRO 0 |
| 35 | 35 |
| 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ | 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ |
| 37 LIBAVCODEC_VERSION_MINOR, \ | 37 LIBAVCODEC_VERSION_MINOR, \ |
| 38 LIBAVCODEC_VERSION_MICRO) | 38 LIBAVCODEC_VERSION_MICRO) |
| 39 #define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \ | 39 #define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \ |
| 3091 * pixel format pix_fmt, or 0 if no associated fourCC code can be | 3091 * pixel format pix_fmt, or 0 if no associated fourCC code can be |
| 3092 * found. | 3092 * found. |
| 3093 */ | 3093 */ |
| 3094 unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat pix_fmt); | 3094 unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat pix_fmt); |
| 3095 | 3095 |
| 3096 /** | |
| 3097 * Puts a string representing the codec tag codec_tag in buf. | |
| 3098 * | |
| 3099 * @param buf_size size in bytes of buf | |
| 3100 * @return the length of the string that would have been generated if | |
| 3101 * enough space had been available, excluding the trailing null | |
| 3102 */ | |
| 3103 size_t av_get_codec_tag_string(char *buf, size_t buf_size, unsigned int codec_tag); | |
| 3104 | |
| 3096 #define FF_LOSS_RESOLUTION 0x0001 /**< loss due to resolution change */ | 3105 #define FF_LOSS_RESOLUTION 0x0001 /**< loss due to resolution change */ |
| 3097 #define FF_LOSS_DEPTH 0x0002 /**< loss due to color depth change */ | 3106 #define FF_LOSS_DEPTH 0x0002 /**< loss due to color depth change */ |
| 3098 #define FF_LOSS_COLORSPACE 0x0004 /**< loss due to color space conversion */ | 3107 #define FF_LOSS_COLORSPACE 0x0004 /**< loss due to color space conversion */ |
| 3099 #define FF_LOSS_ALPHA 0x0008 /**< loss of alpha bits */ | 3108 #define FF_LOSS_ALPHA 0x0008 /**< loss of alpha bits */ |
| 3100 #define FF_LOSS_COLORQUANT 0x0010 /**< loss due to color quantization */ | 3109 #define FF_LOSS_COLORQUANT 0x0010 /**< loss due to color quantization */ |
