XenevaOS
Loading...
Searching...
No Matches
h264bsd_stream.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_STREAM_H
30#define H264SWDEC_STREAM_H
31
32/*------------------------------------------------------------------------------
33 1. Include headers
34------------------------------------------------------------------------------*/
35
36#include "basetype.h"
37
38/*------------------------------------------------------------------------------
39 2. Module defines
40------------------------------------------------------------------------------*/
41
42/*------------------------------------------------------------------------------
43 3. Data types
44------------------------------------------------------------------------------*/
45
46typedef struct
47{
48 u8 *pStrmBuffStart; /* pointer to start of stream buffer */
49 u8 *pStrmCurrPos; /* current read address in stream buffer */
50 u32 bitPosInWord; /* bit position in stream buffer byte */
51 u32 strmBuffSize; /* size of stream buffer (bytes) */
52 u32 strmBuffReadBits; /* number of bits read from stream buffer */
54
55/*------------------------------------------------------------------------------
56 4. Function prototypes
57------------------------------------------------------------------------------*/
58
59u32 h264bsdGetBits(strmData_t *pStrmData, u32 numBits);
60
62
63u32 h264bsdFlushBits(strmData_t *pStrmData, u32 numBits);
64
66
67#endif /* #ifdef H264SWDEC_STREAM_H */
68
u32 h264bsdFlushBits(strmData_t *pStrmData, u32 numBits)
Definition h264bsd_stream.c:189
u32 h264bsdShowBits32(strmData_t *pStrmData)
Definition h264bsd_stream.c:116
u32 h264bsdGetBits(strmData_t *pStrmData, u32 numBits)
Definition h264bsd_stream.c:73
u32 h264bsdIsByteAligned(strmData_t *)
Definition h264bsd_stream.c:230
uint8_t u8
Definition kernel.h:14
uint32_t u32
Definition kernel.h:16
Definition h264bsd_stream.h:47
u8 * pStrmCurrPos
Definition h264bsd_stream.h:49
u32 strmBuffReadBits
Definition h264bsd_stream.h:52
u32 strmBuffSize
Definition h264bsd_stream.h:51
u8 * pStrmBuffStart
Definition h264bsd_stream.h:48
u32 bitPosInWord
Definition h264bsd_stream.h:50