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

Michael Niedermayer michaelni
Sat Jan 16 02:50:28 CET 2010


On Sat, Jan 16, 2010 at 02:54:13AM +0300, Anatoliy Nenashev wrote:
> 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.
>

>  mpegvideo.c |   29 ++++++++++++++++-------------
>  1 file changed, 16 insertions(+), 13 deletions(-)
> f2112862142d25d12e5304fa1dc0d8229d15c7ed  mpeg_lowres_v2.patch

looks ok if tested

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100116/9b10cf5f/attachment.pgp>



More information about the ffmpeg-devel mailing list