fix variable name, msg to mrg
need not compute chroma in xGetInterPredictionError
primitives: micro optimizations of PartitionFromSizes()

* use int for w, h
* change lookup table to uint8_t
* make function inlined
primitives: lower case partitionFromSizes() function to follow coding style