xine-lib: xine-lib-1.2.12/src/video_dec/libmpeg2new/libmpeg2/mpeg2_internal.h Source File

xine-lib 1.2.12

mpeg2_internal.h
Go to the documentation of this file.
1/*
2 * mpeg2_internal.h
3 * Copyright (C) 2000-2003 Michel Lespinasse <walken@zoy.org>
4 * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
5 *
6 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
7 * See http://libmpeg2.sourceforge.net/ for updates.
8 *
9 * mpeg2dec is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * mpeg2dec is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23
24#define STATE_INTERNAL_NORETURN ((mpeg2_state_t)-1)
25
26/* macroblock modes */
27#define MACROBLOCK_INTRA 1
28#define MACROBLOCK_PATTERN 2
29#define MACROBLOCK_MOTION_BACKWARD 4
30#define MACROBLOCK_MOTION_FORWARD 8
31#define MACROBLOCK_QUANT 16
32#define DCT_TYPE_INTERLACED 32
33/* motion_type */
34#define MOTION_TYPE_SHIFT 6
35#define MC_FIELD 1
36#define MC_FRAME 2
37#define MC_16X8 2
38#define MC_DMV 3
39
40/* picture structure */
41#define TOP_FIELD 1
42#define BOTTOM_FIELD 2
43#define FRAME_PICTURE 3
44
45/* picture coding type */
46#define I_TYPE 1
47#define P_TYPE 2
48#define B_TYPE 3
49#define D_TYPE 4
50
51 typedef void mpeg2_mc_fct (uint8_t *, const uint8_t *, int, int);
52
53 typedef struct {
54 uint8_t * ref[2][3];
55 uint8_t ** ref2[2];
56 int pmv[2][2];
57 int f_code[2];
58} motion_t;
59
60 typedef void motion_parser_t (mpeg2_decoder_t * decoder,
61 motion_t * motion,
62 mpeg2_mc_fct * const * table);
63
64 struct mpeg2_decoder_s {
65 /* first, state that carries information from one macroblock to the */
66 /* next inside a slice, and is never used outside of mpeg2_slice() */
67
68 /* bit parsing stuff */
69 uint32_t bitstream_buf; /* current 32 bit working set */
70 int bitstream_bits; /* used bits in working set */
71 const uint8_t * bitstream_ptr; /* buffer with stream data */
72
73 uint8_t * dest[3];
74
75 int offset;
76 int stride;
77 int uv_stride;
78 int slice_stride;
79 int slice_uv_stride;
80 int stride_frame;
81 unsigned int limit_x;
82 unsigned int limit_y_16;
83 unsigned int limit_y_8;
84 unsigned int limit_y;
85
86 /* Motion vectors */
87 /* The f_ and b_ correspond to the forward and backward motion */
88 /* predictors */
89 motion_t b_motion;
90 motion_t f_motion;
91 motion_parser_t * motion_parser[5];
92
93 /* predictor for DC coefficients in intra blocks */
94 int16_t dc_dct_pred[3];
95
96 /* DCT coefficients */
97 int16_t DCTblock[64] ATTR_ALIGN(64);
98
99 uint8_t * picture_dest[3];
100 void (* convert) (void * convert_id, uint8_t * const * src,
101 unsigned int v_offset);
102 void * convert_id;
103
104 int dmv_offset;
105 unsigned int v_offset;
106
107 /* now non-slice-specific information */
108
109 /* sequence header stuff */
110 uint16_t * quantizer_matrix[4];
111 uint16_t (* chroma_quantizer[2])[64];
112 uint16_t quantizer_prescale[4][32][64];
113
114 /* The width and height of the picture snapped to macroblock units */
115 int width;
116 int height;
117 int vertical_position_extension;
118 int chroma_format;
119
120 /* picture header stuff */
121
122 /* what type of picture this is (I, P, B, D) */
123 int coding_type;
124
125 /* picture coding extension stuff */
126
127 /* quantization factor for intra dc coefficients */
128 int intra_dc_precision;
129 /* top/bottom/both fields */
130 int picture_structure;
131 /* bool to indicate all predictions are frame based */
132 int frame_pred_frame_dct;
133 /* bool to indicate whether intra blocks have motion vectors */
134 /* (for concealment) */
135 int concealment_motion_vectors;
136 /* bool to use different vlc tables */
137 int intra_vlc_format;
138 /* used for DMV MC */
139 int top_field_first;
140
141 /* stuff derived from bitstream */
142
143 /* pointer to the zigzag scan we're supposed to be using */
144 const uint8_t * scan;
145
146 int second_field;
147
148 int mpeg1;
149};
150
151 typedef struct {
152 mpeg2_fbuf_t fbuf;
153} fbuf_alloc_t;
154
155struct mpeg2dec_s {
156 mpeg2_decoder_t decoder;
157
158 mpeg2_info_t info;
159
160 uint32_t shift;
161 int is_display_initialized;
162 mpeg2_state_t (* action) (struct mpeg2dec_s * mpeg2dec);
163 mpeg2_state_t state;
164 uint32_t ext_state;
165
166 /* allocated in init - gcc has problems allocating such big structures */
167 uint8_t * chunk_buffer;
168 /* pointer to start of the current chunk */
169 uint8_t * chunk_start;
170 /* pointer to current position in chunk_buffer */
171 uint8_t * chunk_ptr;
172 /* last start code ? */
173 uint8_t code;
174
175 /* picture tags */
176 uint32_t tag_current, tag2_current, tag_previous, tag2_previous;
177 int num_tags;
178 int bytes_since_tag;
179
180 int first;
181 int alloc_index_user;
182 int alloc_index;
183 uint8_t first_decode_slice;
184 uint8_t nb_decode_slices;
185
186 unsigned int user_data_len;
187
188 mpeg2_sequence_t new_sequence;
189 mpeg2_sequence_t sequence;
190 mpeg2_gop_t new_gop;
191 mpeg2_gop_t gop;
192 mpeg2_picture_t new_picture;
193 mpeg2_picture_t pictures[4];
194 mpeg2_picture_t * picture;
195 /*const*/ mpeg2_fbuf_t * fbuf[3]; /* 0: current fbuf, 1-2: prediction fbufs */
196
197 fbuf_alloc_t fbuf_alloc[3];
198 int custom_fbuf;
199
200 uint8_t * yuv_buf[3][3];
201 int yuv_index;
202 mpeg2_convert_t * convert;
203 void * convert_arg;
204 unsigned int convert_id_size;
205 int convert_stride;
206 void (* convert_start) (void * id, const mpeg2_fbuf_t * fbuf,
207 const mpeg2_picture_t * picture,
208 const mpeg2_gop_t * gop);
209
210 uint8_t * buf_start;
211 uint8_t * buf_end;
212
213 int16_t display_offset_x, display_offset_y;
214
215 int copy_matrix;
216 int8_t q_scale_type, scaled[4];
217 uint8_t quantizer_matrix[4][64];
218 uint8_t new_quantizer_matrix[4][64];
219};
220
221 typedef struct {
222#ifdef ARCH_PPC
223 uint8_t regv[12*16];
224#endif
225 int dummy;
226} cpu_state_t;
227
228/* cpu_accel.c */
229uint32_t mpeg2_detect_accel (uint32_t accel);
230
231/* cpu_state.c */
232void mpeg2_cpu_state_init (uint32_t accel);
233
234/* decode.c */
235 mpeg2_state_t mpeg2_seek_header (mpeg2dec_t * mpeg2dec);
236 mpeg2_state_t mpeg2_parse_header (mpeg2dec_t * mpeg2dec);
237
238/* header.c */
239void mpeg2_header_state_init (mpeg2dec_t * mpeg2dec);
240void mpeg2_reset_info (mpeg2_info_t * info);
241int mpeg2_header_sequence (mpeg2dec_t * mpeg2dec);
242int mpeg2_header_gop (mpeg2dec_t * mpeg2dec);
243 mpeg2_state_t mpeg2_header_picture_start (mpeg2dec_t * mpeg2dec);
244int mpeg2_header_picture (mpeg2dec_t * mpeg2dec);
245int mpeg2_header_extension (mpeg2dec_t * mpeg2dec);
246int mpeg2_header_user_data (mpeg2dec_t * mpeg2dec);
247void mpeg2_header_sequence_finalize (mpeg2dec_t * mpeg2dec);
248void mpeg2_header_gop_finalize (mpeg2dec_t * mpeg2dec);
249void mpeg2_header_picture_finalize (mpeg2dec_t * mpeg2dec, uint32_t accels);
250 mpeg2_state_t mpeg2_header_slice_start (mpeg2dec_t * mpeg2dec);
251 mpeg2_state_t mpeg2_header_end (mpeg2dec_t * mpeg2dec);
252void mpeg2_set_fbuf (mpeg2dec_t * mpeg2dec, int b_type);
253
254/* idct.c */
255void mpeg2_idct_init (uint32_t accel);
256
257/* idct_mmx.c */
258 void mpeg2_idct_copy_mmxext (int16_t * block, uint8_t * dest, int stride);
259 void mpeg2_idct_add_mmxext (int last, int16_t * block,
260 uint8_t * dest, int stride);
261 void mpeg2_idct_copy_mmx (int16_t * block, uint8_t * dest, int stride);
262 void mpeg2_idct_add_mmx (int last, int16_t * block,
263 uint8_t * dest, int stride);
264 void mpeg2_idct_mmx_init (void);
265
266/* idct_altivec.c */
267 void mpeg2_idct_copy_altivec (int16_t * block, uint8_t * dest, int stride);
268 void mpeg2_idct_add_altivec (int last, int16_t * block,
269 uint8_t * dest, int stride);
270 void mpeg2_idct_altivec_init (void);
271
272/* idct_alpha.c */
273 void mpeg2_idct_copy_mvi (int16_t * block, uint8_t * dest, int stride);
274 void mpeg2_idct_add_mvi (int last, int16_t * block,
275 uint8_t * dest, int stride);
276 void mpeg2_idct_copy_alpha (int16_t * block, uint8_t * dest, int stride);
277 void mpeg2_idct_add_alpha (int last, int16_t * block,
278 uint8_t * dest, int stride);
279 void mpeg2_idct_alpha_init (void);
280
281/* motion_comp.c */
282void mpeg2_mc_init (uint32_t accel);
283
284 typedef struct {
285 mpeg2_mc_fct * put [8];
286 mpeg2_mc_fct * avg [8];
287} mpeg2_mc_t;
288
289#define MPEG2_MC_EXTERN(x) mpeg2_mc_t mpeg2_mc_##x = { \
290 {MC_put_o_16_##x, MC_put_x_16_##x, MC_put_y_16_##x, MC_put_xy_16_##x, \
291 MC_put_o_8_##x, MC_put_x_8_##x, MC_put_y_8_##x, MC_put_xy_8_##x}, \
292 {MC_avg_o_16_##x, MC_avg_x_16_##x, MC_avg_y_16_##x, MC_avg_xy_16_##x, \
293 MC_avg_o_8_##x, MC_avg_x_8_##x, MC_avg_y_8_##x, MC_avg_xy_8_##x} \
294};
295
296extern mpeg2_mc_t mpeg2_mc_c;
297extern mpeg2_mc_t mpeg2_mc_mmx;
298extern mpeg2_mc_t mpeg2_mc_mmxext;
299extern mpeg2_mc_t mpeg2_mc_3dnow;
300extern mpeg2_mc_t mpeg2_mc_altivec;
301extern mpeg2_mc_t mpeg2_mc_alpha;
302extern mpeg2_mc_t mpeg2_mc_vis;
ATTR_ALIGN
#define ATTR_ALIGN(align)
Definition: attributes.h:66
put
#define put(predictor, i)
Definition: motion_comp.c:96
avg
#define avg(predictor, i)
Definition: motion_comp.c:97
mpeg2_idct_add_altivec
void mpeg2_idct_add_altivec(signed short *block, unsigned char *dest, int stride)
mpeg2_cpu_state_init
void mpeg2_cpu_state_init(uint32_t mm_accel)
Definition: cpu_state.c:171
mpeg2_mc_mmx
mpeg2_mc_t mpeg2_mc_mmx
mpeg2_mc_t
struct mpeg2_mc_s mpeg2_mc_t
mpeg2_mc_mmxext
mpeg2_mc_t mpeg2_mc_mmxext
mpeg2_idct_add_mmx
void mpeg2_idct_add_mmx(int16_t *block, uint8_t *dest, int stride)
mpeg2_mc_altivec
mpeg2_mc_t mpeg2_mc_altivec
mpeg2_mc_vis
mpeg2_mc_t mpeg2_mc_vis
mpeg2_idct_altivec_init
void mpeg2_idct_altivec_init(void)
mpeg2_header_picture
int mpeg2_header_picture(picture_t *picture, uint8_t *buffer)
Definition: header.c:400
mpeg2_mc_init
void mpeg2_mc_init(uint32_t mm_accel)
Definition: motion_comp.c:34
mpeg2_header_state_init
void mpeg2_header_state_init(picture_t *picture)
Definition: header.c:112
mpeg2_header_sequence
int mpeg2_header_sequence(picture_t *picture, uint8_t *buffer)
Definition: header.c:119
mpeg2_idct_add_mmxext
void mpeg2_idct_add_mmxext(int16_t *block, uint8_t *dest, int stride)
mpeg2_idct_copy_altivec
void mpeg2_idct_copy_altivec(signed short *block, unsigned char *dest, int stride)
mpeg2_header_extension
int mpeg2_header_extension(picture_t *picture, uint8_t *buffer)
Definition: header.c:316
mpeg2_idct_copy_mmx
void mpeg2_idct_copy_mmx(int16_t *block, uint8_t *dest, int stride)
mpeg2_idct_copy_mmxext
void mpeg2_idct_copy_mmxext(int16_t *block, uint8_t *dest, int stride)
motion_t
struct motion_s motion_t
mpeg2_idct_init
void mpeg2_idct_init(uint32_t mm_accel)
Definition: idct.c:281
mpeg2_mc_c
mpeg2_mc_t mpeg2_mc_c
Definition: motion_comp.c:145
mpeg2_mc_3dnow
mpeg2_mc_t mpeg2_mc_3dnow
mpeg2_idct_mmx_init
void mpeg2_idct_mmx_init(void)
cpu_state_t
struct cpu_state_s cpu_state_t
mpeg2_convert_t
int mpeg2_convert_t(int stage, void *id, const mpeg2_sequence_t *sequence, int stride, uint32_t accel, void *arg, mpeg2_convert_init_t *result)
Definition: mpeg2.h:146
mpeg2_state_t
mpeg2_state_t
Definition: mpeg2.h:119
mpeg2_idct_copy_mvi
void mpeg2_idct_copy_mvi(int16_t *block, uint8_t *dest, int stride)
mpeg2_idct_add_mvi
void mpeg2_idct_add_mvi(int last, int16_t *block, uint8_t *dest, int stride)
motion_parser_t
void motion_parser_t(mpeg2_decoder_t *decoder, motion_t *motion, mpeg2_mc_fct *const *table)
Definition: mpeg2_internal.h:60
mpeg2_parse_header
mpeg2_state_t mpeg2_parse_header(mpeg2dec_t *mpeg2dec)
Definition: decode.c:213
mpeg2_header_picture_start
mpeg2_state_t mpeg2_header_picture_start(mpeg2dec_t *mpeg2dec)
mpeg2_set_fbuf
void mpeg2_set_fbuf(mpeg2dec_t *mpeg2dec, int b_type)
Definition: header.c:522
mpeg2_header_slice_start
mpeg2_state_t mpeg2_header_slice_start(mpeg2dec_t *mpeg2dec)
Definition: header.c:879
mpeg2_idct_copy_alpha
void mpeg2_idct_copy_alpha(int16_t *block, uint8_t *dest, int stride)
mpeg2_idct_add_alpha
void mpeg2_idct_add_alpha(int last, int16_t *block, uint8_t *dest, int stride)
mpeg2_header_gop
int mpeg2_header_gop(mpeg2dec_t *mpeg2dec)
Definition: header.c:498
mpeg2_seek_header
mpeg2_state_t mpeg2_seek_header(mpeg2dec_t *mpeg2dec)
Definition: decode.c:137
mpeg2_reset_info
void mpeg2_reset_info(mpeg2_info_t *info)
Definition: header.c:117
mpeg2_header_user_data
int mpeg2_header_user_data(mpeg2dec_t *mpeg2dec)
Definition: header.c:849
mpeg2_mc_fct
void mpeg2_mc_fct(uint8_t *, const uint8_t *, int, int)
Definition: mpeg2_internal.h:51
mpeg2_idct_alpha_init
void mpeg2_idct_alpha_init(void)
mpeg2_header_end
mpeg2_state_t mpeg2_header_end(mpeg2dec_t *mpeg2dec)
Definition: header.c:939
mpeg2_header_sequence_finalize
void mpeg2_header_sequence_finalize(mpeg2dec_t *mpeg2dec)
Definition: header.c:449
mpeg2_header_gop_finalize
void mpeg2_header_gop_finalize(mpeg2dec_t *mpeg2dec)
Definition: header.c:514
mpeg2_header_picture_finalize
void mpeg2_header_picture_finalize(mpeg2dec_t *mpeg2dec, uint32_t accels)
Definition: header.c:676
mpeg2_detect_accel
uint32_t mpeg2_detect_accel(uint32_t accel)
Definition: cpu_accel.c:252
mpeg2_mc_alpha
mpeg2_mc_t mpeg2_mc_alpha
cpu_state_t::dummy
int dummy
Definition: mpeg2_internal.h:225
fbuf_alloc_t
Definition: mpeg2_internal.h:151
fbuf_alloc_t::fbuf
mpeg2_fbuf_t fbuf
Definition: mpeg2_internal.h:152
motion_t
Definition: mpeg2_internal.h:53
mpeg2_decoder_s
Definition: mpeg2_internal.h:64
mpeg2_decoder_s::f_motion
motion_t f_motion
Definition: mpeg2_internal.h:90
mpeg2_decoder_s::DCTblock
int16_t DCTblock[64]
Definition: mpeg2_internal.h:97
mpeg2_decoder_s::mpeg1
int mpeg1
Definition: mpeg2_internal.h:148
mpeg2_decoder_s::limit_y_8
unsigned int limit_y_8
Definition: mpeg2_internal.h:83
mpeg2_decoder_s::v_offset
unsigned int v_offset
Definition: mpeg2_internal.h:105
mpeg2_decoder_s::bitstream_ptr
const uint8_t * bitstream_ptr
Definition: mpeg2_internal.h:71
mpeg2_decoder_s::bitstream_bits
int bitstream_bits
Definition: mpeg2_internal.h:70
mpeg2_decoder_s::offset
int offset
Definition: mpeg2_internal.h:75
mpeg2_decoder_s::stride
int stride
Definition: mpeg2_internal.h:76
mpeg2_decoder_s::convert_id
void * convert_id
Definition: mpeg2_internal.h:102
mpeg2_decoder_s::frame_pred_frame_dct
int frame_pred_frame_dct
Definition: mpeg2_internal.h:132
mpeg2_decoder_s::slice_stride
int slice_stride
Definition: mpeg2_internal.h:78
mpeg2_decoder_s::dc_dct_pred
int16_t dc_dct_pred[3]
Definition: mpeg2_internal.h:94
mpeg2_decoder_s::b_motion
motion_t b_motion
Definition: mpeg2_internal.h:89
mpeg2_decoder_s::quantizer_matrix
uint16_t * quantizer_matrix[4]
Definition: mpeg2_internal.h:110
mpeg2_decoder_s::motion_parser
motion_parser_t * motion_parser[5]
Definition: mpeg2_internal.h:91
mpeg2_decoder_s::second_field
int second_field
Definition: mpeg2_internal.h:146
mpeg2_decoder_s::dmv_offset
int dmv_offset
Definition: mpeg2_internal.h:104
mpeg2_decoder_s::picture_structure
int picture_structure
Definition: mpeg2_internal.h:130
mpeg2_decoder_s::intra_dc_precision
int intra_dc_precision
Definition: mpeg2_internal.h:128
mpeg2_decoder_s::quantizer_prescale
uint16_t quantizer_prescale[4][32][64]
Definition: mpeg2_internal.h:112
mpeg2_decoder_s::picture_dest
uint8_t * picture_dest[3]
Definition: mpeg2_internal.h:99
mpeg2_decoder_s::width
int width
Definition: mpeg2_internal.h:115
mpeg2_decoder_s::uv_stride
int uv_stride
Definition: mpeg2_internal.h:77
mpeg2_decoder_s::concealment_motion_vectors
int concealment_motion_vectors
Definition: mpeg2_internal.h:135
mpeg2_decoder_s::stride_frame
int stride_frame
Definition: mpeg2_internal.h:80
mpeg2_decoder_s::limit_x
unsigned int limit_x
Definition: mpeg2_internal.h:81
mpeg2_decoder_s::dest
uint8_t * dest[3]
Definition: mpeg2_internal.h:73
mpeg2_decoder_s::limit_y
unsigned int limit_y
Definition: mpeg2_internal.h:84
mpeg2_decoder_s::slice_uv_stride
int slice_uv_stride
Definition: mpeg2_internal.h:79
mpeg2_decoder_s::vertical_position_extension
int vertical_position_extension
Definition: mpeg2_internal.h:117
mpeg2_decoder_s::chroma_quantizer
uint16_t(*[2] chroma_quantizer)[64]
Definition: mpeg2_internal.h:111
mpeg2_decoder_s::intra_vlc_format
int intra_vlc_format
Definition: mpeg2_internal.h:137
mpeg2_decoder_s::bitstream_buf
uint32_t bitstream_buf
Definition: mpeg2_internal.h:69
mpeg2_decoder_s::convert
void(* convert)(void *convert_id, uint8_t *const *src, unsigned int v_offset)
Definition: mpeg2_internal.h:100
mpeg2_decoder_s::top_field_first
int top_field_first
Definition: mpeg2_internal.h:139
mpeg2_decoder_s::scan
const uint8_t * scan
Definition: mpeg2_internal.h:144
mpeg2_decoder_s::chroma_format
int chroma_format
Definition: mpeg2_internal.h:118
mpeg2_decoder_s::limit_y_16
unsigned int limit_y_16
Definition: mpeg2_internal.h:82
mpeg2_decoder_s::height
int height
Definition: mpeg2_internal.h:116
mpeg2_decoder_s::coding_type
int coding_type
Definition: mpeg2_internal.h:123
mpeg2_fbuf_s
Definition: mpeg2.h:97
mpeg2_gop_s
Definition: mpeg2.h:66
mpeg2_info_s
Definition: mpeg2.h:102
mpeg2_mc_t
Definition: mpeg2_internal.h:284
mpeg2_picture_s
Definition: mpeg2.h:87
mpeg2_sequence_s
Definition: mpeg2.h:44
mpeg2dec_s
Definition: mpeg2.h:29
mpeg2dec_s::picture
mpeg2_picture_t * picture
Definition: mpeg2_internal.h:194
mpeg2dec_s::tag_current
uint32_t tag_current
Definition: mpeg2_internal.h:176
mpeg2dec_s::convert_arg
void * convert_arg
Definition: mpeg2_internal.h:203
mpeg2dec_s::code
uint8_t code
Definition: mpeg2.h:52
mpeg2dec_s::new_quantizer_matrix
uint8_t new_quantizer_matrix[4][64]
Definition: mpeg2_internal.h:218
mpeg2dec_s::state
mpeg2_state_t state
Definition: mpeg2_internal.h:163
mpeg2dec_s::new_sequence
mpeg2_sequence_t new_sequence
Definition: mpeg2_internal.h:188
mpeg2dec_s::yuv_buf
uint8_t * yuv_buf[3][3]
Definition: mpeg2_internal.h:200
mpeg2dec_s::quantizer_matrix
uint8_t quantizer_matrix[4][64]
Definition: mpeg2_internal.h:217
mpeg2dec_s::sequence
mpeg2_sequence_t sequence
Definition: mpeg2_internal.h:189
mpeg2dec_s::num_tags
int num_tags
Definition: mpeg2_internal.h:177
mpeg2dec_s::bytes_since_tag
int bytes_since_tag
Definition: mpeg2_internal.h:178
mpeg2dec_s::decoder
mpeg2_decoder_t decoder
Definition: mpeg2_internal.h:156
mpeg2dec_s::custom_fbuf
int custom_fbuf
Definition: mpeg2_internal.h:198
mpeg2dec_s::action
mpeg2_state_t(* action)(struct mpeg2dec_s *mpeg2dec)
Definition: mpeg2_internal.h:162
mpeg2dec_s::display_offset_y
int16_t display_offset_y
Definition: mpeg2_internal.h:213
mpeg2dec_s::alloc_index
int alloc_index
Definition: mpeg2_internal.h:182
mpeg2dec_s::new_picture
mpeg2_picture_t new_picture
Definition: mpeg2_internal.h:192
mpeg2dec_s::alloc_index_user
int alloc_index_user
Definition: mpeg2_internal.h:181
mpeg2dec_s::new_gop
mpeg2_gop_t new_gop
Definition: mpeg2_internal.h:190
mpeg2dec_s::buf_end
uint8_t * buf_end
Definition: mpeg2_internal.h:211
mpeg2dec_s::shift
uint32_t shift
Definition: mpeg2.h:36
mpeg2dec_s::buf_start
uint8_t * buf_start
Definition: mpeg2_internal.h:210
mpeg2dec_s::convert_id_size
unsigned int convert_id_size
Definition: mpeg2_internal.h:204
mpeg2dec_s::chunk_start
uint8_t * chunk_start
Definition: mpeg2_internal.h:169
mpeg2dec_s::copy_matrix
int copy_matrix
Definition: mpeg2_internal.h:215
mpeg2dec_s::fbuf
mpeg2_fbuf_t * fbuf[3]
Definition: mpeg2_internal.h:195
mpeg2dec_s::gop
mpeg2_gop_t gop
Definition: mpeg2_internal.h:191
mpeg2dec_s::q_scale_type
int8_t q_scale_type
Definition: mpeg2_internal.h:216
mpeg2dec_s::tag2_previous
uint32_t tag2_previous
Definition: mpeg2_internal.h:176
mpeg2dec_s::yuv_index
int yuv_index
Definition: mpeg2_internal.h:201
mpeg2dec_s::tag2_current
uint32_t tag2_current
Definition: mpeg2_internal.h:176
mpeg2dec_s::convert_start
void(* convert_start)(void *id, const mpeg2_fbuf_t *fbuf, const mpeg2_picture_t *picture, const mpeg2_gop_t *gop)
Definition: mpeg2_internal.h:206
mpeg2dec_s::convert_stride
int convert_stride
Definition: mpeg2_internal.h:205
mpeg2dec_s::fbuf_alloc
fbuf_alloc_t fbuf_alloc[3]
Definition: mpeg2_internal.h:197
mpeg2dec_s::info
mpeg2_info_t info
Definition: mpeg2_internal.h:158
mpeg2dec_s::tag_previous
uint32_t tag_previous
Definition: mpeg2_internal.h:176
mpeg2dec_s::convert
mpeg2_convert_t * convert
Definition: mpeg2_internal.h:202
mpeg2dec_s::chunk_ptr
uint8_t * chunk_ptr
Definition: mpeg2.h:50
mpeg2dec_s::is_display_initialized
int is_display_initialized
Definition: mpeg2_internal.h:161
mpeg2dec_s::first_decode_slice
uint8_t first_decode_slice
Definition: mpeg2_internal.h:183
mpeg2dec_s::first
int first
Definition: mpeg2_internal.h:180
mpeg2dec_s::user_data_len
unsigned int user_data_len
Definition: mpeg2_internal.h:186
mpeg2dec_s::chunk_buffer
uint8_t * chunk_buffer
Definition: mpeg2.h:48
mpeg2dec_s::pictures
mpeg2_picture_t pictures[4]
Definition: mpeg2_internal.h:193
mpeg2dec_s::scaled
int8_t scaled[4]
Definition: mpeg2_internal.h:216
mpeg2dec_s::ext_state
uint32_t ext_state
Definition: mpeg2_internal.h:164
mpeg2dec_s::picture
struct picture_s * picture
Definition: mpeg2.h:34
mpeg2dec_s::display_offset_x
int16_t display_offset_x
Definition: mpeg2_internal.h:213
mpeg2dec_s::nb_decode_slices
uint8_t nb_decode_slices
Definition: mpeg2_internal.h:184