From dc3e3a2a88b2b1f0e177f613a8b355116e6020ff Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 17 Oct 2017 00:15:13 +0200 Subject: [PATCH] Update a boring comment. --- rans.shader | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rans.shader b/rans.shader index 05ac120..925543e 100644 --- a/rans.shader +++ b/rans.shader @@ -97,7 +97,9 @@ void encode_coeff(int signed_k, uint sign_bias, inout RansEncoder enc) uint k = abs(signed_k); if (k >= ESCAPE_LIMIT) { - // ... boring stuff here + // Put the coefficient as a 1/(2^12) symbol _before_ + // the 255 coefficient, since the decoder will read the + // 255 coefficient first. RansEncPut(enc.rans, enc.rans_offset, k, 1, prob_bits); k = ESCAPE_LIMIT; } -- 2.39.2