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