FFmpeg  4.4.7
convolution.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012-2013 Oka Motofumi (chikuzen.mo at gmail dot com)
3  * Copyright (c) 2015 Paul B Mahol
4  *
5  * This file is part of FFmpeg.
6  *
7  * FFmpeg is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * FFmpeg is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with FFmpeg; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef AVFILTER_CONVOLUTION_H
22 #define AVFILTER_CONVOLUTION_H
23 #include "avfilter.h"
24 #include "libavutil/internal.h"
25 
26 enum MatrixMode {
31 };
32 
33 typedef struct ConvolutionContext {
34  const AVClass *class;
35 
36  char *matrix_str[4];
37  float rdiv[4];
38  float bias[4];
39  int mode[4];
40  float scale;
41  float delta;
42  int planes;
43 
44  int size[4];
45  int depth;
46  int max;
47  int bpc;
48  int nb_planes;
50  int planewidth[4];
51  int planeheight[4];
52  int matrix[4][49];
53  int matrix_length[4];
54  int copy[4];
55 
56  void (*setup[4])(int radius, const uint8_t *c[], const uint8_t *src, int stride,
57  int x, int width, int y, int height, int bpc);
58  void (*filter[4])(uint8_t *dst, int width,
59  float rdiv, float bias, const int *const matrix,
60  const uint8_t *c[], int peak, int radius,
61  int dstride, int stride, int size);
63 
65 #endif
uint8_t
Main libavfilter public API header.
#define s(width, name)
Definition: cbs_vp9.c:257
void ff_convolution_init_x86(ConvolutionContext *s)
MatrixMode
Definition: convolution.h:26
@ MATRIX_SQUARE
Definition: convolution.h:27
@ MATRIX_COLUMN
Definition: convolution.h:29
@ MATRIX_ROW
Definition: convolution.h:28
@ MATRIX_NBMODES
Definition: convolution.h:30
mode
Use these values in ebur128_init (or'ed).
Definition: ebur128.h:83
common internal API header
int stride
Definition: mace.c:144
typedef void(RENAME(mix_any_func_type))
Describe the class of an AVClass context structure.
Definition: log.h:67
void(* filter[4])(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, int size)
Definition: convolution.h:58
int matrix[4][49]
Definition: convolution.h:52
void(* setup[4])(int radius, const uint8_t *c[], const uint8_t *src, int stride, int x, int width, int y, int height, int bpc)
Definition: convolution.h:56
char * matrix_str[4]
Definition: convolution.h:36
#define src
Definition: vp8dsp.c:255
#define height
#define width
static double c[64]