# US 2011/0254712 A1 · Methods and devices for reordered parallel entropy coding and decoding

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

- Number: US 2011/0254712 A1
- Document ID: US20110254712A1
- Status: Published application
- Kind: A1
- Application number: 13/089,599
- Filed: 2011-04-19
- Published: 2011-10-20
- Earliest claimed: 2010-04-19
- Assignees: Research In Motion Limited
- Inventors: Dake HE; Gaelle Christine MARTIN-COCHER; Gergely Ferenc KORODI
- Web page: https://patentgrep.com/patent/US20110254712A1

## CPC

- H03M 7/40: Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
- 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)

## Abstract

A method for parallel context modeling through reordering the bits of an input sequence to form groups of bits in accordance with a context model-specific reordering schedule. The reordering schedule is developed such that the groups of bits are formed to satisfy two conditions: first, that the context for each of the bits in a group of bits is different from the context of each of the other bits in that group, and the context of each of the bits in that group is determined independently from each of the other bits in that group. The parallel context modeling may be used in encoding or decoding operations.

## Claims

### Claim 1

A method for encoding of an input sequence of bits, the method comprising:
reordering the input sequence into groups of input bits in accordance with a predetermined reordering schedule;
for each group of input bits,
determining, in parallel, a context for each of the input bits in the group of input bits and associating a probability with that bit based on its context,
wherein the context for each of the input bits in the group is different from the context of each of the other input bits in the group, and the context of each of the input bits in the group is determined independently from the other input bits in the group; and
entropy encoding the input bits to generate an encoded subsequence.

### Claim 2 (depends on 1)

The method claimed in claim 1, wherein the reordering schedule defines the groups of input bits into which the bits of the input sequence are allocated in the reordering.

### Claim 3 (depends on 2)

The method claimed in claim 2, wherein the reordering schedule is determined offline and is based upon a predefined context model.

### Claim 4 (depends on 3)

The method claimed in claim 3, further comprising defining the reordering schedule.

### Claim 5 (depends on 1)

The method claimed in claim 1, wherein determining further includes assigning each bit in the group of input bits to one of a plurality of parallel entropy coders based on its associated probability.

### Claim 6

An encoder for encoding an input sequence of symbols, the symbols belonging to a finite alphabet, the encoder comprising:
a processor;
a memory; and
an encoding application stored in memory and containing instructions for configuring the processor to
reorder the input sequence into groups of input bits in accordance with a predetermined reordering schedule;
for each group of input bits,
determine, in parallel, a context for each of the input bits in the group of input bits and associating a probability with that bit based on its context,
wherein the context for each of the input bits in the group is different from the context of each of the other input bits in the group, and the context of each of the input bits in the group is determined independently from the other input bits in the group; and
entropy encode the input bits to generate an encoded subsequence.

### Claim 7 (depends on 6)

The encoder claimed in claim 6, wherein the reordering schedule defines the groups of input bits into which the bits of the input sequence are allocated in the reordering.

### Claim 8 (depends on 7)

The encoder claimed in claim 7, wherein the reordering schedule is determined offline and is based upon a predefined context model, and wherein the memory stores the reordering schedule.

### Claim 9 (depends on 6)

The encoder claimed in claim 6, wherein the encoder includes a plurality of parallel entropy coders, and wherein the processor is configured to assign each bit in the group of input bits to one of the parallel entropy coders based on its associated probability.

### Claim 10

A method for decoding a bitstream of encoded data to reconstruct a sequence of bits, the method comprising:
decoding the bitstream of encoded data to produce decoded groups of bits, wherein, for each group of bits, the decoding to produce that group of bits includes determining a context for each bit in that group of bits and associating a probability with that bit based on its context, and wherein the context for each of the bits in that group of bits is different from the context of each of the other bits in that group, and the context of each of the bits in that group is determined independently from each of the other bits in that group; and
reordering the bits of the groups of bits based on a predetermined reordering schedule to produce the reconstructed sequence of bits.

### Claim 11 (depends on 10)

The method claimed in claim 10, wherein the reordering schedule defines the groups of bits and the manner in which the bits in the groups of bits are reordered to produce the reconstructed sequence of bits.

### Claim 12 (depends on 11)

The method claimed in claim 11, wherein the reordering schedule is determined offline and is based upon a predefined context model.

### Claim 13 (depends on 12)

The method claimed in claim 12, further comprising defining the reordering schedule.

### Claim 14

A decoder for decoding encoded data for decoding a bitstream of encoded data to reconstruct a sequence of symbols, the symbols belonging to a finite alphabet, the decoder comprising:
a processor;
a memory; and
a decoding application stored in memory and containing instructions for configuring the processor to
decode the bitstream of encoded data to produce decoded groups of bits, wherein, for each group of bits, the decoding to produce that group of bits includes determining a context for each bit in that group of bits and associating a probability with that bit based on its context, and wherein the context for each of the bits in that group of bits is different from the context of each of the other bits in that group, and the context of each of the bits in that group is determined independently from each of the other bits in that group; and
reorder the bits of the groups of bits based on a predetermined reordering schedule to produce the reconstructed sequence of bits.

### Claim 15 (depends on 14)

The decoder claimed in claim 14, wherein the reordering schedule defines the groups of bits and the manner in which the bits in the groups of bits are reordered to produce the reconstructed sequence of bits.

### Claim 16 (depends on 15)

The decoder claimed in claim 15, wherein the reordering schedule is determined offline and is based upon a predefined context model, and wherein the memory stores the reordering schedule.

### Claim 17 (depends on 1)

A computer readable medium storing computer-executable instructions for configuring a processor to perform the method claimed in claim 1.

### Claim 18 (depends on 10)

A computer readable medium storing computer-executable instructions for configuring a processor to perform the method claimed in claim 10.
