1 |
|
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC |
4 |
|
* - MPEG4 Quantization related header - |
5 |
|
* |
6 |
|
* Copyright(C) 2002-2003 Anonymous <xvid-devel@xvid.org> |
7 |
|
* |
8 |
|
* 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 |
10 |
|
* the Free Software Foundation ; either version 2 of the License, or |
11 |
|
* (at your option) any later version. |
12 |
|
* |
13 |
|
* This program 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 |
16 |
|
* GNU General Public License for more details. |
17 |
|
* |
18 |
|
* You should have received a copy of the GNU General Public License |
19 |
|
* along with this program ; if not, write to the Free Software |
20 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
|
* |
22 |
|
* $Id$ |
23 |
|
* |
24 |
|
****************************************************************************/ |
25 |
|
|
26 |
#ifndef _QUANT_MPEG4_H_ |
#ifndef _QUANT_MPEG4_H_ |
27 |
#define _QUANT_MPEG4_H_ |
#define _QUANT_MPEG4_H_ |
28 |
|
|
29 |
#include "../portab.h" |
#include "../portab.h" |
30 |
|
|
31 |
// intra |
/* intra */ |
32 |
typedef void (quant_intraFunc) (int16_t * coeff, |
typedef void (quant_intraFunc) (int16_t * coeff, |
33 |
const int16_t * data, |
const int16_t * data, |
34 |
const uint32_t quant, |
const uint32_t quant, |
47 |
quant_intraFunc dequant4_intra_mmx; |
quant_intraFunc dequant4_intra_mmx; |
48 |
quant_intraFunc dequant4_intra_3dne; |
quant_intraFunc dequant4_intra_3dne; |
49 |
|
|
50 |
// inter_quant |
/* inter_quant */ |
51 |
typedef uint32_t(quant_interFunc) (int16_t * coeff, |
typedef uint32_t(quant_interFunc) (int16_t * coeff, |
52 |
const int16_t * data, |
const int16_t * data, |
53 |
const uint32_t quant); |
const uint32_t quant); |
60 |
quant_interFunc quant4_inter_mmx; |
quant_interFunc quant4_inter_mmx; |
61 |
quant_interFunc quant4_inter_xmm; |
quant_interFunc quant4_inter_xmm; |
62 |
|
|
63 |
//inter_dequant |
/*inter_dequant */ |
64 |
typedef void (dequant_interFunc) (int16_t * coeff, |
typedef void (dequant_interFunc) (int16_t * coeff, |
65 |
const int16_t * data, |
const int16_t * data, |
66 |
const uint32_t quant); |
const uint32_t quant); |