Debug code for HEVC