Padding process in adaptive loop filtering.

By implementing refined methods for generating and using virtual samples across boundaries, the solution addresses inefficiencies in handling virtual boundaries and video unit boundaries in video coding standards, enhancing compression efficiency and reducing hardware complexity.

JP7560227B2Active Publication Date: 2024-10-02DOUYIN VISION CO LTD +1

Patent Information

Application Number
JP2023117435
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-09-22
Filing Date
2023-07-19
Publication Date
2024-10-02
Estimated Expiration
2040-09-22

AI Technical Summary

Technical Problem

Current video coding standards, such as VVC, face challenges in handling virtual boundaries and video unit boundaries efficiently, leading to suboptimal performance and increased hardware complexity due to inefficient padding methods and inconsistent handling of ALF virtual borders.

Method used

The proposed solution involves refined methods for generating and using virtual samples across various boundaries, including two-sided padding and modified ALF block classification, to ensure accurate and efficient in-loop filtering without excessive hardware requirements.

Benefits of technology

This approach enhances compression efficiency and reduces hardware complexity by optimizing the handling of virtual boundaries and video unit boundaries, improving the overall performance of video encoding and decoding processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560227000093
    Figure 0007560227000093
  • Figure 0007560227000094
    Figure 0007560227000094
  • Figure 0007560227000095
    Figure 0007560227000095
Patent Text Reader

Abstract

To provide a video processing method, a device, and a recording medium that handle virtual boundaries of coding tree blocks to provide better compression efficiency and simpler implementation of encoding or decoding tools.SOLUTION: A method includes a step of determining, for a conversion between a current block of video and a bitstream representation of the video, that one or more samples of the video that are outside the current block are unavailable to the coding process of the conversion, and the coding process includes an ALF coding process. The method further includes a step of performing the conversion by using padding samples on one or more samples of the video on the basis of the determination. The padding samples are generated by checking sample availability in sequence.SELECTED DRAWING: Figure 23
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This patent document is generally directed to video encoding and decoding techniques. [Background technology]

[0002] Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T produced H.261 and H.263, ISO / IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H.262 / MPEG-2 Video, H264 / MPEG-4 Advanced Video Coding (AVC), and H.265 / High Efficiency Video Coding (HEVC) standards. Since H.262, video coding standards have been based on a hybrid video coding structure where temporal prediction plus transform coding is used. To explore future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was jointly established by VCEG and MPEG in 2015. Since then, many new methods have been adopted by JVET and put into reference software called the Joint Exploration Model (JEM). In April 2018, the Joint Video Expert Team (JVET) was formed between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) to study the next-generation Versatile Video Coding (VVC) standard, which aims to achieve a 50% bitrate reduction compared to HEVC. Summary of the Invention

[0003] With the disclosed video encoding, transcoding, or decoding techniques, embodiments of a video encoder or decoder can handle virtual boundaries of coding tree blocks to result in better compression efficiency and easier implementation of the encoding or decoding tools.

[0004] In one example aspect, a method of video processing is disclosed. The method includes determining that one or more samples of a video outside a current block are unavailable for a coding process of the transformation for conversion between a current block of the video and a bitstream representation of the video. The coding process includes an Adaptive Loop Filter (ALF) coding process. The method includes performing the transformation by using padding samples for the one or more samples of the video based on the determination. The padding samples are generated by checking the availability of samples in order.

[0005] In another exemplary aspect, a method of video processing is disclosed. The method includes making a first decision regarding whether samples in a neighboring block of a current block are in the same video domain as the current block for conversion between the current block of video and a bitstream representation of the video. The neighboring block is located (1) to the top left of the current block, (2) to the top right of the current block, (3) to the bottom left of the current block, or (4) to the bottom right of the current block. The method includes using the first decision to make a second decision regarding applicability of a coding tool using samples outside the current block for conversion of the current block. The coding tool includes an adaptive loop filter (ALF) tool including an ALF classification process and / or an ALF filtering process. The method also includes performing the conversion according to the first and second decisions.

[0006] In another example aspect, a method of video processing is disclosed. The method includes determining that one or more samples of a video outside a current block are unavailable for a coding process of the conversion for conversion between a current block of the video and a bitstream representation of the video. The method also includes performing the conversion by using padding samples for the one or more samples of the video based on the determination. The padding samples are generated by checking the availability of samples in order.

[0007] In another example aspect, a method of video processing is disclosed. The method includes performing a conversion between a video including a video picture including a video unit and a bitstream representation of the video. A first set of syntax elements is included in the bitstream representation to indicate whether samples across boundaries of the video unit are accessible in a filtering process applicable to the boundaries of the video unit, the first set of syntax elements being included at different levels.

[0008] In another example aspect, a method of video processing is disclosed that includes performing a conversion between video blocks of a video picture and a bitstream representation thereof, where the video blocks are processed using a logical grouping of coding tree blocks, and the coding tree blocks are processed based on whether a bottom boundary of a bottom coding tree block is outside a bottom boundary of the video picture.

[0009] In another example aspect, another video processing method is disclosed that includes determining a utilization state of a virtual sample during in-loop filtering based on a condition of a coding tree block of a current video block, and performing a conversion between the video block and a bitstream representation of the video block according to the utilization state of the virtual sample.

[0010] In yet another exemplary aspect, another video processing method is disclosed that includes determining, during conversion between a video picture logically grouped into one or more video slices or video bricks and a bitstream representation of the video picture, to disable use of samples in other slices or bricks in an adaptive loop filter process, and performing the conversion according to the determination.

[0011] In yet another example aspect, another video processing method is disclosed that includes, during a conversion between a current video block of a video picture and a bitstream representation of the current video block, determining that the current video block includes samples that are located on a boundary of a video unit of the video picture and performing a conversion based on the determination, the performing a conversion including generating virtual samples for an in-loop filtering process using a uniform method that is the same for all boundary types in the video picture.

[0012] In yet another example aspect, another method of video processing is disclosed that includes, during a conversion between a current video block of a video picture and a bitstream representation thereof, determining one of a plurality of adaptive loop filter (ALF) sample selection methods available to the video picture during the conversion, and performing the conversion by applying the one of the plurality of ALF sample selection methods.

[0013] In yet another example aspect, another method of video processing is disclosed that includes performing an in-loop filtering operation on samples of a current video block of a video picture during a conversion between the current video block and a bitstream representation of the current video block based on a boundary rule that disables using samples that cross a virtual pipeline data unit (VPDU) of the video picture, and performing the conversion using results of the in-loop filtering operation.

[0014] In yet another example aspect, another method of video processing is disclosed that includes performing an in-loop filtering operation on samples of a current video block during a conversion between a current video block of a video picture and a bitstream representation of the current video block based on a boundary rule, the boundary rule specifying that for positions of the current video block that span a video unit boundary, samples that are generated without padding are used, and performing the conversion using results of the in-loop filtering operation.

[0015] In yet another example aspect, another method of video processing is disclosed that includes performing an in-loop filtering operation on samples of a current video block during a conversion between a current video block of a video picture and a bitstream representation of the current video block based on a boundary rule that specifies selecting, for the in-loop filtering operation, a filter having a magnitude such that samples of the current video block used during the in-loop filtering do not cross a boundary of a video unit of the video picture, and performing the conversion using a result of the in-loop filtering operation.

[0016] In yet another example aspect, another method of video processing is disclosed that includes performing an in-loop filtering operation on samples of a current video block of a video picture during a conversion between the current video block and a bitstream representation of the current video block based on a boundary rule that specifies selecting clipping parameters or filter coefficients for the in-loop filtering operation based on whether padding samples are needed for the in-loop filtering, and performing the conversion using results of the in-loop filtering operation.

[0017] In yet another example aspect, other methods of video processing are disclosed. The method includes performing an in-loop filtering operation on samples of a current video block during conversion between the current video block of a video picture and a bitstream representation of the current video block based on boundary rules, where the boundary rules depend on color component identification of the current video block, and performing the conversion using the result of the in-loop filtering operation.

[0018] In yet another example aspect, a video encoding device configured to perform the above method is disclosed.

[0019] In yet another example aspect, a video decoder configured to perform the above method is disclosed.

[0020] In yet another example aspect, a machine-readable medium is disclosed. The medium stores code that, when executed, causes a processor to implement one or more of the above methods.

[0021] The above and other aspects and features of the disclosed technology are described in more detail in the drawings, the specification, and the claims.

Brief Description of the Drawings

[0022] [Figure 1] An example of a picture including an 18×12 luma coding tree unit (CTU) partitioned into 12 tiles and 3 raster scan slices is shown. [Diagram 2] An example of a picture including an 18×12 luma coding tree unit (CTU) partitioned into 24 tiles and 9 rectangular slices is shown. [Diagram 3] An example of a picture partitioned into 4 tiles, 11 blocks, and 4 rectangular slices is shown. [Figure 4A] An example of a coding tree block (CTB) crossing a picture boundary when K = M and L < M is shown. [Figure 4B] An example of a coding tree block (CTB) that crosses the picture boundary when K < M and L = M is shown. [Figure 4C] An example of a coding tree block (CTB) that crosses the picture boundary when K < M and L < M is shown. [Diagram 5] An example of an encoder block diagram is shown. [Figure 6] An example of picture samples on an 8×8 grid, horizontal and vertical block boundaries, and non-overlapping blocks of 8×8 samples that can be deblocked in parallel is shown. [Figure 7] Examples of pixels involved in filter on / off decision and strong / weak filter selection are shown. [Figure 8] Four 1-D direction patterns are shown. [Figure 9] Examples of geometric adaptive loop filtering (GALF) filter shapes (left: 5×5 diamond, center: 7×7 diamond, right: 9×9 diamond) are shown. [Figure 10] Relative coordinates for 5×5 diamond filter support are shown. [Figure 11] Examples of relative coordinates for 5×5 diamond filter support are shown. [Figure 12A] An example of an arrangement for subsampled Laplacian calculation is shown. [Figure 12B] Another example of an arrangement for subsampled Laplacian calculation is shown. [Figure 12C] Another example of an arrangement for subsampled Laplacian calculation is shown. [Figure 12D] Yet another example of an arrangement for subsampled Laplacian calculation is shown. [Figure 13] An example of loop filter line buffer requirements in VTM-4.0 for the luma component is shown. [Figure 14] An example of loop filter line buffer requirements in VTM-4.0 for the chroma component is shown. [Figure 15A]An example of ALF block classification at a virtual boundary for N=4 is shown. [Figure 15B] 4 shows another example of ALF block classification at the virtual boundary when N=4. [Figure 16A] 13 illustrates an example of modified luma ALF filtering at a virtual boundary. [Figure 16B] 13 illustrates another example of modified luma ALF filtering at the virtual boundary. [Figure 16C] 13 illustrates yet another example of modified luma ALF filtering at a virtual boundary. [Figure 17A] 13 illustrates an example of modified chroma ALF filtering at a virtual boundary. [Figure 17B] 13 illustrates another example of modified chroma ALF filtering at a virtual boundary. [Figure 18A] 4 illustrates an example of horizontal wraparound motion compensation. [Figure 18B] 4 illustrates another example of horizontal wraparound motion compensation. [Figure 19] 1 illustrates an example of a modified adaptive loop filter. [Figure 20] 1 illustrates an example of processing a CTU in a video picture. [Figure 21] 4 shows an example of a modified adaptive loop filter boundary. [Figure 22] FIG. 2 is a block diagram of an example of a video processing device. [Figure 23] 1 is a flow chart of an example method of video processing. [Figure 24] An example image of HEC in a 3x2 layout is shown. [Diagram 25] 4 shows an example of the number of padded lines for two types of border samples. [Figure 26] 13 shows an example of processing a CTU within a picture. [Figure 27] 13 illustrates another example of processing a CTU within a picture. [Figure 28] Another example of the current sample and the sample that needs to be accessed is shown. [Figure 29]Another example of padding of "unavailable" adjacent samples is shown. [Diagram 30] Here are some examples of samples that need to be used in the ALF classification process: [Diagram 31] FIG. 1 is a block diagram of an example video processing system in which the disclosed techniques may be implemented. [Diagram 32] 1 is a flowchart representation of a method of video processing in accordance with the present technology. [Diagram 33] 4 is a flowchart representation of another method of video processing in accordance with the present technology. [Diagram 34] 1 is a block diagram illustrating an example video coding system. [Diagram 35] FIG. 2 is a block diagram illustrating an encoder according to some embodiments of the present disclosure. [Diagram 36] FIG. 2 is a block diagram illustrating a decoder according to some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] Section headings are used herein for ease of understanding and are not intended to limit the embodiments disclosed in a section to only that section. Additionally, although certain embodiments are described with reference to Virsatile Video Coding (VVC) or other specific video codecs, the disclosed techniques are applicable to other video coding techniques. Additionally, while some embodiments detail video coding steps, it will be understood that a corresponding decoding step that undoes the coding is implemented by a decoder. Additionally, the term video processing encompasses video encoding or compression, video decoding or decompression, and video transcoding, where video pixels are represented from one compressed format to another compressed format or at a different compressed bit rate.

[0024] [1. Overview] This specification relates to video coding techniques. In particular, it relates to picture / slice / tile / brick boundary and virtual boundary coding, especially for non-linear adaptive loop filters. It may be applied to existing video coding standards such as HEVC, or standards to be converged (Versatile Video Coding). It may also be applicable to future video coding standards or video codecs.

[0025] [2. Initial discussion] Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T produced H.261 and H.263, ISO / IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced H.262 / MPEG-2 Video, H264 / MPEG-4 Advanced Video Coding (AVC), and H.265 / HEVC standards. Since H.262, video coding standards have been based on a hybrid video coding structure where temporal prediction plus transform coding is used. To explore future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was jointly established by VCEG and MPEG in 2015. Since then, many new methods have been adopted by JVET and put into reference software called the Joint Exploration Model (JEM). In April 2018, the JVET was formed between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) to study the VVC standard, which aims to achieve a 50% bitrate reduction compared to HEVC.

[0026] [2.1 Color Space and Chroma Subsampling] A color space, also known as a color model (or color system), is an abstract mathematical model that simply describes a range of colors as ordered tuples of numbers, usually three or four values ​​or color components (e.g., RGB). Essentially, a color space is an elaboration of a coordinate system and a subspace.

[0027] For video compression, the most frequently used color spaces are YCbCr and RGB.

[0028] YCbCr, Y'CbCr, or Y Pb / Cb Pr / Cr, also written as YCBCR or Y'CBCR, is a family of color spaces used as part of the color image pipeline in video and digital photography systems. Y' is the luma component, and CB and CR are the blue and red differential chroma components. Y' (primed) is distinct from Y, which is luminance; that is, luminance is coded nonlinearly based on the gamma-corrected RGB primaries.

[0029] Chroma subsampling is the practice of encoding images by implementing a lower resolution for the chroma information compared to that for the luma information, taking advantage of the human visual system's insensitivity to color differences compared to luminance.

[0030] [2.1.1 Color format 4:4:4] There is no chroma subsampling, since each of the three Y'CbCt components has the same sample rate. This scheme is sometimes used in high-end film scanners and in cinema post-production.

[0031] [2.1.2 Color format 4:2:2] The two chroma components are sampled at half the luma sample rate, and the horizontal chroma resolution is halved, which reduces the bandwidth of the uncompressed video signal by a factor of three, with almost no visible difference.

[0032] [2.1.3 Color format 4:2:0] In 4:2:0, the horizontal sampling is doubled compared to 4:1:1, but the vertical resolution is halved due to the fact that the Cb and Cr channels are only sampled on alternate lines in this scheme, so the data rate is the same. Cb and Cr are subsampled by 2x each in both the horizontal and vertical directions. There are three variations of the 4:2:0 scheme, which differ in their horizontal and vertical alignment:

[0033] In MPEG-2, Cb and Cr coexist horizontally, and Cb and Cr are positioned between pixels (spaced) vertically.

[0034] In JPEG / JFIF, H.261, and MPEG-1, Cb and Cr are spaced apart in between alternating luma samples.

[0035] In 4:2:0 DV, Cb and Cr coexist horizontally. Vertically, they coexist on alternating lines.

[0036] [2.2 Various video units] A picture is divided into one or more tile rows and one or more tile columns. A tile is a sequence of CTUs that covers a rectangular area of ​​the picture.

[0037] A tile is divided into one or more bricks, each of which consists of a number of CTU rows within that tile.

[0038] A tile that is not partitioned into multiple bricks is also called a brick, but a brick that is an actual subset of a tile is not called a tile.

[0039] A slice contains either multiple tiles of a picture, or multiple bricks of a tile.

[0040] Two slice modes are supported: raster scan slice mode and rectangular slice mode. In raster scan slice mode, a slice contains a succession of tiles in the tile raster scan of a picture. In rectangular slice mode, a slice contains a number of bricks of a picture that collectively form a rectangular region of the picture. The bricks in a rectangular slice are in brick raster scan order for that slice.

[0041] FIG. 1 shows an example of raster scan slice partitioning of a picture, where the picture is divided into 12 tiles and 3 raster scan slices.

[0042] FIG. 2 shows an example of rectangular slice partitioning of a picture, where the picture is divided into 24 tiles (6 tile columns and 4 tile rows) and 9 rectangular slices.

[0043] Figure 3 shows an example of a picture partitioned into tiles, bricks, and rectangular slices. The picture is divided into 4 tiles (2 tile columns and 2 tile rows), 11 bricks (the top left tile contains 1 brick, the top right tile contains 5 bricks, the bottom left tile contains 2 bricks, and the bottom right tile contains 3 bricks), and 4 rectangular slices.

[0044] [2.2.1 CTU / CTB size] In VVC, the CTU size signaled in the SPS by the syntax element log2_ctu_size_minus2 can be as small as 4x4. [Table 1] TIFF0007560227000002.tif250161TIFF0007560227000003.tif65136

