hevc: puck back optimized functions