changeset 9518:4030e4d97e99 draft

asm: avx assembly code for 10bpp satd[16x24]-21x,satd[32x48]-24x,satd[24x64]-22x,satd[8x64]-22x,satd[8x12]-24x [i422] satd[16x24] 21.64x 2692.30 58272.30 [i422] satd[32x48] 24.23x 9558.99 231646.03 [i422] satd[24x64] 22.88x 10118.08 231495.09 [i422] satd[ 8x64] 22.52x 3468.88 78107.02 [i422] satd[ 8x12] 24.60x 824.09 20275.24
author Sumalatha Polureddy<sumalatha@multicorewareinc.com>
date Mon, 16 Feb 2015 16:25:54 +0530
parents 149c30d03da3
children c82806023d05
files source/common/x86/asm-primitives.cpp
diffstat 1 files changed, 6 insertions(+-), 0 deletions(-) [+]
line wrap: on
line diff
--- a/source/common/x86/asm-primitives.cpp	Mon Feb 16 16:08:22 2015 +0530
+++ b/source/common/x86/asm-primitives.cpp	Mon Feb 16 16:25:54 2015 +0530
@@ -945,6 +945,12 @@ void setupAssemblyPrimitives(EncoderPrim
     if (cpuMask & X265_CPU_AVX)
     {
         // p.pu[LUMA_4x4].satd = p.cu[BLOCK_4x4].sa8d = x265_pixel_satd_4x4_avx; fails tests
+        p.chroma[X265_CSP_I422].pu[CHROMA_422_16x24].satd = x265_pixel_satd_16x24_avx;
+        p.chroma[X265_CSP_I422].pu[CHROMA_422_32x48].satd = x265_pixel_satd_32x48_avx;
+        p.chroma[X265_CSP_I422].pu[CHROMA_422_24x64].satd = x265_pixel_satd_24x64_avx;
+        p.chroma[X265_CSP_I422].pu[CHROMA_422_8x64].satd = x265_pixel_satd_8x64_avx;
+        p.chroma[X265_CSP_I422].pu[CHROMA_422_8x12].satd = x265_pixel_satd_8x12_avx;
+
         ALL_LUMA_PU(satd, pixel_satd, avx);
         ASSIGN_SA8D(avx);
         LUMA_VAR(avx);