Patent attributes
A method for decoding an image according to the present document includes obtaining prediction mode information and residual related information from a bitstream, deriving prediction samples of a current block by performing prediction based on the prediction mode information, deriving residual samples of the current block based on the residual related information, and generating reconstruction samples of the current block based on the prediction samples and the residual samples, and the residual related information includes a transform skip flag based on a size of the current block and a maximum transform skip size, the transform skip flag represents whether a transform skip is applied to the current block, and information about the maximum transform skip size is obtained from the bitstream.