Home
last modified time | relevance | path

Searched refs:RightShiftWithRounding (Results 1 – 25 of 29) sorted by relevance

12

/external/libgav1/libgav1/src/dsp/
Dinverse_transform.cc71 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 …]
Dwarp.cc236 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()
Dconvolve.cc106 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 …]
Dmask_blend.cc34 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()
Dfilm_grain.cc84 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 …]
Dintra_edge.cc46 dst_buffer[i] = RightShiftWithRounding(sum, 4); in IntraEdgeFilter_C()
64 Clip3(RightShiftWithRounding(sum, 4), 0, (1 << bitdepth) - 1); in IntraEdgeUpsampler_C()
Dintrapred_directional.cc89 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()
Dobmc.cc46 pred[x] = static_cast<Pixel>(RightShiftWithRounding( in OverlapBlendVertical_C()
69 pred[x] = static_cast<Pixel>(RightShiftWithRounding( in OverlapBlendHorizontal_C()
Dloop_restoration.cc82 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()
Daverage_blend.cc51 Clip3(RightShiftWithRounding(res, inter_post_round_bits + 1), 0, in AverageBlend_C()
Ddistance_weighted_blend.cc53 Clip3(RightShiftWithRounding(res, inter_post_round_bits + 4), 0, in DistanceWeightedBlend_C()
Dsuper_res.cc60 dst[x] = Clip3(RightShiftWithRounding(sum, kFilterBits), 0, in SuperRes_C()
Dintrapred_filter.cc89 Clip3(RightShiftWithRounding(value, 4), 0, kMaxPixel)); in FilterIntraPredictor_C()
Dweight_mask.cc43 const int difference = RightShiftWithRounding( in WeightMask_C()
Dintrapred_smooth.cc88 RightShiftWithRounding(pred, kSmoothWeightScale + 1)); in Smooth()
115 static_cast<Pixel>(RightShiftWithRounding(pred, kSmoothWeightScale)); in SmoothVertical()
142 static_cast<Pixel>(RightShiftWithRounding(pred, kSmoothWeightScale)); in SmoothHorizontal()
Dloop_filter.cc192 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/
Dintra_edge_neon.cc59 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()
Dwarp_neon.cc58 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()
Dintrapred_cfl_neon.cc37 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/
Dcommon.h230 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/
Dloop_restoration_info.cc78 std::max(1, RightShiftWithRounding( in Reset()
81 1, RightShiftWithRounding(plane_height, in Reset()
Dfilm_grain.cc372 luma_grain_row[x] = RightShiftWithRounding( in GenerateLumaGrain()
397 u_grain_row[x] = RightShiftWithRounding( in GenerateChromaGrains()
413 v_grain_row[x] = RightShiftWithRounding( in GenerateChromaGrains()
Dwarp_prediction.cc72 ? RightShiftWithRounding(e, n - kDivisorLookupBits) in GenerateApproximateDivisor()
/external/libgav1/libgav1/src/dsp/x86/
Dwarp_sse4.cc66 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()
Dintra_edge_sse4.cc182 dst_buffer[1] = RightShiftWithRounding( in IntraEdgeFilter_SSE4_1()
198 dst_buffer[final_index] = RightShiftWithRounding(sum, 4); in IntraEdgeFilter_SSE4_1()

12