1 /************************************************************************
2 *
3 * tmndec.h, TMN specific defines for tmndecode (H.263 decoder)
4 * Copyright (C) 1995, 1996 Telenor R&D, Norway
5 *
6 * Contacts:
7 * Robert Danielsen <Robert.Danielsen@nta.no>
8 *
9 * Telenor Research and Development http://www.nta.no/brukere/DVC/
10 * P.O.Box 83 tel.: +47 63 84 84 00
11 * N-2007 Kjeller, Norway fax.: +47 63 81 00 76
12 *
13 * Copyright (C) 1997 University of BC, Canada
14 * Modified by: Michael Gallant <mikeg@ee.ubc.ca>
15 * Guy Cote <guyc@ee.ubc.ca>
16 * Berna Erol <bernae@ee.ubc.ca>
17 *
18 * Contacts:
19 * Michael Gallant <mikeg@ee.ubc.ca>
20 *
21 * UBC Image Processing Laboratory http://www.ee.ubc.ca/image
22 * 2356 Main Mall tel.: +1 604 822 4051
23 * Vancouver BC Canada V6T1Z4 fax.: +1 604 822 5949
24 *
25 ************************************************************************/
26
27 /* Disclaimer of Warranty
28 *
29 * These software programs are available to the user without any license fee
30 * or royalty on an "as is" basis. The University of British Columbia
31 * disclaims any and all warranties, whether express, implied, or
32 * statuary, including any implied warranties or merchantability or of
33 * fitness for a particular purpose. In no event shall the
34 * copyright-holder be liable for any incidental, punitive, or
35 * consequential damages of any kind whatsoever arising from the use of
36 * these programs.
37 *
38 * This disclaimer of warranty extends to the user of these programs and
39 * user's customers, employees, agents, transferees, successors, and
40 * assigns.
41 *
42 * The University of British Columbia does not represent or warrant that the
43 * programs furnished hereunder are free of infringement of any
44 * third-party patents.
45 *
46 * Commercial implementations of H.263, including shareware, are subject to
47 * royalty fees to patent holders. Many of these patents are general
48 * enough such that they are unavoidable regardless of implementation
49 * design.
50 *
51 */
52
53
54
55 /* based on mpeg2decode, (C) 1994, MPEG Software Simulation Group and
56 * mpeg2play, (C) 1994 Stefan Eckart <stefan@lis.e-technik.tu-muenchen.de>
57 *
58 */
59
60
61 /* default filename for enhancemennt layer reconstructed sequence */
62 #define DEF_ENHANCE_FILENAME_ROOT "enhance.raw"
63
64 /* From sim.h */
65 #define PSC 1
66 #define PSC_LENGTH 17
67 #define SE_CODE 31
68
69 #define MODE_INTER 0
70 #define MODE_INTER_Q 1
71 #define MODE_INTER4V 2
72 #define MODE_INTRA 3
73 #define MODE_INTRA_Q 4
74 #define MODE_INTER4V_Q 5
75
76 /* MODB options in normal PB frames mode */
77 #define PBMODE_NORMAL 0
78 #define PBMODE_MVDB 1
79 #define PBMODE_CBPB_MVDB 2
80
81 /* MODB options in improved PB frames mode */
82 #define PBMODE_BIDIR_PRED 0
83 #define PBMODE_CBPB_BIDIR_PRED 2
84 #define PBMODE_FRW_PRED 6
85 #define PBMODE_CBPB_FRW_PRED 14
86 #define PBMODE_BCKW_PRED 30
87 #define PBMODE_CBPB_BCKW_PRED 31
88
89 #define B_DIRECT_PREDICTION 0
90 #define B_FORWARD_PREDICTION 1
91 #define B_BACKWARD_PREDICTION 2
92 #define B_BIDIRECTIONAL_PREDICTION 3
93 #define B_INTRA_PREDICTION 4
94
95 #define EP_FORWARD_PREDICTION 0
96 #define EI_EP_UPWARD_PREDICTION 1
97 #define EP_BIDIRECTIONAL_PREDICTION 2
98 #define EI_EP_INTRA_PREDICTION 3
99
100 #define B_EI_EP_STUFFING 5
101 #define INVALID_MBTYPE 255
102
103 #define FORWARD_PREDICTION 0
104 #define BIDIRECTIONAL_PREDICTION 1
105
106 #define ESCAPE 7167
107 #define ESCAPE_INDEX 102
108
109 /* picture types */
110 #define PCT_INTRA 0
111 #define PCT_INTER 1
112 #define PCT_IPB 2
113 #define PCT_B 3
114 #define PCT_EI 4
115 #define PCT_EP 5
116 #define PCT_PB 6
117
118 /* scalability layers */
119 #define MAX_LAYERS 2
120
121 /* pb frame type */
122 #define PB_FRAMES 1
123 #define IM_PB_FRAMES 2
124
125 #define ON 1
126 #define OFF 0
127
128 #define YES 1
129 #define NO 0
130
131 /* source formats */
132 #define SF_SQCIF 1 /* 001 */
133 #define SF_QCIF 2 /* 010 */
134 #define SF_CIF 3 /* 011 */
135 #define SF_4CIF 4 /* 100 */
136 #define SF_16CIF 5 /* 101 */
137 #define SF_CUSTOM 6 /* 110 */
138 #define EXTENDED_PTYPE 7 /* 111 */
139
140 #define EXTENDED_PAR 15 /* 1111 */
141
142 /* this is necessary for the max resolution 16CIF */
143 #define MBC 88
144 #define MBR 72
145
146 #define NO_VEC 999
147
148 /* Intra Mode for Advanced Intra Coding mode */
149 #define INTRA_MODE_DC 0
150 #define INTRA_MODE_VERT_AC 2
151 #define INTRA_MODE_HORI_AC 3
152
153 /* Scalability modes */
154 #define SNR_SCALABILITY 1
155 #define SPATIAL_SCALABILITY_H 3
156 #define SPATIAL_SCALABILITY_V 5
157 #define SPATIAL_SCALABILITY_HV 7
158
159
160 /* Pixel aspect ration for custom source format */
161 #define PAR_0 0 /* 0000 */
162 #define PAR_SQUARE 1 /* 0001 */
163 #define PAR_CIF 2 /* 0010 */
164 #define PAR_525 3 /* 0011 */
165 #define PAR_CIF_STRETCHED 4 /* 0100 */
166 #define PAR_525_STRETCHED 5 /* 0101 */
167 #define PAR_EXTENDED 15 /* 1111 */
168
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.