[FFmpeg-devel] [PATCH] lowres=3 support in mpegvideo decoder

Anatoliy Nenashev nenashev_as
Sat Jan 16 00:54:13 CET 2010


Michael Niedermayer wrote:
> On Fri, Jan 15, 2010 at 09:16:43PM +0300, Anatoliy Nenashev wrote:
>   
>> Hi!
>> Here goes a patch for lowres=3 support in MPEG video decoder.
>>     
>
> does this have some practical use?
>
>
>   
Yes! It may be used in fast video search.  The  quality of video may be 
ugly for  a  human  but  is good  for  correlation  functions.  Also the 
quality of I-frames is  pretty good.

>>      const int lowres= s->avctx->lowres;
>> +    const int op_index = (lowres < 3) ? lowres : 2;
>>     
>
> FFMIN
>
>   
Done
>   
>> +    sx = ( sx << (3 - lowres) ) >> 1;
>>     
> that can be done simpler
>
>   
New version is in applied patch.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mpeg_lowres_v2.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100116/3d61f7bb/attachment.txt>



More information about the ffmpeg-devel mailing list