Home | History | Annotate | Download | only in decoder

Lines Matching refs:ps_stream

60     stream_t *ps_stream;
61 ps_stream = &ps_dec->s_bit_stream;
62 impeg2d_bit_stream_flush_to_byte_boundary(ps_stream);
64 while ((impeg2d_bit_stream_nxt(ps_stream,START_CODE_PREFIX_LEN) != START_CODE_PREFIX)
67 impeg2d_bit_stream_get(ps_stream,8);
83 stream_t *ps_stream;
84 ps_stream = &ps_dec->s_bit_stream;
85 impeg2d_bit_stream_flush_to_byte_boundary(ps_stream);
87 while ((impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN) != u4_start_code_val) &&
91 if (impeg2d_bit_stream_get(ps_stream,8) != 0)
111 stream_t *ps_stream;
112 ps_stream = &ps_dec->s_bit_stream;
113 impeg2d_bit_stream_flush_to_byte_boundary(ps_stream);
115 while ((impeg2d_bit_stream_nxt(ps_stream,START_CODE_PREFIX_LEN) != START_CODE_PREFIX)
118 impeg2d_bit_stream_get(ps_stream,8);
135 stream_t *ps_stream;
136 ps_stream = &ps_dec->s_bit_stream;
140 if (impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN) != SEQUENCE_HEADER_CODE)
142 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
146 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
148 u2_width = impeg2d_bit_stream_get(ps_stream,12);
149 u2_height = impeg2d_bit_stream_get(ps_stream,12);
196 ps_dec->u2_aspect_ratio_info = impeg2d_bit_stream_get(ps_stream,4);
201 ps_dec->u2_frame_rate_code = impeg2d_bit_stream_get(ps_stream,4);
206 impeg2d_bit_stream_flush(ps_stream,18);
207 GET_MARKER_BIT(ps_dec,ps_stream);
212 impeg2d_bit_stream_flush(ps_stream,11);
217 if(impeg2d_bit_stream_get_bit(ps_stream) == 1)
222 ps_dec->au1_intra_quant_matrix[gau1_impeg2_inv_scan_zig_zag[i]] = (UWORD8)impeg2d_bit_stream_get(ps_stream,8);
235 if(impeg2d_bit_stream_get_bit(ps_stream) == 1)
240 ps_dec->au1_inter_quant_matrix[gau1_impeg2_inv_scan_zig_zag[i]] = (UWORD8)impeg2d_bit_stream_get(ps_stream,8);
266 stream_t *ps_stream;
268 ps_stream = &ps_dec->s_bit_stream;
270 if (impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN) != EXTENSION_START_CODE)
272 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
277 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
280 impeg2d_bit_stream_flush(ps_stream,4);
294 u4_esc_bit = impeg2d_bit_stream_get_bit(ps_stream);
295 u4_profile = impeg2d_bit_stream_get(ps_stream,3);
296 u4_level = impeg2d_bit_stream_get(ps_stream,4);
310 ps_dec->u2_progressive_sequence = impeg2d_bit_stream_get_bit(ps_stream);
313 if(impeg2d_bit_stream_get(ps_stream,2) != 0x1)
317 ps_dec->u2_horizontal_size += (impeg2d_bit_stream_get(ps_stream,2) << 12);
320 ps_dec->u2_vertical_size += (impeg2d_bit_stream_get(ps_stream,2) << 12);
329 impeg2d_bit_stream_flush(ps_stream,12);
330 GET_MARKER_BIT(ps_dec,ps_stream);
331 impeg2d_bit_stream_flush(ps_stream,9);
336 ps_dec->u2_frame_rate_extension_n = impeg2d_bit_stream_get(ps_stream,2);
337 ps_dec->u2_frame_rate_extension_d = impeg2d_bit_stream_get(ps_stream,5);
356 stream_t *ps_stream;
357 ps_stream = &ps_dec->s_bit_stream;
378 impeg2d_bit_stream_get(ps_stream, 4);
379 ps_dec->u1_video_format = impeg2d_bit_stream_get(ps_stream, 3);
380 ps_dec->u1_colour_description = impeg2d_bit_stream_get(ps_stream, 1);
386 ps_dec->u1_colour_primaries = impeg2d_bit_stream_get(ps_stream, 8);
387 ps_dec->u1_transfer_characteristics = impeg2d_bit_stream_get(ps_stream, 8);
388 ps_dec->u1_matrix_coefficients = impeg2d_bit_stream_get(ps_stream, 8);
392 ps_dec->u2_display_horizontal_size = impeg2d_bit_stream_get(ps_stream,14);;
393 GET_MARKER_BIT(ps_dec,ps_stream);
394 ps_dec->u2_display_vertical_size = impeg2d_bit_stream_get(ps_stream,14);
430 stream_t *ps_stream;
432 ps_stream = &ps_dec->s_bit_stream;
434 impeg2d_bit_stream_flush(ps_stream,4);
439 if(impeg2d_bit_stream_get(ps_stream,1) == 1)
444 ps_dec->au1_intra_quant_matrix[gau1_impeg2_inv_scan_zig_zag[i]] = (UWORD8)impeg2d_bit_stream_get(ps_stream,8);
453 if(impeg2d_bit_stream_get(ps_stream,1) == 1)
458 ps_dec->au1_inter_quant_matrix[gau1_impeg2_inv_scan_zig_zag[i]] = (UWORD8)impeg2d_bit_stream_get(ps_stream,8);
482 stream_t *ps_stream;
484 ps_stream = &ps_dec->s_bit_stream;
485 impeg2d_bit_stream_flush(ps_stream,4);
501 impeg2d_bit_stream_get(ps_stream,16);
502 GET_MARKER_BIT(ps_dec,ps_stream);
504 impeg2d_bit_stream_get(ps_stream,16);
505 GET_MARKER_BIT(ps_dec,ps_stream);
637 stream_t *ps_stream;
638 ps_stream = &ps_dec->s_bit_stream;
640 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
642 impeg2d_bit_stream_get(ps_stream,10);
645 ps_dec->e_pic_type = (e_pic_type_t)impeg2d_bit_stream_get(ps_stream,3);
653 impeg2d_bit_stream_get(ps_stream,16);
657 ps_dec->u2_full_pel_forw_vector = impeg2d_bit_stream_get_bit(ps_stream);
658 ps_dec->u2_forw_f_code = impeg2d_bit_stream_get(ps_stream,3);
662 ps_dec->u2_full_pel_back_vector = impeg2d_bit_stream_get_bit(ps_stream);
663 ps_dec->u2_back_f_code = impeg2d_bit_stream_get(ps_stream,3);
682 while (impeg2d_bit_stream_nxt(ps_stream,1) == 1 &&
683 ps_stream->u4_offset < ps_stream->u4_max_offset)
685 impeg2d_bit_stream_get(ps_stream,9);
687 impeg2d_bit_stream_get_bit(ps_stream);
707 stream_t *ps_stream;
709 ps_stream = &ps_dec->s_bit_stream;
710 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
712 impeg2d_bit_stream_get(ps_stream,4);
714 ps_dec->au2_f_code[0][0] = impeg2d_bit_stream_get(ps_stream,4);
715 ps_dec->au2_f_code[0][1] = impeg2d_bit_stream_get(ps_stream,4);
716 ps_dec->au2_f_code[1][0] = impeg2d_bit_stream_get(ps_stream,4);
717 ps_dec->au2_f_code[1][1] = impeg2d_bit_stream_get(ps_stream,4);
718 ps_dec->u2_intra_dc_precision = impeg2d_bit_stream_get(ps_stream,2);
719 ps_dec->u2_picture_structure = impeg2d_bit_stream_get(ps_stream,2);
720 ps_dec->u2_top_field_first = impeg2d_bit_stream_get_bit(ps_stream);
721 ps_dec->u2_frame_pred_frame_dct = impeg2d_bit_stream_get_bit(ps_stream);
722 ps_dec->u2_concealment_motion_vectors = impeg2d_bit_stream_get_bit(ps_stream);
723 ps_dec->u2_q_scale_type = impeg2d_bit_stream_get_bit(ps_stream);
724 ps_dec->u2_intra_vlc_format = impeg2d_bit_stream_get_bit(ps_stream);
725 ps_dec->u2_alternate_scan = impeg2d_bit_stream_get_bit(ps_stream);
726 ps_dec->u2_repeat_first_field = impeg2d_bit_stream_get_bit(ps_stream);
728 impeg2d_bit_stream_get_bit(ps_stream);
730 ps_dec->u2_progressive_frame = impeg2d_bit_stream_get_bit(ps_stream);
731 if (impeg2d_bit_stream_get_bit(ps_stream))
734 impeg2d_bit_stream_flush(ps_stream,20);
763 stream_t *ps_stream;
768 ps_stream = &ps_dec->s_bit_stream;
777 impeg2d_bit_stream_flush(ps_stream,START_CODE_PREFIX_LEN);
778 u4_slice_vertical_position = impeg2d_bit_stream_get(ps_stream, 8);
781 u4_slice_vertical_position_extension = impeg2d_bit_stream_get(ps_stream, 3);
805 u2_quant_scale_code = impeg2d_bit_stream_get(ps_stream,5);
810 if (impeg2d_bit_stream_nxt(ps_stream,1) == 1)
812 impeg2d_bit_stream_flush(ps_stream,9);
814 while (impeg2d_bit_stream_nxt(ps_stream,1) == 1 &&
815 ps_stream->u4_offset < ps_stream->u4_max_offset)
817 impeg2d_bit_stream_flush(ps_stream,9);
820 impeg2d_bit_stream_get_bit(ps_stream);
1382 stream_t *ps_stream;
1384 ps_stream = &ps_dec->s_bit_stream;
1385 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1388 (ps_stream->u4_offset < ps_stream->u4_max_offset))
1390 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
1391 while(impeg2d_bit_stream_nxt(ps_stream,START_CODE_PREFIX_LEN) != START_CODE_PREFIX &&
1392 (ps_stream->u4_offset < ps_stream->u4_max_offset))
1394 impeg2d_bit_stream_flush(ps_stream,8);
1396 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1413 stream_t *ps_stream;
1415 ps_stream = &ps_dec->s_bit_stream;
1416 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1420 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
1421 while((impeg2d_bit_stream_nxt(ps_stream,START_CODE_PREFIX_LEN) != START_CODE_PREFIX) &&
1422 (ps_stream->u4_offset < ps_stream->u4_max_offset))
1424 impeg2d_bit_stream_flush(ps_stream,8);
1426 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1442 stream_t *ps_stream;
1448 ps_stream = &ps_dec->s_bit_stream;
1449 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1453 (ps_stream->u4_offset < ps_stream->u4_max_offset))
1461 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
1462 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,EXT_ID_LEN);
1473 impeg2d_bit_stream_flush(ps_stream,EXT_ID_LEN);
1478 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1495 stream_t *ps_stream;
1501 ps_stream = &ps_dec->s_bit_stream;
1502 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1506 (ps_stream->u4_offset < ps_stream->u4_max_offset))
1514 impeg2d_bit_stream_flush(ps_stream,START_CODE_LEN);
1515 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,EXT_ID_LEN);
1539 impeg2d_bit_stream_flush(ps_stream,EXT_ID_LEN);
1544 u4_start_code = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1562 stream_t *ps_stream;
1563 ps_stream = &ps_dec->s_bit_stream;
1579 if (impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN) == EXTENSION_START_CODE)
1627 stream_t *ps_stream;
1631 ps_stream = &ps_dec->s_bit_stream;
1641 u4_next_bits = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1738 u4_next_bits = impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN);
1740 if(impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN) == SEQUENCE_HEADER_CODE)
1764 else if ((impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN) == GOP_START_CODE)
1771 else if ((impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN) == PICTURE_START_CODE)