[0045] [2.2.2 CTU in the picture] Assuming a CTB / LCU size represented by M×N (usually M is equal to N as defined in HEVC / VVC), for a CTB located at the boundary of a picture (or tile or slice or other type of unit, with a picture boundary being taken as an example), K×L samples are within the picture boundary, where either K < M or L < N. For a CTB as shown in FIGS. 4A to 4C, the CTB size is still equal to M×N, but the bottom / right boundary of the CTB is outside the picture.

[0046] FIG. 4A shows a CTB straddling the bottom picture boundary. FIG. 4B shows a CTB straddling the right picture boundary. FIG. 4C shows a CTB straddling the bottom - right picture boundary.

[0047] FIGS. 4A to 4C show examples of CTBs crossing the picture boundary for cases where (a) K = M, L < N, (b) K < M, L = N, and (c) K < M, L < N.

[0048] [2.3 Coding Flow of a Typical Video Codec] FIG. 5 shows an example of an encoder block diagram of VVC including three in - loop filtering blocks, namely, a Deblocking Filter (DF), a Sample Adaptive Offset (SAO), and an ALF. Different from the DF that uses a predefined filter, SAO and ALF use coded side information notifying offsets and filter coefficients to utilize the original samples of the current picture to reduce the mean squared error between the original samples and the reconstructed samples of the current picture by adding offsets and applying a Finite Impulse Response (FIR) filter respectively. ALF is located at the last processing stage of each picture and can be regarded as a tool that attempts to capture and correct artifacts generated in the previous stage.

[0049] [2.4 Deblocking Filter (DB)] The input of the DB is the reconstructed samples before the in-loop filter.

[0050] The vertical edges in the picture are filtered first. Then the horizontal edges in the picture are filtered using the samples modified by the vertical edge filtering process as input. The horizontal and vertical edges in the CTB of each CTU are processed separately for each coding unit. The vertical edges of the coding blocks in a coding unit are filtered starting from the edges on the left side of the coding blocks and passing through the edges towards the right side of the coding blocks in their geometric order. The horizontal edges of the coding blocks in a coding unit are filtered starting from the edges on the top of the coding blocks and passing through the edges towards the bottom of the coding blocks in their geometric order.

[0051] FIG. 6 is an illustration of picture samples on an 8×8 grid and vertical and horizontal block boundaries, and non-overlapping blocks of 8×8 samples that can be deblocked in parallel.

[0052] [2.4.1 Boundary Determination] The filtering is applied to 8x8 block boundaries, which should be transform block boundaries or coding sub-block boundaries (e.g., by using affine motion prediction, ATMVP). For boundaries which are not such boundaries, the filter is disabled.

[0053] [2.4.2 Calculation of boundary strength] For a transform block boundary / coding sub-block boundary, if it is located on an 8x8 grid, it may be filtered, and the bS[xD i ][yD j ](where [xD i ][yD j ] represents coordinates. ) settings are defined in Tables 1 and 2, respectively. [Table 2]

[0054] [2.4.3 Deblocking Decision for Luma Component] In this subsection, the deblocking decision process is described.

[0055] FIG. 7 shows examples of pixels involved in filter on / off decisions and strong / weak filter selection.

[0056] The wider, stronger luma filter is the filter that is used only if Condition 1, Condition 2, and Condition 3 are all true.

[0057] Condition 1 is the "large block condition." This condition detects whether the P-side and Q-side samples belong to a large block. This is represented by the variables bSidePisLargeBlk and bSideQisLargeBlk, respectively. bSidePisLargeBlk and bSideQisLargeBlk are defined as follows: bSidePisLargeBlk=((belongs to a CU whose edge type is vertical and whose p0 has width >= 32)||(belongs to a CU whose edge type is horizontal and whose p0 has height >= 32))?TRUE:FALSE bSideQisLargeBlk=((belongs to a CU whose edge type is vertical and whose q0 has width >= 32)||(belongs to a CU whose edge type is horizontal and whose q0 has height >= 32))?TRUE:FALSE

[0058] Based on bSidePisLargeBlk and bSideQisLargeBlk, condition 1 is defined as follows: Condition 1 = (bSidePisLargeBlk || bSideQisLargeBlk)?TRUE:FALSE

[0059] Then, if condition 1 is true, condition 2 will be checked as well. First, the following variables are derived: - dp0, dp3, dq0, dq3 are derived first, as seen in HEVC - if(p side is 32 or more) dp0=(dp0+Abs(p50-2×p40+p30)+1)>>1 dp3=(dp3+Abs(p53-2×p43+p33)+1)>>1 - if(q side is 32 or more) dq0=(dq0+Abs(q50-2×q40+q30)+1)>>1 dq3=(dq3+Abs(q53-2×q43+q33)+1)>>1 Condition 2=(d<β)?TRUE:FALSE In this case, d = dp0 + dq0 + dp3 + dq3.

[0060] If conditions 1 and 2 are valid, it is further checked whether any of the blocks use sub-blocks:

number

[0061] Finally, if both condition 1 and condition 2 are valid, the proposed deblocking method will check condition 3 (large block strong filter condition), which is defined as follows:

[0062] For condition 3, the strong filter condition (StrongFolterCondition), the following variables are derived: dpq is derived as in HEVC. sp3=Abs(p3-p0) derived as seen in HEVC if(p side is 32 or more) if(Sp==5) sp3=(sp3+Abs(p5-p3)+1)>>1 else sp3=(sp3+Abs(p7-p3)+1)>>1 Derived as seen in HEVC: sq3 = Abs(q0 - q3) if(q side is 32 or more) if(Sp==5) sq3=(sq3+Abs(q5-q3)+1)>>1 else sq3=(sq3+Abs(q7-q3)+1)>>1

[0063] As seen in HEVC, StrongFilterCondition = (dpq is smaller than (β>>2), sp3+sq3 is smaller than (3×β>>5), and Abs(p0-q0) is smaller than (5×t C +1)>>Less than 1)?TRUE:FALSE.

[0064] [2.4.4 Stronger deblocking filter for luma (designed for larger blocks)] A bilinear filter is used if the samples on either side of the boundary belong to a large block, which is defined as those with width >= 32 for vertical edges and height >= 32 for horizontal edges.

[0065] The bilinear filters are listed below.

[0066] The block boundary sample p in the above HEVC deblocking i (i=0 to Sp-1) and q j (j=0 to Sq-1)(p i and q iis the i-th sample in a row, for filtering a vertical edge, or the i-th sample in a column, for filtering a horizontal edge) is then replaced by a linear interpolation as follows: p i '=(f i *Middle s,t +(64-f i )*P S +32)>>6),p i ±tcPD i Clipped to q j '=(g j *Middle s,t +(64-g j )*Q S +32)>>6),q j ±tcPD j Clipped to where tcPD i and tcPD j The term is the position-dependent clipping described in section 2.4.7, and g j , f i , Middle s,t , P S , and Q S is given by:

[0067] [2.4.5 Deblocking Control for Chroma] A chroma strong filter is used on both sides of the block boundary, where the chroma filter is selected if both sides of the chroma edge are 8 (chroma positions) or more and the following decision according to three conditions is satisfied: The first condition relates to the boundary strength and large block decision. The proposed filter can be applied if the block width or height perpendicularly across the block edge is 8 or more in the chroma sample domain. The second and third conditions are essentially the same as for the HEVC luma deblocking decision, which are the on / off decision and the strong filter decision, respectively.

[0068] In the first decision, the boundary strength (bS) is changed for chroma filtering and the conditions are checked sequentially. If a condition is satisfied, the remaining conditions of lower priority are skipped.

[0069] Chroma deblocking is performed when bS is equal to 2 or when bS is equal to 1 when large block boundaries are detected.

[0070] The second and third conditions are essentially the same as the HEVC luma strong filter decision:

[0071] In the second condition: Then d is derived as in HEVC luma deblocking.

[0072] The second condition is true if d is less than β.

[0073] For the third condition, the StrongFilterCondition is derived as follows: dpq is derived as in HEVC. sp3=Abs(p3-p0) derived as seen in HEVC Derived as seen in HEVC: sq3 = Abs(q0 - q3)

[0074] As seen in the HEVC design, StrongFilterCondition = (dpq is smaller than (β>>2), sp3+sq3 is smaller than (β>>3), and Abs(p0-q0) is smaller than (5×t C +1)>>1).

[0075] [2.4.6 Strong deblocking filter for chroma] The following strong deblocking filter for chroma is defined: p2'=(3×p3+2×p2+p1+p0+q0+4)>>3 p1'=(2×p3+p2+2×p1+p0+q0+q1+4)>>3 p0'=(p3+p2+p1+2×p0+q0+q1+q2+4)>>3

[0076] The proposed chroma filter performs deblocking on a 4x4 chroma sample grid.

[0077] [2.4.7 Position-Dependent Clipping] The position-dependent clipping tcPD is applied to the output samples of the luma filtering process with a strong and long filter that modifies 7, 5, and 3 samples at the boundaries. Assuming a quantization error distribution, it is proposed to increase the clipping value of the samples, which are expected to have a higher quantization noise and therefore a higher deviation of the reconstructed sample values ​​from the true sample values.

[0078] For each P or Q boundary filtered by the asymmetric filter, depending on the outcome of the decision process in section 2.4.2, a position-dependent threshold table is selected from two tables (e.g., Tc7 and Tc3 shown below) that are fed to the decoder as side information: Tc7={6,5,4,3,2,1,1};Tc3={6,4,2}; tcPD = (Sp = = 3)?Tc3:Tc7; tcQD=(Sq==3)?Tc3:Tc7;

[0079] When P or Q are filtered with a short symmetric filter, a lower order position-dependent threshold is applied: Tc3={3,2,1};

[0080] Following the definition of the threshold, the filtered p' i and q' j The sample values ​​of are clipped according to the tcP and tcQ clipping values: p” i =Clip3(p' i +tcP i ,p' i -tcPi ,p' i ); q” j =Clip3(q' j +tcQ j ,q' j -tcQ j ,q' j ); Here, p' i and q' j is the filtered sample value, and p” i and q” j is the output sample value after clipping, and tcP i and tcQ j is the clipping threshold derived from the tc parameter of VVC and tcPD and tcQD. The function Clip3 is the clipping function defined in VVC.

[0081] [2.4.8 Sub-block deblocking adjustment] To enable parallel friendly deblocking using both the long filter and sub-block deblocking, the long filter is limited to modify at most five samples on the side that uses sub-block deblocking (AFFINE or ATMVP or DMVR) as indicated by the luma control for the long filter. Additionally, the sub-block deblocking is adjusted such that sub-block boundaries on an 8x8 grid close to a CU or implicit TU boundary are limited to modify at most two samples on each side.

[0082] The following applies to sub-block boundaries that are not aligned with CU boundaries:

number

[0083] If an edge equal to 0 corresponds to a CU boundary, then an edge equal to 2 or orthogonalLength-2 corresponds to a sub-block boundary that is 8 samples from the CU boundary, etc. Implicit TU is true when implicit partitioning of TUs is used.

[0084] [2.5 SAO] The input of SAO is the reconstructed samples after DB. The concept of SAO is to reduce the average sample distortion of a region by first classifying the region samples into multiple categories using a selected classifier, obtaining an offset for each category, and then adding the offset to each sample of the category, where the classifier index and offset of the region are coded in the bitstream. In HEVC and VVC, a region (unit for SAO parameter signaling) is defined to be a CTU.

[0085] Two SAO types that can meet the requirement of low complexity are adopted in HEVC. These two types are Edge Offset (EO) and Band Offset (BO), which will be described in more detail below. The index of the SAO type is coded (in the range of [0,2]). For EO, ​​sample classification is based on the comparison between the current sample and adjacent samples according to 1-D directional patterns, i.e., horizontal, vertical, 135° diagonal, and 45° diagonal.

[0086] FIG. 8 shows four 1-D orientation patterns for EO sample classification: horizontal (EO class=0), vertical (EO class=1), 135° diagonal (EO class=2), and 45° diagonal (EO class=3).

[0087] For a given EO class, each sample in the CTB is classified into one of five categories. The current sample value, labeled "c", is compared with its two neighbors along the selected 1-D pattern. The classification rules for each sample are summarized in Table 3. Categories 1 and 4 are associated with local valleys and local peaks, respectively, along the selected 1-D pattern. Categories 2 and 3 are associated with concavities and convexities, respectively, along the selected 1-D pattern. If the current sample does not belong to EO categories 1-4, it is category 0 and SAO is not applied. [Table 3]

[0088] [2.6 Adaptive Loop Filter Based on Geometric Transformation] The input of DB is the reconstructed samples after DB and SAO. The sample classification and filtering process is based on the reconstructed samples after DB and SAO.

[0089] In some embodiments, a Geometry transformation-based Adaptive Loop Filter (GALF) with block-based filter adaptation is applied: for the luma component, one of 25 filters is selected for each 2x2 block based on local gradient direction and activity.

[0090] [2.6.1 Filter Shape] In some embodiments, up to three diamond filter shapes (illustrated in FIG. 9) can be selected for the luma component. An index is signaled at the picture level to indicate the filter shape used for the luma component. Each square represents a sample, and Ci, where i is 0-6 (left), 0-12 (center), 0-20 (right), represents the coefficient applied to the sample. For the chroma components of a picture, the 5x5 diamond shape is always used.

[0091] [2.6.1.1 Block Classification] Each 2x2 block is classified into one of 25 classes. The classification index C is derived based on its orientation D and the quantized value of its activity A (with hats) as follows:

number

[0092] To compute D and A with a hat, the horizontal, vertical, and two diagonal gradients are first computed using the 1-D Laplacian:

number

[0093] The indexes i and j refer to the coordinates of the top-left sample in a 2x2 block, and R(i,j) denotes the reconstructed sample at coordinate (i,j).

[0094] Then the maximum and minimum horizontal and vertical slopes are:

number

number

[0095] To derive the value of the directionality D, these values ​​are compared with each other and with two thresholds t1 and t2: [Table 4]

[0096] Activity value A is:

number

[0097] For both chroma components of a picture, no classification method is applied, e.g., one set of ALF coefficients is applied per chroma component.

[0098] [2.6.1.2 Geometric transformation of filter coefficients] Figure 10 shows the relative coordinates for a 5x5 diamond filter support (left: diagonal, center: vertical flip, right: rotation).

[0099] Before filtering each 2x2 block, a geometric transformation such as a rotation or a diagonal and vertical flip is applied to the filter coefficients f(k,l) associated with coordinates (k,l) according to the gradient value calculated for that block. This is equivalent to applying these transformations to samples within the filter support region. The idea is to make the various blocks to which ALF is applied more similar by adjusting their orientation.

[0100] Three geometric transformations are introduced, including diagonal, vertical flip, and rotation:

number

[0101] 2.6.1.3 Notification of filter parameters In some embodiments, the GALF filter parameters are signaled for the first CTU, e.g., after the slice header and before the SAO parameters of the first CTU. Up to 25 sets of luma filter coefficients may be signaled. To reduce bit overhead, filter coefficients of different classifications may be merged. Also, the GALF coefficients of the reference picture are stored and allowed to be reused as the GALF coefficients of the current picture. The current picture may choose to use the stored GALF coefficients for the reference picture and bypass the signaling of the GALF coefficients. In this case, only an index to one of the reference pictures is signaled, and the stored GALF coefficients of the indicated reference picture are inherited by the current picture.

[0102] To support GALF temporal prediction, a candidate list of GALF filter sets is maintained. At the start of decoding of a new sequence, the candidate list is empty. After decoding of one picture, the corresponding set of filters may be added to the candidate list. When the size of the candidate list reaches a maximum allowed value (e.g., 6), a new set of filters overwrites the oldest set in the decoding order, i.e., a First-In-First-Out (FIFO) rule is applied to update the candidate list. To avoid duplication, a set may be added only if the corresponding picture does not use GALF temporal prediction. To support temporal scalability, there are multiple candidate lists of filter sets, each candidate list being associated with a temporal layer. More specifically, each array assigned by a temporal layer index (TempIdx) may constitute the filter sets of previously decoded pictures equal to a lower TempIdx. For example, the k-th array is assigned to be associated with TempIdx equal to k, and it contains only filter sets from pictures with TempIdx less than or equal to k. After coding of a particular picture, the filter set associated with that picture will be used to update the array associated with an equal or higher TempIdx.

[0103] Temporal prediction of GALF coefficients is used for intra-coded frames to minimize signaling overhead. For intra-frames, temporal prediction is not available and a set of 16 fixed filters is assigned to each class. A flag is signaled for each class to indicate the use of a fixed filter and, if necessary, the index of the selected fixed filter. Even if a fixed filter is selected for a given class, the coefficients of the adaptive filter f(k,l) can still be transmitted for this class. In this case, the coefficients of the filter to be applied to the reconstructed image are the sum of both sets of coefficients.

[0104] The filtering process of luma coefficients can be controlled at the CU level. A flag is signaled to indicate whether GALF is applied to the luma component of a CU. For the chroma components, whether GALF is applied is only indicated at the picture level.

[0105] 2.6.1.4 Filtering Process At the decoder side, when GALF is enabled for a block, each sample R(i,j) in that block is filtered to obtain a sample value R'(i,j) as follows: where L is the filter length and f m,n denote the filter coefficients, and f(k,l) denotes the decoded filter coefficients.

number

[0106] Figure 11 shows an example of relative coordinates used for a 5x5 diamond filter support, assuming the current sample coordinate (i,j) is (0,0). Samples with different coordinates, filled with the same color, are multiplied by the same filter coefficients.

[0107] [2.7 Adaptive Loop Filter Based on Geometric Transformation (GALF)] [2.7.1 Example GALF] In some embodiments, the filtering process of the adaptive loop filter is performed as follows:

number

number

