Lines Matching defs:distance
53 float distance;
61 * quality numbers to libjxl's butteraugli distance for
64 * Setting distance explicitly is preferred, but this will
71 * @return Butteraugli distance between 0.0 and 15.0
122 if (ctx->distance < 0.0) {
125 ctx->distance = quality_to_distance((float)avctx->global_quality / FF_QP2LAMBDA);
128 ctx->distance = 1.0;
132 * 0.01 is the minimum distance accepted for lossy
135 if (ctx->distance > 0.0 && ctx->distance < 0.01)
136 ctx->distance = 0.01;
137 if (JxlEncoderSetFrameDistance(ctx->options, ctx->distance) != JXL_ENC_SUCCESS) {
138 av_log(avctx, AV_LOG_ERROR, "Failed to set distance: %f\n", ctx->distance);
148 ctx->modular || ctx->distance <= 0.0 ? 1 : -1) != JXL_ENC_SUCCESS) {
292 info.uses_original_profile = ctx->distance == 0.0;
448 { "distance", "Maximum Butteraugli distance (quality setting, "
449 "lower = better, zero = lossless, default 1.0)", OFFSET(distance), AV_OPT_TYPE_FLOAT, { .dbl = -1.0 }, -1.0, 15.0, VE },