Introduction - If you have any usage issues, please Google them yourself
Calculate the width and height to do the md5 check. For the chroma plane, we never want to round down and thus skip a pixel so if we are shifting by 1 (chroma_shift) we add 1 before doing the shift.