/external/libyuv/files/unit_test/ |
D | compare_test.cc | 39 align_buffer_page_end(src_a, kMaxTest); in TEST_F() 51 src_a[i] = (fastrand() & 0xff); in TEST_F() 55 uint32_t h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F() 60 memcpy(src_a + kMaxTest / 2, src_b + kMaxTest / 2, kMaxTest / 2); in TEST_F() 61 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F() 66 memcpy(src_a + kMaxTest / 2, src_a, kMaxTest / 2); in TEST_F() 68 memcpy(src_a, src_b, kMaxTest / 2); in TEST_F() 69 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F() 74 memcpy(src_a, src_b, kMaxTest); in TEST_F() 75 h1 = HashDjb2(src_a, kMaxTest, 5381); in TEST_F() [all …]
|
/external/libvpx/libvpx/third_party/libyuv/source/ |
D | compare.cc | 121 uint64_t ComputeHammingDistance(const uint8_t* src_a, in ComputeHammingDistance() argument 130 uint32_t (*HammingDistance)(const uint8_t* src_a, const uint8_t* src_b, in ComputeHammingDistance() 161 diff += HammingDistance(src_a + i, src_b + i, kBlockSize); in ComputeHammingDistance() 163 src_a += count & ~(kBlockSize - 1); in ComputeHammingDistance() 166 diff += HammingDistance(src_a, src_b, remainder); in ComputeHammingDistance() 167 src_a += remainder; in ComputeHammingDistance() 172 diff += HammingDistance_C(src_a, src_b, remainder); in ComputeHammingDistance() 179 uint64_t ComputeSumSquareError(const uint8_t* src_a, in ComputeSumSquareError() argument 189 uint32_t (*SumSquareError)(const uint8_t* src_a, const uint8_t* src_b, in ComputeSumSquareError() 217 sse += SumSquareError(src_a + i, src_b + i, kBlockSize); in ComputeSumSquareError() [all …]
|
D | compare_gcc.cc | 26 uint32_t HammingDistance_SSE42(const uint8_t* src_a, in HammingDistance_SSE42() argument 64 : "+r"(src_a), // %0 in HammingDistance_SSE42() 74 uint32_t HammingDistance_SSE42(const uint8_t* src_a, 103 : "+r"(src_a), // %0 118 uint32_t HammingDistance_SSSE3(const uint8_t* src_a, in HammingDistance_SSSE3() argument 164 : "+r"(src_a), // %0 in HammingDistance_SSSE3() 177 uint32_t HammingDistance_AVX2(const uint8_t* src_a, in HammingDistance_AVX2() argument 220 : "+r"(src_a), // %0 in HammingDistance_AVX2() 232 uint32_t SumSquareError_SSE2(const uint8_t* src_a, in SumSquareError_SSE2() argument 266 : "+r"(src_a), // %0 in SumSquareError_SSE2()
|
D | compare_common.cc | 21 uint32_t HammingDistance_C1(const uint8_t* src_a, in HammingDistance_C1() argument 28 int x = src_a[i] ^ src_b[i]; in HammingDistance_C1() 51 uint32_t HammingDistance_C(const uint8_t* src_a, in HammingDistance_C() argument 58 uint32_t x = *((const uint32_t*)src_a) ^ *((const uint32_t*)src_b); in HammingDistance_C() 62 src_a += 4; in HammingDistance_C() 67 uint32_t x = *src_a ^ *src_b; in HammingDistance_C() 71 src_a += 1; in HammingDistance_C() 78 uint32_t SumSquareError_C(const uint8_t* src_a, in SumSquareError_C() argument 84 int diff = src_a[i] - src_b[i]; in SumSquareError_C()
|
D | compare_msa.cc | 25 uint32_t HammingDistance_MSA(const uint8_t* src_a, in HammingDistance_MSA() argument 34 src0 = (v16u8)__msa_ld_b((v16i8*)src_a, 0); in HammingDistance_MSA() 35 src1 = (v16u8)__msa_ld_b((v16i8*)src_a, 16); in HammingDistance_MSA() 42 src_a += 32; in HammingDistance_MSA() 52 uint32_t SumSquareError_MSA(const uint8_t* src_a, in SumSquareError_MSA() argument 63 src0 = (v16u8)__msa_ld_b((v16i8*)src_a, 0); in SumSquareError_MSA() 64 src1 = (v16u8)__msa_ld_b((v16i8*)src_a, 16); in SumSquareError_MSA() 79 src_a += 32; in SumSquareError_MSA()
|
D | compare_neon64.cc | 25 uint32_t HammingDistance_NEON(const uint8_t* src_a, in HammingDistance_NEON() argument 46 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(diff) in HammingDistance_NEON() 52 uint32_t SumSquareError_NEON(const uint8_t* src_a, in SumSquareError_NEON() argument 79 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(sse) in SumSquareError_NEON()
|
D | compare_neon.cc | 26 uint32_t HammingDistance_NEON(const uint8_t* src_a, in HammingDistance_NEON() argument 51 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(diff) in HammingDistance_NEON() 57 uint32_t SumSquareError_NEON(const uint8_t* src_a, in SumSquareError_NEON() argument 85 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(sse) in SumSquareError_NEON()
|
D | compare_win.cc | 28 uint32_t HammingDistance_SSE42(const uint8_t* src_a, in HammingDistance_SSE42() argument 35 uint32_t x = *((uint32_t*)src_a) ^ *((uint32_t*)src_b); // NOLINT in HammingDistance_SSE42() 36 src_a += 4; in HammingDistance_SSE42() 44 SumSquareError_SSE2(const uint8_t* src_a, const uint8_t* src_b, int count) { in SumSquareError_SSE2() argument 85 SumSquareError_AVX2(const uint8_t* src_a, const uint8_t* src_b, int count) { in SumSquareError_AVX2() argument
|
/external/libyuv/files/include/libyuv/ |
D | compare_row.h | 92 uint32_t HammingDistance_C(const uint8_t* src_a, 95 uint32_t HammingDistance_SSE42(const uint8_t* src_a, 98 uint32_t HammingDistance_SSSE3(const uint8_t* src_a, 101 uint32_t HammingDistance_AVX2(const uint8_t* src_a, 104 uint32_t HammingDistance_NEON(const uint8_t* src_a, 107 uint32_t HammingDistance_MSA(const uint8_t* src_a, 110 uint32_t HammingDistance_MMI(const uint8_t* src_a, 113 uint32_t SumSquareError_C(const uint8_t* src_a, 116 uint32_t SumSquareError_SSE2(const uint8_t* src_a, 119 uint32_t SumSquareError_AVX2(const uint8_t* src_a, [all …]
|
D | compare.h | 27 uint64_t ComputeHammingDistance(const uint8_t* src_a, 41 uint64_t ComputeSumSquareError(const uint8_t* src_a, 46 uint64_t ComputeSumSquareErrorPlane(const uint8_t* src_a, 59 double CalcFramePsnr(const uint8_t* src_a, 83 double CalcFrameSsim(const uint8_t* src_a,
|
/external/libyuv/files/source/ |
D | compare.cc | 121 uint64_t ComputeHammingDistance(const uint8_t* src_a, in ComputeHammingDistance() argument 130 uint32_t (*HammingDistance)(const uint8_t* src_a, const uint8_t* src_b, in ComputeHammingDistance() 167 diff += HammingDistance(src_a + i, src_b + i, kBlockSize); in ComputeHammingDistance() 169 src_a += count & ~(kBlockSize - 1); in ComputeHammingDistance() 172 diff += HammingDistance(src_a, src_b, remainder); in ComputeHammingDistance() 173 src_a += remainder; in ComputeHammingDistance() 178 diff += HammingDistance_C(src_a, src_b, remainder); in ComputeHammingDistance() 185 uint64_t ComputeSumSquareError(const uint8_t* src_a, in ComputeSumSquareError() argument 195 uint32_t (*SumSquareError)(const uint8_t* src_a, const uint8_t* src_b, in ComputeSumSquareError() 228 sse += SumSquareError(src_a + i, src_b + i, kBlockSize); in ComputeSumSquareError() [all …]
|
D | compare_gcc.cc | 26 uint32_t HammingDistance_SSE42(const uint8_t* src_a, in HammingDistance_SSE42() argument 64 : "+r"(src_a), // %0 in HammingDistance_SSE42() 74 uint32_t HammingDistance_SSE42(const uint8_t* src_a, 103 : "+r"(src_a), // %0 118 uint32_t HammingDistance_SSSE3(const uint8_t* src_a, in HammingDistance_SSSE3() argument 164 : "+r"(src_a), // %0 in HammingDistance_SSSE3() 177 uint32_t HammingDistance_AVX2(const uint8_t* src_a, in HammingDistance_AVX2() argument 220 : "+r"(src_a), // %0 in HammingDistance_AVX2() 232 uint32_t SumSquareError_SSE2(const uint8_t* src_a, in SumSquareError_SSE2() argument 266 : "+r"(src_a), // %0 in SumSquareError_SSE2()
|
D | compare_common.cc | 21 uint32_t HammingDistance_C1(const uint8_t* src_a, in HammingDistance_C1() argument 28 int x = src_a[i] ^ src_b[i]; in HammingDistance_C1() 51 uint32_t HammingDistance_C(const uint8_t* src_a, in HammingDistance_C() argument 58 uint32_t x = *((const uint32_t*)src_a) ^ *((const uint32_t*)src_b); in HammingDistance_C() 62 src_a += 4; in HammingDistance_C() 67 uint32_t x = *src_a ^ *src_b; in HammingDistance_C() 71 src_a += 1; in HammingDistance_C() 78 uint32_t SumSquareError_C(const uint8_t* src_a, in SumSquareError_C() argument 84 int diff = src_a[i] - src_b[i]; in SumSquareError_C()
|
D | compare_msa.cc | 25 uint32_t HammingDistance_MSA(const uint8_t* src_a, in HammingDistance_MSA() argument 34 src0 = (v16u8)__msa_ld_b((v16i8*)src_a, 0); in HammingDistance_MSA() 35 src1 = (v16u8)__msa_ld_b((v16i8*)src_a, 16); in HammingDistance_MSA() 42 src_a += 32; in HammingDistance_MSA() 52 uint32_t SumSquareError_MSA(const uint8_t* src_a, in SumSquareError_MSA() argument 63 src0 = (v16u8)__msa_ld_b((v16i8*)src_a, 0); in SumSquareError_MSA() 64 src1 = (v16u8)__msa_ld_b((v16i8*)src_a, 16); in SumSquareError_MSA() 79 src_a += 32; in SumSquareError_MSA()
|
D | compare_mmi.cc | 24 uint32_t HammingDistance_MMI(const uint8_t* src_a, in HammingDistance_MMI() argument 64 : [diff] "+r"(diff), [src_a] "+r"(src_a), [src_b] "+r"(src_b), in HammingDistance_MMI() 73 uint32_t SumSquareError_MMI(const uint8_t* src_a, in SumSquareError_MMI() argument 111 : [src_a] "r"(src_a), [src_b] "r"(src_b), [count] "r"(count), in SumSquareError_MMI()
|
D | compare_neon64.cc | 25 uint32_t HammingDistance_NEON(const uint8_t* src_a, in HammingDistance_NEON() argument 46 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(diff) in HammingDistance_NEON() 52 uint32_t SumSquareError_NEON(const uint8_t* src_a, in SumSquareError_NEON() argument 79 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(sse) in SumSquareError_NEON()
|
D | compare_neon.cc | 26 uint32_t HammingDistance_NEON(const uint8_t* src_a, in HammingDistance_NEON() argument 51 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(diff) in HammingDistance_NEON() 57 uint32_t SumSquareError_NEON(const uint8_t* src_a, in SumSquareError_NEON() argument 85 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(sse) in SumSquareError_NEON()
|
/external/libaom/libaom/third_party/libyuv/source/ |
D | compare.cc | 130 uint32 SumSquareError_C(const uint8* src_a, const uint8* src_b, int count); 134 uint32 SumSquareError_NEON(const uint8* src_a, const uint8* src_b, int count); 139 uint32 SumSquareError_SSE2(const uint8* src_a, const uint8* src_b, int count); 144 uint32 SumSquareError_AVX2(const uint8* src_a, const uint8* src_b, int count); 149 uint64 ComputeSumSquareError(const uint8* src_a, const uint8* src_b, in ComputeSumSquareError() argument 158 uint32 (*SumSquareError)(const uint8* src_a, const uint8* src_b, int count) = in ComputeSumSquareError() 181 sse += SumSquareError(src_a + i, src_b + i, kBlockSize); in ComputeSumSquareError() 183 src_a += count & ~(kBlockSize - 1); in ComputeSumSquareError() 186 sse += SumSquareError(src_a, src_b, remainder); in ComputeSumSquareError() 187 src_a += remainder; in ComputeSumSquareError() [all …]
|
D | compare_neon64.cc | 21 uint32 SumSquareError_NEON(const uint8* src_a, const uint8* src_b, int count) { in SumSquareError_NEON() argument 49 : "+r"(src_a), in SumSquareError_NEON()
|
D | compare_neon.cc | 22 uint32 SumSquareError_NEON(const uint8* src_a, const uint8* src_b, int count) { in SumSquareError_NEON() argument 51 : "+r"(src_a), in SumSquareError_NEON()
|
D | compare_common.cc | 18 uint32 SumSquareError_C(const uint8* src_a, const uint8* src_b, int count) { in SumSquareError_C() argument 22 int diff = src_a[i] - src_b[i]; in SumSquareError_C()
|
/external/libyuv/files/util/ |
D | psnr.cc | 41 static uint32_t SumSquareError_NEON(const uint8_t* src_a, in SumSquareError_NEON() argument 69 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(sse) in SumSquareError_NEON() 76 static uint32_t SumSquareError_NEON(const uint8_t* src_a, in SumSquareError_NEON() argument 103 : "+r"(src_a), "+r"(src_b), "+r"(count), "=r"(sse) in SumSquareError_NEON() 149 static uint32_t SumSquareError_SSE2(const uint8_t* src_a, in SumSquareError_SSE2() argument 182 : "+r"(src_a), // %0 in SumSquareError_SSE2() 231 static uint32_t SumSquareError_C(const uint8_t* src_a, in SumSquareError_C() argument 236 int diff = src_a[x] - src_b[x]; in SumSquareError_C() 242 double ComputeSumSquareError(const uint8_t* src_a, in ComputeSumSquareError() argument 245 uint32_t (*SumSquareError)(const uint8_t* src_a, const uint8_t* src_b, in ComputeSumSquareError() [all …]
|
/external/libvpx/libvpx/third_party/libyuv/include/libyuv/ |
D | compare.h | 27 uint64_t ComputeHammingDistance(const uint8_t* src_a, 41 uint64_t ComputeSumSquareError(const uint8_t* src_a, 46 uint64_t ComputeSumSquareErrorPlane(const uint8_t* src_a, 59 double CalcFramePsnr(const uint8_t* src_a, 83 double CalcFrameSsim(const uint8_t* src_a,
|
/external/libaom/libaom/third_party/libyuv/include/libyuv/ |
D | compare.h | 33 uint64 ComputeSumSquareError(const uint8* src_a, 37 uint64 ComputeSumSquareErrorPlane(const uint8* src_a, int stride_a, 47 double CalcFramePsnr(const uint8* src_a, int stride_a, 61 double CalcFrameSsim(const uint8* src_a, int stride_a,
|
/external/webp/src/demux/ |
D | anim_decode.c | 197 static uint8_t BlendChannelNonPremult(uint32_t src, uint8_t src_a, in BlendChannelNonPremult() argument 202 const uint32_t blend_unscaled = src_channel * src_a + dst_channel * dst_a; in BlendChannelNonPremult() 209 const uint8_t src_a = (src >> 24) & 0xff; in BlendPixelNonPremult() local 211 if (src_a == 0) { in BlendPixelNonPremult() 217 const uint8_t dst_factor_a = (dst_a * (256 - src_a)) >> 8; in BlendPixelNonPremult() 218 const uint8_t blend_a = src_a + dst_factor_a; in BlendPixelNonPremult() 222 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 0); in BlendPixelNonPremult() 224 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 8); in BlendPixelNonPremult() 226 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 16); in BlendPixelNonPremult() 227 assert(src_a + dst_factor_a < 256); in BlendPixelNonPremult() [all …]
|