Picture coding method and picture decoding method
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 method for managing content in a communication system, the method comprising:
receiving at a server coded content from a first terminal apparatus, the coded content being coded by a picture coding method which codes a picture on a block basis;
storing at the server the coded content;
receiving at the server from a second terminal apparatus, a request for providing the stored coded content to the second terminal apparatus;
providing from the server to the second terminal apparatus the stored coded content; and
decoding the provided coded content at the second terminal apparatus, the provided coded content being decoded by a picture decoding method which decodes a coded picture on a block basis;
wherein the picture coding method comprises:
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, and
wherein the picture decoding method comprises:
determining a predictive value for a total number of non-zero coefficients included in a current block to be decoded based on a total number of non-zero coefficients included in a decoded block located above the current block and a total number of non-zero coefficients included in a decoded 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
decoding coded data obtained by coding the total number of non-zero coefficients included in the current block by using the selected variable length code table.
2. The method according to claim 1 , wherein the first terminal apparatus is distinct from the second terminal apparatus.
3. The method according to claim 1 , wherein the first terminal apparatus is the same terminal apparatus as the second terminal apparatus.