# US 2004/0070523 A1 · Matrix improvements to lossless encoding and decoding

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

- Number: US 2004/0070523 A1
- Document ID: US20040070523A1
- Status: Published application
- Kind: A1
- Application number: 10/643,073
- Filed: 2003-08-18
- Published: 2004-04-15
- Earliest claimed: 1999-04-07
- Assignees: Dolby Laboratories Licensing Corporation
- Inventors: Peter Graham Craven; Malcolm James Law; John Robert Stuart
- Web page: https://patentgrep.com/patent/US20040070523A1

## CPC

- H04H 20/88: Stereophonic broadcast systems {(multiplex system in general H04J)}
- G11B 20/00992: {Circuits for stereophonic or quadraphonic recording or reproducing}
- G11B 20/10527: {Audio or video recording; Data buffering arrangements (G11B20/12 - G11B20/18 take precedence)}
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H04N 5/76: Television signal recording
- H04S 3/02: of the matrix type, i.e. in which input signals are combined algebraically, e.g. after having been phase shifted with respect to each other
- G11B 20/00007: {Time or data compression or expansion (audio compression based on psychoacoustics G10L19/00; data processing for reproducing audio data at different playback speeds G10L21/04; video compression H04N19/00; data compression per se H03M7/30)}
- G11B 2020/00014: {the compressed signal being an audio signal}
- G11B 2020/10546: {specifically adapted for audio data}
- G11B 2220/2562: DVDs [digital versatile discs]; Digital video discs; MMCDs; HDCDs
- H04S 2420/03: Application of parametric coding in stereophonic audio systems
- H04H: BROADCAST COMMUNICATION (multiplex communication H04J; pictorial communication aspects of broadcast systems H04N)
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)
- 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
- H04S: STEREOPHONIC SYSTEMS

## Abstract

A lossless encoder and decoder are provided for transmitting a multichannel signal on a medium such as DVD-Audio. The encoder accepts additionally a downmix specification and splits the encoded stream into two substreams, such that a two-channel decoder of meagre computational power can implement the downmix specification by decoding one substream, while a multichannel decoder can decode the original multichannel signal losslessly using both substreams. Further features provide for efficient implementation on 24-bit processors, for confirmation of lossless reproduction to the user, and for benign behaviour in the case of downmix specifications that result in overload. The principle is also extended to mixed-rate signals, where for example some input channels are sampled at 48 kHz and some are sampled at 96 kHz

## Claims

### Claim 1

A decoder comprising:
an input for a number N of encoded input channels,
a matrix for transforming the input channels and implemented as a cascade of primitive matrix quantisers, the matrix providing the number N of matrix output channels,
a re-mapping arrangement arranged such that a number N of decoder output channels are ordered in response to channel ordering information derived from the input channels.

### Claim 2 (depends on 1)

A decoder as claimed in claim 1, wherein the re-mapping arrangement is provided after the matrix.

### Claim 3 (depends on 1)

A decoder as claimed in claim 1, wherein the re-mapping arrangement is provided before the matrix.

### Claim 4 (depends on 1)

A decoder as claimed in claim 1, wherein the number N is six, and the encoded channels comprise the left-front, right-front, left-surround, right-surround, centre and low-frequency-effects channels of a six channel audio signal.

### Claim 5

An encoder comprising:
a number N of input channels;
a reordering arrangement for permuting the channels;
a matrix for transforming the input channels and implemented as a cascade of primitive matrix quantisers, the matrix providing the number N of matrix output channels as a stream of encoded information formatted as a plurality of substreams, the data in the first substream comprising a strict subset of the outputs of the matrix and containing sufficient information for implementation of a downmix specification; and
means for encoding the selected permutation into the encoded output stream.

### Claim 6 (depends on 5)

An encoder as claimed in claim 5, wherein the reordering arrangement is responsive to the downmix specification.

### Claim 7 (depends on 5)

An encoder as claimed in claim 5 providing lossless compression, and further comprising at least one primitive matrix quantiser that modifies a channel that is not fed to the first substream, wherein the coefficients of that primitive matrix are chosen with the object of reducing the data rate of the encoded stream.

