A method for decoding a video signal, the method comprising: obtaining a transform skip enabled flag indicating whether a transform skip flag indicating whether a transform skip is applied to a transform block included in a current block is present in a transform unit syntax; obtaining a palette enabled flag indicating whether a palette mode is enabled; characterised by when the transform skip enabled flag indicates that the transform skip flag is present in the transform unit syntax, or when the palette enabled flag indicates that the palette mode is enabled, obtaining information related to a minimum allowed quantization parameter for a transform skip mode; obtaining the minimum allowed quantization parameter, based on the information related to the minimum allowed quantization parameter; obtaining a color space conversion enabled flag indicating whether a color space conversion is applied to the current block; obtaining a first modified quantization parameter by adding a quantization parameter and a quantization parameter offset; obtaining a second modified quantization parameter by clipping the first modified quantization parameter, and wherein when the color space conversion enabled flag indicates that the color space conversion is not applied to the current block, the quantization parameter offset is determined to be 0, wherein when the color space conversion enabled flag indicates that the color space conversion is applied to the current block, the quantization parameter offset is determined to be a non-zero value, wherein, when the transform skip flag indicates that the transform skip is not applied to the transform block and the first modified quantization parameter is less than 0, the second modified quantization parameter is obtained by clipping the first modified quantization parameter to 0, wherein, when the transform skip flag indicates that the transform skip is applied to the transform block and the first modified quantization parameter is less than the minimum allowed quantization parameter, the second modified quantization parameter is obtained by clipping the first modified quantization parameter to the minimum allowed quantization parameter, reconstructing the current block based on the second modified quantization parameter. obtaining a transform skip enabled flag indicating whether a transform skip flag indicating whether a transform skip is applied to a transform block included in a current block is present in a transform unit syntax; obtaining a palette enabled flag indicating whether a palette mode is enabled; characterised by when the transform skip enabled flag indicates that the transform skip flag is present in the transform unit syntax, or when the palette enabled flag indicates that the palette mode is enabled, obtaining information related to a minimum allowed quantization parameter for a transform skip mode; obtaining the minimum allowed quantization parameter, based on the information related to the minimum allowed quantization parameter; obtaining a color space conversion enabled flag indicating whether a color space conversion is applied to the current block; obtaining a first modified quantization parameter by adding a quantization parameter and a quantization parameter offset; obtaining a second modified quantization parameter by clipping the first modified quantization parameter, and wherein when the color space conversion enabled flag indicates that the color space conversion is not applied to the current block, the quantization parameter offset is determined to be 0, wherein when the color space conversion enabled flag indicates that the color space conversion is applied to the current block, the quantization parameter offset is determined to be a non-zero value, wherein, when the transform skip flag indicates that the transform skip is not applied to the transform block and the first modified quantization parameter is less than 0, the second modified quantization parameter is obtained by clipping the first modified quantization parameter to 0, wherein, when the transform skip flag indicates that the transform skip is applied to the transform block and the first modified quantization parameter is less than the minimum allowed quantization parameter, the second modified quantization parameter is obtained by clipping the first modified quantization parameter to the minimum allowed quantization parameter, reconstructing the current block based on the second modified quantization parameter.