Reducing the number of regular coded bins in entropy coding in video encoding and decoding
To encode with CABAC, a non-binary syntax element value is mapped to a binary sequence (bin string), through a binarization process. A binary arithmetic coding engine encodes or decodes a bin, in a regular (context-based) mode and a bypass mode.
1 . A method, comprising:
decoding a plurality of binary symbols representing a syntax element, wherein one or more binary symbols at beginning of said plurality of binary symbols are entropy decoded using a bypass mode, and wherein the rest of said plurality of binary symbols is entropy decoded in a context-based mode; and
obtaining said syntax element from said plurality of binary symbols, based on a binarization scheme.
2 . The method of claim 1 , wherein said binarization scheme is a truncated Rice binarization scheme.
3 . The method of claim 1 , wherein said syntax element indicates, from a set of weighting factors, a weighting factor for weighting one of two predictors when forming a weighted sum of said two predictors.
4 . The method of claim 3 , wherein another weighting factor is obtained responsive to said weighting factor, said another weighting factor used in weighting another one of said two predictors when forming said weighted sum.
5 . The method of claim 1 , wherein each binary symbol of said rest of said plurality of binary symbols uses a different context model.
6 . A method, comprising:
accessing a block to be encoded; and
encoding a syntax element,
wherein a plurality of binary symbols representing said syntax element are obtained based on a binarization scheme,
wherein one or more binary symbols at beginning of said plurality of binary symbols are entropy encoded using a bypass mode, and
wherein the rest of said plurality of binary symbols is entropy encoded in a context-based mode.
7 . The method of claim 6 , wherein said binarization scheme is a truncated Rice binarization scheme.
8 . The method of claim 6 , wherein said syntax element indicates, from a set of weighting factors, a weighting factor for weighting one of two predictors when forming a weighted sum of said two predictors.
9 . The method of claim 8 , wherein another weighting factor is obtained responsive to said weighting factor, said another weighting factor used in weighting another one of said two predictors when forming said weighted sum.
10 . The method of claim 6 , wherein each binary symbol of said rest of said plurality of binary symbols uses a different context model.
11 . An apparatus, comprising one or more processors, wherein said one or more processors are configured to:
decode a plurality of binary symbols representing a syntax element, wherein one or more binary symbols at beginning of said plurality of binary symbols are entropy decoded using a bypass mode, and wherein the rest of said plurality of binary symbols is entropy decoded in a context-based mode; and
obtain said syntax element from said plurality of binary symbols, based on a binarization scheme.
12 . The apparatus of claim 11 , wherein said binarization scheme is a truncated Rice binarization scheme.
13 . The apparatus of claim 11 , wherein said syntax element indicates, from a set of weighting factors, a weighting factor for weighting one of two predictors when forming a weighted sum of said two predictors.
14 . The apparatus of claim 13 , wherein another weighting factor is obtained responsive to said weighting factor, said another weighting factor used in weighting another one of said two predictors when forming said weighted sum.
15 . The apparatus of claim 11 , wherein each binary symbol of said rest of said plurality of binary symbols uses a different context model.
16 . An apparatus, comprising one or more processors, wherein said one or more processors are configured to:
access a block to be encoded; and
encode a syntax element,
wherein a plurality of binary symbols representing a syntax element are obtained based on a binarization scheme,
wherein one or more binary symbols at beginning of said plurality of binary symbols are entropy encoded using a bypass mode, and
wherein the rest of said plurality of binary symbols is entropy encoded in a context-based mode.
17 . The apparatus of claim 16 , wherein said binarization scheme is a truncated Rice binarization scheme.
18 . The apparatus of claim 16 , wherein said syntax element indicates, from a set of weighting factors, a weighting factor for weighting one of two predictors when forming a weighted sum of said two predictors.
19 . The apparatus of claim 18 , wherein another weighting factor is obtained responsive to said weighting factor, said another weighting factor used in weighting another one of said two predictors when forming said weighted sum.
20 . The apparatus of claim 16 , wherein each binary symbol of said rest of said plurality of binary symbols uses a different context model.