[0108] The current design of GALF in VVC has the following major changes: (1) Adaptive filter shapes are eliminated. Only 7×7 filter shapes are allowed for the luma component, and 5×5 filters are allowed for the chroma components. (2) Notification of ALF parameters that have been moved from the slice / picture level to the CTU level. (3) Class index calculation is performed at 4x4 level instead of 2x2. In addition, in some embodiments, a subsampled Laplacian calculation method for ALF classification is utilized. More specifically, it is not necessary to calculate horizontal / vertical / 45° diagonal / 135° diagonal slopes for each sample in a block. Instead, 1:2 subsampling is utilized.

[0109] 12A-12D show the subsampled Laplacian calculation for CE2.6.2: Fig. 12A represents the subsampled positions for a vertical gradient, Fig. 12B represents the subsampled positions for a horizontal gradient, Fig. 12C represents the subsampled positions for a diagonal gradient, and Fig. 12D represents the subsampled positions for a diagonal gradient.

[0110] [2.8 Nonlinear ALF] [2.8.1 Reformulation of Filtering] Equation (11) can be reformulated, without affecting coding efficiency, as follows:

number

[0111] With this above filter equation in (13), VVC introduces nonlinearity to make ALF more efficient by using a simple clipping function to reduce the influence of neighboring sample values ​​(I(x+i,y+j)) when they are too different from the current sample value (I(x,y)) being filtered.

[0112] More specifically, the ALF filter is modified as follows:

number

[0113] In some embodiments, clipping parameters k(i,j) are specified for each ALF filter and one clipping value is signaled per filter coefficient, i.e., up to 12 clipping values ​​are signaled in the bitstream per luma filter and up to 6 clipping values ​​are signaled for the chroma filters.

[0114] To limit the signaling cost and encoder complexity, only four fixed values ​​are used, which are the same for INTER and INTRA slices.

[0115] Since the variance of local differences is often higher in luma than in chroma, two different sets for luma and chroma filters are applied. A maximum sample value within each set (here 1024 for a bit depth of 10 bits) is also introduced so that clipping can be disabled if not required.

[0116] The set of clipping values ​​used in some embodiments is given in Table 5. The four values ​​are chosen by approximately evenly dividing the full range of sample values ​​(coded with 10 bits) for luma, and the range from 4 to 1024 for chroma, in the logarithmic domain.

[0117] More precisely, the luma table of clipping values ​​is given by the following formula:

number

[0118] Similarly, the chroma table for the clipping values ​​is given by the following formula:

number

[0119] The selected clipping value is coded in the "alf_data" syntax element by using the Golomb coding scheme that corresponds to the clipping value's index in Table 5 above. This coding scheme is the same as the coding scheme for the filter index.

[0120] [2.9 Virtual Boundary] In hardware and embedded software, picture-based processing is not practically acceptable due to its high picture buffer requirement. Using an on-chip picture buffer is very expensive, and using an off-chip picture buffer increases external memory access, power consumption, and data access latency significantly. Therefore, DF, SAO, and ALF will be changed from picture-based to LCU-based decoding in practical products. When LCU-based processing is used for DF, SAO, and ALF, the whole decoding process can be performed LCU-by-LCU in raster scan with LCU pipelined manner for parallel processing of multiple LCUs. In this case, line buffers are needed for DF, SAO, and ALF because pixels from the top LCU row are needed to process one LCU row. If off-chip line buffers (e.g., DRAM) are used, external memory bandwidth and power consumption will increase. If on-chip line buffers (e.g., SRAM) are used, chip area will increase. Therefore, although line buffers are already much smaller than picture buffers, it is still desirable to reduce line buffers.

[0121] In some embodiments, the total number of line buffers required is 11.25 lines for luma components, as shown in FIG. 13. The explanation of the line buffer requirement is as follows: Deblocking of horizontal edges overlapping CTU edges is not feasible because the decision and filtering requires lines K, L, M, N from the first CTU and lines O, P from the lower CTU. Therefore, deblocking of horizontal edges overlapping CTU boundaries is postponed until the lower CTU. Therefore, for lines K, L, M, N, the reconstructed luma samples need to be stored in the line buffer (4 lines). Then, SAO filtering can be performed for lines A to J. Line J is SAO filterable in that deblocking does not change the samples of line K. For SAO filtering of line K, the edge offset classification decision is stored only in the line buffer (which is 0.25 luma lines). ALF filtering can be performed only for lines A to F. As shown in FIG. 13, ALF classification is performed for every 4×4 block. Each 4x4 block classification requires an activity window of size 8x8, i.e. a 9x9 window to compute the 1d Laplacian and determine the gradient.

[0122] Therefore, for block classification of the 4x4 block overlapping with lines G, H, I, J, the SAO filtered samples below the virtual boundary are needed. Furthermore, the SAO filtered samples of lines D, E, F are needed for ALF classification. Furthermore, the ALF filtering of line G requires three SAO filtered lines D, E, F from the lines above. Thus, the total line buffer requirement is: - Lines K to N (horizontal DF pixels): 4 lines - Lines D~J (SAO filtered pixels): 7 lines - SAO edge offset classifier value between line J and line K: 0.25 lines.

[0123] Therefore, the total number of luma lines required is 7+4+0.25=11.25.

[0124] Similarly, the line buffer requirements for the chroma components are depicted in Figure 14. The line buffer requirements for the chroma components are estimated to be 6.25 lines.

[0125] To eliminate the line buffer requirement of SAO and ALF, the concept of virtual boundary (VB) is introduced in the latest VVC. As shown in FIG. 13, VB is a horizontal LCU boundary shifted upward by N pixels. For each LCU, SAO and ALF can process the pixels above VB before the lower LCU comes, but cannot process the pixels below VB until the lower LCU caused by DF comes. Considering the hardware implementation cost, the space between the processed VB and the horizontal LCU boundary is set as 4 pixels for luma (e.g., N=4 in FIG. 13) and 2 pixels for chroma (e.g., N=2 in FIG. 9).

[0126] [2.9.1 Modified ALF block classification when VB size N is 4] 15A-15B show modified block classification when the virtual boundary is 4 lines above the CTU boundary (N=4). As shown in FIG. 15A, if a 4×4 block starts at line G, the block classification uses only lines E to J. However, the Laplacian gradient calculation for samples belonging to line J requires one more line below (line K). Therefore, line K is padded with line J.

[0127] Similarly, as shown in Figure 15B, if a 4x4 block starts at line K, the block classification uses only lines K to P. However, the Laplacian gradient calculation for samples belonging to line K requires one more line (line J). Therefore, the line is padded with line K.

[0128] [2.9.2 Padding on both sides of samples that cross a virtual boundary] As shown in Figures 16A-16C, a truncated version of the filter is used for filtering luma samples belonging to lines close to the virtual boundary. Taking Figure 16A as an example, when filtering line M shown in Figure 13, for example, the central sample of the 7x7 diamond is on line M, and one line above VB (represented by the bold line) needs to be accessed. In this case, the sample above VB is copied from the sample just below VB. For example, the solid P0 sample is copied to the dashed position above. Symmetrically, the solid P3 sample is also copied to just below the dashed position, even if a sample at the dashed position is available. The copied samples are only used in the luma filtering process.

[0129] The padding method used for the ALF virtual boundary may be called "Two-side Padding". As shown in Figs. 16A-16C and 17A-17B, when one sample located at (i,j) (e.g., dashed P0A in Fig. 16B) is padded, the corresponding sample located at (m,n) that shares the same filter coefficient (e.g., dashed P3B in Fig. 16B) is also padded even if the sample is available. In the 7x7 diamond filter support in Figs. 16A-16C, the center is the current sample to be filtered. Fig. 16A shows that one required line above / below VB needs to be padded. Fig. 16B shows that two required lines above / below VB need to be padded. Fig. 16C shows that three required lines above / below VB need to be padded.

[0130] Similarly, as shown in FIGS. 17 to 17B, the bilateral padding method is also used for chroma ALF filtering. FIGS. 17A to 17B show modified chroma ALF filtering at the virtual boundary (a 5×5 diamond filter support, with the center being the current sample to be filtered). FIG. 17A shows that one necessary line above / below the VB needs to be padded. FIG. 17B shows that two necessary lines above / below the VB need to be padded.

[0131] [2.9.3 Alternative for the implementation of bilateral padding when non-linear ALF is disabled] When non-linear ALF is disabled for CTB, for example, the clipping parameter k(i,j) in Equation (14) is equal to (1<<Bitdepth), and the padding process can be replaced by changing the filter coefficients (also known as Modified-coeff based ALF (MALF)). For example, when filtering the samples of line L / I, the filter coefficient c5 is changed to c5’, and in this case, it is not necessary to copy the luma samples from the solid line P0A to the dashed line P0A and from the solid line P3B to the dashed line P3B (FIG. 18A). In this case, bilateral padding and MALF will result in the same result assuming that the current sample to be filtered is located at (x,y). [Number] This is because due to padding, K(d,b)=d and I(x - 1,y - 1)=I(x - 1,y - 2).

[0132] However, when non-linear ALF is enabled, MALF and bilateral padding will result in different filtering results. This is because non-linear parameters are associated with each coefficient, and for example, for the filter coefficients c5 and c1, the clipping parameters are different. Therefore, [Number] This is because, due to padding, K(d,b) != d even though I(x-1,y-1)=I(x-1,y-2).

[0133] [2.10 Standards for ALF filtering] New additions are indicated by bold italic underlined text, deletions are indicated using double brackets [[]]. [Table 7] TIFF0007560227000027.tif251161TIFF0007560227000028.tif247161TIFF0007560227000029.tif251151TIFF0007560227000030.tif249151 TIFF0007560227000031.tif250151TIFF0007560227000032.tif243161TIFF0007560227000033.tif251151TIFF0007560227000034.tif100151

[0134] [2.11 Example of CTU processing] According to the current VVC design, the ALF virtual boundary processing method is disabled when the lower boundary of one CTB is the lower boundary of a slice / brick. For example, one picture is divided into multiple CTUs and two slices, as shown in Figure 19.

[0135] Assuming the CTU size is MxM (e.g. M=64), according to the virtual boundary definition, the last 4 lines in the CTB are treated as below the virtual boundary. In the hardware implementation, the following applies: - If the bottom boundary of the CTB is the bottom boundary of the picture (e.g. CTU-D), it processes an (M+4)xM block that includes 4 lines from the CTU row above and all lines in the current CTU. - Otherwise, if the lower boundary of the CTB is the lower boundary of a slice (or brick) (e.g., CTU-C) and loop_filter_across_slice_enabled_flag (or loop_filter_across_bricks_enabled_flag) is equal to 0, it processes an (M+4)×M block that includes 4 lines from the CTU row above and all lines in the current CTU. - Otherwise, if the CTU / CTB is in the first CTU row in the slice / brick / tile (e.g., CTU-A), it processes M×(M-4) blocks excluding the last 4 lines. - Otherwise, if the CTU / CTB is not in the first CTU row of the slice / brick / tile (e.g., CTU-B) and is not in the last CTU row of the slice / brick / tile, it processes an MxM block that includes 4 lines from the CTU row above and excludes the last 4 lines in the current CTU.

[0136] FIG. 19 shows an example of processing of CTUs within a picture.

[0137] [2.12 360° Video Coding] Horizontal wrap-around motion compensation in VTM-5.0 is a 360-specific coding tool designed to improve the visual quality of reconstructed 360-degree videos in Equi-Rectangular (ERP) projection formats. In conventional motion compensation, when a motion vector references a sample that is beyond the picture boundary of the reference picture, repeated padding is applied to derive the value of the out-of-range sample by copying from the nearest neighbor on the corresponding picture boundary. For 360-degree videos, this method of repeated padding is not appropriate and can cause visual artifacts called "seam artifacts" in the reconstructed viewport video. Because 360-degree videos are captured on a sphere and are essentially "boundary-free", reference samples that are outside the boundary of the reference picture in the projection domain can always be obtained from neighboring samples in the spherical domain. For common projection formats, deriving the corresponding neighboring samples in the spherical domain can be difficult, since 2D-to-3D and 3D-to-2D coordinate transformations, as well as sample interpolation of fractional sample positions, are required. The problem is much simpler for the left and right boundaries of the ERP projection format, since spherical neighbors outside the left picture boundary can be obtained from samples inside the right picture boundary, and vice versa.

[0138] FIG. 20 shows an example of horizontal wraparound motion compensation in VVC.

[0139] The horizontal wrap-around motion compensation process is illustrated in FIG. 20. If a part of a reference block is outside the left (or right) boundary of a reference picture in the projection domain, instead of repeated padding, the "out-of-bounds" part is obtained from the corresponding spherical neighbor in the reference picture toward the right (or left) boundary in the projection domain. Repeated padding is used only for the top and bottom picture boundaries. As illustrated in FIG. 20, horizontal wrap-around motion compensation can be combined with non-normative padding, which is often used in 360-degree video coding. In VVC, this is achieved by signaling a high-level syntax element to indicate the wrap-around offset that should be set to the ERP picture width before padding. This syntax is used to adjust the position of the horizontal wrap-around accordingly. This syntax is not affected by a specific amount of padding for the left and right picture boundaries, and therefore naturally supports asymmetric padding of ERP pictures, for example, when the left and right padding are different. Horizontal wraparound motion compensation provides more meaningful information for motion compensation when the reference samples lie outside the left or right boundaries of the reference picture.

[0140] For projection formats consisting of multiple planes, no matter what compact frame packing arrangement is used, discontinuities will appear between two or more adjacent planes in the frame-packed picture. For example, considering the 3×2 frame packing configuration depicted in FIG. 24, the three planes in the top half are contiguous in 3D geometry, and the three planes in the bottom half are contiguous in 3D geometry, but the top and bottom halves of the frame-packed picture are discontinuous in 3D geometry. If an in-loop filtering operation is performed on this discontinuity, plane seam artifacts may become visible in the reconstructed video.

[0141] To mitigate face seam artifacts, in-loop filtering operations may be disabled across discontinuities in a frame-packed picture. Syntax has been proposed to signal vertical and / or horizontal virtual boundaries where in-loop filtering operations are disabled. Compared to using two tiles, one for each pair of contiguous faces, the proposed signaling method for disabling in-loop filtering operations across tiles is more flexible since it does not require the face size to be a multiple of the CTU size.

[0142] [2.13 Example of independent regions with subpicture-based motion constraints] In some embodiments, the following features include: 1) A picture can be divided into sub-pictures. 2) An indication of the presence of a sub-picture is indicated in the SPS along with other sequence level information of the sub-picture. 3) Whether a sub-picture is treated as a picture in the decoding process (except for in-loop filtering operations) is controllable by the bitstream. 4) Whether in-loop filtering across sub-picture boundaries is disabled is controllable by the bitstream for each sub-picture. The DBF, SAO, and ALF processes are updated for control of in-loop filtering operation across sub-picture boundaries. 5) For simplicity, as a starting point, the width, height, horizontal offset, and vertical offset of the subpicture are signaled in units of luma samples in the SPS. The subpicture boundaries are constrained to be slice boundaries. 6) Treating subpictures as pictures in the decoding process (except for in-loop filtering operations) is specified by slightly updating the coding_tree_unit( ) syntax, resulting in the following decoding process: ○ Derivation process for (advanced) temporal luma motion vector prediction Luma sample bilinear interpolation process Luma sample 8-tap interpolation filtering process ○Chroma sample interpolation process 7) Subpicture IDs are explicitly specified in the SPS and included in the tile group header, allowing extraction of the subpicture sequence without the need to modify the VCL NAL units.

[0143] Output sub-picture sets (OSPS) are proposed to specify normative extraction and conformance points for sub-pictures and their sets.

[0144] [3. Technical problem solved by the solution provided in this application] The current VVC design has the following problems:

[0145] 1. The current setting of enabling the ALF virtual boundary depends on whether the bottom boundary of the CTB is the bottom boundary of the picture. If that is the case, the ALF virtual boundary is disabled (e.g., CTU-D in Figure 19). However, it is possible that the bottom boundary of the CTB is outside the bottom boundary of the picture. For example, if a 256x240 picture is split into four 128x128 CTUs, in this case the ALF virtual boundary may be erroneously set to true for the last two CTUs that have samples outside the bottom picture boundary.

[0146] 2. The method of handling ALF virtual boundaries is disabled for bottom picture boundaries and slice / tile / brick boundaries. Disabling VB along slice / brick boundaries may result in pipeline bubbles or the need to process 68 lines per Virtual Pipeline Data Unit (VPDU, 64x64 for VVC), assuming LCU size is 64x64. For example: ALF line buffers need to be restored when the decoder does not know slice / brick / tile boundaries in advance (such as in low-latency applications). Whether the contents in the line buffers are used for ALF filtering or not depends on whether the current CTU is also a slice / brick / tile boundary CTU. However, this information is unknown until the next slice / brick / tile is decoded. b. If the decoder knows the slice / brick / tile boundaries in advance, it must either accept pipeline bubbles (which are unlikely) or always run ALF at a rate of 68 lines per 64x64 VDPU (over-provisioned) to avoid using the ALF line buffer.

[0147] 3. There are various ways to handle virtual and video unit boundaries, e.g., different padding methods, while more than one padding method may be performed on a line if it lies on multiple boundaries. In one example, if the bottom boundary of a block is a 360-degree virtual boundary and an ALF virtual boundary is also applied to this block, in this case, a padding method for the 360-degree virtual boundary may be applied first to generate virtual samples below the 360-degree virtual boundary. Then, these virtual samples located below the 360-degree virtual boundary are treated as available. And, an ALF double-sided padding method may be further applied according to Figures 16A-C. An example is shown in Figure 25.

[0148] 4. The method of dealing with virtual boundaries may be suboptimal since padded samples are utilized, which may not be as efficient.