### Claim 8

A computer memory product having stored thereon an encoded audio data signal, the encoded audio data signal comprising a number N of encoded audio channels which have been encoded by a matrix transformation, the encoded audio data further comprising channel ordering information, wherein the channel ordering information is provided for causing reordering of the channels at the input or output of a matrix transformation unit of a decoder for decoding the audio data.

### Claim 9

An encoded audio data signal provided on a carrier, the encoded audio data signal comprising a number N of encoded audio channels which have been encoded by a matrix transformation, the encoded audio data further comprising channel ordering information, wherein the channel ordering information is provided for causing reordering of the channels at the input or output of a matrix transformation unit of a decoder for decoding the audio data.

### Claim 10

A method of encoding a number N of input channels comprising:
permuting the channels;
applying a matrix transformation to the reordered input channels using a cascade of primitive matrix quantisers, the matrix providing the number N of matrix output channels as a stream of encoded information formatted as a plurality of substreams, the data in the first substream comprising a strict subset of the outputs of the matrix and containing sufficient information for implementation of a downmix specification; and
encoding the selected permutation into the encoded output stream, wherein the permutation of the channels takes into account the downmix specification.

### Claim 11

A method of decoding a number N of input channels, the method comprising:
applying an inverse matrix transformation to the input channels using a cascade of primitive matrix quantisers, the matrix providing the number N of matrix output channels;
obtaining channel ordering information from the encoded input channels; and
permuting the matrix output channels in dependence on the channel ordering information.

### Claim 12

A decoder comprising:
an input for an encoded stream comprising a plurality of encoded channels;
at least a first primitive matrix quantiser that modifies a first channel;
a multiplier for multiplying the first channel by a gain coefficient; and
a combiner for combining the multiplied first channel signal with additional least significant bits recovered from the encoded stream,
wherein the gain coefficient is selectable by the decoder based on information in the encoded stream, and may take a number of values including one or more values which are not powers of two.

### Claim 13 (depends on 12)

A decoder as claimed in claim 12, wherein the modified first channel is a linear combination of the channels input to the primitive matrix quantiser.

### Claim 14 (depends on 12)

A decoder as claimed in claim 12, wherein the combiner comprises an adder.

### Claim 15

An encoder for encoding a plurality of channels, the encoder comprising:
at least a first primitive matrix quantiser that modifies a first channel;
a multiplier for multiplying the first channel by a gain coefficient within the first primitive matrix quantiser;
means for recovering any least significant bits which result from the multiplication which exceed a number of bits allocated to the channel; and
means for storing the recovered least significant bits, the multiplied modified first channel and a parameter representing the gain coefficient to enable future decoding, wherein the gain coefficient may take a number of values including one or more values which are not powers of two.

### Claim 16

A computer memory product having stored thereon an encoded audio data signal, the encoded audio data signal comprising a number N of encoded audio channels which have been encoded by a matrix transformation, the encoded audio data further comprising a parameter indicating a gain coefficient for at least one channel, and the encoded audio signal further comprising additional least significant bits for the at least one channel, wherein the gain coefficient is provided for causing multiplication of the channel within a matrix transformation unit of a decoder for decoding the audio data, and the additional least significant bits are provided for combination with the multiplied channel, and wherein the gain coefficient and may take a number of values including one or more values which are not powers of two.

### Claim 17 (depends on 16)

A computer memory product as claimed in claim 16, wherein N=6.

### Claim 18

An encoded audio data signal provided on a carrier, the encoded audio data signal comprising a number N of encoded audio channels which have been encoded by a matrix transformation, the encoded audio data further comprising a parameter indicating a gain coefficient for at least one channel, and the encoded audio signal further comprising additional least significant bits for the at least one channel, wherein the gain coefficient is provided for causing multiplication of the channel within a matrix transformation unit of a decoder for decoding the audio data, and the additional least significant bits are provided for combination with the multiplied channel, and wherein the gain coefficient may take a number of values including one or more values which are not powers of two.

### Claim 19

