• Home
  • Raw
  • Download

Lines Matching refs:ps_curr_inp

527     ihevce_lap_enc_buf_t *ps_curr_inp,  in ihevce_pre_enc_manage_ref_pics()  argument
539 WORD32 cra_poc = ps_curr_inp->s_lap_out.i4_assoc_IRAP_poc; in ihevce_pre_enc_manage_ref_pics()
546 curr_poc = ps_curr_inp->s_lap_out.i4_poc; in ihevce_pre_enc_manage_ref_pics()
549 ASSERT(HEVCE_MAX_REF_PICS >= ps_curr_inp->s_lap_out.i4_num_ref_pics); in ihevce_pre_enc_manage_ref_pics()
557 wp_flag = ps_curr_inp->s_lap_out.i1_weighted_bipred_flag; in ihevce_pre_enc_manage_ref_pics()
561 wp_flag = ps_curr_inp->s_lap_out.i1_weighted_pred_flag; in ihevce_pre_enc_manage_ref_pics()
582 for(ref_pics = 0; ref_pics < ps_curr_inp->s_lap_out.i4_num_ref_pics; ref_pics++) in ihevce_pre_enc_manage_ref_pics()
588 ref_poc = curr_poc + ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_ref_pic_delta_poc; in ihevce_pre_enc_manage_ref_pics()
611 while(i4_loop != ps_curr_inp->s_lap_out.as_ref_pics[ref_pics] in ihevce_pre_enc_manage_ref_pics()
627 &ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].as_wght_off[0], in ihevce_pre_enc_manage_ref_pics()
633 ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_used_by_cur_pic_flag; in ihevce_pre_enc_manage_ref_pics()
638 while(i4_loop != ps_curr_inp->s_lap_out.as_ref_pics[ref_pics] in ihevce_pre_enc_manage_ref_pics()
646 &ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].as_wght_off[i4_loop], in ihevce_pre_enc_manage_ref_pics()
652 ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_used_by_cur_pic_flag; in ihevce_pre_enc_manage_ref_pics()
668 while(i4_loop != ps_curr_inp->s_lap_out.as_ref_pics[ref_pics] in ihevce_pre_enc_manage_ref_pics()
684 &ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].as_wght_off[0], in ihevce_pre_enc_manage_ref_pics()
690 ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_used_by_cur_pic_flag; in ihevce_pre_enc_manage_ref_pics()
695 while(i4_loop != ps_curr_inp->s_lap_out.as_ref_pics[ref_pics] in ihevce_pre_enc_manage_ref_pics()
703 &ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].as_wght_off[i4_loop], in ihevce_pre_enc_manage_ref_pics()
709 ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_used_by_cur_pic_flag; in ihevce_pre_enc_manage_ref_pics()
837 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_pre_enc_manage_ref_pics()
900 (1 << ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom); in ihevce_pre_enc_manage_ref_pics()
918 (1 << ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom); in ihevce_pre_enc_manage_ref_pics()
947 if(ps_curr_inp->s_lap_out.i4_quality_preset >= IHEVCE_QUALITY_P3) in ihevce_pre_enc_manage_ref_pics()
949 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_pre_enc_manage_ref_pics()
951 if(IHEVCE_QUALITY_P6 == ps_curr_inp->s_lap_out.i4_quality_preset) in ihevce_pre_enc_manage_ref_pics()
1001 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_pre_enc_manage_ref_pics()
1026 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_pre_enc_manage_ref_pics()
1078 ihevce_lap_enc_buf_t *ps_curr_inp, in ihevce_manage_ref_pics() argument
1090 WORD32 cra_poc = ps_curr_inp->s_lap_out.i4_assoc_IRAP_poc; in ihevce_manage_ref_pics()
1122 curr_poc = ps_curr_inp->s_lap_out.i4_poc; in ihevce_manage_ref_pics()
1123 curr_idr_gop_num = ps_curr_inp->s_lap_out.i4_idr_gop_num; in ihevce_manage_ref_pics()
1126 ASSERT(HEVCE_MAX_REF_PICS >= ps_curr_inp->s_lap_out.i4_num_ref_pics); in ihevce_manage_ref_pics()
1131 wp_flag = ps_curr_inp->s_lap_out.i1_weighted_bipred_flag; in ihevce_manage_ref_pics()
1135 wp_flag = ps_curr_inp->s_lap_out.i1_weighted_pred_flag; in ihevce_manage_ref_pics()
1147 for(ref_pics = 0; ref_pics < ps_curr_inp->s_lap_out.i4_num_ref_pics; ref_pics++) in ihevce_manage_ref_pics()
1153 ref_poc = curr_poc + ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_ref_pic_delta_poc; in ihevce_manage_ref_pics()
1179 while(i4_loop != ps_curr_inp->s_lap_out.as_ref_pics[ref_pics] in ihevce_manage_ref_pics()
1194 &ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].as_wght_off[0], in ihevce_manage_ref_pics()
1199 ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_used_by_cur_pic_flag; in ihevce_manage_ref_pics()
1210 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1215 (1 << ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom); in ihevce_manage_ref_pics()
1224 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1231 while(i4_loop != ps_curr_inp->s_lap_out.as_ref_pics[ref_pics] in ihevce_manage_ref_pics()
1237 &ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].as_wght_off[i4_loop], in ihevce_manage_ref_pics()
1242 ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_used_by_cur_pic_flag; in ihevce_manage_ref_pics()
1253 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1258 (1 << ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom); in ihevce_manage_ref_pics()
1267 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1285 while(i4_loop != ps_curr_inp->s_lap_out.as_ref_pics[ref_pics] in ihevce_manage_ref_pics()
1300 &ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].as_wght_off[0], in ihevce_manage_ref_pics()
1305 ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_used_by_cur_pic_flag; in ihevce_manage_ref_pics()
1316 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1321 (1 << ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom); in ihevce_manage_ref_pics()
1330 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1336 while(i4_loop != ps_curr_inp->s_lap_out.as_ref_pics[ref_pics] in ihevce_manage_ref_pics()
1342 &ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].as_wght_off[i4_loop], in ihevce_manage_ref_pics()
1347 ps_curr_inp->s_lap_out.as_ref_pics[ref_pics].i4_used_by_cur_pic_flag; in ihevce_manage_ref_pics()
1358 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1363 (1 << ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom); in ihevce_manage_ref_pics()
1372 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1522 if(IV_IDR_FRAME == ps_curr_inp->s_lap_out.i4_pic_type) in ihevce_manage_ref_pics()
1592 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_manage_ref_pics()
1688 ps_curr_inp->s_lap_out.i4_log2_chroma_wght_denom; in ihevce_manage_ref_pics()
1690 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1718 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1723 WORD16 i2_luma_weight = (1 << ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom); in ihevce_manage_ref_pics()
1734 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1757 (1 << ps_curr_inp->s_lap_out.i4_log2_chroma_wght_denom); in ihevce_manage_ref_pics()
1759 (1 << ps_curr_inp->s_lap_out.i4_log2_chroma_wght_denom); in ihevce_manage_ref_pics()
1790 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1795 WORD16 i2_luma_weight = (1 << ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom); in ihevce_manage_ref_pics()
1806 ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom; in ihevce_manage_ref_pics()
1829 (1 << ps_curr_inp->s_lap_out.i4_log2_chroma_wght_denom); in ihevce_manage_ref_pics()
1831 (1 << ps_curr_inp->s_lap_out.i4_log2_chroma_wght_denom); in ihevce_manage_ref_pics()
1849 if(ps_curr_inp->s_lap_out.i4_quality_preset >= IHEVCE_QUALITY_P3) in ihevce_manage_ref_pics()
1851 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_manage_ref_pics()
1853 if(ps_curr_inp->s_lap_out.i4_quality_preset == IHEVCE_QUALITY_P6) in ihevce_manage_ref_pics()
1903 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_manage_ref_pics()
1927 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_manage_ref_pics()
2403 ihevce_lap_enc_buf_t *ps_curr_inp, in ihevce_update_qp_L1_sad_based() argument
2440 if((ps_curr_inp->s_lap_out.i4_quality_preset == IHEVCE_QUALITY_P6) && in ihevce_update_qp_L1_sad_based()
2441 (ps_curr_inp->s_lap_out.i4_temporal_lyr_id > TEMPORAL_LAYER_DISABLE)) in ihevce_update_qp_L1_sad_based()
2454 if((ps_curr_inp->s_lap_out.i4_quality_preset == IHEVCE_QUALITY_P6) && in ihevce_update_qp_L1_sad_based()
2455 (ps_curr_inp->s_lap_out.i4_temporal_lyr_id > TEMPORAL_LAYER_DISABLE)) in ihevce_update_qp_L1_sad_based()
2508 if((ps_curr_inp->s_lap_out.i4_quality_preset == IHEVCE_QUALITY_P6) && in ihevce_update_qp_L1_sad_based()
2509 (ps_curr_inp->s_lap_out.i4_temporal_lyr_id > TEMPORAL_LAYER_DISABLE)) in ihevce_update_qp_L1_sad_based()
2530 if((ps_curr_inp->s_lap_out.i4_quality_preset == IHEVCE_QUALITY_P6) && in ihevce_update_qp_L1_sad_based()
2531 (ps_curr_inp->s_lap_out.i4_temporal_lyr_id > TEMPORAL_LAYER_DISABLE)) in ihevce_update_qp_L1_sad_based()
2552 if((ps_curr_inp->s_lap_out.i4_quality_preset == IHEVCE_QUALITY_P6) && in ihevce_update_qp_L1_sad_based()
2553 (ps_curr_inp->s_lap_out.i4_temporal_lyr_id > TEMPORAL_LAYER_DISABLE)) in ihevce_update_qp_L1_sad_based()
2556 ps_curr_inp->s_rc_lap_out.i8_frame_satd_by_act_L1_accum = i8_frame_satd_by_act_L1_accum; in ihevce_update_qp_L1_sad_based()
2557 ps_curr_inp->s_rc_lap_out.i8_satd_by_act_L1_accum_evaluated = -1; in ihevce_update_qp_L1_sad_based()
2561 ps_curr_inp->s_rc_lap_out.i8_frame_satd_by_act_L1_accum = i8_frame_satd_by_act_L1_accum; in ihevce_update_qp_L1_sad_based()
2562 ps_curr_inp->s_rc_lap_out.i8_satd_by_act_L1_accum_evaluated = in ihevce_update_qp_L1_sad_based()
2566 ps_curr_inp->s_rc_lap_out.i8_pre_intra_satd = i8_frame_acc_sadt_L1; in ihevce_update_qp_L1_sad_based()
2568 ps_curr_inp->s_rc_lap_out.i8_raw_pre_intra_sad = acc_sad; in ihevce_update_qp_L1_sad_based()
2598 ps_curr_inp->s_rc_lap_out.i4_num_pels_in_frame_considered, in ihevce_update_qp_L1_sad_based()
2605 &ps_curr_inp->s_rc_lap_out, in ihevce_update_qp_L1_sad_based()
2615 ps_curr_inp->s_rc_lap_out.i4_L1_qp = i4_new_frame_qp; in ihevce_update_qp_L1_sad_based()
2620 if(ps_curr_inp->s_lap_out.i4_pic_type != IV_IDR_FRAME && in ihevce_update_qp_L1_sad_based()
2621 ps_curr_inp->s_lap_out.i4_pic_type != IV_I_FRAME) in ihevce_update_qp_L1_sad_based()
2623 i4_new_frame_qp += ps_curr_inp->s_lap_out.i4_temporal_lyr_id + 1; in ihevce_update_qp_L1_sad_based()
2639 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_I_FRAME || in ihevce_update_qp_L1_sad_based()
2640 ps_curr_inp->s_lap_out.i4_pic_type == IV_IDR_FRAME) in ihevce_update_qp_L1_sad_based()
2644 else if(ps_curr_inp->s_lap_out.i4_pic_type == IV_P_FRAME) in ihevce_update_qp_L1_sad_based()
2648 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_B_FRAME && in ihevce_update_qp_L1_sad_based()
2649 ps_curr_inp->s_lap_out.i4_temporal_lyr_id == 1) in ihevce_update_qp_L1_sad_based()
2654 ps_curr_inp->s_lap_out.i4_pic_type == IV_B_FRAME && in ihevce_update_qp_L1_sad_based()
2655 ps_curr_inp->s_lap_out.i4_temporal_lyr_id == 2) in ihevce_update_qp_L1_sad_based()
2660 ps_curr_inp->s_lap_out.i4_pic_type == IV_B_FRAME && in ihevce_update_qp_L1_sad_based()
2661 ps_curr_inp->s_lap_out.i4_temporal_lyr_id == 3) in ihevce_update_qp_L1_sad_based()
2671 ps_enc_ctxt, ps_curr_out, ps_curr_inp, i4_tot_ctb_l1_x, i4_tot_ctb_l1_y); in ihevce_update_qp_L1_sad_based()
2677 &ps_curr_inp->s_rc_lap_out, in ihevce_update_qp_L1_sad_based()
2679 ps_curr_inp->s_rc_lap_out.ai8_pre_intra_sad in ihevce_update_qp_L1_sad_based()
2681 ps_curr_inp->s_rc_lap_out.ai8_frame_acc_coarse_me_sad[i4_new_frame_qp]); in ihevce_update_qp_L1_sad_based()
2689 ps_curr_inp->s_lap_out.i4_is_prev_pic_in_Tid0_same_scene); in ihevce_update_qp_L1_sad_based()
2700 if(ps_curr_inp->s_lap_out.i4_is_prev_pic_in_Tid0_same_scene && in ihevce_update_qp_L1_sad_based()
2712 ps_curr_inp->s_rc_lap_out.i8_frame_acc_coarse_me_cost = in ihevce_update_qp_L1_sad_based()
2716 ps_enc_ctxt->s_module_ctxt.apv_rc_ctxt[0], &ps_curr_inp->s_rc_lap_out); in ihevce_update_qp_L1_sad_based()
2749 ihevce_lap_enc_buf_t *ps_curr_inp; in ihevce_frame_init() local
2755 ps_curr_inp = ps_curr_inp_prms->ps_curr_inp; in ihevce_frame_init()
2765 ps_curr_inp->s_lap_out.i4_is_ref_pic, in ihevce_frame_init()
2766 ps_curr_inp->s_lap_out.i4_temporal_lyr_id, in ihevce_frame_init()
2767 ps_curr_inp->s_lap_out.f_i_pic_lamda_modifier, in ihevce_frame_init()
2791 ps_curr_inp, in ihevce_frame_init()
2796 ps_curr_inp->s_lap_out.i4_temporal_lyr_id, in ihevce_frame_init()
2803 ihevce_prepare_job_queue(ps_enc_ctxt, ps_curr_inp, i4_me_frm_id); in ihevce_frame_init()
2963 ihevce_lap_enc_buf_t *ps_curr_inp = NULL; in ihevce_enc_frm_proc_slave_thrd() local
3005 ps_curr_inp = in ihevce_enc_frm_proc_slave_thrd()
3006 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3022 ps_curr_out_me->ps_curr_inp = in ihevce_enc_frm_proc_slave_thrd()
3023 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3039 if(1 == ps_curr_inp->s_input_buf.i4_inp_frm_data_valid_flag) in ihevce_enc_frm_proc_slave_thrd()
3087 ps_curr_inp->s_input_buf.i4_topfield_first; in ihevce_enc_frm_proc_slave_thrd()
3088 ps_frm_recon->i4_poc = ps_curr_inp->s_lap_out.i4_poc; in ihevce_enc_frm_proc_slave_thrd()
3089 ps_frm_recon->i4_pic_type = ps_curr_inp->s_lap_out.i4_pic_type; in ihevce_enc_frm_proc_slave_thrd()
3091 ps_curr_inp->s_lap_out.i4_display_num; in ihevce_enc_frm_proc_slave_thrd()
3093 ps_curr_inp->s_lap_out.i4_idr_gop_num; in ihevce_enc_frm_proc_slave_thrd()
3095 ps_curr_inp->s_input_buf.i4_bottom_field; in ihevce_enc_frm_proc_slave_thrd()
3097 ps_curr_inp->s_lap_out.i4_is_ref_pic; in ihevce_enc_frm_proc_slave_thrd()
3150 ps_curr_inp, in ihevce_enc_frm_proc_slave_thrd()
3196 ->ps_curr_inp->s_lap_out.i4_first_frm_new_res)) in ihevce_enc_frm_proc_slave_thrd()
3210 ihevce_lap_enc_buf_t *ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd() local
3216 ps_curr_inp = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3243 ps_curr_inp, in ihevce_enc_frm_proc_slave_thrd()
3276 ->ps_curr_inp->s_lap_out.i4_is_ref_pic; in ihevce_enc_frm_proc_slave_thrd()
3319 ihevce_lap_enc_buf_t *ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd() local
3326 ps_curr_inp = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_me_prms[i4_me_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3338 if(IV_P_FRAME == ps_curr_inp->s_lap_out.i4_pic_type) in ihevce_enc_frm_proc_slave_thrd()
3342 ASSERT(ps_curr_inp->s_lap_out.i4_pic_type < IV_IP_FRAME); in ihevce_enc_frm_proc_slave_thrd()
3348 ps_curr_inp->s_lap_out.i4_display_num, in ihevce_enc_frm_proc_slave_thrd()
3440 ihevce_lap_enc_buf_t *ps_curr_inp = NULL; in ihevce_enc_frm_proc_slave_thrd() local
3474 ps_curr_inp = in ihevce_enc_frm_proc_slave_thrd()
3475 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3515 ps_curr_inp, in ihevce_enc_frm_proc_slave_thrd()
3531 ->ps_curr_inp->s_lap_out.i4_out_flush_flag; in ihevce_enc_frm_proc_slave_thrd()
3537 (1 == ps_curr_inp->s_input_buf.i4_inp_frm_data_valid_flag) && in ihevce_enc_frm_proc_slave_thrd()
3587 ps_curr_inp->s_lap_out.i4_display_num; in ihevce_enc_frm_proc_slave_thrd()
3644 ps_curr_inp = in ihevce_enc_frm_proc_slave_thrd()
3645 ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id]->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
3664 if(ps_curr_inp->s_lap_out.i4_pic_type == IV_I_FRAME || in ihevce_enc_frm_proc_slave_thrd()
3665 ps_curr_inp->s_lap_out.i4_pic_type == IV_IDR_FRAME) in ihevce_enc_frm_proc_slave_thrd()
3674 ps_curr_inp->s_rc_lap_out.i4_num_pels_in_frame_considered = in ihevce_enc_frm_proc_slave_thrd()
3675 ps_curr_inp->s_lap_out.s_input_buf.i4_y_ht * in ihevce_enc_frm_proc_slave_thrd()
3676 ps_curr_inp->s_lap_out.s_input_buf.i4_y_wd; in ihevce_enc_frm_proc_slave_thrd()
3697 (1 == ps_curr_inp->s_lap_out.i4_first_frm_new_res)) in ihevce_enc_frm_proc_slave_thrd()
3789 &ps_curr_inp->s_rc_lap_out, in ihevce_enc_frm_proc_slave_thrd()
3793 &ps_curr_inp->s_lap_out.ai4_frame_bits_estimated[i]); in ihevce_enc_frm_proc_slave_thrd()
3795 ps_curr_inp->s_rc_lap_out.i4_orig_rc_qp = ai4_cur_qp[i]; in ihevce_enc_frm_proc_slave_thrd()
3802 ps_curr_inp->s_lap_out.ai4_frame_bits_estimated[i]; in ihevce_enc_frm_proc_slave_thrd()
3812 (IV_PICTURE_CODING_TYPE_T)ps_curr_inp->s_lap_out.i4_pic_type, in ihevce_enc_frm_proc_slave_thrd()
3813 &ps_curr_inp->s_rc_lap_out, in ihevce_enc_frm_proc_slave_thrd()
3832 (ps_curr_inp->s_input_buf.i4_topfield_first ^ in ihevce_enc_frm_proc_slave_thrd()
3833 ps_curr_inp->s_input_buf.i4_bottom_field); in ihevce_enc_frm_proc_slave_thrd()
3841 ps_curr_inp->s_lap_out.i4_is_ref_pic, in ihevce_enc_frm_proc_slave_thrd()
3842 ps_curr_inp->s_lap_out.i4_temporal_lyr_id, in ihevce_enc_frm_proc_slave_thrd()
3843 ps_curr_inp->s_lap_out.f_i_pic_lamda_modifier, in ihevce_enc_frm_proc_slave_thrd()
3956 ps_curr_inp_enc->ps_curr_inp->s_lap_out.i1_weighted_pred_flag, in ihevce_enc_frm_proc_slave_thrd()
3957 ps_curr_inp_enc->ps_curr_inp->s_lap_out.i1_weighted_bipred_flag, in ihevce_enc_frm_proc_slave_thrd()
3958 ps_curr_inp_enc->ps_curr_inp->s_lap_out.i4_log2_luma_wght_denom, in ihevce_enc_frm_proc_slave_thrd()
3959 ps_curr_inp_enc->ps_curr_inp->s_lap_out.i4_log2_chroma_wght_denom, in ihevce_enc_frm_proc_slave_thrd()
3960 ps_curr_inp_enc->ps_curr_inp->s_lap_out.i4_poc, in ihevce_enc_frm_proc_slave_thrd()
3961 ps_curr_inp_enc->ps_curr_inp->s_lap_out.i4_display_num, in ihevce_enc_frm_proc_slave_thrd()
3968 ps_curr_inp_enc->ps_curr_inp->s_lap_out.i4_quality_preset, in ihevce_enc_frm_proc_slave_thrd()
3974 ps_curr_inp, in ihevce_enc_frm_proc_slave_thrd()
4038 ihevce_lap_enc_buf_t *ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd() local
4044 ps_curr_inp = ps_enc_ctxt->s_multi_thrd.aps_cur_inp_enc_prms[i4_enc_frm_id] in ihevce_enc_frm_proc_slave_thrd()
4045 ->ps_curr_inp; in ihevce_enc_frm_proc_slave_thrd()
4208 ->i4_poc = ps_curr_inp->s_lap_out.i4_poc; in ihevce_enc_frm_proc_slave_thrd()
4210 ->i4_pic_type = ps_curr_inp->s_lap_out.i4_pic_type; in ihevce_enc_frm_proc_slave_thrd()
4215 ((ps_curr_inp->s_lap_out.i4_scene_type == 1) && in ihevce_enc_frm_proc_slave_thrd()
4216 (ps_curr_inp->s_lap_out.i4_pic_type == IV_IDR_FRAME || in ihevce_enc_frm_proc_slave_thrd()
4217 ps_curr_inp->s_lap_out.i4_pic_type == IV_I_FRAME)); in ihevce_enc_frm_proc_slave_thrd()
4221 ((ps_curr_inp->s_lap_out.i4_scene_type == in ihevce_enc_frm_proc_slave_thrd()
4241 ->i4_poc = ps_curr_inp->s_lap_out.i4_poc; in ihevce_enc_frm_proc_slave_thrd()
4243 ->i4_pic_type = ps_curr_inp->s_lap_out.i4_pic_type; in ihevce_enc_frm_proc_slave_thrd()
4273 for(j = 0; j < ps_curr_inp->s_lap_out.s_input_buf.i4_y_ht; in ihevce_enc_frm_proc_slave_thrd()
4279 ps_curr_inp->s_lap_out.s_input_buf.i4_y_wd); in ihevce_enc_frm_proc_slave_thrd()
4284 ps_curr_inp->s_lap_out.s_input_buf.i4_y_wd; in ihevce_enc_frm_proc_slave_thrd()
4293 ((ps_curr_inp->s_lap_out.s_input_buf.i4_uv_wd >> 1) * in ihevce_enc_frm_proc_slave_thrd()
4294 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht); in ihevce_enc_frm_proc_slave_thrd()
4296 for(j = 0; j < ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht; in ihevce_enc_frm_proc_slave_thrd()
4300 i<ps_curr_inp->s_lap_out.s_input_buf.i4_uv_wd>> 1; in ihevce_enc_frm_proc_slave_thrd()
4308 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_wd; in ihevce_enc_frm_proc_slave_thrd()
4316 ps_curr_inp->s_lap_out.s_input_buf.i4_y_ht * in ihevce_enc_frm_proc_slave_thrd()
4317 ps_curr_inp->s_lap_out.s_input_buf.i4_y_wd; in ihevce_enc_frm_proc_slave_thrd()
4319 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_wd * in ihevce_enc_frm_proc_slave_thrd()
4320 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht; in ihevce_enc_frm_proc_slave_thrd()
4349 if(1 == ps_curr_inp->s_input_buf.i4_inp_frm_data_valid_flag) in ihevce_enc_frm_proc_slave_thrd()
4371 ps_curr_inp->s_rc_lap_out.ps_rc_lap_out_next_encode; in ihevce_enc_frm_proc_slave_thrd()
4411 &ps_curr_inp->s_lap_out.i4_pic_type, in ihevce_enc_frm_proc_slave_thrd()
4413 (void *)&ps_curr_inp->s_lap_out, in ihevce_enc_frm_proc_slave_thrd()
4414 (void *)&ps_curr_inp->s_rc_lap_out); // STORE in ihevce_enc_frm_proc_slave_thrd()
5008 ihevce_lap_enc_buf_t *ps_curr_inp, in ihevce_pre_enc_init() argument
5029 ps_curr_out->i4_inp_timestamp_low = ps_curr_inp->s_input_buf.i4_inp_timestamp_low; in ihevce_pre_enc_init()
5030 ps_curr_out->i4_inp_timestamp_high = ps_curr_inp->s_input_buf.i4_inp_timestamp_high; in ihevce_pre_enc_init()
5031 ps_curr_out->pv_app_frm_ctxt = ps_curr_inp->s_input_buf.pv_app_frm_ctxt; in ihevce_pre_enc_init()
5038 ps_curr_inp->s_lap_out.s_input_buf.i4_y_wd = in ihevce_pre_enc_init()
5039 ps_curr_inp->s_lap_out.s_input_buf.i4_y_wd + in ihevce_pre_enc_init()
5040 SET_CTB_ALIGN(ps_curr_inp->s_lap_out.s_input_buf.i4_y_wd, min_cu_size); in ihevce_pre_enc_init()
5042 ps_curr_inp->s_lap_out.s_input_buf.i4_y_ht = in ihevce_pre_enc_init()
5043 ps_curr_inp->s_lap_out.s_input_buf.i4_y_ht + in ihevce_pre_enc_init()
5044 SET_CTB_ALIGN(ps_curr_inp->s_lap_out.s_input_buf.i4_y_ht, min_cu_size); in ihevce_pre_enc_init()
5046 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_wd = in ihevce_pre_enc_init()
5047 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_wd + in ihevce_pre_enc_init()
5048 SET_CTB_ALIGN(ps_curr_inp->s_lap_out.s_input_buf.i4_uv_wd, min_cu_size); in ihevce_pre_enc_init()
5052 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht = in ihevce_pre_enc_init()
5053 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht + in ihevce_pre_enc_init()
5054 SET_CTB_ALIGN(ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht, (min_cu_size >> 1)); in ihevce_pre_enc_init()
5058 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht = in ihevce_pre_enc_init()
5059 ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht + in ihevce_pre_enc_init()
5060 SET_CTB_ALIGN(ps_curr_inp->s_lap_out.s_input_buf.i4_uv_ht, min_cu_size); in ihevce_pre_enc_init()
5064 end_flag = ps_curr_inp->s_lap_out.i4_end_flag; in ihevce_pre_enc_init()
5072 WORD32 cur_poc = ps_curr_inp->s_lap_out.i4_poc; in ihevce_pre_enc_init()
5085 ps_curr_inp->s_lap_out.i4_temporal_lyr_id)) //TEMPORALA_SCALABILITY CHANGES in ihevce_pre_enc_init()
5087 if(ps_curr_inp->s_lap_out.i4_assoc_IRAP_poc) in ihevce_pre_enc_init()
5089 nal_type = (cur_poc < ps_curr_inp->s_lap_out.i4_assoc_IRAP_poc) in ihevce_pre_enc_init()
5090 ? (ps_curr_inp->s_lap_out.i4_is_ref_pic ? NAL_RASL_R : NAL_RASL_N) in ihevce_pre_enc_init()
5091 : (ps_curr_inp->s_lap_out.i4_is_ref_pic ? NAL_TSA_R : NAL_TSA_N); in ihevce_pre_enc_init()
5097 nal_type = (cur_poc < ps_curr_inp->s_lap_out.i4_assoc_IRAP_poc) in ihevce_pre_enc_init()
5098 ? (ps_curr_inp->s_lap_out.i4_is_ref_pic ? NAL_RADL_R : NAL_RADL_N) in ihevce_pre_enc_init()
5099 : (ps_curr_inp->s_lap_out.i4_is_ref_pic ? NAL_TSA_R : NAL_TSA_N); in ihevce_pre_enc_init()
5104 if(ps_curr_inp->s_lap_out.i4_assoc_IRAP_poc) in ihevce_pre_enc_init()
5106 nal_type = (cur_poc < ps_curr_inp->s_lap_out.i4_assoc_IRAP_poc) in ihevce_pre_enc_init()
5107 ? (ps_curr_inp->s_lap_out.i4_is_ref_pic ? NAL_RASL_R : NAL_RASL_N) in ihevce_pre_enc_init()
5108 : (ps_curr_inp->s_lap_out.i4_is_ref_pic ? NAL_TRAIL_R : NAL_TRAIL_N); in ihevce_pre_enc_init()
5114 nal_type = (cur_poc < ps_curr_inp->s_lap_out.i4_assoc_IRAP_poc) in ihevce_pre_enc_init()
5115 ? (ps_curr_inp->s_lap_out.i4_is_ref_pic ? NAL_RADL_R : NAL_RADL_N) in ihevce_pre_enc_init()
5116 : (ps_curr_inp->s_lap_out.i4_is_ref_pic ? NAL_TRAIL_R : NAL_TRAIL_N); in ihevce_pre_enc_init()
5120 switch(ps_curr_inp->s_lap_out.i4_pic_type) in ihevce_pre_enc_init()
5133 if(ps_curr_inp->s_lap_out.i4_is_cra_pic) in ihevce_pre_enc_init()
5156 switch(ps_curr_inp->s_lap_out.i4_quality_preset) in ihevce_pre_enc_init()
5183 ps_curr_inp->s_rc_lap_out.i4_num_pels_in_frame_considered = in ihevce_pre_enc_init()
5184 ps_curr_inp->s_lap_out.s_input_buf.i4_y_ht * in ihevce_pre_enc_init()
5185 ps_curr_inp->s_lap_out.s_input_buf.i4_y_wd; in ihevce_pre_enc_init()
5188 ps_curr_inp->s_rc_lap_out.ps_frame_info = &ps_curr_inp->s_frame_info; in ihevce_pre_enc_init()
5190 ps_curr_inp->s_rc_lap_out.i4_is_bottom_field = ps_curr_inp->s_input_buf.i4_bottom_field; in ihevce_pre_enc_init()
5197 &ps_curr_inp->s_rc_lap_out, in ihevce_pre_enc_init()
5203 (void *)ps_enc_ctxt->s_module_ctxt.apv_rc_ctxt[0], &ps_curr_inp->s_rc_lap_out); in ihevce_pre_enc_init()
5231 ps_curr_inp->s_lap_out.i4_poc, in ihevce_pre_enc_init()
5247 ps_curr_inp->s_lap_out.i4_temporal_lyr_id); //TEMPORALA_SCALABILITY CHANGES in ihevce_pre_enc_init()
5298 ps_curr_inp->s_input_buf.i4_bottom_field); in ihevce_pre_enc_init()
5342 (ps_curr_inp->s_input_buf.i4_topfield_first ^ ps_curr_inp->s_input_buf.i4_bottom_field); in ihevce_pre_enc_init()
5351 ps_curr_inp->s_lap_out.i4_is_ref_pic, in ihevce_pre_enc_init()
5352 ps_curr_inp->s_lap_out.i4_temporal_lyr_id, in ihevce_pre_enc_init()
5379 ihevce_prepare_pre_enc_job_queue(ps_enc_ctxt, ps_curr_inp, i4_ping_pong); in ihevce_pre_enc_init()
5411 ihevce_lap_enc_buf_t *ps_curr_inp, in ihevce_pre_enc_coarse_me_init() argument
5424 ihevce_pre_enc_manage_ref_pics(ps_enc_ctxt, ps_curr_inp, ps_curr_out, i4_ping_pong); in ihevce_pre_enc_coarse_me_init()
5446 ps_frm_recon->i4_topfield_first = ps_curr_inp->s_input_buf.i4_topfield_first; in ihevce_pre_enc_coarse_me_init()
5447 ps_frm_recon->i4_poc = ps_curr_inp->s_lap_out.i4_poc; in ihevce_pre_enc_coarse_me_init()
5448 ps_frm_recon->i4_pic_type = ps_curr_inp->s_lap_out.i4_pic_type; in ihevce_pre_enc_coarse_me_init()
5449 ps_frm_recon->i4_display_num = ps_curr_inp->s_lap_out.i4_display_num; in ihevce_pre_enc_coarse_me_init()
5451 ps_frm_recon->i4_bottom_field = ps_curr_inp->s_input_buf.i4_bottom_field; in ihevce_pre_enc_coarse_me_init()
5454 ps_frm_recon->i4_is_reference = ps_curr_inp->s_lap_out.i4_is_ref_pic; in ihevce_pre_enc_coarse_me_init()
5472 ps_curr_inp, in ihevce_pre_enc_coarse_me_init()
5489 ps_curr_inp, in ihevce_pre_enc_coarse_me_init()
5494 ps_curr_inp->s_lap_out.i4_temporal_lyr_id); in ihevce_pre_enc_coarse_me_init()
5790 ihevce_lap_enc_buf_t *ps_curr_inp = NULL; in ihevce_pre_enc_process_frame_thrd() local
5810 ps_curr_inp = in ihevce_pre_enc_process_frame_thrd()
5813 } while(NULL == ps_curr_inp); in ihevce_pre_enc_process_frame_thrd()
5818 ps_multi_thrd->aps_curr_inp_pre_enc[i4_cur_decomp_idx] = ps_curr_inp; in ihevce_pre_enc_process_frame_thrd()
5820 ps_curr_inp->s_input_buf.i4_buf_id; in ihevce_pre_enc_process_frame_thrd()
5828 if((NULL != ps_curr_inp) && (NULL != ps_curr_out)) in ihevce_pre_enc_process_frame_thrd()
5842 ps_curr_out->i4_end_flag = ps_curr_inp->s_lap_out.i4_end_flag; in ihevce_pre_enc_process_frame_thrd()
5847 ps_curr_inp->s_input_buf.i4_inp_frm_data_valid_flag; in ihevce_pre_enc_process_frame_thrd()
5851 if(ps_curr_inp->s_lap_out.i4_out_flush_flag) in ihevce_pre_enc_process_frame_thrd()
5854 ps_curr_inp->s_input_buf.i4_inp_frm_data_valid_flag; in ihevce_pre_enc_process_frame_thrd()
5858 if(1 == ps_curr_inp->s_input_buf.i4_inp_frm_data_valid_flag) in ihevce_pre_enc_process_frame_thrd()
5865 ps_curr_inp, in ihevce_pre_enc_process_frame_thrd()
6054 ihevce_lap_enc_buf_t *ps_curr_inp = in ihevce_pre_enc_process_frame_thrd() local
6057 if(1 == ps_curr_inp->s_input_buf.i4_inp_frm_data_valid_flag) in ihevce_pre_enc_process_frame_thrd()
6084 ihevce_lap_enc_buf_t *ps_curr_inp = in ihevce_pre_enc_process_frame_thrd() local
6090 if(1 == ps_curr_inp->s_input_buf.i4_inp_frm_data_valid_flag) in ihevce_pre_enc_process_frame_thrd()
6103 if(1 != ((ps_curr_inp->s_lap_out.i4_pic_type == IV_B_FRAME) && in ihevce_pre_enc_process_frame_thrd()
6525 ihevce_lap_enc_buf_t *ps_curr_inp = in ihevce_pre_enc_process_frame_thrd() local
6538 if(ps_curr_inp->s_rc_lap_out.i8_satd_by_act_L1_accum_evaluated) in ihevce_pre_enc_process_frame_thrd()
6541 ((float)ps_curr_inp->s_rc_lap_out.i8_frame_satd_by_act_L1_accum / in ihevce_pre_enc_process_frame_thrd()
6542 ps_curr_inp->s_rc_lap_out.i8_satd_by_act_L1_accum_evaluated); in ihevce_pre_enc_process_frame_thrd()
6552 &ps_curr_inp->s_rc_lap_out.i8_est_I_pic_header_bits, in ihevce_pre_enc_process_frame_thrd()
6553 &ps_curr_inp->s_lap_out.i8_frame_level_activity_fact, in ihevce_pre_enc_process_frame_thrd()
6554 &ps_curr_inp->s_lap_out.i8_frame_l0_acc_satd); in ihevce_pre_enc_process_frame_thrd()
6556 if((ps_curr_inp->s_lap_out.i4_quality_preset == IHEVCE_QUALITY_P6) && in ihevce_pre_enc_process_frame_thrd()
6557 (ps_curr_inp->s_lap_out.i4_temporal_lyr_id > TEMPORAL_LAYER_DISABLE)) in ihevce_pre_enc_process_frame_thrd()
6559 ps_curr_inp->s_rc_lap_out.i8_est_I_pic_header_bits = -1; in ihevce_pre_enc_process_frame_thrd()
6570 ps_curr_inp->s_rc_lap_out.i8_frame_satd_act_accum = in ihevce_pre_enc_process_frame_thrd()
6576 ps_curr_inp->s_rc_lap_out.i8_est_I_pic_header_bits = (LWORD64)( in ihevce_pre_enc_process_frame_thrd()
6577 ps_curr_inp->s_rc_lap_out.i8_est_I_pic_header_bits * in ihevce_pre_enc_process_frame_thrd()
6582 ps_curr_inp->s_rc_lap_out.i8_frame_satd_act_accum = (LWORD64)( in ihevce_pre_enc_process_frame_thrd()
6583 ps_curr_inp->s_rc_lap_out.i8_frame_satd_act_accum * in ihevce_pre_enc_process_frame_thrd()
6590 ps_curr_inp->s_rc_lap_out.i8_frame_satd_act_accum = in ihevce_pre_enc_process_frame_thrd()
6591 ps_curr_inp->s_rc_lap_out.i8_frm_satd_act_accum_L0_frm_L1; in ihevce_pre_enc_process_frame_thrd()
6598 ps_curr_out->ps_curr_inp = ps_curr_inp; in ihevce_pre_enc_process_frame_thrd()
6658 ihevce_lap_enc_buf_t *ps_curr_inp, in calc_l1_level_hme_intra_sad_different_qp() argument
6689 if(ps_curr_inp->s_rc_lap_out.i4_rc_pic_type != IV_I_FRAME && in calc_l1_level_hme_intra_sad_different_qp()
6690 ps_curr_inp->s_rc_lap_out.i4_rc_pic_type != IV_IDR_FRAME) in calc_l1_level_hme_intra_sad_different_qp()
6694 if(ps_curr_inp->s_rc_lap_out.i4_rc_quality_preset == IHEVCE_QUALITY_P6) in calc_l1_level_hme_intra_sad_different_qp()
6696 if(ps_curr_inp->s_rc_lap_out.i4_rc_pic_type == IV_P_FRAME) in calc_l1_level_hme_intra_sad_different_qp()
6736 if((ps_curr_inp->s_rc_lap_out.i4_rc_quality_preset == IHEVCE_QUALITY_P6) && in calc_l1_level_hme_intra_sad_different_qp()
6737 (ps_curr_inp->s_rc_lap_out.i4_rc_pic_type == IV_B_FRAME)) in calc_l1_level_hme_intra_sad_different_qp()
6739 ps_curr_inp->s_rc_lap_out.ai8_pre_intra_sad[i4_qp_counter] = -1; in calc_l1_level_hme_intra_sad_different_qp()
6740 ps_curr_inp->s_rc_lap_out.ai8_pre_intra_sad[i4_qp_counter + 1] = -1; in calc_l1_level_hme_intra_sad_different_qp()
6741 ps_curr_inp->s_rc_lap_out.ai8_pre_intra_sad[i4_qp_counter + 2] = -1; in calc_l1_level_hme_intra_sad_different_qp()
6745 ps_curr_inp->s_rc_lap_out.ai8_pre_intra_sad[i4_qp_counter] = in calc_l1_level_hme_intra_sad_different_qp()
6747 ps_curr_inp->s_rc_lap_out.ai8_pre_intra_sad[i4_qp_counter + 1] = in calc_l1_level_hme_intra_sad_different_qp()
6749 ps_curr_inp->s_rc_lap_out.ai8_pre_intra_sad[i4_qp_counter + 2] = in calc_l1_level_hme_intra_sad_different_qp()
6752 ps_curr_inp->s_rc_lap_out.ai8_frame_acc_coarse_me_sad[i4_qp_counter] = acc_hme_l1_sad; in calc_l1_level_hme_intra_sad_different_qp()
6753 ps_curr_inp->s_rc_lap_out.ai8_frame_acc_coarse_me_sad[i4_qp_counter + 1] = acc_hme_l1_sad; in calc_l1_level_hme_intra_sad_different_qp()
6754 ps_curr_inp->s_rc_lap_out.ai8_frame_acc_coarse_me_sad[i4_qp_counter + 2] = acc_hme_l1_sad; in calc_l1_level_hme_intra_sad_different_qp()
6755 ps_curr_inp->s_rc_lap_out.i8_raw_l1_coarse_me_sad = raw_hme_sad; in calc_l1_level_hme_intra_sad_different_qp()