[x265] [PATCH] more meaningfull name to chroma coefficients

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Oct 18 14:05:10 CEST 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1382097901 -19800
# Node ID 5a6e4b47758b6cacc742e469f3e690190d618304
# Parent  4ca261df8acbef14b9a09676fef9fa354c35e19c
more meaningfull name to chroma coefficients

diff -r 4ca261df8acb -r 5a6e4b47758b source/common/x86/ipfilter8.asm
--- a/source/common/x86/ipfilter8.asm	Fri Oct 18 17:07:36 2013 +0530
+++ b/source/common/x86/ipfilter8.asm	Fri Oct 18 17:35:01 2013 +0530
@@ -37,14 +37,14 @@
 
 tab_c_512:  times 8 dw 512
 
-tab_coeff:    db  0, 64,  0,  0
-              db -2, 58, 10, -2
-              db -4, 54, 16, -2
-              db -6, 46, 28, -4
-              db -4, 36, 36, -4
-              db -4, 28, 46, -6
-              db -2, 16, 54, -4
-              db -2, 10, 58, -2
+tab_ChromaCoeff: db  0, 64,  0,  0
+                 db -2, 58, 10, -2
+                 db -4, 54, 16, -2
+                 db -6, 46, 28, -4
+                 db -4, 36, 36, -4
+                 db -4, 28, 46, -6
+                 db -2, 16, 54, -4
+                 db -2, 10, 58, -2
 
 tab_LumaCoeff:   db   0, 0,  0,  64,  0,   0,  0,  0
                  db  -1, 4, -10, 58,  17, -5,  1,  0
@@ -83,10 +83,10 @@
 mov         r4d,        r4m
 
 %ifdef PIC
-lea         r5,          [tab_coeff]
+lea         r5,          [tab_ChromaCoeff]
 movd        coef2,       [r5 + r4 * 4]
 %else
-movd        coef2,       [tab_coeff + r4 * 4]
+movd        coef2,       [tab_ChromaCoeff + r4 * 4]
 %endif
 
 pshufd      coef2,       coef2,      0
@@ -117,10 +117,10 @@
 mov         r4d,        r4m
 
 %ifdef PIC
-lea         r5,          [tab_coeff]
+lea         r5,          [tab_ChromaCoeff]
 movd        coef2,       [r5 + r4 * 4]
 %else
-movd        coef2,       [tab_coeff + r4 * 4]
+movd        coef2,       [tab_ChromaCoeff + r4 * 4]
 %endif
 
 pshufd      coef2,       coef2,      0
@@ -165,10 +165,10 @@
 mov         r4d,        r4m
 
 %ifdef PIC
-lea         r5,          [tab_coeff]
+lea         r5,          [tab_ChromaCoeff]
 movd        coef2,       [r5 + r4 * 4]
 %else
-movd        coef2,       [tab_coeff + r4 * 4]
+movd        coef2,       [tab_ChromaCoeff + r4 * 4]
 %endif
 
 pshufd      coef2,       coef2,      0
@@ -195,10 +195,10 @@
 mov         r4d,        r4m
 
 %ifdef PIC
-lea         r5,          [tab_coeff]
+lea         r5,          [tab_ChromaCoeff]
 movd        coef2,       [r5 + r4 * 4]
 %else
-movd        coef2,       [tab_coeff + r4 * 4]
+movd        coef2,       [tab_ChromaCoeff + r4 * 4]
 %endif
 
 pshufd      coef2,       coef2,      0
@@ -229,10 +229,10 @@
 mov         r4d,        r4m
 
 %ifdef PIC
-lea         r5,          [tab_coeff]
+lea         r5,          [tab_ChromaCoeff]
 movd        coef2,       [r5 + r4 * 4]
 %else
-movd        coef2,       [tab_coeff + r4 * 4]
+movd        coef2,       [tab_ChromaCoeff + r4 * 4]
 %endif
 
 pshufd      coef2,       coef2,      0
@@ -263,10 +263,10 @@
 mov         r4d,        r4m
 
 %ifdef PIC
-lea         r5,          [tab_coeff]
+lea         r5,          [tab_ChromaCoeff]
 movd        coef2,       [r5 + r4 * 4]
 %else
-movd        coef2,       [tab_coeff + r4 * 4]
+movd        coef2,       [tab_ChromaCoeff + r4 * 4]
 %endif
 
 pshufd      coef2,       coef2,      0
@@ -424,10 +424,10 @@
 mov         r4d,        r4m
 
 %ifdef PIC
-lea         r5,          [tab_coeff]
+lea         r5,          [tab_ChromaCoeff]
 movd        coef2,       [r5 + r4 * 4]
 %else
-movd        coef2,       [tab_coeff + r4 * 4]
+movd        coef2,       [tab_ChromaCoeff + r4 * 4]
 %endif
 
 mov           r5d,       %2
@@ -475,10 +475,10 @@
 mov         r4d,        r4m
 
 %ifdef PIC
-lea         r5,          [tab_coeff]
+lea         r5,          [tab_ChromaCoeff]
 movd        coef2,       [r5 + r4 * 4]
 %else
-movd        coef2,       [tab_coeff + r4 * 4]
+movd        coef2,       [tab_ChromaCoeff + r4 * 4]
 %endif
 
 mov           r5d,       %2


More information about the x265-devel mailing list