|
static double | clip_lambda (double lambda) |
| Clip lambda value to a valid range.
|
|
kvz_rc_data * | kvz_get_rc_data (const encoder_control_t *const encoder) |
|
void | kvz_free_rc_data () |
|
static void | update_parameters (uint32_t bits, uint32_t pixels, double lambda_real, double *alpha, double *beta) |
| Update alpha and beta parameters.
|
|
static double | gop_allocate_bits (encoder_state_t *const state) |
| Allocate bits for the current GOP.
|
|
static int | xCalcHADs8x8_ISlice (kvz_pixel *piOrg, int y, int iStrideOrg) |
|
static uint64_t | pic_header_bits (encoder_state_t *const state) |
| Estimate number of bits used for headers of the current picture.
|
|
static double | pic_allocate_bits (encoder_state_t *const state) |
| Allocate bits for the current picture.
|
|
static int8_t | lambda_to_qp (const double lambda) |
|
static double | solve_cubic_equation (const encoder_state_config_frame_t *const state, int ctu_index, int last_ctu, double est_lambda, double target_bits) |
|
static double | calculate_weights (encoder_state_t *const state, const int ctu_count, double est_lambda) |
|
void | kvz_estimate_pic_lambda (encoder_state_t *const state) |
|
static double | get_ctu_bits (encoder_state_t *const state, vector2d_t pos) |
|
static double | qp_to_lambda (encoder_state_t *const state, int qp) |
|
void | kvz_set_ctu_qp_lambda (encoder_state_t *const state, vector2d_t pos) |
|
static void | update_pic_ck (encoder_state_t *const state, double bpp, double distortion, double lambda, int layer) |
|
static void | update_ck (encoder_state_t *const state, int ctu_index, int layer) |
|
static int | calc_poc (encoder_state_t *const state) |
|
void | kvz_update_after_picture (encoder_state_t *const state) |
|
void | kvz_set_picture_lambda_and_qp (encoder_state_t *const state) |
| Allocate bits and set lambda and QP for the current picture.
|
|
static double | lcu_allocate_bits (encoder_state_t *const state, vector2d_t pos) |
| Allocate bits for a LCU.
|
|
void | kvz_set_lcu_lambda_and_qp (encoder_state_t *const state, vector2d_t pos) |
|