1 |
/***************************************************************************** |
/***************************************************************************** |
2 |
* |
* |
3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - h263 quantization header - |
* - H263 Quantization related header - |
5 |
* |
* |
6 |
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
7 |
* |
* |
8 |
* This file is part of XviD, a free MPEG-4 video encoder/decoder |
* This program is free software ; you can redistribute it and/or modify |
9 |
* |
* it under the terms of the GNU General Public License as published by |
|
* XviD is free software; you can redistribute it and/or modify it |
|
|
* under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation; either version 2 of the License, or |
* the Free Software Foundation; either version 2 of the License, or |
11 |
* (at your option) any later version. |
* (at your option) any later version. |
12 |
* |
* |
19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
|
* Under section 8 of the GNU General Public License, the copyright |
|
|
* holders of XVID explicitly forbid distribution in the following |
|
|
* countries: |
|
|
* |
|
|
* - Japan |
|
|
* - United States of America |
|
|
* |
|
|
* Linking XviD statically or dynamically with other modules is making a |
|
|
* combined work based on XviD. Thus, the terms and conditions of the |
|
|
* GNU General Public License cover the whole combination. |
|
|
* |
|
|
* As a special exception, the copyright holders of XviD give you |
|
|
* permission to link XviD with independent modules that communicate with |
|
|
* XviD solely through the VFW1.1 and DShow interfaces, regardless of the |
|
|
* license terms of these independent modules, and to copy and distribute |
|
|
* the resulting combined work under terms of your choice, provided that |
|
|
* every copy of the combined work is accompanied by a complete copy of |
|
|
* the source code of XviD (the version of XviD used to produce the |
|
|
* combined work), being distributed under the terms of the GNU General |
|
|
* Public License plus this exception. An independent module is a module |
|
|
* which is not derived from or based on XviD. |
|
|
* |
|
|
* Note that people who make modified versions of XviD are not obligated |
|
|
* to grant this special exception for their modified versions; it is |
|
|
* their choice whether to do so. The GNU General Public License gives |
|
|
* permission to release a modified version without this exception; this |
|
|
* exception also makes it possible to release a modified version which |
|
|
* carries forward this exception. |
|
|
* |
|
22 |
* $Id$ |
* $Id$ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
28 |
|
|
29 |
#include "../portab.h" |
#include "../portab.h" |
30 |
|
|
|
/***************************************************************************** |
|
|
* Prototypes |
|
|
****************************************************************************/ |
|
|
|
|
31 |
/* intra */ |
/* intra */ |
32 |
typedef void (quanth263_intraFunc) (int16_t * coeff, |
typedef void (quanth263_intraFunc) (int16_t * coeff, |
33 |
const int16_t * data, |
const int16_t * data, |
40 |
extern quanth263_intraFuncPtr dequant_intra; |
extern quanth263_intraFuncPtr dequant_intra; |
41 |
|
|
42 |
quanth263_intraFunc quant_intra_c; |
quanth263_intraFunc quant_intra_c; |
43 |
|
|
44 |
|
#ifdef ARCH_IS_IA32 |
45 |
quanth263_intraFunc quant_intra_mmx; |
quanth263_intraFunc quant_intra_mmx; |
46 |
|
quanth263_intraFunc quant_intra_3dne; |
47 |
quanth263_intraFunc quant_intra_sse2; |
quanth263_intraFunc quant_intra_sse2; |
48 |
|
#endif |
49 |
|
|
50 |
|
#ifdef ARCH_IS_IA64 |
51 |
quanth263_intraFunc quant_intra_ia64; |
quanth263_intraFunc quant_intra_ia64; |
52 |
|
#endif |
53 |
|
|
54 |
quanth263_intraFunc dequant_intra_c; |
quanth263_intraFunc dequant_intra_c; |
55 |
|
|
56 |
|
#ifdef ARCH_IS_IA32 |
57 |
quanth263_intraFunc dequant_intra_mmx; |
quanth263_intraFunc dequant_intra_mmx; |
58 |
quanth263_intraFunc dequant_intra_xmm; |
quanth263_intraFunc dequant_intra_xmm; |
59 |
|
quanth263_intraFunc dequant_intra_3dne; |
60 |
quanth263_intraFunc dequant_intra_sse2; |
quanth263_intraFunc dequant_intra_sse2; |
61 |
|
#endif |
62 |
|
|
63 |
|
#ifdef ARCH_IS_IA64 |
64 |
quanth263_intraFunc dequant_intra_ia64; |
quanth263_intraFunc dequant_intra_ia64; |
65 |
|
#endif |
66 |
|
|
67 |
/* inter_quant */ |
/* inter_quant */ |
68 |
typedef uint32_t(quanth263_interFunc) (int16_t * coeff, |
typedef uint32_t(quanth263_interFunc) (int16_t * coeff, |
74 |
extern quanth263_interFuncPtr quant_inter; |
extern quanth263_interFuncPtr quant_inter; |
75 |
|
|
76 |
quanth263_interFunc quant_inter_c; |
quanth263_interFunc quant_inter_c; |
77 |
|
|
78 |
|
#ifdef ARCH_IS_IA32 |
79 |
quanth263_interFunc quant_inter_mmx; |
quanth263_interFunc quant_inter_mmx; |
80 |
|
quanth263_interFunc quant_inter_3dne; |
81 |
quanth263_interFunc quant_inter_sse2; |
quanth263_interFunc quant_inter_sse2; |
82 |
|
#endif |
83 |
|
|
84 |
|
#ifdef ARCH_IS_IA64 |
85 |
quanth263_interFunc quant_inter_ia64; |
quanth263_interFunc quant_inter_ia64; |
86 |
|
#endif |
87 |
|
|
88 |
/*inter_dequant */ |
/*inter_dequant */ |
89 |
typedef void (dequanth263_interFunc) (int16_t * coeff, |
typedef void (dequanth263_interFunc) (int16_t * coeff, |
95 |
extern dequanth263_interFuncPtr dequant_inter; |
extern dequanth263_interFuncPtr dequant_inter; |
96 |
|
|
97 |
dequanth263_interFunc dequant_inter_c; |
dequanth263_interFunc dequant_inter_c; |
98 |
|
|
99 |
|
#ifdef ARCH_IS_IA32 |
100 |
dequanth263_interFunc dequant_inter_mmx; |
dequanth263_interFunc dequant_inter_mmx; |
101 |
dequanth263_interFunc dequant_inter_xmm; |
dequanth263_interFunc dequant_inter_xmm; |
102 |
|
dequanth263_interFunc dequant_inter_3dne; |
103 |
dequanth263_interFunc dequant_inter_sse2; |
dequanth263_interFunc dequant_inter_sse2; |
104 |
|
#endif |
105 |
|
|
106 |
|
#ifdef ARCH_IS_IA64 |
107 |
dequanth263_interFunc dequant_inter_ia64; |
dequanth263_interFunc dequant_inter_ia64; |
108 |
|
#endif |
109 |
|
|
110 |
#endif /* _QUANT_H263_H_ */ |
#endif /* _QUANT_H263_H_ */ |