[0149] 5. When the nonlinear ALF is disabled, the MALF and double-sided padding methods can produce the same results for filtering samples that need to access samples that cross a virtual boundary. However, when the nonlinear ALF is enabled, the two methods produce different results. It is beneficial to align the two cases.

[0150] 6. A slice may be a rectangular slice, as shown in Figure 28, or a non-rectangular slice. In this case, for a CTU, it may not coincide with any boundary (e.g., picture / slice / tile / brick). However, it may be necessary to access samples outside the current slice. It is unknown how to perform the ALF classification and filtering process when filtering across slice boundaries is disabled (e.g., loop_filter_across_slices_enabled_flag is false).

[0151] 7. A subpicture is a rectangular region of one or more slices within a picture. A subpicture contains one or more slices that collectively cover a rectangular region of a picture. The syntax table is modified as follows (bold, italics, and underlined) to include the concept of a subpicture: [Table 8] It is noted that enabling filtering across subpictures is controlled on a per subpicture basis, but enabling filtering across slices / tiles / bricks is controlled at the picture level, which is signaled once to control all slices / tiles / bricks within a picture.

[0152] 8. ALF classification is performed in 4x4 units, i.e. all samples in one 4x4 unit share the same classification result. But more precisely, samples in an 8x8 window containing the current 4x4 block need to calculate their gradients. In this case, 10x10 samples need to be accessed, as represented in Fig. 30. It needs to be defined how the classification should be calculated when some of the samples are located in different video units (e.g. different slices / tiles / bricks / subpictures / above or left or right or below the "360 virtual border" / above or below the "ALF virtual border").

[0153] 9. In the VVC design, four boundary positions (e.g., left vertical / right vertical / top horizontal / bottom horizontal) are identified. If a sample is located within the four boundary positions, it is marked as available. However, in VVC, a slice may cover a non-rectangular area as shown in FIG. 28. By checking these four boundary positions, it may mark an incorrect availability result. For example, for the blue position (top left point) in FIG. 28, it should be marked as “unavailable” if it is in a slice different from the current block (e.g., the block covering the red position (bottom right point)) and loop_filter_across_slices_enabled_flag is false (e.g., samples across slices are not allowed to be used in ALF). However, by checking only the left vertical / right vertical / top horizontal / bottom horizontal boundaries of the current block, the blue position will be incorrectly marked as “available”.

[0154] [4. Examples of Technology and Embodiments] The following list should be considered as examples to illustrate the general concept. The listed technologies should not be interpreted in a narrow sense. Moreover, these technologies may be combined in any way.

[0155] The padding method used for the ALF virtual boundary may be called "Two-side Padding." As shown in Figures 12-13, when one sample located at (i,j) is padded, the corresponding sample located at (m,n), which shares the same filter coefficient, is also padded even if the sample is available.

[0156] The padding method used for picture borders / 360° video virtual borders and regular borders (e.g. top and bottom borders) can be called "One-side Padding". If a sample to be used is outside the borders, it is copied from an available sample in the picture.

[0157] The padding method used for the left and right borders of 360-degree video can be called "wrapping-base padding." If a sample to be used is outside the borders, it is copied with the motion-compensated result.

[0158] In the following description, a sample "is at a video unit boundary" may mean that the distance between the sample and the video unit boundary is less than or equal to a threshold. A "line" may refer to samples at one and the same horizontal position or samples at one and the same vertical position (e.g., samples in the same row and / or samples in the same column). The function Abs(x) is defined as follows:

number

[0159] In the following description, a "virtual sample" refers to a generated sample, which may be different from a reconstructed sample (which may be processed by deblocking and / or SAO). A virtual sample may be used to perform ALF on other samples. A virtual sample may be generated by padding.

[0160] "ALF virtual boundary processing method is enabled for a block" may indicate that applyVirtualBoundary in the specification is set to true. "Enable virtual boundary" may indicate that the current block is divided into at least two parts by a virtual boundary, and samples located in one part are not allowed to use samples in the other part in the filtering process (e.g., ALF). The virtual boundary may be K rows above the bottom boundary of a block.

[0161] In the following description, the neighboring samples may be those required for the filter classification and / or filtering process.

[0162] In this disclosure, a neighboring sample is “unavailable” if it is outside the current picture, or the current subpicture, or the current tile, or the current slice, or the current brick, or the current CTU, or the current processing unit (e.g., an ALF processing unit or a narrow ALF processing unit), or any other current video unit.

[0163] 1. The determination "the lower boundary of the current coding tree block is the lower boundary of the picture" is replaced by "the lower boundary of the current coding tree block is the lower boundary of the picture or is outside the picture". a. Alternatively, also in this case the ALF virtual boundary processing method may be disabled.

[0164] 2. Whether to enable the use of virtual samples in the in-loop filtering process (eg, whether to enable a virtual boundary (eg, set applyVirtualBoundary to true or false)) may depend on the CTB size. In one example, applyVirtualBoundary is always set to false for a given CTU / CTB size, for example, a CTU / CTB size equal to K×L (eg, K=L=4). b. In one example, applyVirtualBoundary is always set to false for CTU / CTB sizes less than or equal to K×L (eg, K=L=8). c. Alternatively, ALF is disabled for certain CTU / CTB sizes such as 4x4, 8x8, etc.

[0165] 3. Whether or not to enable the use of virtual samples (e.g., padded from reconstructed samples) in an in-loop filtering process (e.g., ALF) may depend on whether the bottom boundary of a block is the bottom or virtual boundary of a video unit that has finer granularity compared to a picture (e.g., slice / tile / brick). a. In one example, the ALF virtual boundary processing method may be enabled (eg, applyVirtualBoundary is set to true) for a coding tree block (CTB) if the lower boundary of the CTB is a video unit boundary or a virtual boundary. i. Alternatively, the above method is also enabled if the bottom boundary is not the lower picture boundary, or if the bottom boundary is outside the picture. b. If the lower boundary of the current coding tree block is one of the lower virtual boundaries of the picture and pps_loop_filter_across_virtual_boundaries_disabled_flag is equal to 1, the ALF virtual boundary processing method may still be enabled (e.g., applyVirtualBoundary is set to true). c. In one example, whether the ALF virtual boundary processing method (value of applyVirtualBoundary) should be enabled for the CTB may depend only on the relationship between the bottom boundary of the CTB and the bottom boundary of the picture. i. In one example, applyVirtualBoundary is set to false only if the bottom boundary of the CTB is the bottom boundary of the picture containing the CTB or if the bottom boundary is outside the picture. ii. In one example, applyVirtualBoundary is set to true if the bottom boundary of the CTB is not the bottom boundary of the picture that contains the CTB. d. In one example, when decoding CTU-C of Figures 18A-18C, the M x M samples may be filtered using K lines from the CTU above, excluding the K lines below the virtual boundary.

[0166] 4. It is proposed to disable utilization of samples across brick / slice boundaries in the filtering process (e.g., ALF) even if the signaled control utilization flag for loop filters that cross brick / slice boundaries (e.g., loop_filter_across_bricks_enabled_flag / loop_filter_across_slices_enabled_flag) is true. a. Alternatively, the signaled loop_filter_across_bricks_enabled_flag / loop_filter_across_slices_enabled_flag may further control only the filtering process of the deblocking filter and SAO, excluding ALF. b. In one example, a virtual sample may be used in place of a reconstructed sample at a corresponding position to perform ALF on other samples.

[0167] 5. When one block (e.g., CTB) contains samples that are located on a video unit boundary (e.g., slice / brick / tile / 360-degree video virtual or normal boundary / picture boundary), how to generate virtual samples inside or outside the video unit for in-loop filtering such as ALF (e.g., padding method) may be unified for various types of boundaries. a. Alternatively, further virtual boundary methods (eg, double-sided padding methods) may be applied to the blocks to process samples at the boundaries for in-loop filtering. b. Alternatively, the above method may also be applied when the block contains samples that are located at the bottom boundary of a video unit. c. In one example, when decoding K lines of a block, if the K lines are below the virtual boundary of the block (e.g., the last K lines in CTU-B in FIGS. 17A-17B) and the bottom boundary of the block is the bottom boundary of the video unit, virtual samples may be generated in the ALF classification / filtering process to avoid using other samples outside these K lines. For example, a double-sided padding method may be applied. i. Alternatively, ALF may be disabled for those last K lines. d. In one example, if a block lies on multiple boundaries, the pixels / samples used for ALF classification may be restricted to not cross any of these multiple boundaries. i. In one example, for a sample, if that particular neighboring sample is "unavailable" (crosses any of the boundaries), then one or all types of slope / direction cannot be calculated for that sample. 1. In one example, the slope of the sample may be treated as zero. 2. In one example, the slope of the sample may be treated as "unavailable" and may not be added to the activity derived in the ALF classification process (eg, as defined in equation (8) in Section 2.6.1.1). ii. In one example, the activity / direction derived in the ALF classification process may be scaled by a factor in cases where only partial samples used in the ALF classification process are "available" (e.g., do not cross any of those boundaries). iii. In one example, for boundary blocks, assuming that the slope / direction needs to be calculated for N samples in the ALF classification process and the slope can only be calculated for M samples (e.g., if a particular neighbor of a sample is not "available", the slope may not be calculated for it), the activity can be multiplied by N / M. 1. Alternatively, it may be multiplied by a factor that depends on N / M. For example, the number M N (N is an integer), for example, M=2. e. In one example, the gradient of some samples within an M×N (eg, M=N=8 in the current design, M columns and N rows) window may be used for classification. i. For example, for the current N1×N2 (N1=N2=4 in the current design) block, M×N is at the center of the N1×N2 block. ii. In one example, a sample gradient may be used that does not require accessing samples across any boundaries. 1. Alternatively, further, when calculating the slope of a sample located on one or more boundaries, if some adjacent samples of the current sample are "unavailable", padding (e.g., one-sided padding) can be performed. 2. Alternatively, the top K (e.g., K=1,2) unavailable lines may also be padded if the current sample is located at the upper boundary of a video unit (e.g., slice / brick / tile / 360-degree video virtual boundary or ALF virtual boundary). 3. Alternatively, K (eg, K=1,2) additional unavailable columns to the left may be padded if the current sample is located at the left boundary of a video unit. 4. Alternatively, K (eg, K=1,2) additional unavailable columns to the right can be padded if the current sample is located at the right boundary of a video unit. 5. Alternatively, additionally, K (eg, K=1,2) unavailable lines below may be padded if the current sample is located at the bottom boundary of the video unit. 6. Alternatively, further, if the current sample is located at the top and left boundaries of a video unit, K1 (e.g., K1=1,2) unavailable lines on the top may be first padded to generate an M×(N+K1) window, and then K2 (e.g., K2=1,2) unavailable columns on the left may be padded to generate an (M+K2)×(N+K1) window. a. Alternatively, the K2 (e.g., K2=1,2) unavailable columns on the left may be padded first to create an (M+K2)×N window, and then the K1 (e.g., K1=1,2) unavailable lines on top may be padded to create an (M+K2)×(N+K1) window. 7. Alternatively, further, if the current sample is located at the top and right boundaries of a video unit, K1 (e.g., K1=1,2) unavailable lines on the top may be first padded to generate an M×(N+K1) window, and then K2 (e.g., K2=1,2) unavailable columns on the right may be padded to generate an (M+K2)×(N+K1) window. a. Alternatively, the K2 (e.g., K2=1,2) unavailable columns on the right may be padded first to create an (M+K2)×N window, and then the K1 (e.g., K1=1,2) unavailable lines on top may be padded to create an (M+K2)×(N+K1) window. 8. Alternatively, further, if the current sample is located at the bottom and right boundaries of the video unit, K1 (e.g., K1=1,2) unavailable lines at the bottom may be first padded to generate an M×(N+K1) window, and then K2 (e.g., K2=1,2) unavailable columns on the right may be padded to generate an (M+K2)×(N+K1) window. a. Alternatively, the K2 (e.g., K2=1,2) unavailable columns on the right may be padded first to create an (M+K2)×N window, and then the K1 (e.g., K1=1,2) unavailable lines below may be padded to create an (M+K2)×(N+K1) window. 9. Alternatively, further, if the current sample is located at the bottom and left boundaries of the video unit, K1 (e.g., K1=1,2) unavailable lines below may be first padded to generate an M×(N+K1) window, and then K2 (e.g., K2=1,2) unavailable columns to the left may be padded to generate an (M+K2)×(N+K1) window. a. Alternatively, the K2 (e.g., K2=1,2) unavailable columns on the left may be padded first to create an (M+K2)×N window, and then the K1 (e.g., K1=1,2) unavailable lines below may be padded to create an (M+K2)×(N+K1) window. 10. Alternatively, the padded samples may also be used to calculate the slope. iii. In one example, for blocks at the top / bottom boundaries of a video unit (e.g., slice / brick / tile / 360-degree video virtual boundary or ALF virtual boundary), the gradient of samples within an M×(N-C1) window may be used for classifying the block. 1. Alternatively, furthermore, the slopes of the C1 lines above / below the MxN window are not used in the classification. iv. In one example, for blocks at the left / right boundaries of a video unit, the gradient of samples within an (M-C1)xN window may be used for classifying the block. 1. Alternatively, in addition, the gradients of the C1 columns to the left / right of the MxN window are not used in the classification. v. In one example, for blocks at the upper and lower boundaries of a video unit, the gradient of samples within an M×(N-C1-C2) window may be used for classifying the block. 1. Alternatively, in addition, the slopes of the C1 lines above and the C2 lines below the MxN window are not used in the classification. vi. In one example, for blocks at the top and left boundaries of a video unit, the gradient of samples within a (M-C1) x (N-C2) window may be used for classifying the block. 1. Alternatively, in addition, the slopes of the C1 lines above and C2 columns to the left of the MxN window are not used in the classification. vii. In one example, for blocks at the top and right boundaries of a video unit, the gradient of samples within a (M-C1) x (N-C2) window may be used for classifying the block. 1. Alternatively, in addition, the slopes of C1 lines above and C2 columns to the right of the MxN window are not used in the classification. viii. In one example, for blocks at the bottom and left boundaries of a video unit, the gradient of samples within a (M-C1) x (N-C2) window may be used for classifying the block. 1. Alternatively, in addition, the slopes of the C1 lines below and C2 columns to the left of the MxN window are not used in the classification. ix. In one example, for blocks at the bottom and right boundaries of a video unit, the gradient of samples within a (M-C1) x (N-C2) window may be used for classifying the block. 1. Alternatively, in addition, the slopes of C1 lines below and C2 columns to the right of the MxN window are not used in the classification. x. In one example, for blocks at the left and right boundaries of a video unit, the gradient of samples within an (M-C1-C2)×N window may be used for classifying the block. 1. Alternatively, in addition, the gradients of the C1 columns to the left and the C2 columns to the right of the MxN window are not used in the classification. xi. In one example, for blocks at the top, bottom and left boundaries of a video unit, the gradient of samples within an (M-C3) x (N-C1-C2) window may be used to classify the block. 1. Alternatively, furthermore, the slopes of C1 lines above, C2 lines below and C3 columns to the left of the MxN window are not used in the classification. xii. In one example, for blocks at the top, bottom and right boundaries of a video unit, the gradient of samples within a (M-C3) x (N-C1-C2) window may be used to classify the block. 1. Alternatively, furthermore, the slopes of C1 lines above, C2 lines below and C3 columns to the right of the MxN window are not used in the classification. xiii. In one example, for blocks at the left, right and top boundaries of a video unit, the gradient of samples within a (M-C1-C2) x (N-C3) window may be used to classify the block. 1. Alternatively, in addition, C1 columns to the left, C2 columns to the right, and the slopes of C3 lines above the MxN window are not used in the classification. xiv. In one example, for blocks at the left, right and bottom boundaries of a video unit, the gradient of samples within an (M-C1-C2) x (N-C3) window may be used to classify the block. 1. Alternatively, in addition, the slopes of C1 columns to the left, C2 columns to the right, and C3 lines below the MxN window are not used in the classification. xv. In one example, for blocks at the left, right, top and bottom boundaries of a video unit, the gradient of samples within a (M-C1-C2) x (N-C3-C4) window may be used to classify the block. 1. Alternatively, furthermore, the slopes of C1 columns to the left, C2 columns to the right, C3 lines above, and C4 lines below the M×N window are not used in the classification. xvi. In one example, C1, C2, C3 and C4 are equal to 2. xvii. In one example, the slope of a sample that does not have any "unavailable" adjacent samples required in the slope calculation may be used. f. In one example, if a line is on multiple boundaries (e.g., the distance between the line and the boundaries is less than a threshold), the padding process is only performed once regardless of how many boundaries it may belong to. i. Alternatively, furthermore, how many adjacent lines should be padded may depend on the position of the current line relative to all boundaries. ii. For example, how many adjacent lines should be padded may be determined by the distance between the current line and two boundaries, e.g., if the current line is within two boundaries, and the two boundaries are top and bottom. iii. For example, how many adjacent lines should be padded may be determined by the distance between the current line and the nearest boundary, e.g., if the current line is within two boundaries, the two boundaries being top and bottom. iv. For example, how many adjacent lines should be padded may be calculated independently for each boundary, and the one that is the maximum is selected as the final number of padded lines. v. In one example, how many adjacent lines should be padded can be determined for each side (eg, above and below) of the line. vi. In one example, for a two-sided padding method, how many adjacent lines should be padded may be determined jointly for both sides. vii. Alternatively, the double-sided padding method used by ALF may also be applied. g. In one example, if a line is at multiple boundaries, with at least one boundary on each side of the line (eg, above and below), then ALF may be disabled for it. h. In one example, if the number of padded lines required by the current line is greater than a threshold, ALF may be disabled for the current line. i. In one example, if the number of padded lines on either side is higher than a threshold, ALF may be disabled for the current line. ii. In one example, if the total number of padded lines on both sides is greater than a threshold, ALF may be disabled for the current line. i. Alternatively, the above method may also be applied when a block contains samples that are located at the bottom boundary of a video unit and in-loop filtering, such as ALF, is enabled for that block. k. Alternatively, the above method may also be applied under certain conditions, for example when the block contains samples that are located at the bottom boundary of a video unit and filtering across boundaries is not allowed (e.g., pps_loop_filter_across_virtual_boundaries_disabled_flag / loop_filter_across_slices_enabled_flag / loop_filter_across_bricks_enabled_flag is true). j. The proposed method is also applicable to samples / blocks located on vertical boundaries.

