optimized calculation of chroma pred mode