A method of decoding residual coefficients of a transform unit from a bitstream of video data, the method comprising: receiving the transform unit from the bitstream of video data, the transform unit having upper level and lower level square layers, wherein the upper level square layer represents a square region for arrangement of significant coefficient group flags, each of which indicates whether at least one of residual coefficients within a corresponding non-overlapping 4x4 square region of the lower level square layer is significant, the lower level square layer represents 8x8 square region including a plurality of non-overlapping 4x4 square regions for arrangements of residual coefficients, and encoded data of a position of a last significant coefficient in the square block; determining a scan pattern for the upper level square layer and the lower level square layer according to an intra-prediction mode; determining the significant coefficient group flags corresponding to respective 4x4 non-overlapping square regions of the lower level square layer for the received transform unit in a scan order corresponding to the determined scan pattern ; and determining values of residual coefficients of the lower level square layer according to the determined significant coefficient group flags, a scan order corresponding to the determined scan pattern of the residual coefficients, and the position of last significant coefficient in the 8x8 square region, to decode the transform unit of the bitstream of video data, wherein the scan pattern for the significant coefficient group flags and the residual coefficients is determined from a first scan pattern , a second scan pattern , and a third scan pattern , according to the intra-prediction mode, and the first scan pattern , the second scan pattern , and the third scan pattern are different from each other. receiving the transform unit from the bitstream of video data, the transform unit having upper level and lower level square layers, wherein the upper level square layer represents a square region for arrangement of significant coefficient group flags, each of which indicates whether at least one of residual coefficients within a corresponding non-overlapping 4x4 square region of the lower level square layer is significant, the lower level square layer represents 8x8 square region including a plurality of non-overlapping 4x4 square regions for arrangements of residual coefficients, and encoded data of a position of a last significant coefficient in the square block; determining a scan pattern for the upper level square layer and the lower level square layer according to an intra-prediction mode; determining the significant coefficient group flags corresponding to respective 4x4 non-overlapping square regions of the lower level square layer for the received transform unit in a scan order corresponding to the determined scan pattern ; and determining values of residual coefficients of the lower level square layer according to the determined significant coefficient group flags, a scan order corresponding to the determined scan pattern of the residual coefficients, and the position of last significant coefficient in the 8x8 square region, to decode the transform unit of the bitstream of video data, wherein the scan pattern for the significant coefficient group flags and the residual coefficients is determined from a first scan pattern , a second scan pattern , and a third scan pattern , according to the intra-prediction mode, and the first scan pattern , the second scan pattern , and the third scan pattern are different from each other. <EOS>