FFmpeg
|
Mandelbrot fraktal renderer. More...
#include "avfilter.h"
#include "formats.h"
#include "video.h"
#include "internal.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.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 } |
enum | Inner { BLACK, PERIOD, CONVTIME, MINCOL } |
Functions | |
AVFILTER_DEFINE_CLASS (mandelbrot) | |
static av_cold int | init (AVFilterContext *ctx, const char *args) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *inlink) |
static void | fill_from_cache (AVFilterContext *ctx, uint32_t *color, int *in_cidx, int *out_cidx, double py, double scale) |
static int | interpol (MBContext *mb, 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 [] |
AVFilter | avfilter_vsrc_mandelbrot |
Mandelbrot fraktal renderer.
Definition in file vsrc_mandelbrot.c.
Definition at line 39 of file vsrc_mandelbrot.c.
Referenced by draw_mandelbrot().
#define OFFSET | ( | x | ) | offsetof(MBContext, x) |
Definition at line 81 of file vsrc_mandelbrot.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 82 of file vsrc_mandelbrot.c.
#define Z_Z2_C | ( | outr, | |
outi, | |||
inr, | |||
ini | |||
) |
#define Z_Z2_C_ZYKLUS | ( | outr, | |
outi, | |||
inr, | |||
ini, | |||
Z | |||
) |
Referenced by draw_mandelbrot().
enum Outer |
Definition at line 41 of file vsrc_mandelbrot.c.
enum Inner |
Definition at line 46 of file vsrc_mandelbrot.c.
AVFILTER_DEFINE_CLASS | ( | mandelbrot | ) |
|
static |
Definition at line 112 of file vsrc_mandelbrot.c.
|
static |
Definition at line 144 of file vsrc_mandelbrot.c.
|
static |
Definition at line 154 of file vsrc_mandelbrot.c.
|
static |
Definition at line 165 of file vsrc_mandelbrot.c.
|
static |
Definition at line 180 of file vsrc_mandelbrot.c.
Referenced by draw_mandelbrot().
|
static |
Definition at line 196 of file vsrc_mandelbrot.c.
Referenced by dequant_lsp10r(), dequant_lsp16r(), and draw_mandelbrot().
|
static |
Definition at line 250 of file vsrc_mandelbrot.c.
Referenced by request_frame().
|
static |
Definition at line 382 of file vsrc_mandelbrot.c.
|
static |
Definition at line 84 of file vsrc_mandelbrot.c.
|
static |
Definition at line 396 of file vsrc_mandelbrot.c.
AVFilter avfilter_vsrc_mandelbrot |
Definition at line 406 of file vsrc_mandelbrot.c.