/third_party/ffmpeg/libavfilter/ |
D | vf_colorchannelmixer.c | 55 int (*filter_slice[2])(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 121 static av_always_inline int filter_slice_rgba_planar(AVFilterContext *ctx, void *arg, int jobnr, in… in filter_slice_rgba_planar() argument 132 const int slice_start = (out->height * jobnr) / nb_jobs; in filter_slice_rgba_planar() 133 const int slice_end = (out->height * (jobnr+1)) / nb_jobs; in filter_slice_rgba_planar() 207 static av_always_inline int filter_slice_rgba16_planar(AVFilterContext *ctx, void *arg, int jobnr, … in filter_slice_rgba16_planar() argument 218 const int slice_start = (out->height * jobnr) / nb_jobs; in filter_slice_rgba16_planar() 219 const int slice_end = (out->height * (jobnr+1)) / nb_jobs; in filter_slice_rgba16_planar() 293 static int filter_slice_gbrp(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter_slice_gbrp() argument 295 return filter_slice_rgba_planar(ctx, arg, jobnr, nb_jobs, 0, 0); in filter_slice_gbrp() 298 static int filter_slice_gbrap(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter_slice_gbrap() argument [all …]
|
D | vf_overlay.c | 352 int is_straight, int jobnr, int nb_jobs) in blend_slice_packed_rgb() argument 377 slice_start = i + (imax * jobnr) / nb_jobs; in blend_slice_packed_rgb() 378 slice_end = i + (imax * (jobnr+1)) / nb_jobs; in blend_slice_packed_rgb() 449 … int jobnr, \ 470 …slice_start = j + (jmax * jobnr) / nb_jobs; … 471 …slice_end = j + (jmax * (jobnr+1)) / nb_jobs; … 568 … int jobnr, int nb_jobs) \ 578 …slice_start = (imax * jobnr) / nb_jobs; … 579 …slice_end = ((imax * (jobnr+1)) / nb_jobs); … 622 … int jobnr, int nb_jobs) \ [all …]
|
D | af_crystalizer.c | 32 int (*filter)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 86 static int filter_flt(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter_flt() argument 96 const int start = (channels * jobnr) / nb_jobs; in filter_flt() 97 const int end = (channels * (jobnr+1)) / nb_jobs; in filter_flt() 121 static int filter_dbl(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter_dbl() argument 131 const int start = (channels * jobnr) / nb_jobs; in filter_dbl() 132 const int end = (channels * (jobnr+1)) / nb_jobs; in filter_dbl() 157 static int filter_fltp(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter_fltp() argument 167 const int start = (channels * jobnr) / nb_jobs; in filter_fltp() 168 const int end = (channels * (jobnr+1)) / nb_jobs; in filter_fltp() [all …]
|
D | vf_colorize.c | 40 int jobnr, int nb_jobs); 48 static int colorizey_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in colorizey_slice8() argument 54 const int slice_start = (height * jobnr) / nb_jobs; in colorizey_slice8() 55 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in colorizey_slice8() 71 static int colorizey_slice16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in colorizey_slice16() argument 77 const int slice_start = (height * jobnr) / nb_jobs; in colorizey_slice16() 78 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in colorizey_slice16() 94 static int colorize_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in colorize_slice8() argument 100 const int slice_start = (height * jobnr) / nb_jobs; in colorize_slice8() 101 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in colorize_slice8() [all …]
|
D | vf_fade.c | 69 int (*filter_slice_luma)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 70 int (*filter_slice_chroma)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 71 int (*filter_slice_alpha)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 234 static int filter_slice_rgb(AVFilterContext *ctx, void *arg, int jobnr, in filter_slice_rgb() argument 239 int slice_start = (frame->height * jobnr ) / nb_jobs; in filter_slice_rgb() 240 int slice_end = (frame->height * (jobnr+1)) / nb_jobs; in filter_slice_rgb() 254 static int filter_slice_luma(AVFilterContext *ctx, void *arg, int jobnr, in filter_slice_luma() argument 259 int slice_start = (frame->height * jobnr ) / nb_jobs; in filter_slice_luma() 260 int slice_end = (frame->height * (jobnr+1)) / nb_jobs; in filter_slice_luma() 279 static int filter_slice_luma16(AVFilterContext *ctx, void *arg, int jobnr, in filter_slice_luma16() argument [all …]
|
D | vf_monochrome.c | 41 int jobnr, int nb_jobs); 43 int jobnr, int nb_jobs); 80 static int monochrome_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in monochrome_slice8() argument 91 const int slice_start = (height * jobnr) / nb_jobs; in monochrome_slice8() 92 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in monochrome_slice8() 119 static int monochrome_slice16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in monochrome_slice16() argument 130 const int slice_start = (height * jobnr) / nb_jobs; in monochrome_slice16() 131 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in monochrome_slice16() 158 static int clear_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in clear_slice8() argument 168 const int slice_start = (height * jobnr) / nb_jobs; in clear_slice8() [all …]
|
D | vf_convolve.c | 60 int (*filter)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 166 static int fft_horizontal(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in fft_horizontal() argument 173 int start = (n * jobnr) / nb_jobs; in fft_horizontal() 174 int end = (n * (jobnr+1)) / nb_jobs; in fft_horizontal() 178 av_fft_permute(s->fft[plane][jobnr], hdata + y * n); in fft_horizontal() 179 av_fft_calc(s->fft[plane][jobnr], hdata + y * n); in fft_horizontal() 260 static int fft_vertical(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in fft_vertical() argument 268 int start = (n * jobnr) / nb_jobs; in fft_vertical() 269 int end = (n * (jobnr+1)) / nb_jobs; in fft_vertical() 278 av_fft_permute(s->fft[plane][jobnr], vdata + y * n); in fft_vertical() [all …]
|
D | vf_colortemperature.c | 49 int jobnr, int nb_jobs); 104 static int temperature_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in temperature_slice8() argument 113 const int slice_start = (height * jobnr) / nb_jobs; in temperature_slice8() 114 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in temperature_slice8() 145 static int temperature_slice16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in temperature_slice16() argument 155 const int slice_start = (height * jobnr) / nb_jobs; in temperature_slice16() 156 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in temperature_slice16() 187 static int temperature_slice8p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in temperature_slice8p() argument 200 const int slice_start = (height * jobnr) / nb_jobs; in temperature_slice8p() 201 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in temperature_slice8p() [all …]
|
D | vf_colorconstancy.c | 249 static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int nb_jobs) in slice_get_derivative() argument 273 slice_start = (height * jobnr ) / nb_jobs; in slice_get_derivative() 274 slice_end = (height * (jobnr + 1)) / nb_jobs; in slice_get_derivative() 288 slice_start = (width * jobnr ) / nb_jobs; in slice_get_derivative() 289 slice_end = (width * (jobnr + 1)) / nb_jobs; in slice_get_derivative() 317 static int slice_normalize(AVFilterContext* ctx, void* arg, int jobnr, int nb_jobs) in slice_normalize() argument 328 const int slice_start = (numpixels * jobnr ) / nb_jobs; in slice_normalize() 329 const int slice_end = (numpixels * (jobnr+1)) / nb_jobs; in slice_normalize() 437 static int filter_slice_grey_edge(AVFilterContext* ctx, void* arg, int jobnr, int nb_jobs) in filter_slice_grey_edge() argument 450 const int slice_start = (height * jobnr) / nb_jobs; in filter_slice_grey_edge() [all …]
|
D | vf_vibrance.c | 46 int jobnr, int nb_jobs); 54 static int vibrance_slice8(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) in vibrance_slice8() argument 72 const int slice_start = (height * jobnr) / nb_jobs; in vibrance_slice8() 73 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in vibrance_slice8() 111 static int vibrance_slice16(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) in vibrance_slice16() argument 131 const int slice_start = (height * jobnr) / nb_jobs; in vibrance_slice16() 132 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in vibrance_slice16() 170 static int vibrance_slice8p(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) in vibrance_slice8p() argument 192 const int slice_start = (height * jobnr) / nb_jobs; in vibrance_slice8p() 193 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in vibrance_slice8p() [all …]
|
D | vf_chromakey.c | 47 int jobnr, int nb_jobs); 117 static int do_chromakey_slice(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) in do_chromakey_slice() argument 121 const int slice_start = (frame->height * jobnr) / nb_jobs; in do_chromakey_slice() 122 const int slice_end = (frame->height * (jobnr + 1)) / nb_jobs; in do_chromakey_slice() 147 static int do_chromakey16_slice(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) in do_chromakey16_slice() argument 151 const int slice_start = (frame->height * jobnr) / nb_jobs; in do_chromakey16_slice() 152 const int slice_end = (frame->height * (jobnr + 1)) / nb_jobs; in do_chromakey16_slice() 181 static int do_chromahold_slice(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) in do_chromahold_slice() argument 185 const int slice_start = ((frame->height >> ctx->vsub_log2) * jobnr) / nb_jobs; in do_chromahold_slice() 186 const int slice_end = ((frame->height >> ctx->vsub_log2) * (jobnr + 1)) / nb_jobs; in do_chromahold_slice() [all …]
|
D | vf_colorcontrast.c | 47 int jobnr, int nb_jobs); 92 static int colorcontrast_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in colorcontrast_slice8() argument 98 const int slice_start = (height * jobnr) / nb_jobs; in colorcontrast_slice8() 99 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in colorcontrast_slice8() 144 static int colorcontrast_slice16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in colorcontrast_slice16() argument 152 const int slice_start = (height * jobnr) / nb_jobs; in colorcontrast_slice16() 153 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in colorcontrast_slice16() 198 static int colorcontrast_slice8p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in colorcontrast_slice8p() argument 205 const int slice_start = (height * jobnr) / nb_jobs; in colorcontrast_slice8p() 206 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in colorcontrast_slice8p() [all …]
|
D | vf_yaepblur.c | 51 int (*pre_calculate_row)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 52 int (*filter_slice )(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 100 int jobnr, int nb_jobs) \ 110 const int starty = height * jobnr / nb_jobs; \ 111 const int endy = height * (jobnr+1) / nb_jobs; \ 136 int jobnr, int nb_jobs) in PRE_CALCULATE_ROW() 145 const int startx = width * jobnr / nb_jobs; in PRE_CALCULATE_ROW() 146 const int endx = width * (jobnr + 1) / nb_jobs; in PRE_CALCULATE_ROW() 166 static int filter_slice_##name(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) … 184 …const int starty = height * jobnr / nb_jobs; … [all …]
|
D | vf_colorcorrect.c | 40 int jobnr, int nb_jobs); 53 static int colorcorrect_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in colorcorrect_slice8() argument 62 const int slice_start = (height * jobnr) / nb_jobs; in colorcorrect_slice8() 63 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in colorcorrect_slice8() 93 static int colorcorrect_slice16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in colorcorrect_slice16() argument 102 const int slice_start = (height * jobnr) / nb_jobs; in colorcorrect_slice16() 103 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in colorcorrect_slice16()
|
D | vf_lumakey.c | 40 int (*do_lumakey_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 43 static int do_lumakey_slice8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in do_lumakey_slice8() argument 47 const int slice_start = (frame->height * jobnr) / nb_jobs; in do_lumakey_slice8() 48 const int slice_end = (frame->height * (jobnr + 1)) / nb_jobs; in do_lumakey_slice8() 75 static int do_lumakey_slice16(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in do_lumakey_slice16() argument 79 const int slice_start = (frame->height * jobnr) / nb_jobs; in do_lumakey_slice16() 80 const int slice_end = (frame->height * (jobnr + 1)) / nb_jobs; in do_lumakey_slice16()
|
D | vf_colorkey.c | 39 int jobnr, int nb_jobs); 57 static int do_colorkey_slice(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) in do_colorkey_slice() argument 61 const int slice_start = (frame->height * jobnr) / nb_jobs; in do_colorkey_slice() 62 const int slice_end = (frame->height * (jobnr + 1)) / nb_jobs; in do_colorkey_slice() 83 static int do_colorhold_slice(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) in do_colorhold_slice() argument 87 const int slice_start = (frame->height * jobnr) / nb_jobs; in do_colorhold_slice() 88 const int slice_end = (frame->height * (jobnr + 1)) / nb_jobs; in do_colorhold_slice()
|
D | af_headphone.c | 137 static int headphone_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in headphone_convolute() argument 142 int offset = jobnr; in headphone_convolute() 143 int *write = &td->write[jobnr]; in headphone_convolute() 144 const float *const ir = td->ir[jobnr]; in headphone_convolute() 145 int *n_clippings = &td->n_clippings[jobnr]; in headphone_convolute() 146 float *ringbuffer = td->ringbuffer[jobnr]; in headphone_convolute() 147 float *temp_src = td->temp_src[jobnr]; in headphone_convolute() 208 static int headphone_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in headphone_fast_convolute() argument 213 int offset = jobnr; in headphone_fast_convolute() 214 int *write = &td->write[jobnr]; in headphone_fast_convolute() [all …]
|
D | vf_signalstats.c | 220 static int filter8_brng(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter8_brng() argument 228 const int slice_start = (h * jobnr ) / nb_jobs; in filter8_brng() 229 const int slice_end = (h * (jobnr+1)) / nb_jobs; in filter8_brng() 254 static int filter16_brng(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter16_brng() argument 263 const int slice_start = (h * jobnr ) / nb_jobs; in filter16_brng() 264 const int slice_end = (h * (jobnr+1)) / nb_jobs; in filter16_brng() 294 static int filter8_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter8_tout() argument 302 const int slice_start = (h * jobnr ) / nb_jobs; in filter8_tout() 303 const int slice_end = (h * (jobnr+1)) / nb_jobs; in filter8_tout() 342 static int filter16_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in filter16_tout() argument [all …]
|
D | vf_chromashift.c | 52 int (*filter_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 93 static int smear_slice ## depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \ 108 const int slice_start = (h * jobnr) / nb_jobs; \ 109 const int slice_end = (h * (jobnr+1)) / nb_jobs; \ 135 static int wrap_slice ## depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \ 150 const int slice_start = (h * jobnr) / nb_jobs; \ 151 const int slice_end = (h * (jobnr+1)) / nb_jobs; \ 190 static int rgbasmear_slice ## depth(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \ 213 const int slice_start = (h * jobnr) / nb_jobs; \ 214 const int slice_end = (h * (jobnr+1)) / nb_jobs; \ [all …]
|
D | vf_colorbalance.c | 56 int (*color_balance)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 158 static int color_balance8_p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in color_balance8_p() argument 164 const int slice_start = (out->height * jobnr) / nb_jobs; in color_balance8_p() 165 const int slice_end = (out->height * (jobnr+1)) / nb_jobs; in color_balance8_p() 211 static int color_balance16_p(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in color_balance16_p() argument 217 const int slice_start = (out->height * jobnr) / nb_jobs; in color_balance16_p() 218 const int slice_end = (out->height * (jobnr+1)) / nb_jobs; in color_balance16_p() 265 static int color_balance8(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in color_balance8() argument 272 const int slice_start = (out->height * jobnr) / nb_jobs; in color_balance8() 273 const int slice_end = (out->height * (jobnr+1)) / nb_jobs; in color_balance8() [all …]
|
D | vf_waveform.c | 119 int jobnr, int nb_jobs); 680 int jobnr, int nb_jobs) in lowpass16() argument 693 const int sliceh_start = !column ? (src_h * jobnr) / nb_jobs : 0; in lowpass16() 694 const int sliceh_end = !column ? (src_h * (jobnr+1)) / nb_jobs : src_h; in lowpass16() 695 const int slicew_start = column ? (src_w * jobnr) / nb_jobs : 0; in lowpass16() 696 const int slicew_end = column ? (src_w * (jobnr+1)) / nb_jobs : src_w; in lowpass16() 790 void *arg, int jobnr, \ 803 jobnr, nb_jobs); \ 818 int jobnr, int nb_jobs) in lowpass() argument 830 const int sliceh_start = !column ? (src_h * jobnr) / nb_jobs : 0; in lowpass() [all …]
|
D | af_sofalizer.c | 340 static int sofalizer_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in sofalizer_convolute() argument 345 int offset = jobnr; in sofalizer_convolute() 346 int *write = &td->write[jobnr]; in sofalizer_convolute() 347 const int *const delay = td->delay[jobnr]; in sofalizer_convolute() 348 const float *const ir = td->ir[jobnr]; in sofalizer_convolute() 349 int *n_clippings = &td->n_clippings[jobnr]; in sofalizer_convolute() 350 float *ringbuffer = td->ringbuffer[jobnr]; in sofalizer_convolute() 351 float *temp_src = td->temp_src[jobnr]; in sofalizer_convolute() 357 … float *dst = (float *)out->extended_data[jobnr * planar]; /* get pointer to audio output buffer */ in sofalizer_convolute() 440 static int sofalizer_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in sofalizer_fast_convolute() argument [all …]
|
D | vf_xfade.c | 105 int slice_start, int slice_end, int jobnr); 214 int slice_start, int slice_end, int jobnr) \ 273 int slice_start, int slice_end, int jobnr) \ 302 int slice_start, int slice_end, int jobnr) \ 332 int slice_start, int slice_end, int jobnr) \ 362 int slice_start, int slice_end, int jobnr) \ 392 int slice_start, int slice_end, int jobnr) \ 422 int slice_start, int slice_end, int jobnr) \ 455 int slice_start, int slice_end, int jobnr) \ 488 int slice_start, int slice_end, int jobnr) \ [all …]
|
D | median_template.c | 54 int slice_h_start, int slice_h_end, int jobnr) in fn() 57 htype *ccoarse = s->coarse[jobnr]; in fn() 58 htype *cfine = s->fine[jobnr]; in fn() 74 if (jobnr == 0) { in fn() 81 srcp = src + FFMAX(0, slice_h_start - radiusV - (jobnr != 0)) * src_linesize; in fn() 82 for (int i = 0; i < radiusV + (jobnr != 0) * (1 + radiusV); i++) { in fn()
|
D | vf_avgblur.c | 44 int (*filter_horizontally)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 45 int (*filter_vertically)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 68 static int filter_horizontally_##name(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)\ 74 const int slice_start = (height * jobnr ) / nb_jobs; \ 75 const int slice_end = (height * (jobnr+1)) / nb_jobs; \ 121 static int filter_vertically_##name(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \ 127 const int slice_start = (width * jobnr ) / nb_jobs; \ 128 const int slice_end = (width * (jobnr+1)) / nb_jobs; \
|