A method and system of reducing the computation load of an MPEG decoder by changing
the encoding algorithms in a video-processing system are provided. During an encoding
mode, a stream of data blocks is received and at least one motion vector and one
motion compensation prediction value for each macro-block are generated. The prediction
value is transformed into a set of DCT coefficients. Prior to the quantizing step,
the set of DCT coefficients are modified according to predetermined criteria. To
this end, the total energy level of the DCT coefficients excluding the lowest 22
DCT coefficients is computed, and last column and last row of the DCT coefficients
is discarded alternatively until the total energy level of the DCT coefficients
reaches a predetermined energy level. Therafter, the discarded column or row is
assigned to a predetermined value. The modified DCT coefficients are then quantized
and encoded, thereby generating a bit stream of encoded macro-blocks, which are
subsequently decoded according to a conventional decoding process.