CPC H04N 19/12 (2014.11) [H04N 19/176 (2014.11); H04N 19/60 (2014.11)] | 10 Claims |
1. A method of decoding a transform block in an image from a bitstream, the method comprising:
decoding at least a single truncated unary codeword from the bitstream; and
determining, for the transform block, a horizontal transform type by using the decoded single truncated unary codeword and a vertical transform type by using the decoded single truncated unary codeword,
wherein, by using the decoded single truncated unary codeword, different transform types are determinable for the horizontal transform type and the vertical transform type; and
decoding the transform block in the image by applying the determined horizontal transform type and the determined vertical transform type to the transform block in the image,
wherein, the decoded single truncated unary codeword specifies one of options for the horizontal transform type and the vertical transform type, the horizontal transform type and the vertical transform type are a first transform type in one option among the options, and the horizontal transform type and the vertical transform type are a second transform type in another option among the options.
|