[FFmpeg-devel] [PATCH] uniformize trellis quant options

Baptiste Coudurier baptiste.coudurier
Mon Jun 9 02:43:56 CEST 2008


Michael Niedermayer wrote:
> On Sat, Jun 07, 2008 at 05:05:22PM -0700, Baptiste Coudurier wrote:
>> Michael Niedermayer wrote:
>>> On Tue, Jun 03, 2008 at 06:43:46PM -0700, Baptiste Coudurier wrote:
>>>> Hi,
>>>>
>>>> $subject.
>>>>
>>>> I did not suceeded in setting ->trellis with -flags +trell
>>>> unfortunately, is there a way ?
>>> [...]
>>>> +#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
>>>>  #define CODEC_FLAG_TRELLIS_QUANT  0x00200000 ///< Use trellis quantization.
>>>> +#endif
>>>>  #define CODEC_FLAG_GLOBAL_HEADER  0x00400000 ///< Place global headers in extradata instead of every keyframe.
>>>>  #define CODEC_FLAG_BITEXACT       0x00800000 ///< Use only bitexact stuff (except (I)DCT).
>>>>  /* Fx : Flag for h263+ extra options */
>>>> Index: libavcodec/mpegvideo_enc.c
>>>> ===================================================================
>>>> --- libavcodec/mpegvideo_enc.c	(revision 13650)
>>>> +++ libavcodec/mpegvideo_enc.c	(working copy)
>>>> @@ -332,6 +332,9 @@
>>>>      s->intra_vlc_format= !!(s->flags2 & CODEC_FLAG2_INTRA_VLC);
>>>>      s->q_scale_type= !!(s->flags2 & CODEC_FLAG2_NON_LINEAR_QUANT);
>>>>  
>>>> +    if (avctx->trellis)
>>>> +        s->flags |= CODEC_FLAG_TRELLIS_QUANT;
>>>> +
>>> that will break when the #if becomes false
>>>
>> Yeah, sorry patch was crap. Patch updated with libxvid modifications.
> 
> looks ok
> 

Thanks, applied.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc.                                http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA




More information about the ffmpeg-devel mailing list