[MPlayer-users] Re: G400/ATI Xpert200 and G200 performance was: Re: [MPlFri Nov 2 00:01:09 2001

Arpi arpi at thot.banki.hu
Thu Nov 1 23:07:50 CET 2001


Hi,

> On Thursday 01 November 2001 21:40, Arpi wrote:
> > do you have G200 ? g200 has no direct YV12 support, it needs a conversion
> > step, it may slow down things (needs some MMX optimization).
> MMX Opt YV12<->YUY2 ... sounds easy, just tell me the filename / function ...
> ...

no, it's more easier :)
the code only have to interleave 8-bit U and 8-bit V plane sto a 16-bit UV
plane. I mean U0 V0 U1 V1 U2 V2 etc bytes in it.
g200 can handle only 2 plane YUV, a big Y plane and a half-size interleaved
UV plane. This way its' still 12bpp, so faster than 16bpp YUY2.

file is libvo/mga_common.c, func is draw_slice_g200()

this loop should be optimized:

        for(h=0; h < height; h++)
        {
                for(w=0; w < width; w++)
                {
                        dest[2*w+0] = src[w];
                        dest[2*w+1] = src2[w];
                }
                dest += bespitch;
                src += stride[1];
                src2+= stride[2];
        }


A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu



More information about the MPlayer-users mailing list