The HEVC quantization(Uniform case) step in HEVC standard requires right shifting by QP/6 while calculating the level coefficients.
I am not sure how to perform this right shifting for cases when QP is not divisble by 6. Any help would be appreciated.
Reference: Core Transform Design in the High Efficiency Video Coding (HEVC) Standard: Madhukar Budagavi, Senior Member, IEEE, Arild Fuldseth, Gisle Bjøntegaard, Vivienne Sze, Member, IEEE, and Mangesh Sadafale