1 |
|
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC |
4 |
|
* - CBP related header - |
5 |
|
* |
6 |
|
* Copyright(C) 2002-2003 Edouard Gomez <ed.gomez@free.fr> |
7 |
|
* 2003 Christoph Lampert <gruel@web.de> |
8 |
|
* |
9 |
|
* This program is free software ; you can redistribute it and/or modify |
10 |
|
* it under the terms of the GNU General Public License as published by |
11 |
|
* the Free Software Foundation ; either version 2 of the License, or |
12 |
|
* (at your option) any later version. |
13 |
|
* |
14 |
|
* This program is distributed in the hope that it will be useful, |
15 |
|
* but WITHOUT ANY WARRANTY ; without even the implied warranty of |
16 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 |
|
* GNU General Public License for more details. |
18 |
|
* |
19 |
|
* You should have received a copy of the GNU General Public License |
20 |
|
* along with this program ; if not, write to the Free Software |
21 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
|
* |
23 |
|
* $Id$ |
24 |
|
* |
25 |
|
****************************************************************************/ |
26 |
|
|
27 |
#ifndef _ENCODER_CBP_H_ |
#ifndef _ENCODER_CBP_H_ |
28 |
#define _ENCODER_CBP_H_ |
#define _ENCODER_CBP_H_ |
29 |
|
|
30 |
#include "../portab.h" |
#include "../portab.h" |
31 |
|
|
32 |
typedef uint32_t (cbpFunc)(const int16_t codes[6][64]); |
typedef uint32_t(cbpFunc) (const int16_t * codes); |
33 |
|
|
34 |
typedef cbpFunc* cbpFuncPtr; |
typedef cbpFunc* cbpFuncPtr; |
35 |
|
|
36 |
extern cbpFuncPtr calc_cbp; |
extern cbpFuncPtr calc_cbp; |
37 |
|
|
38 |
extern cbpFunc calc_cbp_c; |
extern cbpFunc calc_cbp_c; |
39 |
|
extern cbpFunc calc_cbp_plain; |
40 |
|
|
41 |
|
#if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64) |
42 |
extern cbpFunc calc_cbp_mmx; |
extern cbpFunc calc_cbp_mmx; |
43 |
|
extern cbpFunc calc_cbp_sse2; |
44 |
|
#endif |
45 |
|
|
46 |
#endif /* _ENCODER_CBP_H_ */ |
#endif /* _ENCODER_CBP_H_ */ |