comparison avcodec.h @ 5537:3d10c3e84f96 libavcodec

Add av_get_bits_per_sample_format()
author conrad
date Mon, 13 Aug 2007 05:23:38 +0000
parents 447409d8770f
children 4117a942b325
comparison
equal deleted inserted replaced
5536:44e140e3cd6a 5537:3d10c3e84f96
31 #include <sys/types.h> /* size_t */ 31 #include <sys/types.h> /* size_t */
32 32
33 #define AV_STRINGIFY(s) AV_TOSTRING(s) 33 #define AV_STRINGIFY(s) AV_TOSTRING(s)
34 #define AV_TOSTRING(s) #s 34 #define AV_TOSTRING(s) #s
35 35
36 #define LIBAVCODEC_VERSION_INT ((51<<16)+(40<<8)+4) 36 #define LIBAVCODEC_VERSION_INT ((51<<16)+(41<<8)+0)
37 #define LIBAVCODEC_VERSION 51.40.4 37 #define LIBAVCODEC_VERSION 51.41.0
38 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT 38 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
39 39
40 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) 40 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
41 41
42 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) 42 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
2704 * @param[in] codec_id the codec 2704 * @param[in] codec_id the codec
2705 * @return Number of bits per sample or zero if unknown for the given codec. 2705 * @return Number of bits per sample or zero if unknown for the given codec.
2706 */ 2706 */
2707 int av_get_bits_per_sample(enum CodecID codec_id); 2707 int av_get_bits_per_sample(enum CodecID codec_id);
2708 2708
2709 /**
2710 * Returns sample format bits per sample.
2711 *
2712 * @param[in] sample_fmt the sample format
2713 * @return Number of bits per sample or zero if unknown for the given sample format.
2714 */
2715 int av_get_bits_per_sample_format(enum SampleFormat sample_fmt);
2716
2709 /* frame parsing */ 2717 /* frame parsing */
2710 typedef struct AVCodecParserContext { 2718 typedef struct AVCodecParserContext {
2711 void *priv_data; 2719 void *priv_data;
2712 struct AVCodecParser *parser; 2720 struct AVCodecParser *parser;
2713 int64_t frame_offset; /* offset of the current frame */ 2721 int64_t frame_offset; /* offset of the current frame */