FFmpeg
Loading...
Searching...
No Matches
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 <stddef.h>
23#include <stdint.h>
24
25void ff_gmc_c(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h, int ox, int oy,
26 int dxx, int dxy, int dyx, int dyy, int shift, int r,
27 int width, int height);
28
29typedef struct Mpeg4VideoDSPContext {
30 /**
31 * translational global motion compensation.
32 */
33 void (*gmc1)(uint8_t *dst /* align 8 */, const uint8_t *src /* align 1 */,
34 ptrdiff_t srcStride, int h, int x16, int y16, int rounder);
35 /**
36 * global motion compensation.
37 */
38 void (*gmc)(uint8_t *dst /* align 8 */, const uint8_t *src /* align 1 */,
39 ptrdiff_t stride, int h, int ox, int oy,
40 int dxx, int dxy, int dyx, int dyy,
41 int shift, int r, int width, int height);
43
47
48#endif /* AVCODEC_MPEG4VIDEODSP_H */
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:87
#define r
Definition input.c:42
static int shift(int a, int b)
Definition bonk.c:261
void ff_gmc_c(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height)
void ff_mpeg4videodsp_init_ppc(Mpeg4VideoDSPContext *c)
void ff_mpeg4videodsp_init(Mpeg4VideoDSPContext *c)
void ff_mpeg4videodsp_init_x86(Mpeg4VideoDSPContext *c)
void(* gmc)(uint8_t *dst, const uint8_t *src, ptrdiff_t 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.
void(* gmc1)(uint8_t *dst, const uint8_t *src, ptrdiff_t srcStride, int h, int x16, int y16, int rounder)
translational global motion compensation.
#define stride
#define src
Definition vp8dsp.c:248
#define height
Definition dsp.h:89
#define width
Definition dsp.h:89
static double c[64]