Skip to content

Commit 5714798

Browse files
committed
added comments
1 parent ff6102f commit 5714798

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/structs/quantization_tables.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ use super::jpeg_header::JPegHeader;
1313

1414
pub struct QuantizationTables {
1515
quantization_table: [u16; 64],
16+
17+
/// transposed version of quantization table
1618
quantization_table_transposed: [u16; 64],
1719

20+
/// precalculated divisors * 8192 for the top row of the quantization table for final step of lak calculation
21+
/// compiler sees non-zero to avoid having to check for division-by-zero
1822
quantization_table_divisors_horiz: [NonZeroI32; 8],
23+
24+
/// precalculated divisors * 8192 for the left column of the quantization table for final step of lak calculation
25+
/// compiler sees non-zero to avoid having to check for division-by-zero
1926
quantization_table_divisors_vert: [NonZeroI32; 8],
2027

2128
// Values for discrimination between "regular" and "noise" part of

0 commit comments

Comments
 (0)