A method of decoding an encoded stream comprising a plurality of encoded channels, the method comprising:
applying an inverse matrix transformation to the input channels using a cascade of primitive matrix quantisers, a first primitive matrix quantiser being used to modify a first channel;
within the first primitive matrix quantiser, multiplying the first channel by a gain coefficient derived from information in the encoded stream; and
combining the multiplied first channel signal with additional least significant bits recovered from the encoded stream, wherein the gain coefficient may take a number of values including one or more values which are not powers of two.

### Claim 20 (depends on 19)

A method as claimed in claim 19, wherein the combining comprises adding.

### Claim 21

A method of encoding a plurality of input channels, the method comprising:
applying a matrix transformation to the input channels using a cascade of primitive matrix quantisers, a first primitive matrix quantiser being used to modify a first channel;
within the first primitive matrix quantiser, multiplying the first channel by a gain coefficient,
recovering any additional least significant bits which result from the multiplication which exceed a number of bits allocated to the channel; and
storing the additional least significant bits, the multiplied modified first channel and a parameter indicating the gain coefficient to enable fixture decoding, wherein the gain coefficient may take a number of values including one or more values which are not powers of two.

### Claim 22

An encoder apparatus for a lossless compression system furnishing an encoded compressed stream having at least two substreams, one of which provides a two-channel downmix signal and the other provides a multichannel digital signal, the encoder comprising:
an input for the multichannel digital signal,
an input for receiving a specification for the two-channel downmix signal; and
means for computing a first check value relating to a portion of downmix signal and inserting the first check value in a first substream and for computing a second check value relating to a portion of the multichannel signal and inserting the second check value in a second substream.

### Claim 23 (depends on 22)

An encoder apparatus as claimed in claim 22 further comprising a downmix signal output enabling the downmix signal to be auditioned.

### Claim 24

A decoder apparatus for decoding a losslessly compressed encoded signal, the decoder comprising:
an input for a multichannel encoded digital signal;
means for computing a first check value relating to a portion of the multichannel signal,
means for retrieving a second check value from the encoded stream relating to said portion of the multichannel signal;
a comparator arrangement for comparing the first and second check values; and
an output device for providing a flag indicating whether the check values agree.

### Claim 25 (depends on 22, 23, 24)

An apparatus as claimed in any one of claims 22 to 24 comprising a digital signal processor for implementing each computation of a check value as a bitwise parity operation on the binary representations of the signal words in a segment of the signal, the binary words being rotated in dependence on the channel number before the parity is computed.

### Claim 26 (depends on 24)

A player for a consumer disc comprising a decoder according to claim 24, wherein the output device comprises a visible indicator, and wherein the player further comprises a pulse-stretching circuit for providing a drive signal for the visible indicator, configured such that a lack of agreement between the first and the second check values for a time period shorter than a threshold level results in a visible indication for a time period longer than the threshold level.

### Claim 27 (depends on 22)

An apparatus comprising an encoder as claimed in claim 22 and a prequantiser, the encoder providing as outputs an encoded compressed stream and a prequantised signal that can be auditioned, wherein the check value inserted in the compressed stream is computed from the prequantised signal.

### Claim 28

A two-channel lossless decoder receiving as input an encoded stream, the decoder comprising:
a decoder core to which the stream is supplied to generate a two-channel decoded signal;
a shifter at the output of the decoder core for applying an arithmetic shift in response to information in the encoded stream; and
a signal limiting device at the output of the shifter, the shifter and the limiting device providing limitation of the wordwidth at the output of the decoder.

### Claim 29 (depends on 28)

A decoder as claimed in claim 28, wherein the encoded input stream comprises at least two substreams, which together define a multi-channel encoded audio signal having more than two channels, and wherein one of the substreams is supplied to generate the two-channel decoded signal.

### Claim 30 (depends on 28, 29)

A decoder as claimed in claim 28 or 29 wherein the limiting device comprises a clipper which stores the output of the arithmetic shift using saturation arithmetic.

### Claim 31

An encoder comprising:
an input for receiving a multi-channel signal having a first input channel or channels sampled at a first rate and a second input channel or channels sampled at a higher rate equal to twice the lower rate;
a device for increasing the sampling rate of the or each first input channel to the higher rate; and
a lossless encoder which receives the first and second channels at the higher rate, for generating an encoded stream.

