#include "avfilter.h"
#include "filters.h"
#include "video.h"
#include "internal.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.
|
| 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) |
|
◆ OFFSET
◆ FLAGS
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
gradients |
| ) |
|
◆ lerpf()
◆ lerp_color()
static uint32_t lerp_color |
( |
uint8_t |
c0[4], |
|
|
uint8_t |
c1[4], |
|
|
float |
x |
|
) |
| |
|
static |
◆ lerp_color16()
static uint64_t lerp_color16 |
( |
uint8_t |
c0[4], |
|
|
uint8_t |
c1[4], |
|
|
float |
x |
|
) |
| |
|
static |
◆ lerp_colors()
static uint32_t lerp_colors |
( |
uint8_t |
arr[8][4], |
|
|
int |
nb_colors, |
|
|
int |
nb_wrap_colors, |
|
|
float |
step |
|
) |
| |
|
static |
◆ lerp_colors16()
static uint64_t lerp_colors16 |
( |
uint8_t |
arr[8][4], |
|
|
int |
nb_colors, |
|
|
int |
nb_wrap_colors, |
|
|
float |
step |
|
) |
| |
|
static |
◆ lerp_colors32()
◆ project()
◆ draw_gradients_slice()
◆ draw_gradients_slice16()
◆ draw_gradients_slice32_planar()
◆ config_output()
◆ activate()
◆ gradients_options
◆ gradients_outputs
◆ ff_vsrc_gradients
Initial value:= {
.name = "gradients",
.priv_class = &gradients_class,
}
Definition at line 435 of file vsrc_gradients.c.