XenevaOS
Loading...
Searching...
No Matches
basetype.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2009 The Android Open Source Project
3 * Modified for use by h264bsd standalone library
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18
19#ifndef BASETYPE_H_INCLUDED
20#define BASETYPE_H_INCLUDED
21
22
23#ifdef __arm
24#define VOLATILE volatile
25#else
26#define VOLATILE
27#endif
28
29typedef unsigned char u8;
30typedef signed char i8;
31typedef unsigned short u16;
32typedef signed short i16;
33typedef unsigned int u32;
34typedef signed int i32;
35
36#if defined(VC1SWDEC_16BIT) || defined(MP4ENC_ARM11)
37typedef unsigned short u16x;
38typedef signed short i16x;
39#else
40typedef unsigned int u16x;
41typedef signed int i16x;
42#endif
43
44
45#ifndef NULL
46#ifdef __cplusplus
47#define NULL 0
48#else
49#define NULL ((void *)0)
50#endif
51#endif
52
53#endif /* BASETYPE_H_INCLUDED */
unsigned int u32
Definition basetype.h:33
signed char i8
Definition basetype.h:30
signed int i16x
Definition basetype.h:41
signed int i32
Definition basetype.h:34
unsigned short u16
Definition basetype.h:31
unsigned int u16x
Definition basetype.h:40
signed short i16
Definition basetype.h:32
unsigned char u8
Definition basetype.h:29