Skip to content

Commit a2f01b3

Browse files
kornelskilu-zero
authored andcommitted
Avoid magic hex
1 parent c247d53 commit a2f01b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rate.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,7 @@ fn chroma_offset(
518518
ChromaSampling::Cs422 => (x >> 3) + (x >> 4) - (x >> 7), // 0.180
519519
ChromaSampling::Cs444 => (x >> 4) + (x >> 5) + (x >> 8), // 0.098
520520
};
521-
// blog64(7) - blog64(4); blog64(5) - blog64(4)
522-
(0x19D_5D9F_D501_0B37 - y, 0xA4_D3C2_5E68_DC58 - y)
521+
(const { blog64(7) - blog64(4) } - y, const { blog64(5) - blog64(4) } - y)
523522
}
524523

525524
impl QuantizerParameters {

0 commit comments

Comments
 (0)