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