/third_party/ffmpeg/libavfilter/ |
D | drawutils.c | 129 draw->hsub[1] = draw->hsub[2] = draw->hsub_max = desc->log2_chroma_w; in ff_draw_init() 199 (x >> draw->hsub[plane]) * draw->pixelstep[plane]; in pointer_at() 214 wp = AV_CEIL_RSHIFT(w, draw->hsub[plane]) * draw->pixelstep[plane]; in ff_copy_rectangle2() 234 wp = AV_CEIL_RSHIFT(w, draw->hsub[plane]); in ff_fill_rectangle() 305 int dx, int w, unsigned hsub, int left, int right) in blend_line() argument 312 unsigned suba = (left * alpha) >> hsub; in blend_line() 321 unsigned suba = (right * alpha) >> hsub; in blend_line() 327 int dx, int w, unsigned hsub, int left, int right) in blend_line16() argument 334 unsigned suba = (left * alpha) >> hsub; in blend_line16() 345 unsigned suba = (right * alpha) >> hsub; in blend_line16() [all …]
|
D | vf_shear.c | 48 int hsub, vsub; member 135 const int hsub = (p == 1 || p == 2) ? s->hsub: 1; \ 139 const int wx = vsub * shx * height * 0.5f / hsub; \ 140 const int wy = hsub * shy * width * 0.5f / vsub; \ 150 int sx = x + vsub * shx * y / hsub - wx; \ 151 int sy = y + hsub * shy * x / vsub - wy; \ 182 const int hsub = (p == 1 || p == 2) ? s->hsub: 1; \ 186 const float wx = vsub * shx * height * 0.5f / hsub; \ 187 const float wy = hsub * shy * width * 0.5f / vsub; \ 197 const float sx = x + vsub * shx * y / hsub - wx; \ [all …]
|
D | vf_drawbox.c | 78 int vsub, hsub; ///< chroma subsampling member 134 s->hsub = desc->log2_chroma_w; in config_input() 142 var_values[VAR_HSUB] = s->hsub; in config_input() 240 row[1][x >> s->hsub] = s->yuv_color[U]; in filter_frame() 241 row[2][x >> s->hsub] = s->yuv_color[V]; in filter_frame() 265 … row[1][x >> s->hsub] = (1 - alpha) * row[1][x >> s->hsub] + alpha * s->yuv_color[U]; in filter_frame() 266 … row[2][x >> s->hsub] = (1 - alpha) * row[2][x >> s->hsub] + alpha * s->yuv_color[V]; in filter_frame() 412 row[1][x >> drawgrid->hsub] = drawgrid->yuv_color[U]; in drawgrid_filter_frame() 413 row[2][x >> drawgrid->hsub] = drawgrid->yuv_color[V]; in drawgrid_filter_frame() 437 …row[1][x >> drawgrid->hsub] = (1 - alpha) * row[1][x >> drawgrid->hsub] + alpha * drawgrid->yuv_co… in drawgrid_filter_frame() [all …]
|
D | vf_perspective.c | 48 int hsub, vsub; member 236 s->hsub = desc->log2_chroma_w; in config_input() 279 int hsub, vsub; member 293 int hsub = td->hsub; in resample_cubic() local 305 sx = x << hsub; in resample_cubic() 306 u = s->pv[sx + sy * linesize][0] >> hsub; in resample_cubic() 372 int hsub = td->hsub; in resample_linear() local 384 sx = x << hsub; in resample_linear() 385 u = s->pv[sx + sy * linesize][0] >> hsub; in resample_linear() 472 int hsub = plane == 1 || plane == 2 ? s->hsub : 0; in filter_frame() local [all …]
|
D | vf_pad.c | 248 int hsub = s->draw.hsub[plane]; in get_video_buffer() local 250 frame->data[plane] += (s->x >> hsub) * s->draw.pixelstep[plane] + in get_video_buffer() 272 int hsub = s->draw.hsub[planes[i]]; in buffer_needs_copy() local 281 ptrdiff_t req_start = (s->x >> hsub) * s->draw.pixelstep[planes[i]] + in buffer_needs_copy() 283 ptrdiff_t req_end = ((s->w - s->x - frame->width) >> hsub) * in buffer_needs_copy() 287 if (frame->linesize[planes[i]] < (s->w >> hsub) * s->draw.pixelstep[planes[i]]) in buffer_needs_copy() 372 int hsub = s->draw.hsub[i]; in filter_frame() local 374 out->data[i] -= (s->x >> hsub) * s->draw.pixelstep[i] + in filter_frame()
|
D | vf_overlay.c | 105 s->x = normalize_xy(s->var_values[VAR_X], s->hsub); in eval_expr() 441 … int i, int hsub, int vsub, \ 453 …int src_wp = AV_CEIL_RSHIFT(src_w, hsub); … 455 …int dst_wp = AV_CEIL_RSHIFT(dst_w, hsub); … 458 …int xp = x>>hsub; … 484 …a = ap + (k<<hsub); … 485 …da = dap + ((xp+k) << hsub); … 494 … da += (1 << hsub) * c; \ 495 … a += (1 << hsub) * c; \ 502 … if (hsub && vsub && j+1 < src_hp && k+1 < src_wp) { \ [all …]
|
D | vf_mpdecimate.c | 49 int hsub, vsub; ///< chroma subsampling values member 129 int hsub = plane == 1 || plane == 2 ? decimate->hsub : 0; in decimate_frame() local 133 AV_CEIL_RSHIFT(ref->width, hsub), in decimate_frame() 192 decimate->hsub = pix_desc->log2_chroma_w; in config_input()
|
D | vf_uspp.c | 45 int hsub, vsub; member 196 int w = AV_CEIL_RSHIFT(width, is_chroma ? p->hsub : 0); in filter() 199 int block = BLOCK >> (is_chroma ? p->hsub : 0); in filter() 240 const int x1c = x1 >> p->hsub; in filter() 242 const int BLOCKc = BLOCK >> p->hsub; in filter() 277 for (x = 0; x < AV_CEIL_RSHIFT(width, p->hsub); x++) { in filter() 289 AV_CEIL_RSHIFT(width, is_chroma ? p->hsub : 0), in filter() 329 uspp->hsub = desc->log2_chroma_w; in config_input() 338 w = AV_CEIL_RSHIFT(w, uspp->hsub); in config_input()
|
D | vf_crop.c | 88 int hsub, vsub; ///< chroma subsampling member 157 s->hsub = 1; in config_input() 160 s->hsub = pix_desc->log2_chroma_w; in config_input() 190 s->w &= ~((1 << s->hsub) - 1); in config_input() 227 s->x &= ~((1 << s->hsub) - 1); in config_input() 283 s->x &= ~((1 << s->hsub) - 1); in filter_frame() 307 frame->data[i] += (s->x * s->max_step[i]) >> s->hsub; in filter_frame()
|
D | vf_midequalizer.c | 250 int vsub, hsub; in config_input0() local 254 hsub = desc->log2_chroma_w; in config_input0() 260 s->width[0][1] = s->width[0][2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input0() 284 int vsub, hsub; in config_input1() local 288 hsub = desc->log2_chroma_w; in config_input1() 294 s->width[1][1] = s->width[1][2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input1()
|
D | vf_delogo.c | 361 int hsub = plane == 1 || plane == 2 ? hsub0 : 0; in filter_frame() local 366 AV_CEIL_RSHIFT(inlink->w, hsub), in filter_frame() 368 sar, s->x>>hsub, s->y>>vsub, in filter_frame() 371 AV_CEIL_RSHIFT(s->w + (s->x & ((1<<hsub)-1)), hsub), in filter_frame() 373 s->band>>FFMIN(hsub, vsub), in filter_frame()
|
D | vf_smartblur.c | 57 int hsub; member 165 s->hsub = desc->log2_chroma_w; in config_props() 170 AV_CEIL_RSHIFT(inlink->w, s->hsub), in config_props() 246 int cw = AV_CEIL_RSHIFT(inlink->w, s->hsub); in filter_frame()
|
D | vf_transpose.c | 45 int hsub, vsub; member 202 s->hsub = desc_in->log2_chroma_w; in config_props_output() 277 int hsub = plane == 1 || plane == 2 ? s->hsub : 0; in filter_slice() local 281 int outw = AV_CEIL_RSHIFT(out->width, hsub); in filter_slice()
|
D | vf_rotate.c | 73 int hsub, vsub; member 302 rot->hsub = pixdesc->log2_chroma_w; in config_props() 312 rot->var_values[VAR_HSUB] = 1<<rot->hsub; in config_props() 541 int hsub = plane == 1 || plane == 2 ? rot->hsub : 0; in filter_frame() local 543 const int outw = AV_CEIL_RSHIFT(outlink->w, hsub); in filter_frame() 546 .inw = AV_CEIL_RSHIFT(inlink->w, hsub), in filter_frame()
|
D | vf_sab.c | 53 int hsub; member 207 s->hsub = desc->log2_chroma_w; in config_props() 217 AV_CEIL_RSHIFT(inlink->w, s->hsub), in config_props() 298 int cw = AV_CEIL_RSHIFT(inlink->w, s->hsub); in filter_frame()
|
D | vf_gradfun.c | 169 int hsub = desc->log2_chroma_w; in config_input() local 177 s->chroma_w = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input() 179 s->chroma_r = av_clip(((((s->radius >> hsub) + (s->radius >> vsub)) / 2 ) + 1) & ~1, 4, 32); in config_input()
|
D | vf_limiter.c | 141 int depth, vsub, hsub, ret; in config_input() local 149 hsub = desc->log2_chroma_w; in config_input() 153 s->width[1] = s->width[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input()
|
D | vf_lut2.c | 204 int hsub = desc->log2_chroma_w; in config_inputx() local 210 s->widthx[1] = s->widthx[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_inputx() 231 int hsub = desc->log2_chroma_w; in config_inputy() local 239 s->widthy[1] = s->widthy[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_inputy() 408 int hsub = desc->log2_chroma_w; in lut2_config_output() local 421 s->width[1] = s->width[2] = AV_CEIL_RSHIFT(outlink->w, hsub); in lut2_config_output()
|
D | vf_lut.c | 66 int hsub, vsub; member 223 s->hsub = desc->log2_chroma_w; in config_props() 438 int hsub = plane == 1 || plane == 2 ? s->hsub : 0;\ 440 int w = AV_CEIL_RSHIFT(td->w, hsub);\
|
D | vf_maskfun.c | 229 int vsub, hsub, ret; in config_input() local 236 hsub = desc->log2_chroma_w; in config_input() 240 s->width[1] = s->width[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input()
|
D | vf_median.c | 75 static void hsub(htype *dst, const htype *src, int bins) in hsub() function 166 s->hsub = hsub; in config_input()
|
D | vf_maskedthreshold.c | 106 int vsub, hsub, ret; in config_input() local 113 hsub = desc->log2_chroma_w; in config_input() 117 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input()
|
D | vf_pp7.h | 34 int hsub; member
|
D | vf_codecview.c | 53 int hsub, vsub; member 234 const int w = AV_CEIL_RSHIFT(frame->width, s->hsub); in filter_frame() 297 s->hsub = desc->log2_chroma_w; in config_input()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CalcSpillWeights.cpp | 54 unsigned sub, hsub; in copyHint() local 59 hsub = mi->getOperand(1).getSubReg(); in copyHint() 63 hsub = mi->getOperand(0).getSubReg(); in copyHint() 70 return sub == hsub ? hreg : Register(); in copyHint() 73 Register CopiedPReg = (hsub ? tri.getSubReg(hreg, hsub) : hreg); in copyHint()
|