# US 9,665,541 B2 · Encoding video data using reversible integer approximations of orthonormal transforms

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

- Number: US 9,665,541 B2
- Document ID: US9665541B2
- Status: Granted
- Kind: B2
- Application number: 14/262,626
- Filed: 2014-04-25
- Published: 2014-11-27
- Granted: 2017-05-30
- Earliest claimed: 2013-04-25
- Assignees: Mozilla Corporation
- Applicants: Timothy B. Terriberry
- Inventors: Timothy B. Terriberry
- Web page: https://patentgrep.com/patent/US9665541B2

## CPC

- G06F 17/147: {Discrete orthonormal transforms, e.g. discrete cosine transform, discrete sine transform, and variations therefrom, e.g. modified discrete cosine transform, integer transforms approximating the discrete cosine transform (G06F17/145 takes precedence)}
- H04N 19/625: using discrete cosine transform [DCT]
- H04N 19/63: using sub-band based transform, e.g. wavelets
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An apparatus and method for lossless encoding of video data is provided, including a reversible transform, connected to a plurality of inputs, having a same plurality of orthonormal outputs, wherein the reversible transform comprises rotations combined with internally cancelled scalings that are connected to said orthonormal outputs.

## Claims

### Claim 1

A method for lossless encoding of data, comprising:
receiving the data; and
applying a reversible transform approximation having orthonormally scaled outputs to the received data, wherein the reversible transform approximation comprises, the data comprising at least one of image data and video data:
a first operation that receives the data as inputs and scales outputs asymmetrically;
a second operation that receives outputs from the first operation as inputs, and cancels the asymmetric scaling; and
a third operation that applies a rotation to outputs received from the second operation as inputs, wherein outputs of the third operation are orthonormally scaled compared to the inputs of the first operation.

### Claim 2 (depends on 1)

The method of claim 1 wherein:
the transform approximation is of a 4-point Discrete Cosine Transform (DCT) having four inputs and four outputs; and
the first operation is a butterfly-type transform stage receiving two of the DCT inputs, further wherein two outputs of the first operation are scaled by ½ and connected to the second operation, the second operation having two outputs.

### Claim 3 (depends on 1)

The method of claim 1 wherein:
the transform approximation is of an 8-point Discrete Cosine Transform (DCT) having eight inputs and eight outputs;
the first operation is a butterfly-type transform stage receiving a first two of the DCT inputs, the outputs of the first operation being scaled by ½ and connected to the second operation;
the second operation receives a second two of the inputs, the outputs of the second operation being scaled by ½ and connected to the third operation; and
the third operation comprising a third transform stage and a fourth transform stage, where a third two of the inputs are connected to the third transform stage, the outputs of which are scaled by ½ and connected to a fourth transform stage having two outputs.

### Claim 4 (depends on 1)

The method of claim 1 wherein:
the transform approximation is of an 2n point Discrete Cosine Transform (DCT) having 2n inputs and 2n orthonormally scaled outputs, where n is an integer; and
each pair of the 2n inputs are connected to a respective transform stage, the outputs from all but the last of which are scaled by a factor of ½ and connected to at least one further transform stage that collectively cancels the factor.

### Claim 5 (depends on 1)

The method of claim 1 wherein:
the transform approximation is of a 4-point Walsh-Hadamard Transform (WHT) having four inputs and four outputs; and
the first operation is a butterfly-type transform stage receiving two of the WHT inputs, further wherein two outputs of the first operation are scaled by ½ and connected to the second operation, the second operation having two outputs.

### Claim 6 (depends on 1)

The method of claim 1 wherein the transform approximation is of a Haar Wavelet Transform.

### Claim 7 (depends on 1)

The method of claim 1 wherein:
the transform approximation is of a 2n point reversible transform having 2n inputs and 2n orthonormally scaled outputs, where n is an integer;
each pair of the 2n inputs are connected to a respective transform stage, the outputs from all but the last of which are scaled by an asymmetrical factor and connected to at least one further transform stage that collectively cancels the asymmetrical factor; and
the outputs of the transform stages comprise the orthonormally scaled outputs of the transform.

### Claim 8

