FFmpeg
|
#include "avfilter.h"
#include "filters.h"
#include "video.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/lfg.h"
#include "libavutil/random_seed.h"
#include <float.h>
#include <math.h>
Go to the source code of this file.
Data Structures | |
struct | GradientsContext |
Macros | |
#define | OFFSET(x) offsetof(GradientsContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | VFT AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
Functions | |
AVFILTER_DEFINE_CLASS (gradients) | |
static float | lerpf (float a, float b, float x) |
static uint32_t | lerp_color (uint8_t c0[4], uint8_t c1[4], float x) |
static uint64_t | lerp_color16 (uint8_t c0[4], uint8_t c1[4], float x) |
static uint32_t | lerp_colors (uint8_t arr[8][4], int nb_colors, int nb_wrap_colors, float step) |
static uint64_t | lerp_colors16 (uint8_t arr[8][4], int nb_colors, int nb_wrap_colors, float step) |
static void | lerp_colors32 (float arr[8][4], int nb_colors, int nb_wrap_colors, float step, float *r, float *g, float *b, float *a) |
static float | project (float origin_x, float origin_y, float dest_x, float dest_y, float point_x, float point_y, int type) |
static int | draw_gradients_slice (AVFilterContext *ctx, void *arg, int job, int nb_jobs) |
static int | draw_gradients_slice16 (AVFilterContext *ctx, void *arg, int job, int nb_jobs) |
static int | draw_gradients_slice32_planar (AVFilterContext *ctx, void *arg, int job, int nb_jobs) |
static int | config_output (AVFilterLink *outlink) |
static int | activate (AVFilterContext *ctx) |
Variables | |
static const AVOption | gradients_options [] |
static const AVFilterPad | gradients_outputs [] |
const AVFilter | ff_vsrc_gradients |
#define OFFSET | ( | x | ) | offsetof(GradientsContext, x) |
Definition at line 53 of file vsrc_gradients.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 54 of file vsrc_gradients.c.
Definition at line 55 of file vsrc_gradients.c.
AVFILTER_DEFINE_CLASS | ( | gradients | ) |
Definition at line 92 of file vsrc_gradients.c.
Referenced by lerp_colors32().
|
static |
Definition at line 99 of file vsrc_gradients.c.
Referenced by lerp_colors().
|
static |
Definition at line 109 of file vsrc_gradients.c.
Referenced by lerp_colors16().
|
static |
Definition at line 119 of file vsrc_gradients.c.
Referenced by draw_gradients_slice().
|
static |
Definition at line 142 of file vsrc_gradients.c.
Referenced by draw_gradients_slice16().
|
static |
Definition at line 165 of file vsrc_gradients.c.
Referenced by draw_gradients_slice32_planar().
|
static |
Definition at line 202 of file vsrc_gradients.c.
Referenced by draw_gradients_slice(), draw_gradients_slice16(), and draw_gradients_slice32_planar().
|
static |
Definition at line 251 of file vsrc_gradients.c.
Referenced by config_output().
|
static |
Definition at line 275 of file vsrc_gradients.c.
Referenced by config_output().
|
static |
Definition at line 299 of file vsrc_gradients.c.
Referenced by config_output().
|
static |
Definition at line 333 of file vsrc_gradients.c.
|
static |
Definition at line 383 of file vsrc_gradients.c.
|
static |
Definition at line 57 of file vsrc_gradients.c.
|
static |
Definition at line 438 of file vsrc_gradients.c.
const AVFilter ff_vsrc_gradients |
Definition at line 446 of file vsrc_gradients.c.