Skip to content
  • Henrik Gramner's avatar
    Optimize non-qmatrix coefficient decoding · 989057fb
    Henrik Gramner authored and Henrik Gramner's avatar Henrik Gramner committed
    Not having a quantizer matrix is the most common case, so it's
    worth having a separate code path for it that eliminates some
    calculations and table lookups.
    
    Without a qm, not only can we skip calculating dq * qm, but only
    Exp-Golomb-coded coefficients will have the potential to overflow,
    so we can also skip clipping for the vast majority of coefficients.
    989057fb