These functions calculate residual block - difference between
the source block and the predicted block.
Difference evaluation functions are divided into two groups:
Functions for predicted block, using
one reference block for prediction
Functions for bi-predicted block, using two reference blocks
for prediction; in this case predictions are first calculated for
each reference block, and then prediction is calculated as average
of two predictions.