Patent ID: 8194991

Claim:
An apparatus operable to encode a target region of an image that comprises a stream of compression encoded image blocks, wherein the target region is a region of the image misaligned with the image, the apparatus comprising: a target block identifier that identifies target block sets, each target block set comprising a set of the compression encoded image blocks that are needed to form one compression encoded target block of a set of compression encoded target blocks that form the target region; a decoder module that decodes, in a scan order of the image, a set of compression encoded image blocks that includes the target block set, thereby generating a corresponding set of decoded image blocks, and stores in an input buffer, while each of the compression encoded target blocks is formed, the set of decoded image blocks; an encoder module that forms compression encoded target blocks, wherein each compression encoded target block is formed using decoded image blocks in the input buffer that were decoded from the target block set of compression encoded image blocks, and sequentially stores in an output buffer each of the compression encoded target blocks, in an input order that is the order in which the compression encoded target blocks are formed; and a reorder module operable to reorder the compression encoded target blocks of the target region stored in the output buffer into a scan order of the target region, wherein the scan order of the target region is different than the scan order of the image.