FFmpeg
|
#include "avfilter.h"
#include "filters.h"
#include "formats.h"
#include "video.h"
#include "internal.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.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 |
Functions | |
AVFILTER_DEFINE_CLASS (gradients) | |
static int | query_formats (AVFilterContext *ctx) |
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[3][4], int nb_colors, float step) |
static uint64_t | lerp_colors16 (uint8_t arr[3][4], int nb_colors, float step) |
static float | project (float origin_x, float origin_y, float dest_x, float dest_y, int point_x, int point_y) |
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 | config_output (AVFilterLink *inlink) |
static int | activate (AVFilterContext *ctx) |
Variables | |
static const AVOption | gradients_options [] |
static const AVFilterPad | gradients_outputs [] |
AVFilter | ff_vsrc_gradients |
#define OFFSET | ( | x | ) | offsetof(GradientsContext, x) |
Definition at line 55 of file vsrc_gradients.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 56 of file vsrc_gradients.c.
AVFILTER_DEFINE_CLASS | ( | gradients | ) |
|
static |
Definition at line 86 of file vsrc_gradients.c.
Definition at line 100 of file vsrc_gradients.c.
Referenced by lerp_colors().
Definition at line 110 of file vsrc_gradients.c.
Referenced by lerp_colors16().
Definition at line 120 of file vsrc_gradients.c.
Referenced by draw_gradients_slice().
Definition at line 138 of file vsrc_gradients.c.
Referenced by draw_gradients_slice16().
|
static |
Definition at line 156 of file vsrc_gradients.c.
Referenced by draw_gradients_slice(), and draw_gradients_slice16().
|
static |
Definition at line 176 of file vsrc_gradients.c.
|
static |
Definition at line 199 of file vsrc_gradients.c.
|
static |
Definition at line 220 of file vsrc_gradients.c.
|
static |
Definition at line 251 of file vsrc_gradients.c.
|
static |
Definition at line 58 of file vsrc_gradients.c.
|
static |
Definition at line 292 of file vsrc_gradients.c.
AVFilter ff_vsrc_gradients |
Definition at line 301 of file vsrc_gradients.c.