mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
qp calculation for frame
This commit is contained in:
parent
47019ca1cd
commit
e36f481bda
|
@ -266,7 +266,7 @@ static INLINE double calculate_weights(encoder_state_t* const state, const int l
|
|||
return total_weight;
|
||||
}
|
||||
|
||||
// TODO: Missing QP calculation
|
||||
|
||||
void estimatePicLambda(encoder_state_t * const state) {
|
||||
double bits = pic_allocate_bits(state);
|
||||
const int layer = state->frame->gop_offset - (state->frame->is_irap ? 1 : 0);
|
||||
|
@ -341,6 +341,7 @@ void estimatePicLambda(encoder_state_t * const state) {
|
|||
}
|
||||
|
||||
state->frame->lambda = estLambda;
|
||||
state->frame->QP = lambda_to_qp(estLambda);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue