#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/eval.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "drawutils.h"
#include "internal.h"
#include "formats.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | FadeContext |
Defines | |
#define | R 0 |
#define | G 1 |
#define | B 2 |
#define | A 3 |
#define | Y 0 |
#define | U 1 |
#define | V 2 |
#define | OFFSET(x) offsetof(FadeContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
AVFILTER_DEFINE_CLASS (fade) | |
static av_cold int | init (AVFilterContext *ctx, const char *args) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *inlink) |
static void | fade_plane (int y, int h, int w, int fade_factor, int black_level, int black_level_scaled, uint8_t offset, uint8_t step, int bytes_per_plane, uint8_t *data, int line_size) |
static int | draw_slice (AVFilterLink *inlink, int y, int h, int slice_dir) |
static int | end_frame (AVFilterLink *inlink) |
Variables | |
static const AVOption | fade_options [] |
static const enum PixelFormat | studio_level_pix_fmts [] |
static enum PixelFormat | alpha_pix_fmts [] |
AVFilter | avfilter_vf_fade |
Definition in file vf_fade.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define OFFSET | ( | x | ) | offsetof(FadeContext, x) |
AVFILTER_DEFINE_CLASS | ( | fade | ) |
static int config_props | ( | AVFilterLink * | inlink | ) | [static] |
static int draw_slice | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
static int end_frame | ( | AVFilterLink * | inlink | ) | [static] |
static av_cold int init | ( | AVFilterContext * | ctx, | |
const char * | args | |||
) | [static] |
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
static av_cold void uninit | ( | AVFilterContext * | ctx | ) | [static] |
enum PixelFormat alpha_pix_fmts[] [static] |
Initial value:
Definition at line 172 of file vf_fade.c.
Referenced by config_input_main(), config_input_overlay(), and config_props().
Initial value:
{ .name = "fade", .description = NULL_IF_CONFIG_SMALL("Fade in/out input video."), .init = init, .uninit = uninit, .priv_size = sizeof(FadeContext), .query_formats = query_formats, .inputs = (const AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_VIDEO, .config_props = config_props, .get_video_buffer = ff_null_get_video_buffer, .start_frame = ff_null_start_frame, .draw_slice = draw_slice, .end_frame = end_frame, .min_perms = AV_PERM_READ | AV_PERM_WRITE }, { .name = NULL}}, .outputs = (const AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL}}, .priv_class = &fade_class, }
const AVOption fade_options[] [static] |
Initial value:
{ { "type", "set the fade direction", OFFSET(type), AV_OPT_TYPE_STRING, {.str = "in" }, CHAR_MIN, CHAR_MAX, FLAGS }, { "t", "set the fade direction", OFFSET(type), AV_OPT_TYPE_STRING, {.str = "in" }, CHAR_MIN, CHAR_MAX, FLAGS }, { "start_frame", "set expression of frame to start fading", OFFSET(start_frame), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, FLAGS }, { "s", "set expression of frame to start fading", OFFSET(start_frame), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, FLAGS }, { "nb_frames", "set expression for fade duration in frames", OFFSET(nb_frames), AV_OPT_TYPE_INT, {.i64 = 25 }, 0, INT_MAX, FLAGS }, { "n", "set expression for fade duration in frames", OFFSET(nb_frames), AV_OPT_TYPE_INT, {.i64 = 25 }, 0, INT_MAX, FLAGS }, { "alpha", "fade alpha if it is available on the input", OFFSET(alpha), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 1, FLAGS }, {NULL}, }
const enum PixelFormat studio_level_pix_fmts[] [static] |
Initial value:
{ PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_YUV440P, PIX_FMT_NONE }
Definition at line 165 of file vf_fade.c.
Referenced by config_props().