Lines Matching refs:ps_lap_out
668 void ref_pics_weight_offset_calc(ihevce_lap_output_params_t *ps_lap_out, lap_struct_t *ps_lap_struc… in ref_pics_weight_offset_calc() argument
676 ps_lap_out->i4_log2_luma_wght_denom = DENOM_DEFAULT; in ref_pics_weight_offset_calc()
677 ps_lap_out->i4_log2_chroma_wght_denom = DENOM_DEFAULT; in ref_pics_weight_offset_calc()
684 ai4_delta_poc[i] = ref_poc_array[i] - ps_lap_out->i4_poc; in ref_pics_weight_offset_calc()
701 ref_poc_arr_sort[i] = ai4_delta_poc[i] + ps_lap_out->i4_poc; in ref_pics_weight_offset_calc()
706 ps_lap_out->as_ref_pics[i].i4_ref_pic_delta_poc = ref_poc_arr_sort[i] - ps_lap_out->i4_poc; in ref_pics_weight_offset_calc()
707 ASSERT(ps_lap_out->as_ref_pics[i].i4_ref_pic_delta_poc); in ref_pics_weight_offset_calc()
710 ps_lap_out->as_ref_pics[i].i4_used_by_cur_pic_flag = gau1_use_by_cur_pic_flag[i]; in ref_pics_weight_offset_calc()
713 ps_lap_out->as_ref_pics[i].i4_num_duplicate_entries_in_ref_list = 1; in ref_pics_weight_offset_calc()
727 ihevce_lap_output_params_t *ps_lap_out = &ps_lap_inp->s_lap_out; in ref_b_pic_population() local
735 ps_lap_out->i4_poc = ps_lap_struct->pi4_encode_poc_ptr[0]; in ref_b_pic_population()
736 ps_lap_out->i4_idr_gop_num = ps_lap_struct->i4_idr_gop_num; in ref_b_pic_population()
737 ps_lap_out->i4_assoc_IRAP_poc = ps_lap_struct->i4_assoc_IRAP_poc; in ref_b_pic_population()
738 ps_lap_out->i4_temporal_lyr_id = curr_layer; in ref_b_pic_population()
739 ps_lap_out->i4_pic_type = IV_B_FRAME; in ref_b_pic_population()
741 if((ps_lap_out->i4_poc > ps_lap_struct->i4_cra_poc) && in ref_b_pic_population()
748 ps_lap_out->i4_num_ref_pics = ps_lap_struct->i4_curr_ref_pics; in ref_b_pic_population()
751 ps_lap_out->i4_is_ref_pic = 1; in ref_b_pic_population()
760 if(ps_lap_out->i4_temporal_lyr_id == max_temporal_layers) in ref_b_pic_population()
763 ps_lap_out->i4_is_ref_pic = 0; in ref_b_pic_population()
765 ps_lap_out->i4_is_ref_pic = 2; in ref_b_pic_population()
771 if(ps_lap_out->i4_temporal_lyr_id >= max_temporal_layers) in ref_b_pic_population()
773 ps_lap_out->i4_temporal_lyr_id = max_temporal_layers; in ref_b_pic_population()
774 ps_lap_out->i4_is_ref_pic = 0; in ref_b_pic_population()
778 ref_pics_weight_offset_calc(ps_lap_out, ps_lap_struct); in ref_b_pic_population()
784 if(ps_lap_out->i4_is_ref_pic) in ref_b_pic_population()
808 WORD32 ref = ps_lap_out->i4_poc; in ref_b_pic_population()
809 if(ps_lap_out->i4_is_ref_pic && ref > *p_ref_poc_array) in ref_b_pic_population()
826 ihevce_lap_output_params_t *ps_lap_out = &ps_lap_inp->s_lap_out; in ref_pic_population() local
832 ps_lap_out->i4_poc = ps_lap_struct->pi4_encode_poc_ptr[0]; in ref_pic_population()
835 if((ps_lap_out->i4_poc > ps_lap_struct->i4_cra_poc) && in ref_pic_population()
843 if(IV_IDR_FRAME == ps_lap_out->i4_pic_type) in ref_pic_population()
847 ps_lap_out->i4_num_ref_pics = 0; in ref_pic_population()
849 ps_lap_struct->i4_cra_poc = ps_lap_out->i4_poc; in ref_pic_population()
853 else if(IV_I_FRAME == ps_lap_out->i4_pic_type) in ref_pic_population()
856 if((1 == ps_lap_struct->i4_cra_i_pic_flag) && ps_lap_out->i4_is_cra_pic) in ref_pic_population()
859 ps_lap_out->i4_num_ref_pics = 0; in ref_pic_population()
861 ps_lap_struct->i4_cra_poc = ps_lap_out->i4_poc; in ref_pic_population()
862 ps_lap_struct->i4_cra_i_pic_flag = ps_lap_out->i4_is_cra_pic; in ref_pic_population()
864 else if(IV_P_FRAME == ps_lap_out->i4_pic_type) in ref_pic_population()
874 if(ps_lap_out->i4_pic_type == IV_IDR_FRAME || in ref_pic_population()
875 (ps_lap_out->i4_pic_type == IV_I_FRAME && ps_lap_out->i4_is_cra_pic)) in ref_pic_population()
877 ps_lap_struct->i4_assoc_IRAP_poc = ps_lap_out->i4_poc; in ref_pic_population()
881 ps_lap_out->i4_idr_gop_num = ps_lap_struct->i4_idr_gop_num; in ref_pic_population()
882 ps_lap_out->i4_is_ref_pic = 1; in ref_pic_population()
883 ps_lap_out->i4_assoc_IRAP_poc = ps_lap_struct->i4_assoc_IRAP_poc; in ref_pic_population()
886 ps_lap_out->i4_num_ref_pics = ps_lap_struct->i4_curr_ref_pics; in ref_pic_population()
889 ps_lap_out->i4_temporal_lyr_id = 0; in ref_pic_population()
891 ref_pics_weight_offset_calc(ps_lap_out, ps_lap_struct); in ref_pic_population()
895 if(ps_lap_out->i4_is_ref_pic) in ref_pic_population()
924 WORD32 ref = ps_lap_out->i4_poc; in ref_pic_population()
926 if(ps_lap_out->i4_is_ref_pic && ref > *p_ref_poc_array) in ref_pic_population()
1378 ihevce_lap_output_params_t *ps_lap_out = &ps_lap_out_buf->s_lap_out; in rc_update_model_control_by_lap_for_modified_sub_gop() local
1381 if(ps_lap_out->i4_pic_type == IV_P_FRAME) in rc_update_model_control_by_lap_for_modified_sub_gop()
1386 for(i4_loop = 0; i4_loop < ps_lap_out->i4_num_ref_pics; i4_loop++) in rc_update_model_control_by_lap_for_modified_sub_gop()
1388 if(i4_min_delta_poc > ABS(ps_lap_out->as_ref_pics[i4_loop].i4_ref_pic_delta_poc)) in rc_update_model_control_by_lap_for_modified_sub_gop()
1390 i4_min_delta_poc = ABS(ps_lap_out->as_ref_pics[i4_loop].i4_ref_pic_delta_poc); in rc_update_model_control_by_lap_for_modified_sub_gop()
1395 if(ps_lap_out->i4_pic_type == IV_B_FRAME) in rc_update_model_control_by_lap_for_modified_sub_gop()
1401 (ps_lap_out->i4_temporal_lyr_id + 1); in rc_update_model_control_by_lap_for_modified_sub_gop()
1403 for(i4_loop = 0; i4_loop < ps_lap_out->i4_num_ref_pics; i4_loop++) in rc_update_model_control_by_lap_for_modified_sub_gop()
1405 if(i4_min_delta_poc > ABS(ps_lap_out->as_ref_pics[i4_loop].i4_ref_pic_delta_poc)) in rc_update_model_control_by_lap_for_modified_sub_gop()
1407 i4_min_delta_poc = ABS(ps_lap_out->as_ref_pics[i4_loop].i4_ref_pic_delta_poc); in rc_update_model_control_by_lap_for_modified_sub_gop()