Sample Padding in Adaptive Loop Filtering - Patent application

A unified method for handling virtual boundaries in video coding standards like VVC through double-sided padding and modified ALF coefficients addresses inefficiencies, improving encoding and decoding performance by reducing pipeline bubbles and ensuring consistent filtering across different boundary types.

JP7549081B2Active Publication Date: 2024-09-10DOUYIN VISION CO LTD +1

Patent Information

Application Number
JP2023090586
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-11
Filing Date
2023-06-01
Publication Date
2024-09-10
Estimated Expiration
2040-07-13

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 pipeline bubbles, suboptimal padding methods, and inconsistent results due to nonlinear ALF being enabled or disabled, especially when CTBs cross picture or slice/brick boundaries.

Method used

Implementing a unified approach for handling virtual boundaries by using double-sided padding and modifying ALF filter coefficients, ensuring consistent filtering across different types of boundaries, and disabling access to samples outside video units to maintain efficient in-loop filtering.

Benefits of technology

This approach reduces pipeline bubbles, optimizes memory usage, and ensures consistent filtering results by aligning padding methods for various boundary types, enhancing video encoding and decoding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007549081000052
    Figure 0007549081000052
  • Figure 0007549081000053
    Figure 0007549081000053
  • Figure 0007549081000054
    Figure 0007549081000054
Patent Text Reader

Abstract

To provide a method of a video processing in an adaptive loop filter processing.SOLUTION: A method of video processing, includes steps of: determining, for a conversion between a block in a video picture of a video and a bit stream representation of the video, a manner of padding a first pair of a sample positioned across boundaries of a plurality of video regions of a video picture for a current sample in an adaptive loop filter process; determining a unique padding operation for generating a sample for the current sample of the block; determining a manner that the padding operation is called in the adaptive loop filter process for the current sample positioned between two types of the boundaries of a plurality of video regions; and executing the conversion in accordance with the determinations.SELECTED DRAWING: Figure 32
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application is a divisional application of International Patent Application No. PCT / CN2020 / 101589, filed on July 13, 2020, claiming priority to and the benefit of International Patent Application No. PCT / CN2019 / 095657, filed on July 11, 2019. All of the above patent applications are incorporated herein by reference in their entirety.

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

[0003] 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, H.264 / 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, 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

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

[0005] In an example aspect, a method of video processing is disclosed. The method includes determining, for a current sample in an adaptive loop filter process, a method of padding a first set of samples located across boundaries of a plurality of video regions of the video picture for a conversion between a block in a video picture of a video and a bitstream representation of the video. The method also includes performing the conversion according to the determining.

[0006] In another example aspect, a method of video processing is disclosed. The method includes determining a uniform padding operation for generating a sample for a current sample of a block in a video picture of a video in an adaptive loop filter process for conversion between the block and a bitstream representation of the video when the block coincides with at least one type of boundary of a plurality of video regions of the video picture. The method also includes performing the conversion based on the determining.

[0007] In another example aspect, a method of video processing is disclosed. The method includes determining how a padding operation is invoked in an adaptive loop filter process for a current sample located between two types of boundaries of a plurality of video regions for conversion between a block in a video picture of a video and a bitstream representation of the video. One of the two types of boundaries has a 360 virtual boundary. The method also includes performing the conversion according to the determining.

