1 |
/***************************************************************************** |
/***************************************************************************** |
2 |
* |
* |
3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - emms wrapper API header - |
* - emms related header - |
5 |
* |
* |
6 |
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
7 |
* |
* |
|
* 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 |
* This program is free software ; you can redistribute it and/or modify |
* 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 |
* 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 |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
|
#include "../xvid.h" |
|
|
|
|
26 |
#ifndef _EMMS_H_ |
#ifndef _EMMS_H_ |
27 |
#define _EMMS_H_ |
#define _EMMS_H_ |
28 |
|
|
41 |
|
|
42 |
emmsFunc emms_c; |
emmsFunc emms_c; |
43 |
emmsFunc emms_mmx; |
emmsFunc emms_mmx; |
44 |
|
emmsFunc emms_3dn; |
45 |
|
|
46 |
/***************************************************************************** |
/***************************************************************************** |
47 |
* Prototypes |
* Prototypes |
48 |
****************************************************************************/ |
****************************************************************************/ |
49 |
|
|
50 |
#ifdef ARCH_X86 |
#ifdef ARCH_IS_IA32 |
51 |
|
/* cpu_flag detection helper functions */ |
52 |
extern int check_cpu_features(void); |
extern int check_cpu_features(void); |
53 |
extern void sse_os_trigger(void); |
extern void sse_os_trigger(void); |
54 |
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 |
|
55 |
#endif |
#endif |
56 |
|
|
57 |
|
|