/third_party/ffmpeg/libavfilter/ |
D | vf_removegrain.c | 122 const int c1 = FFABS(c - av_clip(c, mi1, ma1)); in mode05() 123 const int c2 = FFABS(c - av_clip(c, mi2, ma2)); in mode05() 124 const int c3 = FFABS(c - av_clip(c, mi3, ma3)); in mode05() 125 const int c4 = FFABS(c - av_clip(c, mi4, ma4)); in mode05() 155 const int c1 = av_clip_uint16((FFABS(c - cli1) << 1) + d1); in mode06() 156 const int c2 = av_clip_uint16((FFABS(c - cli2) << 1) + d2); in mode06() 157 const int c3 = av_clip_uint16((FFABS(c - cli3) << 1) + d3); in mode06() 158 const int c4 = av_clip_uint16((FFABS(c - cli4) << 1) + d4); in mode06() 187 const int c1 = FFABS(c - cli1) + d1; in mode07() 188 const int c2 = FFABS(c - cli2) + d2; in mode07() [all …]
|
D | vf_mcdeint.c | 222 FFABS(srcp[-srcs+DELTA(-1+(j))] - srcp[+srcs+DELTA(-1-(j))])+\ in filter_frame() 223 FFABS(srcp[-srcs+DELTA(j) ] - srcp[+srcs+DELTA( -(j))])+\ in filter_frame() 224 FFABS(srcp[-srcs+DELTA(1+(j)) ] - srcp[+srcs+DELTA( 1-(j))]) in filter_frame() 227 FFABS(srcp[-srcs-1+(j)] - srcp[+srcs-1-(j)])+\ in filter_frame() 228 FFABS(srcp[-srcs +(j)] - srcp[+srcs -(j)])+\ in filter_frame() 229 FFABS(srcp[-srcs+1+(j)] - srcp[+srcs+1-(j)]) in filter_frame() 257 temp -= (diff0 + diff1 - FFABS(FFABS(diff0) - FFABS(diff1)) / 2) / 2; 259 temp -= (diff0 + diff1 + FFABS(FFABS(diff0) - FFABS(diff1)) / 2) / 2;
|
D | vf_deband.c | 167 const int diff = FFABS(src0 - avg); in deband_8_c() 171 dst_ptr[y * dst_linesize + x] = (FFABS(src0 - ref0) < thr) && in deband_8_c() 172 (FFABS(src0 - ref1) < thr) && in deband_8_c() 173 (FFABS(src0 - ref2) < thr) && in deband_8_c() 174 … (FFABS(src0 - ref3) < thr) ? get_avg(ref0, ref1, ref2, ref3) : src0; in deband_8_c() 217 cmp[p] = FFABS(src0 - avg[p]) < thr; in deband_8_coupling_c() 219 cmp[p] = (FFABS(src0 - ref0) < thr) && in deband_8_coupling_c() 220 (FFABS(src0 - ref1) < thr) && in deband_8_coupling_c() 221 (FFABS(src0 - ref2) < thr) && in deband_8_coupling_c() 222 (FFABS(src0 - ref3) < thr); in deband_8_coupling_c() [all …]
|
D | vf_dedot.c | 128 if (FFABS(above + bellow - 2 * cur) <= luma2d && \ 129 FFABS(left + right - 2 * cur) <= luma2d) \ 132 if (FFABS(cur - p0[x]) <= lumaT && \ 133 FFABS(cur - p4[x]) <= lumaT && \ 134 FFABS(p1[x] - p3[x]) <= lumaT) { \ 135 int diff1 = FFABS(cur - p1[x]); \ 136 int diff2 = FFABS(cur - p3[x]); \ 199 if (FFABS(cur - p0[x]) <= chromaT1 && \ 200 FFABS(cur - p4[x]) <= chromaT1 && \ 201 FFABS(p1[x] - p3[x]) <= chromaT1 && \ [all …]
|
D | vf_deblock.c | 107 if (FFABS(delta) >= ath || \ 108 FFABS(dst[x - 1 * dst_linesize] - dst[x - 2 * dst_linesize]) >= bth || \ 109 FFABS(dst[x + 0 * dst_linesize] - dst[x + 1 * dst_linesize]) >= gth) \ 146 if (FFABS(delta) >= ath || \ 147 FFABS(dst[-1] - dst[-2]) >= bth || \ 148 FFABS(dst[0] - dst[1]) >= gth) \ 187 if (FFABS(delta) >= ath || \ 188 FFABS(dst[x - 1 * dst_linesize] - dst[x - 2 * dst_linesize]) >= bth || \ 189 FFABS(dst[x + 1 * dst_linesize] - dst[x + 2 * dst_linesize]) >= gth || \ 190 FFABS(dst[x + 0 * dst_linesize] - dst[x + 1 * dst_linesize]) >= dth) \ [all …]
|
D | vf_yadif.c | 42 { int score = FFABS(cur[mrefs - 1 + (j)] - cur[prefs - 1 - (j)])\ 43 + FFABS(cur[mrefs +(j)] - cur[prefs -(j)])\ 44 + FFABS(cur[mrefs + 1 + (j)] - cur[prefs + 1 - (j)]);\ 57 int temporal_diff0 = FFABS(prev2[0] - next2[0]); \ 58 int temporal_diff1 =(FFABS(prev[mrefs] - c) + FFABS(prev[prefs] - e) )>>1; \ 59 int temporal_diff2 =(FFABS(next[mrefs] - c) + FFABS(next[prefs] - e) )>>1; \ 64 int spatial_score = FFABS(cur[mrefs - 1] - cur[prefs - 1]) + FFABS(c-e) \ 65 + FFABS(cur[mrefs + 1] - cur[prefs + 1]) - 1; \
|
D | avf_avectorscope.c | 139 int dx = FFABS(x1-x0), sx = x0 < x1 ? 1 : -1; in draw_line() 140 int dy = FFABS(y1-y0), sy = y0 < y1 ? 1 : -1; in draw_line() 273 max = FFMAX(FFABS(sample), max); in filter_frame() 282 max = FFMAX(FFABS(samples[i]), max); in filter_frame() 313 src[0] = FFSIGN(src[0]) * sqrtf(FFABS(src[0])); in filter_frame() 314 src[1] = FFSIGN(src[1]) * sqrtf(FFABS(src[1])); in filter_frame() 317 src[0] = FFSIGN(src[0]) * cbrtf(FFABS(src[0])); in filter_frame() 318 src[1] = FFSIGN(src[1]) * cbrtf(FFABS(src[1])); in filter_frame() 321 src[0] = FFSIGN(src[0]) * logf(1 + FFABS(src[0])) / logf(2); in filter_frame() 322 src[1] = FFSIGN(src[1]) * logf(1 + FFABS(src[1])) / logf(2); in filter_frame()
|
D | vf_maskedminmax.c | 96 dst[x] = FFABS(src[x] - f2[x]) < FFABS(src[x] - f1[x]) ? f2[x] : f1[x]; in maskedmin8() 102 dst[x] = FFABS(src[x] - f2[x]) > FFABS(src[x] - f1[x]) ? f2[x] : f1[x]; in maskedmax8() 113 dst[x] = FFABS(src[x] - f2[x]) < FFABS(src[x] - f1[x]) ? f2[x] : f1[x]; in maskedmin16() 124 dst[x] = FFABS(src[x] - f2[x]) > FFABS(src[x] - f1[x]) ? f2[x] : f1[x]; in maskedmax16()
|
D | vf_chromanr.c | 153 if (FFABS(cu - U) + FFABS(cv - V) + FFABS(cy - Y) < thres && \ 154 FFABS(cu - U) < thres_u && FFABS(cv - V) < thres_v && \ 155 FFABS(cy - Y) < thres_y && \
|
D | af_amix.c | 220 weight_sum += FFABS(s->weights[i]); in calculate_scales() 224 if (s->scale_norm[i] > weight_sum / FFABS(s->weights[i])) { in calculate_scales() 225 s->scale_norm[i] -= ((s->weight_sum / FFABS(s->weights[i])) / s->nb_inputs) * in calculate_scales() 227 s->scale_norm[i] = FFMAX(s->scale_norm[i], weight_sum / FFABS(s->weights[i])); in calculate_scales() 235 s->input_scale[i] = FFABS(s->weights[i]); in calculate_scales() 282 s->scale_norm[i] = s->weight_sum / FFABS(s->weights[i]); in config_output() 528 s->weight_sum += FFABS(last_weight); in parse_weights() 539 s->weight_sum += FFABS(last_weight); in parse_weights() 625 s->scale_norm[i] = s->weight_sum / FFABS(s->weights[i]); in process_command()
|
D | scene_sad.c | 38 sad += FFABS(src1w[x] - src2w[x]); in ff_scene_sad16_c() 52 sad += FFABS(src1[x] - src2[x]); in ff_scene_sad_c()
|
/third_party/ffmpeg/libavcodec/ |
D | h264dsp_template.c | 126 if( FFABS( p0 - q0 ) < alpha && in FUNCC() 127 FFABS( p1 - p0 ) < beta && in FUNCC() 128 FFABS( q1 - q0 ) < beta ) { in FUNCC() 133 if( FFABS( p2 - p0 ) < beta ) { in FUNCC() 138 if( FFABS( q2 - q0 ) < beta ) { in FUNCC() 182 if( FFABS( p0 - q0 ) < alpha && in FUNCC() 183 FFABS( p1 - p0 ) < beta && in FUNCC() 184 FFABS( q1 - q0 ) < beta ) { in FUNCC() 186 if(FFABS( p0 - q0 ) < (( alpha >> 2 ) + 2 )){ in FUNCC() 187 if( FFABS( p2 - p0 ) < beta) in FUNCC() [all …]
|
D | intrax8dsp.c | 363 t = (FFABS(p1 - p2) <= ql) + in x8_loop_filter() 364 (FFABS(p2 - p3) <= ql) + in x8_loop_filter() 365 (FFABS(p3 - p4) <= ql) + in x8_loop_filter() 366 (FFABS(p4 - p5) <= ql); in x8_loop_filter() 370 t += (FFABS(p5 - p6) <= ql) + in x8_loop_filter() 371 (FFABS(p6 - p7) <= ql) + in x8_loop_filter() 372 (FFABS(p7 - p8) <= ql) + in x8_loop_filter() 373 (FFABS(p8 - p9) <= ql) + in x8_loop_filter() 374 (FFABS(p0 - p1) <= ql); in x8_loop_filter() 409 if (FFABS(x0) < quant) { in x8_loop_filter() [all …]
|
D | vc1_pred.c | 54 if (FFABS(n) > 255) in scaleforsame_x() 57 if (FFABS(n) < scalezone1_x) in scaleforsame_x() 87 if (FFABS(n) > 63) in scaleforsame_y() 90 if (FFABS(n) < scalezone1_y) in scaleforsame_y() 118 if (FFABS(n) > 255) in scaleforopp_x() 121 if (FFABS(n) < scalezone1_x) in scaleforopp_x() 145 if (FFABS(n) > 63) in scaleforopp_y() 148 if (FFABS(n) < scalezone1_y) in scaleforopp_y() 420 sum = FFABS(px) + FFABS(py); in ff_vc1_pred_mv() 422 sum = FFABS(px - field_predA[0]) + FFABS(py - field_predA[1]); in ff_vc1_pred_mv() [all …]
|
D | h264_direct.c | 53 int tx = (16384 + (FFABS(td) >> 1)) / td; in get_scale_factor() 159 sl->col_parity = (FFABS(col_poc[0] - (int64_t)cur_poc) >= in ff_h264_direct_ref_list_init() 160 FFABS(col_poc[1] - (int64_t)cur_poc)); in ff_h264_direct_ref_list_init() 377 FFABS(l1mv0[xy4][0]) <= 1 && in pred_spatial_direct_motion() 378 FFABS(l1mv0[xy4][1]) <= 1) || in pred_spatial_direct_motion() 381 FFABS(l1mv1[xy4][0]) <= 1 && in pred_spatial_direct_motion() 382 FFABS(l1mv1[xy4][1]) <= 1))) { in pred_spatial_direct_motion() 408 FFABS(l1mv0[0][0]) <= 1 && in pred_spatial_direct_motion() 409 FFABS(l1mv0[0][1]) <= 1) || in pred_spatial_direct_motion() 411 FFABS(l1mv1[0][0]) <= 1 && in pred_spatial_direct_motion() [all …]
|
D | jpeglsenc.c | 76 val = 2 * FFABS(err) - 1 - map; in ls_encode_regular() 162 if ((FFABS(D0) <= state->near) && in ls_encode_line() 163 (FFABS(D1) <= state->near) && in ls_encode_line() 164 (FFABS(D2) <= state->near)) { in ls_encode_line() 169 while (x < w && (FFABS(R(in, x) - RUNval) <= state->near)) { in ls_encode_line() 178 RItype = FFABS(Ra - Rb) <= state->near; in ls_encode_line() 302 last = av_malloc((unsigned)pkt->size + FFABS(p->linesize[0])); in encode_picture_ls() 305 memset(last, 0, FFABS(p->linesize[0])); in encode_picture_ls() 308 init_put_bits(&pb2, last + FFABS(p->linesize[0]), pkt->size); in encode_picture_ls()
|
D | jpegls.h | 98 if(FFABS(err) > 0xFFFF || FFABS(err) > INT_MAX - state->A[Q]) in ff_jpegls_update_state_regular() 100 state->A[Q] += FFABS(err); in ff_jpegls_update_state_regular()
|
D | sbcdsp.c | 279 int32_t tmp = FFABS(sb_sample_f[blk][ch][sb]); in sbc_calc_scalefactors() 301 tmp0 = FFABS(sb_sample_f[blk][0][sb]); in sbc_calc_scalefactors_j() 302 tmp1 = FFABS(sb_sample_f[blk][1][sb]); in sbc_calc_scalefactors_j() 321 tmp0 = FFABS(tmp0); in sbc_calc_scalefactors_j() 322 tmp1 = FFABS(tmp1); in sbc_calc_scalefactors_j() 335 tmp0 = FFABS(sb_sample_j[blk][0]); in sbc_calc_scalefactors_j() 336 tmp1 = FFABS(sb_sample_j[blk][1]); in sbc_calc_scalefactors_j()
|
D | me_cmp.c | 142 sum += FFABS(block[i]); in sum_abs_dctelem_c() 429 score2 += FFABS(s1[x] - s1[x + stride] - in nsse16_c() 431 FFABS(s2[x] - s2[x + stride] - in nsse16_c() 439 return score1 + FFABS(score2) * c->avctx->nsse_weight; in nsse16_c() 441 return score1 + FFABS(score2) * 8; in nsse16_c() 454 score2 += FFABS(s1[x] - s1[x + stride] - in nsse8_c() 456 FFABS(s2[x] - s2[x + stride] - in nsse8_c() 464 return score1 + FFABS(score2) * c->avctx->nsse_weight; in nsse8_c() 466 return score1 + FFABS(score2) * 8; in nsse8_c() 553 #define BUTTERFLYA(x, y) (FFABS((x) + (y)) + FFABS((x) - (y))) [all …]
|
D | msrledec.c | 136 unsigned int width= FFABS(pic->linesize[0]) / (depth >> 3); in msrle_decode_8_16_24_32() 139 output_end = output + FFABS(pic->linesize[0]); in msrle_decode_8_16_24_32() 157 output_end = output + FFABS(pic->linesize[0]); in msrle_decode_8_16_24_32() 172 output_end = pic->data[0] + line * pic->linesize[0] + FFABS(pic->linesize[0]); in msrle_decode_8_16_24_32()
|
/third_party/ffmpeg/libavcodec/tests/ |
D | snowenc.c | 69 …if(FFABS(buffer[0][i] - buffer[1][i])>20) printf("fsck: %6d %12d %7d\n",i, buffer[0][i], buffer[1]… in main() 97 … if(FFABS(width/2-x)<9 && FFABS(height/2-y)<9 && level==2) printf("%8"PRId64" ", d); in main() 99 if(FFABS(height/2-y)<9 && level==2) printf("\n"); in main() 139 if(FFABS(width/2-x)<9 && FFABS(height/2-y)<9) printf("%8"PRId64" ", d); in main() 141 if(FFABS(height/2-y)<9) printf("\n"); in main()
|
/third_party/ffmpeg/tests/ |
D | audiomatch.c | 27 #define FFABS(a) ((a) >= 0 ? (a) : (-(a))) macro 105 if (FFABS(c) > sigamp * 0.94) in main() 106 maxshift = FFMIN(maxshift, FFABS(pos)+32); in main() 107 if (FFABS(c) > FFABS(bestc)) { in main()
|
/third_party/gstreamer/gstplugins_good/gst/deinterlace/ |
D | yadif.c | 187 #define FFABS(a) ABS(a) macro 195 { int score = FFABS(stzero[x - colors2 + j] - sbzero[x - colors2 - j])\ 196 + FFABS(stzero[x + j] - sbzero[x - j])\ 197 + FFABS(stzero[x + colors2 + j] - sbzero[x + colors2 - j]);\ 210 int temporal_diff0 = FFABS(smone[x] - smp[x]); \ 211 int temporal_diff1 =(FFABS(sttwo[x] - c) + FFABS(sbtwo[x] - e) )>>1; \ 212 int temporal_diff2 =(FFABS(stptwo[x] - c) + FFABS(sbptwo[x] - e) )>>1; \ 221 int spatial_score = FFABS(stzero[x-colors2] - sbzero[x-colors2]) + FFABS(c-e) \ 222 + FFABS(stzero[x+colors2] - sbzero[x+colors2]); \
|
/third_party/ffmpeg/libpostproc/ |
D | postprocess.c | 273 if(FFABS(middleEnergy) < 8*c->QP){ in doHorizDefFilter_C() 278 int d= FFABS(middleEnergy) - FFMIN( FFABS(leftEnergy), FFABS(rightEnergy) ); in doHorizDefFilter_C() 310 const int first= FFABS(dst[-1] - dst[0]) < c->QP ? dst[-1] : dst[0]; in doHorizLowPass_C() 311 const int last= FFABS(dst[8] - dst[7]) < c->QP ? dst[8] : dst[7]; in doHorizLowPass_C() 384 int d= FFMAX(FFABS(b) - (FFABS(a) + FFABS(c))/2, 0); in horizX1Filter() 444 const int first= FFABS(src[-1*step] - src[0]) < QP ? src[-1*step] : src[0]; in do_a_deblock_C() 445 const int last= FFABS(src[8*step] - src[7*step]) < QP ? src[8*step] : src[7*step]; in do_a_deblock_C() 481 if(FFABS(middleEnergy) < 8*QP){ in do_a_deblock_C() 486 int d= FFABS(middleEnergy) - FFMIN( FFABS(leftEnergy), FFABS(rightEnergy) ); in do_a_deblock_C() 945 int minStride= FFMAX(FFABS(srcStride[0]), FFABS(dstStride[0])); in pp_postprocess() [all …]
|
/third_party/ffmpeg/libavcodec/x86/ |
D | mpegvideoenc_qns_template.c | 39 av_assert2(FFABS(scale) < MAX_ABS); in DEF() 81 if(FFABS(scale) < MAX_ABS){ in DEF()
|