# US 8,578,058 B2 · Real-time multi-block lossless recompression

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,058 B2
- Document ID: US8578058B2
- Status: Granted
- Kind: B2
- Application number: 13/044,396
- Filed: 2011-03-09
- Published: 2011-09-15
- Granted: 2013-11-05
- Earliest claimed: 2010-03-10
- Assignees: International Business Machines Corporation
- Applicants: Lilia Demidov; Nir Halowani; Ori Shalev
- Inventors: Lilia Demidov; Nir Halowani; Ori Shalev
- Web page: https://patentgrep.com/patent/US8578058B2

## CPC

- H03M 7/3077: {Sorting}
- H03M 7/6088: {according to the data type}
- H04N 19/40: using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
- H04N 19/60: using transform coding
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H03M 7/42: using table look-up for the coding or decoding process, e.g. using read-only memory {(H03M7/4006 takes precedence)}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Exemplary methods, computer systems, and computer program products for processing a previously compressed data stream in a computer environment are provided. In one embodiment, the computer environment is configured for separating a previously compressed data stream into an input data block including a header input block having a previously compressed header. Sequences of bits are included with the input data block. Compression scheme information is derived from the previously compressed header. The input data block is accessed and recompressed following the header input block in the previously compressed data stream one at a time using block-image synchronization information. Access to the block-image synchronization information is initialized by the compression scheme information to generate an output data block. The block-image synchronization information is used to provide decompression information to facilitate decompression of the results of the output data block.

## Claims

### Claim 1

A method for processing a previously compressed data stream by a processor device in a computer storage environment, the method comprising:
separating the previously compressed data stream into a plurality of input data blocks each including a header input block comprising a previously compressed header, wherein a sequences of bits is included with the plurality of input data blocks;
deriving compression scheme information from the previously compressed header;
accessing and recompressing the plurality of input data blocks following the header input block in the previously compressed data stream one at a time using a block-image synchronization information; wherein:
each subsequent input data block includes the compression scheme information and the block-image synchronization information from a previous input block, and
access to the block-image synchronization information is initialized by the compression scheme information to generate a plurality of output data blocks;
storing the derived compression scheme information in each of the plurality of output data blocks;
using the block-image synchronization information to provide decompression information to facilitate decompression of a plurality of results of the plurality of output data blocks; and
storing the plurality of decompression information in the plurality of output data blocks.

### Claim 2 (depends on 1)

The method of claim 1, further including deriving the plurality of decompression information from the plurality of compression scheme information in combination with the block-image synchronization information.

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of decompression information comprises the plurality of compression scheme information and the block-image synchronization information.

### Claim 4 (depends on 1)

The method of claim 1, further including storing the plurality of decompression information of the plurality of output data blocks in a single location.

### Claim 5 (depends on 1)

The method of claim 1, further including randomly accessing the plurality of output data blocks and decompressing the plurality of output data blocks using the plurality of decompression information.

### Claim 6 (depends on 5)

The method of claim 5, further including storing the plurality of decompression information in at least one output block.

### Claim 7 (depends on 1)

The method of claim 1, further including storing the plurality of decompression information in each of the output data blocks for decompressing on a block-by-block basis.

### Claim 8 (depends on 1)

The method of claim 1, further including storing the plurality of decompression information at the beginning of at least one output data block.

### Claim 9 (depends on 1)

The method of claim 1, further including configuring the block-image synchronization information with an indication having instructions for synchronizing the plurality of input data blocks to a known repeating structure of data in at least one input data block, wherein the indication includes a notification signifying whether a first bit in the plurality of input data blocks belongs to one of a y matrix, cb matrix, and cr matrix and a location of the first bit within the one of the y matrix, cb matrix, and cr matrix.

### Claim 10 (depends on 1)

The method of claim 1, further including decompressing the at least one output block using sequence interpretation information.

### Claim 11 (depends on 10)

The method of claim 10, further including storing the block-image synchronization information in at least one of a predetermined location within a header, a predetermined location in at least one of the at least one input block, a predetermined location in at least one of the at least one output block, and a storage location accessible to at least one of a recompressing and decompressing process.

### Claim 12 (depends on 1)

The method of claim 1, further including using at least one recompression process of prediction by partial mapping (PPM), Burrows Wheeler Transform (BWT), arithmetic coding, deflate, and optimized Huffman compression for the recompressing.

### Claim 13 (depends on 1)

The method of claim 1, wherein deriving the plurality of compression scheme information from the previously compressed header further includes at least one of:
identifying a marker to indicate a location from which the block-image synchronization information is stored in the previously compressed header,
storing the block-image synchronization information for accessibility while encoding the previously compressed header, and
identifying a start of scan marker to indicate a location from which an input block data section storing data of the plurality of input data blocks begins.

### Claim 14 (depends on 1)

The method of claim 1, further including performing at least one of:
identifying a header as the previously compressed header,
identifying a plurality of markers if the header is the previously compressed header,
encoding the previously compressed header, and
decoding the previously compressed header before identifying the plurality of markers.

### Claim 15 (depends on 1)

The method of claim 1, further including performing at least one of:
recompressing at least one input data block to generate the plurality of output data blocks, and
storing in each of the plurality of output data blocks a plurality of decompression information to facilitate block-by-block decompression of the plurality of output data blocks.

### Claim 16 (depends on 1)

The method of claim 1, further including storing the plurality of decompression information in at least one location accessible for independent decompression of the plurality of output data blocks.

### Claim 17 (depends on 1)

The method of claim 1, further including performing at least one of:
receiving a reading operation pertaining to an incoming previously compressed information for decompressing a plurality of recompressed information using the plurality of decompression information, and
reconstructing the incoming previously compressed information and outputting the incoming previously compressed information as recompressed.

### Claim 18 (depends on 1)

The method of claim 1, furthering including adapting the plurality of compression scheme information to include at least one Huffman table.

### Claim 19

A system for processing a previously compressed data stream in a computing storage environment, the system comprising:
a processor device operable in the computing storage environment, wherein the processor device is adapted for:
separating the previously compressed data stream into a plurality of input data blocks each including a header input block comprising a previously compressed header, wherein a sequences of bits is included with the plurality of input data blocks;
deriving compression scheme information from the previously compressed header;
accessing and recompressing the plurality of input data blocks following the header input block in the previously compressed data stream one at a time using a block-image synchronization information; wherein:
each subsequent input data block includes the compression scheme information and the block-image synchronization information from a previous input block, and
access to the block-image synchronization information is initialized by the compression scheme information to generate a plurality of output data blocks;
storing the derived compression scheme information in each of the plurality of output data blocks;
using the block-image synchronization information to provide decompression information to facilitate decompression of a plurality of results of the plurality of output data blocks; and
storing the plurality of decompression information in the plurality of output data blocks.

### Claim 20 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for deriving the plurality of decompression information from the plurality of compression scheme information in combination with the block-image synchronization information.

### Claim 21 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for configuring the plurality of decompression information including the plurality of compression scheme information and the block-image synchronization information.

### Claim 22 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for storing the plurality of decompression information in one of:
in the plurality of output data blocks in a single location,
in each of the plurality of input data blocks for decompressing on a block-by-block basis,
at the beginning of at least one output data block, and
in at least one location accessible for independent decompression of the plurality of output data blocks.

### Claim 23 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for randomly accessing the plurality of output data blocks and decompressing at least one output block using the plurality of decompression information.

### Claim 24 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for configuring the block-image synchronization information with an indication of instructions for synchronizing the plurality of input data blocks to a known repeating structure of data in at least one input data block, wherein the indication includes a notification signifying whether a first bit in the at least one input data block belong to one of a y matrix, cb matrix, and cr matrix and a location of the first bit within the one of the y matrix, cb matrix, and cr matrix.

### Claim 25 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for decompressing the plurality of input data blocks using a sequence interpretation information, the plurality of output data blocks decompressed in a block-by-block basis.

### Claim 26 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for storing the block-image synchronization information in one of:
a predetermined location within a header,
a predetermined location in at least one of the plurality of input data blocks,
a predetermined location in at least one of the plurality of output data blocks, and
a storage location accessible to at least one of a recompressing and decompressing process.

### Claim 27 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for using at least one recompression process of prediction by partial mapping (PPM), Burrows Wheeler Transform (BWT), arithmetic coding, deflate, and optimized Huffman compression for the recompressing.

### Claim 28 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for performing at least one of:
identifying a marker to indicate a location from which the block-image synchronization information is stored in the previously compressed header,
storing the block-image synchronization information for accessibility while encoding the previously compressed header,
identifying a start of scan marker to indicate a location from which an input block data section storing data of the plurality of input data blocks begins,
recompressing at least one input data block to generate the plurality of output data blocks, and
storing in each of the a plurality of output data blocks a plurality of decompression information to facilitate block-by-block decompression of the plurality of output data blocks.

### Claim 29 (depends on 19)

The system of claim 19, wherein at least one of:
a known repeating structure of data is a set of bits pertaining to a y component followed by a set of bits pertaining to a cb component, wherein the cb component is followed by a set of bits pertaining to a cr component,
the previously compressed data stream is comprised of data stored on a disk in physical disk blocks, and
a discrete cosine transform (DCT) matrices is included in a sequence interpretation information.

### Claim 30 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for performing at least one of:
receiving a reading operation pertaining to an incoming previously compressed information for decompressing a plurality of recompressed information using the plurality of decompression information, and
reconstructing the incoming previously compressed information and outputting the incoming previously compressed information as recompressed.

### Claim 31 (depends on 19)

The system of claim 19, wherein the processor device is further adapted for:
identifying a header as the previously compressed header,
identifying a plurality of markers if the header is the previously compressed header,
encoding the previously compressed header, and
decoding the previously compressed header before identifying the plurality of markers.

### Claim 32 (depends on 19)

The system of claim 19, wherein the processor device adapted for adapting the plurality of compression scheme information to include at least one Huffman table.

### Claim 33

A computer program product for a previously compressed data stream in a computer storage environment by a processor device, the computer program product comprising a non-transitory computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:
a first executable portion for separating the previously compressed data stream into a plurality of input data blocks each including a header input block comprising a previously compressed header, wherein a sequences of bits is included with the plurality of input data blocks;
a second executable portion for deriving compression scheme information from the previously compressed header;
a third executable portion for accessing and recompressing the plurality of input data blocks following the header input block in the previously compressed data stream one at a time using a block-image synchronization information; wherein:
each subsequent input data block includes the compression scheme information and the block-image synchronization information from a previous input block, and
access to the block-image synchronization information is initialized by the compression scheme information to generate a plurality of output data blocks;
a fourth executable portion for storing the derived compression scheme information in each of the plurality of output data blocks;
a fifth executable portion for using the block-image synchronization information to provide decompression information to facilitate decompression of a plurality of results of the plurality of output data blocks; and
a sixth executable portion for storing the plurality of decompression information in the plurality of output data blocks.

### Claim 34 (depends on 33)

The computer program product of claim 33, further including a seventh executable portion for deriving the plurality of decompression information from the plurality of compression scheme information in combination with the block-image synchronization information, the plurality of decompression information based on the plurality of compression scheme information and the block-image synchronization information.

### Claim 35 (depends on 33)

The computer program product of claim 33, further including a seventh executable portion for performing at least one of:
identifying a marker to indicate a location from which the block-image synchronization information is stored in the previously compressed header,
storing the block-image synchronization information for accessibility while encoding the previously compressed header,
identifying a start of scan marker to indicate a location from which an input block data section storing data of the plurality of input data blocks begins,
randomly accessing at least one output data block and decompressing the at least one output data block using the plurality of decompression information,
storing the plurality of decompression information at the beginning of the at least one output data block,
decompressing the at least one output block using a sequence of information,
receiving a reading operation pertaining to an incoming previously compressed information for decompressing a plurality of recompressed information using the plurality of decompression information,
reconstructing the incoming previously compressed information and outputting the incoming previously compressed information as recompressed,
using at least one recompression process of prediction by partial mapping (PPM), Burrows Wheeler Transform (BWT), arithmetic coding, deflate, and optimized Huffman compression for the recompressing,
recompressing at least one input data block to generate the plurality of output data blocks, and
storing in each of the a plurality of output data blocks a plurality of decompression information to facilitate block-by-block decompression of the plurality of output data blocks.

### Claim 36 (depends on 33)

The computer program product of claim 33, further including a seventh executable portion for using at least one recompression process of prediction by partial mapping (PPM), Burrows Wheeler Transform (BWT), arithmetic coding, deflate, and optimized Huffman compression for the recompressing.

### Claim 37 (depends on 33)

The computer program product of claim 33, further including a seventh executable portion for performing at least one of:
identifying a header as the previously compressed header,
identifying a plurality of markers if the header is the previously compressed header,
encoding the previously compressed header, and
decoding the previously compressed header before identifying the plurality of markers.

### Claim 38 (depends on 33)

The computer program product of claim 33, further including a seventh executable portion for configuring the block-image synchronization information with an indication with instructions for synchronizing at least one input data block to a known repeating structure of data in the at least one input data block, wherein the indication includes a notification signifying whether a first bit in the at least one input data block belong to one of a y matrix, cb matrix, and cr matrix and a location of the first bit within a matrix and the known repeating structure of data is a set of bits pertaining to a y component followed by a set of bits pertaining to a cb component, wherein the cb component is followed by a set of bits pertaining to a cr component.

### Claim 39 (depends on 33)

The computer program product of claim 33, further including a seventh executable portion for storing the block-image synchronization information in at least one of a predetermined location within a header, a predetermined location in at least one of the at least one input block, a predetermined location in at least one output block, and a storage location accessible to at least one of a recompressing and decompressing process.

### Claim 40 (depends on 33)

The computer program product of claim 33, further including a seventh executable portion for adapting the plurality of compression scheme information to include at least one Huffman table.
