Patent ID: 11949861
Assignee: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Field: nan (nan)
Classification: CPC nan | IPC H

Claim 16:
17. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:
making a first determination, for a video unit of the video and the bitstream of the video, a position of a first luma adaptive loop filter, ALF, boundary which is used for a luma adaptive loop filter that is selectively applied to a luma component of the video unit and a position of a second luma ALF boundary;
making a second determination, from the position of the second luma ALF boundary, a position of a chroma ALF boundary which is used for a chroma adaptive loop filter that is selectively applied for a chroma component of the video unit; and
generating the bitstream based on the first determination and the second determination,
wherein the position of the first luma ALF boundary or the position of the second luma ALF boundary is based on a first variable vbOffset that specifies an offset for an ALF virtual boundary or a distance between the ALF virtual boundary and a bottom boundary of a current coding tree unit (CTU),
wherein (x, y) refers to a luma location of a current sample relative to a top-left sample of a current luma coding tree block (CTB), (xCtb, yCtb) refers to a luma location of a top-left sample of a current luma CTB relative to a top left sample of a current picture, and CtbSizeY refers to a size of the current luma CTB, and
wherein, in a case that y−(CtbSizeY−vbOffset) is greater than or equal to 0, the position of the first luma ALF boundary or the position of the second luma ALF boundary, which refers to a top boundary position, is set equal to yCtb+CtbSizeY−vbOffset, or
wherein, in a case that i) a top boundary of a current luma CTB is a top boundary of a tile, a slice, or a subpicture, ii) a adaptive loop filtering across the tile, the slice, or the subpicture is disabled, and iii) y is less than a second variable, M, the top boundary position is set equal to yCtb, whereby the second variable M is an integer.