mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 23:04:04 +09:00
TAV: decomp level 4 for default res is optimal (fast enc/dec, minimal filesize change)
This commit is contained in:
@@ -2013,8 +2013,8 @@ static int calculate_max_decomp_levels(tav_encoder_t *enc, int width, int height
|
|||||||
int levels = 0;
|
int levels = 0;
|
||||||
int min_size = (!enc->monoblock) ? TILE_SIZE_Y : (width < height ? width : height);
|
int min_size = (!enc->monoblock) ? TILE_SIZE_Y : (width < height ? width : height);
|
||||||
|
|
||||||
// Keep halving until we reach a minimum size (at least 4 pixels)
|
// Keep halving until we reach a minimum size
|
||||||
while (min_size >= 16) { // apparently you don't want it to be deep
|
while (min_size >= 32) { // apparently you don't want it to be deep
|
||||||
min_size /= 2;
|
min_size /= 2;
|
||||||
levels++;
|
levels++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user