Lines Matching defs:error
649 static int estimate_dcs(int *error, int16_t *blocks, int blocks_per_slice,
661 *error += FFABS(blocks[0] - 0x4000) % scale;
665 *error += FFABS(blocks[0] - 0x4000) % scale;
680 static int estimate_acs(int *error, int16_t *blocks, int blocks_per_slice,
697 *error += FFABS(blocks[idx]) % qmat[scan[i]];
716 static int estimate_slice_plane(ProresContext *ctx, int *error, int plane,
727 bits = estimate_dcs(error, td->blocks[plane], blocks_per_slice, qmat[0]);
728 bits += estimate_acs(error, td->blocks[plane], blocks_per_slice,
803 int error, bits, bits_limit;
862 error = 0;
863 bits += estimate_slice_plane(ctx, &error, 0,
869 bits += estimate_slice_plane(ctx, &error, i,
876 error = SCORE_LIMIT;
879 slice_score[q] = error;
888 error = 0;
900 bits += estimate_slice_plane(ctx, &error, 0,
906 bits += estimate_slice_plane(ctx, &error, i,
917 slice_score[max_quant + 1] = error;
930 error = slice_score[q];
932 error = SCORE_LIMIT;
934 if (td->nodes[prev].score < SCORE_LIMIT && error < SCORE_LIMIT)
935 new_score = td->nodes[prev].score + error;
948 error = td->nodes[trellis_node + min_quant].score;
951 if (td->nodes[trellis_node + q].score <= error) {
952 error = td->nodes[trellis_node + q].score;