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 decoding apparatus for video decoding, the decoding apparatus comprising:
a memory; and
at least one processor coupled with the memory,
wherein the at least one processor is configured to:
obtain Block-based Delta Pulse Code Modulation (BDPCM) flag information from a bitstream;
derive quantized transform coefficients for a current block based on the BDPCM flag information;
derive residual samples for the current block by performing a dequantization for the quantized transform coefficients;
derive prediction samples for the current block based on the BDPCM flag information;
generate a reconstructed picture based on the residual samples and the prediction samples;
derive a boundary strength (bS) for a target boundary of the current block in the reconstructed picture;
determine whether deblocking filtering is applied to the target boundary based on the bS; and
perform 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 apparatus 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 apparatus 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 apparatus 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 apparatus 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. An encoding apparatus for video encoding, the encoding apparatus comprising:
a memory; and
at least one processor coupled with the memory,
wherein the at least one processor is configured to:
derive prediction samples for a current block based on a Block-based Delta Pulse Code Modulation (BDPCM);
derive residual samples for the current block based on the prediction samples;
generate a reconstructed picture based on the residual samples and the prediction samples;
derive a boundary strength (bS) for a target boundary of the current block in the reconstructed picture;
determine whether deblocking filtering is applied to the target boundary based on the bS;
perform the deblocking filtering on the reconstructed picture based on a result of the determination;
generate quantized residual information by performing a quantization for the residual samples based on the BDPCM; and
encode 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 apparatus 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 apparatus 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 apparatus 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. An apparatus for transmitting data for a video, the apparatus comprising:
at least one processor configured to obtain 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
a transmitter configured to transmit 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.