### Claim 32 (depends on 31)

An encoder as claimed in claim 31 further comprising means for inserting sample rate information into the encoded stream indicating, for each decoded channel, whether the corresponding input channel was sampled at the first or at the second rate.

### Claim 33 (depends on 32)

An encoder as claimed in claim 32, wherein each device for increasing the sampling rate comprises half band filters providing a first plurality of samples corresponding to the input signal and a second plurality of interpolated samples.

### Claim 34 (depends on 33)

An encoder as claimed in claim 33, wherein the means for inserting sampling rate information indicates which decoded samples correspond to the input signal.

### Claim 35 (depends on 31, 32, 33, 34)

An encoder as claimed in any one of claims 31 to 34 further comprising delay elements in the signal paths of the higher rate channels that substantially compensate the delays introduced by the sample rate increase of the lower rate channels.

### Claim 36 (depends on 33, 34)

A decoder comprising an input for an encoded stream produced by the encoder of claim 33 or 34 and furnishing a multichannel output, wherein the decoded samples of the lower-rate channels that do not correspond to original samples of the input channels are discarded, thereby furnishing an output identical to the multi-channel signal originally presented to the encoding apparatus.

### Claim 37

A computer memory product having stored thereon an encoded audio data signal, the encoded audio data signal comprising a plurality of encoded audio channels representing channel signals sampled either at a first sampling rate or at a higher second sampling rate which is double the first sampling rate, wherein the encoded audio channels are all sampled at the second higher rate, and wherein additional information is provided for each channel indicating whether the channel signal was sampled at the first or the second rate.

### Claim 38 (depends on 37)

A computer memory product as claimed in claim 37 wherein the additional information further indicates, for those encoded channels representing channel signals sampled at the first rate, which decoded samples correspond to the input signal.

### Claim 39

An encoded audio data signal provided on a carrier, the encoded audio data signal comprising a plurality of encoded audio channels representing channel signals sampled either at a first sampling rate or at a higher second sampling rate which is double the first sampling rate, wherein the encoded audio channels are all sampled at the second higher rate, and wherein additional information is provided for each channel indicating whether the channel signal was sampled at the first or the second rate.

### Claim 40 (depends on 39)

An encoded audio data signal provided on a carrier as claimed in claim 39, wherein the additional information further indicates, for those encoded channels representing channel signals sampled at the first rate, which decoded samples correspond to the input signal.

### Claim 41

An encoder comprising:
inputs for a multichannel digital signal and for a downmix specification, comprising; and
a matrix implemented as a cascade of primitive matrix quantisers and furnishing a stream of encoded information formatted as a plurality of substreams, the data in the first substream being taken from a strict subset of the outputs of the matrix and containing sufficient information for implementation of the downmix specification; wherein the matrix comprises:
a first primitive matrix having terms computed with respect to the specification for a first downmix channel, such that an output of the first primitive matrix is substantially the first downmix channel multiplied by a scaling factor; and
a second primitive matrix having terms computed such that a coefficient multiplying the output of the first primitive matrix is substantially zero.

### Claim 42 (depends on 41)

An encoder as claimed in claim 41, wherein the first primitive matrix modifies an input channel having substantially the largest coefficient in the specification for the first downmix channel.

### Claim 43

An encoder comprising:
inputs for a multichannel digital signal and for a downmix specification; and
a matrix implemented as a cascade of primitive matrix quantisers and furnishing a stream of encoded information formatted as a plurality of substreams, the data in the first substream being taken from a strict subset of the outputs of the matrix and containing sufficient information for implementation of the downmix specification, wherein the matrix defining the channels transmitted in the first substream in terms of the channels of the multichannel signal has rows that are substantially orthogonal to each other.

### Claim 44

An encoder comprising:
inputs for a multichannel digital signal and for a downmix specification; and
a matrix implemented as a cascade of primitive matrix quantisers and finishing a stream of encoded information formatted as a plurality of substreams, the data in the first substream being taken from a strict subset of the outputs of the matrix and containing sufficient information for implementation of the downmix specification, wherein the cross-correlation between the transmitted channels of the first substream is substantially zero.

