rdcost: unify scaleChromaDist*()