Home
last modified time | relevance | path

Searched refs:distortion (Results 1 - 10 of 10) sorted by relevance

/third_party/skia/third_party/externals/libwebp/src/enc/
H A Dpicture_psnr_enc.c10 // WebPPicture tools for measuring distortion
30 // local-min distortion
135 int type, float* distortion, float* result) { in WebPPlaneDistortion()
142 result == NULL || distortion == NULL) { in WebPPlaneDistortion()
165 *distortion = (float)metric(src, width, ref, width, width, height); in WebPPlaneDistortion()
168 *result = (type == 1) ? (float)GetLogSSIM(*distortion, (double)width * height) in WebPPlaneDistortion()
169 : (float)GetPSNR(*distortion, (double)width * height); in WebPPlaneDistortion()
198 // We always measure distortion in ARGB space. in WebPPictureDistortion()
202 float distortion; in WebPPictureDistortion() local
209 w, h, 4, type, &distortion, result in WebPPictureDistortion()
132 WebPPlaneDistortion(const uint8_t* src, size_t src_stride, const uint8_t* ref, size_t ref_stride, int width, int height, size_t x_step, int type, float* distortion, float* result) WebPPlaneDistortion() argument
229 WebPPlaneDistortion(const uint8_t* src, size_t src_stride, const uint8_t* ref, size_t ref_stride, int width, int height, size_t x_step, int type, float* distortion, float* result) WebPPlaneDistortion() argument
[all...]
H A Dframe_enc.c580 uint64_t distortion = 0; in OneStatPass() local
595 distortion += info.D; in OneStatPass()
609 s->value = GetPSNR(distortion, pixel_count); in OneStatPass()
806 uint64_t distortion = 0; in VP8EncTokenLoop() local
830 distortion += info.D; in VP8EncTokenLoop()
850 stats.value = GetPSNR(distortion, pixel_count); in VP8EncTokenLoop()
H A Dquant_enc.c43 #define RD_DISTO_MULT 256 // distortion multiplier (equivalent of lambda)
584 score_t distortion) { in RDScoreTrellis()
585 return rate * lambda + RD_DISTO_MULT * distortion; in RDScoreTrellis()
676 // subtract to max_error as distortion. in TrellisQuantizeBlock()
677 // Here, distortion = sum of (|coeff_i| - level_i * Q_i)^2 in TrellisQuantizeBlock()
951 // RD-opt decision. Reconstruct each modes, evalue distortion and bit-cost.
1011 // Block is very flat. We put emphasis on the distortion being very low! in PickBestIntra16()
1031 // distortion, record max delta so we can later adjust the minimal filtering in PickBestIntra16()
1222 // Refine intra16/intra4 sub-modes based on distortion only (not rate).
1241 if (is_i16) { // First, evaluate Intra16 distortion in RefineUsingDistortion()
583 RDScoreTrellis(int lambda, score_t rate, score_t distortion) RDScoreTrellis() argument
[all...]
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/descrip/
H A DDistortionDescription.h42 return DriveControl<iter_type> {SingleFunctionEffects::distortion<iter_type>, scale}; in buildEffect()
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/
H A DSingleFunctionEffects.h49 void distortion(iter_type beg, iter_type end) { in distortion() function
/third_party/ffmpeg/libavcodec/
H A Dsnowenc.c622 int distortion; in get_block_rd() local
678 distortion = ff_w97_32_c(&s->m, src + sx + sy*ref_stride, dst + sx + sy*ref_stride, ref_stride, 32); in get_block_rd()
680 distortion = ff_w53_32_c(&s->m, src + sx + sy*ref_stride, dst + sx + sy*ref_stride, ref_stride, 32); in get_block_rd()
682 distortion = 0; in get_block_rd()
685 distortion += s->mecc.me_cmp[0](&s->m, src + off, dst + off, ref_stride, 16); in get_block_rd()
690 distortion = s->mecc.me_cmp[0](&s->m, src + sx + sy*ref_stride, dst + sx + sy*ref_stride, ref_stride, block_w*2); in get_block_rd()
704 return distortion + rate*penalty_factor; in get_block_rd()
724 int distortion= 0; in get_4block_rd() local
754 distortion += s->mecc.me_cmp[block_w==8](&s->m, src + x + y*ref_stride, dst + x + y*ref_stride, ref_stride, block_h); in get_4block_rd()
773 return distortion in get_4block_rd()
[all...]
H A Dmpegvideo_enc.c3502 // s->lambda= s->current_picture_ptr->quality; //FIXME qscale / ... stuff for ME rate distortion in encode_picture()
3531 s->mb_intra=0; //for the rate distortion & bit compare functions in encode_picture()
3929 int distortion; in dct_quantize_trellis_c() local
3953 distortion= (unquant_coeff - dct_coeff) * (unquant_coeff - dct_coeff) - zero_distortion; in dct_quantize_trellis_c()
3958 int score= distortion + length[UNI_AC_ENC_INDEX(run, level)]*lambda; in dct_quantize_trellis_c()
3971 int score= distortion + last_length[UNI_AC_ENC_INDEX(run, level)]*lambda; in dct_quantize_trellis_c()
3982 distortion += esc_length*lambda; in dct_quantize_trellis_c()
3985 int score= distortion + score_tab[i-run]; in dct_quantize_trellis_c()
3997 int score= distortion + score_tab[i-run]; in dct_quantize_trellis_c()
4059 int unquant_coeff, score, distortion; in dct_quantize_trellis_c() local
[all...]
H A Dme_cmp.c780 int i, last, run, bits, level, distortion, start_i; in rd8x8_c() local
845 distortion = s->mecc.sse[1](NULL, lsrc2, lsrc1, 8, 8); in rd8x8_c()
847 return distortion + ((bits * s->qscale * s->qscale * 109 + 64) >> 7); in rd8x8_c()
/third_party/skia/third_party/externals/libwebp/src/webp/
H A Dencode.h108 float target_PSNR; // if non-zero, specifies the minimal distortion to
333 // 6: bit cost, 7: distortion
399 // Compute the single distortion for packed planes of samples.
400 // 'src' will be compared to 'ref', and the raw distortion stored into
401 // '*distortion'. The refined metric (log(MSE), log(1 - ssim),...' will be
411 float* distortion, float* result);
413 // Compute PSNR, SSIM or LSIM distortion metric between two pictures. Results
414 // are in dB, stored in result[] in the B/G/R/A/All order. The distortion is
/third_party/ffmpeg/libavcodec/x86/
H A Dcelt_pvq_search.asm299 ; Use Syy/2 in distortion parameter calculations.

Completed in 16 milliseconds