Patent ID: 11949868
Assignee: PEKING UNIVERSITY SHENZHEN GRADUATE SCHOOL
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 5:
6. The method of claim 5, wherein, the step of selecting a second context model, comprising:
configuring a second context model array with an arbitrary length, and preseting a variable and a default value;
if current non-zero coefficient is the first non-zero coefficient in the scanning order, the value of the variable is equal to the default value;
if current non-zero coefficient is a non-zero coefficient after the first non-zero coefficient in the scanning order, the value of the variable is equal to the value of the previous non-zero coefficient of the current non-zero coefficient in the scanning order;
correcting the value of the variable to the length value of the second context model array if the value of the variable is greater than the length value of the second context model array;
subtracting 1 from the value of the variable to get an index value, and selecting a second context model whose subscript is equal to the index value from the second context model array according to the index value.