1 |
/***************************************************************************** |
/***************************************************************************** |
2 |
* |
* |
3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - cbp function (zero block flags) - |
* - CBP related header - |
5 |
* |
* |
6 |
* Copyright(C) 2001-2002 Michael Militzer <isibaar@xvid.org> |
* Copyright(C) 2002-2003 Edouard Gomez <ed.gomez@free.fr> |
7 |
* |
* 2003 Christoph Lampert <gruel@web.de> |
|
* This program is an implementation of a part of one or more MPEG-4 |
|
|
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
|
|
* to use this software module in hardware or software products are |
|
|
* advised that its use may infringe existing patents or copyrights, and |
|
|
* any such use would be at such party's own risk. The original |
|
|
* developer of this software module and his/her company, and subsequent |
|
|
* editors and their companies, will have no liability for use of this |
|
|
* software or modifications or derivatives thereof. |
|
8 |
* |
* |
9 |
* This program is free software ; you can redistribute it and/or modify |
* 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 |
* it under the terms of the GNU General Public License as published by |
29 |
|
|
30 |
#include "../portab.h" |
#include "../portab.h" |
31 |
|
|
|
/***************************************************************************** |
|
|
* Function type |
|
|
****************************************************************************/ |
|
|
|
|
32 |
typedef uint32_t(cbpFunc) (const int16_t * codes); |
typedef uint32_t(cbpFunc) (const int16_t * codes); |
33 |
|
|
34 |
typedef cbpFunc *cbpFuncPtr; |
typedef cbpFunc *cbpFuncPtr; |
35 |
|
|
|
/***************************************************************************** |
|
|
* Global Function pointer |
|
|
****************************************************************************/ |
|
|
|
|
36 |
extern cbpFuncPtr calc_cbp; |
extern cbpFuncPtr calc_cbp; |
37 |
|
|
|
/***************************************************************************** |
|
|
* Prototypes |
|
|
****************************************************************************/ |
|
|
|
|
38 |
extern cbpFunc calc_cbp_c; |
extern cbpFunc calc_cbp_c; |
39 |
|
extern cbpFunc calc_cbp_plain; |
40 |
|
|
41 |
|
#ifdef ARCH_IS_IA32 |
42 |
extern cbpFunc calc_cbp_mmx; |
extern cbpFunc calc_cbp_mmx; |
43 |
|
extern cbpFunc calc_cbp_3dne; |
44 |
extern cbpFunc calc_cbp_sse2; |
extern cbpFunc calc_cbp_sse2; |
45 |
|
#endif |
46 |
|
|
47 |
|
#ifdef ARCH_IS_PPC |
48 |
extern cbpFunc calc_cbp_ppc; |
extern cbpFunc calc_cbp_ppc; |
49 |
|
#endif |
50 |
|
|
51 |
|
#ifdef ARCH_IS_ALTIVEC |
52 |
extern cbpFunc calc_cbp_altivec; |
extern cbpFunc calc_cbp_altivec; |
53 |
|
#endif |
54 |
|
|
55 |
#endif /* _ENCODER_CBP_H_ */ |
#endif /* _ENCODER_CBP_H_ */ |