[FFmpeg-devel] [PATCH] Bit depth for SampleFormat
David Conrad
umovimus
Sat Aug 11 21:53:15 CEST 2007
On Aug 10, 2007, at 6:09 AM, Michael Niedermayer wrote:
> Hi
>
> On Thu, Aug 09, 2007 at 09:55:30PM -0400, David Conrad wrote:
>
>> Hi,
>>
>> The attached adds a convenience function to get the bit depth of a
>> given
>> SampleFormat.
>>
>
> [...]
>
>> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
>> index 80eb3e3..87c9da1 100644
>> --- a/libavcodec/avcodec.h
>> +++ b/libavcodec/avcodec.h
>> @@ -2706,6 +2706,14 @@ char av_get_pict_type_char(int pict_type);
>> */
>> int av_get_bits_per_sample(enum CodecID codec_id);
>>
>> +/**
>> + * Returns sample format bits per sample.
>> + *
>> + * @param[in] sample_fmt the sample format
>> + * @return Number of bits per sample or zero if unknown for the
>> given sample format.
>> + */
>> +int av_get_bits_per_sample_format(enum SampleFormat sample_fmt);
>> +
>> /* frame parsing */
>> typedef struct AVCodecParserContext {
>> void *priv_data;
>>
>
> LIBAVCODEC_VERSION minor version bump missing
Like so?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: av_get_bits_per_sample_format.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070811/9964113d/attachment.txt>
More information about the ffmpeg-devel
mailing list