Libav
hpeldsp.h
Go to the documentation of this file.
1 /*
2  * Half-pel DSP functions.
3  * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
4  * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
5  *
6  * This file is part of Libav.
7  *
8  * Libav is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * Libav is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with Libav; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
28 #ifndef AVCODEC_HPELDSP_H
29 #define AVCODEC_HPELDSP_H
30 
31 #include <stdint.h>
32 #include <stddef.h>
33 
34 /* add and put pixel (decoding) */
35 // blocksizes for hpel_pixels_func are 8x4,8x8 16x8 16x16
36 // h for hpel_pixels_func is limited to {width/2, width} but never larger
37 // than 16 and never smaller than 4
38 typedef void (*op_pixels_func)(uint8_t *block /*align width (8 or 16)*/,
39  const uint8_t *pixels /*align 1*/,
40  ptrdiff_t line_size, int h);
41 
45 typedef struct HpelDSPContext {
57 
69 
81 
94 
96 
101 
102 #endif /* AVCODEC_HPELDSP_H */
void ff_hpeldsp_init_aarch64(HpelDSPContext *c, int flags)
op_pixels_func avg_pixels_tab[4][4]
Halfpel motion compensation with rounding (a+b+1)>>1.
Definition: hpeldsp.h:68
uint8_t
void ff_hpeldsp_init(HpelDSPContext *c, int flags)
Definition: hpeldsp.c:338
static int flags
Definition: log.c:44
void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags)
Definition: hpeldsp_init.c:267
void(* op_pixels_func)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
Definition: hpeldsp.h:38
Half-pel DSP context.
Definition: hpeldsp.h:45
void ff_hpeldsp_init_ppc(HpelDSPContext *c, int flags)
void ff_hpeldsp_init_arm(HpelDSPContext *c, int flags)
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
op_pixels_func put_pixels_tab[4][4]
Halfpel motion compensation with rounding (a+b+1)>>1.
Definition: hpeldsp.h:56
op_pixels_func put_no_rnd_pixels_tab[2][4]
Halfpel motion compensation with no rounding (a+b)>>1.
Definition: hpeldsp.h:80
op_pixels_func avg_no_rnd_pixels_tab[4]
Halfpel motion compensation with no rounding (a+b)>>1.
Definition: hpeldsp.h:92
static int16_t block[64]
Definition: dct-test.c:88