FFmpeg
mpeg4videodsp.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 AVCODEC_MPEG4VIDEODSP_H
20 #define AVCODEC_MPEG4VIDEODSP_H
21 
22 #include <stdint.h>
23 
24 void ff_gmc_c(uint8_t *dst, const uint8_t *src, int stride, int h, int ox, int oy,
25  int dxx, int dxy, int dyx, int dyy, int shift, int r,
26  int width, int height);
27 
28 typedef struct Mpeg4VideoDSPContext {
29  /**
30  * translational global motion compensation.
31  */
32  void (*gmc1)(uint8_t *dst /* align 8 */, const uint8_t *src /* align 1 */,
33  int srcStride, int h, int x16, int y16, int rounder);
34  /**
35  * global motion compensation.
36  */
37  void (*gmc)(uint8_t *dst /* align 8 */, const uint8_t *src /* align 1 */,
38  int stride, int h, int ox, int oy,
39  int dxx, int dxy, int dyx, int dyy,
40  int shift, int r, int width, int height);
42 
46 
47 #endif /* AVCODEC_MPEG4VIDEODSP_H */
ff_mpeg4videodsp_init
void ff_mpeg4videodsp_init(Mpeg4VideoDSPContext *c)
Definition: mpeg4videodsp.c:110
Mpeg4VideoDSPContext::gmc
void(* gmc)(uint8_t *dst, const uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height)
global motion compensation.
Definition: mpeg4videodsp.h:37
r
const char * r
Definition: vf_curves.c:126
Mpeg4VideoDSPContext
Definition: mpeg4videodsp.h:28
ff_mpeg4videodsp_init_x86
void ff_mpeg4videodsp_init_x86(Mpeg4VideoDSPContext *c)
Definition: mpeg4videodsp.c:153
ff_gmc_c
void ff_gmc_c(uint8_t *dst, const uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height)
Definition: mpeg4videodsp.c:47
width
#define width
Mpeg4VideoDSPContext::gmc1
void(* gmc1)(uint8_t *dst, const uint8_t *src, int srcStride, int h, int x16, int y16, int rounder)
translational global motion compensation.
Definition: mpeg4videodsp.h:32
ff_mpeg4videodsp_init_ppc
void ff_mpeg4videodsp_init_ppc(Mpeg4VideoDSPContext *c)
Definition: mpeg4videodsp.c:131
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
shift
static int shift(int a, int b)
Definition: bonk.c:257
height
#define height
stride
#define stride
Definition: h264pred_template.c:537
src
INIT_CLIP pixel * src
Definition: h264pred_template.c:418
h
h
Definition: vp9dsp_template.c:2038