Method and apparatus for encoding residual block, and method and apparatus for decoding residual block
First Claim
Patent Images
1. A method for decoding an image, the method comprising:
- splitting the image into a plurality of maximum coding units;
hierarchically splitting a maximum coding unit among the plurality of maximum coding units into a plurality of coding units based on split information of a coding unit;
determining a transformation residual block from a coding unit among the plurality of coding units based on split information of the transformation residual block, wherein the transformation residual block includes a plurality of sub residual blocks;
obtaining, from a bitstream, a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient;
when the coded block flag indicates that the transformation residual block includes at least one non-zero effective transformation coefficient, determines whether a current sub residual block is a left-upper residual block among a plurality of sub residual blocks in the transformation residual block;
when the current sub residual block is a left-upper sub residual block, obtains transformation coefficients of the left-upper sub residual block based on a significance map indicating a location of a non-zero transformation coefficient in the first sub residual block and level information of the non-zero transformation coefficient in the first sub residual block obtained from the bitstream;
when the current sub residual block is not a left-upper sub residual block, obtaining, from the bitstream, an effective coefficient flag of the current sub residual block without considering an effective coefficient flag of another sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block;
when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current second sub residual block, obtaining transformation coefficients of the current sub residual block based on a significance map indicating a location of the non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block obtained from the bitstream;
when the effective coefficient flag indicates that the at least one non-zero effective transformation coefficient does not exist in the current sub residual block, determining the transformation coefficients of the current second sub residual blocks as zero, andperforming inverse-transformation on the transformation residual block including the current sub residual block,wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block,the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block,wherein the sub residual blocks included in the transformation residual block have a same size and are square-shaped,when the split information of the coding unit of a current depth indicates a split, the coding unit of the current depth is split into the plurality of coding units of the lower depth, independently from neighboring coding units, andwhen the split information of the coding unit of the current depth indicates a non-split, one or more transformation residual blocks including the transformation residual block are obtained from the coding unit of the current depth.
0 Assignments
0 Petitions
Accused Products
Abstract
A decoding apparatus for decoding an image by obtaining transformation coefficients of a sub residual block based on location information of at least one non-zero transformation coefficient and level information of the at least one non-zero transformation coefficient obtained from a bitstream.
33 Citations
11 Claims
-
1. A method for decoding an image, the method comprising:
-
splitting the image into a plurality of maximum coding units; hierarchically splitting a maximum coding unit among the plurality of maximum coding units into a plurality of coding units based on split information of a coding unit; determining a transformation residual block from a coding unit among the plurality of coding units based on split information of the transformation residual block, wherein the transformation residual block includes a plurality of sub residual blocks; obtaining, from a bitstream, a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient; when the coded block flag indicates that the transformation residual block includes at least one non-zero effective transformation coefficient, determines whether a current sub residual block is a left-upper residual block among a plurality of sub residual blocks in the transformation residual block; when the current sub residual block is a left-upper sub residual block, obtains transformation coefficients of the left-upper sub residual block based on a significance map indicating a location of a non-zero transformation coefficient in the first sub residual block and level information of the non-zero transformation coefficient in the first sub residual block obtained from the bitstream; when the current sub residual block is not a left-upper sub residual block, obtaining, from the bitstream, an effective coefficient flag of the current sub residual block without considering an effective coefficient flag of another sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block; when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current second sub residual block, obtaining transformation coefficients of the current sub residual block based on a significance map indicating a location of the non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block obtained from the bitstream; when the effective coefficient flag indicates that the at least one non-zero effective transformation coefficient does not exist in the current sub residual block, determining the transformation coefficients of the current second sub residual blocks as zero, and performing inverse-transformation on the transformation residual block including the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein the sub residual blocks included in the transformation residual block have a same size and are square-shaped, when the split information of the coding unit of a current depth indicates a split, the coding unit of the current depth is split into the plurality of coding units of the lower depth, independently from neighboring coding units, and when the split information of the coding unit of the current depth indicates a non-split, one or more transformation residual blocks including the transformation residual block are obtained from the coding unit of the current depth.
-
-
2. A method for encoding an image, the method comprising:
-
splitting the image into a plurality of maximum coding units; hierarchically splitting a maximum coding unit among the plurality of maximum coding units into a plurality of coding units; determining a transformation residual block from a coding unit among the plurality of coding units based on split information of the transformation residual block, wherein the transformation residual block includes a plurality of sub residual blocks; performing transformation on the transformation residual block; determining a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient; when the coded block flag indicates that the transformation residual block includes at least one non-zero effective transformation coefficient, determining whether a current sub residual block is a left-upper sub residual block among a plurality of sub residual blocks in the transformation residual block, when the current sub residual block is a left-upper sub residual block, determining a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block; when the current sub residual block is not a left-upper sub residual block, determining an effective coefficient flag of the current sub residual block without considering an effective coefficient flag of another sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block; when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, determining the significance map and the level information of the non-zero transformation coefficient in the current sub residual block; and
generating a bitstream including the coded block flagwherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is the left-upper sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes the effective coefficient flag of the current sub residual block, when the effective coefficient flag of the current sub residual block indicates that the current sub residual block includes at least one non-zero effective transformation coefficient, the bitstream further includes, the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein the sub residual blocks included in the transformation residual block have a same size and are square-shaped.
-
-
3. A non-transitory computer-readable medium for storing data associated with a video, comprising a bitstream stored in the non-transitory computer readable medium, the bitstream including:
-
split information of a coding unit for hierarchically splitting a maximum coding unit among a plurality of maximum coding units into a plurality of coding units, split information of a transformation residual block for splitting a coding unit into at least one transformation residual block, and a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient, wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and a current sub residual block is a left-upper sub residual block, the bitstream further includes a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block; wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes an effective coefficient flag of the current sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block, wherein, when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein the sub residual blocks included in the transformation residual block have a same size and are square-shaped.
-
-
4. An apparatus for encoding an image, the apparatus comprising:
-
splitter which splits the image into a plurality of maximum coding units, hierarchically splits a maximum coding unit among the plurality of maximum coding units into a plurality of coding units, and determines a transformation residual block from a coding unit among the plurality of coding units based on split information of the transformation residual block, wherein the transformation residual block includes a plurality of sub residual blocks; a transformer which performs a transformation on the transformation residual block; and an image encoder which determines a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient, when the coded block flag indicates that the transformation residual block includes at least one non-zero effective transformation coefficient, determines whether a current sub residual block is a left-upper sub residual block among a plurality of sub residual blocks in the transformation residual block, when the current sub residual block is a left-upper sub residual block, determines a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block, when the current sub residual block is not a left-upper sub residual block, determines an effective coefficient flag of the current sub residual block without considering an effective coefficient flag of another sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block, when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, determines the significance map and the level information of the non-zero transformation coefficient in the current sub residual block, and generates a bitstream including the coded block flag, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is the left-upper sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes the effective coefficient flag of the current sub residual block, wherein, when the effective coefficient flag of the current sub residual block indicates that the current sub residual block includes the at least one non-zero effective transformation coefficient, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, and wherein the plurality of sub residual blocks are square-shaped.
-
-
5. A non-transitory computer-readable medium for storing data associated with a video, comprising a bitstream stored in the non-transitory computer readable medium, the bitstream including:
-
split information of a coding unit for hierarchically splitting a maximum coding unit among a plurality of maximum coding units into a plurality of coding units, split information of a transformation residual block for splitting a coding unit into at least one transformation residual block, and a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient, wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and a current sub residual block is a left-upper sub residual block, the bitstream further includes a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block; wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes an effective coefficient flag of the current sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block, wherein, when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero transformation coefficient in the current sub residual blocks, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein, when at least one non-zero effective transformation coefficient does not exists in the current sub residual blocks, the effective coefficient flag of the current sub residual block has a value of zero, when the at least one non-zero effective transformation coefficient exists in the current sub residual blocks, the effective coefficient flag of the current sub residual block has a value of one, and wherein the plurality of sub residual blocks are square-shaped.
-
-
6. A method for encoding an image, the method comprising:
-
splitting the image into a plurality of maximum coding units; hierarchically splitting a maximum coding unit among the plurality of maximum coding units into a plurality of coding units; determining a transformation residual block from a coding unit among the plurality of coding units based on split information of the transformation residual block, wherein the transformation residual block includes a plurality of sub residual blocks; performing transformation on the transformation residual block; determining a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient; when the coded block flag indicates that the transformation residual block includes at least one non-zero effective transformation coefficient, determines whether a current sub residual block is a left-upper sub residual block among a plurality of sub residual blocks in the transformation residual block, when the current sub residual block is a left-upper sub residual block, determining a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block; when the current sub residual block is not a left-upper sub residual block, determining an effective coefficient flag of the current sub residual block without considering an effective coefficient flag of another sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block; when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, determining the significance map and the level information of the non-zero transformation coefficient in the current sub residual block; and
generating a bitstream including the coded block flag;wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is the left-upper sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in current sub residual block, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes the effective coefficient flag of the current sub residual block, wherein, when the effective coefficient flag of the current sub residual block indicates that the current sub residual block includes at least one non-zero effective transformation coefficient, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein the plurality of sub residual blocks are square-shaped, wherein the level information includes a sign and an absolute value of the non-zero transformation coefficient, wherein, when the coding unit of a current depth is split into the plurality of coding units of the lower depth, independently from neighboring coding units, the bitstream further includes a split information of the coding unit of the current depth indicating a split, and wherein, when the coding unit of the current depth is not split into the plurality of coding units of the lower depth, the bitstream further includes a split information of the coding unit of the current depth indicating a non-split, and one or more transformation residual blocks including the transformation residual block are obtained from the coding unit of the current depth.
-
-
7. A non-transitory computer-readable medium for storing data associated with a video, comprising a bitstream stored in the non-transitory computer readable medium, the bitstream including:
-
split information of a coding unit for hierarchically splitting a maximum coding unit among a plurality of maximum coding units into a plurality of coding units, split information of a transformation residual block for splitting a coding unit into at least one transformation residual block, and a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient, wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and a current sub residual block is a left-upper sub residual block, the bitstream further includes a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block; wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes an effective coefficient flag of the current sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block, wherein, when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein, when the transformation residual block does not include the at least one non-zero effective transformation coefficient, the coded block flag has a value of zero, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient, the coded block flag has a value of one, wherein the plurality of sub residual blocks are square-shaped, wherein, when the coding unit of a current depth is split into the plurality of coding units of the lower depth, independently from neighboring coding units, the split information of the coding unit of the current depth indicates a split, and wherein, when the coding unit of the current depth is not split into the plurality of coding units of the lower depth, the split information of the coding unit of the current depth indicates a non-split, and one or more transformation residual blocks including the transformation residual block are obtained from the coding unit of the current depth.
-
-
8. An apparatus for encoding an image, the apparatus comprising:
-
splitter which splits the image into a plurality of maximum coding units, hierarchically splits a maximum coding unit among the plurality of maximum coding units into a plurality of coding units, and determines a transformation residual block from a coding unit among the plurality of coding units based on split information of the transformation residual block, wherein the transformation residual block includes a plurality of sub residual blocks; a transformer which performs a transformation on the transformation residual block including a first sub residual block and at least one of second sub residual blocks; and a transformer which performs a transformation on the transformation residual block; and an image encoder which determines a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient, when the coded block flag indicates that the transformation residual block includes at least one non-zero effective transformation coefficient, determines whether a current sub residual block is a left-upper sub residual block among a plurality of sub residual blocks in the transformation residual block, when the current sub residual block is a left-upper sub residual block, determines a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block, when the current sub residual block is not a left-upper sub residual block, determines an effective coefficient flag of the current sub residual block without considering an effective coefficient flag of another sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block, when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, determines the significance map and the level information of the non-zero transformation coefficient in the current sub residual block, and generates a bitstream including the coded block flag, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is the left-upper sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes the effective coefficient flag of the current sub residual block, wherein, when the effective coefficient flag of the current sub residual block indicates that the current sub residual block includes the at least one non-zero effective transformation coefficient, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein, when the transformation residual block does not include the at least one non-zero effective transformation coefficient, the coded block flag has a value of zero, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient, the coded block flag has a value of one, wherein, when at least one non-zero effective transformation coefficient does not exists in the current sub residual block, the effective coefficient flag of the current sub residual blocks has a value of zero, when the at least one non-zero effective transformation coefficient exists in the current sub residual block, the effective coefficient flag of the current sub residual blocks has a value of one, wherein the plurality of sub residual blocks are square-shaped, wherein, when the coding unit of a current depth is split into the plurality of coding units of the lower depth, independently from neighboring coding units, the split information of the coding unit of the current depth indicates a split, and wherein, when the coding unit of the current depth is not split into the plurality of coding units of the lower depth, the split information of the coding unit of the current depth indicates a non-split, and one or more transformation residual blocks including the transformation residual block are obtained from the coding unit of the current depth.
-
-
9. A non-transitory computer-readable medium for storing data associated with a video, comprising a bitstream stored in the non-transitory computer readable medium, the bitstream including:
-
split information of a coding unit for hierarchically splitting a maximum coding unit among a plurality of maximum coding units into a plurality of coding units, split information of a transformation residual block for splitting a coding unit into at least one transformation residual block, and a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient, wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and a current sub residual block is a left-upper sub residual block, the bitstream further includes a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block; wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes an effective coefficient flag of the current sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block, wherein, when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein the plurality of sub residual blocks included in the transformation residual block are square-shaped and have a same size, wherein the level information includes a sign and an absolute value of the non-zero transformation coefficient, wherein, when the coding unit of a current depth is split into the plurality of coding units of the lower depth, independently from neighboring coding units, the split information of the coding unit of the current depth indicates a split, and wherein, when the coding unit of the current depth is not split into the plurality of coding units of the lower depth, the split information of the coding unit of the current depth indicates a non-split, and one or more transformation residual blocks including the transformation residual block are obtained from the coding unit of the current depth.
-
-
10. An apparatus for encoding an image, the apparatus comprising:
-
a splitter which splits the image into a plurality of maximum coding units, hierarchically splits a maximum coding unit among the plurality of maximum coding units into a plurality of coding units, and determines a transformation residual block from a coding unit among the plurality of coding units based on split information of the transformation residual block, wherein the transformation residual block includes a plurality of sub residual blocks; a transformer which performs a transformation on the transformation residual block including a first sub residual block and at least one of second sub residual blocks; and an image encoder which determines a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient, when the coded block flag indicates that the transformation residual block includes at least one non-zero effective transformation coefficient, determines whether a current sub residual block is a left-upper sub residual block among a plurality of sub residual blocks in the transformation residual block, when the current sub residual block is a left-upper sub residual block, determines a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block, when the current sub residual block is not a left-upper sub residual block, determines an effective coefficient flag of the current sub residual block without considering an effective coefficient flag of another sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block, when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, determines the significance map and the level information of the non-zero transformation coefficient in the current sub residual block, and generates a bitstream including the coded block flag, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is the left-upper sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient, the bitstream further includes the effective coefficient flag of the at least one of second sub residual blocks, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes the effective coefficient flag of the current sub residual block, wherein, when the effective coefficient flag of the current sub residual block indicates that the current sub residual block includes the at least one non-zero effective transformation coefficient, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block wherein the level information includes a sign and an absolute value of the non-zero transformation coefficient, and wherein the plurality of sub residual blocks included in the transformation residual block have a same size and are square-shaped.
-
-
11. A non-transitory computer-readable medium for storing data associated with a video, comprising a bitstream stored in the non-transitory computer readable medium, the bitstream including:
-
split information of a coding unit for hierarchically splitting a maximum coding unit among a plurality of maximum coding units into a plurality of coding units, split information of a transformation residual block for splitting a coding unit into at least one transformation residual block, and a coded block flag indicating whether the transformation residual block includes at least one non-zero effective transformation coefficient, wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and a current sub residual block is a left-upper sub residual block, the bitstream further includes a significance map indicating a location of a non-zero transformation coefficient in the current sub residual block and level information of the non-zero transformation coefficient in the current sub residual block; wherein, when the coded block flag indicates that the transformation residual block includes the at least one non-zero effective transformation coefficient and the current sub residual block is not the left-upper sub residual block, the bitstream further includes an effective coefficient flag of the current sub residual block, the effective coefficient flag of the current sub residual block indicating whether at least one non-zero effective transformation coefficient exists in the current sub residual block, wherein, when the effective coefficient flag indicates that at least one non-zero transformation coefficient exists in the current sub residual block, the bitstream further includes the significance map and the level information of the at least one non-zero effective transformation coefficient in the current sub residual block, wherein the transformation coefficients of each of sub residual blocks are a subset of transformation coefficients of the transformation residual block, wherein the transformation coefficients of the current sub residual block are obtained after or before transformation coefficients of another sub residual block among the plurality of sub residual blocks in the transformation residual block, wherein, when the transformation residual block does not include the at least one non-zero effective transformation coefficient, the coded block flag has a value of zero, wherein, when the transformation residual block includes the at least one non-zero effective transformation coefficient, the coded block flag has a value of one, wherein, when at least one non-zero effective transformation coefficient does not exists in the at least one of second sub residual blocks, the effective coefficient flag of the at least one of second sub residual blocks has a value of zero, when the at least one non-zero effective transformation coefficient exists in the at least one of second sub residual blocks, the effective coefficient flag of the at least one of second sub residual blocks has a value of one, and wherein the plurality of sub residual blocks included in the transformation residual block have a same size and are square-shaped.
-
Specification