/third_party/ffmpeg/libavfilter/ |
D | vf_colorchannelmixer.c | 55 int (*filter_slice[2])(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); 121 …always_inline int filter_slice_rgba_planar(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs, 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 …ways_inline int filter_slice_rgba16_planar(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs, 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() 450 … int nb_jobs) \ 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); 235 int nb_jobs) 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() 255 int nb_jobs) 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() 280 int nb_jobs) 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_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_signalstats.c | 50 int nb_jobs; member 188 s->nb_jobs = FFMAX(1, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx))); in config_output() 189 s->jobs_rets = av_malloc_array(s->nb_jobs, sizeof(*s->jobs_rets)); in config_output() 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 [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 | pthread.c | 47 static void worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads) in worker_func() argument 50 int ret = c->func(c->ctx, c->arg, jobnr, nb_jobs); in worker_func() 61 void *arg, int *ret, int nb_jobs) in thread_execute() argument 65 if (nb_jobs <= 0) in thread_execute() 72 avpriv_slicethread_execute(c->thread, nb_jobs, 0); in thread_execute()
|
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_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_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 | vsrc_sierpinski.c | 53 int (*draw_slice)(AVFilterContext *ctx, void *arg, int job, int nb_jobs); 103 static int draw_triangle_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs) in draw_triangle_slice() argument 109 const int start = (height * job ) / nb_jobs; in draw_triangle_slice() 110 const int end = (height * (job+1)) / nb_jobs; in draw_triangle_slice() 128 static int draw_carpet_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs) in draw_carpet_slice() argument 134 const int start = (height * job ) / nb_jobs; in draw_carpet_slice() 135 const int end = (height * (job+1)) / nb_jobs; in draw_carpet_slice()
|
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 | 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_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() 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() 285 static int ifft_vertical(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in ifft_vertical() argument 293 int start = (n * jobnr) / nb_jobs; in ifft_vertical() 294 int end = (n * (jobnr+1)) / nb_jobs; in ifft_vertical() [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_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_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() 791 int nb_jobs) \ 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 | 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; \
|
D | vf_exposure.c | 38 int jobnr, int nb_jobs); 41 static int exposure_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in exposure_slice() argument 47 const int slice_start = (height * jobnr) / nb_jobs; in exposure_slice() 48 const int slice_end = (height * (jobnr + 1)) / nb_jobs; in exposure_slice()
|
/third_party/ffmpeg/libavutil/ |
D | slicethread.c | 39 int nb_jobs; member 49 … void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads); 55 unsigned nb_jobs = ctx->nb_jobs; in run_jobs() local 61 ctx->worker_func(ctx->priv, current_job, first_job, nb_jobs, nb_active_threads); in run_jobs() 62 … ((current_job = atomic_fetch_add_explicit(&ctx->current_job, 1, memory_order_acq_rel)) < nb_jobs); in run_jobs() 64 return current_job == nb_jobs + nb_active_threads - 1; in run_jobs() 95 … void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads), in avpriv_slicethread_create() argument 129 ctx->nb_jobs = 0; in avpriv_slicethread_create() 164 void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_main) in avpriv_slicethread_execute() argument 168 av_assert0(nb_jobs > 0); in avpriv_slicethread_execute() [all …]
|