precompute last scan pos for coefficient decoding