Patent ID: 9565455
Date: 2017-02-07
CPC Classifications: H04N

Claim:
1. A method for decoding a video, the method comprising: splitting an image into a plurality of maximum coding blocks; hierarchically splitting one of the maximum coding blocks into at least one coding block by using coding block split information parsed from a bitstream; determining at least one transformation block hierarchically split from a current coding block by using transformation block split information parsed from the bitstream, obtaining a prefix bitstring of a last coefficient location among information about the last coefficient location of a current transformation block by performing context-based arithmetic decoding on the bitstream; when the prefix bitstring is greater than a predetermined value, obtaining, from the bitstream, a suffix bitstring according to a bypass mode; performing inverse binarization on the prefix bitstring according to a truncated binarization scheme to obtain an inverse-binarized prefix; performing inverse binarization on the suffix bitstring according to a fixed-length binarization scheme to obtain an inverse-binarized suffix; and reconstructing a symbol indicating the last coefficient location of the current transformation block by using the inverse-binarized prefix and the inverse-binarized suffix, wherein the context-based arithmetic decoding is performed by using a context index determined based on a size of the current transformation block.