[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OpenDivX] OpenDivX optimalization: +30-40%



Andrew:

You're asolutely right! I don't need to add the *not* coded texture block to
the motion compensated block... this is a mistake that I didn't see and can
give improvement to the decoder.
It doesn't result to me that this improves the performance of the 30% (what
a shame), probably this depends a lot from the sequence. I will run some
more profiling.
Thank you for your important review and contribution.

Regards,
Andrea (e7abe7a)

----- Original Message -----
From: "Andrew Woznytsa" <[email protected]>
To: <[email protected]>
Sent: Wednesday, March 14, 2001 2:46 AM
Subject: [OpenDivX] OpenDivX optimalization: +30-40%


> Hi All,
>
> I'm quite confused...
>
> look below and compare these algorithms.. results will be the same but
> perfomance gain will be 30-40%..
>
> regards,
>
> Andrew
>
> decoder/mp4_mblock.c/macroblock(), line 120:
>
> 1. original algorithm:
>
>   // motion compensation
>   if (interFlag)
>   {
>    reconstruct(mp4_hdr.mb_xpos, mp4_hdr.mb_ypos, mp4_hdr.derived_mb_type);
>
>    // texture decoding add
>    for (j = 0; j < 6; j++) {
>     int coded = mp4_hdr.cbp & (1 << (5 - j));
>
>     blockInter(j, (coded != 0));
>     addblockInter(j, mp4_hdr.mb_xpos, mp4_hdr.mb_ypos);
>    }
>   }
>   else
>   {
>    // texture decoding add
> [skiped]
>
> 2. my version
>
>   // motion compensation
>   if (interFlag)
>   {
>    reconstruct(mp4_hdr.mb_xpos, mp4_hdr.mb_ypos, mp4_hdr.derived_mb_type);
>
>    // texture decoding add
>    for (j = 0; j < 6; j++) {
>     int coded = mp4_hdr.cbp & (1 << (5 - j));
>     if(coded){
>          blockInter(j, (coded != 0));
>          addblockInter(j, mp4_hdr.mb_xpos, mp4_hdr.mb_ypos);
>     }
>   }
>   else
>   {
>    // texture decoding add
> [skiped]
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> OpenDivX mailing list
> [email protected]
> http://lists.projectmayo.com/mailman/listinfo/opendivx


_______________________________________________
OpenDivX mailing list
[email protected]
http://lists.projectmayo.com/mailman/listinfo/opendivx


Reply To Poster

Local References / HOW-TO / FAQs