Method and apparatus for entropy coding video and method and apparatus for entropy decoding video
Provided are entropy decoding and encoding methods of a video. The entropy decoding method includes obtaining a transformation unit significant coefficient flag indicating whether a non-zero transformation coefficient exists in the transformation unit, from a bitstream, determining a context model for arithmetically decoding the transformation unit significant coefficient flag, based on the transformation depth of the transformation unit and arithmetically decoding the transformation unit significant coefficient flag based on the determined context model.
1. A decoding method of a video, the method comprising:
obtaining a split transformation flag for a current depth, from a bitstream;
when the split transformation flag indicates a non-split for the current depth, determining that a transformation depth is equal to the current depth;
determining a context increasement parameter for determining a context index based on whether the transformation depth is equal to a predetermined value without using a size of a transformation unit;
obtaining a context model for a transformation unit significant coefficient flag among a plurality of context models using the context index obtained by adding the context increasement parameter and a context offset;
arithmetic decoding the transformation unit significant coefficient flag based on the context model; and
determining whether at least one non-zero transformation coefficient exists in the transformation unit of the transformation depth, based on the transformation unit significant flag,
wherein, when the split transformation flag indicates a split for the current depth, a transformation unit of the current depth is split into one or more transformation units of a next depth, and a split transformation flag for the next depth is obtained from the bitstream.
2. The method of claim 1 , wherein the arithmetic decoding of the transformation unit significant coefficient flag comprises performing binary arithmetic decoding on the transformation unit significant coefficient flag based on information about a most probable symbol (MPS) or a least probable symbol (LPS), and a probability value of the MPS, according to the determined context model.