TAV: decomp level 4 for default res is optimal (fast enc/dec, minimal filesize change)

This commit is contained in:
minjaesong
2025-11-24 03:34:08 +09:00
parent 53b87ff735
commit dbbb471a11

View File

@@ -2013,8 +2013,8 @@ static int calculate_max_decomp_levels(tav_encoder_t *enc, int width, int height
int levels = 0;
int min_size = (!enc->monoblock) ? TILE_SIZE_Y : (width < height ? width : height);
// Keep halving until we reach a minimum size (at least 4 pixels)
while (min_size >= 16) { // apparently you don't want it to be deep
// Keep halving until we reach a minimum size
while (min_size >= 32) { // apparently you don't want it to be deep
min_size /= 2;
levels++;
}