[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 their bitstream representations, where the video blocks are processed using logical groupings 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 usage 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 usage state of the virtual sample.

[0010] In yet another exemplary aspect, another video processing method is disclosed that includes determining, during a 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 in accordance with the determining.

[0011] In yet another exemplary aspect, another video processing method is disclosed that includes determining, during a conversion between a current video block of a video picture and a bitstream representation of the current video block, that the current video block includes samples that are located on a boundary of a video unit of the video picture, and performing the conversion based on the determining, where performing the conversion includes generating virtual samples for in-loop filtering using a uniform approach 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 determining, during a conversion between a current video block of a video picture and a bitstream representation thereof, to apply 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 one of the plurality of ALF sample selection methods.

[0013] In yet another exemplary 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, the boundary rule disabling use of 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 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, the boundary rule specifying that for positions of the current video block that span a video unit boundary, samples that are generated without using padding are used, and performing the conversion using results of the in-loop filtering operation.

[0015] In yet another exemplary 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, for the in-loop filtering operation, a filter having a dimension such that samples of the current video block used during 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, the boundary rule defining selecting clipping parameters or filter coefficients for the in-loop filtering operation based on whether padded samples are needed for in-loop filtering, and performing the conversion using a result of the in-loop filtering operation.

[0017] 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, the boundary rule being dependent on a color component identification of the current video block, and performing the conversion using results 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 exemplary aspect, a video decoder configured to perform the above method is disclosed.

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

[0021] These and other aspects and features of the disclosed technology are described in further detail in the drawings, specification and claims. [Brief description of the drawings]

[0022] [Figure 1] An example of a picture having 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 having an 18×12 luma CTU partitioned into 24 tiles and 9 rectangular slices is shown. [Diagram 3] An example of a picture partitioned into 4 tiles, 11 bricks, and 4 rectangular slices is shown. [Figure 4A] Examples of coding tree blocks (CTBs) crossing a picture boundary when K = M and L < N are shown. [Figure 4B] Examples of coding tree blocks (CTBs) crossing a picture boundary when K < M and L = N are shown. [Figure 4C] Examples of coding tree blocks (CTBs) crossing a picture boundary when K < M and L < N are shown. [Diagram 5] An example of an encoder block diagram is shown. [Figure 6] An example of an 8×8 grid of picture samples along with vertical and horizontal 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 definitions and strong / weak filter selections are shown. [Figure 8] Four 1-D directional 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] 13 shows another example arrangement for computing the subsampled Laplacian. [Figure 12C] 13 shows another example arrangement for computing the subsampled Laplacian. [Figure 12D] 13 shows yet another example arrangement for the subsampled Laplacian computation. [Figure 13] 13 shows an example of loop filter line buffer requirements in VTM-4.0 for the luma component. [Figure 14] 13 shows an example of loop filter line buffer requirements in VTM-4.0 for chroma components. [Figure 15A] An example of ALF block classification at a virtual boundary when N=4 is shown. [Figure 15B] Another example of ALF block classification at the virtual boundary is shown 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] 1 shows an example of modified chroma ALF filtering at a virtual boundary. [Figure 17B] 13 shows 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] An example of processing a CTU in a video picture is given. [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] An example of the number of padded lines for two types of boundary samples is shown below. [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] Other examples of the current sample and the sample that is desired to be accessed are shown. [Figure 29] Another example of padding "unavailable" adjacent samples is shown below. [Diagram 30] FIG. 1 is a block diagram of an example video processing system in which the disclosed techniques may be implemented. [Diagram 31] 1 is a flowchart representation of a video processing method in accordance with the present technique. [Diagram 32] 4 is a flowchart representation of another video processing method in accordance with the present technique. [Diagram 33] 11 is a flowchart representation of yet another video processing method in accordance with the present technique. 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 encoding techniques. Additionally, while some embodiments detail a video encoding step, it will be understood that a corresponding decoding step that undoes the encoding 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 (VVC). 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 Spaces 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 a refinement 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 encoded 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 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 horizontal resolution is halved due to the fact that the Cb and Cr channels are only sampled on alternate lines in this scheme. Thus, 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] Figure 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] Figure 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, blocks, and rectangular slices. The picture is divided into 4 tiles (2 tile columns and 2 tile rows), 11 blocks (the upper left tile contains 1 block, the upper right tile contains 5 blocks, the lower left tile contains 2 blocks, and the lower right tile contains 3 blocks), 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 4×4. [Table 1] TIFF0007549081000002.tif254170TIFF0007549081000003.tif77159

[0045] 2.2.2 CTUs within a Picture Assuming a CTB / LCU size indicated by M×N (usually M is equal to N as defined in HEVC / VVC), for a CTB located at the boundary of a picture (the picture boundary is taken as an example), a sample of size K×L is within the picture boundary, where either K<M or L<N. For a CTB as shown in Figures 4A - 4C, the CTB size is still equal to M×N, but the lower boundary / right boundary of the CTB is outside the picture.

[0046] Figure 4A shows a CTB crossing the lower picture boundary. Figure 4B shows a CTB crossing the right picture boundary. Figure 4C shows a CTB crossing the lower-right picture boundary.

[0047] Figures 4A - 4C show examples of CTBs crossing picture boundaries for the 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 Figure 5 shows an example of an encoder block diagram of VVC including three in-loop filtering blocks, namely, a deblocking filter (DF), sample adaptive offset (SAO), and ALD. Different from the DF that uses predefined filters, SAO and ALF use coded side information that notifies offset and filter coefficients to add an offset and apply a finite impulse response (FIR) filter, respectively, to utilize the original samples of the current picture so as to reduce the mean squared error between the original samples and the reconstructed samples of the current picture. 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 to the DB is the reconstructed samples before in-loop filtering.

