mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
[rdoq] partly fix rdoq for 16x1 and 1x16
This commit is contained in:
parent
8e4b864e6b
commit
926ed7e145
|
@ -1461,7 +1461,7 @@ void uvg_rdoq(
|
|||
|
||||
const uint32_t cg_size = 16;
|
||||
const int32_t shift = 4 >> 1;
|
||||
const uint32_t num_blk_side = width >> shift;
|
||||
const uint32_t num_blk_side = MAX(width >> shift, 1);
|
||||
double cost_coeffgroup_sig[ 64 ];
|
||||
uint32_t sig_coeffgroup_flag[ 64 ];
|
||||
|
||||
|
|
|
@ -2615,7 +2615,7 @@ const uint32_t* const uvg_get_scan_order_table(int scan_group, int scan_type, in
|
|||
return g_scan_order[scan_group][log2_w][log2_h];
|
||||
}
|
||||
else {
|
||||
if (log2_w == 1 || log2_h == 1) {
|
||||
if (log2_w <= 1 || log2_h <= 1) {
|
||||
// Just return array containing [0, 15] in order
|
||||
return g_scan_order[scan_group][0][4];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue