1 /*
2 * Copyright (c) 2003-2010 Michael Niedermayer <michaelni@gmx.at>
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 /**
22 * @file
23 * H.264 DSP functions.
24 * @author Michael Niedermayer <michaelni@gmx.at>
25 */
26
27 #ifndef AVCODEC_H264DSP_H
28 #define AVCODEC_H264DSP_H
29
30 #include <stdint.h>
31
36 int weightd,
int weights,
int offset);
37
38 /**
39 * Context for storing H.264 DSP functions
40 */
42 /* weighted MC */
45
46 /* loop filter */
48 int alpha,
int beta, int8_t *tc0);
50 int alpha,
int beta, int8_t *tc0);
52 int alpha,
int beta, int8_t *tc0);
53 /* v/h_loop_filter_luma_intra: align 16 */
61 int alpha,
int beta, int8_t *tc0);
63 int alpha,
int beta, int8_t *tc0);
66 int8_t *tc0);
73 // h264_loop_filter_strength: simd only. the C version is inlined in h264.c
75 int8_t ref[2][40], int16_t
mv[2][40][2],
76 int bidir, int edges, int step,
77 int mask_mv0, int mask_mv1, int field);
78
79 /* IDCT */
88
99 int16_t *
block /*align 16*/,
102 int16_t *input /*align 16*/, int qmul);
104
105 /* bypass-transform */
108
109 /**
110 * Search buf from the start for up to size bytes. Return the index
111 * of a zero byte, or >= size if not found. Ideally, use lookahead
112 * to filter out any zero bytes that are known to not be followed by
113 * one or more further zero bytes and a one byte. Better still, filter
114 * out any bytes that form the trailing_zero_8bits syntax element too.
115 */
118
120 const int chroma_format_idc);
122 const int chroma_format_idc);
124 const int chroma_format_idc);
126 const int chroma_format_idc);
127
128 #endif /* AVCODEC_H264DSP_H */