Home
last modified time | relevance | path

Searched refs:K_Q (Results 1 – 7 of 7) sorted by relevance

/external/libhevc/encoder/
Drc_common.h90 #define K_Q 4 macro
96 #define I_TO_B_RATIO ((P_TO_B_RATIO * I_TO_P_RATIO) >> K_Q)
97 #define I_TO_B1_RATIO ((B_TO_B1_RATIO * P_TO_B_RATIO * I_TO_P_RATIO) >> (K_Q + K_Q))
99 ((B1_TO_B2_RATIO * B_TO_B1_RATIO * P_TO_B_RATIO * I_TO_P_RATIO) >> (K_Q + K_Q + K_Q))
Dinit_qp.c155 i4_qp = ((i4_qp * I_TO_P_RATIO) >> K_Q); in get_init_qp_using_pels_bits_per_frame()
161 i4_qp = ((i4_qp * P_TO_B_RATIO * I_TO_P_RATIO) >> (K_Q + K_Q)); in get_init_qp_using_pels_bits_per_frame()
165 i4_qp = ((i4_qp * P_TO_B_RATIO_HBR * I_TO_P_RATIO) >> (K_Q + K_Q)); in get_init_qp_using_pels_bits_per_frame()
Dbit_allocation.c772 ps_bit_allocation->i2_K[I_PIC] = (1 << K_Q); in init_bit_allocation()
775 ps_bit_allocation->i2_K[B_PIC] = (P_TO_B_RATIO * I_TO_P_RATIO) >> K_Q; in init_bit_allocation()
776 ps_bit_allocation->i2_K[BB_PIC] = (P_TO_B_RATIO * I_TO_P_RATIO) >> K_Q; in init_bit_allocation()
779 ps_bit_allocation->i2_K[B1_PIC] = (B_TO_B1_RATIO * P_TO_B_RATIO * I_TO_P_RATIO) >> (K_Q + K_Q); in init_bit_allocation()
780 ps_bit_allocation->i2_K[B11_PIC] = (B_TO_B1_RATIO * P_TO_B_RATIO * I_TO_P_RATIO) >> (K_Q + K_Q); in init_bit_allocation()
782 (B1_TO_B2_RATIO * B_TO_B1_RATIO * P_TO_B_RATIO * I_TO_P_RATIO) >> (K_Q + K_Q + K_Q); in init_bit_allocation()
784 (B1_TO_B2_RATIO * B_TO_B1_RATIO * P_TO_B_RATIO * I_TO_P_RATIO) >> (K_Q + K_Q + K_Q); in init_bit_allocation()
1510 SET_VAR_Q(vq_K, ps_bit_allocation->i2_K[i], K_Q); in get_cur_frm_est_texture_bits()
2193 ps_bit_allocation->i2_K[I_PIC] = (1 << K_Q); in set_Kp_Kb_for_hi_motion()
2198 ps_bit_allocation->i2_K[B_PIC] = (P_TO_B_RATIO_HI_MO * I_TO_P_RATIO_HI_MO) >> K_Q; in set_Kp_Kb_for_hi_motion()
[all …]
Drate_control_api.c550 ps_rate_control_api->i4_P_to_I_ratio = (1 << (P_TO_I_RATIO_Q_FACTOR + K_Q)) / I_TO_P_RATIO; in initialise_rate_control()
781 prev_qp_q6 = (I_TO_P_RATIO * (LWORD64)prev_qp_q6) >> K_Q; in get_min_max_qp()
790 prev_qp_q6 = (P_TO_B_RATIO * (LWORD64)prev_qp_q6) >> (K_Q); in get_min_max_qp()
794 prev_qp_q6 = (P_TO_B_RATIO_HBR * (LWORD64)prev_qp_q6) >> (K_Q); in get_min_max_qp()
803 prev_qp_q6 = (P_TO_B_RATIO * I_TO_P_RATIO * (LWORD64)prev_qp_q6) >> (K_Q + K_Q); in get_min_max_qp()
807 prev_qp_q6 = (P_TO_B_RATIO_HBR * I_TO_P_RATIO * (LWORD64)prev_qp_q6) >> (K_Q + K_Q); in get_min_max_qp()
872 (K_Q + K_Q + K_Q)); in get_min_max_qp()
876 (WORD32)(((LWORD64)i4_p_qp_q6 * I_TO_P_RATIO * I_TO_P_RATIO) >> (K_Q + K_Q)); in get_min_max_qp()
879 hi_dev_qp_temp_q6 = (WORD32)(((LWORD64)i4_p_qp_q6 * I_TO_P_RATIO) >> (K_Q)); in get_min_max_qp()
885 hi_dev_qp_temp_q6 = (WORD32)(((LWORD64)i4_p_qp_q6 * P_TO_I_RATIO) >> (K_Q)); in get_min_max_qp()
[all …]
/external/libavc/encoder/
Dirc_rate_control_api.c572 prev_qp = (P_TO_I_RATIO * prev_qp + (1 << (K_Q - 1))) in irc_get_frame_level_qp()
573 >> (K_Q); in irc_get_frame_level_qp()
581 prev_qp = (I_TO_P_RATIO * prev_qp + (1 << (K_Q - 1))) in irc_get_frame_level_qp()
582 >> (K_Q); in irc_get_frame_level_qp()
590 prev_qp = (P_TO_B_RATIO * prev_qp + (1 << (K_Q - 1))) in irc_get_frame_level_qp()
591 >> (K_Q); in irc_get_frame_level_qp()
601 + (1 << (K_Q + K_Q - 1))) in irc_get_frame_level_qp()
602 >> (K_Q + K_Q); in irc_get_frame_level_qp()
Dirc_common.h98 #define K_Q 4 macro
Dirc_bit_allocation.c324 ps_bit_allocation->i2_K[I_PIC] = (1 << K_Q); in irc_ba_init_bit_allocation()
326 ps_bit_allocation->i2_K[B_PIC] = (P_TO_B_RATIO * I_TO_P_RATIO) >> K_Q; in irc_ba_init_bit_allocation()
451 SET_VAR_Q(vq_K, ps_bit_allocation->i2_K[i], K_Q); in irc_ba_get_cur_frm_est_texture_bits()