Searched refs:cur_diff (Results 1 – 4 of 4) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | g722.c | 74 static inline void s_zero(int cur_diff, struct G722Band *band) in s_zero() argument 81 d*((band->diff_mem[k]^cur_diff) < 0 ? -128 : 128); \ in s_zero() 85 if (cur_diff) { in s_zero() 91 ACCUM(0, cur_diff * 2, 1); in s_zero() 98 ACCUM(0, cur_diff * 2, 0); in s_zero() 110 static void do_adaptive_prediction(struct G722Band *band, const int cur_diff) in do_adaptive_prediction() argument 114 const int cur_part_reconst = band->s_zero + cur_diff < 0; in do_adaptive_prediction() 127 s_zero(cur_diff, band); in do_adaptive_prediction() 129 cur_qtzd_reconst = av_clip_int16((band->s_predictor + cur_diff) * 2); in do_adaptive_prediction()
|
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/ |
D | predictor_enc.c | 346 float cur_diff; in GetBestPredictorForTile() local 385 cur_diff = PredictionCostSpatialHistogram( in GetBestPredictorForTile() 388 if (mode == left_mode) cur_diff -= kSpatialPredictorBias; in GetBestPredictorForTile() 389 if (mode == above_mode) cur_diff -= kSpatialPredictorBias; in GetBestPredictorForTile() 391 if (cur_diff < best_diff) { in GetBestPredictorForTile() 395 best_diff = cur_diff; in GetBestPredictorForTile() 545 float cur_diff; in GetPredictionCostCrossColorRed() local 550 cur_diff = PredictionCostCrossColor(accumulated_red_histo, histo); in GetPredictionCostCrossColorRed() 552 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorRed() 555 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorRed() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | predictor_enc.c | 346 float cur_diff; in GetBestPredictorForTile() local 385 cur_diff = PredictionCostSpatialHistogram( in GetBestPredictorForTile() 388 if (mode == left_mode) cur_diff -= kSpatialPredictorBias; in GetBestPredictorForTile() 389 if (mode == above_mode) cur_diff -= kSpatialPredictorBias; in GetBestPredictorForTile() 391 if (cur_diff < best_diff) { in GetBestPredictorForTile() 395 best_diff = cur_diff; in GetBestPredictorForTile() 545 float cur_diff; in GetPredictionCostCrossColorRed() local 550 cur_diff = PredictionCostCrossColor(accumulated_red_histo, histo); in GetPredictionCostCrossColorRed() 552 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorRed() 555 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorRed() [all …]
|
/third_party/gstreamer/gstreamer/gst/ |
D | gststructure.c | 2761 gdouble cur_diff; in gst_structure_fixate_field_nearest_fraction() local 2781 cur_diff = target - list_double; in gst_structure_fixate_field_nearest_fraction() 2783 GST_DEBUG ("curr diff %g, list %g", cur_diff, list_double); in gst_structure_fixate_field_nearest_fraction() 2785 if (cur_diff < 0) in gst_structure_fixate_field_nearest_fraction() 2786 cur_diff = -cur_diff; in gst_structure_fixate_field_nearest_fraction() 2788 if (!best || cur_diff < best_diff) { in gst_structure_fixate_field_nearest_fraction() 2791 best_diff = cur_diff; in gst_structure_fixate_field_nearest_fraction()
|