/external/libgav1/libgav1/src/dsp/ |
D | inverse_transform.cc | 71 dst[a] = RangeCheckValue(RightShiftWithRounding(flip ? y : x, 12), range); in ButterflyRotation_C() 72 dst[b] = RangeCheckValue(RightShiftWithRounding(flip ? x : y, 12), range); in ButterflyRotation_C() 86 dst[a] = RangeCheckValue(RightShiftWithRounding(flip ? y : x, 12), range); in ButterflyRotationFirstIsZero_C() 87 dst[b] = RangeCheckValue(RightShiftWithRounding(flip ? x : y, 12), range); in ButterflyRotationFirstIsZero_C() 102 dst[a] = RangeCheckValue(RightShiftWithRounding(flip ? y : x, 12), range); in ButterflyRotationSecondIsZero_C() 103 dst[b] = RangeCheckValue(RightShiftWithRounding(flip ? x : y, 12), range); in ButterflyRotationSecondIsZero_C() 401 dst[0] = RightShiftWithRounding(dst[0] * kTransformRowMultiplier, 12); in DctDcOnly_C() 407 dst[0] = RightShiftWithRounding(dst[0], row_shift); in DctDcOnly_C() 466 int32_t dst_0 = RightShiftWithRounding(x0, 12); in Adst4_C() 467 int32_t dst_1 = RightShiftWithRounding(x1, 12); in Adst4_C() [all …]
|
D | warp.cc | 236 RightShiftWithRounding(sy, kWarpedDiffPrecisionBits) + in Warp_C() 245 sum = RightShiftWithRounding(sum, kRoundBitsVertical); in Warp_C() 282 RightShiftWithRounding(sx, kWarpedDiffPrecisionBits) + in Warp_C() 307 RightShiftWithRounding(sum, kRoundBitsHorizontal); in Warp_C() 334 RightShiftWithRounding(sx, kWarpedDiffPrecisionBits) + in Warp_C() 359 RightShiftWithRounding(sum, kRoundBitsHorizontal) - in Warp_C() 401 RightShiftWithRounding(sy, kWarpedDiffPrecisionBits) + in Warp_C() 412 sum = RightShiftWithRounding(sum, kRoundBitsVertical); in Warp_C()
|
D | convolve.cc | 106 intermediate[x] = RightShiftWithRounding(sum, kRoundBitsHorizontal - 1); in ConvolveScale2D_C() 130 dest[x] = Clip3(RightShiftWithRounding(sum, kRoundBitsVertical - 1), 0, in ConvolveScale2D_C() 191 intermediate[x] = RightShiftWithRounding(sum, kRoundBitsHorizontal - 1); in ConvolveCompoundScale2D_C() 215 sum = RightShiftWithRounding(sum, kRoundBitsVertical - 1); in ConvolveCompoundScale2D_C() 273 intermediate[x] = RightShiftWithRounding(sum, kRoundBitsHorizontal - 1); in ConvolveCompound2D_C() 294 sum = RightShiftWithRounding(sum, kRoundBitsVertical - 1); in ConvolveCompound2D_C() 352 intermediate[x] = RightShiftWithRounding(sum, kRoundBitsHorizontal - 1); in Convolve2D_C() 373 dest[x] = Clip3(RightShiftWithRounding(sum, kRoundBitsVertical - 1), 0, in Convolve2D_C() 415 sum = RightShiftWithRounding(sum, kRoundBitsHorizontal - 1); in ConvolveHorizontal_C() 416 dest[x] = Clip3(RightShiftWithRounding(sum, bits), 0, max_pixel_value); in ConvolveHorizontal_C() [all …]
|
D | mask_blend.cc | 34 return static_cast<uint8_t>(RightShiftWithRounding( in GetMaskValue() 38 return static_cast<uint8_t>(RightShiftWithRounding( in GetMaskValue() 68 dst[x] = static_cast<Pixel>(RightShiftWithRounding( in MaskBlend_C() 75 Clip3(RightShiftWithRounding(res, inter_post_round_bits), 0, in MaskBlend_C() 100 prediction_1[x] = static_cast<uint8_t>(RightShiftWithRounding( in InterIntraMaskBlend8bpp_C()
|
D | film_grain.cc | 84 return start + RightShiftWithRounding((end - start) * remainder, shift); in ScaleLut() 148 luma_grain[y * kLumaWidth + x] + RightShiftWithRounding(sum, shift), in ApplyAutoRegressiveFilterToLumaGrain_C() 219 u_grain[y * chroma_width + x] + RightShiftWithRounding(sum_u, shift), in ApplyAutoRegressiveFilterToChromaGrains_C() 222 v_grain[y * chroma_width + x] + RightShiftWithRounding(sum_v, shift), in ApplyAutoRegressiveFilterToChromaGrains_C() 360 Clip3(RightShiftWithRounding(grain_sample, 5), in ConstructNoiseStripesWithOverlap_C() 373 Clip3(RightShiftWithRounding(grain_sample, 5), in ConstructNoiseStripesWithOverlap_C() 383 Clip3(RightShiftWithRounding(grain_sample, 5), in ConstructNoiseStripesWithOverlap_C() 429 grain = Clip3(RightShiftWithRounding(grain, 5), GetGrainMin<bitdepth>(), in WriteOverlapLine_C() 517 noise = RightShiftWithRounding( in BlendNoiseWithImageLuma_C() 564 average_luma = RightShiftWithRounding( in BlendNoiseWithImageChroma_C() [all …]
|
D | intra_edge.cc | 46 dst_buffer[i] = RightShiftWithRounding(sum, 4); in IntraEdgeFilter_C() 64 Clip3(RightShiftWithRounding(sum, 4), 0, (1 << bitdepth) - 1); in IntraEdgeUpsampler_C()
|
D | intrapred_directional.cc | 89 dst[x] = RightShiftWithRounding(val, 5 /*log2(32)*/); in DirectionalIntraPredictorZone1_C() 138 dst[x] = RightShiftWithRounding(val, 5); in DirectionalIntraPredictorZone2_C() 178 dst[x] = RightShiftWithRounding(val, 5); in DirectionalIntraPredictorZone3_C()
|
D | obmc.cc | 46 pred[x] = static_cast<Pixel>(RightShiftWithRounding( in OverlapBlendVertical_C() 69 pred[x] = static_cast<Pixel>(RightShiftWithRounding( in OverlapBlendHorizontal_C()
|
D | loop_restoration.cc | 82 const int rounded_sum = RightShiftWithRounding(sum, kRoundBitsHorizontal); in WienerHorizontal() 111 const int rounded_sum = RightShiftWithRounding(sum, kRoundBitsVertical); in WienerVertical() 318 a = RightShiftWithRounding(a, (bitdepth - 8) << 1); in CalculateIntermediate() 321 const uint32_t d = RightShiftWithRounding(b, bitdepth - 8); in CalculateIntermediate() 333 const uint32_t z = RightShiftWithRounding(p * s, kSgrProjScaleBits); in CalculateIntermediate() 345 *b_ptr = RightShiftWithRounding(b2, kSgrProjReciprocalBits); in CalculateIntermediate() 421 return RightShiftWithRounding(v, in CalculateFilteredOutput() 451 const int s = src + RightShiftWithRounding( in SelfGuidedFinal()
|
D | average_blend.cc | 51 Clip3(RightShiftWithRounding(res, inter_post_round_bits + 1), 0, in AverageBlend_C()
|
D | distance_weighted_blend.cc | 53 Clip3(RightShiftWithRounding(res, inter_post_round_bits + 4), 0, in DistanceWeightedBlend_C()
|
D | super_res.cc | 60 dst[x] = Clip3(RightShiftWithRounding(sum, kFilterBits), 0, in SuperRes_C()
|
D | intrapred_filter.cc | 89 Clip3(RightShiftWithRounding(value, 4), 0, kMaxPixel)); in FilterIntraPredictor_C()
|
D | weight_mask.cc | 43 const int difference = RightShiftWithRounding( in WeightMask_C()
|
D | intrapred_smooth.cc | 88 RightShiftWithRounding(pred, kSmoothWeightScale + 1)); in Smooth() 115 static_cast<Pixel>(RightShiftWithRounding(pred, kSmoothWeightScale)); in SmoothVertical() 142 static_cast<Pixel>(RightShiftWithRounding(pred, kSmoothWeightScale)); in SmoothHorizontal()
|
D | loop_filter.cc | 192 return static_cast<Pixel>(RightShiftWithRounding(filter_value, 3)); in ApplyFilter6() 292 return static_cast<Pixel>(RightShiftWithRounding(filter_value, 3)); in ApplyFilter8() 375 return static_cast<Pixel>(RightShiftWithRounding(filter_value, 4)); in ApplyFilter14()
|
/external/libgav1/libgav1/src/dsp/arm/ |
D | intra_edge_neon.cc | 59 const uint8_t last_val = RightShiftWithRounding( in IntraEdgeFilter_NEON() 126 special_vals[0] = RightShiftWithRounding( in IntraEdgeFilter_NEON() 134 special_vals[1] = RightShiftWithRounding( in IntraEdgeFilter_NEON() 139 special_vals[2] = RightShiftWithRounding( in IntraEdgeFilter_NEON() 328 const uint16_t last_val = RightShiftWithRounding( in IntraEdgeFilter_NEON() 379 special_vals[0] = RightShiftWithRounding( in IntraEdgeFilter_NEON() 387 special_vals[1] = RightShiftWithRounding( in IntraEdgeFilter_NEON() 392 special_vals[2] = RightShiftWithRounding( in IntraEdgeFilter_NEON()
|
D | warp_neon.cc | 58 const int offset = RightShiftWithRounding(sx, kWarpedDiffPrecisionBits) + in HorizontalFilter() 269 RightShiftWithRounding(sy, kWarpedDiffPrecisionBits) + in Warp_NEON() 280 RightShiftWithRounding(sum, kRoundBitsVertical); in Warp_NEON() 296 RightShiftWithRounding(sy, kWarpedDiffPrecisionBits) + in Warp_NEON() 398 RightShiftWithRounding(sy, kWarpedDiffPrecisionBits) + in Warp_NEON()
|
D | intrapred_cfl_neon.cc | 37 return RightShiftWithRounding(sum, FloorLog2(width) + FloorLog2(height)); in Average() 542 RightShiftWithRounding(SumVector(vpaddl_u16(sum)), block_height_log2 - 1); in CflSubsampler444_4xH_NEON() 617 RightShiftWithRounding(SumVector(sum), block_height_log2); in CflSubsampler444_8xH_NEON() 712 const uint32_t average_sum = RightShiftWithRounding( in CflSubsampler444_WxH_NEON() 827 const uint32_t average_sum = RightShiftWithRounding( in CflSubsampler420_4xH_NEON() 931 const uint32_t average_sum = RightShiftWithRounding( in CflSubsampler420Impl_8xH_NEON() 1037 const uint32_t average_sum = RightShiftWithRounding( in CflSubsampler420Impl_WxH_NEON()
|
/external/libgav1/libgav1/src/utils/ |
D | common.h | 230 inline int32_t RightShiftWithRounding(int32_t value, int bits) { in RightShiftWithRounding() function 235 inline uint32_t RightShiftWithRounding(uint32_t value, int bits) { in RightShiftWithRounding() function 242 inline int32_t RightShiftWithRounding(int64_t value, int bits) { in RightShiftWithRounding() function 252 return RightShiftWithRounding(value + (value >> 31), bits); in RightShiftWithRoundingSigned() 262 return RightShiftWithRounding(value + (value >> 63), bits); in RightShiftWithRoundingSigned()
|
/external/libgav1/libgav1/src/ |
D | loop_restoration_info.cc | 78 std::max(1, RightShiftWithRounding( in Reset() 81 1, RightShiftWithRounding(plane_height, in Reset()
|
D | film_grain.cc | 372 luma_grain_row[x] = RightShiftWithRounding( in GenerateLumaGrain() 397 u_grain_row[x] = RightShiftWithRounding( in GenerateChromaGrains() 413 v_grain_row[x] = RightShiftWithRounding( in GenerateChromaGrains()
|
D | warp_prediction.cc | 72 ? RightShiftWithRounding(e, n - kDivisorLookupBits) in GenerateApproximateDivisor()
|
/external/libgav1/libgav1/src/dsp/x86/ |
D | warp_sse4.cc | 66 const int offset = RightShiftWithRounding(sx, kWarpedDiffPrecisionBits) + in HorizontalFilter() 177 const int offset = RightShiftWithRounding(sy, kWarpedDiffPrecisionBits) + in VerticalFilter() 198 const int offset = RightShiftWithRounding(sy, kWarpedDiffPrecisionBits) + in VerticalFilter()
|
D | intra_edge_sse4.cc | 182 dst_buffer[1] = RightShiftWithRounding( in IntraEdgeFilter_SSE4_1() 198 dst_buffer[final_index] = RightShiftWithRounding(sum, 4); in IntraEdgeFilter_SSE4_1()
|