Patent ID: 8155194

Claim:
A method for transcoding from an MPEG-2 format to an H.264 format, comprising the steps of: (A) receiving an input video stream in said MPEG-2 format to generate a plurality of sets of coefficients in a raster scan order, wherein each of said sets of coefficients represents a respective one of plurality of macroblocks; (B) generating said macroblocks in a non-raster scan order from said sets of coefficients; (C) determining a respective motion compensation mode of each of said macroblocks in a pair of said macrobiocks during said decoding of said input video stream, said pair of said macroblocks being vertically adjoining; (D) determining a respective coefficient scan order within each of said sets of coefficients used to generate said macrobiocks in said pair of said macroblocks during said decoding of said input video stream; and (E) coding said pair of said macroblocks into an output video stream in said H.264 format using macroblock adaptive field frame coding with one of (i) a field motion compensation mode and (ii) a frame motion compensation mode as determined from said respective motion compensation modes of each of said macroblocks in said pair and said respective coefficient scan orders of each of said sets of coefficients of said macroblocks in said pair.