62 "type:%s start_frame:%d nb_frames:%d\n",
100 int slice_h = frame->
height / nb_jobs;
101 int slice_start = jobnr * slice_h;
102 int slice_end = (jobnr == nb_jobs - 1) ? frame->
height : (jobnr + 1) * slice_h;
105 for (i = slice_start; i <
slice_end; i++) {
107 for (j = 0; j < frame->
width * s->
bpp; j++) {
111 *p = (*p * s->
factor + 32768) >> 16;
125 int slice_start = jobnr * slice_h;
126 int slice_end = (jobnr == nb_jobs - 1) ? frame->
height : (jobnr + 1) * slice_h;
129 for (plane = 1; plane < 3; plane++) {
130 for (i = slice_start; i <
slice_end; i++) {
136 *p = ((*p - 128) * s->
factor + 8421367) >> 16;
150 if (s->
factor < UINT16_MAX) {
155 if (frame->
data[1] && frame->
data[2]) {
171 #define OFFSET(x) offsetof(FadeContext, x)
172 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM
177 {
"start_frame",
"Number of the first frame to which to apply the effect.",
179 {
"nb_frames",
"Number of frames to which the effect should be applied.",
216 .priv_class = &fade_class,
219 .
inputs = avfilter_vf_fade_inputs,
220 .
outputs = avfilter_vf_fade_outputs,