### Claim 45 (depends on 44)

An encoder as claimed in claim 44, wherein said cross-correlation is given a spectral weighting that emphasises the frequency bands that contribute substantially to the transmitted data rate.

### Claim 46 (depends on 45)

An encoder as claimed in claim 45, wherein said cross-correlation is given a spectral weighting substantially as defined by the digital filter (1−z−1)n, where n=1, 2 or 3.

### Claim 47

In a lossless encoder comprising two or more input channels and transmitting output signals that are linear combinations of the input channels, a method of determining the output signals for transmission, comprising the steps of:
(i) establishing a first list of input channels, and a second list defining output signals determined for transmission;
(ii) deleting one channel from the first list and choosing a linear combination of the remaining channels in the first list and of the output signals determined for transmission, the linear combination being chosen substantially to minimise an entropy measure for a difference signal equal to the difference between said one channel and the linear combination;
(iii) applying a scaling factor to the difference signal to obtain a scaled difference signal;
(iv) allocating the scaled difference signal as an output signal for transmission, and including a definition of that output signal in the second list; and
(v) repeating steps (ii) to (iv) for a further input channel or channels.

### Claim 48 (depends on 47)

A method as claimed in claim 47, wherein the definition of the output signal comprises the output signal itself.

### Claim 49 (depends on 47)

A method as claimed in claim 47, wherein the definition of the output signal comprises matrix specifications enabling the output signal to be calculated.

### Claim 50 (depends on 47)

A method as claimed.in claim 47, wherein the first list is initially equal to the entire set of input channels, and the second list is initially empty.

### Claim 51 (depends on 47)

A method as claimed in claim 47, wherein the second list initially contains signals that allow a downmix to be recovered, and the first list contains a subset of the set of input channels.

### Claim 52 (depends on 47)

A method as claimed in claim 47, in which the step of deleting one channel comprises selecting a channel for deletion from the first list for which the absolute magnitudes of the coefficients in the linear combination do not exceed a predetermined limit.

### Claim 53 (depends on 47)

A method as claimed in claim 47, in which the step of deleting one channel comprises selecting a channel having the smallest energy.

### Claim 54 (depends on 47)

A method as claimed in claim 47, in which said scaling factor is +1 or −1.

### Claim 55 (depends on 47)

A method as claimed in claim 47, in which said scaling factor is +½ or−½.

### Claim 56 (depends on 47)

A method as claimed in claim 47, in which said entropy measure is energy.

### Claim 57 (depends on 47)

A method as claimed in claim 47, in which said entropy measure is energy calculated with a spectral weighting that emphasises the frequency bands that contribute substantially to the data rate of a compressed output stream of the encoder.

### Claim 58 (depends on 47)

A method as claimed in claim 47, in which said entropy measure is energy calculated with a spectral weighting substantially as defined by the digital filter (1−z−1)n, where n=1, 2 or 3.

### Claim 59 (depends on 47)

A method as claimed in claim 47, in which calculation of the scaled difference signal is performed by a primitive matrix quantiser.

### Claim 60 (depends on 47)

A method as claimed in claim 47, in which the scaling factor has a magnitude of less than unity, and in which additional least significant bits recovered following the scaling operation are provided as an output signal for transmission.

### Claim 61 (depends on 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60)

A method of encoding two or more channels to produce output signals for transmission that are linear combinations of the input channels, the method comprising:
determining the output signals for transmission using the method of any one of claims 47 to 60; and
calculating the determined output signals.

### Claim 62

A method of encoding a multichannel signal containing input channels and a downmix specification, comprising the steps of:
choosing a first input channel having substantially the largest coefficient in the specification of a downmix channel; and
scaling down the first input channel using a primitive matrix quantiser in which the coefficient of the first channel is less than unity and the coefficients of the other input channels are substantially zero.

### Claim 63 (depends on 62)

A method as claimed in claim 62, in which additional least significant bits recovered following the scaling operation are provided as an output signal for transmission.
