|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * Definition of constants used in MPEG-4 bitstream decoding. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef _MPEGCONS_H_ |
|
22 #define _MPEGCONS_H_ |
|
23 |
|
24 #include "epoclib.h" |
|
25 |
|
26 /* |
|
27 * Defines |
|
28 */ |
|
29 |
|
30 /* end of bitstream code |
|
31 inserted by the decoder if no new input buffer is got (bibNewBuffer()) */ |
|
32 |
|
33 #define MP4_EOB_CODE 0x1B1 |
|
34 #define MP4_EOB_CODE_LENGTH 32 |
|
35 |
|
36 /* session layer and vop layer start codes */ |
|
37 |
|
38 #define MP4_VOS_START_CODE 0x1B0 |
|
39 #define MP4_VOS_START_CODE_LENGTH 32 |
|
40 |
|
41 #define MP4_VO_START_CODE 0x1B5 |
|
42 #define MP4_VO_START_CODE_LENGTH 32 |
|
43 |
|
44 #define MP4_VID_START_CODE 0x8 |
|
45 #define MP4_VID_START_CODE_LENGTH 27 |
|
46 #define MP4_VID_ID_CODE_LENGTH 5 |
|
47 |
|
48 #define MP4_VOL_START_CODE 0x12 |
|
49 #define MP4_VOL_START_CODE_LENGTH 28 |
|
50 #define MP4_VOL_ID_CODE_LENGTH 4 |
|
51 |
|
52 #define MP4_GROUP_START_CODE 0x1B3 |
|
53 #define MP4_GROUP_START_CODE_LENGTH 32 |
|
54 |
|
55 #define MP4_VOP_START_CODE 0x1B6 |
|
56 #define MP4_VOP_START_CODE_LENGTH 32 |
|
57 |
|
58 #define MP4_USER_DATA_START_CODE 0x1B2 |
|
59 |
|
60 /* motion and resync markers used in error resilient mode */ |
|
61 |
|
62 #define MP4_DC_MARKER 438273 |
|
63 #define MP4_DC_MARKER_LENGTH 19 |
|
64 |
|
65 #define MP4_MOTION_MARKER_COMB 126977 |
|
66 #define MP4_MOTION_MARKER_COMB_LENGTH 17 |
|
67 |
|
68 #define MP4_RESYNC_MARKER 1 |
|
69 #define MP4_RESYNC_MARKER_LENGTH 17 |
|
70 |
|
71 #endif |
|
72 // End of File |