|
FFmpeg
|
rotation filter, partially based on the tests/rotozoom.c program More...
#include "libavutil/avstring.h"#include "libavutil/eval.h"#include "libavutil/opt.h"#include "libavutil/intreadwrite.h"#include "libavutil/parseutils.h"#include "libavutil/pixdesc.h"#include "avfilter.h"#include "drawutils.h"#include "filters.h"#include "video.h"#include <float.h>Go to the source code of this file.
Data Structures | |
| struct | RotContext |
| struct | ThreadData |
| Used for passing data between threads. More... | |
Macros | |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
| #define | TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
| #define | FIXP (1<<16) |
| #define | FIXP2 (1<<20) |
| #define | INT_PI 3294199 |
| #define | SET_SIZE_EXPR(name, opt_name) |
Enumerations | |
| enum | var_name { VAR_IN_W , VAR_IW , VAR_IN_H , VAR_IH , VAR_OUT_W , VAR_OW , VAR_OUT_H , VAR_OH , VAR_HSUB , VAR_VSUB , VAR_N , VAR_T , VAR_VARS_NB } |
Functions | |
| AVFILTER_DEFINE_CLASS (rotate) | |
| static av_cold int | init (AVFilterContext *ctx) |
| static av_cold void | uninit (AVFilterContext *ctx) |
| static double | get_rotated_w (void *opaque, double angle) |
| static double | get_rotated_h (void *opaque, double angle) |
| static int64_t | int_sin (int64_t a) |
| Compute the sin of a using integer values. | |
| static uint8_t * | interpolate_bilinear8 (uint8_t *dst_color, const uint8_t *src, int src_linesize, int src_linestep, int x, int y, int max_x, int max_y) |
| Interpolate the color in src at position x and y using bilinear interpolation. | |
| static uint8_t * | interpolate_bilinear16 (uint8_t *dst_color, const uint8_t *src, int src_linesize, int src_linestep, int x, int y, int max_x, int max_y) |
| Interpolate the color in src at position x and y using bilinear interpolation. | |
| static int | config_props (AVFilterLink *outlink) |
| static av_always_inline void | copy_elem (uint8_t *pout, const uint8_t *pin, int elem_size) |
| static av_always_inline void | simple_rotate_internal (uint8_t *dst, const uint8_t *src, int src_linesize, int angle, int elem_size, int len) |
| static av_always_inline void | simple_rotate (uint8_t *dst, const uint8_t *src, int src_linesize, int angle, int elem_size, int len) |
| static int | filter_slice (AVFilterContext *ctx, void *arg, int job, int nb_jobs) |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
| static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
Variables | |
| static const char *const | var_names [] |
| static const AVOption | rotate_options [] |
| static enum AVPixelFormat | pix_fmts [] |
| static double(*const | func1 [])(void *, double) |
| static const char *const | func1_names [] |
| static const AVFilterPad | rotate_inputs [] |
| static const AVFilterPad | rotate_outputs [] |
| const FFFilter | ff_vf_rotate |
rotation filter, partially based on the tests/rotozoom.c program
Definition in file vf_rotate.c.
| #define OFFSET | ( | x | ) |
Definition at line 95 of file vf_rotate.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 96 of file vf_rotate.c.
Definition at line 97 of file vf_rotate.c.
| #define FIXP (1<<16) |
Definition at line 194 of file vf_rotate.c.
Referenced by filter_frame(), filter_slice(), gen_image(), init_demo(), and int_pow().
| #define FIXP2 (1<<20) |
Definition at line 195 of file vf_rotate.c.
Referenced by int_sin().
| #define INT_PI 3294199 |
Definition at line 196 of file vf_rotate.c.
Referenced by filter_frame(), and int_sin().
| #define SET_SIZE_EXPR | ( | name, | |
| opt_name ) |
Referenced by config_props().
| enum var_name |
| Enumerator | |
|---|---|
| VAR_IN_W | |
| VAR_IW | |
| VAR_IN_H | |
| VAR_IH | |
| VAR_OUT_W | |
| VAR_OW | |
| VAR_OUT_H | |
| VAR_OH | |
| VAR_HSUB | |
| VAR_VSUB | |
| VAR_N | |
| VAR_T | |
| VAR_VARS_NB | |
Definition at line 52 of file vf_rotate.c.
| AVFILTER_DEFINE_CLASS | ( | rotate | ) |
|
static |
Definition at line 114 of file vf_rotate.c.
|
static |
Definition at line 127 of file vf_rotate.c.
Definition at line 158 of file vf_rotate.c.
Definition at line 170 of file vf_rotate.c.
Compute the sin of a using integer values.
Input is scaled by FIXP2 and output values are scaled by FIXP.
Definition at line 202 of file vf_rotate.c.
Referenced by filter_frame().
|
static |
Interpolate the color in src at position x and y using bilinear interpolation.
Definition at line 225 of file vf_rotate.c.
Referenced by config_props().
|
static |
Interpolate the color in src at position x and y using bilinear interpolation.
Definition at line 255 of file vf_rotate.c.
Referenced by config_props().
|
static |
Definition at line 281 of file vf_rotate.c.
|
static |
Definition at line 356 of file vf_rotate.c.
Referenced by simple_rotate_internal().
|
static |
Definition at line 379 of file vf_rotate.c.
Referenced by simple_rotate().
|
static |
Definition at line 401 of file vf_rotate.c.
Referenced by filter_slice().
|
static |
Definition at line 412 of file vf_rotate.c.
|
static |
Definition at line 502 of file vf_rotate.c.
|
static |
Definition at line 557 of file vf_rotate.c.
|
static |
Definition at line 41 of file vf_rotate.c.
|
static |
Definition at line 99 of file vf_rotate.c.
|
static |
Definition at line 135 of file vf_rotate.c.
Definition at line 182 of file vf_rotate.c.
Referenced by config_props(), ff_rate_control_init(), and parse_channel_expressions().
|
static |
Definition at line 188 of file vf_rotate.c.
Referenced by av_expr_parse(), av_expr_parse_and_eval(), config_props(), ff_rate_control_init(), and parse_channel_expressions().
|
static |
Definition at line 580 of file vf_rotate.c.
|
static |
Definition at line 588 of file vf_rotate.c.
| const FFFilter ff_vf_rotate |
Definition at line 596 of file vf_rotate.c.