ScummVM API documentation
indeo_dsp.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 /* VLC code
23  *
24  * Original copyright note:
25  * DSP functions (inverse transforms, motion compensation, wavelet recompositions)
26  * for Indeo Video Interactive codecs.
27  */
28 
29 #ifndef IMAGE_CODECS_INDEO_INDEO_DSP_H
30 #define IMAGE_CODECS_INDEO_INDEO_DSP_H
31 
32 #include "image/codecs/indeo/mem.h"
33 #include "image/codecs/indeo/indeo.h"
34 
35 namespace Image {
36 namespace Indeo {
37 
38 class IndeoDSP {
39 public:
50  static void ffIviInverseHaar8x8(const int32 *in, int16 *out, uint32 pitch,
51  const uint8 *flags);
52  static void ffIviInverseHaar8x1(const int32 *in, int16 *out, uint32 pitch,
53  const uint8 *flags);
54  static void ffIviInverseHaar1x8(const int32 *in, int16 *out, uint32 pitch,
55  const uint8 *flags);
56 
67  static void ffIviRowHaar8(const int32 *in, int16 *out, uint32 pitch,
68  const uint8 *flags);
69 
80  static void ffIviColHaar8(const int32 *in, int16 *out, uint32 pitch,
81  const uint8 *flags);
82 
93  static void ffIviInverseHaar4x4(const int32 *in, int16 *out, uint32 pitch,
94  const uint8 *flags);
95 
106  static void ffIviRowHaar4(const int32 *in, int16 *out, uint32 pitch,
107  const uint8 *flags);
108 
119  static void ffIviColHaar4(const int32 *in, int16 *out, uint32 pitch,
120  const uint8 *flags);
121 
132  static void ffIviDcHaar2d(const int32 *in, int16 *out, uint32 pitch,
133  int blkSize);
134 
145  static void ffIviInverseSlant8x8(const int32 *in, int16 *out, uint32 pitch,
146  const uint8 *flags);
147 
158  static void ffIviInverseSlant4x4(const int32 *in, int16 *out, uint32 pitch,
159  const uint8 *flags);
160 
172  static void ffIviDcSlant2d(const int32 *in, int16 *out, uint32 pitch, int blkSize);
173 
182  static void ffIviRowSlant8(const int32 *in, int16 *out, uint32 pitch,
183  const uint8 *flags);
184 
195  static void ffIviColSlant8(const int32 *in, int16 *out, uint32 pitch,
196  const uint8 *flags);
197 
206  static void ffIviRowSlant4(const int32 *in, int16 *out, uint32 pitch,
207  const uint8 *flags);
208 
219  static void ffIviColSlant4(const int32 *in, int16 *out, uint32 pitch,
220  const uint8 *flags);
221 
225  static void ffIviDcRowSlant(const int32 *in, int16 *out, uint32 pitch, int blkSize);
226 
230  static void ffIviDcColSlant(const int32 *in, int16 *out, uint32 pitch, int blkSize);
231 
235  static void ffIviPutPixels8x8(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags);
236 
241  static void ffIviPutDcPixel8x8(const int32 *in, int16 *out, uint32 pitch, int blkSize);
242 
251  static void ffIviMc8x8Delta(int16 *buf, const int16 *refBuf, uint32 pitch, int mcType);
252 
261  static void ffIviMc4x4Delta(int16 *buf, const int16 *refBuf, uint32 pitch, int mcType);
262 
271  static void ffIviMc8x8NoDelta(int16 *buf, const int16 *refBuf, uint32 pitch, int mcType);
272 
281  static void ffIviMc4x4NoDelta(int16 *buf, const int16 *refBuf, uint32 pitch, int mcType);
282 
293  static void ffIviMcAvg8x8Delta(int16 *buf, const int16 *refBuf, const int16 *refBuf2, uint32 pitch, int mcType, int mcType2);
294 
305  static void ffIviMcAvg4x4Delta(int16 *buf, const int16 *refBuf, const int16 *refBuf2, uint32 pitch, int mcType, int mcType2);
306 
317  static void ffIviMcAvg8x8NoDelta(int16 *buf, const int16 *refBuf, const int16 *refBuf2, uint32 pitch, int mcType, int mcType2);
318 
329  static void ffIviMcAvg4x4NoDelta(int16 *buf, const int16 *refBuf, const int16 *refBuf2, uint32 pitch, int mcType, int mcType2);
330 };
331 
332 } // End of namespace Indeo
333 } // End of namespace Image
334 
335 #endif
static void ffIviRowHaar4(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviColSlant4(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviMcAvg8x8Delta(int16 *buf, const int16 *refBuf, const int16 *refBuf2, uint32 pitch, int mcType, int mcType2)
static void ffIviMc8x8NoDelta(int16 *buf, const int16 *refBuf, uint32 pitch, int mcType)
static void ffIviRowSlant4(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviInverseSlant8x8(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
Definition: indeo_dsp.h:38
static void ffIviMc8x8Delta(int16 *buf, const int16 *refBuf, uint32 pitch, int mcType)
static void ffIviPutDcPixel8x8(const int32 *in, int16 *out, uint32 pitch, int blkSize)
static void ffIviInverseHaar4x4(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviColSlant8(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviInverseHaar8x8(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviRowSlant8(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviDcSlant2d(const int32 *in, int16 *out, uint32 pitch, int blkSize)
static void ffIviMcAvg4x4NoDelta(int16 *buf, const int16 *refBuf, const int16 *refBuf2, uint32 pitch, int mcType, int mcType2)
static void ffIviMc4x4Delta(int16 *buf, const int16 *refBuf, uint32 pitch, int mcType)
static void ffIviDcRowSlant(const int32 *in, int16 *out, uint32 pitch, int blkSize)
static void ffIviInverseSlant4x4(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviRowHaar8(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviDcColSlant(const int32 *in, int16 *out, uint32 pitch, int blkSize)
static void ffIviMc4x4NoDelta(int16 *buf, const int16 *refBuf, uint32 pitch, int mcType)
static void ffIviPutPixels8x8(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviColHaar8(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)
static void ffIviDcHaar2d(const int32 *in, int16 *out, uint32 pitch, int blkSize)
Definition: movie_decoder.h:32
static void ffIviMcAvg8x8NoDelta(int16 *buf, const int16 *refBuf, const int16 *refBuf2, uint32 pitch, int mcType, int mcType2)
static void ffIviMcAvg4x4Delta(int16 *buf, const int16 *refBuf, const int16 *refBuf2, uint32 pitch, int mcType, int mcType2)
static void ffIviColHaar4(const int32 *in, int16 *out, uint32 pitch, const uint8 *flags)