[MPlayer-dev-eng] realaudio...

Felix Buenemann atmosfear at users.sourceforge.net
Mon Jun 10 05:34:45 CEST 2002


On Monday 10 June 2002 05:23, Felix Buenemann wrote:
> I'll even try some C implementation (old is scrambled, new is descrambled):
> (This might not work 100% as I'm very tired.)
>
> ms=MATRIXSIZE/2;
>
> for(x=y=0; x < MATRIXSIZE; x+=2,y+=2) {
>   new[y][x]=old[x][y];
>   new[y+1][x+1]=old[x+1+ms][y+1+ms];
> }
of course this won't work but something like:

for(x=0; x < MATRIXSIZE; x+=2) {
  for(y=0; x < MATRIXSIZE; y+=2) {
    new[y][x]=old[x][y];
    new[y+1][x+1]=old[x+1+ms][y+1+ms];
  }
}

This code has advantage, that it can be MMX optimized (even more when you 
increase parallelism) ;)))
-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________



More information about the MPlayer-dev-eng mailing list