mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fix for get_coeff_cost() scan mode selection
Small BD-rate improvement with this fix
This commit is contained in:
parent
c5ba5eb3c8
commit
7484dafd82
|
@ -113,7 +113,7 @@ int32_t get_coeff_cost(encoder_control *encoder, coefficient *coeff, int32_t wid
|
||||||
cabac.bits_left = 23;
|
cabac.bits_left = 23;
|
||||||
|
|
||||||
// Execute the coding function
|
// Execute the coding function
|
||||||
encode_coeff_nxn(encoder, coeff, width, type, width < 8? SCAN_VER:SCAN_DIAG, 0);
|
encode_coeff_nxn(encoder, coeff, width, type, SCAN_DIAG, 0);
|
||||||
|
|
||||||
// Store bitcost before restoring cabac
|
// Store bitcost before restoring cabac
|
||||||
cost = (23-cabac.bits_left) + (cabac.num_buffered_bytes << 3);
|
cost = (23-cabac.bits_left) + (cabac.num_buffered_bytes << 3);
|
||||||
|
|
Loading…
Reference in a new issue