• Home
  • Raw
  • Download

Lines Matching refs:ps_est_sad

89 void init_est_sad(est_sad_t *ps_est_sad, WORD32 i4_use_est_intra_sad)  in init_est_sad()  argument
92 ps_est_sad->i4_use_est_intra_sad = i4_use_est_intra_sad; in init_est_sad()
95 ps_est_sad->au4_prev_frm_sad[i] = 0; in init_est_sad()
97 ps_est_sad->u4_n_p_frm_ifi_avg_sad = 0; in init_est_sad()
98 ps_est_sad->u4_n_1_p_frm_ifi_avg_sad = 0; in init_est_sad()
99 ps_est_sad->u4_n_2_p_frm_ifi_avg_sad = 0; in init_est_sad()
100 ps_est_sad->i4_num_ifi_encoded = 0; in init_est_sad()
101 ps_est_sad->i4_num_p_frm_in_cur_ifi = 0; in init_est_sad()
111 void reset_est_sad(est_sad_t *ps_est_sad) in reset_est_sad() argument
113 init_est_sad(ps_est_sad, ps_est_sad->i4_use_est_intra_sad); in reset_est_sad()
139 UWORD32 get_est_sad(est_sad_t *ps_est_sad, picture_type_e e_pic_type) in get_est_sad() argument
141 if(ps_est_sad->i4_use_est_intra_sad) in get_est_sad()
146 u4_estimated_sad = ps_est_sad->au4_prev_frm_sad[P_PIC]; in get_est_sad()
150 u4_estimated_sad = ps_est_sad->au4_prev_frm_sad[B_PIC]; in get_est_sad()
154 if(ps_est_sad->i4_num_ifi_encoded < 2) in get_est_sad()
157 u4_estimated_sad = ps_est_sad->au4_prev_frm_sad[I_PIC]; in get_est_sad()
167 if(ps_est_sad->i4_num_p_frm_in_cur_ifi) in get_est_sad()
170 (ps_est_sad->u4_n_p_frm_ifi_avg_sad / ps_est_sad->i4_num_p_frm_in_cur_ifi); in get_est_sad()
171 u4_n_2_p_frm_ifi_avg_sad = ps_est_sad->u4_n_1_p_frm_ifi_avg_sad; in get_est_sad()
175 u4_n_1_p_frm_ifi_avg_sad = ps_est_sad->u4_n_1_p_frm_ifi_avg_sad; in get_est_sad()
176 u4_n_2_p_frm_ifi_avg_sad = ps_est_sad->u4_n_2_p_frm_ifi_avg_sad; in get_est_sad()
182 SET_VAR_Q(vq_prev_frm_sad_i, ps_est_sad->au4_prev_frm_sad[I_PIC], 0); in get_est_sad()
196 u4_estimated_sad = ps_est_sad->au4_prev_frm_sad[I_PIC]; in get_est_sad()
204 return ps_est_sad->au4_prev_frm_sad[e_pic_type]; in get_est_sad()
215 WORD32 update_ppic_sad(est_sad_t *ps_est_sad, WORD32 i4_est_sad, WORD32 i4_prev_p_sad) in update_ppic_sad() argument
217 i4_est_sad = ((ps_est_sad->au4_prev_frm_sad[P_PIC]) * ((i4_est_sad << 4) / i4_prev_p_sad)) >> 4; in update_ppic_sad()
219 if(i4_est_sad > (WORD32)ps_est_sad->au4_prev_frm_sad[P_PIC]) in update_ppic_sad()
223 ps_est_sad->au4_prev_frm_sad[P_PIC] = i4_est_sad; in update_ppic_sad()
236 void update_actual_sad(est_sad_t *ps_est_sad, UWORD32 u4_actual_sad, picture_type_e e_pic_type) in update_actual_sad() argument
238 ps_est_sad->au4_prev_frm_sad[e_pic_type] = u4_actual_sad; in update_actual_sad()
240 if(ps_est_sad->i4_use_est_intra_sad) in update_actual_sad()
245 if(ps_est_sad->i4_num_ifi_encoded < 2) in update_actual_sad()
246 ps_est_sad->i4_num_ifi_encoded++; in update_actual_sad()
249 if(ps_est_sad->i4_num_p_frm_in_cur_ifi) in update_actual_sad()
251 ps_est_sad->u4_n_p_frm_ifi_avg_sad /= ps_est_sad->i4_num_p_frm_in_cur_ifi; in update_actual_sad()
255 ps_est_sad->u4_n_p_frm_ifi_avg_sad = 0; in update_actual_sad()
258 ps_est_sad->u4_n_2_p_frm_ifi_avg_sad = ps_est_sad->u4_n_1_p_frm_ifi_avg_sad; in update_actual_sad()
260 ps_est_sad->u4_n_1_p_frm_ifi_avg_sad = ps_est_sad->u4_n_p_frm_ifi_avg_sad; in update_actual_sad()
262 ps_est_sad->u4_n_p_frm_ifi_avg_sad = 0; in update_actual_sad()
263 ps_est_sad->i4_num_p_frm_in_cur_ifi = 0; in update_actual_sad()
267 ps_est_sad->u4_n_p_frm_ifi_avg_sad += u4_actual_sad; in update_actual_sad()
268 ps_est_sad->i4_num_p_frm_in_cur_ifi++; in update_actual_sad()
280 void update_prev_frame_intra_sad(est_sad_t *ps_est_sad, WORD32 i4_intra_frm_sad) in update_prev_frame_intra_sad() argument
282 ps_est_sad->au4_prev_frm_sad[I_PIC] = i4_intra_frm_sad; in update_prev_frame_intra_sad()
292 WORD32 get_prev_frame_intra_sad(est_sad_t *ps_est_sad) in get_prev_frame_intra_sad() argument
294 return ps_est_sad->au4_prev_frm_sad[I_PIC]; in get_prev_frame_intra_sad()
304 void update_prev_frame_sad(est_sad_t *ps_est_sad, WORD32 i4_frm_sad, picture_type_e e_pic_type) in update_prev_frame_sad() argument
306 ps_est_sad->au4_prev_frm_sad[e_pic_type] = i4_frm_sad; in update_prev_frame_sad()
316 WORD32 get_prev_frame_sad(est_sad_t *ps_est_sad, picture_type_e e_pic_type) in get_prev_frame_sad() argument
318 return ps_est_sad->au4_prev_frm_sad[e_pic_type]; in get_prev_frame_sad()