[x264-devel] commit: quant_2x2_dc_ssse3 (Jason Garrett-Glaser )

git version control git at videolan.org
Sat May 17 08:57:02 CEST 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Thu May 15 05:14:53 2008 -0600| [76c9f3dbcb15013efd54b9ee87be5ab32e1560a0]

quant_2x2_dc_ssse3

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=76c9f3dbcb15013efd54b9ee87be5ab32e1560a0
---

 common/quant.c         |    1 +
 common/x86/quant-a.asm |    5 +++++
 common/x86/quant.h     |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/common/quant.c b/common/quant.c
index 38581f4..635d32c 100644
--- a/common/quant.c
+++ b/common/quant.c
@@ -243,6 +243,7 @@ void x264_quant_init( x264_t *h, int cpu, x264_quant_function_t *pf )
 
     if( cpu&X264_CPU_SSSE3 )
     {
+        pf->quant_2x2_dc = x264_quant_2x2_dc_ssse3;
         pf->quant_4x4_dc = x264_quant_4x4_dc_ssse3;
         pf->quant_4x4 = x264_quant_4x4_ssse3;
         pf->quant_8x8 = x264_quant_8x8_ssse3;
diff --git a/common/x86/quant-a.asm b/common/x86/quant-a.asm
index 693432d..9be5ec5 100644
--- a/common/x86/quant-a.asm
+++ b/common/x86/quant-a.asm
@@ -106,6 +106,11 @@ cglobal x264_quant_2x2_dc_mmxext, 1,1
     QUANT_MMX [r0], mm6, mm7
     RET
 
+cglobal x264_quant_2x2_dc_ssse3, 1,1
+    QUANT_DC_START
+    QUANT_SSSE3 [r0], mm6, mm7
+    RET
+
 ;-----------------------------------------------------------------------------
 ; void x264_quant_4x4_dc_mmxext( int16_t dct[16], int mf, int bias )
 ;-----------------------------------------------------------------------------
diff --git a/common/x86/quant.h b/common/x86/quant.h
index 42c9817..b55ea39 100644
--- a/common/x86/quant.h
+++ b/common/x86/quant.h
@@ -30,6 +30,7 @@ void x264_quant_8x8_mmx( int16_t dct[8][8], uint16_t mf[64], uint16_t bias[64] )
 void x264_quant_4x4_dc_sse2( int16_t dct[4][4], int mf, int bias );
 void x264_quant_4x4_sse2( int16_t dct[4][4], uint16_t mf[16], uint16_t bias[16] );
 void x264_quant_8x8_sse2( int16_t dct[8][8], uint16_t mf[64], uint16_t bias[64] );
+void x264_quant_2x2_dc_ssse3( int16_t dct[2][2], int mf, int bias );
 void x264_quant_4x4_dc_ssse3( int16_t dct[4][4], int mf, int bias );
 void x264_quant_4x4_ssse3( int16_t dct[4][4], uint16_t mf[16], uint16_t bias[16] );
 void x264_quant_8x8_ssse3( int16_t dct[8][8], uint16_t mf[64], uint16_t bias[64] );



More information about the x264-devel mailing list