| CPC H04N 19/467 (2014.11) [H04N 19/176 (2014.11); H04N 19/18 (2014.11); H04N 19/184 (2014.11)] | 14 Claims |

|
1. A method of decoding a transform block from a bitstream, the method comprising:
decoding a first flag used to determine whether to use dependent quantization in the transform block;
determining whether to use sign bit hiding in the transform block, wherein, in the sign bit hiding, data indicating a sign of a significant coefficient in a given position of the transform block is not decoded from the bitstream,
wherein, if the first flag is TRUE, the sign bit hiding shall not be used in the transform block;
decoding the transform block by using the dependent quantization if it is determined based on the first flag to use the dependent quantization in the transform block; and
decoding the transform block by using the sign bit hiding if it is determined to use the sign bit hiding in the transform block,
wherein, in a state where (a) a disabled flag for transform skip residual coding is checked after the first flag is checked and (b) the disabled flag is TRUE, the dependent quantization shall not be used in the transform block, and
wherein the disable flag indicates whether a first residual coding is applied instead of a second residual coding even if a transform process is skipped, the first residual coding being for a block in which a transform process is not skipped, and the second residual coding being for a block in which a transform process is skipped.
|