[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 an 8×8 grid of picture samples 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 on 8x8 block boundaries, which should be transform block boundaries or coding sub-block boundaries (e.g., with the use of 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 The settings for the coordinates are defined in Tables 1 and 2, respectively. [Table 2]

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

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

[0056] The wider and 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] In the strong filter condition of condition 3, 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 i is 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, then 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)>>less than 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 boundary. Given the quantization error distribution, it is proposed to increase the clipping value of samples that are expected to have higher quantization noise and therefore higher deviations 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 tabulated 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 -tcP i ,p' i ); q” j =Clip3(q' j +tcQ j ,q' j -tcQ j ,q' j ); Here, p' i and q' jis 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 Sword Art Online 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 are 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 orientation 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 indices 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 values ​​of the horizontal and vertical gradients 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] A is further quantized to the range 0 to 4, inclusive, and the quantized value is represented as A with a hat.

[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. Three geometric transformations are introduced, including diagonal, vertical flip, and rotation:

number

[0100] 2.6.1.3 Filter parameter signaling 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 GALF coefficient signaling. 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.

[0101] To support GALF temporal prediction, candidates for GALF filter sets are kept. 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 the temporal layer index (TemIdx) may constitute the filter sets of previously decoded pictures equal to a lower TempIdx. For example, the kth 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 is used to update the array associated with an equal or higher TempIdx.

[0102] 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.

[0103] 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.

[0104] 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 represents the filter length and f m,n denote the filter coefficients, and f(k,l) denotes the decoded filter coefficients.

number

[0105] 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 coefficient.

[0106] 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

[0107] 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) Signaling of ALF parameters moved from slice / image level to CTU level. (3) Class index calculation is performed at a 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 gradients for each sample in a block. Instead, 1:2 subsampling is utilized.

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

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

number

[0110] 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.

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

number

[0112] 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.

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

[0114] 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.

[0115] 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.

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

number

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

number

[0118] 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. The coding scheme of the child is the same as the coding scheme of the filter index.

[0119] 2.9 Virtual Boundaries In hardware and embedded software, picture-based processing is not practically acceptable due to its high picture buffer requirement. The specification of an on-chip picture buffer is very expensive, and the use of an off-chip picture buffer greatly increases external memory access, power consumption, and data access latency. Therefore, DF, SAO, and ALF are changed from picture-based to LCU-based decoding in actual 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 upper LCU row are needed to process one LCU row. If an off-chip line buffer (e.g., DRAM) is used, external memory bandwidth and power consumption will increase. If an on-chip line buffer (e.g., SRAM) is used, chip area will increase. Therefore, although the line buffer is already much smaller than the picture buffer, it is still desired to reduce the line buffer.

[0120] 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.

[0121] Therefore, the SAO filtered samples below the virtual boundary are needed for block classification of the 4x4 block that overlaps with lines G, H, I, J. 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.

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

[0123] 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.

[0124] 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).

[0125] 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 of samples belonging to line J requires one more line below (line K). Therefore, line K is padded with line J.

[0126] 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 of samples belonging to line K requires one more line above (line J). Therefore, the line is padded with line K.

[0127] 2.9.2 Padding on both sides of samples crossing virtual boundaries 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.

[0128] 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., in Fig. 16B, dashed PA0) is padded, the corresponding sample located at (m,n) that shares the same filter coefficient (e.g., in Fig. 16B, dashed P3B) 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.

[0129] Similarly, as shown in FIGS. 17 through 17B, the bilateral padding method is also used for chroma ALF filtering. FIGS. 17A through 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 required line above / below the VB needs to be padded. FIG. 17B shows that two required lines above / below the VB need to be padded.

