summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/osal/inc/M4OSA_Types.h
blob: ee258a0470bc90c47c93d8e37c62d5b8c7cd4a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
 * Copyright (C) 2011 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 ************************************************************************
 * @file         M4OSA_Types.h
 * @ingroup      OSAL
 * @brief        Abstraction types for Android
 * @note         This file redefines basic types which must be
 *               used to declare any variable.
************************************************************************
*/


#ifndef M4OSA_TYPES_H
#define M4OSA_TYPES_H

#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "M4OSA_Export.h"
#ifdef __cplusplus
extern "C" {
#endif


typedef int8_t     M4OSA_Bool;
typedef uint8_t    M4OSA_UInt8;
typedef int8_t     M4OSA_Int8;
typedef uint16_t   M4OSA_UInt16;
typedef int16_t    M4OSA_Int16;
typedef uint32_t   M4OSA_UInt32;
typedef int32_t    M4OSA_Int32;

typedef signed char     M4OSA_Char;
typedef unsigned char   M4OSA_UChar;

typedef double          M4OSA_Double;
typedef float           M4OSA_Float;

typedef unsigned char   M4OSA_WChar;

typedef void            M4OSA_Void;

/* Min & max definitions*/
#define M4OSA_UINT8_MIN                  0
#define M4OSA_UINT8_MAX                255

#define M4OSA_UINT16_MIN                 0
#define M4OSA_UINT16_MAX             65535

#define M4OSA_UINT32_MIN                 0
#define M4OSA_UINT32_MAX        0xFFFFFFFF

#define M4OSA_INT8_MIN                -128
#define M4OSA_INT8_MAX                 127

#define M4OSA_INT16_MIN             -32768
#define M4OSA_INT16_MAX              32767

#define M4OSA_INT32_MIN       (-0x7FFFFFFF-1)
#define M4OSA_INT32_MAX         0x7FFFFFFF

#define M4OSA_CHAR_MIN                -128
#define M4OSA_CHAR_MAX                 127

#define M4OSA_UCHAR_MIN                  0
#define M4OSA_UCHAR_MAX                255

#define M4OSA_NULL                     0x00
#define M4OSA_TRUE                     0x01
#define M4OSA_FALSE                    0x00
#define M4OSA_WAIT_FOREVER       0xffffffff

#define M4OSA_CONST                   const
#define M4OSA_INLINE                 inline

/* Rollover offset of the clock */
/* This value must be the one of M4OSA_clockGetTime */
#define M4OSA_CLOCK_ROLLOVER           M4OSA_INT32_MAX

typedef void*                M4OSA_Context;

/** It is a unique ID for each core component*/
typedef  M4OSA_UInt16 M4OSA_CoreID;

#ifdef __cplusplus
}
#endif

#endif /*M4OSA_TYPES_H*/