Encoding method and device of video using data unit of hierarchical structure, and decoding method and device thereof
Provided are a method and a device for encoding a video by using a data unit of a hierarchical structure, and a method and a device for decoding the same. A video encoding device includes: a hierarchical encoder configured to encode a picture of a video based on a data unit of a hierarchical structure; and an entropy coder configured to determine a context model used for entropy coding of a symbol based on hierarchical information of a data unit to which the symbol of the encoded picture belongs, and to entropy encode the symbol using the determined context model.
1. A video decoding method comprising:
receiving a bitstream including a transformation unit split flag indicating whether a transformation unit of a current transformation depth is split, the transformation unit being included in a coding unit;
determining a context index indicating a context model among a plurality of context models based on a size of the transformation unit of the current transformation depth;
obtaining the transformation unit split flag by entropy decoding the bitstream based on the context model indicated by the determined context index; and
when the transformation unit split flag indicates a split of the transformation unit of the current transformation depth, splitting the transformation unit of the current transformation depth into four rectangular transformation units of a lower transformation depth,
wherein:
a rectangular transformation unit has a shape with a width and a height that are a same length,
an image is split into a plurality of maximum coding units according to information about the maximum size of the coding unit,
a current maximum coding unit among the plurality of maximum coding units is hierarchically split into one or more coding units of depths including at least one of a current depth and a lower depth according to split information,
when the split information indicates a split for the current depth, a coding unit of the current depth is split into four coding units of the lower depth, independently from neighboring coding units, and
when the split information indicates a non-split for the current depth, one or more transformation units are obtained from the coding unit of the current depth.
2. The video decoding method of claim 1 , wherein:
the context model comprises information about a binary signal corresponding to a most probable symbol (MPS) and a least probable symbol (LPS) of 0 and 1 that are binary signals indicating the symbol and a probability value of at least one of the MPS and the LPS; and
the probability value of the at least one of the MPS and the LPS is determined based on a lookup table or an occurrence statistic accumulation value of the binary signal.
3. A video encoding method comprising:
encoding a picture of a video based on a hierarchical-structured data unit;
determining a context index indicating a context model among a plurality of context models used for entropy coding of a transformation unit split flag indicating whether a transformation unit of a current transformation depth is split, the transformation unit being included in a coding unit; and
entropy coding the transformation unit split flag using the context model indicated by the determined context index,
wherein the context model is determined based on a size of the transformation unit of a current transformation depth, and
when the transformation unit split flag indicates a split of the transformation unit of the current transformation depth, the transformation unit of the current transformation depth is split into four rectangular transformation units of a lower transformation depth
wherein:
a rectangular transformation unit has a shape with a width and a height that are a same length,
an image is split into a plurality of maximum coding units according to information about the maximum size of the coding unit,
a current maximum coding unit among the plurality of maximum coding units is hierarchically split into one or more coding units of depths including at least one of a current depth and a lower depth according to split information,
when the split information indicates a split for the current depth, a coding unit of the current depth is split into four coding units of the lower depth, independently from neighboring coding units, and
when the split information indicates a non-split for the current depth, one or more transformation units are obtained from the coding unit of the current depth.