99#include "immintrin.h"
1010#include "EbUtility.h"
1111
12- EB_EXTERN EB_ALIGN (16 ) const EB_U8 filterType [] = {
12+ EB_EXTERN EB_ALIGN (16 ) const EB_U8 EbHevcFilterType [] = {
1313 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 1 , 4
1414};
1515
16- EB_EXTERN EB_ALIGN (16 ) const EB_U8 WeakChromafilter [2 ][32 ] = {
16+ EB_EXTERN EB_ALIGN (16 ) const EB_U8 EbHevcWeakChromafilter [2 ][32 ] = {
1717 { 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 , 2 , 4 },
1818 { 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 , 1 , 2 },
1919};
@@ -39,7 +39,7 @@ inline void lumaWeakFilter_AVX2_INTRIN(
3939 currPrevPermutation = _mm256_permute4x64_epi64 (currPrev , 216 );
4040 currPermutation = _mm256_permute4x64_epi64 (curr , 216 );
4141 currLeftMidFirstHalflo = _mm256_unpacklo_epi8 (currPrevPermutation , currPermutation );
42- weights = _mm256_loadu_si256 ((__m256i * )filterType );
42+ weights = _mm256_loadu_si256 ((__m256i * )EbHevcFilterType );
4343 currLeftMidFirstHalfWeight = _mm256_maddubs_epi16 (currLeftMidFirstHalflo , weights );
4444 currNextPermutation = _mm256_permute4x64_epi64 (currNext , 88 );
4545 currNextFirstHalf = _mm256_unpacklo_epi8 (currNextPermutation , _mm256_setzero_si256 ());
@@ -100,7 +100,7 @@ inline void chromaWeakLumaStrongFilter_AVX2_INTRIN(
100100 currPrevPermutation = _mm256_permute4x64_epi64 (currPrev , 216 );
101101 currPermutation = _mm256_permute4x64_epi64 (curr , 216 );
102102 currLeftMidFirstHalflo = _mm256_unpacklo_epi8 (currPrevPermutation , currPermutation );
103- weights = _mm256_loadu_si256 ((__m256i * )WeakChromafilter [0 ]);
103+ weights = _mm256_loadu_si256 ((__m256i * )EbHevcWeakChromafilter [0 ]);
104104 currLeftMidFirstHalfWeight = _mm256_maddubs_epi16 (currLeftMidFirstHalflo , weights );
105105 currNextPermutation = _mm256_permute4x64_epi64 (currNext , 88 );
106106 currNextFirstHalf = _mm256_unpacklo_epi8 (currNextPermutation , _mm256_setzero_si256 ());
@@ -118,7 +118,7 @@ inline void chromaWeakLumaStrongFilter_AVX2_INTRIN(
118118 topPrevPermutation = _mm256_permute4x64_epi64 (topPrev , 216 );
119119 topPermutation = _mm256_permute4x64_epi64 (top , 216 );
120120 topLeftMidFirstHalflo = _mm256_unpacklo_epi8 (topPrevPermutation , topPermutation );
121- weights = _mm256_loadu_si256 ((__m256i * )WeakChromafilter [1 ]);
121+ weights = _mm256_loadu_si256 ((__m256i * )EbHevcWeakChromafilter [1 ]);
122122 topLeftMidFirstHalfWeight = _mm256_maddubs_epi16 (topLeftMidFirstHalflo , weights );
123123 topNextPermutation = _mm256_permute4x64_epi64 (topNext , 88 );
124124 topNextFirstHalf = _mm256_unpacklo_epi8 (topNextPermutation , _mm256_setzero_si256 ());
@@ -135,7 +135,7 @@ inline void chromaWeakLumaStrongFilter_AVX2_INTRIN(
135135 bottomPrevPermutation = _mm256_permute4x64_epi64 (bottomPrev , 216 );
136136 bottomPermutation = _mm256_permute4x64_epi64 (bottom , 216 );
137137 bottomLeftMidFirstHalflo = _mm256_unpacklo_epi8 (bottomPrevPermutation , bottomPermutation );
138- weights = _mm256_loadu_si256 ((__m256i * )WeakChromafilter [1 ]);
138+ weights = _mm256_loadu_si256 ((__m256i * )EbHevcWeakChromafilter [1 ]);
139139 bottomLeftMidFirstHalfWeight = _mm256_maddubs_epi16 (bottomLeftMidFirstHalflo , weights );
140140 bottomNextPermutation = _mm256_permute4x64_epi64 (bottomNext , 88 );
141141 bottomNextFirstHalf = _mm256_unpacklo_epi8 (bottomNextPermutation , _mm256_setzero_si256 ());
@@ -305,7 +305,7 @@ void noiseExtractLumaWeak_AVX2_INTRIN(
305305 // p[1 + 2 * stride]) / 8;
306306
307307 top = curr = secondtop = secondcurr = _mm256_setzero_si256 ();
308-
308+
309309 for (kk = 0 ; kk + MAX_LCU_SIZE <= picWidth ; kk += MAX_LCU_SIZE )
310310 {
311311 for (jj = 0 ; jj < lcuHeight ; jj ++ )
0 commit comments