Add HEVC helper functions