Rev 1085 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1085 | pj | 1 | /* mpeg2dec.h, MPEG specific defines */ |
2 | |||
3 | /* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */ |
||
4 | |||
5 | /* |
||
6 | * Disclaimer of Warranty |
||
7 | * |
||
8 | * These software programs are available to the user without any license fee or |
||
9 | * royalty on an "as is" basis. The MPEG Software Simulation Group disclaims |
||
10 | * any and all warranties, whether express, implied, or statuary, including any |
||
11 | * implied warranties or merchantability or of fitness for a particular |
||
12 | * purpose. In no event shall the copyright-holder be liable for any |
||
13 | * incidental, punitive, or consequential damages of any kind whatsoever |
||
14 | * arising from the use of these programs. |
||
15 | * |
||
16 | * This disclaimer of warranty extends to the user of these programs and user's |
||
17 | * customers, employees, agents, transferees, successors, and assigns. |
||
18 | * |
||
19 | * The MPEG Software Simulation Group does not represent or warrant that the |
||
20 | * programs furnished hereunder are free of infringement of any third-party |
||
21 | * patents. |
||
22 | * |
||
23 | * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware, |
||
24 | * are subject to royalty fees to patent holders. Many of these patents are |
||
25 | * general enough such that they are unavoidable regardless of implementation |
||
26 | * design. |
||
27 | * |
||
28 | */ |
||
29 | |||
30 | #define ERROR (-1) |
||
31 | |||
32 | #define PICTURE_START_CODE 0x100 |
||
33 | #define SLICE_START_CODE_MIN 0x101 |
||
34 | #define SLICE_START_CODE_MAX 0x1AF |
||
35 | #define USER_DATA_START_CODE 0x1B2 |
||
36 | #define SEQUENCE_HEADER_CODE 0x1B3 |
||
37 | #define SEQUENCE_ERROR_CODE 0x1B4 |
||
38 | #define EXTENSION_START_CODE 0x1B5 |
||
39 | #define SEQUENCE_END_CODE 0x1B7 |
||
40 | #define GROUP_START_CODE 0x1B8 |
||
41 | #define SYSTEM_START_CODE_MIN 0x1B9 |
||
42 | #define SYSTEM_START_CODE_MAX 0x1FF |
||
43 | |||
44 | #define ISO_END_CODE 0x1B9 |
||
45 | #define PACK_START_CODE 0x1BA |
||
46 | #define SYSTEM_START_CODE 0x1BB |
||
47 | |||
48 | #define VIDEO_ELEMENTARY_STREAM 0x1e0 |
||
49 | |||
50 | /* scalable_mode */ |
||
51 | #define SC_NONE 0 |
||
52 | #define SC_DP 1 |
||
53 | #define SC_SPAT 2 |
||
54 | #define SC_SNR 3 |
||
55 | #define SC_TEMP 4 |
||
56 | |||
57 | /* picture coding type */ |
||
58 | #define I_TYPE 1 |
||
59 | #define P_TYPE 2 |
||
60 | #define B_TYPE 3 |
||
61 | #define D_TYPE 4 |
||
62 | |||
63 | /* picture structure */ |
||
64 | #define TOP_FIELD 1 |
||
65 | #define BOTTOM_FIELD 2 |
||
66 | #define FRAME_PICTURE 3 |
||
67 | |||
68 | /* macroblock type */ |
||
69 | #define MACROBLOCK_INTRA 1 |
||
70 | #define MACROBLOCK_PATTERN 2 |
||
71 | #define MACROBLOCK_MOTION_BACKWARD 4 |
||
72 | #define MACROBLOCK_MOTION_FORWARD 8 |
||
73 | #define MACROBLOCK_QUANT 16 |
||
74 | #define SPATIAL_TEMPORAL_WEIGHT_CODE_FLAG 32 |
||
75 | #define PERMITTED_SPATIAL_TEMPORAL_WEIGHT_CLASS 64 |
||
76 | |||
77 | |||
78 | /* motion_type */ |
||
79 | #define MC_FIELD 1 |
||
80 | #define MC_FRAME 2 |
||
81 | #define MC_16X8 2 |
||
82 | #define MC_DMV 3 |
||
83 | |||
84 | /* mv_format */ |
||
85 | #define MV_FIELD 0 |
||
86 | #define MV_FRAME 1 |
||
87 | |||
88 | /* chroma_format */ |
||
89 | #define CHROMA420 1 |
||
90 | #define CHROMA422 2 |
||
91 | #define CHROMA444 3 |
||
92 | |||
93 | /* extension start code IDs */ |
||
94 | |||
95 | #define SEQUENCE_EXTENSION_ID 1 |
||
96 | #define SEQUENCE_DISPLAY_EXTENSION_ID 2 |
||
97 | #define QUANT_MATRIX_EXTENSION_ID 3 |
||
98 | #define COPYRIGHT_EXTENSION_ID 4 |
||
99 | #define SEQUENCE_SCALABLE_EXTENSION_ID 5 |
||
100 | #define PICTURE_DISPLAY_EXTENSION_ID 7 |
||
101 | #define PICTURE_CODING_EXTENSION_ID 8 |
||
102 | #define PICTURE_SPATIAL_SCALABLE_EXTENSION_ID 9 |
||
103 | #define PICTURE_TEMPORAL_SCALABLE_EXTENSION_ID 10 |
||
104 | |||
105 | #define ZIG_ZAG 0 |
||
106 | |||
107 | #define PROFILE_422 (128+5) |
||
108 | #define MAIN_LEVEL 8 |
||
109 | |||
110 | /* Layers: used by Verbose_Flag, Verifier_Flag, Stats_Flag, and Trace_Flag */ |
||
111 | #define NO_LAYER 0 |
||
112 | #define SEQUENCE_LAYER 1 |
||
113 | #define PICTURE_LAYER 2 |
||
114 | #define SLICE_LAYER 3 |
||
115 | #define MACROBLOCK_LAYER 4 |
||
116 | #define BLOCK_LAYER 5 |
||
117 | #define EVENT_LAYER 6 |
||
118 | #define ALL_LAYERS 7 |
||
119 | |||
120 | |||
121 | |||
122 | #define FILENAME_LENGTH 256 |
||
123 | |||
124 | |||
125 | |||
126 | |||
127 | #define MB_WEIGHT 32 |
||
128 | #define MB_CLASS4 64 |
||
129 |