Home
last modified time | relevance | path

Searched refs:SGRPROJ_PRJ_BITS (Results 1 – 10 of 10) sorted by relevance

/external/libaom/libaom/av1/common/
Drestoration.h95 #define SGRPROJ_PRJ_BITS 7 macro
102 #define SGRPROJ_PRJ_MIN0 (-(1 << SGRPROJ_PRJ_BITS) * 3 / 4)
103 #define SGRPROJ_PRJ_MAX0 (SGRPROJ_PRJ_MIN0 + (1 << SGRPROJ_PRJ_BITS) - 1)
104 #define SGRPROJ_PRJ_MIN1 (-(1 << SGRPROJ_PRJ_BITS) / 4)
105 #define SGRPROJ_PRJ_MAX1 (SGRPROJ_PRJ_MIN1 + (1 << SGRPROJ_PRJ_BITS) - 1)
109 #define SGRPROJ_BITS (SGRPROJ_PRJ_BITS * 2 + SGRPROJ_PARAMS_BITS)
Drestoration.c626 xq[1] = (1 << SGRPROJ_PRJ_BITS) - xqd[1]; in decode_xq()
632 xq[1] = (1 << SGRPROJ_PRJ_BITS) - xq[0] - xqd[1]; in decode_xq()
926 int32_t v = u << SGRPROJ_PRJ_BITS; in apply_selfguided_restoration_c()
932 (int16_t)ROUND_POWER_OF_TWO(v, SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_c()
/external/libaom/libaom/test/
Dpickrst_test.cc96 xq[0] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest()
97 xq[1] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest()
150 xq[0] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest_ExtremeValues()
151 xq[1] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest_ExtremeValues()
261 xq[0] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest()
262 xq[1] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest()
315 xq[0] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest_ExtremeValues()
316 xq[1] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest_ExtremeValues()
/external/libaom/libaom/av1/encoder/
Dpickrst.c199 int32_t v = u << SGRPROJ_PRJ_BITS; in av1_lowbd_pixel_proj_error_c()
202 ROUND_POWER_OF_TWO(v, SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS) - src[j]; in av1_lowbd_pixel_proj_error_c()
215 int32_t v = u << SGRPROJ_PRJ_BITS; in av1_lowbd_pixel_proj_error_c()
218 ROUND_POWER_OF_TWO(v, SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS) - src[j]; in av1_lowbd_pixel_proj_error_c()
230 int32_t v = u << SGRPROJ_PRJ_BITS; in av1_lowbd_pixel_proj_error_c()
233 ROUND_POWER_OF_TWO(v, SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS) - src[j]; in av1_lowbd_pixel_proj_error_c()
264 const int32_t half = 1 << (SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS - 1); in av1_highbd_pixel_proj_error_c()
278 const int32_t e = (v >> (SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS)) + d - s; in av1_highbd_pixel_proj_error_c()
306 const int32_t e = (v >> (SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS)) + d - s; in av1_highbd_pixel_proj_error_c()
484 xq[1] = (int)signed_rounded_divide(C[1] * (1 << SGRPROJ_PRJ_BITS), Det); in get_proj_subspace()
[all …]
/external/libaom/libaom/av1/common/x86/
Dselfguided_sse4.c620 __m128i v_0 = _mm_slli_epi32(u_0, SGRPROJ_PRJ_BITS); in apply_selfguided_restoration_sse4_1()
621 __m128i v_1 = _mm_slli_epi32(u_1, SGRPROJ_PRJ_BITS); in apply_selfguided_restoration_sse4_1()
640 round_for_shift(SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_sse4_1()
642 SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_sse4_1()
644 SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_sse4_1()
Dselfguided_avx2.c675 __m256i v_0 = _mm256_slli_epi32(u_0, SGRPROJ_PRJ_BITS); in apply_selfguided_restoration_avx2()
676 __m256i v_1 = _mm256_slli_epi32(u_1, SGRPROJ_PRJ_BITS); in apply_selfguided_restoration_avx2()
695 round_for_shift(SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_avx2()
697 _mm256_add_epi32(v_0, rounding), SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_avx2()
699 _mm256_add_epi32(v_1, rounding), SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_avx2()
/external/libaom/libaom/av1/common/arm/
Dselfguided_neon.c1456 v0 = vshlq_n_s32(u0, SGRPROJ_PRJ_BITS); in apply_selfguided_restoration_neon()
1457 v4 = vshlq_n_s32(u4, SGRPROJ_PRJ_BITS); in apply_selfguided_restoration_neon()
1481 d0 = vqrshrn_n_s32(v0, SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_neon()
1482 d4 = vqrshrn_n_s32(v4, SGRPROJ_PRJ_BITS + SGRPROJ_RST_BITS); in apply_selfguided_restoration_neon()
/external/libaom/libaom/av1/encoder/x86/
Dpickrst_avx2.c498 const int32_t shift = SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS; in av1_lowbd_pixel_proj_error_avx2()
630 const int32_t shift = SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS; in av1_highbd_pixel_proj_error_avx2()
Dpickrst_sse4.c507 const int32_t shift = SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS; in av1_lowbd_pixel_proj_error_sse4_1()
630 const int32_t shift = SGRPROJ_RST_BITS + SGRPROJ_PRJ_BITS; in av1_highbd_pixel_proj_error_sse4_1()
/external/libaom/libaom/av1/decoder/
Ddecodeframe.c2087 sgrproj_info->xqd[1] = clamp((1 << SGRPROJ_PRJ_BITS) - sgrproj_info->xqd[0], in read_sgrproj_filter()