CPC H04N 19/21 (2014.11) [H04N 19/105 (2014.11); H04N 19/13 (2014.11); H04N 19/157 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/197 (2014.11); H04N 19/91 (2014.11)] | 2 Claims |
1. A non-transitory computer readable medium storing therein a computer program, which when executed by a processor, causes the processor to perform operations including:
determining a context for a current block in an image, from among a plurality of contexts; and
performing arithmetic decoding on a bitstream corresponding to the current block, using the determined context to obtain a control parameter for the current block,
wherein the determining of a context for a current block in the image further includes:
determining a signal type under which the control parameter of the current block is classified;
determining the context by using both of decoded control parameters for a left block and an upper block, when the signal type is a first type, the left block being a neighboring block to the left of the current block, and the upper block being a neighboring block on top of the current block;
determining the context by using a predetermined fixed value, without using any of the decoded control parameters for the left block and the upper block, when the signal type is a second type different from the first type; and
determining the context by using a hierarchical depth of a data unit to which the control parameter for the current block belongs, without using both of the decoded control parameters for the left block and the upper block, when the signal type is a third type different from the first type and the second type,
wherein a split flag is classified under the first type, the split flag indicating whether or not the current block is partitioned into a plurality of blocks,
wherein a residual flag is classified under the second type, the residual flag indicating whether or not residual data is included in the current block, the residual data includes at least one of luma coefficient data and chroma coefficient data,
wherein a luma coefficient flag and a chrominance coefficient flag are classified under the third type, the luma coefficient flag indicating whether or not the current block includes a non-zero luma coefficient, and the chrominance coefficient flag indicating whether or not the current block includes a non-zero chrominance coefficient, and
wherein a first number of contexts for the luma coefficient flag is different from a second number of contexts for the chrominance coefficient flag.
|