Lines Matching refs:ps_slice_hdr
721 slice_header_t *ps_slice_hdr, in ih264e_generate_slice_header() argument
732 …status |= ih264e_generate_nal_unit_header(ps_bitstrm, ps_slice_hdr->i1_nal_unit_type, ps_slice_hdr… in ih264e_generate_slice_header()
735 … PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u2_first_mb_in_slice, return_status, "first_mb_in_slice"); in ih264e_generate_slice_header()
738 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u1_slice_type, return_status, "slice_type"); in ih264e_generate_slice_header()
741 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u1_pps_id, return_status, "pic_parameter_set_id"); in ih264e_generate_slice_header()
744 …PUT_BITS(ps_bitstrm, ps_slice_hdr->i4_frame_num, ps_sps->i1_log2_max_frame_num, return_status, "fr… in ih264e_generate_slice_header()
749 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_field_pic_flag, 1, return_status, "field_pic_flag"); in ih264e_generate_slice_header()
751 if(ps_slice_hdr->i1_field_pic_flag) in ih264e_generate_slice_header()
754 … PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_bottom_field_flag, 1, return_status, "bottom_field_flag"); in ih264e_generate_slice_header()
758 if (ps_slice_hdr->i1_nal_unit_type == 5) in ih264e_generate_slice_header()
761 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u2_idr_pic_id, return_status, "u2_idr_pic_id"); in ih264e_generate_slice_header()
767 …PUT_BITS(ps_bitstrm, ps_slice_hdr->i4_pic_order_cnt_lsb, ps_sps->i1_log2_max_pic_order_cnt_lsb, re… in ih264e_generate_slice_header()
769 if(ps_pps->u1_pic_order_present_flag && !ps_slice_hdr->i1_field_pic_flag) in ih264e_generate_slice_header()
772 …PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i4_delta_pic_order_cnt_bottom, return_status, "delta_pic_or… in ih264e_generate_slice_header()
779 …PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->ai4_delta_pic_order_cnt[0], return_status, "delta_pic_order… in ih264e_generate_slice_header()
781 if (ps_pps->u1_pic_order_present_flag && !ps_slice_hdr->i1_field_pic_flag) in ih264e_generate_slice_header()
784 …PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->ai4_delta_pic_order_cnt[1], return_status, "delta_pic_order… in ih264e_generate_slice_header()
791 … PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u1_redundant_pic_cnt, return_status, "redundant_pic_cnt"); in ih264e_generate_slice_header()
794 if (ps_slice_hdr->u1_slice_type == BSLICE) in ih264e_generate_slice_header()
797 …PUT_BITS(ps_bitstrm, ps_slice_hdr->u1_direct_spatial_mv_pred_flag, 1, return_status, "direct_spati… in ih264e_generate_slice_header()
800 …if (ps_slice_hdr->u1_slice_type == PSLICE || ps_slice_hdr->u1_slice_type == SPSLICE || ps_slice_hd… in ih264e_generate_slice_header()
803 …PUT_BITS(ps_bitstrm, ps_slice_hdr->u1_num_ref_idx_active_override_flag, 1, return_status, "num_ref… in ih264e_generate_slice_header()
805 if (ps_slice_hdr->u1_num_ref_idx_active_override_flag) in ih264e_generate_slice_header()
808 …PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_num_ref_idx_l0_active - 1, return_status, "num_ref_idx_l… in ih264e_generate_slice_header()
810 if (ps_slice_hdr->u1_slice_type == BSLICE) in ih264e_generate_slice_header()
813 …PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_num_ref_idx_l1_active - 1, return_status, "num_ref_idx_l… in ih264e_generate_slice_header()
820 if ((ps_slice_hdr->u1_slice_type != ISLICE) && (ps_slice_hdr->u1_slice_type != SISLICE)) in ih264e_generate_slice_header()
823 …PUT_BITS(ps_bitstrm, ps_slice_hdr->u1_ref_idx_reordering_flag_l0, 1, return_status, "ref_pic_list_… in ih264e_generate_slice_header()
825 if (ps_slice_hdr->u1_ref_idx_reordering_flag_l0) in ih264e_generate_slice_header()
831 if (ps_slice_hdr->u1_slice_type == BSLICE) in ih264e_generate_slice_header()
834 …PUT_BITS(ps_bitstrm, ps_slice_hdr->u1_ref_idx_reordering_flag_l1, 1, return_status, "ref_pic_list_… in ih264e_generate_slice_header()
836 if (ps_slice_hdr->u1_ref_idx_reordering_flag_l1) in ih264e_generate_slice_header()
843 … (ps_slice_hdr->u1_slice_type == PSLICE || ps_slice_hdr->u1_slice_type == SPSLICE)) || in ih264e_generate_slice_header()
844 (ps_slice_hdr->u1_slice_type == BSLICE && ps_pps->i1_weighted_bipred_idc == 1)) in ih264e_generate_slice_header()
850 if (ps_slice_hdr->i1_nal_unit_idc != 0) in ih264e_generate_slice_header()
852 if (ps_slice_hdr->i1_nal_unit_type == 5) in ih264e_generate_slice_header()
855 …PUT_BITS(ps_bitstrm, ps_slice_hdr->u1_no_output_of_prior_pics_flag , 1, return_status, "no_output_… in ih264e_generate_slice_header()
858 …PUT_BITS(ps_bitstrm, ps_slice_hdr->u1_long_term_reference_flag , 1, return_status, "long_term_refe… in ih264e_generate_slice_header()
863 …PUT_BITS(ps_bitstrm, ps_slice_hdr->u1_adaptive_ref_pic_marking_mode_flag , 1, return_status, "adap… in ih264e_generate_slice_header()
865 if (ps_slice_hdr->u1_adaptive_ref_pic_marking_mode_flag) in ih264e_generate_slice_header()
873 if (ps_slice_hdr->u1_entropy_coding_mode_flag && ps_slice_hdr->u1_slice_type != ISLICE && in ih264e_generate_slice_header()
874 ps_slice_hdr->u1_slice_type != SISLICE) in ih264e_generate_slice_header()
877 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_cabac_init_idc, return_status, "cabac_init_idc"); in ih264e_generate_slice_header()
881 …PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i1_slice_qp - ps_pps->i1_pic_init_qp, return_status, "slice… in ih264e_generate_slice_header()
883 if (ps_slice_hdr->u1_slice_type == SPSLICE || ps_slice_hdr->u1_slice_type == SISLICE) in ih264e_generate_slice_header()
885 if (ps_slice_hdr->u1_slice_type == SPSLICE) in ih264e_generate_slice_header()
888 …PUT_BITS(ps_bitstrm, ps_slice_hdr->u1_sp_for_switch_flag , 1, return_status, "sp_for_switch_flag"); in ih264e_generate_slice_header()
891 …PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->u1_slice_qs - ps_pps->i1_pic_init_qs, return_status, "slice… in ih264e_generate_slice_header()
897 …PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u1_disable_deblocking_filter_idc, return_status, "disable_d… in ih264e_generate_slice_header()
899 if(ps_slice_hdr->u1_disable_deblocking_filter_idc != 1) in ih264e_generate_slice_header()
902 …PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i1_slice_alpha_c0_offset_div2, return_status, "slice_alpha_… in ih264e_generate_slice_header()
905 …PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i1_slice_beta_offset_div2, return_status, "slice_beta_offse… in ih264e_generate_slice_header()
909 if (ps_slice_hdr->u1_num_slice_groups_minus1 > 0 && in ih264e_generate_slice_header()
1268 slice_header_t *ps_slice_hdr, in ih264e_populate_slice_header() argument
1279 ps_slice_hdr->i1_nal_unit_idc = 3; in ih264e_populate_slice_header()
1283 ps_slice_hdr->i1_nal_unit_idc = 0; in ih264e_populate_slice_header()
1287 ps_slice_hdr->u2_first_mb_in_slice = ps_entropy->i4_mb_start_add; in ih264e_populate_slice_header()
1290 ps_slice_hdr->u1_slice_type = ps_proc->i4_slice_type; in ih264e_populate_slice_header()
1293 ps_slice_hdr->u1_pps_id = ps_pps->u1_pps_id; in ih264e_populate_slice_header()
1299 ps_slice_hdr->i4_frame_num = ps_proc->i4_frame_num; in ih264e_populate_slice_header()
1304 ps_slice_hdr->i1_field_pic_flag = 0; in ih264e_populate_slice_header()
1306 if (ps_slice_hdr->i1_field_pic_flag) in ih264e_populate_slice_header()
1308 ps_slice_hdr->i1_bottom_field_flag = 0; in ih264e_populate_slice_header()
1315 ps_slice_hdr->u2_idr_pic_id = ps_proc->u4_idr_pic_id; in ih264e_populate_slice_header()
1316 ps_slice_hdr->i1_nal_unit_type = 5; in ih264e_populate_slice_header()
1320 ps_slice_hdr->i1_nal_unit_type = 1; in ih264e_populate_slice_header()
1329 ps_slice_hdr->i4_pic_order_cnt_lsb = i4_poc; in ih264e_populate_slice_header()
1350 ps_slice_hdr->u1_direct_spatial_mv_pred_flag = 1; in ih264e_populate_slice_header()
1356 ps_slice_hdr->u1_num_ref_idx_active_override_flag = 0; in ih264e_populate_slice_header()
1358 if (ps_slice_hdr->u1_num_ref_idx_active_override_flag) in ih264e_populate_slice_header()
1375 ps_slice_hdr->u1_ref_idx_reordering_flag_l0 = 0; in ih264e_populate_slice_header()
1377 if (ps_slice_hdr->u1_ref_idx_reordering_flag_l0) in ih264e_populate_slice_header()
1383 ps_slice_hdr->u1_ref_idx_reordering_flag_l1 = 0; in ih264e_populate_slice_header()
1385 if (ps_slice_hdr->u1_ref_idx_reordering_flag_l1) in ih264e_populate_slice_header()
1403 if (ps_slice_hdr->i1_nal_unit_idc != 0) in ih264e_populate_slice_header()
1405 if (ps_slice_hdr->i1_nal_unit_type == 5) in ih264e_populate_slice_header()
1408 ps_slice_hdr->u1_no_output_of_prior_pics_flag = 0; in ih264e_populate_slice_header()
1411 ps_slice_hdr->u1_long_term_reference_flag = 0; in ih264e_populate_slice_header()
1416 ps_slice_hdr->u1_adaptive_ref_pic_marking_mode_flag = 0; in ih264e_populate_slice_header()
1418 if (ps_slice_hdr->u1_adaptive_ref_pic_marking_mode_flag) in ih264e_populate_slice_header()
1427 ps_slice_hdr->u1_entropy_coding_mode_flag = ps_entropy->u1_entropy_coding_mode_flag; in ih264e_populate_slice_header()
1429 if (ps_slice_hdr->u1_entropy_coding_mode_flag && ps_proc->i4_slice_type != ISLICE && in ih264e_populate_slice_header()
1436 ps_slice_hdr->i1_slice_qp = ps_proc->u4_frame_qp; in ih264e_populate_slice_header()
1450 ps_slice_hdr->u1_disable_deblocking_filter_idc = ps_proc->u4_disable_deblock_level; in ih264e_populate_slice_header()
1452 if (ps_slice_hdr->u1_disable_deblocking_filter_idc != 1) in ih264e_populate_slice_header()
1455 ps_slice_hdr->i1_slice_alpha_c0_offset_div2 = 0; in ih264e_populate_slice_header()
1458 ps_slice_hdr->i1_slice_beta_offset_div2 = 0; in ih264e_populate_slice_header()
1461 ps_slice_hdr->u1_num_slice_groups_minus1 = 0; in ih264e_populate_slice_header()
1462 if(ps_slice_hdr->u1_num_slice_groups_minus1 > 0 && in ih264e_populate_slice_header()
1471 ps_slice_hdr->i1_cabac_init_idc = CABAC_INIT_IDC; in ih264e_populate_slice_header()