An encoding/decoding device according to the present invention derives the residual coefficient of a residual block, calculates a quantization parameter with respect to the residual block, performs inverse quantization for the residual coefficient by means of the quantization parameter, and can restore a residual sample of the residual block by performing inverse transformation for the inverse quantized residual coefficient.