# US 2009/0257485 A1 · Video data compression with integrated lossy and lossless compression

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

- Number: US 2009/0257485 A1
- Document ID: US20090257485A1
- Status: Published application
- Kind: A1
- Application number: 12/103,427
- Filed: 2008-04-15
- Published: 2009-10-15
- Earliest claimed: 2008-04-15
- Assignees: Sony Corporation; Sony Electronics Inc.
- Inventors: Jeongnam Youn
- Web page: https://patentgrep.com/patent/US20090257485A1

## CPC

- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N 19/12: Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/182: the unit being a pixel
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/428: {Recompression, e.g. by spatial or temporal decimation}
- H04N 19/433: characterised by techniques for memory access
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/593: involving spatial prediction techniques
- H04N 19/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method and apparatus to compress video data to smaller size and embed extra information into the compressed data using the integrated lossy and lossless compressions is described. The method can be used to compress reference frames of a video codec (coder/decoder) combines codec where the small noise is critical and to reduce bus bandwidth. Data transfer between an encoder and an external frame memory connected via an external bus in a video codec is reduced by compressing data from the encoder prior to inputting into the frame memory over the external bus, and decompressing the compressed data from the frame memory after retrieving over the external bus. Reference frames are compressed to variable size without causing any considerable artifact to reduce bus bandwidth between the encoder core and external memory. In the method, lossy and lossless compression is integrated to maximize the compression efficiency.

## Claims

### Claim 1

A method for reducing data transfer between an encoder and an external frame memory connected via an external bus in a video codec, comprising:
compressing data from the encoder prior to inputting into the frame memory over the external bus; and
decompressing the compressed data from the frame memory after retrieving over the external bus.

### Claim 2 (depends on 1)

The method of claim 1, wherein the data is compressed by lossless compression.

### Claim 3 (depends on 1)

The method of claim 1, wherein the data is compressed by lossy compression.

### Claim 4 (depends on 1)

The method of claim 1, wherein the data is compressed by combination of lossless compression and lossy compression.

### Claim 5 (depends on 1)

The method of claim 1, further comprising segmenting each frame into smaller blocks prior to compressing.

### Claim 6 (depends on 5)

The method of claim 5, wherein the frames are luminance frames and chrominance frames.

### Claim 7 (depends on 5)

The method of claim 5, wherein each block is compressed by first predicting and compressing each original block, and then determining if the number of bits used during compression is within an allowed range.

### Claim 8 (depends on 5)

The method of claim 5, further comprising segmenting the segmented blocks into subblocks having a different level of compression;
wherein inside one compression block, lossy and lossless subblocks can be integrated together.

### Claim 9 (depends on 7)

The method of claim 7, further comprising packing the compressed data into a packet and storing the packet in the frame memory if the number of bits used during compression is within an allowed range.

### Claim 10 (depends on 7)

The method of claim 7, further comprising trying to compress the data by lossy compression if the number of bits used during compression is not within an allowed range.

### Claim 11 (depends on 10)

The method of claim 10, wherein lossy compression is performed by reducing the precision of the original data.

### Claim 12 (depends on 10)

The method of claim 10, further comprising generating a noise compensation bit to indicate the amount of noise introduced during compression

### Claim 13 (depends on 10)

The method of claim 10, wherein the data is processed by an uncompression process if lossy compression is not allowed.

### Claim 14 (depends on 4)

The method of claim 4, further comprising embedding extra information in each compressed block without losing original information in the block, at least one said extra information comprising a compressed/uncompressed block indication, and at least one said extra information comprising a lossy/lossless indication.

### Claim 15 (depends on 4)

The method of claim 4, further comprising determining a maximum precision that is needed to represent the residual data in each block, and applying this for the compression of the block.

### Claim 16 (depends on 4)

The method of claim 4, further comprising:
segmenting each block into subblocks;
determining a maximum precision for each subblock; and
compressing each subblock using the maximum precision for that subblock.

### Claim 17 (depends on 9)

The method of claim 9, wherein the compressed data from frame memory is decompressed by first determining if each block is compressed, and if compressed, decoding each block using the same precision used in compressing the block.

### Claim 18 (depends on 17)

The method of claim 17, wherein determining if each block is compressed is performed by reading an embedded compressed/uncompressed bit.

### Claim 19 (depends on 17)

The method of claim 17, further comprising determining if the block is compressed by lossy compression, and if so, compensating the decompressed block to reduce noise.

### Claim 20 (depends on 19)

The method of claim 19, wherein determining if the block is compressed by lossy compression is performed by reading an embedded lossy/lossless bit.

### Claim 21 (depends on 19)

The method of claim 19, wherein compensating the decompressed block comprises reading a noise compensation bit.

### Claim 22 (depends on 17)

The method of claim 17, further comprising, if a block is not compressed, determining if the data was compressed by lossy compression, and if so decoding the data and if not reading all the data.

### Claim 23 (depends on 13)

The method of claim 13, wherein the uncompression process is performed by first processing the first pixel by reading the first pixel, taking some bits out of the first pixel and sending the removed bits to FIFO, reading additional bits of header and attaching the header bits to the remaining bits of the first pixel, storing the result in a compression buffer, decompressing the processed first pixel, and storing the decompressed first pixel in a decompression buffer.

### Claim 24 (depends on 23)

The method of claim 23, wherein the uncompression process is further performed starting with the second pixel by predicting the current pixel value from the previous decompressed pixel, computing the residual between the current and predicted values, determining the number of bits required for the residual, and embedding a stop flag bit and a contained previous bit and any FIFO data in available bits.

### Claim 25 (depends on 3)

The method of claim 3:
wherein in said lossy compression, compression noise is compensated by estimating noise in compression and embedding noise information in a compressed block; and
wherein noise is compensated during decompression.

### Claim 26 (depends on 3)

The method of claim 3, wherein during compression the least significant bit is truncated and the majority truncated bit is set as a noise compensation bit, and during decompression the least significant bits are set to the majority truncated bit.

### Claim 27

In a video codec having an encoder core and an external frame memory connected to the encoder core via an external bus, the improvement comprising:
a compression unit at the output of the encoder for compressing data from the encoder prior to inputting into the frame memory via the external bus; and
a decompression unit at the input of the encoder for decompressing the compressed data from the frame memory after retrieving over the external bus.
