| CPC H04N 19/132 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/46 (2014.11); H04N 19/50 (2014.11); H04N 19/82 (2014.11)] | 18 Claims | 

| 
               1. A method of decoding a current block by a video decoding device, the method comprising: 
            decoding, from a bitstream, prediction information of the current block, mapping data, and mapping samples of the current block, the mapping samples being residual samples mapped by the video encoding device based on the mapping data; 
                generating the residual samples based on inverse mapping data corresponding to the mapping data by inversely mapping the mapping samples from a mapping range to a residual range; 
                generating a prediction block of the current block by using the prediction information; and 
                generating a reconstructed block that is included in a reconstructed video by adding the prediction block and the residual samples. 
               |