Patent ID: 8755438

Claim:
A computerized method for transcoding a sequence of input images, each of the input images comprising one or more input MBs (macroblocks) of pixels encoded in a first format, into a sequence of output images, each of the output images comprising one or more output MBs (macroblocks) of pixels encoded in a second format, the method comprising: transcoding in a computer having a processor, comprising: reading a set of one or more transcoding use cases to be performed, each transcoding use case being characterized by a respective type of adaptation to be performed on the input image; decoding the input image into a decoded input image, including: decoding each of the input MBs, comprising extracting metadata comprising an encoding block mode for each of the input MBs, indicating size of partitions within each of the input MBs, and respective MVs (motion vectors) associated with partitions within each of the input Mbs; determining a number of stages of MVs mapping to be performed based on the set of one or more transcoding use cases; by using the metadata, performing a block of operations, corresponding to the set of one or more transcoding use cases, on the decoded input image, including mapping MVs and mapping MB modes to generate an adapted input image, each operation of the block of operations corresponding to a transcoding use case in the set of one or more transcoding use cases; and re-encoding the adapted input image to generate the output image.