Methods and devices for coding binary symbols as n-tuples
AssigneeBlackBerry Limited
InventorsNguyen NGUYEN, Dake HE
Life of this patent
Estimating the term…
Abstract
Methods and devices for reconstructing coefficient levels from a bitstream of encoded video data for a coefficient group in a transform unit. Greater-than-one flags are encoded by grouping them into tuples and by encoding a tuple-based value that is a function of the greater-than-one flags within that tuple. The tuple-based value may permit the decoder to infer the greater-than-one flags in some cases, in which case they are not encoded in the bitstream.
Claims22
A method of encoding video in a video encoder to output a bitstream of encoded data for a coefficient group containing a plurality of transform domain coefficients, the method comprising:
- encoding a significant-coefficient flag for each of the transform domain coefficients in a scan order within the coefficient group, each significant-coefficient flag having a corresponding greater-than-one flag;
- partitioning the greater-than-one flags into a plurality of non-overlapping n-tuples of greater-than-one flags, each n-tuple corresponding to n consecutive significant-coefficient flags in the scan order, wherein n is greater than one;
- and
- for each n-tuple, determining a tuple value based on the greater-than-one flags in the n-tuple and on the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple, and
- if the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple are all zero, foregoing encoding the tuple value, and
- otherwise, encoding the tuple value in the bitstream.
A method of decoding a bitstream of encoded video in a video decoder to reconstruct a plurality of transform domain coefficients for a coefficient group, the method comprising:
- decoding a significant-coefficient flag for each of the transform domain coefficients in a scan order within the coefficient group, each significant-coefficient flag having a corresponding greater-than-one flag;
- based on a partitioning of the greater-than-one flags into a plurality of non-overlapping n-tuples of greater-than-one flags, each n-tuple corresponding to n consecutive significant-coefficient flags in the scan order, reconstructing a tuple value for each n-tuple, based on the greater-than-one flags in the n-tuple and on the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple, wherein,
- if the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple are all zero, the tuple value is inferred, without decoding, to be zero, and
- otherwise, decoding the tuple value from the bitstream,
- and wherein n is greater than one;
- and
- reconstructing the greater-than-one flags based on the reconstructed tuple values.
An encoder for encoding video in a video encoder to output a bitstream of encoded data for a coefficient group containing a plurality of transform domain coefficients, the encoder comprising:
- a processor;
- a memory;
- and
- an encoding application stored in memory and containing instructions that, when executed by the processor, are to cause the processor to
- encode a significant-coefficient flag for each of the transform domain coefficients in a scan order within the coefficient group, each significant-coefficient flag having a corresponding greater-than-one flag,
- partition the greater-than-one flags into a plurality of non-overlapping n-tuples of greater-than-one flags, each n-tuple corresponding to n consecutive significant-coefficient flags in the scan order, wherein n is greater than one, and
- for each n-tuple, determine a tuple value based on the greater-than-one flags in the n-tuple and on the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple, and
- if the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple are all zero, forego encoding the tuple value, and
- otherwise, encode the tuple value in the bitstream.
A decoder for decoding a bitstream of encoded video in a video decoder to reconstruct a plurality of transform domain coefficients for a coefficient group, the decoder comprising:
- a processor;
- a memory;
- and
- a decoding application stored in memory and containing instructions that, when executed by the processor, are to cause the processor to
- decode a significant-coefficient flag for each of the transform domain coefficients in a scan order within the coefficient group, each significant-coefficient flag having a corresponding greater-than-one flag,
- based on a partitioning of the greater-than-one flags into a plurality of non-overlapping n-tuples of greater-than-one flags, each n-tuple corresponding to n consecutive significant-coefficient flags in the scan order, reconstruct a tuple value for each n-tuple, based on the greater-than-one flags in the n-tuple and on the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple, wherein,
- if the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple are all zero, the tuple value is inferred, without decoding, to be zero, and
- otherwise, decoding the tuple value from the bitstream,
- and wherein n is greater than one, and
- reconstructing the greater-than-one flags based on the reconstructed tuple values.
A non-transitory processor-readable medium storing processor-executable instructions for encoding video in a video encoder to output a bitstream of encoded data for a coefficient group containing a plurality of transform domain coefficients, wherein the instructions, when executed, are to cause one or more processors to:
- encode a significant-coefficient flag for each of the transform domain coefficients in a scan order within the coefficient group, each significant-coefficient flag having a corresponding greater-than-one flag;
- partition the greater-than-one flags into a plurality of non-overlapping n-tuples of greater-than-one flags, each n-tuple corresponding to n consecutive significant-coefficient flags in the scan order, wherein n is greater than one;
- and
- for each n-tuple, determine a tuple value based on the greater-than-one flags in the n-tuple and on the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple, and
- if the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple are all zero, forego encoding the tuple value, and
- otherwise, encode the tuple value in the bitstream.
A non-transitory processor-readable medium storing processor-executable instructions for decoding a bitstream of encoded video in a video decoder to reconstruct a plurality of transform domain coefficients for a coefficient group, wherein the instructions, when executed, are to cause one or more processors to:
- decode a significant-coefficient flag for each of the transform domain coefficients in a scan order within the coefficient group, each significant-coefficient flag having a corresponding greater-than-one flag,
- based on a partitioning of the greater-than-one flags into a plurality of non-overlapping n-tuples of greater-than-one flags, each n-tuple corresponding to n consecutive significant-coefficient flags in the scan order, reconstruct a tuple value for each n-tuple, based on the greater-than-one flags in the n-tuple and on the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple, wherein,
- if the significant-coefficient flags corresponding to the greater-than-one flags in the n-tuple are all zero, the tuple value is inferred, without decoding, to be zero, and
- otherwise, decoding the tuple value from the bitstream,
- and wherein n is greater than one, and
- reconstructing the greater-than-one flags based on the reconstructed tuple values.
Dependencies are inferred from the claim text.