[0130] 2.9.3 Alternative method for implementing 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 (1<<Bitdepth), and the padding process can be replaced by changing the filter coefficients (alternatively, ALF based on modified coefficients (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. 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).

Equation

[0131] However, when non-linear ALF is enabled, MALF and bilateral padding will result in different filtering results. This is because the non-linear parameters are associated with each coefficient, and for example, for the filter coefficients c5 and c1, the clipping parameters are different. Therefore,

Equation

[0132] 2.10 Standards for ALF Filtering New additions are indicated by bold italic underlined text, deletions are indicated by [[]]. [Table 7] TIFF0007549081000026.tif250170TIFF0007549081000027.tif251170TIFF0007549081000028.tif251170TIFF0007549081000029.tif254170 TIFF0007549081000030.tif252170TIFF0007549081000031.tif253170TIFF0007549081000032.tif247170TIFF0007549081000033.tif164170

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

[0134] 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, CTU. If the 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 the MxM block that includes 4 lines from the CTU row above and excludes the last 4 lines in the current CTU.

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

[0136] 2.12 360° Video Coding Horizontal wrap-around motion compensation in VTM5 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 region can always be obtained from neighboring samples in the spherical region. For common projection formats, it can be difficult to derive the corresponding neighboring samples in the spherical region, since 2D-to-3D and 3D-to-2D coordinate transformations and 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 image boundary can be obtained from samples inside the right image boundary, and vice versa.

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

[0138] The horizontal wraparound 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 wraparound 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 wraparound offset that should be set to the ERP picture width before padding. This syntax is used to adjust the position of the horizontal wraparound 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.

[0139] 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.

[0140] 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.

[0141] 2.13 Example of Subpicture-Based Motion Constrained Independent Regions 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 subpicture width, height, horizontal offset, and vertical offset 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 a slight update to 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.

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

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

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

[0145] 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: a. The ALF line buffer needs to be restored when the decoder does not know the slice / brick / tile boundaries in advance (such as in delayed applications). Whether the contents in the line buffer are used for ALF filtering or not depends on whether the current CTU is a slice / brick / tile boundary CTU or not. 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 to avoid using the ALF line buffer.

[0146] 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 of the 360-degree virtual boundary may be applied first to generate virtual samples below the 360-degree virtual boundary. After that, these virtual samples located below the 360-degree virtual boundary are treated as available. Then, an ALF double-sided padding method may be further applied according to Figures 16A-C. An example is shown in Figure 25.

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

[0148] 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.

[0149] 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).

[0150] 4. Examples of Techniques 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.

[0151] 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.

[0152] 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.

[0153] 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.

[0154] 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

[0155] 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.

[0156] "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.

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

[0158] 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.

[0159] 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.

[0160] 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.

[0161] 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 is finer-grained than the 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 FIGS. 18A-18C, the M×M samples may be filtered with K lines from the CTU above, excluding the K lines below the virtual boundary.

[0162] 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.

