Lines Matching defs:sliceHdr
32 AVCSliceHeader *sliceHdr = video->sliceHdr;
45 library supports in seqParam, picParam and sliceHdr structures and
474 sliceHdr->disable_deblocking_filter_idc = encParam->disable_db_idc;
480 sliceHdr->slice_alpha_c0_offset_div2 = encParam->alpha_offset;
486 sliceHdr->slice_beta_offset_div_2 = encParam->beta_offset;
490 sliceHdr->idr_pic_id = 0;
494 sliceHdr->idr_pic_id = (uint)(-1); /* start with zero */
496 sliceHdr->field_pic_flag = FALSE;
497 sliceHdr->bottom_field_flag = FALSE; /* won't be used anyway */
498 video->MbaffFrameFlag = (seqParam->mb_adaptive_frame_field_flag && !sliceHdr->field_pic_flag);
708 AVCSliceHeader *sliceHdr = video->sliceHdr;
749 sliceHdr->frame_num = 0;
757 sliceHdr->frame_num = (video->PrevRefFrameNum + 1) % video->MaxFrameNum;
759 video->CurrPicNum = sliceHdr->frame_num; /* for field_pic_flag = 0 */
760 //video->CurrPicNum = 2*sliceHdr->frame_num + 1; /* for field_pic_flag = 1 */
779 video->currFS->FrameNum = video->sliceHdr->frame_num;
805 AVCSliceHeader *sliceHdr = video->sliceHdr;
810 sliceHdr->first_mb_in_slice = video->mbNum;
813 video->sliceHdr->slice_type = (AVCSliceType)slice_type;
816 /* sliceHdr->slice_type already set in InitFrame */
818 sliceHdr->pic_parameter_set_id = video->currPicParams->pic_parameter_set_id;
820 /* sliceHdr->frame_num already set in InitFrame */
824 sliceHdr->field_pic_flag = sliceHdr->bottom_field_flag = FALSE;
828 /* sliceHdr->idr_pic_id already set in PVAVCEncodeNAL
830 sliceHdr->pic_order_cnt_lsb already set in InitFrame..InitPOC
831 sliceHdr->delta_pic_order_cnt_bottom already set in InitPOC
833 sliceHdr->delta_pic_order_cnt[0] already set in InitPOC
834 sliceHdr->delta_pic_order_cnt[1] already set in InitPOC
837 sliceHdr->redundant_pic_cnt = 0; /* default if(currPPS->redundant_pic_cnt_present_flag), range 0..127 */
838 sliceHdr->direct_spatial_mv_pred_flag = 0; // default if(slice_type == AVC_B_SLICE)
840 sliceHdr->num_ref_idx_active_override_flag = FALSE; /* default, if(slice_type== P,SP or B)*/
841 sliceHdr->num_ref_idx_l0_active_minus1 = 0; /* default, if (num_ref_idx_active_override_flag) */
842 sliceHdr->num_ref_idx_l1_active_minus1 = 0; /* default, if above and B_slice */
846 sliceHdr->ref_pic_list_reordering_flag_l0 = FALSE; /* default */
847 sliceHdr->ref_pic_list_reordering_flag_l1 = FALSE; /* default */
858 sliceHdr->no_output_of_prior_pics_flag = FALSE; /* default */
859 sliceHdr->long_term_reference_flag = FALSE; /* for IDR frame, do not make it long term */
860 sliceHdr->adaptive_ref_pic_marking_mode_flag = FALSE; /* default */
863 sliceHdr->cabac_init_idc = 0; /* default, if entropy_coding_mode_flag && slice_type==I or SI, range 0..2 */
864 sliceHdr->slice_qp_delta = 0; /* default for now */
865 sliceHdr->sp_for_switch_flag = FALSE; /* default, if slice_type == SP */
866 sliceHdr->slice_qs_delta = 0; /* default, if slice_type == SP or SI */
873 video->FilterOffsetA = sliceHdr->slice_alpha_c0_offset_div2 << 1;
874 video->FilterOffsetB = sliceHdr->slice_beta_offset_div_2 << 1;
883 sliceHdr->slice_group_change_cycle = SLICE_GROUP_CHANGE_CYCLE; /* default, don't understand how to set it!!!*/
886 AVC_MIN(sliceHdr->slice_group_change_cycle * video->SliceGroupChangeRate, video->PicSizeInMapUnits);
894 sliceHdr->slice_qp_delta = video->QPy - 26 - currPPS->pic_init_qp_minus26;
895 //sliceHdr->slice_qs_delta = video->QSy - 26 - currPPS->pic_init_qs_minus26;