[0168] 6. If a sample is on at least two boundaries of a block (e.g., at least one ALF virtual boundary above the current line and another boundary below), the number of padded lines is not entirely determined by the distance of the current line to the ALF virtual boundary. Instead, it is determined by the distance of the current line to the two boundaries. In one example, the number of lines for padding per side is set to (M-min(D0,D1)). b. In one example, the number of lines for padding per side is set to (M-max(D0,D1)). c. For the above example, D0, D1 represent the distance between the current line and the upper / lower boundaries. d. For the above example, M represents the number of lines the ALF virtual boundary is from the bottom of one CTU.

[0169] 7. At least two methods of selecting samples in the ALF classification and / or ALF linear or non-linear filtering process may be defined, one of which selects samples before any in-loop filtering methods are applied, and the other of which selects samples after one or more in-loop filtering methods have been applied but before the ALF is applied. In one example, the selection of the various methods may depend on the position of the sample being filtered. b. In one example, a sample at the lower boundary of a video unit (e.g., CTB) may be selected by the first method if it is used in the ALF for other samples, otherwise (if it is not at the boundary), the second method is selected.

[0170] 8. It is proposed to disable the use of samples that cross VPDU boundaries (eg, 64x64 regions) in the filtering process. a. In one example, if a sample required by the ALF classification process is outside a VPDU boundary or below a virtual boundary, it may be replaced with a virtual sample, or the classification result for that sample may be copied from that associated with other samples, such as padding from available samples. b. In one example, if a sample required by the filtering process is outside a VPDU boundary or below a virtual boundary, it may be replaced with a virtual sample, such as padding from available samples. c. In one example, the ALF virtual boundary processing method is enabled for a block (eg, applyVirtualBoundary is set to true) if the block contains samples that are located on a VPDU boundary. d. Alternatively, the use of samples that cross horizontal VPDU boundaries may be disabled in the filtering process. i. In one example, if a sample required by the filtering process falls below a horizontal VPDU boundary or below a virtual boundary, it may be replaced with a virtual sample, such as padding from available samples. e. Alternatively, the use of samples that cross vertical VPDU boundaries may be disabled in the filtering process. i. In one example, if a sample required by the filtering process is outside a vertical VPDU boundary or below a virtual boundary, it may be replaced with a virtual sample, such as padding from available samples.

[0171] 9. Instead of using padded samples (e.g., not unavailable, above / below a virtual boundary, above / below a video unit boundary) in the ALF classification / filtering process, it is proposed to use reconstructed samples before all in-loop filters. a. Alternatively, the concept of double-sided padding can also be applied by padding samples from the reconstructed samples before every in-loop filter. i. In one example, if the samples in the filter support are from reconstructed samples before all in-loop filters, then symmetric (e.g., symmetric with respect to the origin, e.g., the current sample) samples in the filter support should also use reconstructed samples before all in-loop filters. 1. Suppose the coordinates of the current sample to be filtered are (0,0) and the sample located at (i,j) is the reconstructed sample before all the in-loop filters, then the sample located at (-i,-j) is the reconstructed sample before all the in-loop filters. 2. Suppose the coordinates of the current sample to be filtered are (x,y) and the sample located at (x+i,y+j) is the reconstructed sample before all the in-loop filters, then the sample located at (xi,yj) is the reconstructed sample before all the in-loop filters. b. Alternatively, if in-loop reshaping (aka LMCS) is also enabled, then the reconstructed samples before all in-loop filters are samples in the original domain that have been transformed from the reshaped domain.

[0172] 10. Instead of using padded samples (e.g., samples that are not unavailable, above / below the virtual boundary, above / below the boundary of the video unit) in the ALF filtering process, it is proposed to adopt different ALF filter supports. a. In one example, assuming that the sample needs to be padded in the above - mentioned way, instead of performing the padding, the filter coefficients related to that sample are set to be zero. i. In this case, the filter support is changed by excluding the samples that need to be padded. ii. Alternatively, further, the filter coefficients applied to other samples excluding the current sample remain unchanged, while the filter coefficient applied to the current sample can be changed as ((1 << C_BD) - the sum of all filter coefficients applied to samples that do not need to be padded). Here, C_BD indicates the bit - depth of the filter coefficient. 1. Taking FIGS. 18A - 18B as an example, when filtering lines L and I, the filter coefficient c12 applied to the current sample is changed to be ((1 << C_BD) - 2×(c4 + c5 + c6 + c7 + c8 + c9 + c10 + c11)). b. In one example, assuming that the sample (x1, y1) is padded from (x2, y2) in the above - mentioned way, instead of performing the padding, regardless of whether the non - linear filter is enabled or disabled, the filter coefficients related to (x1, x2) are added to those at position (x2, y2). i. Alternatively, further, the clipping parameter of (x2, y2) can be derived on - the - fly. 1. In one example, it can be set equal to the decoded clipping parameter for (x2, y2). 2. Alternatively, it can be set to the return value of a function that takes as input the decoded clipping parameters for (x1, y1) and (x2, y2), such as a larger value or a smaller value.

[0173] 11. The selection of clipping parameters / filter coefficients / filter support may depend on whether the filtering of samples requires access to padded samples (e.g., not unavailable, above / below a virtual boundary, above / below a video unit boundary). a. In one example, different clipping parameters / filter coefficients / filter support may be used for samples having the same class index, but for some of them, access to padded samples is required and others are not. b. In one example, clipping parameters / filter coefficients / filter support for filtering of samples that need to access padded samples may be signaled at the CTU / region / slice / tile level. c. In one example, the clipping parameters / filter coefficients / filter support for filtering of samples that need to access the padded samples may be derived from those used for filtering of samples that do not need to access the padded samples. i. In one example, burette 9a or 9b may be applied.

[0174] 12. The way in which samples at the boundaries are treated for in-loop filtering (eg, ALF) may depend on the color components and / or color format. For example, the definition of "on the border" may be different for different color components. In one example, a luma sample is on the bottom border if the distance between it and the bottom border is less than T1, and a chroma sample is on the bottom border if the distance between it and the bottom border is less than T2. ​​T1 and T2 may be different. i. In one example, T1 and T2 may be different if the color format is not 4:4:4.

[0175] 13. A fixed order of multiple padding processes is applied when the lower / upper / left / right boundary of one CTU / VPDU is also the boundary of a slice / tile / brick / sub-region with independent coding. a. In one example, in the first step, a padding method for the slice / tile / brick (e.g., one-sided padding) is applied first. Then, a padding method for handling the ALF virtual boundary (e.g., two-sided padding) is further applied during the second step. In this case, the padded samples after the first step are marked as available and can be used to determine how many lines should be padded in the ALF virtual boundary process. The same rules for handling CTUs that are not located on those boundaries (e.g., FIG. 16A-C) are utilized.

[0176] 14. The proposed method can be applied to one or more boundaries between two sub-pictures. a. The boundary to which the proposed method is applied may be a horizontal boundary. b. The boundary to which the proposed method is applied may be a vertical boundary.

[0177] 15. The above proposed method can be applied to samples / blocks that are on vertical boundaries.

[0178] 16. Whether and / or how the proposed method should be applied at the "360 virtual boundary" may depend on the location of the "360 virtual boundary". In one example, the proposed method may be applied when the "360 virtual boundary" coincides with the CTU boundary. For example, only double-sided padding may be applied in ALF to samples that are at the "360 virtual boundary." In one example, the proposed method cannot be applied when the "360 virtual boundary" does not coincide with the CTU boundary. For example, only one-sided padding can be applied in ALF to samples that are at the "360 virtual boundary." c. In one example, the same padding method may be applied in ALF to samples that are on the "360 Virtual Boundary" regardless of the location of the "360 Virtual Boundary." i. For example, one-sided padding may be applied in ALF to samples that are on the "360 virtual boundary". ii. For example, double-sided padding may be applied in ALF to samples that are on the "360 virtual boundary". d. In one example, for a sample that is on multiple boundaries, if at least one boundary is a "360 virtual boundary" and at least one of the "360 virtual boundaries" does not coincide with a CTU boundary, then the proposed method may not be applied. For example, samples that cross any of these boundaries may be padded with one-sided padding. 1. Alternatively, and in addition, if there is a "virtual border", two-sided padding can be applied in ALF after one-sided padding. e. In one example, for a sample that is located between two types of boundaries, if one of them is a "360 virtual boundary" and the other is not, padding is only invoked once in the ALF process. i. In one example, a padding method that handles ALF virtual boundaries (eg, a double-sided padding method) may be invoked. 1. Alternatively, a padding method that deals with picture (or slice / tile / brick / subpicture) boundaries (e.g. one-sided padding) can be invoked. ii. Alternatively, two or more padding processes may be applied in sequence. 1. In one example, a padding method that handles picture (or slice / tile / brick / subpicture) boundaries (e.g., one-sided padding) may be applied first, after which a padding method that handles ALF virtual boundaries (e.g., two-sided padding method) may be further invoked. a. Alternatively, further padded samples after the first padding can be used in a second padding process. iii. In one example, for samples located between two or more types of boundaries (e.g. slice / tile / brick / "360 virtual boundary" / "ALF virtual boundary" / sub-picture boundary), the proposed method may be applied if only one of the boundaries is a "360 virtual boundary" (e.g., the first boundary is a "360 virtual boundary" and the second boundary is an "ALF virtual boundary" or slice / brick / tile / sub-picture boundary, or vice versa, as shown in FIG. 24). For example, only double-sided padding may be applied in ALF for those samples. 1. Alternatively, if these types of boundaries are either "360 virtual boundaries" or picture boundaries, the proposed method may not be applied, e.g., only one-sided padding may be applied in ALF for those samples. f. In one example, for a sample that is located between two or more types of boundaries, if at least one of the boundaries is a "360 virtual boundary" that does not coincide with a CTU boundary, the proposed method may not be applied. i. In this case, it can be treated as prior art that deals with samples only at the "360 virtual boundary", but not at other kinds of boundaries. ii. In one example, only one-sided padding may be applied in ALF to those samples. g. In one example, for a sample that is located between two or more types of boundaries, if at least one of the boundaries is a "360 virtual boundary", the proposed method may not be applied. i. In this case, it can be treated as prior art that deals with samples only at the "360 virtual boundary", but not at other kinds of boundaries. ii. In one example, only one-sided padding may be applied in ALF to those samples.

[0179] 17. If a reference picture required in the ALF filtering process (e.g., in FIG. 16C , when filtering the current sample P0, P0i, where i is A / B / C / D) or / and the ALF classification process is “unavailable”, for example because the sample is located in a different video unit (e.g., slice / brick / tile / subpicture) than the current sample and filtering using samples that cross video unit (e.g., slice / brick / tile / subpicture boundaries) is not allowed, the “unavailable” sample may be padded with an “available” sample (e.g., a sample in the same slice / brick / tile / subpicture as the current sample). a. In one example, an “unavailable” reference sample may first be clipped to its nearest “available” horizontal position, and then, if necessary, the “unavailable” reference sample is clipped to its nearest “available” vertical position. b. In one example, the “unavailable” reference sample may be first clipped to its nearest “available” vertical position, and then the “unavailable” reference sample is clipped to its nearest “available” horizontal position, if necessary. c. In one example, the coordinates of an "unavailable" reference sample are clipped to the coordinates of its nearest "available" sample in the horizontal direction (eg, smallest distance). i. In one example, for two samples with coordinates (x1,y1) and (x2,y2), the horizontal distance between them can be calculated as Abs(x1-x2). d. In one example, the coordinates of an "unavailable" reference sample are clipped to the coordinates of its nearest "available" sample (eg, smallest distance) in the vertical direction. i. In one example, for two samples with coordinates (x1,y1) and (x2,y2), the vertical distance between them can be calculated as Abs(y1-y2). e. In one example, an "unavailable" sample is clipped to its nearest "available" sample (eg, minimum distance). i. In one example, for two samples with coordinates (x1,y1) and (x2,y2), the distance between them can be calculated as (x1-x2)x(x1-x2)+(y1-y2)x(y1-y2). ii. Alternatively, the distance between two pixels can be calculated as Abs(x1-x2)+Abs(y1-y2). f. In one example, "unavailable" samples may be padded in a predefined order until an "available" sample is found. An example is shown in Figure 31, where Cur is the current block / CU / PU / CTU. i. For example, the vertical "available" samples may be checked first, then the horizontal "available" samples. ii. For example, the horizontal "available" samples may be checked first, then the vertical "available" samples. iii. For example, for an "unavailable" top-left neighboring sample (e.g., in region "1"), first the left neighboring sample of the current block / CU / PU / CTU (e.g., in region "4") is checked, and if there is no "available" sample, then the top-left neighboring sample (e.g., in region "2") is checked. If there is no "available" sample in either the left or top neighboring sample, the top-left sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. 1. Alternatively, for an "unavailable" top-left neighboring sample, first check the top-neighboring sample of the current block / CU / PU / CTU, and if there is no "available" sample, then check the left-neighboring sample. If there is no "available" sample in either the top-neighboring sample or the left-neighboring sample, the top-left sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. iv. For example, for an "unavailable" top right neighboring sample (e.g., in region "3"), first the right neighboring sample of the current block / CU / PU / CTU (e.g., in region "5") is checked, and if there is no "available" sample, then the upper neighboring sample (e.g., in region "2") is checked. If there is no "available" sample in either the right or upper neighboring sample, the top right sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. 1. Alternatively, for an "unavailable" top right neighboring sample, first the top neighboring sample of the current block / CU / PU / CTU is checked, and if there is no "available" sample, then the right neighboring sample is checked. If there is no "available" sample in either the top or right neighboring sample, the top right sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. v. For example, for an "unavailable" bottom-left adjacent sample (e.g., in region "6"), first the left adjacent sample of the current block / CU / PU / CTU (e.g., in region "4") is checked, and if there is no "available" sample, then the bottom adjacent sample (e.g., in region "7") is checked. If there is no "available" sample in either the left or bottom adjacent sample, the bottom-left sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. 1. Alternatively, for an "unavailable" bottom-left neighboring sample, first the bottom-neighboring sample of the current block / CU / PU / CTU is checked, and if there is no "available" sample, then the left-neighboring sample is checked. If there is no "available" sample in either the bottom-neighboring sample or the left-neighboring sample, the bottom-left sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. vi. For example, for an "unavailable" bottom right neighboring sample, first the right neighboring sample of the current block / CU / PU / CTU (e.g., in region "5") is checked, and if there is no "available" sample, then the bottom neighboring sample (e.g., in region "7") is checked. If there is no "available" sample in either the right or bottom neighboring sample, the bottom right sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. 1. Alternatively, for an "unavailable" bottom-right neighboring sample, first the bottom-neighboring sample of the current block / CU / PU / CTU is checked, and if there is no "available" sample, then the right-neighboring sample is checked. If there is no "available" sample in either the bottom-neighboring sample or the right-neighboring sample, the bottom-right sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. In one example, for each adjacent region, one or more samples may be checked in sequence. Alternatively, only one may be checked. viii. Alternatively, and in addition, if no checks find an available sample, the value of the current sample to be filtered may be used instead. ix. In one example, for an "unavailable" top-left / top-right / bottom-left / bottom-right neighboring sample, it may always be padded by a sample within the current block / CU / PU / CTU. 1. In one example, for an "unavailable" top-left adjacent sample (e.g., within "Area 1" in Figure 31), the top-left sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. 2. In one example, for an "unavailable" upper right adjacent sample (e.g., within "Area 3" in Figure 31), the upper right sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. 3. In one example, for an "unavailable" bottom-left adjacent sample (e.g., within "Area 1" in Figure 31), the bottom-left sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. 4. In one example, for an "unavailable" bottom-right adjacent sample (e.g., within "Area 1" in Figure 31), the bottom-right sample of the current block / CU / PU / CTU is used to pad the "unavailable" sample. g. Alternatively, the filtering process is disabled for the current sample. h. Alternatively, the classification process in the ALF (eg, slope calculation for the current sample) is not allowed to use unavailable reference samples.

[0180] 18. The method for deriving padded samples for unavailable reference samples may depend on whether the CTU coincides with any boundaries. a. In one example, the method described in bullet 16 may be applied when the current CTU does not coincide with any kind of boundary, but a filtering process (e.g., ALF classification / ALF filtering process) for the current sample needs to access a reference sample in a different video unit (e.g., slice). i. Alternatively, the method described in bullet 16 may also be applied when the current CTU does not coincide with any kind of boundary, but the filtering process for the current sample (e.g., ALF classification / ALF filtering process) needs to access reference samples in a different video unit (e.g., slice), and filtering across slice boundaries is not allowed. ii. Alternatively, and further, the method described in bullet 16 may be applied when the current CTU does not coincide with any kind of boundary, but the filtering process for the current sample (e.g., ALF classification / ALF filtering process) needs to access reference samples in a different video unit (e.g., slice) and reference samples in the same video unit, and filtering across slice boundaries is not allowed. b. In one example, if the current CTU coincides with at least one type of boundary, a unified padding method may be applied (eg, double-sided or single-sided padding). i. Alternatively, if the current CTU coincides with multiple types of boundaries and filtering across those boundaries is not allowed, a unified padding method may be applied (e.g., double-sided or single-sided padding). c. In one example, only "unavailable" samples that cannot be padded by double-sided padding or / and single-sided padding can be padded using the method described in Bullet 16.