[0163] 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. d. In one example, if a block crosses multiple boundaries, the pixels / samples used for ALF classification may be restricted to not cross any of these boundaries. i. In one example, for a sample, if that particular neighboring sample is "available" (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 (e.g., 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 the case 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 "unavailable", then the slope cannot 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, 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. f. 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. g. 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 greater 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. h. 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. i. 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.

[0164] 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.

[0165] 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 them selects samples before any in-loop filtering methods are applied, and the other 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 of other samples, otherwise (if it is not at the boundary), the second method is selected.

[0166] 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 is 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.

[0167] 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.

[0168] 10. Instead of using padded samples (e.g., not unavailable, above / below a virtual boundary, above / below a video unit boundary) in the ALF filtering process, it is proposed to adopt a different ALF filter support. In one example, assume that a sample needs to be padded in the manner described above, but instead of performing the padding, the filter coefficient associated with that sample is set to be zero. i. In this case, the filter support is modified by removing 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 an example, assuming that sample (x1, y1) is padded from (x2, y2) in the above - mentioned method, instead of performing 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 coefficient of (x2, y2) can be derived on - the - fly. 1. In an example, it can be set equal to the decoded clipping parameter of (x2, y2). 2. Alternatively, it can be set to the return value of a function that takes the decoded clipping parameters of (x1, y1) and (x2, y2), such as a larger value or a smaller value, as inputs.

[0169] 11. The selection of the clipping parameter / filter coefficient / filter support may depend on whether the filtering of the sample needs to access padded samples (e.g., samples that are not unavailable, above / below the virtual boundary, above / below the boundary of the video unit). a. In an example, different clipping parameters / filter coefficients / filter supports can be used for samples having the same class index, but for some of them, accessing padded samples is required, while for others, it is 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, burettes 9a or 9b may be applied.

[0170] 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.

[0171] 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.

[0172] 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.

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

[0174] 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, 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, the proposed method cannot 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. d. In one example, for a sample that is located between two types of boundaries, where 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" as shown in FIG. 24) and the second boundary is an "ALF virtual boundary" or a slice / brick / tile / sub-picture boundary, or vice versa. 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 cannot be applied, e.g., only one-sided padding can be applied in ALF for those samples. e. In one example, for a sample 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 cannot 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. f. In one example, for a sample located between two or more types of boundaries, if at least one of the boundaries is a "360 virtual boundary", the proposed method cannot 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.

[0175] 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. Alternatively, the filtering process is disabled for the current sample. g. Alternatively, the classification process in ALF (eg, gradient calculation for the current sample) is not allowed to use unavailable reference samples.

[0176] 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 the filtering process of the current sample (e.g., ALF classification / ALF filtering process) 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 of 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 of 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 and / or single-sided padding can be padded using the method described in Bullet 16.

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

[0178] 5.1 Embodiment #1 [Table 8]

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

[0180] 5.3 Example #3 [Table 9] TIFF0007549081000037.tif249170TIFF0007549081000038.tif168170

[0181] 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".

[0182] 5.4 Example #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 10] TIFF0007549081000040.tif249170TIFF0007549081000041.tif121170

[0183] 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 difference pull relative to the boundary.

[0184] 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 is on the upper side and one boundary is 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.

[0185] 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.

[0186] 5.6 Example #6 [Table 11] TIFF0007549081000043.tif248170TIFF0007549081000044.tif254170TIFF000 7549081000045.tif254170TIFF0007549081000046.tif252170TIFF00075490810 00047.tif247170TIFF0007549081000048.tif246170TIFF0007549081000049.t if248170TIFF0007549081000050.tif245170TIFF0007549081000051.tif205170

[0187] 5.7 Example #7 For a CTU, it may not coincide with any boundary (e.g., picture / slice / tile / brick / subpicture boundary). Also, 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.

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

[0189] 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 is a hardware circuit and may be used to implement some of the techniques described herein. In some embodiments, the video processing hardware 2206 may be within the processor 2202 (e.g., a graphics processing unit).

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

[0191] 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, the one or more interpolation filters being from a plurality of interpolation filters for the video, and performing the conversion using the determined one or more interpolation filters (2304).

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

[0193] 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, 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 a video picture. method.

[0194] 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.

[0195] 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.

[0196] Section 4, item 2 provides a further example of the following solution. 4. A video processing method comprising: determining a usage status of the virtual sample during in-loop filtering based on a condition of a 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:

[0197] 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.

[0198] 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.

[0199] 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.

[0200] 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.

[0201] 9. The method of 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.

[0202] 10. The method of 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.

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

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

[0205] 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 the video block, or the bottom boundary of the current video block is a virtual boundary. method.

[0206] 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.

[0207] 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.

[0208] 15. The method of any one 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.

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

[0210] 16. A method of 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 determining; The method includes:

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

[0212] 17. A method of video processing comprising: 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 includes samples that are located on a boundary of a video unit of the video picture; performing said conversion based on said determining; and 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.

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

[0214] 19. The method of solution 17, The in-loop filtering includes adaptive loop filtering. method.

[0215] 20. Any of the methods of solutions 17 to 19, The unified method is a double-sided padding method. method.

[0216] 21. Any of the methods 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.

[0217] 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.

[0218] 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.

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

[0220] 24. A method of 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 said conversion by applying one of said plurality of ALF sample selection methods; The method includes:

[0221] 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

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

[0223] 26. A method of 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 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; and The method includes:

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

[0225] 28. Any of the methods of solutions 26 to 27, the boundary rule further specifies using virtual samples for the in-loop filtering in place of the invalidated samples. method.

[0226] 29. The method of solution 28, The virtual samples are generated by padding. method.

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

[0228] 30. A method of 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; and The method includes:

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

[0230] 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.

[0231] 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.

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

[0233] 34. A method of 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 defining selecting for the in-loop filtering operation a filter having a size such that samples of the current video block used during in-loop filtering 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; and The method includes:

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

[0235] 35. A method of 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 defining selecting clipping parameters or filter coefficients for the in-loop filtering operation based on whether padded samples are needed for in-loop filtering; performing the transformation using a result of the in-loop filtering operation; and The method includes:

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

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

[0238] 37. A method of 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 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:

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

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

[0241] 40. Any of the methods of solutions 1 to 38, comprising: the transforming includes decoding the bitstream representation to generate sample values ​​for the current video block. method.

[0242] 41. A video encoding device having a processor configured to implement the method described in any one or more of solutions 1 to 38.

[0243] 42. A video decoding device having a processor configured to implement the method described in any one or more of solutions 1 to 38.

[0244] 43. A computer-readable medium storing code, 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.

[0245] FIG. 30 is a block diagram illustrating an example video processing system 3000 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 3000. System 3000 may include an input 3002 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. Input 3002 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wireless interfaces such as Ethernet, passive optical networks (PON), and the like, and wireless interfaces such as Wi-Fi or cellular networks.

[0246] The system 3000 may include a coding component 3004 that may implement various coding or encoding methods described herein. The coding component 3004 may reduce the average bit rate of the video from the input 3002 to an output of the coding component 3004 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 3004 may be stored or transmitted via a connected communication, as represented by component 3006. The stored or communicated bitstream (or coded) representation of the video received at the input 3002 may be used by component 3008 to generate pixel values ​​or displayable video that is sent to a display interface 3010. The process of generating a video that can be viewed by a user 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.

[0247] 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.

[0248] 31 is a flowchart representation of a method 3100 for video processing according to the present technology. The method 3100 includes, at operation 3110, determining a method for padding a first set of samples located across a boundary of a plurality of video regions of the video picture for a current sample in an adaptive loop filter process for a conversion between a block in a video picture of a video and a bitstream representation of the video. The method 3100 also includes performing the conversion according to the determining.

[0249] In some embodiments, the adaptive loop filter process comprises sample classification or sample filtering. In some embodiments, the video region comprises a slice, a brick, a tile, or a sub-picture. In some embodiments, the method of padding defines that a first set of values ​​of the samples are padded with a second set of values ​​of samples located within the same video region of the current sample.

[0250] In some embodiments, the positions of the second set of samples are determined based on clipping vertical coordinates of the first set of samples along a horizontal direction to obtain a closest position whose vertical coordinate is located within the same video region of the current sample. In some embodiments, the positions of the second set of samples are further determined based on selectively clipping horizontal coordinates of the first set of samples along a vertical direction to obtain a closest position whose horizontal coordinate is located within the same video region of the current sample.

[0251] In some embodiments, the positions of the second set of samples are determined based on clipping horizontal coordinates of the first set of samples along a vertical direction to obtain a closest position whose horizontal coordinate is located within the same video region of the current sample. In some embodiments, the positions of the second set of samples are further determined based on selectively clipping vertical coordinates of the first set of samples along a horizontal direction to obtain a closest position whose vertical coordinate is located within the same video region of the current sample.

[0252] In some embodiments, the positions of the second set of samples are determined based on clipping the positions of the first set of samples along both horizontal and vertical directions to obtain the closest positions located within the same video region of the current sample. In some embodiments, a sample in the first set of samples is at position (x1, y1) and the sample is clipped to position (x2, y2). The distance along the horizontal direction is represented as |x1-x2|. The distance along the vertical direction is represented as |y1-y2|. The distance between two positions is represented as |x1-x2|+|y1-y2| or (x1-x2) 2 +(y1-y2) 2 This is expressed as:

[0253] In some embodiments, the padding method defines that filtering of the current sample is disabled. In some embodiments, the padding method defines that use of the first set of samples is not allowed in sample classification. In some embodiments, whether the padding method is applicable to the block is based on whether the block coincides with a boundary of the multiple video regions. In some embodiments, the padding method is applicable to the block if the block does not coincide with any boundary of the multiple video regions and a sample in the first set of samples is required in the adaptive loop filter process. In some embodiments, the padding method is applicable to the block if (1) the block does not coincide with any boundary of the multiple video regions, (2) a sample in the first set of samples is required in the adaptive loop filter process, and (3) filtering of the first set of samples is not allowed. In some embodiments, the padding method is applicable to a block if (1) the block does not coincide with a boundary of any of the multiple video regions, (2) a sample in the first set of samples is required by the adaptive loop filter process, (3) another sample located within the same video region of the block is required by the adaptive loop filter process, and (4) filtering of the first set of samples is not permitted. In some embodiments, the video region is a slice.

[0254] In some embodiments, a symmetric padding method, in which padded samples are generated using samples from both sides of a boundary, is not applicable to the first set of samples. In some embodiments, a one-sided padding method, in which padded samples are generated using samples from one side of a boundary, is not applicable to the first set of samples.

[0255] 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 a uniform padding operation for generating a sample for a current sample of a block in a video picture of a video for conversion between the block and a bitstream representation of the video when the block coincides with at least one type of boundary of a plurality of video regions of the video picture. The method 3200 also includes, at operation 3220, performing the conversion based on the determining.

[0256] In some embodiments, the uniform padding operation comprises using samples along one side of a boundary. In some embodiments, the uniform padding operation comprises using samples along both sides of a boundary. In some embodiments, the uniform padding operation is applied to the block if the block conforms to multiple types of boundary and filtering of samples located across boundaries of the multiple video regions of the video picture is disabled.

[0257] 33 is a flowchart representation of a method 3400 for video processing according to the present technology. The method 3300 includes, at operation 3310, determining how a padding operation is invoked in an adaptive loop filter process for a current sample located between two types of boundaries of a plurality of video regions for conversion between a block in a video picture of a video and a bitstream representation of the video. One of the two types of boundaries has a 360 virtual boundary. The method 3300 also includes performing the conversion according to the determining.

[0258] In some embodiments, the method in which the padding operation is invoked in an adaptive loop filter process provides that the padding operation is invoked only once in the adaptive loop filter process. In some embodiments, the padding operation comprises a symmetric padding operation in which padded samples are generated using samples from both sides of a boundary. In some embodiments, the padding operation comprises a one-sided padding operation in which padded samples are generated using samples from one side of a boundary.

[0259] In some embodiments, the method in which the padding operation is invoked in an adaptive loop filter process provides that the padding operation is invoked in the adaptive loop filter process by at least one other padding operation in a sequence. In some embodiments, the padding operation is applied before the at least one other padding operation. The padding operation comprises a one-sided padding operation in which padded samples are generated using samples from one side of a boundary, and the at least one other padding operation comprises a symmetric padding operation in which padded samples are generated using samples from both sides of a boundary. In some embodiments, padded samples after the padding operation are used as available samples for the at least one other padding operation.

[0260] In some embodiments, the method in which the padding operation is invoked in an adaptive loop filter process when the other of the two types of boundaries comprises an actual boundary of the plurality of video regions or an adaptive loop filter virtual boundary defines that the padding operation only comprises a symmetric padding operation where padded samples are generated using samples from both sides of a boundary. In some embodiments, the method in which the padding operation is invoked in an adaptive loop filter process when the other of the two types of boundaries comprises an actual boundary of the video picture defines that the padding operation only comprises a one-sided padding operation where padded samples are generated using samples from one side of a boundary. In some embodiments, the method in which the padding operation is invoked in an adaptive loop filter process when the one of the two types of boundaries does not match the block defines that the padding operation only comprises a symmetric padding operation where padded samples are generated using samples from both sides of a boundary. In some embodiments, the method in which the padding operation is invoked in an adaptive loop filter process defines that the padding operation only comprises a symmetric padding operation where padded samples are generated using samples from both sides of a boundary.

[0261] In some embodiments, the converting comprises encoding the video into the bitstream representation, hi some embodiments, the converting comprises decoding the bitstream representation into the video.

[0262] 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.

[0263] 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 is performed using 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 with the knowledge 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.

[0264] 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 using the video processing tool or mode that was enabled based on the decision or determination, knowing that the bitstream is not altered.

[0265] 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 on 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 can 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.

[0266] 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.

[0267] 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).

[0268] 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.

[0269] 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.

[0270] Although the present 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.

[0271] 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.

[0272] 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.

Claims

1. determining that a first sample is unavailable for a classification operation for the first filtering process on a current sample because the first sample is located in a slice different from a slice of a current sample of a current coding tree block and a first filtering process does not allow samples spanning slices for a conversion between a picture of a video including one or more coding tree blocks and a bitstream of the video, and all slices of the picture are rectangular slices; applying a padding process for the first sample, a value of the first sample being padded from a second sample, which is the closest available sample located within the same slice of the current sample, the value of the first sample padded from the second sample being used to determine a classification filter index in the classification operation, the classification filter index of a 4x4 region including the current sample being derived based on a gradient calculated from a 10x10 region including the 4x4 region, the value of the first sample padded from the second sample being also used in a filter of the first filtering process, and the position of the second sample being determined by: when the first sample is unavailable because its vertical coordinate is outside the same slice of the current sample, clipping the vertical coordinate of the first sample to a new vertical coordinate that is the closest vertical position located within the same slice of the current sample; when the first sample is unavailable because its horizontal coordinate is outside the same slice of the current sample, clipping the horizontal coordinate of the first sample to a new horizontal coordinate that is the closest horizontal position located within the same slice of the current sample; said applying being determined based on performing the conversion by applying the first filtering process based on the values ​​of the first samples padded from the second samples; having The first filtering process comprises: determining a set of filtering coefficients for the current sample based on the classification operation; and determining a set of clipping values ​​for the current sample; applying the filter to the current sample based on the set of filtering coefficients and the set of clipping values; The method comprising:

2. the padding process is applied in a uniform manner when the current coding tree block corresponds to a boundary type other than a slice boundary. The method of claim 1.

3. The method further comprises determining whether a virtual boundary is enabled for the current coding tree block based on a relationship between a bottom boundary of the current coding tree block and a bottom boundary of the picture. The method according to claim 1 or 2.

4. the virtual boundary is enabled if the bottom boundary of the current coding tree block is not the bottom boundary of the picture. The method according to claim 3.

5. said converting including encoding said video into said bitstream; 5. A method according to any one or more of claims 1 to 4.

6. the converting includes decoding the video from the bitstream.

5. A method according to any one or more of claims 1 to 4.

7. 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: determining that a first sample is unavailable for a classification operation for the first filtering process on a current sample because the first sample is located in a slice different from a slice of a current sample of a current coding tree block and a first filtering process does not allow samples spanning slices for a conversion between a picture of a video including one or more coding tree blocks and a bitstream of the video, and all slices of the picture are rectangular slices; applying a padding process for the first sample, a value of the first sample being padded from a second sample, which is the closest available sample located within the same slice of the current sample, the value of the first sample padded from the second sample being used to determine a classification filter index in the classification operation, the classification filter index of a 4x4 region including the current sample being derived based on a gradient calculated from a 10x10 region including the 4x4 region, the value of the first sample padded from the second sample being also used in a filter of the first filtering process, and the position of the second sample being determined by: when the first sample is unavailable because its vertical coordinate is outside the same slice of the current sample, clipping the vertical coordinate of the first sample to a new vertical coordinate that is the closest vertical position located within the same slice of the current sample; when the first sample is unavailable because its horizontal coordinate is outside the same slice of the current sample, clipping the horizontal coordinate of the first sample to a new horizontal coordinate that is the closest horizontal position located within the same slice of the current sample; said applying being determined based on performing the conversion by applying the first filtering process based on the values ​​of the first samples padded from the second samples; Run the command, The first filtering process comprises: determining a set of filtering coefficients for the current sample based on the classification operation; and determining a set of clipping values ​​for the current sample; applying the filter to the current sample based on the set of filtering coefficients and the set of clipping values; An apparatus having the above configuration.

8. The processor: determining that a first sample is unavailable for a classification operation for the first filtering process on a current sample because the first sample is located in a slice different from a slice of a current sample of a current coding tree block and a first filtering process does not allow samples spanning slices for a conversion between a picture of a video including one or more coding tree blocks and a bitstream of the video, and all slices of the picture are rectangular slices; applying a padding process for the first sample, a value of the first sample being padded from a second sample, which is the closest available sample located within the same slice of the current sample, the value of the first sample padded from the second sample being used to determine a classification filter index in the classification operation, the classification filter index of a 4x4 region including the current sample being derived based on a gradient calculated from a 10x10 region including the 4x4 region, the value of the first sample padded from the second sample being also used in a filter of the first filtering process, and the position of the second sample being determined by: when the first sample is unavailable because its vertical coordinate is outside the same slice of the current sample, clipping the vertical coordinate of the first sample to a new vertical coordinate that is the closest vertical position located within the same slice of the current sample; when the first sample is unavailable because its horizontal coordinate is outside the same slice of the current sample, clipping the horizontal coordinate of the first sample to a new horizontal coordinate that is the closest horizontal position located within the same slice of the current sample; said applying being determined based on performing the conversion by applying the first filtering process based on the values ​​of the first samples padded from the second samples; storing an instruction to execute the The first filtering process comprises: determining a set of filtering coefficients for the current sample based on the classification operation; and determining a set of clipping values ​​for the current sample; applying the filter to the current sample based on the set of filtering coefficients and the set of clipping values; 1. A non-transitory computer readable storage medium having:

9. A method for storing a bitstream of video, comprising the steps of: determining that a first sample is unavailable for a classification operation for the first filtering process on a current sample because the first sample is located in a slice different from a slice of a current sample of a current coding tree block and a first filtering process does not allow samples spanning slices for a conversion between a picture of a video including one or more coding tree blocks and a bitstream of the video, and all slices of the picture are rectangular slices; applying a padding process for the first sample, a value of the first sample being padded from a second sample, which is the closest available sample located within the same slice of the current sample, the value of the first sample padded from the second sample being used to determine a classification filter index in the classification operation, the classification filter index of a 4x4 region including the current sample being derived based on a gradient calculated from a 10x10 region including the 4x4 region, the value of the first sample padded from the second sample being also used in a filter of the first filtering process, and the position of the second sample being determined by: when the first sample is unavailable because its vertical coordinate is outside the same slice of the current sample, clipping the vertical coordinate of the first sample to a new vertical coordinate that is the closest vertical position located within the same slice of the current sample; when the first sample is unavailable because its horizontal coordinate is outside the same slice of the current sample, clipping the horizontal coordinate of the first sample to a new horizontal coordinate that is the closest horizontal position located within the same slice of the current sample; said applying being determined based on generating the bitstream by applying the first filtering process based on the values ​​of the first samples padded from the second samples; storing the bitstream on a non-transitory computer-readable recording medium; having The first filtering process comprises: determining a set of filtering coefficients for the current sample based on the classification operation; and determining a set of clipping values ​​for the current sample; applying the filter to the current sample based on the set of filtering coefficients and the set of clipping values; The method comprising:

Citation Information

Patent Citations

  • Method and apparatus for reduction of in-loop filter buffer

    US20130322523A1

  • Technologies for managing a flexible host interface of a network interface controller

    US20190044809A1

  • Line buffer reduction for adaptive loop filtering in video coding

    US20190166363A1

Cited By

  • Processing of filler data units in video streams

    US12506903B2

  • Signaling of decoded picture buffer parameters in layered video

    US12634521B2