vp9_type_aliases.h 2.88 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
2
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar's avatar
John Koleszar committed
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5 6
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
7
 *  in the file PATENTS.  All contributing project authors may
8
 *  be found in the AUTHORS file in the root of the source tree.
John Koleszar's avatar
John Koleszar committed
9 10 11 12 13
 */


/****************************************************************************
*
14
*   Module Title :     vp9_type_aliases.h
John Koleszar's avatar
John Koleszar committed
15 16 17 18
*
*   Description  :     Standard type aliases
*
****************************************************************************/
19 20
#ifndef VP9_COMMON_VP9_TYPE_ALIASES_H_
#define VP9_COMMON_VP9_TYPE_ALIASES_H_
John Koleszar's avatar
John Koleszar committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

/****************************************************************************
* Macros
****************************************************************************/
#define EXPORT
#define IMPORT          extern      /* Used to declare imported data & routines */
#define PRIVATE         static      /* Used to declare & define module-local data */
#define LOCAL           static      /* Used to define all persistent routine-local data */
#define STD_IN_PATH     0           /* Standard input path */
#define STD_OUT_PATH    1           /* Standard output path */
#define STD_ERR_PATH    2           /* Standard error path */
#define STD_IN_FILE     stdin       /* Standard input file pointer */
#define STD_OUT_FILE    stdout      /* Standard output file pointer */
#define STD_ERR_FILE    stderr      /* Standard error file pointer */
#define max_int         0x7FFFFFFF

#define __export
#define _export

#define CCONV

#ifndef NULL
#ifdef __cplusplus
#define NULL    0
#else
#define NULL    ((void *)0)
#endif
#endif

#ifndef FALSE
#define FALSE   0
#endif

#ifndef TRUE
#define TRUE    1
#endif

/****************************************************************************
* Typedefs
****************************************************************************/
#ifndef TYPE_INT8
#define TYPE_INT8
typedef signed char     INT8;
#endif

#ifndef TYPE_INT16
67
/*#define TYPE_INT16*/
John Koleszar's avatar
John Koleszar committed
68 69 70 71
typedef signed short    INT16;
#endif

#ifndef TYPE_INT32
72
/*#define TYPE_INT32*/
John Koleszar's avatar
John Koleszar committed
73 74 75 76
typedef signed int      INT32;
#endif

#ifndef TYPE_UINT8
77
/*#define TYPE_UINT8*/
John Koleszar's avatar
John Koleszar committed
78 79 80 81
typedef unsigned char   UINT8;
#endif

#ifndef TYPE_UINT32
82
/*#define TYPE_UINT32*/
John Koleszar's avatar
John Koleszar committed
83 84 85 86
typedef unsigned int    UINT32;
#endif

#ifndef TYPE_UINT16
87
/*#define TYPE_UINT16*/
John Koleszar's avatar
John Koleszar committed
88 89 90 91
typedef unsigned short  UINT16;
#endif

#ifndef TYPE_BOOL
92
/*#define TYPE_BOOL*/
John Koleszar's avatar
John Koleszar committed
93 94 95 96 97 98 99
typedef int             BOOL;
#endif

typedef unsigned char   BOOLEAN;

#ifdef _MSC_VER
typedef __int64 INT64;
Yaowu Xu's avatar
Yaowu Xu committed
100 101 102
#ifndef INT64_MAX
#define INT64_MAX LLONG_MAX
#endif
John Koleszar's avatar
John Koleszar committed
103 104 105 106
#else

#ifndef TYPE_INT64
#ifdef _TMS320C6X
107
/* for now we only have 40bits */
John Koleszar's avatar
John Koleszar committed
108 109 110 111 112 113 114 115 116 117 118 119 120
typedef long INT64;
#else
typedef long long INT64;
#endif
#endif

#endif

/* Floating point */
typedef  double         FLOAT64;
typedef  float          FLOAT32;

#endif