[MPlayer-dev-eng] [PATCH] ASS subtitle speedup (take 2)

Evgeniy Stepanov eugeni.stepanov at gmail.com
Sat Dec 2 20:23:37 CET 2006


On Saturday 02 December 2006 21:58, Uoti Urpala wrote:
> On Fri, 2006-12-01 at 21:16 +0100, Jindrich Makovicka wrote:
> +       if (memcmp(i1->bitmap, i2->bitmap, i1->h * i1->stride) != 0)
> +               return 2;
>
> Is there really no better way to detect identical images than memcmp the
> rendered results? I find that hard to believe.

You are right, in 99.9% cases it's enough to compare bitmap pointers. This 
won't work after cache cleanup, but in that case prev_images_root becomes 
invalid anyway.



More information about the MPlayer-dev-eng mailing list