Patent ID: 7965770

Claim:
A method comprising: receiving a compressed video stream at a variable length decoder of a decoder/deinterlacer; decoding a number of blocks of the compressed video stream to output a number of blocks of decoded video data using motion compensation-based interpolation logic associated with the decoder/deinterlacer, wherein the decoding is based on at least one motion compensation vector included in the compressed video stream; generating a prediction error energy for at least one of the number of blocks; upon determining that the prediction error energy exceeds an energy threshold or upon determining that a quantization scale factor exceeds a dequantization threshold, generating an updated motion compensation vector; and deinterlacing at least some of the number of blocks of the decoded video data to output deinterlaced video data using the motion compensation-based interpolation logic, wherein the deinterlacing of the at least one of the blocks of the number of blocks is based on the at least one motion compensation vector included in the compressed video stream if the prediction error energy for the at least one motion compensation vector is less than the energy threshold and the quantization scale factor is less than the dequantization threshold, and wherein the deinterlacing of the at least one of the number of blocks is based on the updated motion compensation vector if the prediction error energy exceeds the energy threshold or the quantization scale factor exceeds the dequantization threshold.