[FFmpeg-devel] [PATCH] V210 decoder and encoder

Baptiste Coudurier baptiste.coudurier
Mon May 11 22:53:25 CEST 2009


On 5/11/2009 1:44 PM, Michael Niedermayer wrote:
> On Mon, May 11, 2009 at 12:40:08PM -0700, Baptiste Coudurier wrote:
>> On 5/11/2009 12:21 PM, Michael Niedermayer wrote:
>>> On Sat, May 09, 2009 at 01:30:40PM -0700, Baptiste Coudurier wrote:
>>>> Hi
>>>>
>>>> $subject.
>>>>
>>>> -- 
>>>> Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
>>>> Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
>>>> FFmpeg maintainer                                  http://www.ffmpeg.org
>>>>  Changelog              |    1 
>>>>  libavcodec/Makefile    |    2 
>>>>  libavcodec/allcodecs.c |   15 ++
>>>>  libavcodec/avcodec.h   |    3 
>>>>  libavcodec/v210.c      |  258 +++++++++++++++++++++++++++++++++++++++++++++++++
>>>>  5 files changed, 278 insertions(+), 1 deletion(-)
>>>> 164b26551774be7306c36786b5af2f1aeb7e771f  v210.patch
>>> [...]
>>>> +#if CONFIG_V210_ENCODER
>>>> +static av_cold int encode_init(AVCodecContext *avctx)
>>>> +{
>>>> +    if (avctx->width & 1) {
>>>> +        av_log(avctx, AV_LOG_ERROR, "v210 needs even width\n");
>>>> +        return -1;
>>>> +    }
>>>> +
>>>> +    if (avctx->pix_fmt != PIX_FMT_YUV422P16 ||
>>>> +        avctx->bits_per_raw_sample != 10) {
>>>> +        av_log(avctx, AV_LOG_ERROR, "v210 needs YUV 4:2:2 10bit\n");
>>> i wonder if this is not a little too strict ...
>> What do you think of ?
>> v210 requires this, it only stores 10bits.
> 
> yes but it also happily stores 10 if there where 9 or 12 if that
> check wouldnt be there ...

If you think it's safe, I can remove the check. Do you want me to remove
it completely ?

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



More information about the ffmpeg-devel mailing list