[FFmpeg-devel] [PATCH] Bit depth for SampleFormat

David Conrad umovimus
Sun Aug 12 00:48:54 CEST 2007


On Aug 11, 2007, at 4:13 PM, Michael Niedermayer wrote:

> Hi
>
> On Sat, Aug 11, 2007 at 03:53:15PM -0400, David Conrad wrote:
>
>> 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?
>>
>>
>
> [...]
>
>> -#define LIBAVCODEC_VERSION_INT  ((51<<16)+(40<<8)+4)
>> -#define LIBAVCODEC_VERSION      51.40.4
>> +#define LIBAVCODEC_VERSION_INT  ((51<<16)+(40<<8)+5)
>> +#define LIBAVCODEC_VERSION      51.40.5
>>
>
> no rather:
>
> +#define LIBAVCODEC_VERSION_INT  ((51<<16)+(41<<8)+0)
> +#define LIBAVCODEC_VERSION      51.41.0

I read your email on ffmpeg-dev right after sending that. Is this  
patch okay?

-------------- 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/b4a00c77/attachment.txt>



More information about the ffmpeg-devel mailing list