[FFmpeg-devel] [PATCH] UltraSPARC VIS yuv2rgb third try
Balatoni Denes
dbalatoni
Tue Jul 17 23:28:53 CEST 2007
Hi!
Tuesday 17 July 2007 23:03-kor Michael Niedermayer ezt ?rta:
> > + c->sparc_coeffs[0]=(uint16_t)(((int16_t)(c->yOffset &
> > 0xffff)*(int16_t)(c->yCoeff & 0xffff)>>11) & 0xffff) *
> > 0x0001000100010001ULL; +
> > c->sparc_coeffs[1]=(uint16_t)(((int16_t)(c->uOffset &
> > 0xffff)*(int16_t)(c->ubCoeff & 0xffff)>>11) & 0xffff) *
> > 0x0001000100010001ULL; +
> > c->sparc_coeffs[2]=(uint16_t)(((int16_t)(c->uOffset &
> > 0xffff)*(int16_t)(c->ugCoeff & 0xffff)>>11) & 0xffff) *
> > 0x0001000100010001ULL; +
> > c->sparc_coeffs[3]=(uint16_t)(((int16_t)(c->vOffset &
> > 0xffff)*(int16_t)(c->vgCoeff & 0xffff)>>11) & 0xffff) *
> > 0x0001000100010001ULL; +
> > c->sparc_coeffs[4]=(uint16_t)(((int16_t)(c->vOffset &
> > 0xffff)*(int16_t)(c->vrCoeff & 0xffff)>>11) & 0xffff) *
> > 0x0001000100010001ULL;
>
> i think half of whats done here is superflous
At least it works (and tested), and this was the easiest. What is superflous?
> [...]
bye
Denes
More information about the ffmpeg-devel
mailing list