[FFmpeg-devel] [PATCH] Implement av_get_pix_fmt_by_name()

Baptiste Coudurier baptiste.coudurier
Thu Jan 28 02:28:04 CET 2010


On 01/27/2010 05:10 PM, Stefano Sabatini wrote:
> On date Thursday 2009-11-26 22:45:31 +0100, Stefano Sabatini encoded:
>> On date Saturday 2009-11-07 17:52:50 +0100, Stefano Sabatini encoded:
>>> Hi,
>>>
>>> as in subject.
>>>
>>> This is going to replace avcodec_get_pix_fmt().
>>
>> Patch updated and slightly changed, now it should be intended as a
>> move of the code of avcodec_get_pix_fmt() to libavutil.
>
> Ping (I need this, my idea is to make swscale-test take in input IN
> OUT as a format, should help when debugging conversion code without to
> rely on lavfi).
>
> Regards.
>
>
> implement-get-pix-fmt-by-name.patch
>
>
> Index: ffmpeg/libavutil/pixdesc.c
> ===================================================================
> --- ffmpeg.orig/libavutil/pixdesc.c	2009-11-29 10:47:45.000000000 +0100
> +++ ffmpeg/libavutil/pixdesc.c	2009-11-29 11:04:14.000000000 +0100
> @@ -648,6 +648,43 @@
>       },
>   };
>
> +enum PixelFormat av_get_pix_fmt_by_name_internal(const char *name)

Missing static.

[...]

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list