FFmpeg
|
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "framesync.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | ColorMapContext |
struct | ThreadData |
Used for passing data between threads. More... | |
Macros | |
#define | MAX_SIZE 64 |
#define | OFFSET(x) offsetof(ColorMapContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
#define | P2(x) ((x)*(x)) |
Enumerations | |
enum | KernelType { EUCLIDEAN, WEUCLIDEAN, NB_KERNELS } |
Functions | |
static int | gauss_make_triangular (double *A, int *p, int n) |
static void | gauss_solve_triangular (const double *A, const int *p, double *b, int n) |
static int | gauss_solve (double *A, double *b, int n) |
static float | euclidean_kernel (const float *x, const float *y) |
static float | weuclidean_kernel (const float *x, const float *y) |
static void | build_map (AVFilterContext *ctx) |
static int | colormap_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
static int | import_map (AVFilterLink *inlink, AVFrame *in) |
static int | process_frame (FFFrameSync *fs) |
static int | config_output (AVFilterLink *outlink) |
static int | activate (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
AVFILTER_DEFINE_CLASS (colormap) | |
Variables | |
static const AVOption | colormap_options [] |
static const AVFilterPad | inputs [] |
static const AVFilterPad | outputs [] |
const AVFilter | ff_vf_colormap |
Compute a look-up table from map of colors.
Definition in file vf_colormap.c.
#define MAX_SIZE 64 |
Definition at line 35 of file vf_colormap.c.
#define OFFSET | ( | x | ) | offsetof(ColorMapContext, x) |
Definition at line 67 of file vf_colormap.c.
Definition at line 68 of file vf_colormap.c.
#define P2 | ( | x | ) | ((x)*(x)) |
Definition at line 150 of file vf_colormap.c.
enum KernelType |
Enumerator | |
---|---|
EUCLIDEAN | |
WEUCLIDEAN | |
NB_KERNELS |
Definition at line 37 of file vf_colormap.c.
Definition at line 82 of file vf_colormap.c.
Referenced by build_map(), and gauss_solve().
Definition at line 116 of file vf_colormap.c.
Referenced by build_map(), and gauss_solve().
Definition at line 136 of file vf_colormap.c.
Referenced by build_map().
Definition at line 152 of file vf_colormap.c.
Referenced by process_frame().
Definition at line 160 of file vf_colormap.c.
Referenced by process_frame().
|
static |
Definition at line 169 of file vf_colormap.c.
Referenced by process_frame().
|
static |
Definition at line 303 of file vf_colormap.c.
Referenced by process_frame().
|
static |
Definition at line 375 of file vf_colormap.c.
Referenced by process_frame().
|
static |
Definition at line 422 of file vf_colormap.c.
Referenced by config_output().
|
static |
Definition at line 483 of file vf_colormap.c.
|
static |
Definition at line 524 of file vf_colormap.c.
|
static |
Definition at line 530 of file vf_colormap.c.
AVFILTER_DEFINE_CLASS | ( | colormap | ) |
|
static |
Definition at line 70 of file vf_colormap.c.
|
static |
Definition at line 537 of file vf_colormap.c.
|
static |
Definition at line 552 of file vf_colormap.c.
const AVFilter ff_vf_colormap |
Definition at line 562 of file vf_colormap.c.