Patent ID: 9635366
Date: 2017-04-25
CPC Classifications: H04N

Claim:
1. A quantization method comprising: performing, by a computer, scaling on transform coefficients of a target block of a moving picture in a compression coding processing; quantizing scaled transform coefficients to obtain a plurality of quantization coefficients; and performing, in parallel, calculations for the respective quantization coefficients to obtain respective coefficient absolute values in a rate distortion optimized quantization operation, each of the calculations in which: a second code amount of a coded element for each of a plurality of coefficient absolute value candidates of the respective quantization coefficients is obtained by binarizing the coded element under one of a first condition and a second condition, the first condition indicating a presence of the coded element, the second condition for selecting the presence of the coded element according to at least one of the plurality of coefficient absolute value candidates, a coefficient position, and a parameter, wherein the parameter is at least one of a picture type, information indicating a picture to be coded in a reference structure, a prediction mode, a quantization parameter, and a scaling list; a first code amount of the target block for each of the plurality of coefficient absolute value candidates is calculated based on the second code amount of the coded element; a cost of coding the target block for each of the plurality of coefficient absolute value candidates is calculated based on the first code amount of the target block and a quantization error; and a coefficient absolute value candidate having a least cost is selected as a coefficient absolute value from among the plurality of coefficient absolute value candidates.