FFmpeg
|
#include "avfilter.h"
#include "filters.h"
#include "video.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include <float.h>
#include <math.h>
Go to the source code of this file.
Data Structures | |
struct | Point |
struct | MBContext |
Macros | |
#define | SQR(a) ((a)*(a)) |
#define | OFFSET(x) offsetof(MBContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | Z_Z2_C(outr, outi, inr, ini) |
#define | Z_Z2_C_ZYKLUS(outr, outi, inr, ini, Z) |
Enumerations | |
enum | Outer { ITERATION_COUNT, NORMALIZED_ITERATION_COUNT, WHITE, OUTZ } |
enum | Inner { BLACK, PERIOD, CONVTIME, MINCOL } |
Functions | |
AVFILTER_DEFINE_CLASS (mandelbrot) | |
static av_cold int | init (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *outlink) |
static void | fill_from_cache (AVFilterContext *ctx, uint32_t *color, int *in_cidx, int *out_cidx, double py, double scale) |
static int | interpol (MBContext *s, uint32_t *color, int x, int y, int linesize) |
static void | draw_mandelbrot (AVFilterContext *ctx, uint32_t *color, int linesize, int64_t pts) |
static int | request_frame (AVFilterLink *link) |
Variables | |
static const AVOption | mandelbrot_options [] |
static const AVFilterPad | mandelbrot_outputs [] |
const AVFilter | ff_vsrc_mandelbrot |
Mandelbrot fractal renderer
Definition in file vsrc_mandelbrot.c.
Definition at line 38 of file vsrc_mandelbrot.c.
#define OFFSET | ( | x | ) | offsetof(MBContext, x) |
Definition at line 85 of file vsrc_mandelbrot.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 86 of file vsrc_mandelbrot.c.
#define Z_Z2_C | ( | outr, | |
outi, | |||
inr, | |||
ini | |||
) |
#define Z_Z2_C_ZYKLUS | ( | outr, | |
outi, | |||
inr, | |||
ini, | |||
Z | |||
) |
enum Outer |
Enumerator | |
---|---|
ITERATION_COUNT | |
NORMALIZED_ITERATION_COUNT | |
WHITE | |
OUTZ |
Definition at line 40 of file vsrc_mandelbrot.c.
enum Inner |
Enumerator | |
---|---|
BLACK | |
PERIOD | |
CONVTIME | |
MINCOL |
Definition at line 47 of file vsrc_mandelbrot.c.
AVFILTER_DEFINE_CLASS | ( | mandelbrot | ) |
|
static |
Definition at line 121 of file vsrc_mandelbrot.c.
|
static |
Definition at line 142 of file vsrc_mandelbrot.c.
|
static |
Definition at line 151 of file vsrc_mandelbrot.c.
|
static |
Definition at line 168 of file vsrc_mandelbrot.c.
Referenced by draw_mandelbrot().
|
static |
Definition at line 186 of file vsrc_mandelbrot.c.
Referenced by dequant_lsp10r(), dequant_lsp16r(), draw_mandelbrot(), ff_bwdif_filter_edge_c(), ff_bwdif_filter_intra_c(), ff_bwdif_filter_line_c(), filter_edge_16bit(), filter_intra_16bit(), and filter_line_c_16bit().
|
static |
Definition at line 240 of file vsrc_mandelbrot.c.
Referenced by request_frame().
|
static |
Definition at line 389 of file vsrc_mandelbrot.c.
|
static |
Definition at line 88 of file vsrc_mandelbrot.c.
|
static |
Definition at line 404 of file vsrc_mandelbrot.c.
const AVFilter ff_vsrc_mandelbrot |
Definition at line 413 of file vsrc_mandelbrot.c.