Commit 29305d37 authored by Brian Heng's avatar Brian Heng

Fix for Ticket #311 Scaling List Bugs

  - Previous fix broke dependent  quantization for the non-scaling list case.
  - Negative shift values are no longer set to zero, so the shift is applied repeatedly to the fixed invQScale value (g_invQuantScales) during each loop.
parent e7354ee5
......@@ -750,7 +750,7 @@ namespace DQIntern
if (enableScalingLists)
invQScale = piDequantCoef[rasterPos];//scalingfactor*levelScale
if (shift < 0)
if (shift < 0 && (enableScalingLists || scanIdx == lastScanIdx))
invQScale <<= -shift;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment