Data compression method and apparatus with optimized transitions between compressed and uncompressed modes
First Claim
1. A method of compressing a stream of raw data:
- providing a memory device having compression active state and a compression inactive state;
inputting a raw data segment into the memory device;
generating a compressed data segment based on the raw data segment;
creating output data based on the compressed data segment when the memory device is in the compression active state, otherwise based on the raw data segment when the memory device is in the compression inactive state;
calculating a compression coefficient as a function of a prior compression coefficient, and the sizes of the raw and compressed data segments; and
setting the state of the memory device based on the compression coefficient, such that compressed data is output only when compression has recently proven effective, and raw data is output when compression has recently proven ineffective.
3 Assignments
0 Petitions
Accused Products
Abstract
A method of compressing a stream of raw data including the steps of providing a memory device having compression active state and a compression inactive state, inputting a raw data segment into the memory device, generating a compressed data segment based on the raw data segment, creating output data based on the compressed data segment when the memory device is in the compression active state, otherwise based on the raw data segment when in the memory device is the compression inactive state, calculating a compression coefficient, and setting the state of the memory device based on the compression coefficient, such that compressed data is output only when compression has recently proven effective, and raw data is output when compression has recently proven ineffective. The method may also include decompression of the output data.
-
Citations
13 Claims
-
1. A method of compressing a stream of raw data:
-
providing a memory device having compression active state and a compression inactive state; inputting a raw data segment into the memory device; generating a compressed data segment based on the raw data segment; creating output data based on the compressed data segment when the memory device is in the compression active state, otherwise based on the raw data segment when the memory device is in the compression inactive state; calculating a compression coefficient as a function of a prior compression coefficient, and the sizes of the raw and compressed data segments; and setting the state of the memory device based on the compression coefficient, such that compressed data is output only when compression has recently proven effective, and raw data is output when compression has recently proven ineffective. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of storing and retrieving a stream of data comprising the steps:
-
inputting a sequence of raw data segments; for a first raw data segment, calculating a compression coefficient; after calculating a compression coefficient, determining based on the compression coefficient whether to operate in a raw mode in which subsequent data segments are not compressed, or in a compression mode in which subsequent data segments are compressed; for each subsequent data segment, compressing the segment if in the compression mode; storing the segment; generating a new compression coefficient as a function of a prior compression coefficient; recalling the segment by determining whether or not the segment was compressed, and decompressing the segment if the segment was compressed; and outputting the sequence of segments. - View Dependent Claims (12, 13)
-
Specification