FFmpeg
|
#include "libavutil/avstring.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | ConvolutionContext |
struct | ThreadData |
Used for passing data between threads. More... | |
Macros | |
#define | OFFSET(x) offsetof(ConvolutionContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Enumerations | |
enum | MatrixMode { MATRIX_SQUARE, MATRIX_ROW, MATRIX_COLUMN, MATRIX_NBMODES } |
Functions | |
AVFILTER_DEFINE_CLASS (convolution) | |
static int | query_formats (AVFilterContext *ctx) |
static void | filter16_prewitt (uint8_t *dstp, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter16_roberts (uint8_t *dstp, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter16_sobel (uint8_t *dstp, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter_prewitt (uint8_t *dst, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter_roberts (uint8_t *dst, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter_sobel (uint8_t *dst, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter16_3x3 (uint8_t *dstp, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter16_5x5 (uint8_t *dstp, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter16_7x7 (uint8_t *dstp, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter16_row (uint8_t *dstp, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter16_column (uint8_t *dstp, int height, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter_7x7 (uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter_5x5 (uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter_3x3 (uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter_row (uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | filter_column (uint8_t *dst, int height, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride) |
static void | setup_3x3 (int radius, const uint8_t *c[], const uint8_t *src, int stride, int x, int w, int y, int h, int bpc) |
static void | setup_5x5 (int radius, const uint8_t *c[], const uint8_t *src, int stride, int x, int w, int y, int h, int bpc) |
static void | setup_7x7 (int radius, const uint8_t *c[], const uint8_t *src, int stride, int x, int w, int y, int h, int bpc) |
static void | setup_row (int radius, const uint8_t *c[], const uint8_t *src, int stride, int x, int w, int y, int h, int bpc) |
static void | setup_column (int radius, const uint8_t *c[], const uint8_t *src, int stride, int x, int w, int y, int h, int bpc) |
static int | filter_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
static int | config_input (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static av_cold int | init (AVFilterContext *ctx) |
Variables | |
static const AVOption | convolution_options [] |
static const int | same3x3 [9] |
static const int | same5x5 [25] |
static const int | same7x7 [49] |
static const AVFilterPad | convolution_inputs [] |
static const AVFilterPad | convolution_outputs [] |
#define OFFSET | ( | x | ) | offsetof(ConvolutionContext, x) |
Definition at line 70 of file vf_convolution.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 71 of file vf_convolution.c.
enum MatrixMode |
Enumerator | |
---|---|
MATRIX_SQUARE | |
MATRIX_ROW | |
MATRIX_COLUMN | |
MATRIX_NBMODES |
Definition at line 32 of file vf_convolution.c.
AVFILTER_DEFINE_CLASS | ( | convolution | ) |
|
static |
Definition at line 116 of file vf_convolution.c.
|
static |
Definition at line 146 of file vf_convolution.c.
Referenced by config_input().
|
static |
Definition at line 164 of file vf_convolution.c.
Referenced by config_input().
|
static |
Definition at line 180 of file vf_convolution.c.
Referenced by config_input().
|
static |
Definition at line 198 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 218 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 233 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 253 of file vf_convolution.c.
Referenced by config_input().
|
static |
Definition at line 276 of file vf_convolution.c.
Referenced by config_input().
|
static |
Definition at line 295 of file vf_convolution.c.
Referenced by config_input().
|
static |
Definition at line 314 of file vf_convolution.c.
Referenced by config_input().
|
static |
Definition at line 333 of file vf_convolution.c.
Referenced by config_input().
|
static |
Definition at line 353 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 371 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 389 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 408 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 426 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 445 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 461 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 477 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 493 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 507 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 521 of file vf_convolution.c.
Referenced by filter_frame().
|
static |
Definition at line 594 of file vf_convolution.c.
|
static |
Definition at line 645 of file vf_convolution.c.
|
static |
Definition at line 668 of file vf_convolution.c.
|
static |
Definition at line 73 of file vf_convolution.c.
|
static |
Definition at line 98 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 102 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 108 of file vf_convolution.c.
Referenced by init().
|
static |
Definition at line 773 of file vf_convolution.c.
|
static |
Definition at line 783 of file vf_convolution.c.