3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - emms wrapper API header - |
* - emms wrapper API header - |
5 |
* |
* |
|
* Copyright(C) 2002 Michael Militzer |
|
|
* |
|
6 |
* This program is an implementation of a part of one or more MPEG-4 |
* This program is an implementation of a part of one or more MPEG-4 |
7 |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
8 |
* to use this software module in hardware or software products are |
* to use this software module in hardware or software products are |
26 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
27 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
28 |
* |
* |
29 |
|
****************************************************************************/ |
30 |
|
/***************************************************************************** |
31 |
|
* |
32 |
|
* History |
33 |
|
* |
34 |
|
* - Mon Jun 17 00:16:13 2002 Added legal header |
35 |
|
* |
36 |
* $Id$ |
* $Id$ |
37 |
* |
* |
38 |
****************************************************************************/ |
****************************************************************************/ |
39 |
|
|
|
#include "../xvid.h" |
|
|
|
|
40 |
#ifndef _EMMS_H_ |
#ifndef _EMMS_H_ |
41 |
#define _EMMS_H_ |
#define _EMMS_H_ |
42 |
|
|
55 |
|
|
56 |
emmsFunc emms_c; |
emmsFunc emms_c; |
57 |
emmsFunc emms_mmx; |
emmsFunc emms_mmx; |
58 |
|
emmsFunc emms_3dn; |
59 |
|
|
60 |
/***************************************************************************** |
/***************************************************************************** |
61 |
* Prototypes |
* Prototypes |
62 |
****************************************************************************/ |
****************************************************************************/ |
63 |
|
|
64 |
#ifdef ARCH_X86 |
#ifdef ARCH_IS_IA32 |
65 |
|
/* cpu_flag detection helper functions */ |
66 |
extern int check_cpu_features(void); |
extern int check_cpu_features(void); |
67 |
extern void sse_os_trigger(void); |
extern void sse_os_trigger(void); |
68 |
extern void sse2_os_trigger(void); |
extern void sse2_os_trigger(void); |
|
#else |
|
|
#ifdef ARCH_IA64 |
|
|
static int check_cpu_features(void) { return XVID_CPU_IA64; } |
|
|
#else |
|
|
static int check_cpu_features(void) { return 0; } /* is 0 an acceptable value? */ |
|
|
#endif |
|
69 |
#endif |
#endif |
70 |
|
|
71 |
|
|