summaryrefslogtreecommitdiff
path: root/thirdparty/astcenc/astcenc_block_sizes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/astcenc/astcenc_block_sizes.cpp')
-rw-r--r--thirdparty/astcenc/astcenc_block_sizes.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/thirdparty/astcenc/astcenc_block_sizes.cpp b/thirdparty/astcenc/astcenc_block_sizes.cpp
index 1c22d06a5c..17e51dfc3f 100644
--- a/thirdparty/astcenc/astcenc_block_sizes.cpp
+++ b/thirdparty/astcenc/astcenc_block_sizes.cpp
@@ -776,8 +776,8 @@ static void construct_dt_entry_2d(
assert(maxprec_1plane >= 0 || maxprec_2planes >= 0);
bsd.decimation_modes[index].maxprec_1plane = static_cast<int8_t>(maxprec_1plane);
bsd.decimation_modes[index].maxprec_2planes = static_cast<int8_t>(maxprec_2planes);
- bsd.decimation_modes[index].refprec_1_plane = 0;
- bsd.decimation_modes[index].refprec_2_planes = 0;
+ bsd.decimation_modes[index].refprec_1plane = 0;
+ bsd.decimation_modes[index].refprec_2planes = 0;
}
/**
@@ -934,11 +934,11 @@ static void construct_block_size_descriptor_2d(
if (is_dual_plane)
{
- dm.set_ref_2_plane(bm.get_weight_quant_mode());
+ dm.set_ref_2plane(bm.get_weight_quant_mode());
}
else
{
- dm.set_ref_1_plane(bm.get_weight_quant_mode());
+ dm.set_ref_1plane(bm.get_weight_quant_mode());
}
bsd.block_mode_packed_index[i] = static_cast<uint16_t>(packed_bm_idx);
@@ -969,8 +969,8 @@ static void construct_block_size_descriptor_2d(
{
bsd.decimation_modes[i].maxprec_1plane = -1;
bsd.decimation_modes[i].maxprec_2planes = -1;
- bsd.decimation_modes[i].refprec_1_plane = 0;
- bsd.decimation_modes[i].refprec_2_planes = 0;
+ bsd.decimation_modes[i].refprec_1plane = 0;
+ bsd.decimation_modes[i].refprec_2planes = 0;
}
// Determine the texels to use for kmeans clustering.
@@ -1055,8 +1055,8 @@ static void construct_block_size_descriptor_3d(
bsd.decimation_modes[decimation_mode_count].maxprec_1plane = static_cast<int8_t>(maxprec_1plane);
bsd.decimation_modes[decimation_mode_count].maxprec_2planes = static_cast<int8_t>(maxprec_2planes);
- bsd.decimation_modes[decimation_mode_count].refprec_1_plane = maxprec_1plane == -1 ? 0 : 0xFFFF;
- bsd.decimation_modes[decimation_mode_count].refprec_2_planes = maxprec_2planes == -1 ? 0 : 0xFFFF;
+ bsd.decimation_modes[decimation_mode_count].refprec_1plane = maxprec_1plane == -1 ? 0 : 0xFFFF;
+ bsd.decimation_modes[decimation_mode_count].refprec_2planes = maxprec_2planes == -1 ? 0 : 0xFFFF;
decimation_mode_count++;
}
}
@@ -1067,8 +1067,8 @@ static void construct_block_size_descriptor_3d(
{
bsd.decimation_modes[i].maxprec_1plane = -1;
bsd.decimation_modes[i].maxprec_2planes = -1;
- bsd.decimation_modes[i].refprec_1_plane = 0;
- bsd.decimation_modes[i].refprec_2_planes = 0;
+ bsd.decimation_modes[i].refprec_1plane = 0;
+ bsd.decimation_modes[i].refprec_2planes = 0;
}
bsd.decimation_mode_count_always = 0; // Skipped for 3D modes