[0181] 19. Whether a filtering process (e.g., deblocking, SAO, ALF, bilateral filtering, Hadamard transform filtering, etc.) can access samples across video unit boundaries (e.g., slice / brick / tile / subpicture boundaries) may be controlled at different levels, such that it is controlled by itself rather than being controlled for all video units in a sequence / picture. a. Alternatively, one syntax element may be signaled in the PPC / slice header to indicate, for a slice, whether the filtering process is allowed to cross slice boundaries for that slice. b. Alternatively, one syntax element may be signaled in the PPC to indicate, for a brick / tile, whether the filtering process can cross brick / tile boundaries for that brick / tile. c. In one example, a syntax element may be signaled in the SPS / PPS to indicate whether the filtering process can cross brick boundaries or / and tile boundaries or / and slice boundaries or / and "360 degree virtual boundaries" of the video / picture. i. In one example, a separate syntax element may be signaled for each different type of boundary. ii. In one example, one syntax element may be signaled for all types of boundaries. iii. In one example, one syntax element may signal several types of boundaries. 1. For example, one syntax element can signal both brick and tile boundaries. d. In one example, a syntax element may be signaled in the SPS to indicate whether there is a PPC / slice level indication for the filtering process. i. In one example, a separate syntax element may be signaled for each different type of boundary. ii. In one example, one syntax element may be signaled for all types of boundaries. iii. In one example, one syntax element may signal several types of boundaries. 1. For example, one syntax element can signal both brick and tile boundaries. iv. An indication as to whether the filtering process can cross slice / brick / tile / sub-picture boundaries may be signaled in the PPS / slice header only if the corresponding syntax element in the SPS is equal to a particular value. 1. Alternatively, the indication as to whether the filtering process can cross slice / brick / tile / sub-picture boundaries may not be signaled in the PPS / slice header if the corresponding syntax element in the SPS is equal to a particular value. In this case, the filtering process is not allowed to cross slice / brick / tile / sub-picture boundaries if an indication in the SPS is equal to a certain value. b. In this case, the filtering process may cross slice / brick / tile / sub-picture boundaries if an indication in the SPS is equal to a particular value.

[0182] 20. It is proposed to check whether the samples located in the top-left / top-right / bottom-left / bottom-right neighboring regions of the current block are in the same video unit (e.g., slice / brick / tile / subpicture / 360-degree video virtual boundary) as the current block in the ALF process. Let (x0, y0) denote the top-left sample of the current luma coding tree block relative to the top-left sample of the current picture, and ctbXSize and ctbYSize denote the width and height of the CTU, respectively. In one example, a representative sample located in the top left region, for example (x0-offsetX0, y0-offsetY0), may be checked. i. In one example, (offsetX0, offsetY0) may be equal to (1,1), (2,1) or (1,2). b. In one example, a representative sample located in the top right region, for example (x0+offsetX1, y0-offsetY1), may be checked. i. In one example, (offsetX1, offsetY1) may be equal to (ctbXSize, 1), (ctbXSize+1, 1) or (ctbXSize, 2). c. In one example, a representative sample located in the bottom left region, for example (x0-offsetX2, y0+offsetY2), may be checked. i. In one example, (offsetX2, offsetY2) may be equal to (1, ctbYSize), (2, ctbYSize) or (1, ctbYSize+1). d. In one example, a representative sample located in the bottom right region, for example (x0+offsetX3, y0+offsetY3), may be checked. i. In one example, (offsetX3, offsetY3) may be equal to (ctbXSize, ctbYSize), (ctbXSize+1, ctbYSize) or (ctbXSize, ctbYSize+1). e. In one example, if representative samples within a region are in different video units and filtering across different video units is not allowed, samples accessed within the region are marked as unavailable. i. In one example, if representative samples in a region are in different video units and loop_filter_across_slices_enabled_flag is equal to 0, the samples accessed in the region are marked as unavailable. ii. In one example, if representative samples in a region are in different video units and loop_filter_across_bricks_enabled_flag is equal to 0, the samples accessed in the region are marked as unavailable. In one example, samples accessed within a region are marked as unavailable if their representative samples are in different video units and loop_filter_across_subpic_enabled_flag[SubPicIdx] is equal to 0. In one example, SubPicIdx is the index of the current subpicture that contains the current block. f. In the above example, offsetXi / offsetYi (i is 0, . . . , 3) ​​are integers. i. Alternatively, in addition, offsetXi / offsetYi (i is 0,...,3) may be set equal to the width / height of the CTU.

[0183] 21. The above proposed method may be applied not only to ALF but also to other types of filtering methods that require access to samples outside the current block. a. Alternatively, the above proposed method may be applied to other coding tools (non-filtering methods) that need access to samples outside the current block.

[0184] 22. Whether and / or how the above methods should be applied may be determined by: a. Messages reported in DPS / SPS / VPS / PPS / APS / Picture Header / Slice Header / Tile Group Header / Largest Coding Unit (LCU) / Coding Unit (CU) / LCU Row / Group of LCU / TU / PU Block / Video Coding Unit b. CU / PU / TU / Block / Video Coding Unit Location c. Block dimensions of the current block and / or its adjacent blocks d. Block shape of the current block and / or its adjacent blocks e. coded information of the current block and / or its neighboring blocks f. Color format (e.g. 4:2:0, 4:4:4) indication g. Coding Tree Structure h. Slice / tile group type and / or picture type i. Color components (e.g., may be applied only to chroma or luma components) j.Time Layer ID k. Standard Profile / Level / Tier

[0185] [5. Embodiment] The following sections provide some examples of how the current version of the VVC standard has been modified to conform to some embodiments of the disclosed technology. New additions are indicated in bold italic underlined text. Deleted parts are indicated using double brackets [[]].

