Method and apparatus for video coding
A method of video decoding performed in a video decoder is provided. In the method, a bit stream including coded bits of bins of syntax elements is received. The syntax elements correspond to residues of a region of a transform skipped block in a coded picture. Context modeling is performed to determine a context model for each of a number of the bins of syntax elements of the region. The number of the bins of syntax elements that are context coded does not exceed a maximum number of context coded bins set for the region. The coded bits of the number of the bins of syntax elements are decoded based on the determined context models.
1. A method of video decoding performed in a video decoder, the method comprising:
receiving a coded video bit stream;
receiving an indicator indicating whether at least one of a current block and a neighboring block of the coded video bit stream is coded with block differential pulse-code modulation (BDPCM), the current block being adjacent to the neighboring block; and
when the at least one of the current block and the neighboring block is indicated as being coded with BDPCM,
determining a boundary strength to be applied to a boundary between a current sub-block in the current block and a neighboring sub-block in the neighboring block, and
performing deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block using a deblocking filter according to the determined boundary strength, wherein
when the current sub-block and the neighboring sub-block are both coded with BDPCM, the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block is performed based on a determination that a difference in quantization parameters between the current sub-block and the neighboring sub-block is greater than a threshold.
2. The method of claim 1 , wherein the neighboring sub-block is not coded with BDPCM.
3. The method of claim 1 , wherein
when the neighboring sub-block is coded with BDPCM, the boundary strength of the deblocking filter is determined to be 1 or 2.
4. The method of claim 1 , wherein the performing deblocking further comprises:
when the current sub-block and the neighboring sub-block are coded with BDPCM, performing the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block based on a determination that the current sub-block and the neighboring sub-block are coded with different BDPCM prediction modes.
5. The method of claim 1 , wherein the performing deblocking further comprises:
when the current sub-block and the neighboring sub-block are coded with BDPCM, performing the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block based on a determination that at least one of the current sub-block and the neighboring sub-block has at least one non-zero coefficient.
6. The method of claim 1 , wherein
only one of the current block and the neighboring block is indicated as being coded with BDPCM, and
the determining the boundary strength includes determining the boundary strength to be applied to the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block as a fixed value.
7. An apparatus of video coding, comprising:
processing circuitry configured to
receive a coded video bitstream;
receive an indicator indicating whether at least one of a current block and a neighboring block of the coded video bitstream is coded with block differential pulse-code modulation (BDPCM), the current block being adjacent to the neighboring block; and
when the at least one of the current block and the neighboring block is indicated as being coded with BDPCM,
determine a boundary strength to be applied to a boundary between a current sub-block in the current block and a neighboring sub-block in the neighboring block, and
perform deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block using a deblocking filter according to the determined boundary strength, wherein
when the current sub-block and the neighboring sub-block are both coded with BDPCM, the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block is performed based on a determination that a difference in quantization parameters between the current sub-block and the neighboring sub-block is greater than a threshold.
8. The apparatus of claim 7 , wherein the neighboring sub-block is not coded with BDPCM.
9. The apparatus of claim 7 , wherein
when the neighboring sub-block is coded with BDPCM, the boundary strength of the deblocking filter is determined to be 1 or 2.
10. The apparatus of claim 7 , wherein the processing circuitry is configured to:
when the current sub-block and the neighboring sub-block are coded with BDPCM, perform the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block based on a determination that the current sub-block and the neighboring sub-block are coded with different BDPCM prediction modes.
11. The apparatus of claim 7 , wherein the processing circuitry is configured to:
when the current sub-block and the neighboring sub-block are coded with BDPCM, perform the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block based on a determination that at least one of the current sub-block and the neighboring sub-block has at least one non-zero coefficient.
12. The apparatus of claim 7 , wherein
only one of the current block and the neighboring block is indicated as being coded with BDPCM, and
the processing circuitry is configured to determine the boundary strength to be applied to the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block as a fixed value.
13. A non-transitory computer-readable storage medium storing instructions which when executed by a processor cause the processor to perform:
receiving a coded video bit stream;
receiving an indicator indicating whether at least one of a current block and a neighboring block of the coded video bit stream is coded with block differential pulse-code modulation (BDPCM), the current block being adjacent to the neighboring block; and
when the at least one of the current block and the neighboring block is indicated as being coded with BDPCM,
determining a boundary strength to be applied to a boundary between a current sub-block in the current block and a neighboring sub-block in the neighboring block, and
performing deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block using a deblocking filter according to the determined boundary strength, wherein
when the current sub-block and the neighboring sub-block are both coded with BDPCM, the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block is performed based on a determination that a difference in quantization parameters between the current sub-block and the neighboring sub-block is greater than a threshold.
14. The non-transitory computer-readable storage medium of claim 13 , wherein the neighboring sub-block is not coded with BDPCM.
15. The non-transitory computer-readable storage medium of claim 13 , wherein
when the neighboring sub-block is coded with BDPCM, the boundary strength of the deblocking filter is determined to be 1 or 2.
16. The non-transitory computer-readable storage medium of claim 15 , wherein the performing deblocking further comprises:
when the current sub-block and the neighboring sub-block are coded with BDPCM, performing the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block based on a determination that the current sub-block and the neighboring sub-block are coded with different BDPCM prediction modes.
17. The non-transitory computer-readable storage medium of claim 15 , wherein the performing deblocking further comprises:
when the current sub-block and the neighboring sub-block are coded with BDPCM, performing the deblocking on the boundary between the current sub-block in the current block and the neighboring sub-block in the neighboring block based on a determination that at least one of the current sub-block and the neighboring sub-block has at least one non-zero coefficient.