[FFmpeg-devel] Special optimization for PS3 Cell processor

Guillaume POIRIER poirierg
Wed May 9 13:51:12 CEST 2007


Hi,

On 5/9/07, Sakur <Sakur.deagod at gmail.com> wrote:
> Hi Luca:
> >
> >
> > Message: 6 Date: Wed, 09 May 2007 09:37:02 +0200 From: Luca Barbato

> > /* vec_mradds (vector multiply round and add saturate) * ========== */
> > static inline vec_short8 vec_mradds(vec_short8 a, vec_short8 b,
> > vec_short8 c) { vec_int4 round = (vec_int4)spu_splats(0x4000);
> > vec_short8 hi, lo; hi = (vec_short8)(spu_sl(spu_add(spu_mule(a, b),
> > round), 1)); lo = (vec_short8)(spu_rlmask(spu_add(spu_mulo(a, b),
> > round), -15)); return (vec_adds(spu_sel(hi, lo, ((vec_ushort8){0,
> > 0xFFFF, 0, 0xFFFF, 0, 0xFFFF, 0, 0xFFFF})), c)); } from vmx2spu.h
> Really thanks for your help.  I am using the ffmpeg library  packed in
> gst-ffmpeg source,not knowing if it's the latest.  Could you inform me
> where is "vmxspu.h" located ? :)

Judging from this document:
http://www.ief.u-psud.fr/~lacas/ComputerArchitecture/SPU_language_extensions_v20.pdf
which I got from google by typing "vmx2spu.h", this header is located
in Cell SDK.

Please don't hesitate to ask google first in the future. when you have
such questions.

Guillaume
-- 
Rich, you're forgetting one thing here: *everybody* except you is
stupid.
    M?ns Rullg?rd



More information about the ffmpeg-devel mailing list