|
|
//#define A32_BITSTREAM_READER | //#define A32_BITSTREAM_READER |
#define LIBMPEG2_BITSTREAM_READER_HACK //add BERO | #define LIBMPEG2_BITSTREAM_READER_HACK //add BERO |
| |
|
#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(EMULATE_INTTYPES) |
|
# define EMULATE_INTTYPES |
|
#endif |
|
|
#ifndef M_PI | #ifndef M_PI |
#define M_PI 3.14159265358979323846 | #define M_PI 3.14159265358979323846 |
#endif | #endif |
|
|
#endif | #endif |
#endif | #endif |
| |
#define EMULATE_INTTYPES |
|
#ifndef EMULATE_INTTYPES | #ifndef EMULATE_INTTYPES |
# include <inttypes.h> | # include <inttypes.h> |
#else | #else |
|
|
| |
extern const uint32_t inverse[256]; | extern const uint32_t inverse[256]; |
| |
#ifdef ARCH_X86 |
#if defined(ARCH_X86) || defined(ARCH_X86_64) |
# define FASTDIV(a,b) \ | # define FASTDIV(a,b) \ |
({\ | ({\ |
int ret,dmy;\ | int ret,dmy;\ |
|
|
#define MKBETAG(a,b,c,d) (d | (c << 8) | (b << 16) | (a << 24)) | #define MKBETAG(a,b,c,d) (d | (c << 8) | (b << 16) | (a << 24)) |
| |
| |
#ifdef ARCH_X86 |
#if defined(ARCH_X86) || defined(ARCH_X86_64) |
#define MASK_ABS(mask, level)\ | #define MASK_ABS(mask, level)\ |
asm volatile(\ | asm volatile(\ |
"cdq \n\t"\ | "cdq \n\t"\ |