[0186] [5.1 Embodiment #1] [Table 9]

[0187] [5.2 Embodiment #2] Figure 21 shows the processing of a CTU in a picture, with the differences compared to Figure 19 highlighted with dashed lines.

[0188] [5.3 Embodiment #3] [Table 10] TIFF0007560227000039.tif239151TIFF0007560227000040.tif164151

[0189] Alternatively, the condition "the lower boundary of the current coding tree block is the lower boundary of the picture" can be replaced with "the lower boundary of the current coding tree block is the lower boundary of the picture or is outside the picture".

[0190] [5.4 Embodiment #4] This embodiment illustrates an example of not allowing samples below the VPDU to be used in the ALF classification process (corresponding to bullet 7 in Section 4). [Table 11] TIFF0007560227000042.tif250150TIFF0007560227000043.tif116145

[0191] [5.5 Embodiment #5] For samples that lie on multiple types of boundaries (e.g. slice / brick boundaries, 360 degree virtual boundaries), the padding process is only called once, and how many lines per side should be padded depends on the position of the current sample relative to the boundary.

[0192] In one example, the ALF double-sided padding method is applied. Alternatively, or even in a symmetric double-sided padding method, when a sample is on two boundaries, for example, one boundary on the upper side and one boundary on the lower side, how many samples are padded is determined by the closer boundary, as shown in Figure 27. Meanwhile, in Figure 27, only four lines between the two boundaries are used when deriving classification information.

[0193] Figure 26 shows an example of a padding method when four lines of samples are included in two boundaries. In one example, the first boundary in Figure 26 may be an ALF virtual boundary and the second boundary in Figure 25 may be a slice / tile / brick boundary or a 360 degree virtual boundary.

[0194] [5.6 Embodiment #6] [Table 12] TIFF0007560227000045.tif250166TIFF0007560227000046.tif242151TIFF000 7560227000047.tif247152TIFF0007560227000048.tif246146TIFF00075602270 00049.tif239151TIFF0007560227000050.tif245151TIFF0007560227000051.t if212151TIFF0007560227000052.tif242151TIFF0007560227000053.tif232151

[0195] [5.7 Embodiment #7] For a CTU, it may not coincide with any boundary (e.g., picture / slice / tile / brick / subpicture boundary). However, it may need to access samples outside the current unit (e.g., picture / slice / tile / brick / subpicture). If filtering across slice boundaries is disabled (e.g., loop_filter_across_slices_enabled_flag is false), it may need to pad samples outside the current unit.

[0196] For example, for sample 2801 in FIG. 28 (taking the luma sample as an example), the sample used in the ALF filtering process may be padded as seen in FIG. 29.

[0197] [5.8 Embodiment #8] In this embodiment, the following main ideas apply:

[0198] Regarding enabling the ALF virtual boundary For a CTU that is not located in the last CUT row in a picture (e.g., the bottom boundary of the CTU is not the bottom boundary of the picture and does not cross the bottom boundary of the picture), the ALF virtual boundary is enabled, i.e., one CTU may be divided into two or more parts, and samples in one part are not allowed to use samples in the other parts.

[0199] For a CTU located in the last CUT row in a picture (e.g., the bottom boundary of the CTU is at or exceeds the bottom boundary of the picture), the ALF virtual boundary is enabled, i.e., one CTU may be divided into two or more parts, and samples in one part are not allowed to use samples in the other parts.

[0200] Regarding padding of boundaries (including ALF virtual boundaries, slice / tile / brick / subpicture boundaries, and "360 virtual boundaries") in the classification process. For samples that lie on one (or more) boundaries, if adjacent samples across the boundary are not allowed to be used, one-sided padding is performed to pad such adjacent samples.

[0201] Regarding padding of boundaries in the ALF filtering process (including ALF virtual boundaries, slice / tile / brick / subpicture boundaries, and "360 virtual boundaries") For samples that lie on one (or more) boundaries, be it a slice / tile / brick / subpicture boundary that coincides with a CTU boundary or a "360 virtual boundary", if adjacent samples across the boundary are not allowed to be used, then double-sided padding is performed to pad such adjacent samples.

[0202] For samples that lie on one (or more) boundaries, be they picture boundaries or "360 virtual boundaries" that do not coincide with a CTU boundary, if adjacent samples across the boundary are not allowed to be used, then one-sided padding is performed to pad such adjacent samples. [Table 13] TIFF0007560227000055.tif249151TIFF0007560227000056.tif248151TIFF0007560227000057.tif222161TIFF00075602270 00058.tif243151TIFF0007560227000059.tif244151TIFF0007560227000060.tif248145TIFF0007560227000061.tif188129 TIFF0007560227000062.tif248170TIFF0007560227000063.tif246151TIFF0007560227000064.tif248146TIFF00075602270 00065.tif247151TIFF0007560227000066.tif245151TIFF0007560227000067.tif246151TIFF0007560227000068.tif239151

[0203] The eigenvalue -128 used in the above embodiment may be replaced with other values ​​such as -K, for example, where K is greater than or equal to the number shifted from the lower boundary of the CTU (e.g., K=-5).

[0204] Alternatively, the conditional check "PpsVirtualBoundariesPosY[n] is not equal to pic_height_in_luma_samples-1 or 0" can be further excluded based on PpsVirtualBoundariesPosY[n] being in the range of 1 to Ceil(pic_height_in_luma_samples÷8)-1, inclusive.

[0205] Alternatively, one flag may be used to mark whether each sample needs to be treated differently if it is located at a video unit boundary.

[0206] [5.9 Embodiment #9] In this embodiment, the following main ideas apply:

[0207] Regarding enabling the ALF virtual boundary For a CTU that is not located in the last CUT row in a picture (e.g., the bottom boundary of the CTU is not the bottom boundary of the picture and does not cross the bottom boundary of the picture), the ALF virtual boundary is enabled, i.e., one CTU may be divided into two or more parts, and samples in one part are not allowed to use samples in the other parts.

[0208] For a CTU located in the last CUT row in a picture (e.g., the bottom boundary of the CTU is at or exceeds the bottom boundary of the picture), the ALF virtual boundary is enabled, i.e., one CTU may be divided into two or more parts, and samples in one part are not allowed to use samples in the other parts.

[0209] Regarding padding of boundaries (including ALF virtual boundaries, slice / tile / brick / subpicture boundaries, and "360 virtual boundaries") in the classification process. For samples that lie on one (or more) boundaries, if adjacent samples across the boundary are not allowed to be used, one-sided padding is performed to pad such adjacent samples.

[0210] Regarding padding of boundaries in the ALF filtering process (including ALF virtual boundaries, slice / tile / brick / subpicture boundaries, and "360 virtual boundaries") For samples that lie on one (or more) boundaries, be it a slice / tile / brick / subpicture boundary that coincides with a CTU boundary or a "360 virtual boundary", if adjacent samples across the boundary are not allowed to be used, then double-sided padding is performed to pad such adjacent samples.

[0211] For samples that lie on one (or more) boundaries, be they picture boundaries or "360 virtual boundaries" that do not coincide with a CTU boundary, if adjacent samples across the boundary are not allowed to be used, then one-sided padding is performed to pad such adjacent samples. [Table 14] TIFF0007560227000070.tif249151TIFF0007560227000071.tif248151TIFF0007560227000072.tif219161TIFF000 7560227000073.tif243151TIFF0007560227000074.tif249151TIFF0007560227000075.tif250145TIFF00075602270 00076.tif186129TIFF0007560227000077.tif246151TIFF0007560227000078.tif248146TIFF0007560227000079.t if247151TIFF0007560227000080.tif245151TIFF0007560227000081.tif239151TIFF0007560227000082.tif233151

[0212] The eigenvalue -128 used in the above embodiment may be replaced with other values ​​such as -K, for example, where K is greater than or equal to the number shifted from the lower boundary of the CTU (e.g., K=-5).

[0213] Alternatively, one flag may be used to mark whether each sample needs to be treated differently if it is located at a video unit boundary.

[0214] [5.10 Embodiment #10] [Table 15] TIFF0007560227000084.tif240151TIFF0007560227000085.tif239151TIFF000 7560227000086.tif245153TIFF0007560227000087.tif247151TIFF0007560227 000088.tif251153TIFF0007560227000089.tif230151TIFF0007560227000090. tif246150TIFF0007560227000091.tif246151TIFF0007560227000092.tif91146

[0215] FIG. 22 is a block diagram of a video processing device 2200. The device 2200 may be used to implement one or more of the methods described herein. The device 2200 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 2200 may include one or more processors 2202, one or more memories 2204, and video processing hardware 2206. The processor 2202 may be configured to implement one or more of the methods described herein. The memory(s) 2204 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 2206 may be used to implement some of the techniques described herein in a hardware circuit. In some embodiments, the video processing hardware 2206 may be integrated or partially integrated into the processor 2202 (e.g., a graphics processing unit).

[0216] In some embodiments, the video coding method may be implemented using an apparatus implemented on the hardware platform described in connection with FIG.

[0217] 23 is a flow chart of an example method of video processing 2300. The method includes determining (2302) one or more interpolation filters to use during a conversion between a current video block of a video and a bitstream representation of the current video block, where the one or more interpolation filters are from a plurality of interpolation filters for the video, and performing the conversion with the one or more interpolation filters (2304).

[0218] The various solutions and embodiments described herein are further described with a list of solutions.

[0219] Section 4, item 1 provides further examples of the following solutions.

[0220] Solution 1. A method of video processing, comprising: performing a conversion between a video block of a video picture and its bitstream representation; the video block is processed using a logical grouping of coding tree blocks, the coding tree blocks being processed based on whether a bottom boundary of a bottom coding tree block is outside a bottom boundary of a video picture. method.

[0221] Solution 2. The method of Solution 1, processing the coding tree block includes performing adaptive loop filtering of sample values ​​of the coding tree block by using samples in the coding tree block. method.

[0222] Solution 3. The method of solution 1, processing the coding tree block includes performing adaptive loop filtering of sample values ​​of the coding tree block by disabling a division of the coding tree block into two parts according to a virtual boundary. method.

[0223] Section 4, item 2 provides a further example of the following solution.

[0224] Solution 4. A method of video processing comprising the steps of: determining a usage state of the virtual samples during in-loop filtering based on a condition of the coding tree block of the current video block; performing a conversion between the video block and a bitstream representation of the video block according to a usage state of the virtual sample; The method includes:

[0225] Solution 5. The method of solution 4, the logical truth value of the usage state indicates that the current video block is divided into at least two parts by a virtual boundary, and filtering samples in one part is not allowed to utilize information from the other part; method.

[0226] Solution 6. The method of solution 4, the logical truth value of the usage state is used during the in-loop filtering; the in-loop filtering is performed using modified values ​​of the reconstructed samples of the current video block. method.

[0227] Solution 7. The method of solution 4, A logical false value of the usage state indicates that filtering samples within the block is permitted to utilize information within the same block. method.

[0228] Solution 8. The method of solution 4, a logical true value of the usage state indicates that the in-loop filtering is performed on the reconstructed samples of the current video block without further modifying the reconstructed samples. method.

[0229] Claim 9. A method according to any one of solutions 4 to 8, the condition specifies that the coding tree block has a particular size such that the usage state is set to a logical false value. method.

[0230] Claim 10. A method according to any one of solutions 4 to 8, the condition specifies that the coding tree block has a size greater than a particular size, causing the usage state to be set to a logical false value. method.

[0231] Solution 11. The method of any one of solutions 4 to 8, the coding tree block has a size smaller than a particular size; method.

[0232] Section 4, item 3 provides a further example of the following solution.

[0233] Solution 12. The method of Solution 5, the condition is dependent on whether a bottom boundary of the current video block is a bottom boundary of a video unit smaller than a video picture, or whether the bottom boundary of the current video block is a virtual boundary. method.

[0234] Solution 13. The method of solution 12, The condition depends on whether a bottom boundary of the current video block is a bottom boundary of a slice or tile or brick boundary. method.

[0235] Solution 14. The method of solution 12, the condition specifies setting the used state to a logical true value if a bottom boundary of the current video block is a bottom boundary of a slice or tile or brick boundary. method.

[0236] Solution 15. The method of solutions 4 to 12, the condition specifies setting the used state to a logical false value if the bottom boundary of the current video block is at or outside the bottom boundary of a picture boundary. method.

[0237] Section 4, item 4 provides further examples of the following solutions.

[0238] Solution 16. A method for video processing comprising the steps of: determining, during conversion between a video picture logically grouped into one or more video slices or video bricks and a bitstream representation of the video picture, to disable use of samples in other slices or bricks in an adaptive loop filter process; performing said conversion in accordance with said determination; The method includes:

[0239] Section 4, item 5 provides further examples of the following solutions.

[0240] Solution 17. A method for video processing comprising the steps of: determining, during conversion between a current video block of a video picture and a bitstream representation of the current video block, that the current video block contains samples that are located on a boundary of a video unit of the video picture; performing the conversion based on the determination; Including, performing the transformation includes generating virtual samples for in-loop filtering using a uniform approach that is the same for all boundary types in the video picture. method.

[0241] Solution 18. The method of Solution 17, The video unit is a slice or a tile or a 360 degree video. method.

[0242] Solution 19. The method of Solution 17, The in-loop filtering includes adaptive loop filtering. method.

[0243] Solution 20. The method of any one of solutions 17 to 19, The unified method is a double-sided padding method. method.

[0244] Solution 21. The method of any one of solutions 17 to 20, In the unified approach, when access to samples below a first line is not permitted and padding is used to generate virtual samples for samples below the first line, access to samples above a second line is also not permitted and padding is used to generate virtual samples for samples above the second line. method.

[0245] Solution 22. Any of the methods of solutions 17 to 20, In the unified approach, when access to samples above a first line is not permitted and padding is used to generate virtual samples for the samples above the first line, access to samples below a second line is also not permitted and padding is used to generate virtual samples for the samples below the second line. method.

[0246] Solution 23. Any of the methods of solutions 21 to 22, the distance between the first line and the current line on which the current sample to be filtered is located, and the distance between the second line and the first line are equal; method.

[0247] Section 4, item 6 provides further examples of the following solutions.

[0248] Solution 24. A method for video processing comprising the steps of: determining, during a conversion between a current video block of a video picture and its bitstream representation, to apply one of a plurality of adaptive loop filter (ALF) sample selection methods available to the video picture during the conversion; performing the conversion by applying one of the plurality of ALF sample selection methods; The method includes:

[0249] Solution 25. The method of Solution 24, the plurality of ALF sample selection methods include a first method in which samples are selected before an in-loop filter is applied to the current video block during the transform, and a second method in which samples are selected after an in-loop filter is applied to the current video block during the transform. method

[0250] Section 4, item 7 provides further examples of the following solutions.

[0251] Solution 26: A method for video processing, comprising: performing an in-loop filtering operation on samples of a current video block of a video picture during conversion between the current video block and a bitstream representation of the current video block based on a boundary rule, the boundary rule disabling the use of samples that cross a virtual pipeline data unit (VPDU) of the video picture; performing the transformation using a result of the in-loop filtering operation; The method includes:

[0252] Solution 27. The method of Solution 26, the VPDU corresponds to an area of ​​the video picture having a fixed size, method.

[0253] Solution 28. Any of the methods of solutions 26 to 27, the boundary rules further define using virtual samples for the in-loop filtering in place of the invalidated samples. method.

[0254] Solution 29. A method according to Solution 28, The virtual samples are generated by padding. method.

[0255] Section 4, item 8 provides further examples of the following solutions.

[0256] Solution 30. A method for video processing comprising the steps of: performing an in-loop filtering operation on samples of a current video block of a video picture during conversion between the current video block and a bitstream representation of the current video block based on a boundary rule, the boundary rule specifying using samples that are generated without padding for positions of the current video block that span a video unit boundary; performing the transformation using a result of the in-loop filtering operation; The method includes:

[0257] Solution 31. The method of solution 30, The samples are generated using a double-sided padding method. method.

[0258] Solution 32. The method of solution 30, the in-loop filtering operation comprises using the same virtual sample generation technique for symmetrically located samples during the in-loop filtering operation. method.

[0259] Solution 33. Any of the methods 30 to 32, the in-loop filtering operation on the samples of the current video block includes performing a reshaping of the samples of the current video block before applying the in-loop filtering. method.

[0260] Section 4, item 9 provides further examples of the following solutions.

[0261] Solution 34. A method for video processing comprising: performing an in-loop filtering operation on samples of a current video block of a video picture during conversion between the current video block and a bitstream representation of the current video block based on a boundary rule, the boundary rule defining selecting for the in-loop filtering operation a filter having a size such that samples of the current video block used during the in-loop filtering operation do not cross a boundary of a video unit of the video picture; performing the transformation using a result of the in-loop filtering operation; The method includes:

[0262] Section 4, item 10 provides further examples of the following solutions.

[0263] Solution 35. A method for video processing comprising: performing an in-loop filtering operation on samples of a current video block of a video picture during conversion between the current video block and a bitstream representation of the current video block based on a boundary rule, the boundary rule defining selecting clipping parameters or filter coefficients for the in-loop filtering operation based on whether padded samples are needed for the in-loop filtering operation; performing the transformation using a result of the in-loop filtering operation; The method includes:

[0264] Solution 36. The method of Solution 35, the clipping parameters or filter coefficients are included in the bitstream representation, method.

[0265] Section 4, item 11 provides further examples of the following solutions.

[0266] Solution 37. A method for video processing comprising: performing an in-loop filtering operation on samples of a current video block of a video picture during conversion between the current video block and a bitstream representation of the current video block based on a boundary rule, the boundary rule being dependent on a color component identification of the current video block; performing the transformation using a result of the in-loop filtering operation; and The method includes:

[0267] Solution 38. The method of Solution 37, the boundary rules are different for luma and / or different color components; method.

[0268] Solution 39. Any of the methods of solutions 1 to 38, the converting includes encoding the current video block into the bitstream representation. method.

[0269] Solution 40. The method of any one of Solutions 1 to 38, the converting includes decoding the bitstream representation to generate sample values ​​for the current video block. method.

[0270] Solution 41. A video encoding device comprising a processor configured to implement the method according to any one or more of solutions 1 to 38.

[0271] Solution 42. A video decoding device comprising a processor configured to implement the method according to any one or more of solutions 1 to 38.

[0272] Solution 43. A computer readable medium storing code, comprising: The code, when executed by a processor, causes the processor to implement a method as described in any one of solutions 1 to 38. Computer-readable medium.

[0273] FIG. 31 is a block diagram illustrating an example video processing system 3100 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of the system 3100. The system 3100 may include an input 3102 that receives video content. The video content may be received in raw or uncompressed format, e.g., 8 or 10 bit multi-component pixel values, or may be in a compressed or encoded format. The input 3102 may correspond to a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces such as Ethernet, passive optical networks (PON), and the like, and wireless interfaces such as Wi-Fi or cellular networks.

[0274] The system 3100 may include a coding component 3104 that may implement various coding or encoding methods described herein. The coding component 3104 may reduce the average bit rate of the video from the input 3102 to an output of the coding component 3104 to generate a coded representation of the video. The coding techniques are therefore sometimes referred to as video compression or video transcoding techniques. The output of the coding component 3104 may be stored or transmitted via a connected communication, as represented by component 3106. The stored or communicated bitstream (or coded) representation of the video received at the input 3102 may be used by component 3108 to generate pixel values ​​or displayable video that is sent to a display interface 3110. The process of generating a user-viewable video from the bitstream representation is sometimes referred to as video decompression. Furthermore, it will be understood that while certain video processing operations are referred to as "coding" operations or tools, such coding tools or operations are used in an encoder and corresponding decoding tools or operations that transpose the results of the coding will be performed by a decoder.

[0275] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB) or High-Definition Multimedia Interface (HDMI®) or Displayport®, etc. Examples of storage interfaces include Serial Advanced Technology Attachment (SATA), PCI, IDE interfaces, etc. The techniques described herein may be embodied in various electronic devices such as mobile phones, laptops, smartphones, or other devices capable of performing digital data processing and / or video display.

[0276] 32 is a flowchart representation of a method 3200 for video processing according to the present technology. The method 3200 includes, at operation 3210, determining that one or more samples of the video outside the current block are unavailable for a coding process of the transformation for transforming between a current block of the video and a bitstream representation of the video. The coding process includes an adaptive loop filter (ALF) coding process. The method 3200 includes, based on the determination, performing the transformation by using padding samples for the one or more samples of the video. The padding samples are generated by checking the availability of samples in order.

[0277] In some embodiments, the current block comprises a coding unit, a picture unit, or a coding tree unit. In some embodiments, the one or more samples outside the current block that are unavailable comprise samples in a first neighboring block located to the top left of the current block. The order provides that (1) samples in a second neighboring block located above the current block are checked first, (2) if the samples in the second neighboring block are unavailable, samples in a third neighboring block located to the left of the current block are checked next, and (3) if the samples in the third neighboring block are also unavailable, the top left sample of the current block is used to generate the padding sample.

[0278] In some embodiments, the one or more samples outside the current block that are unavailable include samples in a first neighboring block located to the bottom right of the current block, and the order dictates that (1) samples in a second neighboring block located below the current block are checked first, (2) if the samples in the second neighboring block are unavailable, then samples in a third neighboring block located to the right of the current block are checked next, and (3) if the samples in the third neighboring block are also unavailable, then the bottom right sample of the current block is used to generate the padding sample.

[0279] In some embodiments, the one or more samples outside the current block that are unavailable include samples in a first neighboring block located to the right of the current block, and the order dictates that (1) samples in a second neighboring block located above the current block are checked first, (2) if the samples in the second neighboring block are unavailable, then samples in a third neighboring block located to the right of the current block are checked next, and (3) if the samples in the third neighboring block are also unavailable, then the top right sample of the current block is used to generate the padding sample.

[0280] In some embodiments, the one or more samples outside the current block that are unavailable include samples in a first neighboring block located to the bottom left of the current block, and the order dictates that (1) samples in a second neighboring block located below the current block are checked first, (2) if the samples in the second neighboring block are unavailable, then samples in a third neighboring block located to the left of the current block are checked next, and (3) if the samples in the third neighboring block are also unavailable, then the bottom left sample of the current block is used to generate the padding sample.

[0281] In some embodiments, the one or more samples outside the current block that are unavailable include samples in a first neighboring block located to the top left of the current block, and the order dictates that (1) samples in a second neighboring block located to the left of the current block are checked first, (2) if the samples in the second neighboring block are unavailable, then samples in a third neighboring block above the current block are checked next, and (3) if the samples in the third neighboring block are also unavailable, then the top left sample of the current block is used to generate the padding sample.

[0282] In some embodiments, the one or more samples outside the current block that are unavailable include samples in a first neighboring block located to the right of the current block, and the order dictates that (1) samples in a second neighboring block located to the right of the current block are checked first, (2) if the samples in the second neighboring block are unavailable, then samples in a third neighboring block above the current block are checked next, and (3) if the samples in the third neighboring block are also unavailable, then the top right sample of the current block is used to generate the padding sample.

[0283] In some embodiments, the one or more samples outside the current block that are unavailable include samples in a first neighboring block located to the bottom left of the current block, and the order dictates that (1) samples in a second neighboring block located to the left of the current block are checked first, (2) if the samples in the second neighboring block are unavailable, then samples in a third neighboring block located below the current block are checked next, and (3) if the samples in the third neighboring block are also unavailable, then the bottom left sample of the current block is used to generate the padding sample.

[0284] In some embodiments, the one or more samples outside the current block that are unavailable include samples in a first neighboring block located to the bottom right of the current block, and the order dictates that (1) samples in a second neighboring block located to the right of the current block are checked first, (2) if the samples in the second neighboring block are unavailable, then samples in a third neighboring block located below the current block are checked next, and (3) if the samples in the third neighboring block are also unavailable, then the bottom right sample of the current block is used to generate the padding sample.

[0285] In some embodiments, the order defines that (1) available samples in the vertical direction are checked first, and (2) available samples in the horizontal direction are optionally checked next. In some embodiments, the order defines that (1) available samples in the horizontal direction are checked first, and (2) available samples in the vertical direction are optionally checked next. In some embodiments, samples in each neighboring block of the current block are checked in order. In some embodiments, only one sample is checked in each neighboring block of the current block.

[0286] In some embodiments, if no available sample is found to generate a padding sample, the current sample in the current block is used in the ALF coding process. In some embodiments, for an unavailable sample in a neighboring block located at (1) the top left of the current block, (2) the top right of the current block, (3) the bottom right of the current block, or (4) the bottom left of the current block, the sample is padded with one or more samples in the current block. In some embodiments, the top left sample of the current block is used to pad a sample in a neighboring block located at the top left of the current block. In some embodiments, the top right sample of the current block is used to pad a sample in a neighboring block located at the top right of the current block. In some embodiments, the bottom left sample of the current block is used to pad a sample in a neighboring block located at the bottom left of the current block. In some embodiments, the bottom right sample of the current block is used to pad a sample in a neighboring block located at the bottom right of the current block. In some embodiments, the coding process further comprises another filtering coding process that accesses one or more samples outside the current block.

[0287] FIG. 33 is a flow chart representation of a method 3300 for video processing according to the present technology. The method 3300 includes, at operation 3310, making a first decision regarding whether samples in a neighboring block of a current block are in the same video domain as the current block for conversion between the current block of video and a bitstream representation of the video. The neighboring block is located (1) to the top left of the current block, (2) to the top right of the current block, (3) to the bottom left of the current block, or (4) to the bottom right of the current block. The method 3300 includes, at operation 3320, using the first decision to make a second decision regarding applicability of a coding tool using samples outside the current block for conversion of the current block. The coding tool includes an adaptive loop filter (ALF) tool including an ALF classification process and / or an ALF filtering process. The method 3300 includes, at operation 3330, performing the conversion according to the first and second decisions.

[0288] In some embodiments, the current block comprises a coding unit, a picture unit, or a coding tree unit. A video region comprises a slice, a brick, a tile, or a subpicture. In some embodiments, a sample is considered unavailable to a coding tool if (1) the sample and a current sample of a current block are in different video regions, and (2) accessing the sample across different video regions of the video is disabled for the coding tool. In some embodiments, a syntax element is signaled in the coded representation to indicate whether accessing the sample across different video regions of the video is disabled. In some embodiments, the method includes applying a padding process in response to the sample being unavailable for the coding tool to derive a padding sample.

[0289] In some embodiments, the top-left sample of the current block is represented as (x0,y0), and the sample (x0-offsetX0,y0-offsetY0) in the neighboring block located to the top-left of the current block is checked, where offsetX0 and offsetY0 are integers. In some embodiments, (offsetX0,offsetY0) has (1,1), (2,1), or (1,2).

[0290] In some embodiments, the top left sample of the current block is represented as (x0,y0), and the sample (x0+offsetX1,y0-offsetY1) in the neighboring block located to the top right of the current block is checked, where offsetX1 and offsetY1 are integers. In some embodiments, (offsetX1,offsetY1) has the value (BlockWidth,1), (BlockWidth+1,1) or (BlockWidth,2), where BlockWidth is the width of the current block.

[0291] In some embodiments, the top-left sample of the current block is denoted as (x0,y0), and the sample (x0-offsetX2,y0+offsetY2) in the neighboring block located to the bottom-left of the current block is checked, where offsetX2 and offsetY2 are integers. In some embodiments, (offsetX2,offsetY2) has the value (1,BlockHeight), (2,BlockHeight) or (1,BlockHeight+1), where BlockHeight is the height of the current block.

[0292] In some embodiments, the top left sample of the current block is denoted as (x0,y0), and the sample (x0+offsetX3,y0+offsetY3) in the neighboring block located to the bottom right of the current block is checked, where offsetX3 and offsetY3 are integers. In some embodiments, (offsetX3,offsetY3) has the value (BlockWidth,BlockHeight), (BlockWidth+1,BlockHeight) or (BlockWidth,BlockHeight+1), where BlockWidth is the width of the current block and BlockHeight is the height of the current block.

[0293] In some embodiments, offsetXk or offsetYk is determined based on the width or height of the current block, where k=0, 1, 2, or 3. In some embodiments, the coding tool further comprises other filtering coding tools.

[0294] In some embodiments, the applicability of one or more of the methods to the current block is determined based on characteristics of the video. In some embodiments, the characteristics of the video include information signaled in a decoder parameter set, a slice parameter set, a video parameter set, a picture parameter set, an adaptation parameter set, a picture header, a slice header, a tile group header, a largest coding unit (LCU), a coding unit, an LCU row, a group of LCUs, a transform unit, a picture unit, or a video coding unit in the coded representation. In some embodiments, the characteristics of the video include a position of a coding unit, a picture unit, a transform unit, a block, or a video coding unit within the video. In some embodiments, the characteristics of the video include characteristics of a current block or a neighboring block of the current block. In some embodiments, the characteristics of the current block or a neighboring block of the current block include a size of the current block or a size of said neighboring block of the current block. In some embodiments, the characteristics of the current block or a neighboring block of the current block include a shape of the current block or a shape of a neighboring block of the current block. In some embodiments, the characteristics of the video include an indication of a color format of the video. In some embodiments, the characteristics of the video include a coding tree structure to be applied to the video. In some embodiments, the characteristics of the video include a slice type, a tile group type, or a picture type of the video. In some embodiments, the characteristics of the video include a color component of the video. In some embodiments, the characteristics of the video include a temporal layer identifier of the video. In some embodiments, the characteristics of the video include a profile, level, or tier of a video standard.

[0295] In some embodiments, the conversion includes encoding the video into a bitstream representation. In some embodiments, the conversion includes decoding the bitstream representation into the video.

[0296] FIG. 34 is a block diagram illustrating an example video coding system 100 that may utilize the techniques of this disclosure.

[0297] 34, video coding system 100 may include source device 110 and destination device 120. Source device 110 generates encoded video data and may be referred to as a video encoding device. Destination device 120 can decode the encoded video data generated by source device 110 and may be referred to as a video decoding device.

[0298] The source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.

[0299] The video source 112 may include a source such as a video capture device, an interface that receives video data from a video content provider, and / or a computer graphics system that generates video data, or a combination of such sources. The video data may have one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include a coded picture and associated data. A coded picture is a coded representation of a picture. The associated data may include a sequence parameter set, a picture parameter set, and other syntax structures. The I / O interface 116 may include a modulator / demodulator (modem) and / or a transmitter. The coded video data may be transmitted directly over the network 130a to the destination device 120 via the I / O interface 116. The coded video data may also be stored in a storage medium / server 130b for access by the destination device 120.

[0300] The destination device 120 may include an I / O interface 126 , a video decoder 124 , and a display device 122 .

[0301] The I / O interface 126 may include a receiver and / or a modem. The I / O interface 126 may obtain encoded video data from the source device 110 or the storage medium / server 130b. The video decoder 124 may decode the encoded video data. The display device 122 may display the decoded video data to a user. The display device 122 may be integrated with the destination device 120 or may be external to the destination device 120 and configured to interface with an external display device.

[0302] The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, the Versatile Video Coding (VVC) standard, and other current and / or future standards.

[0303] FIG. 35 is a block diagram illustrating an example of a video encoder 200, which may be the video encoder 114 of the system 100 illustrated in FIG.

[0304] Video encoder 200 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 35, video encoder 200 includes multiple functional components. The techniques described in this disclosure may be shared among various components of video encoder 200. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0305] Functional components of the video encoder 200 may include a partition unit 201, a prediction unit 202, which may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205, and an intra prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.

[0306] In other examples, video encoder 200 may include more, fewer, or different functional components. In an example, prediction unit 202 may include an Intra Block Copy (IBC) unit. The IBC unit may perform prediction in an IBC mode, where at least one reference picture is the picture in which the current video block is located.

[0307] Furthermore, some components, such as the motion estimation unit 204 and the motion compensation unit 205, may be highly integrated, but are depicted separately in the example of FIG. 35 for purposes of illustration.

[0308] Partition unit 201 may partition a picture into one or more video blocks. Video encoder 200 and video decoder 300 may support a variety of video block sizes.

[0309] The mode selection unit 203 may select one of intra or inter coding modes, for example based on an error result, and provide the resulting intra or inter coded block to a residual generation unit 207 that generates residual block data, and to a reconstruction unit 212 that reconstructs the coded block for use as a reference picture. In some examples, the mode selection unit 203 may select a Combination of Intra and Inter Prediction (CIIP) mode, in which prediction is based on an inter prediction signal and an intra prediction signal. The mode selection unit 203 may also select a resolution (e.g., sub-pixel or integer pixel precision) for the motion vector of the block in the case of inter prediction.

[0310] To perform inter prediction on the current video block, motion estimation unit 204 may generate motion information for the current video block by comparing one or more reference frames from buffer 213 with the current video block. Motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from buffer 213 other than the picture associated with the current video block.

[0311] Motion estimation unit 204 and motion compensation unit 205 may perform different operations for the current video block depending on whether the current video block is an I slice, a P slice, or a B slice, for example.

[0312] In some examples, motion estimation unit 204 may perform unidirectional prediction for the current video block, and motion estimation unit 204 may look for a reference video block for the current video block from a reference picture in list 0 or list 1. Motion estimation unit 204 may then generate a reference index indicating a reference picture in list 0 or list 1 that contains the reference video block, and a motion vector indicating a spatial displacement between the current video block and the reference video block. Motion estimation unit 204 may output the reference index, the prediction direction indicator, and the motion vector as motion information for the current video block. Motion compensation unit 205 may generate a predicted video block for the current block based on the reference video block indicated by the motion information of the current video block.

[0313] In another example, motion estimation unit 204 may perform bidirectional prediction for the current video block, and motion estimation unit 204 may look for a reference video block for the current video block from a reference picture in list 0 and may look for another reference video block for the current video block from a reference picture in list 1. Motion estimation unit 204 may then generate a reference index indicating the reference pictures in list 0 and list 1 that contain the reference video blocks, and a motion vector indicating the spatial displacement between the reference video block and the current video block. Motion estimation unit 204 may output the reference index and the motion vector of the current video block as motion information of the current video block. Motion compensation unit 205 may generate a predicted video block for the current video block based on the reference video block indicated by the motion information of the current video block.

[0314] In some examples, the motion estimation unit 204 may output a full set of motion information for the decoding process of the decoder.

[0315] In some examples, motion estimation unit 204 may not output a full set of motion information for the current video. Rather, motion estimation unit 204 may reference motion information of other video blocks to inform the motion information of the current video block. For example, motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.

[0316] In one example, motion estimation unit 204 may indicate in a syntax structure associated with the current video block a value that indicates to video decoder 300 that the current video block has the same motion information as other video blocks.

[0317] In another example, motion estimation unit 204 may identify another video block and a motion vector difference (MVD) in a syntax structure associated with the current video block. The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the identified video block. Video decoder 300 may use the motion vector and the motion vector difference of the identified video block to determine the motion vector of the current video block.

[0318] As described above, video encoder 200 may predictively signal motion vectors. Two examples of predictive signaling techniques that may be implemented by video encoder 200 include Advanced Motion Vector Prediction (AMVP) and merge mode signaling.

[0319] Intra prediction unit 206 may perform intra prediction on the current video block. When intra prediction unit 206 performs intra prediction on the current video block, intra prediction unit 206 may generate predictive data for the current video block based on decoded samples of other video blocks in the same picture. The predictive data for the current video block may include a predicted video block and various syntax elements.

[0320] Residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., as indicated by a minus sign) the predicted video block of the current video block from the current video block. The residual data for the current video block may include residual video blocks that correspond to different sample components of the samples in the current video block.

[0321] In other examples, for example, in skip mode, residual data for the current video block may not be present and residual generation unit 207 may not perform the subtraction operation.

[0322] Transform processing unit 208 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to a residual video block associated with the current video block.

[0323] After transform processing unit 208 generates a transform coefficient video block associated with the current video block, quantization unit 209 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values ​​associated with the current video block.

[0324] Inverse quantization unit 210 and inverse transform unit 211 may apply inverse quantization and inverse transform, respectively, to the transform coefficient video block to reconstruct a residual video block from the transform coefficient video block. Reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by prediction unit 202 to generate a reconstructed video block related to the current block for storage in buffer 213.

[0325] After reconstruction unit 212 reconstructs the video blocks, a loop filtering operation may be performed to reduce video blocking artifacts in the video blocks.

[0326] The entropy encoding unit 214 may receive data from other functional components of the video encoder 200. When the entropy encoding unit 214 receives data, the entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy encoded data and generate a bitstream that includes the entropy encoded data.

[0327] FIG. 36 is a block diagram illustrating an example of a video decoder 300, which may be the video decoder 124 of the system 100 illustrated in FIG.

[0328] The video decoder 300 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 36, the video decoder 300 includes multiple functional components. The techniques described in this disclosure may be shared among various components of the video decoder 300. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0329] In the example of Figure 36, the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, a reconstruction unit 306, and a buffer 307. The video decoder 300 may, in some examples, perform a decoding pass that is generally inverse to the encoding pass described with respect to the video encoder 200 (Figure 35).

[0330] The entropy decoding unit 301 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., coded blocks of video data). The entropy decoding unit 301 may decode the entropy coded video data, and from the entropy decoded video data, the motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list index, and other motion information. The motion compensation unit 302 may determine such information, for example, by implementing AMVP and merge mode.

[0331] The motion compensation unit 302 may optionally perform interpolation based on an interpolation filter to generate the motion compensated block. An identifier for the interpolation filter used with sub-pixel precision may be included in the syntax element.

[0332] Motion compensation unit 302 may use the interpolation filters used by video encoder 200 during encoding of the video block to calculate interpolated values ​​for sub-integer pixels of the reference block. Motion compensation unit 302 may determine the interpolation filters used by video encoder 200 according to received syntax information and use the interpolation filters to generate the predictive block.

[0333] The motion compensation unit 302 may use some of the syntax information to determine the size of the blocks used to code the frames and / or slices of the coded video sequence, partition information describing how each macroblock of a picture of the coded video sequence is partitioned, one or more reference frames (and reference frame lists) for each inter-coded block, and other information for decoding the coded video sequence.

[0334] The intra prediction unit 303 may use, for example, an intra prediction mode received in the bitstream to form a prediction block from spatially neighboring blocks. The inverse quantization unit 304 inverse quantizes, i.e., dequantizes, the quantized video block coefficients provided in the bitstream and decoded by the entropy decoding unit 301. The inverse transform unit 305 applies an inverse transform.

[0335] Reconstruction unit 306 may add a corresponding prediction block generated by motion compensation unit 302 or intra prediction unit 303 to the residual block to form a decoded block. If desired, a deblocking filter may also be applied to filter the decoded block to remove blockiness artifacts. The decoded video block is then stored in buffer 307, which provides reference blocks for subsequent motion compensation / intra prediction, as well as generating the decoded video for presentation on a display device.

[0336] From the foregoing, it will be understood that specific embodiments of the presently disclosed technology have been described herein for purposes of illustration, and that various modifications may be made without departing from the scope of the invention. Accordingly, the presently disclosed technology is not limited, except as by the appended claims.

[0337] Some embodiments of the disclosed techniques include making a decision or determination to enable a video processing tool or mode. In an example, when a video processing tool or mode is enabled, an encoder uses or implements the tool or mode in processing blocks of video, but may not necessarily modify the resulting bitstream based on the use of the tool or mode. That is, conversion of blocks of video to a bitstream representation of video uses the video processing tool or mode when it is enabled based on the decision or determination. In another example, when a video processing tool or mode is enabled, a decoder processes the bitstream knowing that the bitstream has been modified based on the video processing tool or mode. That is, conversion of the bitstream representation of video to blocks of video is performed using the video processing tool or mode that was enabled based on the decision or determination.

[0338] Some embodiments of the disclosed techniques include making a decision or determination to disable a video processing tool or mode. In an example, when the video processing tool or mode is disabled, the encoder does not use the tool or mode in converting blocks of video to a bitstream representation of the video. In another example, when the video processing tool or mode is disabled, the decoder processes the bitstream with the video processing tool or mode that was enabled based on the decision or determination, knowing that the bitstream has not been altered.

[0339] Implementations of the subject matter and functional operations described in this patent document may be implemented in various systems, digital electronic circuits, or computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in one or more combinations thereof. Implementations of the subject matter described herein may be implemented as one or more computer program products, e.g., one or more modules of computer program instructions encoded in a tangible and non-transitory computer-readable medium that are executed by or control the operation of a data processing apparatus. The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter that affects a machine-readable propagated signal, or one or more combinations thereof. The term "data processing unit" or "data processing apparatus" encompasses all apparatus, devices, and machines for processing data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. An apparatus may include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes the processor hardware, a protocol stack, a database management system, an operating system, or one or more combinations thereof.

[0340] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a single file dedicated to the program in question, or in multiple coordinated files (e.g., a file storing one or more modules, subprograms, or portions of code), in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

[0341] The processes and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by, and an apparatus may be implemented as, special purpose logic circuitry, such as a field programmable gate array (FPGA) or application specific integrated circuit (ASIC).

[0342] Processors suitable for executing computer programs include, by way of example, both general purpose and special purpose microprocessors, as well as any one or more processors of any kind of digital computer. Generally, a processor will read instructions and data from a read-only memory or a random access memory, or both. The essential elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include one or more mass storage devices, e.g., magnetic, magnetic optical disks, or optical disks, for storing data, or be operatively coupled to receive data from or transfer data to, or both, such one or more mass storage devices. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include, by way of example, all types of non-volatile memory, media, and memory devices, including semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices. The processor and memory may be augmented by, or incorporated in, dedicated logic circuitry.

[0343] It is intended that the specification, together with the drawings, be regarded merely as illustrative, and by illustrative I mean exemplary. As used herein, the use of "or" is intended to include "and / or" unless the context clearly indicates otherwise.

[0344] Although the specification contains numerous details, they should not be construed as limitations on the scope of any subject matter or what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of a particular technology. Certain features described herein in the context of separate embodiments may also be implemented in combination with a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as operating in a particular combination, and even initially claimed as such, one or more features from a claimed combination may in some cases be deleted from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.

[0345] Similarly, although operations may be depicted in the figures in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown, or in a sequential order, or that all of the depicted operations be performed, to achieve desired results. Further, the separation of various system components in the embodiments described herein should not be understood as requiring such separation in all embodiments.

[0346] Only a few implementations and examples have been described; other implementations, enhancements and variations can be made based on what is described and illustrated in this patent document.

[0347] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application is a divisional application of International Patent Application No. PCT / CN2020 / 116707 filed on September 22, 2020, claiming priority to and the benefit of International Patent Application No. PCT / CN2019 / 107160 filed on September 22, 2019. All of the above patent applications are incorporated herein by reference.

Claims

1. 1. A method for processing video data, comprising the steps of: making a first determination as to whether samples in a neighboring block of the current block are in the same video domain as the current block for conversion between a current block of video and a bitstream of the video, the neighboring block being located (1) to the upper left of the current block, (2) to the upper right of the current block, (3) to the lower left of the current block, or (4) to the lower right of the current block; making a second decision based on the first decision as to whether the samples in the neighboring block are available to a coding tool that uses samples outside the current block for the transformation of the current block, the coding tool comprising an adaptive loop filter tool including an adaptive loop filter classification process and / or an adaptive loop filtering process; performing said conversion according to said first determination and said second determination; The method according to claim 1,

2. the video region includes a slice; The method of claim 1.

3. the samples in the neighboring block are considered unavailable to the coding tool if (1) the neighboring block and the current block are in different video regions, and (2) access to samples across different video regions of the video is disabled for the coding tool. The method of claim 1.

4. the sample in the neighboring block is located to the top left of the current block; If the top-left neighboring block and the current block are in different video regions and access to samples across different video regions of the video is disabled in the coding tool, a variable flag clipTopLeftFlag is set equal to true, and the top-left neighboring block is considered unavailable based on the value of clipTopLeftFlag being true. The method according to claim 3.

5. the sample in the neighboring block is located to the lower right of the current block; If the bottom right neighboring block and the current block are in different video regions and access to samples across different video regions of the video is disabled in the coding tool, a variable flag clipBottomRightFlag is set equal to true, and the bottom right neighboring block is considered unavailable based on the value of clipBottomRightFlag being true. The method according to claim 3.

6. a syntax element is included in the bitstream to indicate whether access to samples across different video regions of the video is disabled; The method according to claim 3.

7. the video region is a slice; The syntax element in a picture parameter set specifies whether in-loop filtering operations can be performed across slice boundaries in a picture. The method according to claim 6.

8. and applying a padding process in response to the samples in the neighboring blocks being unavailable to the coding tool. The method according to claim 6.

9. said converting including encoding said video into said bitstream; A method according to any one of claims 1 to 8.

10. the converting includes decoding the video from the bitstream. A method according to any one of claims 1 to 8.

11. 1. An apparatus for processing video data, comprising: a processor and a non-transitory memory having instructions; The instructions, when executed by the processor, cause the processor to: making a first determination as to whether samples in a neighboring block of the current block are in the same video domain as the current block for conversion between a current block of video and a bitstream of the video, the neighboring block being located (1) to the upper left of the current block, (2) to the upper right of the current block, (3) to the lower left of the current block, or (4) to the lower right of the current block; making a second decision based on the first decision as to whether the samples in the neighboring block are available to a coding tool that uses samples outside the current block for the transformation of the current block, the coding tool comprising an adaptive loop filter tool including an adaptive loop filter classification process and / or an adaptive loop filtering process; performing said conversion according to said first determination and said second determination; Execute the Device.

12. The processor: making a first determination as to whether samples in a neighboring block of the current block are in the same video domain as the current block for conversion between a current block of video and a bitstream of the video, the neighboring block being located (1) to the upper left of the current block, (2) to the upper right of the current block, (3) to the lower left of the current block, or (4) to the lower right of the current block; making a second decision based on the first decision as to whether the samples in the neighboring block are available to a coding tool that uses samples outside the current block for the transformation of the current block, the coding tool comprising an adaptive loop filter tool including an adaptive loop filter classification process and / or an adaptive loop filtering process; performing said conversion according to said first determination and said second determination; A non-transitory computer-readable storage medium storing instructions for causing a computer to execute the method.

13. A method for storing a bitstream of video, comprising the steps of: making a first determination, for a current block of video, as to whether a sample in a neighboring block of the current block is in the same video region as the current block, the neighboring block being located (1) to the top left of the current block, (2) to the top right of the current block, (3) to the bottom left of the current block, or (4) to the bottom right of the current block; making a second decision based on the first decision as to whether the samples in the neighboring blocks are available to a coding tool that uses samples outside the current block for generating the bitstream of the current block, the coding tool including an adaptive loop filter tool including an adaptive loop filter classification process and / or an adaptive loop filtering process; generating the bitstream according to the first decision and the second decision; storing the bitstream on a non-transitory computer-readable recording medium; The method according to claim 1,

Citation Information

Patent Citations

  • Method and Apparatus of Slice Boundary Padding for Loop Filtering

    US20130128986A1

  • Adaptive loop filter (ALF) padding in accordance with video coding

    US20130343447A1

Cited By

  • Padding process in adaptive loop filtering

    US12273527B2

  • Padding process at unavailable sample locations in adaptive loop filtering

    US12382105B2

  • Classification in adaptive loop filtering

    US12425585B2

  • Handling video unit boundaries and virtual boundaries

    US12526407B2

  • Sample determination for adaptive loop filtering

    US12621445B2