FFmpeg  4.3.8
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 
25 enum MatrixMode {
30 };
31 
32 typedef struct ConvolutionContext {
33  const AVClass *class;
34 
35  char *matrix_str[4];
36  float rdiv[4];
37  float bias[4];
38  int mode[4];
39  float scale;
40  float delta;
41  int planes;
42 
43  int size[4];
44  int depth;
45  int max;
46  int bpc;
47  int nb_planes;
49  int planewidth[4];
50  int planeheight[4];
51  int matrix[4][49];
52  int matrix_length[4];
53  int copy[4];
54 
55  void (*setup[4])(int radius, const uint8_t *c[], const uint8_t *src, int stride,
56  int x, int width, int y, int height, int bpc);
57  void (*filter[4])(uint8_t *dst, int width,
58  float rdiv, float bias, const int *const matrix,
59  const uint8_t *c[], int peak, int radius,
60  int dstride, int stride);
62 
64 #endif
int matrix[4][49]
Definition: convolution.h:51
Main libavfilter public API header.
char * matrix_str[4]
Definition: convolution.h:35
int stride
Definition: mace.c:144
MatrixMode
Definition: convolution.h:25
uint8_t
#define height
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:55
#define src
Definition: vp8dsp.c:254
#define width
#define s(width, name)
Definition: cbs_vp9.c:257
typedef void(RENAME(mix_any_func_type))
Describe the class of an AVClass context structure.
Definition: log.h:67
void ff_convolution_init_x86(ConvolutionContext *s)
static double c[64]
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)
Definition: convolution.h:57
mode
Use these values in ebur128_init (or'ed).
Definition: ebur128.h:83