Picture coding method and picture decoding method
View Patent ↗The method includes the following units: a coefficient number detecting unit ( 109 ) for detecting the number of coefficients which has a value other than 0 for each block according to the generated coefficient, a coefficient number storing unit ( 110 ) for storing the number of coefficients detected, a coefficient number coding unit ( 111 ) for selecting a table for variable length coding based on the numbers of coefficients in the coded blocks located on the periphery of a current block to be coded with reference to the selected table for variable length coding so as to perform variable length coding for the number of coefficients.
1. A coding method for coding an image on a block basis, the method comprising:
determining a predictive value for a total number of non-zero coefficients included in a current block to be coded based on a total number of non-zero coefficients included in a coded block located above the current block and a total number of non-zero coefficients included in a coded block located to the left of the current block, wherein each non-zero coefficient is a transform coefficient having a level value other than “0”;
selecting a variable length code table based on the determined predictive value; and
coding the total number of non-zero coefficients included in the current block by using the selected variable length code table,
wherein the predictive value is determined to be a value of “0” when upper and left boundaries of the current block are a boundary of a slice which is one of a plurality of sections into which the picture is divided.
2. A coding method for coding an image on a block basis, the method comprising:
determining a predictive value for a total number of non-zero coefficients included in a current block to be coded based on a total number of non-zero coefficients included in a coded block located above the current block and a total number of non-zero coefficients included in a coded block located to the left of the current block, wherein each non-zero coefficient is a transform coefficient having a level value other than “0”;
selecting a variable length code table based on the determined predictive value; and
coding the total number of non-zero coefficients included in the current block by using the selected variable length code table,
wherein the predictive value is determined to be a value of “0” when the two coded blocks located above and to the left of the current block are located outside a slice including the current block.