~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libswscale/yuv2rgb_template.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-01-20 17:51:19 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120175119-gu6kw1arv5tmf1vr
Tags: 3:0.svn20090119-1ubuntu1+unstripped1
* merge with the ubuntu.jaunty branch
* reenable x264 LP: #303537
* build against vdpau
* enable xvmc support

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#undef EMMS
31
31
#undef SFENCE
32
32
 
33
 
#ifdef HAVE_3DNOW
 
33
#if HAVE_3DNOW
34
34
/* On K6 femms is faster than emms. On K7 femms is directly mapped to emms. */
35
35
#define EMMS     "femms"
36
36
#else
37
37
#define EMMS     "emms"
38
38
#endif
39
39
 
40
 
#ifdef HAVE_MMX2
 
40
#if HAVE_MMX2
41
41
#define MOVNTQ "movntq"
42
42
#define SFENCE "sfence"
43
43
#else
335
335
        "1:             \n\t"
336
336
YUV2RGB
337
337
        /* mm0=B, %%mm2=G, %%mm1=R */
338
 
#ifdef HAVE_MMX2
 
338
#if HAVE_MMX2
339
339
        "movq "MANGLE(ff_M24A)", %%mm4     \n\t"
340
340
        "movq "MANGLE(ff_M24C)", %%mm7     \n\t"
341
341
        "pshufw $0x50, %%mm0, %%mm5     \n\t" /* B3 B2 B3 B2  B1 B0 B1 B0 */