/external/libgav1/libgav1/src/ |
D | warp_prediction.cc | 84 return Clip3(value, in DiagonalClamp() 91 return Clip3(value, -kWarpModelAffineClamp + 1, kWarpModelAffineClamp - 1); in NonDiagonalClamp() 96 LeftShift(RightShiftWithRoundingSigned(Clip3(value, INT16_MIN, INT16_MAX), in GetShearParameter() 235 Clip3(vx, -kWarpModelTranslationClamp, kWarpModelTranslationClamp - 1); in WarpEstimation() 237 Clip3(vy, -kWarpModelTranslationClamp, kWarpModelTranslationClamp - 1); in WarpEstimation()
|
D | quantizer.cc | 246 return Clip3(segment_qindex, kMinQuantizer, kMaxQuantizer); in GetQIndex() 260 return dc_lookup_[Clip3(qindex + params_.delta_dc[plane], kMinQuantizer, in GetDcValue() 265 return ac_lookup_[Clip3(qindex + params_.delta_ac[plane], kMinQuantizer, in GetAcValue()
|
D | loop_restoration_info.cc | 230 Clip3((1 << kSgrProjPrecisionBits) - in ReadSgrProjInfo()
|
D | motion_vector.cc | 486 Clip3(offset_0, -kMaxFrameDistance, kMaxFrameDistance); in TemporalScan() 492 Clip3(offset_1, -kMaxFrameDistance, kMaxFrameDistance); in TemporalScan()
|
/external/libgav1/libgav1/src/dsp/ |
D | loop_filter.cc | 95 const int a = 3 * (q0 - p0) + Clip3(p1 - q1, min_signed_val, max_signed_val); in Filter2_C() 97 const int a1 = Clip3(a + 4, min_signed_val, max_signed_val) >> 3; in Filter2_C() 98 const int a2 = Clip3(a + 3, min_signed_val, max_signed_val) >> 3; in Filter2_C() 100 p[-step] = Clip3(p0 + a2, 0, max_unsigned_val); in Filter2_C() 101 p[0] = Clip3(q0 - a1, 0, max_unsigned_val); in Filter2_C() 114 const int a1 = Clip3(a + 4, min_signed_val, max_signed_val) >> 3; in Filter4_C() 115 const int a2 = Clip3(a + 3, min_signed_val, max_signed_val) >> 3; in Filter4_C() 118 p[-2 * step] = Clip3(p1 + a3, 0, max_unsigned_val); in Filter4_C() 119 p[-1 * step] = Clip3(p0 + a2, 0, max_unsigned_val); in Filter4_C() 120 p[0 * step] = Clip3(q0 - a1, 0, max_unsigned_val); in Filter4_C() [all …]
|
D | film_grain.cc | 147 luma_grain[y * kLumaWidth + x] = Clip3( in ApplyAutoRegressiveFilterToLumaGrain_C() 218 u_grain[y * chroma_width + x] = Clip3( in ApplyAutoRegressiveFilterToChromaGrains_C() 221 v_grain[y * chroma_width + x] = Clip3( 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() 519 out_y[y * dest_stride_y + x] = Clip3(orig + noise, min_value, max_luma); in BlendNoiseWithImageLuma_C() 574 Clip3((combined >> 6) + LeftShift(offset, bitdepth - 8), 0, in BlendNoiseWithImageChroma_C() 580 Clip3(orig + noise, min_value, max_chroma); in BlendNoiseWithImageChroma_C() [all …]
|
D | intra_edge.cc | 43 const int k = Clip3(i + j - 2, 0, size - 1); in IntraEdgeFilter_C() 64 Clip3(RightShiftWithRounding(sum, 4), 0, (1 << bitdepth) - 1); in IntraEdgeUpsampler_C()
|
D | inverse_transform.cc | 117 dst[a] = Clip3(x, min, max); in HadamardRotation_C() 118 dst[b] = Clip3(y, min, max); in HadamardRotation_C() 130 dst[j] = Clip3(dst[j], intermediate_clamp_min, intermediate_clamp_max); in ClampIntermediate() 855 dst_i = Clip3(dst_i, INT16_MIN, INT16_MAX); in Identity4Row_C() 888 dst_i = Clip3(dst_i, INT16_MIN, INT16_MAX); in Identity4DcOnly_C() 908 dst_i = Clip3(dst_i, INT16_MIN, INT16_MAX); in Identity8Row_C() 935 dst_i = Clip3(dst_i, INT16_MIN, INT16_MAX); in Identity8DcOnly_C() 945 dst[0] = Clip3(dst[0], intermediate_clamp_min, intermediate_clamp_max); in Identity8DcOnly_C() 965 dst_i = Clip3(dst_i, INT16_MIN, INT16_MAX); in Identity16Row_C() 999 dst_i = Clip3(dst_i, INT16_MIN, INT16_MAX); in Identity16DcOnly_C() [all …]
|
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 | warp.cc | 250 dst_row[x] = static_cast<DestType>(Clip3(sum, 0, kMaxPixel)); in Warp_C() 417 dst_row[x] = static_cast<DestType>(Clip3(sum, 0, kMaxPixel)); in Warp_C()
|
D | super_res.cc | 60 dst[x] = Clip3(RightShiftWithRounding(sum, kFilterBits), 0, in SuperRes_C()
|
D | cdef.cc | 116 Clip3(threshold - (std::abs(diff) >> damping), 0, std::abs(diff)); in Constrain() 205 Clip3(pixel_value + offset, min_value, max_value)); in CdefFilter_C()
|
D | convolve.cc | 130 dest[x] = Clip3(RightShiftWithRounding(sum, kRoundBitsVertical - 1), 0, in ConvolveScale2D_C() 373 dest[x] = Clip3(RightShiftWithRounding(sum, kRoundBitsVertical - 1), 0, in Convolve2D_C() 416 dest[x] = Clip3(RightShiftWithRounding(sum, bits), 0, max_pixel_value); in ConvolveHorizontal_C() 457 dest[x] = Clip3(RightShiftWithRounding(sum, kFilterBits - 1), 0, in ConvolveVertical_C()
|
D | intrapred_filter.cc | 89 Clip3(RightShiftWithRounding(value, 4), 0, kMaxPixel)); in FilterIntraPredictor_C()
|
D | mask_blend.cc | 75 Clip3(RightShiftWithRounding(res, inter_post_round_bits), 0, in MaskBlend_C()
|
D | loop_restoration.cc | 83 (*wiener_buffer)[x] = Clip3(rounded_sum, -offset, limit - offset); in WienerHorizontal() 112 dst[x] = static_cast<Pixel>(Clip3(rounded_sum, 0, (1 << bitdepth) - 1)); in WienerVertical() 453 return static_cast<Pixel>(Clip3(s, 0, (1 << bitdepth) - 1)); in SelfGuidedFinal()
|
/external/libgav1/libgav1/src/dsp/x86/ |
D | film_grain_sse4.cc | 122 inline __m128i Clip3(const __m128i value, const __m128i low, in Clip3() function 192 StoreUnsigned(&out_y_row[x], Clip3(combined, floor, ceiling)); in BlendNoiseWithImageLuma_SSE4_1() 209 StoreUnsigned(&out_y_row[x], Clip3(combined, floor, ceiling)); in BlendNoiseWithImageLuma_SSE4_1() 271 StoreUnsigned(&out_chroma_row[x], Clip3(blended, floor, ceiling)); in BlendChromaPlaneWithCfl_SSE4_1() 296 StoreUnsigned(&out_chroma_row[x], Clip3(blended, floor, ceiling)); in BlendChromaPlaneWithCfl_SSE4_1() 396 StoreUnsigned(&out_chroma_row[x], Clip3(blended, floor, ceiling)); in BlendChromaPlane8bpp_SSE4_1() 423 StoreUnsigned(&out_chroma_row[x], Clip3(blended, floor, ceiling)); in BlendChromaPlane8bpp_SSE4_1()
|
D | intra_edge_sse4.cc | 191 for (int final_index = Clip3(i, 1, size - 2); final_index < size; in IntraEdgeFilter_SSE4_1() 195 const int k = Clip3(final_index + j - 2, 0, size - 1); in IntraEdgeFilter_SSE4_1()
|
/external/libgav1/libgav1/src/dsp/arm/ |
D | film_grain_neon.cc | 96 Clip3(grain_cursor[lane] + RightShiftWithRounding(result, shift), in WriteFinalAutoRegression() 111 Clip3(grain_cursor[lane] + RightShiftWithRounding(result, shift), in WriteFinalAutoRegression() 606 inline int16x8_t Clip3(const int16x8_t value, const int16x8_t low, in Clip3() function 734 vreinterpretq_u16_s16(Clip3(combined, floor, ceiling))); in BlendNoiseWithImageLuma_NEON() 810 vreinterpretq_u16_s16(Clip3(blended, floor, ceiling))); in BlendChromaPlaneWithCfl_NEON() 832 vreinterpretq_u16_s16(Clip3(blended, floor, ceiling))); in BlendChromaPlaneWithCfl_NEON() 933 vreinterpretq_u16_s16(Clip3(blended, floor, ceiling))); in BlendChromaPlane8bpp_NEON() 954 vreinterpretq_u16_s16(Clip3(blended, floor, ceiling))); in BlendChromaPlane8bpp_NEON()
|
/external/libgav1/libgav1/src/post_filter/ |
D | deblock.cc | 63 uint8_t level = Clip3(frame_header.loop_filter.level[level_index] + delta, 0, in ComputeDeblockFilterLevelsHelper() 68 Clip3(level + frame_header.segmentation.feature_data[segment_id][feature], in ComputeDeblockFilterLevelsHelper() 77 deblock_filter_levels[kReferenceFrameIntra][0] = Clip3( in ComputeDeblockFilterLevelsHelper() 87 deblock_filter_levels[reference_frame][mode_id] = Clip3( in ComputeDeblockFilterLevelsHelper()
|
D | super_res.cc | 159 num_threads = Clip3(height_ / thread_pool_rows, 1, num_threads); in ApplySuperResThreaded()
|
/external/libgav1/libgav1/src/utils/ |
D | common.h | 57 inline int32_t Clip3(int32_t value, int32_t low, int32_t high) { in Clip3() function 423 Clip3(RightShiftWithRoundingSigned( in GetMvProjection()
|
/external/libgav1/libgav1/src/tile/ |
D | prediction.cc | 865 step = Clip3(kNum4x4BlocksWide[candidate_block_size], 2, 16); in ObmcPrediction() 898 step = Clip3(kNum4x4BlocksHigh[candidate_block_size], 2, 16); in ObmcPrediction() 1067 const int copy_start_x = Clip3(ref_block_start_x, ref_start_x, ref_last_x); in BuildConvolveBlock() 1068 const int copy_start_y = Clip3(ref_block_start_y, ref_start_y, ref_last_y); in BuildConvolveBlock() 1069 const int copy_end_x = Clip3(ref_block_end_x, copy_start_x, ref_last_x); in BuildConvolveBlock()
|
D | tile.cc | 1902 predicted_mv.mv[0] = Clip3(predicted_mv.mv[0], min[0], max[0]); in AssignInterMv() 1903 predicted_mv.mv[1] = Clip3(predicted_mv.mv[1], min[1], max[1]); in AssignInterMv() 1927 predicted_mv.mv[0] = Clip3(predicted_mv.mv[0], min[0], max[0]); in AssignInterMv() 1928 predicted_mv.mv[1] = Clip3(predicted_mv.mv[1], min[1], max[1]); in AssignInterMv() 1963 bp.mv.mv[0].mv[0] += Clip3(ref_mv_1.mv[0], min[0], max[0]); in AssignIntraMv() 1964 bp.mv.mv[0].mv[1] += Clip3(ref_mv_1.mv[1], min[0], max[0]); in AssignIntraMv() 1967 bp.mv.mv[0].mv[0] += Clip3(ref_mv_0.mv[0], min[0], max[0]); in AssignIntraMv() 1968 bp.mv.mv[0].mv[1] += Clip3(ref_mv_0.mv[1], min[1], max[1]); in AssignIntraMv()
|