Libav
ivi_dsp.h
Go to the documentation of this file.
1 /*
2  * DSP functions for Indeo Video Interactive codecs (Indeo4 and Indeo5)
3  *
4  * Copyright (c) 2009-2011 Maxim Poliakovski
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 
29 #ifndef AVCODEC_IVI_DSP_H
30 #define AVCODEC_IVI_DSP_H
31 
32 #include "avcodec.h"
33 #include "ivi_common.h"
34 
42 void ff_ivi_recompose53(const IVIPlaneDesc *plane, uint8_t *dst,
43  const int dst_pitch);
44 
52 void ff_ivi_recompose_haar(const IVIPlaneDesc *plane, uint8_t *dst,
53  const int dst_pitch);
54 
65 void ff_ivi_inverse_haar_8x8(const int32_t *in, int16_t *out, uint32_t pitch,
66  const uint8_t *flags);
67 
78 void ff_ivi_row_haar8(const int32_t *in, int16_t *out, uint32_t pitch,
79  const uint8_t *flags);
80 
91 void ff_ivi_col_haar8(const int32_t *in, int16_t *out, uint32_t pitch,
92  const uint8_t *flags);
93 
104 void ff_ivi_inverse_haar_4x4(const int32_t *in, int16_t *out, uint32_t pitch,
105  const uint8_t *flags);
106 
117 void ff_ivi_row_haar4(const int32_t *in, int16_t *out, uint32_t pitch,
118  const uint8_t *flags);
119 
130 void ff_ivi_col_haar4(const int32_t *in, int16_t *out, uint32_t pitch,
131  const uint8_t *flags);
132 
143 void ff_ivi_dc_haar_2d(const int32_t *in, int16_t *out, uint32_t pitch,
144  int blk_size);
145 
156 void ff_ivi_inverse_slant_8x8(const int32_t *in, int16_t *out, uint32_t pitch,
157  const uint8_t *flags);
158 
169 void ff_ivi_inverse_slant_4x4(const int32_t *in, int16_t *out, uint32_t pitch,
170  const uint8_t *flags);
171 
183 void ff_ivi_dc_slant_2d(const int32_t *in, int16_t *out, uint32_t pitch, int blk_size);
184 
193 void ff_ivi_row_slant8(const int32_t *in, int16_t *out, uint32_t pitch,
194  const uint8_t *flags);
195 
206 void ff_ivi_col_slant8(const int32_t *in, int16_t *out, uint32_t pitch,
207  const uint8_t *flags);
208 
217 void ff_ivi_row_slant4(const int32_t *in, int16_t *out, uint32_t pitch,
218  const uint8_t *flags);
219 
230 void ff_ivi_col_slant4(const int32_t *in, int16_t *out, uint32_t pitch,
231  const uint8_t *flags);
232 
236 void ff_ivi_dc_row_slant(const int32_t *in, int16_t *out, uint32_t pitch, int blk_size);
237 
241 void ff_ivi_dc_col_slant(const int32_t *in, int16_t *out, uint32_t pitch, int blk_size);
242 
246 void ff_ivi_put_pixels_8x8(const int32_t *in, int16_t *out, uint32_t pitch, const uint8_t *flags);
247 
252 void ff_ivi_put_dc_pixel_8x8(const int32_t *in, int16_t *out, uint32_t pitch, int blk_size);
253 
262 void ff_ivi_mc_8x8_delta(int16_t *buf, const int16_t *ref_buf, uint32_t pitch, int mc_type);
263 
272 void ff_ivi_mc_4x4_delta(int16_t *buf, const int16_t *ref_buf, uint32_t pitch, int mc_type);
273 
282 void ff_ivi_mc_8x8_no_delta(int16_t *buf, const int16_t *ref_buf, uint32_t pitch, int mc_type);
283 
292 void ff_ivi_mc_4x4_no_delta(int16_t *buf, const int16_t *ref_buf, uint32_t pitch, int mc_type);
293 
294 #endif /* AVCODEC_IVI_DSP_H */