Home
last modified time | relevance | path

Searched refs:planewidth (Results 1 – 25 of 63) sorted by relevance

123

/third_party/ffmpeg/libavfilter/
Dvf_shufflepixels.c46 int planewidth[4]; member
78 for (int x = 0; x < s->planewidth[0];) { in make_horizontal_map()
85 width = FFMIN(s->block_w, s->planewidth[0] - x); in make_horizontal_map()
88 width = FFMIN(s->block_w, s->planewidth[0] - rand * s->block_w); in make_horizontal_map()
150 int nb_blocks_w = s->planewidth[0] / s->block_w; in make_block_map()
161 int in = yin * s->block_h * s->planewidth[0] + xin * s->block_w; in make_block_map()
164 int out = yout * s->block_h * s->planewidth[0] + xout * s->block_w; in make_block_map()
176 map[out + y * s->planewidth[0] + x] = map[out] + x + y * s->planewidth[0]; in make_block_map()
182 map[in + y * s->planewidth[0] + x] = map[in] + x + y * s->planewidth[0]; in make_block_map()
215 for (int x = 0; x < s->planewidth[p]; x++) { \
[all …]
Dvf_fillborders.c49 int planewidth[4]; member
92 memset(ptr + y * linesize + s->planewidth[p] - s->borders[p].right, in smear_borders8()
93 *(ptr + y * linesize + s->planewidth[p] - s->borders[p].right - 1), in smear_borders8()
99 ptr + s->borders[p].top * linesize, s->planewidth[p]); in smear_borders8()
105 s->planewidth[p]); in smear_borders8()
124 ptr[y * linesize + s->planewidth[p] - s->borders[p].right + x] = in smear_borders16()
125 *(ptr + y * linesize + s->planewidth[p] - s->borders[p].right - 1); in smear_borders16()
131 ptr + s->borders[p].top * linesize, s->planewidth[p] * 2); in smear_borders16()
137 s->planewidth[p] * 2); in smear_borders16()
156 ptr[y * linesize + s->planewidth[p] - s->borders[p].right + x] = in mirror_borders8()
[all …]
Dvf_mergeplanes.c38 int planewidth[4]; member
48 int planewidth[4]; member
174 s->planewidth[i], s->planeheight[i]); in process_frame()
201 s->planewidth[1] = in config_output()
202 …s->planewidth[2] = AV_CEIL_RSHIFT(((s->outdesc->comp[1].depth > 8) + 1) * outlink->w, s->outdesc-… in config_output()
203 s->planewidth[0] = in config_output()
204 s->planewidth[3] = ((s->outdesc->comp[0].depth > 8) + 1) * outlink->w; in config_output()
229 inputp->planewidth[1] = in config_output()
230 …inputp->planewidth[2] = AV_CEIL_RSHIFT(((indesc->comp[1].depth > 8) + 1) * inlink->w, indesc->log… in config_output()
231 inputp->planewidth[0] = in config_output()
[all …]
Dvf_bitplanenoise.c36 int planewidth[4]; member
78 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
79 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
125 for (x = 1; x < s->planewidth[plane] - 1; x++) { in filter_frame()
138 for (x = 1; x < s->planewidth[plane] - 1; x++) { in filter_frame()
155 for (x = 1; x < s->planewidth[plane] - 1; x++) { in filter_frame()
168 for (x = 1; x < s->planewidth[plane] - 1; x++) { in filter_frame()
179 stats[plane] /= s->planewidth[plane] * s->planeheight[plane]; in filter_frame()
Dvf_deband.c40 int planewidth[4]; member
146 const int w = s->planewidth[p] - 1; in deband_8_c()
150 const int pos = y * s->planewidth[0]; in deband_8_c()
152 for (x = 0; x < s->planewidth[p]; x++) { in deband_8_c()
190 const int pos = y * s->planewidth[0]; in deband_8_coupling_c()
192 for (x = 0; x < s->planewidth[0]; x++) { in deband_8_coupling_c()
201 const int w = s->planewidth[p] - 1; in deband_8_coupling_c()
255 const int pos = y * s->planewidth[0]; in deband_16_coupling_c()
257 for (x = 0; x < s->planewidth[0]; x++) { in deband_16_coupling_c()
266 const int w = s->planewidth[p] - 1; in deband_16_coupling_c()
[all …]
Dvf_entropy.c37 int planewidth[4]; member
84 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
85 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
113 float total = s->planewidth[plane] * s->planeheight[plane]; in filter_frame()
122 for (x = 0; x < s->planewidth[plane]; x++) { in filter_frame()
130 for (x = 0; x < s->planewidth[plane]; x++) { in filter_frame()
Dvf_pullup.c191 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
192 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
194 s->metric_w = (s->planewidth[mp] - ((s->junk_left + s->junk_right) << 3)) >> 3; in config_input()
196 s->metric_offset = (s->junk_left << 3) + (s->junk_top << 1) * s->planewidth[mp]; in config_input()
247 b->planes[i] = av_malloc(s->planeheight[i] * s->planewidth[i]); in alloc_buffer()
528 int ystep = s->planewidth[mp] << 3; in compute_metric()
529 int stride = s->planewidth[mp] << 1; /* field stride */ in compute_metric()
543 a = fa->buffer->planes[mp] + pa * s->planewidth[mp] + s->metric_offset; in compute_metric()
544 b = fb->buffer->planes[mp] + pb * s->planewidth[mp] + s->metric_offset; in compute_metric()
616 ss = src->planes[i] + parity * s->planewidth[i]; in copy_field()
[all …]
Dvf_maskfun.c38 int planewidth[4], planeheight[4]; member
133 const int w = s->planewidth[p]; \
170 const int w = s->planewidth[p]; \
212 memset(dst, s->fill, s->planewidth[p]); in fill_frame()
221 for (int x = 0; x < s->planewidth[p]; x++) in fill_frame()
237 s->max_sum += (uint64_t)s->sum * s->planewidth[p] * s->planeheight[p]; in set_max_sum()
257 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_input()
258 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
Dvf_lagfun.c39 int planewidth[4]; member
87 const int width = s->planewidth[p]; \
90 float *osrc = s->old[p] + slice_start * s->planewidth[p]; \
149 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_output()
150 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_output()
155 s->old[p] = av_calloc(s->planewidth[p] * s->planeheight[p], sizeof(*s->old[0])); in config_output()
Dvf_colorize.c36 int planewidth[4]; member
52 const int width = s->planewidth[0]; in colorizey_slice8()
75 const int width = s->planewidth[0]; in colorizey_slice16()
98 const int width = s->planewidth[1]; in colorize_slice8()
126 const int width = s->planewidth[1]; in colorize_slice16()
242 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
243 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
Dvf_psnr.c55 int planewidth[4]; member
114 int planewidth[4]; member
129 const int outw = td->planewidth[c]; in compute_images_mse()
188 td.planewidth[c] = s->planewidth[c]; in do_psnr()
201 comp_mse[c] = comp_sum[c] / ((double)s->planewidth[c] * s->planeheight[c]); in do_psnr()
344 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input_ref()
345 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input_ref()
348 sum += s->planeheight[j] * s->planewidth[j]; in config_input_ref()
351 s->planeweight[j] = (double) s->planeheight[j] * s->planewidth[j] / sum; in config_input_ref()
Dvf_median.c114 if (s->planewidth[i] < s->radius * 2 + 1) { in check_params()
115 …%d plane width %d must be not less than %d, clipping radius.\n", i, s->planewidth[i], s->radius * … in check_params()
116 s->radius = (s->planewidth[i] - 1) / 2; in check_params()
134 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
135 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
188 const int w = s->planewidth[plane]; in filter_slice()
Dvf_identity.c51 int planewidth[4]; member
90 int planewidth[4]; member
105 const int outw = td->planewidth[c]; in compute_images_msad()
133 const int outw = td->planewidth[c]; in compute_images_identity()
197 td.planewidth[c] = s->planewidth[c]; in do_identity()
210 comp_score[c] = comp_sum[c] / ((double)s->planewidth[c] * s->planeheight[c]); in do_identity()
283 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input_ref()
284 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input_ref()
Dvf_hflip.c74 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_props()
75 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, hsub); in config_props()
99 const int width = s->planewidth[plane] / s->bayer_plus1; in filter_slice()
Dvf_avgblur.c42 int planewidth[4]; member
207 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
208 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
224 s->radius = FFMIN(s->planewidth[1] / 2, s->radius); in config_input()
235 const int width = s->planewidth[plane]; in averageiir2d()
288 const int width = s->planewidth[plane]; in filter_frame()
319 s->radius = FFMIN(s->planewidth[1] / 2, s->radius); in process_command()
Dvf_deflicker.c57 int planewidth[4]; member
169 for (x = 0; x < s->planewidth[0]; x++) { in calc_avgy8()
179 return 1.0f * sum / (s->planeheight[0] * s->planewidth[0]); in calc_avgy8()
192 for (x = 0; x < s->planewidth[0]; x++) { in calc_avgy16()
202 return 1.0f * sum / (s->planeheight[0] * s->planewidth[0]); in calc_avgy16()
324 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
325 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
385 s->planewidth[y] * (1 + (s->depth > 8)), s->planeheight[y]); in filter_frame()
Dvf_colorcorrect.c51 int planewidth[4]; member
69 const int width = s->planewidth[1]; in average_slice8()
100 const int width = s->planewidth[1]; in average_slice16()
131 const int width = s->planewidth[1]; in minmax_slice8()
167 const int width = s->planewidth[1]; in minmax_slice16()
203 const int width = s->planewidth[1]; in median_8()
257 const int width = s->planewidth[1]; in median_16()
323 const int width = s->planewidth[1]; in colorcorrect_slice8()
364 const int width = s->planewidth[1]; in colorcorrect_slice16()
490 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
[all …]
Dvf_colorconstancy.c86 int planewidth[4]; member
224 td->data[b][p] = av_calloc(s->planeheight[p] * s->planewidth[p], in setup_derivative_buffers()
267 const int width = s->planewidth[plane]; in slice_get_derivative()
329 const int width = s->planewidth[plane]; in slice_normalize()
390 int width = s->planewidth[1]; in get_derivative()
452 const int width = s->planewidth[plane]; in filter_slice_grey_edge()
497 int nb_jobs = FFMIN3(s->planeheight[1], s->planewidth[1], s->nb_threads); in filter_grey_edge()
605 const int width = s->planewidth[plane]; in diagonal_transformation()
634 int nb_jobs = FFMIN3(s->planeheight[1], s->planewidth[1], s->nb_threads); in chromatic_adaptation()
661 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_props()
[all …]
Dvf_ssim.c61 int planewidth[4]; member
228 int planewidth[4]; member
250 int width = td->planewidth[c]; in ssim_plane_16bit()
293 int width = td->planewidth[c]; in ssim_plane()
358 td.planewidth[n] = s->planewidth[n]; in do_ssim()
368 c[i] = c[i] / (((s->planewidth[i] >> 2) - 1) * ((s->planeheight[i] >> 2) - 1)); in do_ssim()
460 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input_ref()
461 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input_ref()
463 sum += s->planeheight[i] * s->planewidth[i]; in config_input_ref()
465 s->coefs[i] = (double) s->planeheight[i] * s->planewidth[i] / sum; in config_input_ref()
Dvf_lenscorrection.c41 int planewidth[4]; member
86 const int w = rect->planewidth[plane], h = rect->planeheight[plane]; \
128 const int w = rect->planewidth[plane], h = rect->planeheight[plane]; \
218 int w = rect->planewidth[plane]; in calc_correction()
254 rect->planewidth[1] = rect->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, pixdesc->log2_chroma_w); in config_output()
255 rect->planewidth[0] = rect->planewidth[3] = inlink->w; in config_output()
274 int w = rect->planewidth[plane]; in config_output()
Dvf_scroll.c41 int planewidth[4]; member
82 const int w = s->planewidth[p] * s->bytes; in scroll_slice()
163 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, s->desc->log2_chroma_w); in config_input()
164 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
Dvf_thumbnail.c49 int planewidth[4]; member
190 for (i = 0; i < s->planewidth[plane]; i++) in filter_frame()
239 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_props()
240 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_props()
Dvf_cas.c35 int planewidth[4]; member
60 const int w = s->planewidth[p]; in cas_slice8()
127 const int w = s->planewidth[p]; in cas_slice16()
239 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
240 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
Dvf_bilateral.c42 int planewidth[4]; member
119 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); in config_input()
120 s->planewidth[0] = s->planewidth[3] = inlink->w; in config_input()
128 const int w = s->planewidth[p]; in config_input()
158 const int width = s->planewidth[plane]; \
230 const int width = s->planewidth[plane]; \ in BILATERAL_H()
333 const int width = s->planewidth[plane]; \
406 const int width = s->planewidth[plane]; in bilateralo_planes()
Dvf_shear.c49 int planewidth[4]; member
129 const int width = s->planewidth[p]; \
176 const int width = s->planewidth[p]; \
258 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(ctx->inputs[0]->w, desc->log2_chroma_w); in config_output()
259 s->planewidth[0] = s->planewidth[3] = ctx->inputs[0]->w; in config_output()

123