A generalized scan interleaving-based decoding method using context values of neighboring pixels, the generalized scan interleaving-based decoding method using bit streams of a base layer which is obtained by encoding the base layer obtained by down-sampling pixels of the current layer in the sampling ratio of m/n in the vertical direction and m′/n′ in the horizontal direction, and bit streams of the current layer which is obtained by encoding pixels, not sampled during down-sampling, in units of a block, when input shape information are pixels of the current layer, wherein m, n, m′, N′ are arbitrary integers (zero is forbidden), and m<=n, m′<=n′, the generalized scan interleaving-based method comprising the steps of:
- (a) decoding the base layer pixels by a predetermined method which uses the base layer bit streams;
- (b) performing horizontal-direction residual up-sampling, horizontal-direction 2K up-sampling, vertical-direction residual up-sampling, and vertical-direction 2L up-sampling of the base layer pixels in the step (a) in order for the base layer pixels to have the same spatial resolution as the current layer, wherein the exponent K and L satisfy K=0, 1, 2, . . . , and L=0, 1, 2, . . . ;
- (c) dividing the current layer pixels up-sampled in the step (b) into units of a predetermined block;
- and
- (d) decoding all blocks of the current layer each block is decoded, by sequentially carrying out decoding steps which comprises:
- (d1) decoding in the current block pixels interpolated during horizontal-direction residual up-sampling in the ratio of [n′/m′2K)] by applying generalized scan interleaving-based decoding using context values of neighboring pixels to the current layer bit streams corresponding to the block, wherein K is the largest integer less than or equal to log2(n′/m′);
- (d2) decoding pixels, which were interpolated when horizontal-direction 2K up-sampling was K-times recursively carried out, by K times recursively applying generalized scan interleaving-based decoding using context values of neighboring pixels by the block to the current layer bit streams corresponding to the block;
- (d3) decoding the current block pixels interpolated during vertical-direction residual up-sampling in the ratio of [n/(m2L)] by applying generalized scan interleaving-based decoding using context values of neighboring pixels to the current layer bit streams corresponding to the block, wherein L is the largest integer less than or equal to log2(n/m);
- and
- (d4) decoding pixels, which were interpolated when vertical-direction 2L up-sampling was L-times recursively carried out, by L times recursively applying generalized scan interleaving-based decoding using context values of neighboring pixels by the block to the current layer bit streams corresponding to the block.