~ubuntu-branches/ubuntu/saucy/x264/saucy-updates

« back to all changes in this revision

Viewing changes to common/dct.c

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2012-03-15 17:37:19 UTC
  • mto: (12.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: package-import@ubuntu.com-20120315173719-bpat2i6dvj0asbjn
Tags: upstream-0.120.2171+git01f7a33
ImportĀ upstreamĀ versionĀ 0.120.2171+git01f7a33

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 * dct.c: transform and zigzag
3
3
 *****************************************************************************
4
 
 * Copyright (C) 2003-2011 x264 project
 
4
 * Copyright (C) 2003-2012 x264 project
5
5
 *
6
6
 * Authors: Loren Merritt <lorenm@u.washington.edu>
7
7
 *          Laurent Aimar <fenrir@via.ecp.fr>
608
608
    {
609
609
        dctf->sub4x4_dct    = x264_sub4x4_dct_mmx;
610
610
        dctf->add4x4_idct   = x264_add4x4_idct_mmx;
611
 
        dctf->add8x8_idct_dc = x264_add8x8_idct_dc_mmx;
612
 
        dctf->add16x16_idct_dc = x264_add16x16_idct_dc_mmx;
613
611
        dctf->dct4x4dc      = x264_dct4x4dc_mmx;
614
612
        dctf->idct4x4dc     = x264_idct4x4dc_mmx;
615
613
        dctf->sub8x8_dct_dc = x264_sub8x8_dct_dc_mmx2;
627
625
#endif
628
626
    }
629
627
 
 
628
    if( cpu&X264_CPU_MMX2 )
 
629
    {
 
630
        dctf->add8x8_idct_dc   = x264_add8x8_idct_dc_mmx2;
 
631
        dctf->add16x16_idct_dc = x264_add16x16_idct_dc_mmx2;
 
632
    }
 
633
 
630
634
    if( cpu&X264_CPU_SSE2 )
631
635
    {
632
636
        dctf->sub8x8_dct8   = x264_sub8x8_dct8_sse2;
962
966
            pf_progressive->scan_4x4 = x264_zigzag_scan_4x4_frame_avx;
963
967
    }
964
968
    if( cpu&X264_CPU_XOP )
 
969
    {
965
970
        pf_progressive->scan_4x4 = x264_zigzag_scan_4x4_frame_xop;
 
971
        pf_progressive->scan_8x8 = x264_zigzag_scan_8x8_frame_xop;
 
972
        pf_interlaced->scan_8x8 = x264_zigzag_scan_8x8_field_xop;
 
973
    }
966
974
#endif // HAVE_MMX
967
975
#if HAVE_ALTIVEC
968
976
    if( cpu&X264_CPU_ALTIVEC )