Method for padding processing with sub-region partitions in video stream
A method, computer program, and computer system is provided for video coding. The method may include decoding coded syntax elements corresponding to a wrap-around padding process based on shifting a reference block by a width value that is determined based on luma samples in the reference block; and reconstructing at least one coded current picture using the wrap-around padding process, wherein the wrap-around padding process is applied at boundaries of subpictures.
1. A method of video decoding, executable by a processor, the method comprising:
decoding coded syntax elements corresponding to a wrap-around padding process comprising a first flag indicating that a sub-picture is treated as a picture in a decoding process;
decoding a second flag comprised in the coded syntax element, the second flag indicating whether or not the wrap-around padding process is applied; and
when the second flag indicates that the wrap-around padding process is to be applied reconstructing at least one coded current picture using the wrap-around padding process by applying the wrap-around padding process at a boundary of the sub-picture, the boundary of the sub-picture being a rectangular region divided from the at least one current picture, and the boundary of the sub-picture being different from a boundary of the current picture, wherein an offset value of the wrap-around process is obtained by subtracting a width of a left padding region in a luma sample and a width of a right padding region in the luma sample from a picture width in the luma sample.
2. The method of claim 1 , wherein a pixel position for a motion compensated prediction in a reference picture is determined by interpreting the syntax elements corresponding to the wrap-around padding process by a clipping process.
3. The method of claim 2 , wherein a fractional pixel is interpolated for the motion compensated prediction based on the determined pixel position.
4. The method of claim 1 , wherein the wrap-around padding process is applied at a boundary of the at least one picture.
5. The method of claim 1 , wherein the wrap-around padding process is applied at a horizontal, a vertical boundary, or at both the vertical and horizontal boundaries.
6. The method of claim 5 , wherein a flag in a high level syntax structure indicates whether the wrap-around padding process is applied at the horizontal, the vertical boundary or both the vertical and horizontal boundaries.
7. A computer system for video coding, the computer system comprising:
one or more computer-readable non-transitory storage media configured to store program code; and
one or more computer processors configured to access said program code and operate as instructed by said program code, said program code including:
first setting code configured to cause the one or more computer processors to set syntax element corresponding to a wrap-around padding process comprising a first flag indicating that a sub-picture is treated as a picture in a decoding process;
second code configured to cause the one or more computer processors to set a second flag comprised in the coded syntax element, the second flag indicating whether or not the wrap-around padding process is applied; and
signaling, code configured to cause the one or more computer processors to signal, when the second flag indicates that the wrap-around padding process is to be applied, that at least one picture is to be decoded using the wrap-around padding process by applying the wrap-around padding process at a boundary of the sub-picture, the boundary of the sub-picture being a rectangular region divided from the at least one current picture and the boundary of the sub-picture being different from a boundary of the current picture, wherein an offset value of the wrap-around process is obtained by subtracting a width of a left padding region in a luma sample and a width of a right padding region in the luma sample from a picture width in the luma sample.
8. The computer system of claim 7 , wherein a pixel position for a motion compensated prediction in a reference picture is determined by interpreting the syntax elements corresponding to the wrap-around padding process by a clipping process.
9. The computer system of claim 8 , wherein a fractional pixel is interpolated for the motion compensated prediction based on the determined pixel position.
10. The computer system of claim 7 , wherein the at least one picture is a reference for motion compensation.
11. A non-transitory computer readable medium having stored thereon a program for video processing, the program configured to cause one or more computer processors to:
perform a conversion between a visual media file and a bitstream of a visual media data according to a format rule,
wherein the bitstream comprises coded syntax elements corresponding to a wrap-around padding process comprising a first flag indicating that a sub-picture is treated as a picture in a decoding process, and
wherein the bitstream further comprises a second flag comprised in the coded syntax element, the second flag indicating whether or not the wrap-around padding process is applied; and
when the second flag indicates that the wrap-around padding process is to be applied, the bitstream further comprises an indication that a reconstruction of at least one picture is to be performed using the wrap-around padding process by applying the wrap-around padding process at a boundary of the sub-picture, the boundary of the sub-picture being a rectangular region divided from the at least one current picture, and the boundary of the sub-picture being different from a boundary of the current picture, wherein an offset value of the wrap-around process is obtained by subtracting a width of a left padding region in a luma sample and a width of a right padding region in the luma sample from a picture width in the luma sample.
12. The method of claim 1 , wherein the at least one reconstructed picture is stored for used as a reference picture for motion compensation.
13. The computer system of claim 7 , wherein the wrap-around padding process is to be applied at a boundary of the at least one picture.
14. The computer system of claim 7 , wherein the wrap-around padding process is to be applied at a horizontal, a vertical boundary, or at both the vertical and horizontal boundaries.
15. The computer system of claim 14 , wherein a flag in a high level syntax structure indicates whether the wrap-around padding process is applied at the horizontal, the vertical boundary or both the vertical and horizontal boundaries.
16. The non-transitory computer readable medium of claim 11 , wherein a pixel position for a motion compensated prediction in a reference picture is determined by interpreting the syntax elements corresponding to the wrap-around padding process by a clipping process.
17. The non-transitory computer readable medium of claim 16 , wherein a fractional pixel is interpolated for the motion compensated prediction based on the determined pixel position.
18. The non-transitory computer readable medium of claim 11 , wherein the wrap-around padding process is applied at a boundary of the at least one picture.
19. The non-transitory computer readable medium of claim 11 , wherein the wrap-around padding process is applied at a horizontal, a vertical boundary, or at both the vertical and horizontal boundaries.
20. The non-transitory computer readable medium of claim 19 , wherein a flag in a high level syntax structure indicates whether the wrap-around padding process is applied at the horizontal, the vertical boundary or both the vertical and horizontal boundaries.