CPC H04N 19/124 (2014.11) [H04N 19/105 (2014.11); H04N 19/129 (2014.11); H04N 19/176 (2014.11); H04N 19/61 (2014.11); H04N 19/80 (2014.11); H04N 19/86 (2014.11)] | 13 Claims |
1. A method for selecting a context model of a quantized coefficient end flag, comprising:
obtaining a scanning position POS of a non-zero coefficient corresponding to current quantized coefficient end flag in a specific scanning order; wherein the scanning position POS is a subscript of the non-zero coefficient in the scanning order;
configuring a first context model array, and using a fixed value as the base to calculate the logarithmic value of the value of the scanning position POS plus 1, and according to the logarithmic value, selecting a first context model from the first context model array; and using the first context model to encode or decode a binary symbol of the current quantized coefficient end flag.
|