An apparatus for lossless encoding of data, comprising:
a plurality of inputs for receiving the data, the data comprising at least one of image data and video data; and
a reversible transform approximation block, connected to the inputs, having a same plurality of orthonormally scaled outputs,
wherein the reversible transform approximation block comprises:
a first operation that receives the data as inputs and scales outputs asymmetrically;
a second operation that receives outputs from the first operation as inputs, and cancels the asymmetric scaling; and
a third operation that applies a rotation to outputs received from the second operation as inputs, wherein outputs of the third operation are orthonormally scaled compared to the inputs of the first operation.

### Claim 9 (depends on 8)

The apparatus of claim 8 wherein:
the transform approximation block approximates a 4-point Discrete Cosine Transform (DCT) having four inputs and four outputs; and
the first operation is a butterfly-type transform stage receiving two of the DCT inputs, further wherein two outputs of the first operation are scaled by ½ and connected to the second operation, the second operation having two outputs.

### Claim 10 (depends on 8)

The apparatus of claim 8 wherein:
the transform approximation block approximates an 8-point Discrete Cosine Transform (DCT) having eight inputs and eight outputs;
the first operation is a butterfly-type transform stage receiving a first two of the DCT inputs, the outputs of the first operation being scaled by ½ and connected to the second operation;
the second operation receives a second two of the inputs, the outputs of the second operation being scaled by ½ and connected to the third operation; and
the third operation comprising a third transform stage and a fourth transform stage, where a third two of the inputs are connected to the third transform stage, the outputs of which are scaled by ½ and connected to a fourth transform stage having two outputs.

### Claim 11 (depends on 8)

The apparatus of claim 8 wherein:
the transform approximation block approximates an 2n point Discrete Cosine Transform (DCT) having 2n inputs and 2n orthonormally scaled outputs, where n is an integer;
each pair of the 2n inputs are connected to a respective transform stage, the outputs from all but the last of which are scaled by a factor of ½ and connected to at least one further transform stage that collectively cancels the factor; and
the outputs of the transform stages comprise the orthonormally scaled outputs of the transform approximation block.

### Claim 12 (depends on 8)

The apparatus of claim 8 wherein:
the transform approximation block approximates at least a 4-point Walsh-Hadamard Transform (WHT) having four inputs and four outputs; and
the first operation is a butterfly-type transform stage receiving two of the WHT inputs, further wherein two outputs of the first operation are scaled by ½ and connected to the second operation, the second operation having two outputs.

### Claim 13 (depends on 8)

The apparatus of claim 8 wherein the transform approximation block approximates a Haar Wavelet Transform.

### Claim 14 (depends on 8)

The apparatus of claim 8 wherein:
the transform approximation block approximates a 2n point reversible transform having 2n inputs and 2n orthonormally scaled outputs, where n is an integer;
each pair of the 2n inputs are connected to a respective transform stage, the outputs from all but the last of which are scaled by an asymmetrical factor and connected to at least one further transform stage that collectively cancels the asymmetrical factor; and
the outputs of the transform stages comprise the orthonormally scaled outputs of the transform approximation block.

### Claim 15

A computer program product for lossless encoding of data, comprising a non-transitory computer-readable medium having a computer-readable program code embodied therein to be executed by one or more processors, the program code including instructions to:
receive the data, the data comprising at least one of image data and video data; and
apply a reversible transform approximation having orthonormally scaled outputs to the received data, wherein the reversible transform approximation comprises:
a first operation that receives the data as inputs and scales outputs asymmetrically;
a second operation that receives outputs from the first operation as inputs, and cancels the asymmetric scaling; and
a third operation that applies a rotation to outputs received from the second operation as inputs, wherein outputs of the third operation are orthonormally scaled compared to the inputs of the first operation.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein:
the transform approximation is a 2n point reversible transform having 2n inputs and 2n orthonormally scaled outputs, where n is an integer;
each pair of the 2n inputs are connected to a respective transform stage, the outputs from all but the last of which are scaled by an asymmetrical factor and connected to at least one further transform stage that collectively cancels the asymmetrical factor; and
the outputs of the transform stages comprise the orthonormally scaled outputs of the transform.
