author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /core/multimedia/opieplayer/libmpeg3/mpeg3private.inc | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
Diffstat (limited to 'core/multimedia/opieplayer/libmpeg3/mpeg3private.inc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/libmpeg3/mpeg3private.inc | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/libmpeg3/mpeg3private.inc b/core/multimedia/opieplayer/libmpeg3/mpeg3private.inc new file mode 100644 index 0000000..7e56e7f --- a/dev/null +++ b/core/multimedia/opieplayer/libmpeg3/mpeg3private.inc | |||
@@ -0,0 +1,110 @@ | |||
1 | #ifndef LIBMPEG3_INC | ||
2 | #define LIBMPEG3_INC | ||
3 | |||
4 | #ifdef _WIN32 | ||
5 | |||
6 | // Disable some compiler warnings that happen a lot but don't matter | ||
7 | #pragma warning( disable : 4003 ) // not enough parameters for macro | ||
8 | #pragma warning( disable : 4305 ) // truncation frm double to float | ||
9 | #pragma warning( disable : 4715 ) // not all control paths return a value | ||
10 | #pragma warning( disable : 4716 ) // must return a value | ||
11 | |||
12 | #ifdef LIBMPEG_EXPORTS | ||
13 | #define LIBMPEG_EXPORT __declspec( dllexport ) | ||
14 | #else | ||
15 | #define LIBMPEG_EXPORT __declspec( dllimport ) | ||
16 | #endif | ||
17 | |||
18 | #ifdef ERROR | ||
19 | #undef ERROR | ||
20 | #include <windows.h> | ||
21 | #undef ERROR | ||
22 | #define ERROR (-1) | ||
23 | #else | ||
24 | #include <windows.h> | ||
25 | #undef ERROR | ||
26 | #endif | ||
27 | |||
28 | #define inline __inline | ||
29 | #define M_PI 3.14159265358979323846 | ||
30 | #define M_SQRT2 1.41421356237309504880 | ||
31 | |||
32 | #define pthread_mutexattr_t int | ||
33 | #define pthread_mutexattr_init(a) // Nothing | ||
34 | #define pthread_mutex_t CRITICAL_SECTION | ||
35 | #define pthread_mutex_init(a,b) InitializeCriticalSection(a) | ||
36 | #define pthread_mutex_lock(a) EnterCriticalSection(a) | ||
37 | #define pthread_mutex_unlock(a) LeaveCriticalSection(a) | ||
38 | #define pthread_mutex_destroy(a) //DeleteCriticalSection(a) | ||
39 | |||
40 | #define pthread_attr_t int | ||
41 | #define pthread_attr_init(a) // Nothing | ||
42 | #define pthread_t unsigned long | ||
43 | #define pthread_create(a,b,c,d) *(a) = _beginthread(c,0,d) | ||
44 | //#define pthread_join(a,b) _endthread(b) | ||
45 | //#define pthread_join(a,b) _cwait(NULL,b,NULL) | ||
46 | #define pthread_join(a,b) | ||
47 | |||
48 | #define strncasecmp(a,b,c) _strnicmp(a,b,c) | ||
49 | #define strcasecmp(a,b) _stricmp(a,b) | ||
50 | #define bzero(a,b) memset(a,0,b) | ||
51 | |||
52 | #else | ||
53 | |||
54 | #define LONGLONG long long | ||
55 | #define ULONGLONG unsigned long long | ||
56 | |||
57 | #endif | ||
58 | |||
59 | #ifndef LIBMPEG_EXPORT | ||
60 | #define LIBMPEG_EXPORT | ||
61 | #endif | ||
62 | |||
63 | #define MPEG3_FLOAT32 mpeg3_real_t | ||
64 | #define MPEG3_INT16 short int | ||
65 | #define MPEG3_INT32 int | ||
66 | #define MPEG3_INT64 long | ||
67 | |||
68 | #define MPEG3_TOC_PREFIX 0x544f4356 | ||
69 | #define MPEG3_TOC_PREFIXLOWER 0x746f6376 | ||
70 | #define MPEG3_ID3_PREFIX 0x494433 | ||
71 | #define MPEG3_RIFF_CODE 0x52494646 | ||
72 | #define MPEG3_PROC_CPUINFO "/proc/cpuinfo" | ||
73 | #define MPEG3_TS_PACKET_SIZE 188 | ||
74 | #define MPEG3_DVD_PACKET_SIZE 0x800 | ||
75 | #define MPEG3_SYNC_BYTE 0x47 | ||
76 | #define MPEG3_PACK_START_CODE 0x000001ba | ||
77 | #define MPEG3_SEQUENCE_START_CODE 0x000001b3 | ||
78 | #define MPEG3_SEQUENCE_END_CODE 0x000001b7 | ||
79 | #define MPEG3_SYSTEM_START_CODE 0x000001bb | ||
80 | #define MPEG3_STRLEN 1024 | ||
81 | #define MPEG3_PIDMAX 20 /* Maximum number of PIDs in one stream */ | ||
82 | #define MPEG3_PROGRAM_ASSOCIATION_TABLE 0x00 | ||
83 | #define MPEG3_CONDITIONAL_ACCESS_TABLE 0x01 | ||
84 | #define MPEG3_PACKET_START_CODE_PREFIX 0x000001 | ||
85 | #define MPEG3_PRIVATE_STREAM_2 0xbf | ||
86 | #define MPEG3_PADDING_STREAM 0xbe | ||
87 | #define MPEG3_GOP_START_CODE 0x000001b8 | ||
88 | #define MPEG3_PICTURE_START_CODE 0x00000100 | ||
89 | #define MPEG3_EXT_START_CODE 0x000001b5 | ||
90 | #define MPEG3_USER_START_CODE 0x000001b2 | ||
91 | #define MPEG3_SLICE_MIN_START 0x00000101 | ||
92 | #define MPEG3_SLICE_MAX_START 0x000001af | ||
93 | #define MPEG3_AC3_START_CODE 0x0b77 | ||
94 | #define MPEG3_PCM_START_CODE 0x0180 | ||
95 | #define MPEG3_MAX_CPUS 256 | ||
96 | #define MPEG3_MAX_STREAMS 256 | ||
97 | #define MPEG3_MAX_PACKSIZE 262144 | ||
98 | #define MPEG3_CONTIGUOUS_THRESHOLD 10 /* Positive difference before declaring timecodes discontinuous */ | ||
99 | #define MPEG3_PROGRAM_THRESHOLD 5 /* Minimum number of seconds before interleaving programs */ | ||
100 | #define MPEG3_SEEK_THRESHOLD 16 /* Number of frames difference before absolute seeking */ | ||
101 | |||
102 | /* Values for audio format */ | ||
103 | #define AUDIO_UNKNOWN 0 | ||
104 | #define AUDIO_MPEG 1 | ||
105 | #define AUDIO_AC3 2 | ||
106 | #define AUDIO_PCM 3 | ||
107 | #define AUDIO_AAC 4 | ||
108 | #define AUDIO_JESUS 5 | ||
109 | |||
110 | #endif | ||