Method for coding image on basis of deblocking filtering, and apparatus therefor
A method for decoding an image, according to the present document, comprises: receiving a bitstream including BDPCM information; deriving residual samples for a current block on the basis of the BDPCM information; deriving prediction samples for the current block on the basis of the BDPCM information; generating a reconstructed picture on the basis of the residual samples and the prediction samples; and performing deblocking filtering on the reconstructed picture, wherein when BDPCM is applied to the current block, the deblocking filtering is not performed.
1. A video decoding method performed by a decoding apparatus, the method comprising:
obtaining Block-based Delta Pulse Code Modulation (BDPCM) flag information from a bitstream;
deriving quantized transform coefficients for a current block based on the BDPCM flag information;
deriving residual samples for the current block by performing a dequantization for the quantized transform coefficients;
deriving prediction samples for the current block based on the BDPCM flag information;
generating a reconstructed picture based on the residual samples and the prediction samples;
deriving a boundary strength (bS) for a target boundary of the current block in the reconstructed picture;
determining whether deblocking filtering is applied to the target boundary based on the bS; and
performing the deblocking filtering on the reconstructed picture based on a result of the determination,
wherein the bS for the target boundary is derived based on the BDPCM flag information,
wherein a tree type of the current block is a single tree type, and the current block is a chroma coding block, and
wherein based on a value of the BDPCM flag information being 1, the bS for the target boundary of the chroma coding block is derived as 0.
2. The video decoding method of claim 1 , wherein the BDPCM flag information is related to whether a BDPCM is applied to the current block,
wherein based on the BDPCM being applied to the current block, the value of the BDPCM flag information is 1, and
wherein based on the BDPCM being not applied to the current block, the value of the BDPCM flag information is 0.
3. The video decoding method of claim 1 , wherein based on the bS for the target boundary being 0, the deblocking filtering is not applied to the target boundary.
4. The video decoding method of claim 1 , wherein the quantized transform coefficient is derived based on directional information for a direction in which the BDPCM is performed.
5. The video decoding method of claim 1 , wherein an intra prediction sample for the current block is derived based on a direction in which the BDPCM is performed.
6. A video encoding method performed by an encoding apparatus, the method comprising:
deriving prediction samples for a current block based on a Block-based Delta Pulse Code Modulation (BDPCM);
deriving residual samples for the current block based on the prediction samples;
generating a reconstructed picture based on the residual samples and the prediction samples;
deriving a boundary strength (bS) for a target boundary of the current block in the reconstructed picture;
determining whether deblocking filtering is applied to the target boundary based on the bS;
performing the deblocking filtering on the reconstructed picture based on a result of the determination;
generating quantized residual information by performing a quantization for the residual samples based on the BDPCM; and
encoding the quantized residual information and BDPCM flag information for the BDPCM,
wherein the bS for the target boundary is derived based on the BDPCM flag information,
wherein a tree type of the current block is a single tree type, and the current block is a chroma coding block, and
wherein based on a value of the BDPCM flag information being 1, the bS for the target boundary of the chroma coding block is derived as 0.
7. The video encoding method of claim 6 , wherein the BDPCM flag information is related to whether the BDPCM is applied to the current block,
wherein based on the BDPCM being applied to the current block, the value of the BDPCM flag information is 1, and
wherein based on the BDPCM being not applied to the current block, the value of the BDPCM flag information is 0.
8. The video encoding method of claim 6 , wherein based on the bS for the target boundary being 0, the deblocking filtering is not applied to the target boundary.
9. The video encoding method of claim 6 , wherein an intra prediction sample for the current block is derived based on a specific direction in which the BDPCM is performed, and
wherein the quantization for the residual samples is performed based on the specific direction.
10. A non-transitory computer-readable digital storage medium storing a bitstream generated by a video encoding method, the method steps of:
deriving prediction samples for a current block based on a Block-based Delta Pulse Code Modulation (BDPCM);
deriving residual samples for the current block based on the prediction samples;
generating a reconstructed picture based on the residual samples and the prediction samples;
deriving a boundary strength (bS) for a target boundary of the current block in the reconstructed picture;
determining whether deblocking filtering is applied to the target boundary based on the bS;
performing the deblocking filtering on the reconstructed picture based on a result of the determination;
generating quantized residual information by performing a quantization for the residual samples based on the BDPCM; and
encoding the quantized residual information and BDPCM flag information for the BDPCM to output the bitstream,
wherein the bS for the target boundary is derived based on the BDPCM flag information,
wherein a tree type of the current block is a single tree type, and the current block is a chroma coding block, and
wherein based on a value of the BDPCM flag information being 1, the bS for the target boundary of the chroma coding block is derived as 0.
11. A transmission method of data for a video, the method comprising:
obtaining a bitstream for the video, wherein the bitstream is generated based on deriving prediction samples for a current block based on a Block-based Delta Pulse Code Modulation (BDPCM), deriving residual samples for the current block based on the prediction samples, generating a reconstructed picture based on the residual samples and the prediction samples, deriving a boundary strength (bS) for a target boundary of the current block in the reconstructed picture, determining whether deblocking filtering is applied to the target boundary based on the bS, performing the deblocking filtering on the reconstructed picture based on a result of the determination, generating quantized residual information by performing a quantization for the residual samples based on the BDPCM, and encoding the quantized residual information and BDPCM flag information for the BDPCM; and
transmitting the data comprising the bitstream,
wherein the bS for the target boundary is derived based on the BDPCM flag information,
wherein a tree type of the current block is a single tree type, and the current block is a chroma coding block, and
wherein based on a value of the BDPCM flag information being 1, the bS for the target boundary of the chroma coding block is derived as 0.