hevc: use templates for transquant functions
Merge branch 'hevc' of https://github.com/OpenHEVC/FFmpeg.git into hevc