FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 */