XenevaOS
Loading...
Searching...
No Matches
h264bsd_nal_unit.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
20 Table of contents
21
22 1. Include headers
23 2. Module defines
24 3. Data types
25 4. Function prototypes
26
27------------------------------------------------------------------------------*/
28
29#ifndef H264SWDEC_NAL_UNIT_H
30#define H264SWDEC_NAL_UNIT_H
31
32/*------------------------------------------------------------------------------
33 1. Include headers
34------------------------------------------------------------------------------*/
35
36#include "basetype.h"
37#include "h264bsd_stream.h"
38
39/*------------------------------------------------------------------------------
40 2. Module defines
41------------------------------------------------------------------------------*/
42
43/* macro to determine if NAL unit pointed by pNalUnit contains an IDR slice */
44#define IS_IDR_NAL_UNIT(pNalUnit) \
45 ((pNalUnit)->nalUnitType == NAL_CODED_SLICE_IDR)
46
47/*------------------------------------------------------------------------------
48 3. Data types
49------------------------------------------------------------------------------*/
50
63
69
70/*------------------------------------------------------------------------------
71 4. Function prototypes
72------------------------------------------------------------------------------*/
73
74u32 h264bsdDecodeNalUnit(strmData_t *pStrmData, nalUnit_t *pNalUnit);
75
76#endif /* #ifdef H264SWDEC_NAL_UNIT_H */
77
nalUnitType_e
Definition h264bsd_nal_unit.h:51
@ NAL_CODED_SLICE_IDR
Definition h264bsd_nal_unit.h:53
@ NAL_MAX_TYPE_VALUE
Definition h264bsd_nal_unit.h:61
@ NAL_END_OF_STREAM
Definition h264bsd_nal_unit.h:59
@ NAL_CODED_SLICE
Definition h264bsd_nal_unit.h:52
@ NAL_END_OF_SEQUENCE
Definition h264bsd_nal_unit.h:58
@ NAL_ACCESS_UNIT_DELIMITER
Definition h264bsd_nal_unit.h:57
@ NAL_FILLER_DATA
Definition h264bsd_nal_unit.h:60
@ NAL_PIC_PARAM_SET
Definition h264bsd_nal_unit.h:56
@ NAL_SEI
Definition h264bsd_nal_unit.h:54
@ NAL_SEQ_PARAM_SET
Definition h264bsd_nal_unit.h:55
u32 h264bsdDecodeNalUnit(strmData_t *pStrmData, nalUnit_t *pNalUnit)
Definition h264bsd_nal_unit.c:69
uint32_t u32
Definition kernel.h:16
Definition h264bsd_nal_unit.h:65
nalUnitType_e nalUnitType
Definition h264bsd_nal_unit.h:66
u32 nalRefIdc
Definition h264bsd_nal_unit.h:67
Definition h264bsd_stream.h:47