FFmpeg
mpegvideodsp.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_MPEGVIDEODSP_H
20 #define AVCODEC_MPEGVIDEODSP_H
21 
22 #include <stdint.h>
23 
24 void ff_gmc_c(uint8_t *dst, 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 MpegVideoDSPContext {
29  /**
30  * translational global motion compensation.
31  */
32  void (*gmc1)(uint8_t *dst /* align 8 */, 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 */, 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_MPEGVIDEODSP_H */
r
const char * r
Definition: vf_curves.c:116
MpegVideoDSPContext::gmc
void(* gmc)(uint8_t *dst, 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: mpegvideodsp.h:37
ff_gmc_c
void ff_gmc_c(uint8_t *dst, 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: mpegvideodsp.c:47
MpegVideoDSPContext
Definition: mpegvideodsp.h:28
width
#define width
ff_mpegvideodsp_init_ppc
void ff_mpegvideodsp_init_ppc(MpegVideoDSPContext *c)
Definition: mpegvideodsp.c:131
ff_mpegvideodsp_init_x86
void ff_mpegvideodsp_init_x86(MpegVideoDSPContext *c)
Definition: mpegvideodsp.c:153
MpegVideoDSPContext::gmc1
void(* gmc1)(uint8_t *dst, uint8_t *src, int srcStride, int h, int x16, int y16, int rounder)
translational global motion compensation.
Definition: mpegvideodsp.h:32
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
height
#define height
stride
#define stride
Definition: h264pred_template.c:537
ff_mpegvideodsp_init
void ff_mpegvideodsp_init(MpegVideoDSPContext *c)
Definition: mpegvideodsp.c:110
shift
static int shift(int a, int b)
Definition: sonic.c:88
src
INIT_CLIP pixel * src
Definition: h264pred_template.c:418
h
h
Definition: vp9dsp_template.c:2038