2
* The contents of this file are subject to the Mozilla Public
3
* License Version 1.1 (the "License"); you may not use this file
4
* except in compliance with the License. You may obtain a copy of
5
* the License at http://www.mozilla.org/MPL/
7
* Software distributed under the License is distributed on an "AS
8
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
* implied. See the License for the specific language governing
10
* rights and limitations under the License.
12
* The Original Code is MPEG4IP.
14
* The Initial Developer of the Original Code is Cisco Systems Inc.
15
* Portions created by Cisco Systems Inc. are
16
* Copyright (C) Cisco Systems Inc. 2000-2002. All Rights Reserved.
19
* Dave Mackie dmackie@cisco.com
22
#ifndef __MP4AV_MPEG4_INCLUDED__
23
#define __MP4AV_MPEG4_INCLUDED__
25
#define MP4AV_MPEG4_SYNC 0x000001
26
#define MP4AV_MPEG4_VOSH_START 0xB0
27
#define MP4AV_MPEG4_VOL_START 0x20
28
#define MP4AV_MPEG4_GOV_START 0xB3
29
#define MP4AV_MPEG4_VO_START 0xB5
30
#define MP4AV_MPEG4_VOP_START 0xB6
36
uint8_t *MP4AV_Mpeg4FindVosh(uint8_t *pBuf, uint32_t bufLen);
37
bool MP4AV_Mpeg4ParseVosh(
40
u_int8_t* pProfileLevel);
42
bool MP4AV_Mpeg4CreateVosh(
45
u_int8_t profileLevel);
47
bool MP4AV_Mpeg4CreateVo(
52
uint8_t *MP4AV_Mpeg4FindVol(uint8_t *pBuf, uint32_t buflen);
54
bool MP4AV_Mpeg4ParseVol(
58
u_int16_t* pTimeTicks,
59
u_int16_t* pFrameDuration,
60
u_int16_t* pFrameWidth,
61
u_int16_t* pFrameHeight);
63
bool MP4AV_Mpeg4CreateVol(
73
u_int8_t* pTimeBits DEFAULT_PARM(NULL));
75
bool MP4AV_Mpeg4ParseGov(
82
bool MP4AV_Mpeg4ParseVop(
88
u_int32_t* pVopTimeIncrement);
90
u_int8_t MP4AV_Mpeg4VideoToSystemsProfileLevel(
91
u_int8_t videoProfileLevel);
93
u_char MP4AV_Mpeg4GetVopType(
100
#endif /* __MP4AV_MPEG4_INCLUDED__ */