FFmpeg
vf_idetdsp.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVFILTER_IDETDSP_H
20 #define AVFILTER_IDETDSP_H
21 
22 #include <stdint.h>
23 
24 typedef int (*ff_idet_filter_func)(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w);
25 
26 typedef struct IDETDSPContext {
29 
30 void ff_idet_dsp_init(IDETDSPContext *idet, int depth);
31 
32 void ff_idet_dsp_init_x86(IDETDSPContext *idet, int depth);
33 
34 /* main fall-back for left-over */
35 int ff_idet_filter_line_c(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w);
36 int ff_idet_filter_line_c_16bit(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w);
37 
38 #endif /* AVFILTER_IDETDSP_H */
ff_idet_filter_line_c
int ff_idet_filter_line_c(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w)
Definition: vf_idetdsp.c:26
ff_idet_filter_func
int(* ff_idet_filter_func)(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w)
Definition: vf_idetdsp.h:24
ff_idet_dsp_init
void ff_idet_dsp_init(IDETDSPContext *idet, int depth)
Definition: vf_idetdsp.c:56
w
uint8_t w
Definition: llviddspenc.c:38
b
#define b
Definition: input.c:42
IDETDSPContext::filter_line
ff_idet_filter_func filter_line
Definition: vf_idetdsp.h:27
ff_idet_filter_line_c_16bit
int ff_idet_filter_line_c_16bit(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w)
Definition: vf_idetdsp.c:39
c
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
Definition: undefined.txt:32
a
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
Definition: undefined.txt:41
ff_idet_dsp_init_x86
void ff_idet_dsp_init_x86(IDETDSPContext *idet, int depth)
Definition: vf_idetdsp_init.c:72
IDETDSPContext
Definition: vf_idetdsp.h:26