where
f = lambda factor,
cx, cy = candidate x and y position for motion estimation,
s = motion vector shift
px, py = predicted x and y position for motion estimation,
and
WEIGHTED_COST = returns the cost for the bits using the
lambda factor
The RD-cost scheme, on the other hand, takes intoconsideration
the distortion factor and the rate of the compressed stream.The
distortion is computed by calculating the SNR of the blockand
the rate is calculated by taking into consideration the lengthof
the stream after the last stage of encoding The proposed mode
selection techniques use the MV_COST for deciding the best
mode for encoding as explained in section 4.