Go to the source code of this file.
|
#define | OFFSET(x) offsetof(XFadeContext, x) |
|
#define | FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) |
|
#define | CUSTOM_TRANSITION(name, type, div) |
|
#define | FADE_TRANSITION(name, type, div) |
|
#define | WIPELEFT_TRANSITION(name, type, div) |
|
#define | WIPERIGHT_TRANSITION(name, type, div) |
|
#define | WIPEUP_TRANSITION(name, type, div) |
|
#define | WIPEDOWN_TRANSITION(name, type, div) |
|
#define | SLIDELEFT_TRANSITION(name, type, div) |
|
#define | SLIDERIGHT_TRANSITION(name, type, div) |
|
#define | SLIDEUP_TRANSITION(name, type, div) |
|
#define | SLIDEDOWN_TRANSITION(name, type, div) |
|
#define | CIRCLECROP_TRANSITION(name, type, div) |
|
#define | RECTCROP_TRANSITION(name, type, div) |
|
#define | DISTANCE_TRANSITION(name, type, div) |
|
#define | FADEBLACK_TRANSITION(name, type, div) |
|
#define | FADEWHITE_TRANSITION(name, type, div) |
|
#define | RADIAL_TRANSITION(name, type, div) |
|
#define | SMOOTHLEFT_TRANSITION(name, type, div) |
|
#define | SMOOTHRIGHT_TRANSITION(name, type, div) |
|
#define | SMOOTHUP_TRANSITION(name, type, div) |
|
#define | SMOOTHDOWN_TRANSITION(name, type, div) |
|
#define | CIRCLEOPEN_TRANSITION(name, type, div) |
|
#define | CIRCLECLOSE_TRANSITION(name, type, div) |
|
#define | VERTOPEN_TRANSITION(name, type, div) |
|
#define | VERTCLOSE_TRANSITION(name, type, div) |
|
#define | HORZOPEN_TRANSITION(name, type, div) |
|
#define | HORZCLOSE_TRANSITION(name, type, div) |
|
#define | DISSOLVE_TRANSITION(name, type, div) |
|
#define | PIXELIZE_TRANSITION(name, type, div) |
|
#define | DIAGTL_TRANSITION(name, type, div) |
|
#define | DIAGTR_TRANSITION(name, type, div) |
|
#define | DIAGBL_TRANSITION(name, type, div) |
|
#define | DIAGBR_TRANSITION(name, type, div) |
|
#define | HLSLICE_TRANSITION(name, type, div) |
|
#define | HRSLICE_TRANSITION(name, type, div) |
|
#define | VUSLICE_TRANSITION(name, type, div) |
|
#define | VDSLICE_TRANSITION(name, type, div) |
|
#define | HBLUR_TRANSITION(name, type, div) |
|
#define | FADEGRAYS_TRANSITION(name, type, div) |
|
#define | WIPETL_TRANSITION(name, type, div) |
|
#define | WIPETR_TRANSITION(name, type, div) |
|
#define | WIPEBL_TRANSITION(name, type, div) |
|
#define | WIPEBR_TRANSITION(name, type, div) |
|
#define | SQUEEZEH_TRANSITION(name, type, div) |
|
#define | SQUEEZEV_TRANSITION(name, type, div) |
|
#define | ZOOMIN_TRANSITION(name, type, div) |
|
|
enum | XFadeTransitions {
CUSTOM = -1,
FADE,
WIPELEFT,
WIPERIGHT,
WIPEUP,
WIPEDOWN,
SLIDELEFT,
SLIDERIGHT,
SLIDEUP,
SLIDEDOWN,
CIRCLECROP,
RECTCROP,
DISTANCE,
FADEBLACK,
FADEWHITE,
RADIAL,
SMOOTHLEFT,
SMOOTHRIGHT,
SMOOTHUP,
SMOOTHDOWN,
CIRCLEOPEN,
CIRCLECLOSE,
VERTOPEN,
VERTCLOSE,
HORZOPEN,
HORZCLOSE,
DISSOLVE,
PIXELIZE,
DIAGTL,
DIAGTR,
DIAGBL,
DIAGBR,
HLSLICE,
HRSLICE,
VUSLICE,
VDSLICE,
HBLUR,
FADEGRAYS,
WIPETL,
WIPETR,
WIPEBL,
WIPEBR,
SQUEEZEH,
SQUEEZEV,
ZOOMIN,
NB_TRANSITIONS,
CUSTOM,
FADE,
WIPELEFT,
WIPERIGHT,
WIPEUP,
WIPEDOWN,
SLIDELEFT,
SLIDERIGHT,
SLIDEUP,
SLIDEDOWN,
NB_TRANSITIONS
} |
|
enum | {
VAR_X,
VAR_Y,
VAR_W,
VAR_H,
VAR_A,
VAR_B,
VAR_PLANE,
VAR_PROGRESS,
VAR_VARS_NB
} |
|
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
| AVFILTER_DEFINE_CLASS (xfade) |
|
static float | mix (float a, float b, float mix) |
|
static float | fract (float a) |
|
static float | smoothstep (float edge0, float edge1, float x) |
|
static float | frand (int x, int y) |
|
static void | zoom (float *u, float *v, float amount) |
|
static double | getpix (void *priv, double x, double y, int plane, int nb) |
|
static double | a0 (void *priv, double x, double y) |
|
static double | a1 (void *priv, double x, double y) |
|
static double | a2 (void *priv, double x, double y) |
|
static double | a3 (void *priv, double x, double y) |
|
static double | b0 (void *priv, double x, double y) |
|
static double | b1 (void *priv, double x, double y) |
|
static double | b2 (void *priv, double x, double y) |
|
static double | b3 (void *priv, double x, double y) |
|
static int | config_output (AVFilterLink *outlink) |
|
static int | xfade_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | xfade_frame (AVFilterContext *ctx, AVFrame *a, AVFrame *b) |
|
static int | xfade_activate (AVFilterContext *ctx) |
|
◆ OFFSET
◆ FLAGS
◆ CUSTOM_TRANSITION
#define CUSTOM_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
◆ FADE_TRANSITION
#define FADE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] =
mix(xf0[x], xf1[x], progress); \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 263 of file vf_xfade.c.
◆ WIPELEFT_TRANSITION
#define WIPELEFT_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int z =
out->width * progress;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = x > z ? xf1[x] : xf0[x]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 292 of file vf_xfade.c.
◆ WIPERIGHT_TRANSITION
#define WIPERIGHT_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int z =
out->width * (1.f - progress);
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = x > z ? xf0[x] : xf1[x]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 322 of file vf_xfade.c.
◆ WIPEUP_TRANSITION
#define WIPEUP_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int z =
out->height * progress;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = slice_start + y > z ? xf1[x] : xf0[x]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 352 of file vf_xfade.c.
◆ WIPEDOWN_TRANSITION
#define WIPEDOWN_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int z =
out->height * (1.f - progress);
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = slice_start + y > z ? xf0[x] : xf1[x]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 382 of file vf_xfade.c.
◆ SLIDELEFT_TRANSITION
#define SLIDELEFT_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int z = -progress *
width;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
width; x++) { \
const int zx = z + x; \
dst[x] = (zx > 0) && (zx <
width) ? xf1[zz] : xf0[zz]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 412 of file vf_xfade.c.
◆ SLIDERIGHT_TRANSITION
#define SLIDERIGHT_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int z = progress *
width;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
const int zx = z + x; \
dst[x] = (zx > 0) && (zx <
width) ? xf1[zz] : xf0[zz]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 445 of file vf_xfade.c.
◆ SLIDEUP_TRANSITION
#define SLIDEUP_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int z = -progress *
height;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
const int zy = z + y; \
const
type *xf0 = (
const type *)(
a->data[p] + zz *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + zz *
b->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = (zy > 0) && (zy <
height) ? xf1[x] : xf0[x]; \
} \
\
dst +=
out->linesize[p] / div; \
} \
} \
}
Definition at line 478 of file vf_xfade.c.
◆ SLIDEDOWN_TRANSITION
#define SLIDEDOWN_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int p = 0; p <
s->nb_planes; p++) { \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
const int zy = z + y; \
const
type *xf0 = (
const type *)(
a->data[p] + zz *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + zz *
b->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = (zy > 0) && (zy <
height) ? xf1[x] : xf0[x]; \
} \
\
dst +=
out->linesize[p] / div; \
} \
} \
}
Definition at line 509 of file vf_xfade.c.
◆ CIRCLECROP_TRANSITION
#define CIRCLECROP_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
int bg =
s->black[p]; \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]);
\
int
val = progress < 0.5f ? xf1[x] : xf0[x]; \
dst[x] = (z < dist) ? bg :
val; \
} \
\
dst +=
out->linesize[p] / div; \
} \
} \
}
Definition at line 540 of file vf_xfade.c.
◆ RECTCROP_TRANSITION
#define RECTCROP_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
int bg =
s->black[p]; \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]);
\
int
val = progress < 0.5f ? xf1[x] : xf0[x]; \
dst[x] = !dist ? bg :
val; \
} \
\
dst +=
out->linesize[p] / div; \
} \
} \
}
Definition at line 573 of file vf_xfade.c.
◆ DISTANCE_TRANSITION
#define DISTANCE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float max =
s->max_value;
\
for (
int x = 0; x <
width; x++) { \
float dist = 0.f; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
\
dist += (xf0[x] /
max - xf1[x] /
max) * \
(xf0[x] /
max - xf1[x] /
max); \
} \
\
dist = sqrtf(dist) <= progress; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
dst[x] =
mix(
mix(xf0[x], xf1[x], dist), xf1[x], progress); \
} \
} \
} \
}
Definition at line 608 of file vf_xfade.c.
◆ FADEBLACK_TRANSITION
#define FADEBLACK_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float phase = 0.2f;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]); \
const
int bg =
s->black[p];
\
for (
int x = 0; x <
out->width; x++) { \
progress); \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 643 of file vf_xfade.c.
◆ FADEWHITE_TRANSITION
#define FADEWHITE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float phase = 0.2f;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]); \
const
int bg =
s->white[p];
\
for (
int x = 0; x <
out->width; x++) { \
progress); \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 676 of file vf_xfade.c.
◆ RADIAL_TRANSITION
#define RADIAL_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int x = 0; x <
width; x++) { \
(progress - 0.5f) * (
M_PI * 2.5
f); \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 709 of file vf_xfade.c.
◆ SMOOTHLEFT_TRANSITION
#define SMOOTHLEFT_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int x = 0; x <
width; x++) { \
const
float smooth = 1.f + x /
w - progress * 2.f;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 737 of file vf_xfade.c.
◆ SMOOTHRIGHT_TRANSITION
#define SMOOTHRIGHT_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int x = 0; x <
width; x++) { \
const
float smooth = 1.f + (
w - 1 - x) /
w - progress * 2.
f;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 765 of file vf_xfade.c.
◆ SMOOTHUP_TRANSITION
#define SMOOTHUP_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h =
out->height;
\
const
float smooth = 1.f + y /
h - progress * 2.f; \
for (
int x = 0; x <
width; x++) { \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 793 of file vf_xfade.c.
◆ SMOOTHDOWN_TRANSITION
#define SMOOTHDOWN_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h =
out->height;
\
const
float smooth = 1.f + (
h - 1 - y) /
h - progress * 2.
f; \
for (
int x = 0; x <
width; x++) { \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 820 of file vf_xfade.c.
◆ CIRCLEOPEN_TRANSITION
#define CIRCLEOPEN_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float p = (progress - 0.5f) * 3.
f;
\
for (
int x = 0; x <
width; x++) { \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 847 of file vf_xfade.c.
◆ CIRCLECLOSE_TRANSITION
#define CIRCLECLOSE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float p = (1.f - progress - 0.5f) * 3.
f;
\
for (
int x = 0; x <
width; x++) { \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 876 of file vf_xfade.c.
◆ VERTOPEN_TRANSITION
#define VERTOPEN_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float w2 =
out->width / 2;
\
for (
int x = 0; x <
width; x++) { \
const
float smooth = 2.f -
fabsf((x - w2) / w2) - progress * 2.f; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 905 of file vf_xfade.c.
◆ VERTCLOSE_TRANSITION
#define VERTCLOSE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float w2 =
out->width / 2;
\
for (
int x = 0; x <
width; x++) { \
const
float smooth = 1.f +
fabsf((x - w2) / w2) - progress * 2.f; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 932 of file vf_xfade.c.
◆ HORZOPEN_TRANSITION
#define HORZOPEN_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h2 =
out->height / 2;
\
const
float smooth = 2.f -
fabsf((y - h2) / h2) - progress * 2.f; \
for (
int x = 0; x <
width; x++) { \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 959 of file vf_xfade.c.
◆ HORZCLOSE_TRANSITION
#define HORZCLOSE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h2 =
out->height / 2;
\
const
float smooth = 1.f +
fabsf((y - h2) / h2) - progress * 2.f; \
for (
int x = 0; x <
width; x++) { \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 986 of file vf_xfade.c.
◆ DISSOLVE_TRANSITION
#define DISSOLVE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int x = 0; x <
width; x++) { \
const
float smooth =
frand(x, y) * 2.f + progress * 2.f - 1.5f; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
dst[x] =
smooth >= 0.5f ? xf0[x] : xf1[x]; \
} \
} \
} \
}
Definition at line 1020 of file vf_xfade.c.
◆ PIXELIZE_TRANSITION
#define PIXELIZE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int w =
out->width; \
const
int h =
out->height; \
const
float d =
fminf(progress, 1.
f - progress); \
const
float dist =
ceilf(
d * 50.
f) / 50.f; \
const
float sqx = 2.f * dist *
FFMIN(
w,
h) / 20.f; \
const
float sqy = 2.f * dist *
FFMIN(
w,
h) / 20.f;
\
for (
int x = 0; x <
w; x++) { \
int sx = dist > 0.f ?
FFMIN((
floorf(x / sqx) + .5
f) * sqx,
w - 1) : x; \
int sy = dist > 0.f ?
FFMIN((
floorf(y / sqy) + .5
f) * sqy,
h - 1) : y; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + sy *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + sy *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
dst[x] =
mix(xf0[sx], xf1[sx], progress); \
} \
} \
} \
}
Definition at line 1046 of file vf_xfade.c.
◆ DIAGTL_TRANSITION
#define DIAGTL_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h =
out->height;
\
for (
int x = 0; x <
width; x++) { \
const
float smooth = 1.f + x /
w * y /
h - progress * 2.f;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 1078 of file vf_xfade.c.
◆ DIAGTR_TRANSITION
#define DIAGTR_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h =
out->height;
\
for (
int x = 0; x <
width; x++) { \
const
float smooth = 1.f + (
w - 1 - x) /
w * y /
h - progress * 2.
f;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 1107 of file vf_xfade.c.
◆ DIAGBL_TRANSITION
#define DIAGBL_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h =
out->height;
\
for (
int x = 0; x <
width; x++) { \
const
float smooth = 1.f + x /
w * (
h - 1 - y) /
h - progress * 2.
f;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 1136 of file vf_xfade.c.
◆ DIAGBR_TRANSITION
#define DIAGBR_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h =
out->height;
\
for (
int x = 0; x <
width; x++) { \
const
float smooth = 1.f + (
w - 1 - x) /
w * (
h - 1 - y) /
h - \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
} \
} \
} \
}
Definition at line 1165 of file vf_xfade.c.
◆ HLSLICE_TRANSITION
#define HLSLICE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int x = 0; x <
width; x++) { \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
dst[x] =
mix(xf1[x], xf0[x],
ss); \
} \
} \
} \
}
Definition at line 1195 of file vf_xfade.c.
◆ HRSLICE_TRANSITION
#define HRSLICE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
for (
int x = 0; x <
width; x++) { \
const
float xx = (
w - 1 - x) /
w; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
dst[x] =
mix(xf1[x], xf0[x],
ss); \
} \
} \
} \
}
Definition at line 1224 of file vf_xfade.c.
◆ VUSLICE_TRANSITION
#define VUSLICE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h =
out->height;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
dst[x] =
mix(xf1[x], xf0[x],
ss); \
} \
} \
} \
}
Definition at line 1254 of file vf_xfade.c.
◆ VDSLICE_TRANSITION
#define VDSLICE_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
float h =
out->height;
\
const
float yy = (
h - 1 - y) /
h; \
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + y *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + y *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + y *
out->linesize[p]); \
\
dst[x] =
mix(xf1[x], xf0[x],
ss); \
} \
} \
} \
}
Definition at line 1283 of file vf_xfade.c.
◆ HBLUR_TRANSITION
#define HBLUR_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
◆ FADEGRAYS_TRANSITION
#define FADEGRAYS_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
◆ WIPETL_TRANSITION
#define WIPETL_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int zw =
out->width * progress; \
const
int zh =
out->height * progress;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = slice_start + y <= zh && \
x <= zw ? xf0[x] : xf1[x]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 1426 of file vf_xfade.c.
◆ WIPETR_TRANSITION
#define WIPETR_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int zw =
out->width * (1.f - progress); \
const
int zh =
out->height * progress;
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = slice_start + y <= zh && \
x > zw ? xf0[x] : xf1[x]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 1458 of file vf_xfade.c.
◆ WIPEBL_TRANSITION
#define WIPEBL_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int zw =
out->width * progress; \
const
int zh =
out->height * (1.f - progress);
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = slice_start + y > zh && \
x <= zw ? xf0[x] : xf1[x]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 1490 of file vf_xfade.c.
◆ WIPEBR_TRANSITION
#define WIPEBR_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
Value:
float progress, \
{ \
XFadeContext *
s =
ctx->priv; \
const
int zh =
out->height * (1.f - progress); \
const
int zw =
out->width * (1.f - progress);
\
for (
int p = 0; p <
s->nb_planes; p++) { \
const
type *xf0 = (
const type *)(
a->data[p] + slice_start *
a->linesize[p]); \
const
type *xf1 = (
const type *)(
b->data[p] + slice_start *
b->linesize[p]); \
type *dst = (
type *)(
out->data[p] + slice_start *
out->linesize[p]);
\
for (
int x = 0; x <
out->width; x++) { \
dst[x] = slice_start + y > zh && \
x > zw ? xf0[x] : xf1[x]; \
} \
\
dst +=
out->linesize[p] / div; \
xf0 +=
a->linesize[p] / div; \
xf1 +=
b->linesize[p] / div; \
} \
} \
}
Definition at line 1522 of file vf_xfade.c.
◆ SQUEEZEH_TRANSITION
#define SQUEEZEH_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
◆ SQUEEZEV_TRANSITION
#define SQUEEZEV_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
◆ ZOOMIN_TRANSITION
#define ZOOMIN_TRANSITION |
( |
|
name, |
|
|
|
type, |
|
|
|
div |
|
) |
| |
◆ XFadeTransitions
Enumerator |
---|
CUSTOM | |
FADE | |
WIPELEFT | |
WIPERIGHT | |
WIPEUP | |
WIPEDOWN | |
SLIDELEFT | |
SLIDERIGHT | |
SLIDEUP | |
SLIDEDOWN | |
CIRCLECROP | |
RECTCROP | |
DISTANCE | |
FADEBLACK | |
FADEWHITE | |
RADIAL | |
SMOOTHLEFT | |
SMOOTHRIGHT | |
SMOOTHUP | |
SMOOTHDOWN | |
CIRCLEOPEN | |
CIRCLECLOSE | |
VERTOPEN | |
VERTCLOSE | |
HORZOPEN | |
HORZCLOSE | |
DISSOLVE | |
PIXELIZE | |
DIAGTL | |
DIAGTR | |
DIAGBL | |
DIAGBR | |
HLSLICE | |
HRSLICE | |
VUSLICE | |
VDSLICE | |
HBLUR | |
FADEGRAYS | |
WIPETL | |
WIPETR | |
WIPEBL | |
WIPEBR | |
SQUEEZEH | |
SQUEEZEV | |
ZOOMIN | |
NB_TRANSITIONS | |
CUSTOM | |
FADE | |
WIPELEFT | |
WIPERIGHT | |
WIPEUP | |
WIPEDOWN | |
SLIDELEFT | |
SLIDERIGHT | |
SLIDEUP | |
SLIDEDOWN | |
NB_TRANSITIONS | |
Definition at line 31 of file vf_xfade.c.
◆ anonymous enum
Enumerator |
---|
VAR_X | |
VAR_Y | |
VAR_W | |
VAR_H | |
VAR_A | |
VAR_B | |
VAR_PLANE | |
VAR_PROGRESS | |
VAR_VARS_NB | |
Definition at line 112 of file vf_xfade.c.
◆ uninit()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
xfade |
| ) |
|
◆ mix()
static float mix |
( |
float |
a, |
|
|
float |
b, |
|
|
float |
mix |
|
) |
| |
|
inlinestatic |
◆ fract()
static float fract |
( |
float |
a | ) |
|
|
inlinestatic |
◆ smoothstep()
static float smoothstep |
( |
float |
edge0, |
|
|
float |
edge1, |
|
|
float |
x |
|
) |
| |
|
inlinestatic |
◆ frand()
static float frand |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
static |
◆ zoom()
static void zoom |
( |
float * |
u, |
|
|
float * |
v, |
|
|
float |
amount |
|
) |
| |
|
static |
◆ getpix()
static double getpix |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y, |
|
|
int |
plane, |
|
|
int |
nb |
|
) |
| |
|
inlinestatic |
◆ a0()
static double a0 |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
◆ a1()
static double a1 |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
◆ a2()
static double a2 |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
◆ a3()
static double a3 |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
◆ b0()
static double b0 |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
Definition at line 1702 of file vf_xfade.c.
Referenced by av_rescale_rnd(), biquad_process(), calc_lowcomp(), calc_lowcomp1(), cavs_idct8_add_c(), checkasm_check_synth_filter(), colorcontrast_slice16(), colorcontrast_slice16p(), colorcontrast_slice8(), colorcontrast_slice8p(), config_output(), extract_color(), ff_h264_idct8_add(), ff_ivi_recompose_haar(), ff_put_no_rnd_pixels_l2_msa(), filter_channels(), filter_frame(), filter_horizontally(), generate_noise(), horizontal_compose_daub97i_TMPL(), idct_col(), idct_row(), idctRowCondDC(), idctSparseCol(), idctSparseColAdd(), idctSparseColPut(), kaiser_beta(), set_ap(), set_highshelf_rbj(), set_hp(), set_lp(), set_params(), set_tf1s(), snow_vertical_compose97i(), spatial_compose53i_dy(), spatial_compose53i_dy_buffered(), spatial_compose97i_dy(), spatial_compose97i_dy_buffered(), spatial_compose_haari_dy_TMPL(), spatial_decompose53i(), spatial_decompose97i(), vertical_compose53iH0(), vertical_compose53iL0(), vertical_compose53iL0_TMPL(), vertical_compose97iH0(), vertical_compose97iH1(), vertical_compose97iL0(), vertical_compose97iL1(), vertical_compose_daub97iH0_TMPL(), vertical_compose_daub97iH1_TMPL(), vertical_compose_daub97iL0_TMPL(), vertical_compose_daub97iL1_TMPL(), vertical_compose_dd137iL0_TMPL(), vertical_compose_dd97iH0_TMPL(), vertical_compose_dirac53iH0_TMPL(), vertical_compose_fidelityiH0_TMPL(), vertical_compose_fidelityiL0_TMPL(), vertical_compose_haar_TMPL(), vertical_decompose53iH0(), vertical_decompose53iL0(), vertical_decompose97iH0(), vertical_decompose97iH1(), vertical_decompose97iL0(), and vertical_decompose97iL1().
◆ b1()
static double b1 |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
Definition at line 1703 of file vf_xfade.c.
Referenced by av_adler32_update(), av_rescale_rnd(), biquad_process(), calc_lowcomp(), calc_lowcomp1(), cavs_idct8_add_c(), checkasm_check_synth_filter(), colorcontrast_slice16(), colorcontrast_slice16p(), colorcontrast_slice8(), colorcontrast_slice8p(), config_input(), config_output(), dct4x4(), decode_dlta(), decode_hq_slice(), decode_move(), decode_predictor_coeffs(), decode_subband(), extract_color(), ff_eval_coefs(), ff_h264_idct8_add(), ff_ivi_recompose_haar(), ff_put_no_rnd_pixels_l2_msa(), ff_vp8_luma_dc_wht_msa(), filter_channels(), filter_frame(), filter_horizontally(), horizontal_compose_daub97i_TMPL(), idct_col(), idct_row(), idctRowCondDC(), idctSparseCol(), idctSparseColAdd(), idctSparseColPut(), kaiser_beta(), parse_chunk_headers(), residue_encode(), rgb24_to_yuv420p(), run_test(), search_for_ms(), set_ap(), set_hp(), set_lp(), set_params(), set_tf1s(), snow_vertical_compose97i(), spatial_compose53i_dy(), spatial_compose53i_dy_buffered(), spatial_compose97i_dy(), spatial_compose97i_dy_buffered(), spatial_compose_haari_dy_TMPL(), spatial_decompose53i(), spatial_decompose97i(), vertical_compose53iH0(), vertical_compose53iL0(), vertical_compose53iL0_TMPL(), vertical_compose97iH0(), vertical_compose97iH1(), vertical_compose97iL0(), vertical_compose97iL1(), vertical_compose_daub97iH0_TMPL(), vertical_compose_daub97iH1_TMPL(), vertical_compose_daub97iL0_TMPL(), vertical_compose_daub97iL1_TMPL(), vertical_compose_dd137iL0_TMPL(), vertical_compose_dd97iH0_TMPL(), vertical_compose_dirac53iH0_TMPL(), vertical_compose_fidelityiH0_TMPL(), vertical_compose_fidelityiL0_TMPL(), vertical_compose_haar_TMPL(), vertical_decompose53iH0(), vertical_decompose53iL0(), vertical_decompose97iH0(), vertical_decompose97iH1(), vertical_decompose97iL0(), vertical_decompose97iL1(), and wht4x4().
◆ b2()
static double b2 |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
Definition at line 1704 of file vf_xfade.c.
Referenced by av_adler32_update(), biquad_process(), cavs_idct8_add_c(), colorcontrast_slice16(), colorcontrast_slice16p(), colorcontrast_slice8(), colorcontrast_slice8p(), compare_by_prob(), config_input(), config_output(), decode_dlta(), decode_move(), decode_predictor_coeffs(), decode_subband(), ff_eval_coefs(), ff_h264_idct8_add(), ff_ivi_recompose_haar(), ff_put_no_rnd_pixels_l2_msa(), filter_channels(), filter_frame(), horizontal_compose_daub97i_TMPL(), idct_col(), idct_row(), idctRowCondDC(), idctSparseCol(), idctSparseColAdd(), idctSparseColPut(), parse_chunk_headers(), qpel_motion_search(), residue_encode(), run_test(), search_for_ms(), set_ap(), set_hp(), set_lp(), set_params(), snow_vertical_compose97i(), spatial_compose53i_dy(), spatial_compose53i_dy_buffered(), spatial_compose97i_dy(), spatial_compose97i_dy_buffered(), spatial_decompose53i(), spatial_decompose97i(), vertical_compose53iH0(), vertical_compose53iL0(), vertical_compose53iL0_TMPL(), vertical_compose97iH0(), vertical_compose97iH1(), vertical_compose97iL0(), vertical_compose97iL1(), vertical_compose_daub97iH0_TMPL(), vertical_compose_daub97iH1_TMPL(), vertical_compose_daub97iL0_TMPL(), vertical_compose_daub97iL1_TMPL(), vertical_compose_dd137iL0_TMPL(), vertical_compose_dd97iH0_TMPL(), vertical_compose_dirac53iH0_TMPL(), vertical_compose_fidelityiH0_TMPL(), vertical_compose_fidelityiL0_TMPL(), vertical_decompose53iH0(), vertical_decompose53iL0(), vertical_decompose97iH0(), vertical_decompose97iH1(), vertical_decompose97iL0(), and vertical_decompose97iL1().
◆ b3()
static double b3 |
( |
void * |
priv, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
Definition at line 1705 of file vf_xfade.c.
Referenced by cavs_idct8_add_c(), config_output(), ff_h264_idct8_add(), ff_ivi_recompose_haar(), ff_put_no_rnd_pixels_l2_msa(), idct_col(), idct_row(), idctRowCondDC(), idctSparseCol(), idctSparseColAdd(), idctSparseColPut(), search_for_ms(), snow_vertical_compose97i(), spatial_compose53i_dy(), spatial_compose53i_dy_buffered(), spatial_compose97i_dy(), spatial_compose97i_dy_buffered(), spatial_decompose53i(), spatial_decompose97i(), vertical_compose_dd137iL0_TMPL(), vertical_compose_dd97iH0_TMPL(), vertical_compose_fidelityiH0_TMPL(), and vertical_compose_fidelityiL0_TMPL().
◆ config_output()
◆ xfade_slice()
◆ xfade_frame()
◆ xfade_activate()
◆ var_names
const char* const var_names[] = { "X", "Y", "W", "H", "A", "B", "PLANE", "P", NULL } |
|
static |
◆ pix_fmts
◆ xfade_options
◆ xfade_inputs
Initial value:= {
{
.name = "main",
},
{
.name = "xfade",
},
}
Definition at line 1975 of file vf_xfade.c.
◆ xfade_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 1986 of file vf_xfade.c.
◆ ff_vf_xfade
Initial value:= {
.name = "xfade",
.priv_class = &xfade_class,
}
Definition at line 1994 of file vf_xfade.c.
static enum AVPixelFormat pix_fmts[]
#define AV_PIX_FMT_GBRAP16
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
static int xfade_activate(AVFilterContext *ctx)
#define FILTER_PIXFMTS_ARRAY(array)
static __device__ float floorf(float a)
This structure describes decoded (raw) audio or video data.
static float mix(float a, float b, float mix)
static __device__ float ceilf(float a)
#define AV_PIX_FMT_GBRP14
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
#define AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_YUVA444P16
static double val(void *priv, double ch)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
#define AV_PIX_FMT_GRAY16
#define ss(width, name, subs,...)
static __device__ float fabsf(float a)
#define AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_GBRAP10
#define AV_PIX_FMT_GBRAP12
#define AV_PIX_FMT_YUV444P16
static float smoothstep(float edge0, float edge1, float x)
static int slice_end(AVCodecContext *avctx, AVFrame *pict)
Handle slice ends.
float fminf(float, float)
#define AV_PIX_FMT_YUVA444P12
#define FILTER_INPUTS(array)
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
#define AV_PIX_FMT_GRAY10
#define AV_PIX_FMT_GBRP16
filter_frame For filters that do not use the activate() callback
static const AVFilterPad xfade_inputs[]
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
static const AVFilterPad xfade_outputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static av_cold void uninit(AVFilterContext *ctx)
#define AV_PIX_FMT_YUV444P12
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AV_PIX_FMT_YUVA444P10
static float frand(int x, int y)
static int config_output(AVFilterLink *outlink)
#define AV_PIX_FMT_GBRP12
static void fade(uint8_t *dst, ptrdiff_t dst_linesize, const uint8_t *src, ptrdiff_t src_linesize, int width, int height, int alpha, int beta)
static float fract(float a)
static float smooth(DeshakeOpenCLContext *deshake_ctx, float *gauss_kernel, int length, float max_val, AVFifoBuffer *values)
#define AV_PIX_FMT_YUVA444P9
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
#define FILTER_OUTPUTS(array)
static float distance(float x, float y, int band)
#define AV_PIX_FMT_YUV444P14
#define AV_PIX_FMT_GRAY12