These functions evaluate sum of squares of differences between
current and predicted blocks.
These 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.