Home
last modified time | relevance | path

Searched refs:hsub (Results 1 - 25 of 79) sorted by relevance

1234

/third_party/ffmpeg/libavfilter/
H A Ddrawutils.c149 draw->hsub[1] = draw->hsub[2] = draw->hsub_max = desc->log2_chroma_w; in ff_draw_init2()
209 (x >> draw->hsub[plane]) * draw->pixelstep[plane]; in pointer_at()
224 wp = AV_CEIL_RSHIFT(w, draw->hsub[plane]) * draw->pixelstep[plane]; in ff_copy_rectangle2()
244 wp = AV_CEIL_RSHIFT(w, draw->hsub[plane]); in ff_fill_rectangle()
310 int dx, int w, unsigned hsub, int left, int right) in blend_line()
317 unsigned suba = (left * alpha) >> hsub; in blend_line()
326 unsigned suba = (right * alpha) >> hsub; in blend_line()
332 int dx, int w, unsigned hsub, int left, int right) in blend_line16()
339 unsigned suba = (left * alpha) >> hsub; in blend_line16()
309 blend_line(uint8_t *dst, unsigned src, unsigned alpha, int dx, int w, unsigned hsub, int left, int right) blend_line() argument
331 blend_line16(uint8_t *dst, unsigned src, unsigned alpha, int dx, int w, unsigned hsub, int left, int right) blend_line16() argument
487 blend_line_hv16(uint8_t *dst, int dst_delta, unsigned src, unsigned alpha, const uint8_t *mask, int mask_linesize, int l2depth, int w, unsigned hsub, unsigned vsub, int xm, int left, int right, int hband) blend_line_hv16() argument
512 blend_line_hv(uint8_t *dst, int dst_delta, unsigned src, unsigned alpha, const uint8_t *mask, int mask_linesize, int l2depth, int w, unsigned hsub, unsigned vsub, int xm, int left, int right, int hband) blend_line_hv() argument
[all...]
H A Dvf_shear.c48 int hsub, vsub; member
127 const int hsub = (p == 1 || p == 2) ? s->hsub: 1; \
131 const int wx = vsub * shx * height * 0.5f / hsub; \
132 const int wy = hsub * shy * width * 0.5f / vsub; \
142 int sx = x + vsub * shx * y / hsub - wx; \
143 int sy = y + hsub * shy * x / vsub - wy; \
174 const int hsub = (p == 1 || p == 2) ? s->hsub: 1; \
178 const float wx = vsub * shx * height * 0.5f / hsub; \
[all...]
H A Dvf_perspective.c48 int hsub, vsub; member
228 s->hsub = desc->log2_chroma_w; in config_input()
271 int hsub, vsub; member
285 int hsub = td->hsub; in resample_cubic() local
297 sx = x << hsub; in resample_cubic()
298 u = s->pv[sx + sy * linesize][0] >> hsub; in resample_cubic()
364 int hsub = td->hsub; in resample_linear() local
376 sx = x << hsub; in resample_linear()
464 int hsub = plane == 1 || plane == 2 ? s->hsub : 0; filter_frame() local
[all...]
H A Dvf_uspp.c47 int hsub, vsub; member
198 int w = AV_CEIL_RSHIFT(width, is_chroma ? p->hsub : 0); in filter()
201 int block = BLOCK >> (is_chroma ? p->hsub : 0); in filter()
242 const int x1c = x1 >> p->hsub; in filter()
244 const int BLOCKc = BLOCK >> p->hsub; in filter()
279 for (x = 0; x < AV_CEIL_RSHIFT(width, p->hsub); x++) { in filter()
291 AV_CEIL_RSHIFT(width, is_chroma ? p->hsub : 0), in filter()
323 uspp->hsub = desc->log2_chroma_w; in config_input()
332 w = AV_CEIL_RSHIFT(w, uspp->hsub); in config_input()
H A Dvf_pad.c55 "hsub",
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 in filter_frame() local
[all...]
H A Dvf_mpdecimate.c49 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()
185 decimate->hsub = pix_desc->log2_chroma_w; in config_input()
H A Dvf_blurdetect.c47 int hsub, vsub; member
101 s->hsub = pix_desc->log2_chroma_w; in blurdetect_config_input()
190 static float calculate_blur(BLRContext *s, int w, int h, int hsub, int vsub, in calculate_blur() argument
205 int block_width = AV_CEIL_RSHIFT(s->block_width, hsub); in calculate_blur()
275 int hsub = plane == 1 || plane == 2 ? s->hsub : 0; in blurdetect_filter_frame() local
277 int w = AV_CEIL_RSHIFT(inw, hsub); in blurdetect_filter_frame()
303 blur += calculate_blur(s, w, h, hsub, vsub, directions, w, in blurdetect_filter_frame()
H A Dvf_overlay.c53 "hsub",
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) *
649 blend_slice_planar_rgb(AVFilterContext *ctx, AVFrame *dst, const AVFrame *src, int hsub, int vsub, int main_has_alpha, int x, int y, int is_straight, int jobnr, int nb_jobs) blend_slice_planar_rgb() argument
[all...]
H A Dvf_crop.c48 "hsub",
88 int hsub, vsub; ///< chroma subsampling member
153 s->hsub = 1; in config_input()
156 s->hsub = pix_desc->log2_chroma_w; in config_input()
186 s->w &= ~((1 << s->hsub) - 1); in config_input()
223 s->x &= ~((1 << s->hsub) - 1); in config_input()
279 s->x &= ~((1 << s->hsub) - 1); in filter_frame()
303 frame->data[i] += (s->x * s->max_step[i]) >> s->hsub; in filter_frame()
H A Dvf_blockdetect.c39 int hsub, vsub; member
71 s->hsub = pix_desc->log2_chroma_w; in blockdetect_config_input()
214 int hsub = plane == 1 || plane == 2 ? s->hsub : 0; in blockdetect_filter_frame() local
216 int w = AV_CEIL_RSHIFT(inw, hsub); in blockdetect_filter_frame()
H A Dvf_delogo.c353 int hsub = plane == 1 || plane == 2 ? hsub0 : 0; in filter_frame() local
358 AV_CEIL_RSHIFT(inlink->w, hsub), in filter_frame()
360 sar, s->x>>hsub, s->y>>vsub, in filter_frame()
363 AV_CEIL_RSHIFT(s->w + (s->x & ((1<<hsub)-1)), hsub), in filter_frame()
365 s->band>>FFMIN(hsub, vsub), in filter_frame()
H A Dvf_midequalizer.c245 int vsub, hsub; in config_input0() local
249 hsub = desc->log2_chroma_w; in config_input0()
255 s->width[0][1] = s->width[0][2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input0()
279 int vsub, hsub; in config_input1() local
283 hsub = desc->log2_chroma_w; in config_input1()
289 s->width[1][1] = s->width[1][2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input1()
H A Dvf_drawbox.c45 "hsub", "vsub",
89 int vsub, hsub; ///< chroma subsampling member
130 row[1][x >> ctx->hsub] = ctx->yuv_color[U]; in draw_region()
131 row[2][x >> ctx->hsub] = ctx->yuv_color[V]; in draw_region()
150 row[1][x >> ctx->hsub] = (1 - alpha) * row[1][x >> ctx->hsub] + alpha * ctx->yuv_color[U]; in draw_region()
151 row[2][x >> ctx->hsub] = (1 - alpha) * row[2][x >> ctx->hsub] + alpha * ctx->yuv_color[V]; in draw_region()
290 s->hsub = desc->log2_chroma_w; in config_input()
298 var_values[VAR_HSUB] = s->hsub; in config_input()
[all...]
H A Dvf_smartblur.c57 int hsub; member
157 s->hsub = desc->log2_chroma_w; in config_props()
162 AV_CEIL_RSHIFT(inlink->w, s->hsub), in config_props()
238 int cw = AV_CEIL_RSHIFT(inlink->w, s->hsub); in filter_frame()
H A Dvf_transpose.c45 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()
H A Dvf_feedback.c40 int hsub, vsub; member
81 s->hsub = pix_desc->log2_chroma_w; in config_input()
169 memmove(dst->data[i] + ((s->y + y) >> s->vsub) * dst->linesize[i] + ((s->x * s->max_step[i]) >> s->hsub), in activate()
170 src->data[i] + (y >> s->vsub) * src->linesize[i], (src->width * s->max_step[i]) >> s->hsub); in activate()
216 frame->data[i] += (s->x * s->max_step[i]) >> s->hsub; in activate()
H A Dvf_rotate.c46 "hsub", "vsub",
73 int hsub, vsub; member
296 rot->hsub = pixdesc->log2_chroma_w; in config_props()
306 rot->var_values[VAR_HSUB] = 1<<rot->hsub; in config_props()
535 int hsub = plane == 1 || plane == 2 ? rot->hsub : 0; in filter_frame() local
537 const int outw = AV_CEIL_RSHIFT(outlink->w, hsub); in filter_frame()
540 .inw = AV_CEIL_RSHIFT(inlink->w, hsub), in filter_frame()
H A Dvf_gradfun.c162 int hsub = desc->log2_chroma_w; in config_input() local
170 s->chroma_w = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input()
172 s->chroma_r = av_clip(((((s->radius >> hsub) + (s->radius >> vsub)) / 2 ) + 1) & ~1, 4, 32); in config_input()
H A Dvf_limiter.c120 int depth, vsub, hsub, ret; in config_input() local
128 hsub = desc->log2_chroma_w; in config_input()
132 s->width[1] = s->width[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input()
H A Dvf_maskedthreshold.c101 int vsub, hsub, ret; in config_input() local
108 hsub = desc->log2_chroma_w; in config_input()
112 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input()
H A Dvf_median.c74 static void hsub(htype *dst, const htype *src, int bins) in hsub() function
160 s->hsub = hsub; in config_input()
H A Dvf_threshold.c159 int vsub, hsub; in config_input() local
163 hsub = desc->log2_chroma_w; in config_input()
167 s->width[1] = s->width[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input()
H A Dvf_hflip.c69 const int hsub = pix_desc->log2_chroma_w; in config_props() local
75 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_props()
H A Dvf_blend.c39 int hsub, vsub; ///< chroma subsampling values member
210 int hsub = plane == 1 || plane == 2 ? s->hsub : 0; in blend_frame() local
212 int outw = AV_CEIL_RSHIFT(dst_buf->width, hsub); in blend_frame()
346 s->hsub = pix_desc->log2_chroma_w; in config_output()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
H A DCalcSpillWeights.cpp54 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()

Completed in 18 milliseconds

1234