Deblocking filtering at coding block or sub-block boundaries

By applying deblocking filters on a 4x4 grid for luma and 8x8 grid for chroma at sub-block boundaries, the method addresses inefficiencies in existing video coding standards, reducing artifacts and optimizing bandwidth usage for improved compression performance.

JP7544921B2Active Publication Date: 2024-09-03DOUYIN VISION CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023105609
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-08-23
Filing Date
2023-06-28
Publication Date
2024-09-03
Estimated Expiration
2040-08-24

AI Technical Summary

Technical Problem

Existing video coding standards face challenges in efficiently applying deblocking filters at sub-block boundaries, leading to potential blocking artifacts and inefficiencies in bandwidth usage due to inadequate filtering at 4x4 sub-block boundaries and inconsistent filter application across different coding modes.

Method used

The proposed method enhances deblocking filters by applying them on a 4x4 grid for luma and 8x8 grid for chroma at sub-block boundaries, adapting filter lengths and strengths based on sub-block coding methods and motion vector differences, and refining conditions for filter application to improve compression performance.

Benefits of technology

This approach reduces blocking artifacts and optimizes bandwidth usage by ensuring thorough filtering at sub-block boundaries, enhancing compression efficiency in video coding standards like HEVC and future standards such as VVC.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007544921000132
    Figure 0007544921000132
  • Figure 0007544921000133
    Figure 0007544921000133
  • Figure 0007544921000134
    Figure 0007544921000134
Patent Text Reader

Abstract

To provide a video and an image encoding and decoding method using in-loop filtering such as a deblocking filter.SOLUTION: A method includes determining, for a sub-block of a current video block of a video, a sub-block boundary on which a deblocking filter is to be applied according to a rule, and performing transformation between the video and a coded representation of the video using the deblocking filter. The rule defines that the deblocking filter is determined without checking the relationship between the sum of the position of the subblock of the current video block and a predefined value and the width or height of the current video block.SELECTED DRAWING: Figure 8A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application relates to video encoding and decoding. [Background technology]

[0002] Despite advances in video compression, digital video accounts for the largest bandwidth usage on the Internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, the bandwidth demands for digital video usage are expected to continue to increase. Summary of the Invention

[0003] The devices, systems, and methods relate to digital video processing, and in particular to video and image encoding and decoding using in-loop filtering, such as deblocking filters.

[0004] In one example aspect, a method of video processing is disclosed, the method comprising: determining, for sub-blocks of a current video block of a video, sub-block boundaries to which a deblocking filter should be applied according to a rule; and performing a conversion between the video and a coded representation of the video using the deblocking filter, the rule providing that the deblocking filter length is determined without checking a relationship between i) a sum of positions of the sub-blocks of the current video block and a predefined value, and ii) a width or height of the current video block.

[0005] In another example aspect, another method of video processing is disclosed, for a conversion between a current video block of a video and a coded representation of the video, the method including making a decision based on rules regarding whether a deblocking filter is applied to boundaries between sub-blocks of the current video block and / or deblocking parameters to use if a deblocking filter is applied, and performing the conversion based on the decision, the rule being based on whether the boundary is located on an N by M sample grid of the sub-blocks and / or whether the boundary is a natural boundary of the current video block, where N and M are integers.

[0006] In another example aspect, another method of video processing is disclosed, the method including: making a determination to apply a deblocking filter to an N×N sample grid of a current video block coded in a geometry prediction mode, where the current video block is divided into a plurality of subpartitions for prediction; and performing, based on the determination, a conversion between a video including the current video block and the coded representation of the video, where N is equal to 4 or 8.

[0007] In another example aspect, another method of video processing is disclosed, the method including determining, for sub-blocks of a current video block of a video, sub-block boundaries to which a deblocking filter should be applied according to a rule, and performing, with the deblocking filter, a conversion between the video and a coded representation of the video.

[0008] In another example aspect, another method of video processing is disclosed, the method including, for a transform between a current video block of a video and a coded representation of the video, determining a boundary strength to be applied to a sub-block boundary of the current video block using a deblocking filter based on a rule, and performing the transform based on the determination, the rule specifying that the boundary strength is set equal to 2 regardless of whether the sub-block boundary is a transform block boundary.

[0009] In another example aspect, another method of video processing is disclosed, the method comprising performing a transform between a current video block of video and a coded representation of the video according to rules, the transform using a sub-block transform (SBT) tool comprising partitioning the current video block into transform blocks (TBs) and applying a TB-level transform to the TBs during encoding, or applying a TB-level inverse transform to coded samples in the coded representation of the video during decoding, the rules specifying that an adaptive filter is enabled across at least three TB boundaries in the horizontal and / or vertical directions.

[0010] In another example aspect, another method of video processing is disclosed, for transforming between a current video block of video and a coded representation of the video, the method including: making a first determination that two adjacent samples on either side of an edge of the current video block belong to two transform blocks that do not contain non-zero transform coefficient levels; making a second decision based on the first determination to set a deblocking filter strength for the current block edge to 0; and performing the transform using the first and second decisions.

[0011] In another example aspect, another method of video processing is disclosed. The method includes performing a transformation between a current video block of a video and a coded representation of the video using a decoder-side motion vector refinement (DMVR) tool, and applying a deblocking filter to a reconstructed video block generated during the transformation, the DMVR tool including generating the reconstructed video block by motion compensation using a refined motion vector generated by refining a coded motion vector in the coded representation, wherein parameters of the deblocking filter are based on the refined motion vector.

[0012] In another example aspect, another method of video processing is disclosed, the method including determining a deblocking filter strength for a deblocking filter process based on a rule for a transformation between a current video block of video and a coded representation of the video, and performing the transformation based on the determination, the rule providing that the deblocking filter strength is independent of prediction modes of neighboring blocks of the current video block.

[0013] In another example aspect, another method of video processing is disclosed that includes determining, for a conversion between a current video block of video and a coded representation of the video, whether a deblocking filter is to be applied to a boundary of the current video block and / or deblocking parameters to be used if a deblocking filter is to be applied, based on rules that are dependent on or independent of a type of boundary, and performing the conversion based on the determination.

[0014] In another example aspect, another method of video processing is disclosed, the method including: determining, for a conversion between a video domain of a video and a coded representation of the video, that a deblocking filter in a certain direction is not applied across a virtual boundary that is N samples away from a horizontal boundary; and performing the conversion based on the determination, where N is an integer greater than 0.

[0015] In another example aspect, another method of video processing is disclosed for converting between a video domain of a video and a coded representation of the video, the method comprising: determining whether or how to clip values ​​of samples during a deblocking process using a deblocking filter based on a rule that depends on whether a boundary filtered by the deblocking filter coincides with a virtual boundary that is N samples away from a horizontal boundary of the video domain; and performing the conversion based on the determination, where N is an integer greater than 0.

[0016] In another example aspect, another method of video processing is disclosed, the method comprising: determining, according to a rule, a coding tool to be used for a transformation between a current video block of a video and a coded representation of the video; and performing the transformation according to the coding tool, the rule specifying that a sub-block transform (STB) tool is used only in a sub-block-based coding mode.

[0017] In another example aspect, another method of video processing is disclosed that includes determining, for a current video block divided into subpartitions according to use of an intra subpartitioning (ISP) mode, to apply a deblocking filter to a boundary between two subpartitions of the current video block, and performing a transformation between the current video block and a coded representation of the video based on the determination.

[0018] In another example aspect, another method of video processing is disclosed, the method including: determining, for a current video block coded in a geometry prediction mode in which the current video block is divided into sub-partitions, to apply a deblocking filter to a boundary between two M×N regions of the current video block; and performing a transformation between the current video block and the coded representation of the video based on the determination, where M and N are integers.

[0019] In another example aspect, another method of video processing is disclosed. The method includes determining, for a conversion between a video including video blocks and a coded representation of the video, to apply a deblocking filter to a boundary between two adjacent video blocks where at least one of the two adjacent video blocks is coded in a geometry prediction mode in which at least one of the two adjacent video blocks is divided into subpartitions, and performing the conversion based on the determination.

[0020] In another example aspect, another method of video processing is disclosed, the method comprising determining, based on rules, filtering parameters to be used in a filtering process for a transformation between a current video block of a video and a coded representation of the video, and performing the transformation based on the determination, the rules specifying that the filtering parameters depend on i) motion information used in a motion compensation process, ii) motion information stored in a motion storage, or iii) motion information used in a motion vector prediction process.

[0021] In another exemplary aspect, another method of video processing is disclosed, the method comprising performing a conversion between video and a coded representation of the video, the coded representation following a formatting rule, the formatting rule determining whether a chroma syntax element indicating a chroma component should be included in the coded representation based on a chroma format, a coding mode associated with a chroma component, or a chroma information syntax element.

[0022] In yet another exemplary embodiment, the above method is embodied in processor executable code and stored on a computer readable program medium.

[0023] In yet another exemplary aspect, a device configured or operable to perform the above method is disclosed. The device may include a processor programmed to implement the method.

[0024] In yet another exemplary aspect, a video decoder device may implement the methods described herein.

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

[0026] [Figure 1] Examples of sample positions of pi,k and qi,k are shown below. [Figure 2] An example of deblocking for an 8x8 grid is shown below. [Figure 3] Examples of weak filters with one sample change for 4xN blocks, Nx4 blocks, 8xN blocks, and Nx8 blocks are shown. [Figure 4] 10 shows an example of modified block classification with virtual boundaries. [Figure 5] 10 shows an example of modified ALF filtering for the luma component at the virtual boundary. [Figure 6A] FIG. 1 is a block diagram of an embodiment of a hardware platform for video processing. [Figure 6B] FIG. 1 is a block diagram of an embodiment of a hardware platform for video processing. [Figure 7] 1 is a flowchart of an example method of video processing. [Figure 8A] 1 shows a flowchart of an example method for video processing. [Figure 8B] 1 shows a flowchart of an example method for video processing. [Figure 8C] 1 shows a flowchart of an example method for video processing. [Figure 8D] 1 shows a flowchart of an example method for video processing. [Figure 9A] 1 shows a flowchart of an example method for video processing. [Figure 9B] 1 shows a flowchart of an example method for video processing. [Figure 9C] 1 shows a flowchart of an example method for video processing. [Figure 9D] 1 shows a flowchart of an example method for video processing. [Figure 9E] 1 shows a flowchart of an example method for video processing. [Figure 9F] 1 shows a flowchart of an example method for video processing. [Figure 9G] 1 shows a flowchart of an example method for video processing. [Figure 9H] 1 shows a flowchart of an example method for video processing. [Figure 9I] 1 shows a flowchart of an example method for video processing. [Figure 10A] 1 shows a flowchart of an example method for video processing. [Figure 10B] 1 shows a flowchart of an example method for video processing. [Figure 10C] 1 shows a flowchart of an example method for video processing. DETAILED DESCRIPTION OF THE INVENTION

[0027] Embodiments of the disclosed technology can be applied to existing video coding standards (e.g., HEVC, H.265) and future standards to improve compression performance. Section headings are used herein to improve readability of the description and in no way limit the disclosure or embodiments (and / or implementations) to only the respective section.

[0028] [1 Overview] This specification relates to video coding technology. Specifically, it relates to deblocking filters and related techniques in video coding. It can be applied to existing video coding standards such as HEVC or standards to be finalized (Versatile Video Coding). It can also be applied to future video standards or video codecs.

[0029] [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, while ISO / IEC produced MPEG-1 and MPEG-4 Visual. The two organizations jointly produced the H.262 / MPEG-2 Video, H.264 / 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 architecture that utilizes temporal prediction plus transform coding. 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 techniques have been adopted by the JVET and incorporated into reference software called the Joint Exploration Model (JEM). JVET meetings are held simultaneously once per quarter, and the new coding standard targets a 50% bitrate reduction compared to HEVC. The new video coding standard was officially named Versatile Video Coding (VVC) at the April 2018 JVET meeting, and the first version of the VVC Test Model (VTM) was released at that time. Because there is continuous effort contributing to VVC standardization, new coding techniques are adopted into the VVC standard at each JVET meeting. The VVC Working Draft and Test Model VTM are updated after each meeting. The VVC project is currently aiming for technical completion (FDIS) at the July 2020 meeting.

[0030] [2.1 Deblocking filter in VVC] There are a total of three in-loop filters in VTM6. In addition to the deblocking filter and SAO (the two loop filters in HEVC), an adaptive loop filter (ALF) is applied in VTM5. The order of the filtering process in VTM6 is deblocking filter, SAO, and ALF. In VTM6, the deblocking filter processes are almost the same as those in HEVC. However, the following changes have been made: a) The filter strength of the deblocking filter, which depends on the average luma level of the reconstructed samples. b) Deblocking tC table extension c) Luma deblocking on a 4x4 sample grid and chroma deblocking on an 8x8 sample grid d) Stronger deblocking filter for luma e) Stronger deblocking filter for chroma

[0031] 2.1.1 Filter strength dependent on reconstructed mean luma level In HEVC, the filter strength of the deblocking filter is determined by the variables β and t C In VTM5, the deblocking filter adjusts the offset according to the luma level of the reconstructed sample, qP L controls the strength of the deblocking filter by adding it to . The reconstructed luma level LL is derived as follows: LL=((p 0,0 +p 0,3 +q 0,0 +q 0,3 )>>2) / (1< <bitDepth) Here, the sample value p i,k and q i,k (i=0,···,3, k=0 and 3) are derived as shown in FIG. 1.

[0032] Variable qP L is derived as follows: qP L =((Qp Q +Qp P +1)>>1)+qpOffset where Qp Q and Qp P is the sample q 0,0 and p 0,0 The offset qpOffset depends on the transfer function, and the value is signaled in the SPS.

[0033] [2.1.2 Deblocking tC table extension] In VVC, the maximum QP has changed from 51 to 63, and it is desirable to reflect the corresponding change in the deblocking table to derive the value of the deblocking parameter tC based on the block QP. Table 1 shows the updated tC to accommodate the expanded QP range. C 'It is a table. Variable t C is derived as follows: t C =BitDepth Y <10?(t C '+2)>>(10-BitDepth Y ):t C '×(1<<(BitDepth Y -10)) [Table 1]

[0034] 2.1.3 Stronger deblocking filter for luma A bilinear filter (a stronger deblocking filter) is used when samples on either side of the boundary belong to a large block, defined as a sample whose width is 32 or more for vertical edges and whose height is 32 or more for horizontal edges. Block boundary samples p for i=0 to Sp-1 i, and block boundary samples q for j = 0 to Sq-1 i is then replaced by linear interpolation, as follows: p i '=(f i ×Middle s,t +(64-f i )×P s +32)>>6),p i ±t C PD i Clipped to q j '=(g j ×Middle s,t +(64-g j )×Q s +32)>>6),q j ±t C PD j Clipped to where tCPD i and tCPD j The term is position-dependent clipping, and g j , f i , Middle s,t , P s , and Q s is given by: [Table 2]

[0035] The stronger luma filter above is used only if condition 1, condition 2, and condition 3 are all true. Condition 1 is the "large block condition." This condition detects whether samples on the P-side and Q-side belong to a large block. Conditions 2 and 3 are determined by: Condition 2=(d<β)?TRUE:FAILSE Condition 3 = StrongFilterCondition = (dpq is less than (β>>2), sp3 + sq3 is less than (3×β>>5), and Abs(p0 - q0) is less than (5×tC +1)>>Less than 1)?TRUE:FALSE

[0036] [2.1.4 Strong Chroma Deblocking Filter] 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

[0037] The above chroma filters perform deblocking on an 8x8 chroma sample grid. A chroma strong filter is used on both sides of the block boundary. Here, a chroma filter is selected when both sides of the chroma edge are 8 or more (in units of chroma samples) and the following decisions based on three conditions are satisfied: The first decision relates to the boundary strength and large block decision. The second and third decisions are basically the same as those for the HEVC luma decision, and are the on / off decision and the strong filter decision, respectively. In the first decision, the boundary strength (bS) is changed for chroma filtering as shown in Table 2. The conditions in Table 3 are then checked. If the condition is satisfied, the remaining conditions with lower priority are skipped. [Table 3]

[0038] Chroma deblocking is performed when a large block boundary is detected and bS is equal to 2, or alternatively when bS is equal to 1. The second and third conditions are essentially the same as the HEVC luma strong filter decision.

[0039] 2.1.5 Luma Deblocking on a 4x4 Sample Grid and Chroma Deblocking on an 8x8 Sample Grid VTM5.0 performs deblocking on an 8x8 sample grid. Therefore, deblocking is performed only on all block edges that overlap with the 8x8 sample grid. Due to VTM5.0's partitioning scheme (Binary-Tree (BT), Ternary-Tree (TT), intra-subpartition, and subblock transform), some long CU edges may not overlap with the 8x8 sample grid but still have significant blocking artifacts. This scenario is illustrated in Figure 2. The edge shown in gray belongs to a 4x16 block, and VTM5.0 deblocking does not perform deblocking on this edge because it does not overlap with the 8x8 sample grid.

[0040] VTM 6.0 adopts applying luma deblocking to a 4x4 sample grid and chroma deblocking to an 8x8 sample grid. If any of the blocks sharing an edge has 4 samples (i.e., for vertical edges, width = 4 samples, for horizontal edges, length = 4 samples), it applies luma weak filtering without changing one or any samples.

[0041] The various steps performed for vertical edges are described below.

[0042] Check whether the filter on / off condition (i.e., d<β, where d=dpq0+dpq3 and dpq0=dp0+dq0 and dpq3=dp3+dq3) evaluates to true for each edge. If true, then Check if one of the blocks has a block width of 4 samples. If true, then Apply a weak filter with at most one sample change. Therefore, the following condition: |δ|<10(t C) (where δ=(9×(q0−p0)−(3×(q1−p1)+8))>>4) is checked, and if the condition evaluates to true, then samples p0 and q0 are modified, otherwise no filtering is applied.

[0043] FIG. 3 shows examples of weak filters with one sample change for 4×N blocks, N×4 blocks, 8×N blocks, and N×8 blocks.

[0044] 2.1.6 Boundary Determination (Edges that can be filtered) Filtering is applied to a 4x4 grid for luma and an 8x8 grid for chroma. In addition, it must be a transform block boundary or a coding sub-block boundary (e.g., with affine motion prediction, ATMVP). For non-such boundaries, the filter is disabled. maxFilterLengthPs and maxFilterLengthQs indicate how many samples should be filtered on the P-side and Q-side, respectively.

[0045] [2.1.6.1 TU boundaries] For each four columns of horizontal edges (or each four rows of horizontal edges), check the following to determine the filter length for P and Q blocks separately. Take horizontal edges as an example: - edgeFlags[x][y] is set equal to 1 if the row is a transform block edge (i.e., position (xCb+x, yCb+y) is on a transform block edge). - If edgeFlags[x][y] is set equal to 1, the following applies: - maxFilterLengthQs[x][y] is set: - If the conversion block height of P or Q is 4 or less, maxFilterLengthQs[x][y] is set to 1; - If the Q conversion block height is 32 or more, maxFilterLengthQs[x][y] is set to 7; - In other cases, maxFilterLengthQs[x][y] is set to 3. - maxFilterLengthPs[x][y] is set: - if the transform block width of P or Q is 4 or less, maxFilterLengthPs[x][y] is set to 1; - If the transform block width of P is 32 or more, maxFilterLengthPs[x][y] is set to 7; - In other cases, maxFilterLengthPs[x][y] is set to 3.

[0046] [2.1.6.2 Sub-Block Boundaries] The sub-block height used in the deblocking filter process for sub-block boundary detection is set to Max(8,nCbH / numSbY). - Array edge TbFlags is set equal to edgeFlags. - for yEdge=0..min((nCbH / 8)-1,numSbY-1), x=0..nCbW-1: - The vertical position y within the current coding block is set equal to yEdge x sbH. - When edgeFlags[x][y] is equal to 1, the values ​​of maxFilterLengthPs[x][y] and maxFilterLengthQs[x][y] are changed as follows: - If y is equal to 0 (first subblock) and edgeFlags[x][y] is equal to 1, then the following applies: - When numSbY is greater than 1 (Q is sub-block coded), the following applies:

number

number

number

number

number

number

[0047] It can be seen that the deblocking filter is enabled on a 4x4 luma grid at transform edges, but on an 8x8 luma grid at sub-block boundaries. Sub-block boundaries include prediction unit boundaries introduced by STMVP and affine mode. For sub-block boundaries and affine sub-blocks on the 8x8 grid, the same logic within a PU in the HEVC deblocking filter is applied. For PU boundaries, the deblocking filter is applied on an 8x8 grid, taking into account the difference between the reference pictures and motion vectors of neighboring sub-blocks.

[0048] [2.2 Deblocking filtering process in VVC standard WD6] The following specification for the deblocking filter is taken from VVC Working Draft JVET-O2001-vE.

[0049] [2.2.1 Deblocking filter process] [2.2.1.1 Overview] The input to this process is the reconstructed picture before deblocking, i.e., the array recPicture L When ChromaArrayType is not equal to 0, the array recPicture Cb and recPicture Cr is.

[0050] The output of this process is the modified reconstructed picture after deblocking, i.e., the array recPicture L When ChromaArrayType is not equal to 0, the array recPicture Cb and recPicture Cr is.

[0051] Vertical edges in a picture are filtered first. Then, horizontal edges in a picture are filtered using the samples modified by the vertical edge filtering process as input. Vertical and horizontal edges in the CTB of each CTU are processed separately on a coding unit basis. Vertical edges of coding blocks within a coding unit are filtered starting from the edge on the left side of the coding block and proceeding through the edges toward the right side of the coding block in geometric order. Horizontal edges of coding blocks within a coding unit are filtered starting from the edge on the top of the coding block and proceeding through the edges toward the bottom of the coding block in geometric order. NOTE - Although the filtering process is specified on a per-picture basis in this specification, the filtering process can be implemented on a per-coding-unit basis with equivalent results, provided that the decoder properly takes into account the ordering of processing dependencies so that the decoder produces the same output values.

[0052] The deblocking filter process is applied to all coding sub-block edges and transform block edges of a picture, except for the following types of edges: - edges on the picture border, - edges that coincide with the boundaries of subpictures where loop_filter_across_subpic_enabled_flag[SubPicIdx] is equal to 0, - edges that coincide with the vertical border of the picture when pps_loop_flter_across_virtual_boundaries_disabled_flag is equal to 1, - edges that coincide with brick boundaries when loop_filter_across_bricks_enabled_flag is equal to 0, - edges that coincide with slice boundaries when loop_filter_across_slices_enabled_flag is equal to 0, - an edge that coincides with the top or left boundary of a slice that has slice_deblocking_filter_disabled_flag equal to 1, - edges in slices with slice_deblocking_filter_disabled_flag equal to 1, - Edges that do not correspond to the 4x4 sample grid boundaries of the luma component, - Edges that do not correspond to the 8x8 sample grid boundaries of the chroma components, - an edge in the luma component with intra_bdpcm_flag equal to 1 on both sides of the edge, - An edge of a chroma sub-block that is not an edge of the associated transform unit.

[0053] The edge type, vertical or horizontal, is represented by the variable edgeType, as defined in Table 8-17. [Table 4]

[0054] When slice_deblocking_filter_disabled_flag of the current slice is equal to 0, the following applies: - The variable treeType is set equal to DUAL_TREE_LUMA. - Vertical edges are defined by the variable treeType, the reconstructed picture before deblocking, i.e., the array recPicture L , and the variable edgeType equal to EDGE_VER as input, and the modified reconstructed picture after deblocking, i.e., the array recPicture L as output and is filtered by invoking the deblocking filter process for one direction as specified in Section 8.8.3.2. - Horizontal edges are represented by the variable treeType, the reconstructed picture before deblocking, i.e., the array recPicture L, and the variable edgeType equal to EDGE_HOR as input, the modified reconstructed picture after deblocking, i.e., the array recPicture L as output and is filtered by invoking the deblocking filter process for one direction as specified in Section 8.8.3.2. - When ChromaArrayType is not equal to 0, the following applies: - The variable treeType is set equal to DUAL_TREE_CHROMA. - Vertical edges are defined by the variable treeType, the reconstructed picture before deblocking, i.e., the array recPicture Cb and recPicture Cr , as well as the variable edgeType equal to EDGE_VER, and the modified reconstructed picture after deblocking, i.e., the array recPicture L as output and is filtered by invoking the deblocking filter process for one direction as specified in Section 8.8.3.2. - Horizontal edges are represented by the variable treeType, the reconstructed picture before deblocking, i.e., the array recPicture Cb and recPicture Cr , as well as the variable edgeType equal to EDGE_HOR, and the modified reconstructed picture after deblocking, i.e., the array recPicture L as output and is filtered by invoking the deblocking filter process for one direction as specified in Section 8.8.3.2.

[0055] [2.2.1.2 Deblocking filter for one direction] The inputs to this process are: - variable treeType, which indicates whether the luma component (DUAL_TREE_LUMA) or the chroma component (DUAL_TREE_CHROMA) is currently being processed, - When treeType is equal to DUAL_TREE_LUMA, the reconstructed picture before deblocking, that is, the array recPicture L , - Array recPicture when ChromaArrayType is not equal to 0 and treeType is equal to DUAL_TREE_CHROMA Cb and recPicture Cr , - variable edgeType indicating whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered is.

[0056] The output of this process is the modified reconstructed picture after deblocking, i.e.: - When treeType is equal to DUAL_TREE_LUMA, the array recPicture L , - Array recPicture when ChromaArrayType is not equal to 0 and treeType is equal to DUAL_TREE_CHROMA Cb and recPicture Cr is.

[0057] The variables firstCompIdx and lastCompIdx are derived as follows:

number

[0058] For each coding unit and each coding block for each color component of the coding unit indicated by the color component index ranging from firstCompIdx to lastCompIdx inclusive, depending on the coding block width nCbW, coding block height nCbH, and the position (xCb, yCb) of the top-left sample of the coding block, when cIdx is equal to 0, or when cIdx is not equal to 0, edgeType is equal to EDGE_VER, and xCb%8 is equal to 0, or when cIdx is not equal to 0, edgeType is equal to EDGE_HOR, and yCb%8 is equal to 0, the edges are filtered by the following ordered steps:

[0059] 1. The variable filterEdgeFlag is derived as follows: - filterEdgeFlag is set equal to 0 if edgeType is equal to EDGE_VER and one or more of the following conditions are true: - the left boundary of the current coding block is the left boundary of the picture; - the left boundary of the current coding block is the left or right boundary of a subpicture and loop_filter_across_subpic_enabled_flag[SubPicIdx] is equal to 0; - the left boundary of the current coding block is the left boundary of a brick and loop_filter_across_bricks_enabled_flag is equal to 0; - the left boundary of the current coding block is the left boundary of a slice and loop_filter_across_slices_enabled_flag is equal to 0; - The left boundary of the current coding block is one of the vertical virtual boundaries of the picture and pps_loop_flter_across_virtual_boundaries_disabled_flag is equal to 1. - Otherwise, if edgeType is equal to EDGE_HOR and one or more of the following conditions are true, then the variable filterEdgeFlag is set equal to 0: - the top boundary of the current luma coding block is the top boundary of the picture; - the upper boundary of the current coding block is the upper or lower boundary of a subpicture and loop_filter_across_subpic_enabled_flag[SubPicIdx] is equal to 0; - the upper boundary of the current coding block is the upper boundary of a brick and loop_filter_across_bricks_enabled_flag is equal to 0; - the upper boundary of the current coding block is the upper boundary of the slice and loop_filter_across_slices_enabled_flag is equal to 0; - The top boundary of the current coding block is one of the horizontal virtual boundaries of the picture and pps_loop_flter_across_virtual_boundaries_disabled_flag is equal to 1.

[0060] 2. All elements edgeFlags, maxFilterLengthQs and maxFilterLengthPs of the two-dimensional (nCbW) x (nCbH) array are initialized to be equal to 0.

[0061] 3. The transform block boundary derivation process defined in Section 8.8.3.3 is called with the position (xCb, yCb), coding block width nCbW, coding block height nCbH, variable cIdx, variable filterEdgeFlag, array edgeFlags, maximum filter length arrays maxFilterLengthPs and maxFilterLengthQs, and variable edgeType as inputs, and the modified array edgeFlags, modified maximum filter length arrays maxFilterLengthPs and maxFilterLengthQs as outputs.

[0062] 4. If cIdx is equal to 0, the coding sub-block boundary derivation process defined in Section 8.8.3.4 is called with the position (xCb, yCb), coding block width nCbW, coding block height nCbH, array edgeFlags, maximum filter length arrays maxFilterLengthPs and maxFilterLengthQs, and variable edgeType as inputs, and the modified array edgeFlags, modified maximum filter length arrays maxFilterLengthPs and maxFilterLengthQs as outputs.

[0063] 5. The picture sample array recPicture is derived as follows: - If cIdx is equal to 0, recPicture is the reconstructed luma picture sample array before deblocking. L is set equal to, - Otherwise, if cIdx is equal to 1, recPicture is the reconstructed chroma picture sample array before deblocking. Cb is set equal to, - Otherwise (cIdx is equal to 2), recPicture is the reconstructed chroma picture sample array before deblocking. Cr is set equal to

[0064] 6. The boundary filtering strength derivation process defined in Section 8.8.3.5 is called with the picture sample array recPicture, the luma position (xCb, yCb), the coding block width nCbW, the coding block height nCbH, the variable edgeType, the variable cIdx, and the array edgeFlags as inputs, and the (nCbW) by (nCbH) array bS as output.

[0065] 7. The edge filtering process for one direction is called for the coding block as specified in Section 8.8.3.6 using the variable edgeType, the variable cIdx, the reconstructed picture before deblocking recPicture, the position (xCb, yCb), the coding block width nCbW, the coding block height nCbH, the familiarization date array bS, maxFilterLengthPs, and maxFilterLengthQs as inputs, and the modified reconstructed picture recPicture as output.

[0066] [2.2.1.3 Transformation Block Boundary Derivation Process] The inputs to this process are: - a position (xCb, yCb) specifying the top-left sample of the current coding block relative to the top-left sample of the current picture, - variable nCbW, which indicates the width of the current coding block; - variable nCbH, which indicates the height of the current coding block; - variable cIdx, which indicates the color component of the current coding block; - variable filterEdgeFlag, - 2-dimensional (nCbW) x (nCbH) array edgeFlags, - 2-dimensional (nCbW) x (nCbH) arrays maxFilterLengthQs and maxFilterLengthPs, - variable edgeType indicating whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered is.

[0067] The output of this process is: - modified 2D (nCbW) x (nCbH) array edgeFlags, - Modified 2-dimensional (nCbW) x (nCbH) arrays maxFilterLengthQs and maxFilterLengthPs is.

[0068] Depending on the edgeType, the arrays edgeFlags, maxFilterLengthPs and maxFilterLengthQs are derived as follows: - The variable gridSize is set to:

number

[0069] 2.2.1.4 Coding Sub-Block Boundary Derivation Process The inputs to this process are: - a position (xCb, yCb) specifying the top-left sample of the current coding block relative to the top-left sample of the current picture, - variable nCbW, which indicates the width of the current coding block; - variable nCbH, which indicates the height of the current coding block; - 2-dimensional (nCbW) x (nCbH) array edgeFlags, - 2-dimensional (nCbW) x (nCbH) arrays maxFilterLengthQs and maxFilterLengthPs, - variable edgeType indicating whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered is.

[0070] The output of this process is: - modified 2D (nCbW) x (nCbH) array edgeFlags, - Modified 2-dimensional (nCbW) x (nCbH) arrays maxFilterLengthQs and maxFilterLengthPs is.

[0071] The number of coding sub-blocks in the horizontal direction, numSbX, and the number of coding sub-blocks in the vertical direction, numSbY, are derived as follows: - If inter_affine_flag[xCb][yCb] is equal to 1 or merge_subblock_flag[xCb][yCb] is equal to 1, then numSbX and numSbY are set equal to NumbSbX[xCb][yCb] and NumbSbY[xCb][yCb], respectively. - Otherwise, numSbX and numSbY are both set equal to 1.

[0072] Depending on the value of edgeType, the following applies: - If edgeType is equal to EDGE_VER, the following applies: - The variable sbW is set equal to Max(8,nCbW / numSbX). - The array edgeTbFlags is set equal to edgeFlags. - For xEdge=0..min((nCbW / 8)-1,numSbX-1), y=0..nCbH-1: - The horizontal position x within the current coding block is set equal to xEdge × sBW. - The values ​​of edgeFlags[x][y] are derived as follows: - If pps_loop_flter_across_virtual_boundaries_disabled_flag is equal to 1 and x is equal to PpsVirtualBoundariesPosX[n] for some n=0..pps_num_ver_virtual_boundaries-1, the following applies:

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

[0073] 2.2.1.5 Boundary Filtering Strength Derivation Process The inputs to this process are: - Picture sample array recPicture, - a position (xCb, yCb) specifying the top-left sample of the current coding block relative to the top-left sample of the current picture, - variable nCbW, which indicates the width of the current coding block; - variable nCbH, which indicates the height of the current coding block; - variable edgeType, which indicates whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered; - variable cIdx, which indicates the color component of the current coding block; - 2-dimensional (nCbW) x (nCbH) array edgeFlags is.

[0074] The output of this process is a two-dimensional (nCbW) x (nCbH) array bS indicating the boundary filtering strength.

[0075] Variables xD i , yD j , xN and yN are derived as follows: - The variable gridSize is set as follows:

number

number

number

[0076] 2.2.1.6 Edge filtering process for one direction The inputs to this process are: - variable edgeType, which indicates whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered; - variable cIdx, which indicates the color component of the current coding block; - the reconstructed picture before deblocking, recPicture, - a position (xCb, yCb) specifying the top-left sample of the current coding block relative to the top-left sample of the current picture, - variable nCbW, which indicates the width of the current coding block; - variable nCbH, which indicates the height of the current coding block; - Array bS indicating boundary strengths, - variable filterEdgeFlag, - Arrays maxFilterLengthPs and maxFilterLengthQs is.

[0077] The output of this process is the modified reconstructed picture recPicture after deblocking.

[0078] For the edge filtering process, the following is applied: - The variable gridSize is set as follows:

number

number

number

number

[0079] 2.2.1.6.1 Decision Process for Luma Block Edges The inputs to this process are: - Picture sample array recPicture, - a position (xCb, yCb) specifying the top-left sample of the current coding block relative to the top-left sample of the current picture, - position (xBl, yBl) specifying the top left sample of the current block relative to the top left sample of the current coding block, - variable edgeType, which indicates whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered; - variable bS, which indicates the boundary filtering strength, - variable maxFilterLengthP, which indicates the maximum filter length - Variable maxFilterLengthQ indicating the maximum filter length is.

[0080] The output of this process is: - variables dE, dEp and dEq, containing the decision - changed filter length variables maxFilterLengthP and maxFilterLengthQ, - variable t C is.

[0081] Sample value p i,k and q j,k (i=0..maxFilterLengthP, j=0..maxFilterLengthQ, k=0 and 3) are derived as follows: - If edgeType is equal to EDGE_VER, the following applies:

number

number

[0082] The variable qpOffset is derived as follows: - If sps_ladf_enabled_flag is equal to 1, the following applies: - The reconstructed luma level variable lumaLevel is derived as follows:

number

number

[0083] Variable Qp Q and Qp P are sample q 0,0 and p 0,0 Qp of the coding unit containing the coding block containing Y The variable qP is derived as follows:

number

[0084] The value of the variable β' is determined as specified in Table 8-18 based on the quantization parameter Q, which is derived as follows:

number

[0085] The variable β is derived as follows:

number

[0086] variable t C The value of ' is determined as specified in Table 8-18 based on the quantization parameter Q, which is derived as follows:

number

[0087] variable t C is derived as follows:

number

[0088] The following ordered steps are applied: 1. The variables dp0, dp3, dq0, and dq3 are derived as follows:

number

number

number

number

number

number

number

number

number

number

number

number

[0089] 2.2.1.6.2 Filtering Process for Luma Block Edges The inputs to this process are: - Picture sample array recPicture, - a position (xCb, yCb) specifying the top-left sample of the current coding block relative to the top-left sample of the current picture, - position (xBl, yBl) specifying the top left sample of the current block relative to the top left sample of the current coding block, - variable edgeType, which indicates whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered; - variables dE, dEp, and dEq, containing the decision - variables maxFilterLengthP and maxFilterLengthQ containing the maximum filter lengths, - variable t C is.

[0090] The output of this process is the modified picture sample array recPicture.

[0091] Depending on the value of edgeType, the following applies: - If edgeType is EDGE_VER, the following ordered steps apply: 1. Sample value p i,k and q j,k (i=0..maxFilterLengthP, j=0..maxFilterLengthQ, k=0..3) is derived as follows:

number

number

number

number

number

number

number

number

number

number

[0092] 2.2.1.6.3 Decision Process for Chroma Block Edges This process is only invoked when ChromaArrayType is not equal to 0.

[0093] The inputs to this process are: - chroma picture sample array recPicture, - chroma position (xCb, yCb) that specifies the top left sample of the current chroma coding block relative to the top left chroma sample of the current picture, - chroma position (xBl, yBl) specifying the top left sample of the current chroma block relative to the top left sample of the current chroma coding block, - variable edgeType, which indicates whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered; - variable cIdx indicating the color component index, - variable cQpPicOffset, which indicates the picture-level chroma quantization parameter offset, - variable bS, which indicates the boundary filtering strength, - variable maxFilterLengthCbCr is.

[0094] The output of this process is: - Changed variable maxFilterLengthCbCr, - variable t C is.

[0095] The variable maxK is derived as follows: - If edgeType is equal to EDGE_VER, the following applies:

number

number

[0096] Value p i and q i (i=0..maxFilterLengthCbCr, k=0..maxK) is derived as follows: - If edgeType is equal to EDGE_VER, the following applies:

number

number

[0097] Variable Qp Q and Qp P are sample q 0,0 and p0,0 Qp of the coding unit containing the coding block containing Y is set equal to the value.

[0098] Variable Qp C is derived as follows:

number

[0099] The value of the variable β' is determined as specified in Table 8-18 based on the quantization parameter Q, which is derived as follows:

number

[0100] The variable β is derived as follows:

number

[0101] variable t C The value of ' is determined as specified in Table 8-18 based on the quantization parameter Q, which is derived as follows:

number

[0102] variable t C is derived as follows:

number

[0103] When maxFilterLengthCbCr is equal to 1 and bS is not equal to 2, maxFilterLengthCbCr is set equal to 0.

[0104] When maxFilterLengthCbCr is equal to 3, the following ordered steps are applied: 1. The variables n1, dpq0, dpq1, dq, dq, and d are derived as follows:

number

[0105] 2.2.1.6.4 Filtering Process for Chroma Block Edges This process is only invoked when ChromaArrayType is not equal to 0.

[0106] The inputs to this process are: - chroma picture sample array recPicture, - chroma position (xCb, yCb) that specifies the top left sample of the current chroma coding block relative to the top left chroma sample of the current picture, - chroma position (xBl, yBl) specifying the top left sample of the current chroma block relative to the top left sample of the current chroma coding block, - variable edgeType, which indicates whether vertical edges (EDGE_VER) or horizontal edges (EDGE_HOL) are filtered; - variable maxFilterLengthCbCr, which contains the maximum chroma filter length - variable t C is.

[0107] The output of this process is the modified chroma picture sample array recPicture.

[0108] The variable maxK is derived as follows: - If edgeType is equal to EDGE_VER, the following applies:

number

number

[0109] Value p i and q i (i=0..maxFilterLengthCbCr, k=0..maxK) is derived as follows: - If edgeType is equal to EDGE_VER, the following applies:

number

number

[0110] Depending on the value of edgeType, the following applies: - If edgeType is equal to EDGE_VER, then for each sample position (xCb+xBl, yCb+yBl+k), k=0..maxK, the following ordered steps are applied: 1. The filtering process for chroma samples as specified in Section 8.8.3.6.9 is performed using the variables maxFilterLengthCbCr, sample value p i,k , q i,k (i=0..maxFilterLengthCbCr), position (xCb+xBl-i-1,yCb+yBl+k) and (xCb+xBl+i,yCb+yBl+k)(i=0..maxFilterLengthCbCr-1), and variable t C is used as input and the filtered sample value p i ' and q i ' Called with (i=0..maxFilterLengthCbCr-1) as output. 2. The filtered sample value p i ' and q i '(i=0..maxFilterLengthCbCr-1) replaces the corresponding sample in the sample array recPicture as follows:

number

number

[0111] 2.2.1.6.5 Decision Process for Luma Samples The inputs to this process are: - sample values ​​p0, p3, q0 and q3, - The variables dpq, sp, sq, spq, sidePisLargeBlk, sideQisLargeBlk, β, and t C is.

[0112] The output of this process is the variable dSam, which contains the decision.

[0113] The variables sp and sq are modified as follows: - When sidePisLargeBlk is equal to 1, the following applies:

number

number

[0114] The variable sThr is derived as follows: - If sidePisLargeBlk is equal to 1 or sideQisLargeBlk is equal to 1, the following applies:

number

number

[0115] The variable dSam is specified as follows: - dSam is set equal to 1 if all of the following conditions are true: - dpq is smaller than (β>>2), - sp+sq is less than sThr, - spq is (5 × t C +1)>>1 is smaller. - Otherwise, dSam is set equal to 0.

[0116] 2.2.1.6.6 Filtering process for luma samples using short filters The inputs to this process are: - sample value p i and q i (i=0..3), -p i and q i Position (xP i ,yP i ) and (xQ i ,yQ i )(i=0..2), - variable dE, variables dEp and dEq containing the decision to apply the filtering operation to samples p1 and q1, respectively; - variable t C is.

[0117] The output of this process is: - the number of filtered samples nDp and nDq, - filtered sample value p i ' and q j '(i=0..nDp-1, j=0..nDq-1) is.

[0118] Depending on the value of dE, the following applies: If the variable dE is equal to 2, then nDp and nDq are both set equal to 3 and the following strong filtering is applied:

number

number

number

number

number

[0119] When nDp is greater than 0 and one or more of the following conditions are true, nDp is set equal to 0: - cu_transquant_bypass_flag is equal to 1 for the coding unit containing the coding block containing sample p0, - pred_mode_plt_flag is equal to 1 for the coding unit that contains the coding block that contains sample p0.

[0120] When nDq is greater than 0 and one or more of the following conditions are true, nDq is set equal to 0: - cu_transquant_bypass_flag is equal to 1 for the coding unit containing the coding block containing sample q0, - pred_mode_plt_flag is equal to 1 for the coding unit that contains the coding block that contains sample q0.

[0121] 2.2.1.6.7 Filtering process for luma samples using long filters The inputs to this process are: - variables maxFilterLengthP and maxFilterLengthQ, - sample value p i and q j (i=0..maxFilterLengthP and j=0..maxFilterLengthQ), -p i and q j Position (xP i ,yP i ) and (xQ j ,yQ j )(i=0..maxFilterLengthP-1 and j=0..maxFilterLengthQ-1), - variable t C is.

[0122] The output of this process is: - filtered sample value p i ' and q j '(i=0..maxFilterLengthP-1, j=0..maxFilterLengthQ-1) is.

[0123] The variable refMiddle is derived as follows: - If maxFilterLengthP is equal to maxFilterLengthQ and maxFilterLengthP is equal to 5, then the following applies:

number

number

number

number

number

number

[0124] The variables refP and refQ are derived as follows:

number

[0125] variable f i and t C PD i is defined as follows: - If maxFilterLengthP is equal to 7, then the following applies:

number

number

number

[0126] Variable g j and t C QD j is defined as follows: - If maxFilterLengthQ is equal to 7, the following applies:

number

number

number

[0127] filtered sample value p i ' and q j '(i=0..maxFilterLengthP-1, j=0..maxFilterLengthQ-1) is derived as follows:

number

[0128] The filtered sample value p is i ' is the corresponding input sample value p i (i=0..maxFilterLengthP-1) is replaced by: - Sample p i cu_transquant_bypass_flag is equal to 1 for the coding unit that contains the coding block containing - Sample p i The pred_mode_plt_flag of the coding unit containing the coding block containing

[0129] The filtered sample value q is i ' is the corresponding input sample value q j (j=0..maxFilterLengthQ-1) is replaced by: - Sample Q i cu_transquant_bypass_flag is equal to 1 for the coding unit that contains the coding block containing - Sample Q i The pred_mode_plt_flag of the coding unit containing the coding block containing

[0130] 2.2.1.6.8 Decision Process for Chroma Samples The inputs to this process are: - sample values ​​p0, p3, q0 and q3, - variables dpq, β and t C is.

[0131] The output of this process is the variable dSam, which contains the decision.

[0132] The variable dSam is specified as follows: - dSam is set equal to 1 if all of the following conditions are true: - dpq is smaller than (β>>2), - Abs(p3-p0)+Abs(q0-q3) is smaller than (β>>3), - Abs(p0-q0) is (5×t C +1)>>1 is smaller. - Otherwise, dSam is set equal to 0.

[0133] 2.2.1.6.9 Filtering process for chroma samples This process is invoked when ChromaArrayType is not equal to 0.

[0134] The inputs to this process are: - variable maxFilterLength, - Chroma sample value p i and q i (i=0..maxFilterLengthCbCr), -p i and q i Chroma position (xP i ,yP i ) and (xQ i ,yQ i )(i=0..maxFilterLengthCbCr-1), - variable t C is.

[0135] The output of this process is the filtered sample values ​​p i ' and q i '(i=0..maxFilterLengthCbCr-1).

[0136] filtered sample value p i ' and q i '(i=0..maxFilterLengthCbCr-1) is derived as follows: - If maxFilterLengthCbCr is equal to 3, the following strong filtering is applied:

number

number

[0137] The filtered sample value p is i ' is the corresponding input sample value p i (i=0..maxFilterLengthCbCr-1) is replaced by: - Sample p i cu_transquant_bypass_flag is equal to 1 for the coding unit that contains the coding block containing - Sample p i The pred_mode_plt_flag of the coding unit containing the coding block containing

[0138] The filtered sample value q is i ' is the corresponding input sample value q i (i=0..maxFilterLengthCbCr-1) is replaced by: - Sample Q i cu_transquant_bypass_flag is equal to 1 for the coding unit that contains the coding block containing - Sample Q i The pred_mode_plt_flag of the coding unit containing the coding block containing

[0139] 2.4 Virtual Boundary Filtering Process for Line Buffer Reduction In VTM6, modified block classification and filtering is used for samples close to horizontal CTU boundaries to reduce line buffer requirements. To this end, a virtual boundary is defined as a line by shifting the horizontal CTU boundary to include "N" samples, as shown in Figure 4. N is equal to 4 for the luma component and 2 for the chroma component.

[0140] FIG. 4 shows an example of modified block classification with virtual boundaries.

[0141] As shown in Figure 5, a modified block classification is applied to the luma component. For the 1D Laplacian gradient calculation of a 4x4 block above the virtual boundary, only samples above the virtual boundary are used. Similarly, for the 1D Laplacian gradient calculation of a 4x4 block below the virtual boundary, only samples below the virtual boundary are used. Correspondingly, the quantization of the activity value A is scaled by taking into account the reduction in the number of samples used in the 1D Laplacian gradient calculation.

[0142] For the filtering process, a symmetric padding operation at the virtual boundary is used for both luma and chroma components. As shown in Figure 5, when the sample being filtered is located below the virtual boundary, the adjacent samples located above the virtual boundary are padded, while the corresponding samples on the other side are also padded symmetrically.

[0143] FIG. 5 shows an example of modified ALF filtering for the luma component at the virtual boundary.

[0144] [3 Examples of technical problems solved by the disclosed embodiments and techniques] The latest VVC working draft JVET-O2001-v14 has some issues which are described below. (1) 4x4 sample grid luma deblocking filtering is applied to the virtual boundary, which increases the line buffer used for in-loop filtering based on partial CTUs. An improved method can be used to reduce the extra line buffer. (2) In WD6, luma deblocking is applied at the 4x4 grid transform block boundary, while for sub-block boundaries, line deblocking is applied at the 8x8 grid. However, sub-block-based affine prediction is based on 4x4, which results in a large motion vector difference between two adjacent 4x4 blocks. Therefore, blocking artifacts may occur at the 4x4 sub-block boundary, and the luma deblocking filter needs to be extended to the 4x4 grid sub-block boundary. (3) In WD6, the deblocking filter is not applied to the internal sub-block edges of merged Triangle Prediction Mode (TPM) coded blocks. However, the motion vectors of TPM blocks are stored at 4x4 block granularity, which can increase the motion vector difference between two adjacent 4x4 blocks. Therefore, it may be necessary to apply the deblocking filter to the internal edges of TPM blocks. (4) In WD6, not all chroma flags are signaled depending on the chroma format, which may not be desirable. (5) In WD6, the PPS syntax element log2_transform_skip_max_size_minus2 is signaled conditionally on the SPS syntax element, which may cause a parsing dependency between SPS and PPS. (6) In WD6, the setting of maxFilterLengthPs depends on whether the current coding block contains more than one 8x8 block. For example, for an 8x8 affine or SbTMVP coded block, maxFilterLengthPs remains unchanged and is derived from the transform block boundary. However, for other sub-block boundaries, maxFilterLengthQs is reset to mini(5, maxFilterLengthQs). (7) In WD6, the setting of maxFilterLengthQs depends on whether the edge is located at the first sub-block boundary (leftmost or topmost). There are two cases: a) The block to the left of the vertical edge is not sub-block coded. b) The blocks above the horizontal edge block are not sub-block coded. For the above cases, maxFilterLengthPs remains unchanged and is derived from the transform block boundary, but for other sub-block boundaries, maxFilterLengthPs is reset to mini(5, maxFilterLengthPs). (8) In WD6, the setting of maxFilterLengthPs and maxFilterLengthQs for a sub-block edge depends on whether the edge position plus 4 is greater than or equal to the current coding block width, which may not be necessary. (9) In WD6, for interior sub-block edges that are 4 samples away from a transform block edge, maxFilterLengthPs and maxFilterLengthQs are set to 1. Otherwise, for the interior first / last sub-block edges and sub-block edges that are 8 samples away from a TU edge, maxFilterLengthPs and maxFilterLengthQs are set to 2. Otherwise, for other interior sub-block edges, maxFilterLengthPs and maxFilterLengthQs are set to 3. These conditions may be further refined. (10) In WD6, the setting of the deblocking filter strength bS depends on the prediction mode of the neighboring blocks (for example, if the prediction mode of the coding sub-block containing sample p0 is different from the prediction mode of the coding sub-block containing sample q0, bS is set equal to 1). (11) In WD6, if it is a transform block edge and one adjacent block on either side of the edge is coded in CIIP mode, the deblocking filter strength bS of this edge is set to 2.

[0145] [4. List of embodiments and technologies] The inventions detailed below should be considered as examples to illustrate the general concept. These inventions should not be construed in a narrow sense. Furthermore, these inventions can be combined in any way.

[0146] In the following disclosure, the term "natural boundary" may refer to a boundary between two coding blocks (e.g., two CUs), or two prediction blocks (e.g., two PUs), or two transform blocks (two TUs), or two sub-blocks.

[0147] The deblocking process derives from the natural boundaries some "boundaries" (e.g., sub-block boundaries or transform block boundaries) that are taken into account in the deblocking process. These boundaries may also be referred to as "deblocking boundaries" in the following disclosure.

[0148] In one example, a deblocking boundary must be a natural boundary, but a natural boundary does not have to be a deblocking boundary. If a boundary is not a deblocking boundary, it may not be considered in the deblocking process.

[0149] The term "edge" is equivalent to "boundary" in the following disclosure.

[0150] [Deblocking filter at coding block and sub-block boundaries] 1. A luma deblocking filter may be applied in a 4x4 grid on the sub-block natural boundaries. a. In one example, the determination of whether the current sub-block natural boundary needs to be luma deblocking filtered (eg, the value of edgeFlags) may be performed on a 4x4 grid. i. In one example, the determination of whether the current sub-block natural boundary needs to be luma deblocking filtered (eg, the value of edgeFlags) may not be performed on an 8x8 grid. b. In one example, luma deblocking filter length determination (eg, maxFilterLengthPs and maxFilterLengthQs) may be applied on a 4x4 grid. i. In one example, the luma deblocking filter length determination (maxFilterLengthPs and maxFilterLengthQs) may not be applied on an 8x8 grid. c. In one example, the grid unit (eg, 4x4 or 8x8) for sub-block boundary / filter length / filter strength determination in a sub-block coded block may depend on the sub-block coding method. i. In one example, the grid unit (e.g., 4x4 or 8x8) for sub-block boundary / filter length / filter strength determination in sub-block coded blocks may be aligned with the sub-block size used in motion compensation / motion derivation. ii. In one example, if the current block is affine coded, the luma deblocking filter may be applied in a 4x4 grid on the affine sub-block boundaries. 1) For example, for sub-block boundaries of affine coded blocks, bullets 1.a and 2.a above may be applied. iii. In one example, if the current block is SbTMVP coded, the deblocking filter may be applied in an 8x8 grid on SbTMVP sub-block boundaries.

[0151] 2. A chroma deblocking filter can be applied at the sub-block natural boundaries. a. In one example, a chroma deblocking filter may be applied at an NxM (eg, 8x8 or 4x4 or 4x8 or 8x4) grid sub-block boundary. b. In one example, the determination of whether the current chroma deblocking edge is a sub-block boundary (eg, the value of edgeFlags) may be performed on an NxN (N=8 or 4) grid. c. In one example, the chroma deblocking filter length determination (eg, maxFilterLengthPs and maxFilterLengthQs) may be applied in NxM (eg, 8x8 or 4x4 or 4x8 or 8x4). d. In one example, the chroma deblocking filter length values ​​(eg, maxFilterLengthPs and maxFilterLengthQs) may be less than or equal to L (eg, L=3 or 2 or 1). e. In one example, the boundary filtering strength value (e.g., bS) for a chroma sub-block boundary may depend on the number of motion vectors, the reference picture, and the absolute BV / MV difference between two adjacent pixels located on either side of the current boundary. f. Whether the above method should be applied may depend on whether the current block is decoded using a sub-block based technique (eg, SbTMVP, affine, DMVR, chroma IBC mode in the case of dual tree). g. Whether the above method should be applied may depend on the color subsampling format (equivalent to 4:4:4 or not). h. The deblocking grid NxM may depend on the color format.

[0152] 3. For blocks coded in transverse prediction mode (TPM) (also called geometry prediction mode), an NxN (N=4 or 8) grid deblocking filter may be applied. a. In one example, the interior edge derivation for TPM-coded blocks may be the same as the sub-block boundary derivation process for SbTMVP- and / or affine-coded blocks. b. In one example, TPM coded blocks may be treated as sub-block coded blocks, and sub-block boundary / filter length / filter strength decisions may be determined on a 4x4 or 8x8 grid.

[0153] 4. The deblocking filter length setting may be treated the same for all sub-block deblocking boundaries, regardless of whether it is the first sub-block deblocking boundary (eg, the leftmost vertical boundary or the topmost horizontal boundary). a. For the leftmost vertical boundary (and / or topmost horizontal boundary) of the current coding block, the value of the deblocking filter length may be conditioned on whether it coincides with a transform block edge (eg, edgeTbFlags). i. In one example, for the leftmost vertical boundary (or topmost horizontal boundary) of the current coding block, if edgeTbFlags for this boundary is equal to 1, the deblocking filter length maxFilterLengthPs for the current block may be set to Min(5, maxFilterLengthPs), regardless of whether the neighboring coding block to the left (or above) of that boundary is SbTMVP coded or affine coded. ii. In one example, for the leftmost vertical boundary (or topmost horizontal boundary) of the current coding block, if edgeTbFlags for this boundary is equal to 1, the deblocking filter length maxFilterLengthPs for the current block is set to Min(5, maxFilterLengthPs), regardless of the number of sub-blocks in the current coding block.

[0154] 5. When deriving the sub-block deblocking boundary, the determination of the deblocking filter length may depend on the sub-block edge position (e.g., the sub-block edge index (e.g., xEdge) of the current coding block). Let xEdge be in the range of 0, M, where M is an integer greater than or equal to 0. a. In one example, for xEdge in the range [a, b], maxFilterLengthPs and / or maxFilterLengthQs may be set to a fixed integer value L (eg, L=1, 2, 3). i. In one example, a=0 or 1. ii. In one example, b=M or M-1. iii. In one example, a=b=0 or 1 or M or M-1.

[0155] 6. If x represents the horizontal / vertical sub-block position within the current coding block, the determination of the deblocking filter length may depend on the relationship between x+delta (e.g., delta equals 4 or 8) and the coding block width / height. a. In one example, when deriving SbTMVP and affine sub-block boundaries, the deblocking filter length (e.g., maxFilterLengthPs and / or maxFilterLengthQs) may be determined without checking whether x+delta is greater than or equal to the block width / height. b. In one example, when deriving SbTMVP and affine sub-block boundaries, the deblocking filter length (e.g., maxFilterLengthPs and / or maxFilterLengthQs) may be determined by checking whether x+delta is greater than or equal to the block width / height.

[0156] 7. When deriving sub-block deblocking boundaries, the decision on the deblocking filter length for a vertical boundary at column x or a horizontal boundary at row y within a block may depend on whether the vertical boundary at column x+dx or the horizontal boundary at row y+dy is a transform block boundary, where dx and dy are integers such as 4 or 8. a. In one example, when deriving sub-block boundaries for a block (e.g., coded with SbTMVP and / or affine), the determination of the deblocking filter lengths (e.g., maxFilterLengthPs and maxFilterLengthQs) for a vertical boundary at column x or a horizontal boundary at row y within the block may depend on one of the following cases: i. Whether the vertical boundary at column x+dx or the horizontal boundary at row y+dy is a transformed block boundary, without checking whether x+dx>=block width is satisfied and / or whether y+dy>=block height is satisfied; ii. Whether the vertical boundary at column x+dx or the horizontal boundary at row y+dy is a transformed block boundary, and whether x+dx >= block width and / or y+dy >= block height are satisfied. b. Alternatively, when deriving sub-block boundaries for a block (e.g., coded with SbTMVP and / or affine), the determination of the deblocking filter lengths (e.g., maxFilterLengthPs and maxFilterLengthQs) for a vertical boundary at column x or a horizontal boundary at row y within the block may be independent of whether the vertical boundary at column x+dx or the horizontal boundary at row y+dy is a transform block boundary.

[0157] [Common issues with deblocking filters] 8. For SBT coded blocks, instead of marking two deblocking boundaries between (smaller) transform blocks, it is proposed to mark three transform block boundaries in one direction (horizontal or vertical). a. In one example, for one direction (horizontal or vertical), the two transform block boundaries and the coded block boundary are all treated as deblocking boundaries that can be filtered in the deblocking filter process. b. Alternatively, whether or not to apply filtering to a coded block boundary may further depend on whether or not it is a sub-block boundary.

[0158] 9. If two adjacent samples located on either side of the current block edge belong to two transform blocks that do not have non-zero transform coefficient levels, the deblocking filter strength (e.g., bS) of this edge may be set to 0. a. In one example, bS may be set to 0 if two adjacent samples located on either side of the current transform block edge belong to two transform blocks that do not have non-zero transform coefficient levels, and one of the two adjacent samples is coded as merged triangle prediction mode (TPM). b. In one example, if two adjacent samples located on either side of the current transform block edge belong to two transform blocks that do not have non-zero transform coefficient levels, and the motion vector difference between the two adjacent samples is greater than a threshold T (e.g., T=8 in units of 1 / 16 luma samples), bS may be set to 0. c. In one example, the determination of deblocking filter strength at transform block boundaries may be decoupled from criteria related to motion vectors.

[0159] 10. The derived MVD in DMVR may be used in deblocking. a. In one example, for a CU processed by a DMVR, deblocking may be performed at sub-block boundaries within the CU using the derived MVD of the sub-block instead of the signaled MV. b. In one example, for a CU processed by a DMVR, deblocking may be performed at a CU boundary using the CU's signaled MV. c. Alternatively, for CUs processed by DMVR, deblocking can be performed at CU boundaries using the derived MVDs and signaled MVs of the sub-blocks at the CU boundaries. i. For example, for a block at a CU boundary, an MV may be generated by adding the derived MVD of the associated sub-block to the signaled MV, and then used for deblocking.

[0160] 11. The setting of the deblocking filter strength bS may be independent of the prediction modes of neighboring blocks. In one example, the setting of the deblocking filter strength bS may be determined with respect to whether one of the neighboring blocks is coded as MODE_INTRA, but not with respect to MODE_IBC and / or MODE_INTER.

[0161] 12. Whether and / or how an edge should be filtered may depend on the edge type (eg, transform block boundary or sub-block boundary). a. In one example, the deblocking filter strength at transform block boundaries and the deblocking filter strength at coding sub-block boundaries may be determined separately. i. In one example, transform block boundary flags may be stored in a (nCbW) x (nCbH) array A, while coding sub-block boundaries may be stored in a (nCbW) x (nCbH) array B, where A and B are different array buffers. ii. In one example, the deblocking filter strength (eg, bS) at the transform block boundary may be set according to the transform coefficients (eg, non-zero coefficients). 1) In one example, if two adjacent samples located on either side of the current transform block edge both have zero transform coefficient levels, bS may be set to 0. iii. In one example, the deblocking filter strength (e.g., bS) of a coding sub-block boundary may be set according to the motion vector and / or reference picture between two adjacent pixels located on either side of the current boundary. iv. In one example, if a block edge is also a transform block edge but not a sub-block boundary, and at least one of the two adjacent samples along the edge is within a coding block in CIIP mode, then the boundary strength (BS) is set equal to X (X=1 or 2). b. Alternatively, the filter strength / filter length / boundary strength determination may be the same for different edge types. i. In one example, if a block edge is also a transform block edge or a sub-block boundary and at least one of the two adjacent samples along the edge is within a coding block in CIIP mode, the boundary strength (BS) is set equal to X (X=1 or 2).

[0162] [Interaction with virtual boundaries] 13. The deblocking filter cannot be applied at a virtual boundary that is N samples above a horizontal CTU boundary (e.g., N=4 for luma, N=2 for chroma). a. In one example, for TU / CU / PU / sub-block edges that coincide with virtual boundaries, horizontal edge deblock filtering may not be applied. b. Alternatively, furthermore, for TU / CU / PU / sub-block edges that coincide with the virtual boundary, vertical edge deblock filtering can still be applied.

[0163] 14. In one example, whether and / or how values ​​should be clipped in the deblocking process may depend on whether the boundaries filtered by the deblocking filter coincide with virtual boundaries. In one example, a sample with value p is changed to have value p' after the deblocking process, where p is derived as p' = p + d', and d' = Clip3(t1, t2, d), where d is derived in the deblocking process and [t1, t2] is the clipping range. t1 and / or t2 may depend on whether the boundary filtered by the deblocking filter coincides with the virtual boundary. i. For example, t1=-2 N and t2=2 N -1, where N is an integer. 1) For example, N may depend on the color components. 2) For example, N can be sent from the encoder to the decoder. 3) For example, N may depend on the sample bit depth.

[0164] [Interaction with other coding tools] 15. SBT and sub-block based coding methods (e.g., SbTMVP and / or affine) may be used exclusively. a. SBT may not be allowed for sub-block based coding blocks such as SbTMVP and affine prediction blocks. b. In one example, if a coding block is coded with SbTMVP, SBT cannot be applied. c. In one example, when the coding block is coded with affine prediction, SBT cannot be applied. d. In one example, when the coding block is coded with SbTMVP or affine prediction, SBT cannot be applied. i. For example, when inter_affine_flag is equal to 1 or merge_subblock_flag is equal to 1, cu_sbt_flag may not be signaled and may be inferred to be 0.

[0165] 16. For the above examples, when a coding tool is not permitted, the notification of the instruction to use the tool is skipped. a. Alternatively, when the first tool is not permitted when the second tool is applied, the notification of using the first tool may be under the condition that the second tool is not applied.

[0166] 17. The deblocking filter can be applied to the boundary between two sub - partitions of a block coded in Intra Sub - Partitioning (ISP) mode. a. In one example, the vertical boundary at column x between two sub - partitions of a block is filtered by deblocking when x satisfies x = M×P+offset and / or x < W, where offset, M, and P are positive integers. In one example, M = 1, 2, 3..., and P = 1. In other examples, M = 1, 2, 3..., and P = 2. W is the width of the block. For example, offset = 0. b. In one example, the horizontal boundary at row y between two sub - partitions of a block is filtered by deblocking when y satisfies y = M×P+offset and / or y < H, where offset, M, and P are positive integers. In one example, M = 1, 2, 3..., and P = 1. In other examples, M = 1, 2, 3..., and P = 2. H is the height of the block. For example, offset = 0. c. Alternatively, the deblocking filter is not applied to the boundary between two sub-partitions of a block coded in ISP mode.

[0167] 18. A deblocking filter may be applied to the boundary between two MxN (eg, 4x4 or 8x8) regions of a TPM-coded block. a. For example, if one of two adjacent coding blocks is a TPM-coded block, the boundary between the two blocks may be deblocking filtered.

[0168] 19. The filtering process (e.g., deblocking filter, SAO, ALF) may rely on the motion information of the TPM coded block used in the motion compensation process instead of that used in motion preservation / motion vector prediction for the next coded block. a. In one example, during the deblocking filter strength (eg, bS) derivation process, the motion vectors of the TPM coded blocks may be those used in the motion compensation process. b. In one example, the stored HxH (eg, 4x4) motion vectors of a TPM-coded block may not be used for deblocking boundary filtering strength setting. c. In one example, the motion vectors used for TPM motion compensation may be used for deblocking boundary filtering strength setting. d. Alternatively, whether to use motion information in the motion compensation process or the motion preservation or motion vector prediction process can be adaptively changed. e. Alternatively, whether to use motion information in the motion compensation process or motion preservation or motion vector prediction process may be determined based on the decoded information and / or block size, etc.

[0169] [Chroma Flag Notification] 20. Signaling of chroma machine tax elements may depend on the chroma format sampling structure (eg, chroma_format_idc) and / or coding method (eg, separate_colour_plane_flag and / or ChromaArrayType, etc.). In one example, the PPS Cb / Cr flags may be signaled according to the chroma format sampling structure. i. In one example, if ChromaArrayType is equal to true, then syntax element X may be signaled; otherwise, syntax element X may not be signaled. ii. In one example, if the chroma format is monochrome (e.g., 4:0:0), syntax element X may be signaled. Otherwise, syntax element X may not be signaled. iii. In one example, syntax element X may be signaled if the chroma format is 4:4:4 and separate_colour_plane_flag is equal to 1. Otherwise, syntax element X may not be signaled. iv. For example, x may be pps_cb_qp_offset and pps_cr_qp_offset in the above bullet. v. For example, X may be pps_joint_cbcr_qp_offset in the above bullet. vi. For example, X may be cu_chroma_qp_offset_enabled_flag in the above bullet. vii. For example, X may be pps_slice_chroma_qp_offsets_present_flag in the above bullet.

[0170] 21. PPS syntax elements may be independent of SPS syntax elements. a. In one example, the PPS syntax element log2_transform_skip_max_size_minus2 may not be conditionally signaled by an SPS syntax element (eg, sps_transform_skip_enabled_flag).

[0171] [5. Embodiments] The following is an example embodiment, which can be applied to the VVC standard. The changes are based on the latest VVC working draft (JVET-O2001-v14). New additions are highlighted in bold italics, and deletions from the VVC working draft are marked with double brackets (e.g., [[a]] represents the deletion of the letter "a").

[0172] Embodiment #1 for Applying Luma Deblocking Filter on a 4x4 Grid for Sub-Block Boundaries [Table 6] TIFF0007544921000110.tif197168

[0173] Embodiment #2 for Applying a Luma Deblocking Filter at a 4x4 Grid Affine-Coded Sub-Block Boundary and an 8x8 Grid SbTMVP-Coded Sub-Block Boundary, and Applying a Chroma Deblocking Filter at an 8x8 Grid Sub-Block Boundary [Table 7] TIFF0007544921000112.tif246161TIFF0007544921000113.tif253161TIFF0007544921000114.tif173161

[0174] Embodiment #3 for Decoupling Deblocking Filter Strength Settings for Transform Block Edges from Motion Vectors [Table 8] TIFF0007544921000116.tif247156TIFF0007544921000117.tif43157

[0175] Embodiment #4 relating to determining the deblocking filter length for the first sub-block boundary [Table 9]

[0176] Embodiment #5 relating to determining deblocking filter length without checking coding block size [Table 10] TIFF0007544921000120.tif104158

[0177] Embodiment #6 relating to determining deblocking filter length by sub-block boundary index [Table 11] TIFF0007544921000122.tif183164

[0178] Embodiment #7 relating to determining deblocking filter length by adjacent TU edges [Table 12] TIFF0007544921000124.tif139166

[0179] Embodiment #8 for Disabling SBT for SbTMVP / Affine Prediction Blocks [Table 13]

[0180] Embodiment #9 for Disabling Horizontal Edge Deblocking at ALF Virtual Boundaries [Table 14]

[0181] Chroma Flag Notification Embodiment #10 [Table 15]

[0182] BS Setting Embodiment #11 [Table 16] TIFF0007544921000129.tif249164TIFF0007544921000130.tif227160

[0183] BS Setting Embodiment #12 [Table 17]

[0184] FIG. 6A is a block diagram of a video processing device 600. The device 600 may be used to implement one or more of the methods described herein. The device 600 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 600 may include one or more processors 602, one or more memories 604, and video processing hardware 606. The processor 602 may be configured to implement one or more of the methods described herein. The memory(s) 604 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 606 may be used to implement some of the techniques described herein in hardware circuitry.

[0185] FIG. 6B is another example block diagram of a video processing system in which the disclosed techniques may be implemented. FIG. 6B is a block diagram illustrating an example video processing system 610 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 610. System 610 may include an input 612 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 in a compressed or encoded format. Input 612 may correspond to a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces such as Ethernet, Passive Optical Network (PON), etc., and wireless interfaces such as Wi-Fi or a cellular network.

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

[0187] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), 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.

[0188] 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 that tool or mode in processing blocks of video, but may not necessarily modify the resulting bitstream based on the use of that tool or mode. That is, conversion from blocks of video to a bitstream representation of video will use the video processing tool or mode if that tool or mode is enabled based on the decision or determination. In another example, when a video processing tool or mode is enabled, a decoder processes the bitstream knowing that the bitstream has been modified based on that video processing tool or mode. That is, conversion from a bitstream representation of video to blocks of video will be performed using the video processing tool or mode that was enabled based on the decision or determination.

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

[0190] As used herein, the term "video processing" may refer to video encoding, video decoding, video compression, or video decompression. For example, a video compression algorithm may be applied during the conversion of a pixel representation of a video to a corresponding bitstream representation, or vice versa. The bitstream representation of a current video block may correspond to bits that are either in the same position or spread across different locations within the bitstream, e.g., as defined by syntax. For example, a macroblock may be encoded with respect to a transformed and coded error residual value, as well as using bits in the header and other fields within the bitstream.

[0191] The following first set of annotations may be implemented as preferred annotations in some embodiments.

[0192] The following notes may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 1).

[0193] Appendix 1. 1. A method of video processing (e.g., method 700 depicted in FIG. 7), comprising: making (702) a decision as to whether or how a deblocking filter is applied to natural boundaries of a current sub-block for conversion between a video and a bitstream representation of the video based on size rules, position rules, and / or coding mode rules depending on the size of the current sub-block; performing the conversion in accordance with the determination (704); and The method, wherein the size rule specifies that the deblocking filter is applied to 4x4 sub-blocks.

[0194] Appendix 2. and making a decision regarding how the deblocking filter is applied includes determining a filter length. The method described in Appendix 1.

[0195] Appendix 3. the size rule further specifies that the deblocking filter is not applied to 8x8 sub-blocks, or the size rule further specifies that a determination regarding how the deblocking filter is applied is not performed for 8x8 sub-blocks. The method described in Appendix 1.

[0196] Appendix 4. the coding mode rule specifies enabling the deblocking filter at the natural boundary that aligns with a motion compensated or motion derived edge of the current sub-block. 4. The method according to any one of claims 1 to 3.

[0197] The following notes may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 4).

[0198] Appendix 5. the position rule specifies that a filter length be used for the current sub-block that is the same as that used for other sub-blocks in a video region; 5. The method according to any one of appendices 1 to 4.

[0199] Appendix 6. the video region is a current block that contains the current sub-block; The method described in Appendix 5.

[0200] The following notes may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 4).

[0201] Appendix 7. 1. A method of video processing, comprising: determining to use a deblocking filter on a video domain of the video for conversion between the video and a bitstream representation of the video; performing said conversion in accordance with said determination; and the deblocking filter is selectively applied to samples of the video region according to rules that depend on the position of a virtual boundary associated with the video region. method.

[0202] Appendix 8. the video region corresponds to a coding tree unit; the virtual boundary is N samples above a horizontal coding tree unit boundary; The rule specifies that the deblocking filter is disabled at the virtual boundary. The method described in Appendix 7.

[0203] Appendix 9. the video region is a transformation unit; the rule specifies disabling the deblocking filter at horizontal edges of the video region that coincide with the virtual boundary; The method described in Appendix 7.

[0204] Appendix 10. the video region is a prediction unit; the rule specifies disabling the deblocking filter at horizontal edges of the video region that coincide with the virtual boundary; The method described in Appendix 7.

[0205] Appendix 11. the rule specifies disabling the deblocking filter at vertical edges of the video region that coincide with the virtual boundary; 11. The method of any one of appendixes 7 or 9-10.

[0206] The following notes may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 14).

[0207] Appendix 12. 1. A method of video processing, comprising: determining to use a deblocking filter on a video domain of the video for conversion between the video and a bitstream representation of the video; performing said transformation in accordance with said determination, such that calculation of said deblocking filter is performed according to rules that depend on the position of a virtual boundary relative to said video region; A method having the following.

[0208] Appendix 13. The rule specifies that sample p is changed to sample p′ by using the deblocking filter; P'=p+d', d'=Clip3(t1,t2,d), d is derived during said transformation, [t1,t2] is the clipping range, where t1 and t2 are integers, 12. The method described in Appendix 12.

[0209] Appendix 14. t1 or t2 depends on whether the deblocking filter is applied to the virtual boundary. The method described in Appendix 13.

[0210] Appendix 15. t1=-2 N and t2=2 N -1, N is an integer, 15. A method according to any one of appendices 13 to 14.

[0211] The following notes may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 15).

[0212] Appendix 16. 1. A method of video processing, comprising: 1. A method comprising: performing a conversion between a video having a plurality of video blocks, at least some of which include a plurality of sub-blocks, and a coded representation of the video based on an exclusion rule that specifies that a sub-block transform mode and a sub-block coding mode are used mutually exclusively during the conversion.

[0213] Appendix 17. the sub-block coding mode corresponds to an affine coding mode; The method described in Appendix 16.

[0214] Appendix 18. The sub-block coding mode includes a Subblock Temporal Motion Vector Predictor (SbTMVP) mode. 18. The method according to claim 16 or 17.

[0215] The following notes may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 16).

[0216] Appendix 19. the coded representation excludes syntax elements of coding modes excluded by the exclusion rules; 19. The method of any one of appendices 16 to 18.

[0217] The following notes may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 20).

[0218] Appendix 20. 1. A method of video processing, comprising: - making a determination based on a coding method or chroma format associated with chroma components of a video as to whether syntax elements are signaled in the coded representation for conversion between the video and the coded representation of the video; performing the conversion based on the determination; A method having the following.

[0219] Appendix 21. the chroma format has a chroma format sampling structure; 21. The method described in Appendix 20.

[0220] Appendix 22. The syntax element is a Cb / Cr flag that is conditionally signaled in a picture parameter set according to a chroma format sampling structure. 22. The method of any one of appendices 20 to 21.

[0221] Appendix 23. The syntax element is called X and is signaled only if the chroma format is a monochrome format. 21. The method described in Appendix 20.

[0222] Appendix 24. The syntax element is called X and is signaled only if the chroma format is 4:4:4 and the separate color flag is set to 1. 21. The method described in Appendix 20.

[0223] Appendix 25. X is pps_cb_qp_offset or pps_cr_qp_offset or pps_joint_cbcr_qp_offset or cu_chroma_qp_offset_enabled_flag or pps_slice_chroma_qp_offsets_preesent_flag, 25. The method according to claim 23 or 24.

[0224] The following notes may be implemented in conjunction with additional techniques described in the items listed in the previous section (e.g., item 21).

[0225] Appendix 26. 1. A method of video processing, comprising: parsing a first syntax element in a coded representation of a video comprising a sequence of a plurality of pictures; generating the video based on the parsing; and the first syntax element is included in the coded representation at a picture parameter set level; the parsing is performed when there is no implicit rule that excludes the use of the first syntax element in response to the presence of a second syntax element at the sequence parameter set level. method.

[0226] Appendix 27. 1. A method of video processing, comprising: including, at a picture parameter set level, a first syntax element in a coded representation of a video comprising a sequence of a plurality of pictures; generating the coded representation based on the including; and the including step is performed when there is no implicit rule that excludes the inclusion of the first syntax element in response to the presence of a second syntax element at the sequence parameter set level. method.

[0227] Appendix 28. the first syntax element is log2_transform_skip_max_size_minus2, The second syntax element is sps_transform_skip_enabled_flag. 28. The method of any one of appendices 26 to 27.

[0228] Appendix 29. The conversion comprises encoding the video into a coded representation; 29. The method of any one of appendices 1 to 28.

[0229] Appendix 30. The transforming comprises decoding the coded representation to generate pixel values ​​of the video. 29. The method of any one of appendices 1 to 28.

[0230] Appendix 31. 31. A video decoding device having a processor configured to implement the method described in one or more of Supplementary Notes 1 to 30.

[0231] Appendix 32. 31. A video encoding device having a processor configured to implement the method described in one or more of Supplementary Notes 1 to 30.

[0232] Appendix 33. A computer program product storing computer code, comprising: The code, when executed by a processor, causes the processor to implement a method according to any one of claims 1 to 30. Computer program products.

[0233] Appendix 34. Any method, apparatus, or system described herein.

[0234] The following appendices describe some embodiments and techniques: The second set of appendices describes particular features and aspects of the techniques disclosed in the previous section (e.g., items 1-7).

[0235] Appendix 1. 1. A method of video processing (e.g., method 810 depicted in FIG. 8A), comprising: determining (812) for a sub-block of a current video block of the video, a sub-block boundary to which a deblocking filter should be applied according to a rule; performing (814) a conversion between the video and a coded representation of the video using the deblocking filter; and The rule specifies that a deblocking filter length is determined without checking the relationship between i) a sum of a position of a sub-block of the current video block and a predefined value, and ii) a width or height of the current video block. method.

[0236] Appendix 2. The rule provides that the deblocking filter length in the vertical direction is determined without checking whether the value of x+dx is greater than or equal to the width of the current video block. The method described in Appendix 1.

[0237] Appendix 3. x is the horizontal position of the sub-block in the current video block; The method described in Appendix 2.

[0238] Appendix 4. dx is set equal to 4, The method described in Appendix 3.

[0239] Appendix 5. The rule provides that the deblocking filter length in the horizontal direction is determined without checking whether the value of y+dx is greater than or equal to the height of the current video block. The method described in Appendix 1.

[0240] Appendix 6. y is the vertical position of the sub-block within the current video block; The method described in Appendix 5.

[0241] Appendix 7. dy is set equal to 4, The method described in Appendix 6.

[0242] Appendix 8. 1. A method of video processing (e.g., method 820 depicted in FIG. 8B), comprising: making a decision (822) based on rules for a transformation between a current video block of a video and a coded representation of the video regarding whether a deblocking filter is to be applied to boundaries between sub-blocks of the current video block and / or deblocking parameters to use if the deblocking filter is applied; performing the conversion based on the determination (824); and the rule is based on whether the boundary is located on an N×M sample grid of sub-blocks and / or whether the boundary is a natural boundary of the current video block; The method wherein N and M are integers.

[0243] Appendix 9. The deblocking parameters include a deblocking filter length and / or a deblocking filter strength. The method described in Appendix 8.

[0244] Appendix 10. the deblocking filter corresponds to a luma deblocking filter that performs a deblocking filtering operation on video information that includes luma information of the video; the determining step determines to apply the luma deblocking filter based on the rule that specifies applying the luma deblocking filter to a 4×4 sample grid. 10. The method according to claim 8 or 9.

[0245] Appendix 11. the rules further provide that the luma deblocking filter is not applied to the boundary that is the natural boundary if the boundary is located on an 8x8 sample grid. 11. The method described in Appendix 10.

[0246] Appendix 12. wherein the determining step includes determining a filter length. The method described in Appendix 8.

[0247] Appendix 13. the filter length determination is applied to a 4x4 sample grid and not to an 8x8 sample grid when the deblocking filter corresponds to a luma deblocking filter that performs a deblocking filtering operation on video information including luma information of the video. 12. The method described in Appendix 12.

[0248] Appendix 14. The N×M sample grid determines the coding mode of the sub-block. The method described in Appendix 8.

[0249] Appendix 15. the N×M sample grid is aligned with a motion-compensated or motion-derived edge of the sub-block; The method described in Appendix 14.

[0250] Appendix 16. the deblocking filter corresponds to a chroma deblocking filter that performs a deblocking filtering process on video information including chroma information of the video; The method described in Appendix 8.

[0251] Appendix 17. the rule further specifies that the chroma deblocking filter is applied to the N×M sample grid, where each of N and M is 4 or 8. The method described in Appendix 16.

[0252] Appendix 18. the determining step includes determining whether the current chroma deblocking edge is a boundary of the sub-block, and such determination is performed on an N×N sample grid, where N is 4 or 8; The method described in Appendix 16.

[0253] Appendix 19. the filter length determination is applied to the N×M sample grid when the deblocking filter corresponds to a chroma deblocking filter that performs a deblocking filtering operation on video information including chroma information of the video, and N and M are each 4 or 8. 12. The method described in Appendix 12.

[0254] Appendix 20. The filter length determined for the chroma deblocking filter is less than or equal to L. 12. The method described in Appendix 12.

[0255] Appendix 21. The strength of the chroma deblocking filter depends on at least one of: i) the number of motion vectors; ii) the reference picture; or iii) the absolute block vector (BV) or motion vector (MV) difference between two adjacent pixels located on either side of the boundary. The method described in Appendix 16.

[0256] Appendix 22. the determining step is performed further depending on whether the sub-block is coded using a sub-block-based method. The method described in Appendix 8.

[0257] Appendix 23. The current sub-block is coded in an affine coding mode, a Subblock Temporal Motion Vector Predictor (SbTMVP) mode, a Decoder-side Motion Vector Refinement (DMVR) mode, or a chroma Inter Block Copy (IBC) mode. 23. The method described in Appendix 22.

[0258] Appendix 24. the determining step being dependent on a color subsampling format of the video. The method described in Appendix 8.

[0259] Appendix 25. N and M depend on the color format of the video. 25. The method of any one of appendices 8 to 24.

[0260] Appendix 26. 1. A method of video processing (e.g., method 830 depicted in FIG. 8C), comprising: making a determination (832) to apply a deblocking filter to an N×N sample grid of a current video block coded in a geometry prediction mode, where the current video block is divided into a plurality of subpartitions for prediction; performing (834) a conversion between the video including the current video block and a coded representation of the video based on the determination; and N is equal to 4 or 8, method.

[0261] Appendix 27. the interior edge derivation for the current video block is performed based on rules that apply to a sub-block boundary derivation process for a video block coded using a Subblock Temporal Motion Vector Predictor (SbTMVP) mode and / or an Affine mode. 26. The method described in Appendix 26.

[0262] Appendix 28. the boundaries, filter length, and / or filter strength of the deblocking filter are determined based on a 4x4 sample grid or an 8x8 sample grid; 26. The method described in Appendix 26.

[0263] Appendix 29. 1. A method of video processing (e.g., method 840 depicted in FIG. 8D), comprising: determining (842) for a sub-block of a current video block of the video, according to the rule, a sub-block boundary to which the deblocking filter should be applied; performing (844) a conversion between the video and a coded representation of the video using the deblocking filter; A method having the following.

[0264] Appendix 30. The rule specifies that the deblocking filter length for the leftmost vertical boundary or the topmost horizontal boundary is the same as that used for other sub-blocks. 29. The method described in Appendix 29.

[0265] Appendix 31. the rules further provide that the deblocking filter length is determined based on whether the leftmost vertical boundary or the topmost horizontal boundary coincides with a transformed block edge. 31. The method described in Appendix 30.

[0266] Appendix 32. For the leftmost vertical boundary or the topmost horizontal boundary, the deblocking filter length (maxFilterLengthPs) is set to Min(5,maxFilterLengthPs), regardless of 1) whether the block to the left or above the leftmost vertical boundary or the topmost horizontal boundary is SbTMVP coded or affine coded, and / or 2) the number of sub-blocks in the current video block. 31. The method described in Appendix 30.

[0267] Appendix 33. The rule specifies that the deblocking filter length is determined based on the sub-block edge position of the corresponding sub-block. 29. The method described in Appendix 29.

[0268] Appendix 34. The sub-block edge positions have corresponding sub-block edge indices (xEdge) ranging from [0, M], where M is an integer greater than or equal to 0. 34. The method described in Appendix 33.

[0269] Appendix 35. For xEdge in the range [a, b], the deblocking filter length is set to a fixed integer value (L), where a and b are integers greater than or equal to 0. The method described in Appendix 34.

[0270] Appendix 36. a=0 or 1, or b=M or M-1, or a=b=0, 1, M or M-1; The method described in Appendix 35.

[0271] Appendix 37. the rule provides that a deblocking filter length is determined based on a relationship between a size of the current video block and a value of x+delta; x represents a horizontal or vertical sub-block position within the current video block, and delta is an integer. 29. The method described in Appendix 29.

[0272] Appendix 38. the deblocking filter length is determined by checking whether the value of x+delta is greater than or equal to the width or height of the current video block. The method described in Appendix 37.

[0273] Appendix 39. the rule provides that a deblocking filter length for a vertical boundary at column x or a horizontal boundary at row y in the current video block is determined based on whether the vertical boundary at column x+dx or the horizontal boundary at y+dy is a transform block boundary; dx and dy are integers, 29. The method described in Appendix 29.

[0274] Appendix 40. the current video block is coded using a Subblock Temporal Motion Vector Predictor (SbTMVP) mode and / or an affine mode; 39. The method described in Appendix 39.

[0275] Appendix 41. the deblocking filter length is determined without checking whether a first condition is satisfied that x+dx is greater than or equal to a width of the current video block, and / or whether a second condition is satisfied that y+dy is greater than or equal to a height of the current video block. 39. The method described in Appendix 39.

[0276] Appendix 42. the deblocking filter length is determined further based on whether a first condition is satisfied that x+dx is greater than or equal to a width of the current video block, and / or whether a second condition is satisfied that y+dy is greater than or equal to a height of the current video block. 39. The method described in Appendix 39.

[0277] Appendix 43. performing the transform includes generating the coded representation from the current video block. 43. The method of any one of appendices 1 to 42.

[0278] Appendix 44. performing the transform includes generating the current video block from the coded representation. 43. The method of any one of appendices 1 to 42.

[0279] Appendix 45. 45. A video processing device having a processor configured to implement the method described in any one or more of claims 1 to 44.

[0280] Appendix 46. A computer-readable medium storing program code that, when executed, causes a processor to implement the method set forth in any one or more of Clauses 1 to 44.

[0281] The third set of appendices describes particular features and aspects of the techniques disclosed in the previous section (eg, items 8-20).

[0282] Appendix 1. 1. A method of video processing (e.g., method 910 depicted in FIG. 9A), comprising: determining (912) a boundary strength to be applied to sub-block boundaries of a current video block using a deblocking filter based on rules for transforming between a current video block of a video and a coded representation of the video; performing the conversion based on the determination (914); and The method, wherein the rule specifies that the boundary strength is set equal to 2 regardless of whether the sub-block boundary is a transform block boundary.

[0283] Appendix 2. the rule specifies that for the sub-block boundaries that are not the transform block boundaries, the boundary strength is set equal to 2; The method described in Appendix 1.

[0284] Appendix 3. The rule specifies that at least one of two adjacent samples along the boundary is coded using a Combined Inter-Intra Prediction (CIIP) mode. 3. The method according to claim 1 or 2.

[0285] Appendix 4. The CIIP mode is used to derive prediction samples based on a weighted sum of inter prediction samples and intra prediction samples. The method described in Appendix 3.

[0286] Appendix 5. 1. A method of video processing (e.g., method 920 depicted in FIG. 9B), comprising: performing (922) a transformation between a current video block of a video and a coded representation of the video according to rules; The conversion is partitioning the current video block into transform blocks (TBs) and applying TB-level transformations to the TBs during encoding; or applying a TB-level inverse transform to coded samples in the coded representation of the video during decoding. Using the Sub-Block Transform (SBT) tool with The rule specifies that the adaptive filter is enabled across at least three TB boundaries in the horizontal and / or vertical directions. method.

[0287] Appendix 6. the at least three TB boundaries include two TB boundaries between the transform blocks and a coding block boundary of the current video block. The method described in Appendix 5.

[0288] Appendix 7. the transform block is smaller in size than the current video block; The method described in Appendix 6.

[0289] Appendix 8. whether the coding block boundary is subjected to a filtering process depends on whether the coding block boundary is a sub-block boundary between sub-blocks of the current video block. The method described in Appendix 6.

[0290] Appendix 9. 1. A method of video processing (e.g., method 930 depicted in FIG. 9C), comprising: making a first determination (932) that, for a transform between a current video block of video and a coded representation of the video, two adjacent samples on either side of an edge of the current video block belong to two transform blocks that do not contain non-zero transform coefficient levels; making a second decision (934) based on the first decision to set the deblocking filter strength of the current block edge to 0; performing the transformation using the first decision and the second decision (936); A method having the following.

[0291] Appendix 10. one of the two neighboring samples is coded as a geometry prediction mode in which the current video block is divided into subpartitions; The method described in Appendix 9.

[0292] Appendix 11. the motion vector difference between the two adjacent samples is higher than a threshold T, where T is an integer; The method described in Appendix 9.

[0293] Appendix 12. the second decision on the deblocking filter strength at the transform block boundary is made independently of a motion vector-related rule. The method described in Appendix 9.

[0294] Appendix 13. 1. A method of video processing, comprising: performing a transformation between a current video block of a video and a coded representation of the video using a Decoder-side Motion Vector Refinement (DMVR) tool; applying a deblocking filter to reconstructed video blocks produced during the transform; and the DMVR tool includes generating the reconstructed video block by motion compensation using refined motion vectors generated by refining coded motion vectors in the coded representation; parameters of the deblocking filter are based on the refined motion vectors; method.

[0295] Appendix 14. the current video block corresponds to a coding unit (CU) processed by a previous DMVR; the deblocking process is performed at sub-block boundaries within the coding unit using the refined motion vectors of sub-blocks of the current video block. The method described in Appendix 13.

[0296] Appendix 15. the current video block corresponds to a coding unit (CU) processed by a previous DMVR; The deblocking process is performed at a CU boundary using the signaled motion vector of the CU. The method described in Appendix 13.

[0297] Appendix 16. the current video block corresponds to a coding unit (CU) processed by a previous DMVR; the deblocking process is performed at a CU boundary using the signaled motion vector of the CU and the refined motion vectors of sub-blocks of the current video block. The method described in Appendix 13.

[0298] Appendix 17. 9. A method of video processing (e.g., method 940 depicted in FIG. 9D), comprising: determining (942) a deblocking filter strength for a deblocking filter process based on rules for a transformation between a current video block of a video and a coded representation of the video; performing the conversion based on the determination (944); and The method, wherein the rule specifies that the deblocking filter strength is independent of prediction modes of neighboring blocks of the current video block.

[0299] Appendix 18. The particular coding mode is an Inter Block Copy (IBC) mode that generates a prediction block using a block vector that points to the video frame containing the current video block, or an inter-coding mode that involves representing or reconstructing the video using temporal correlation. The method described in Appendix 17.

[0300] Appendix 19. The rule specifies that the deblocking filter strength depends on whether one of the neighboring blocks is coded using an intra mode that involves representing or reconstructing the video based on previously processed video blocks. 19. The method according to claim 17 or 18.

[0301] Appendix 20. 1. A method of video processing (e.g., method 950 depicted in FIG. 9E), comprising: determining (952) whether a deblocking filter is to be applied to a boundary of the current video block for conversion between a current video block and a coded representation of the video, and / or deblocking parameters to be used if the deblocking filter is to be applied, based on rules that are dependent on or independent of the type of the boundary; performing the conversion based on the determination (954); A method having the following.

[0302] Appendix 21. The type of the boundary relates to whether the boundary is a transform block boundary or a sub-block boundary. 21. The method described in Appendix 20.

[0303] Appendix 22. The rule specifies that the deblocking filter strength is determined as a different value for a transform block boundary or a sub-block boundary. 22. The method of claim 20 or 21.

[0304] Appendix 23. the transformation block boundary flag is stored in a first array buffer, and the sub-block boundary flag is stored in a second array buffer different from the first array buffer; 23. The method described in Appendix 22.

[0305] Appendix 24. the deblocking filter strength for the transform block boundary is determined based on transform coefficients. 23. The method described in Appendix 22.

[0306] Appendix 25. the deblocking filter strength for the sub-block boundary is determined based on a reference picture and / or a motion vector between two adjacent pixels located on either side of the boundary. 23. The method described in Appendix 22.

[0307] Appendix 26. The rule specifies that X is set equal to 1 or 2 if 1) the boundary is the transform block boundary and not the sub-block boundary, and 2) at least one of two adjacent samples along the boundary is coded using a combined inter-intra prediction (CIIP) mode, and X is 1 or 2. 23. The method described in Appendix 22.

[0308] Appendix 27. the deblocking parameters include at least one of a filter strength, a filter length, or a boundary strength; the rules stipulate that the same parameters be used for different types of the boundaries; 21. The method described in Appendix 20.

[0309] Appendix 28. 1. A method of video processing (e.g., method 960 depicted in FIG. 9F), comprising: determining (962) that a deblocking filter in a direction is not applied across a virtual boundary that is N samples away from a horizontal boundary for a transformation between a video domain of a video and a coded representation of said video; performing the conversion based on the determination (964); and The method wherein N is an integer greater than 0.

[0310] Appendix 29. N is 4 for the video region corresponding to the luma component; N is 2 for the video region corresponding to the chroma component; 29. The method described in Appendix 28.

[0311] Appendix 30. the determining step determines that a horizontal deblocking filter is not to be applied to a boundary of a transform unit, a coding unit, a prediction unit, or a sub-block of the current video block, the boundary coinciding with the virtual boundary. 29. The method of claim 28 or 29.

[0312] Appendix 31. the determining step determines that a vertical deblocking filter is to be applied to a boundary of a transform unit, a coding unit, a prediction unit, or a sub-block of the current video block, the boundary coinciding with the virtual boundary. 29. The method of claim 28 or 29.

[0313] Appendix 32. 1. A method of video processing (e.g., method 970 depicted in FIG. 9G), comprising: determining (972) whether or how to clip values ​​of samples during a deblocking process using a deblocking filter for conversion between a video domain of a video and a coded representation of said video, based on rules that depend on whether a boundary filtered by said deblocking filter coincides with a virtual boundary that is N samples away from a horizontal boundary of said video domain; performing the conversion based on the determination (974); and The method wherein N is an integer greater than 0.

[0314] Appendix 33. The rule specifies that the sample having a value (p) is changed to a different value (p') by using the deblocking filter, where p'=p+d' and d'=Clip3(t1, t2, d), where d is derived during the transformation, [t1, t2] is a clipping range, and t1 and t2 are integers. 32. The method described in Appendix 32.

[0315] Appendix 34. t1 or t2 depends on whether the deblocking filter is applied to the virtual boundary. 34. The method described in Appendix 33.

[0316] Appendix 35. t1=-2 N and t2=2 N -1, N is an integer, 35. The method according to claim 33 or 34.

[0317] Appendix 36. N depends on the color components and / or sample bit depth. The method described in Appendix 35.

[0318] Appendix 37. 9. A method of video processing (e.g., method 980 depicted in FIG. 9H), comprising: determining (982) a coding tool to be used for transforming between a current video block of a video and a coded representation of said video according to rules; performing the conversion in accordance with the coding tool (984); and The method, wherein the rule specifies that a sub-block transform (STB) tool is used only in a sub-block based coding mode.

[0319] Appendix 38. The sub-block-based coding mode includes an affine coding mode or an SbTMVP (Subblock Temporal Motion Vector Predictor) mode. The method described in Appendix 37.

[0320] Appendix 39. The coded representation excludes the syntax elements of the sub-block-based coding mode excluded by the rules. The method described in Appendix 37 or 38.

[0321] Appendix 40. A video processing method (e.g., method 990 shown in FIG. 9I), For a current video block that is divided into sub-partitions according to the use of the Intra Sub-Partitioning (ISP) mode, a step (992) of determining to apply a deblocking filter to the boundary between two sub-partitions of the current video block; A step (994) of performing a conversion between the current video block of the video and the coded representation of the video based on the determination; And a method having the above.

[0322] Appendix 41. The vertical boundary at column x between the two sub-partitions of the current video block is filtered by the deblocking filter when x satisfies x = M×P + offset and / or x < W, where offset, M, and P are positive integers, and W is the width of the current video block. The method described in Appendix 40.

[0323] Appendix 42. The horizontal boundary at line y between the two sub - partitions of the current video block is filtered by the de - blocking filter when y satisfies y = M×P+offset and / or y < H, where offset, M, and P are positive integers, and H is the height of the current video block, The method according to appendix 40.

[0324] Appendix 43. A method of video processing (for example, the method 1010 shown in FIG. 10A), For the current video block coded in a geometry prediction mode in which the current video block is divided into sub - partitions, a step (1012) of determining to apply a de - blocking filter to the boundary between two M×N regions of the current video block; A step (1014) of performing a conversion between the current video block of the video and the coded representation of the video based on the determination; and where M and N are integers.

[0325] Appendix 44. M×N is equal to 4×4 or 8×8, The method according to appendix 43.

[0326] Appendix 45. A method of video processing (for example, the method 1020 shown in FIG. 10B), For the conversion between a video including video blocks and the coded representation of the video, a step (102). A step (1024) of performing the conversion based on the determination; and

[0327] Appendix 46. 1. A method of video processing (e.g., method 1030 depicted in FIG. 10C), comprising: determining (1032) filtering parameters to be used in a filtering process based on rules for transforming between a current video block of a video and a coded representation of the video; performing the conversion based on the determination (1034); and The rule specifies that the filtering parameters depend on i) motion information used in a motion compensation process, ii) motion information stored in a motion storage, or iii) motion information used in a motion vector prediction process. method.

[0328] Appendix 47. the rule provides that for the current video block coded in a geometry prediction mode in which at least one of the two neighboring video blocks is divided into sub-partitions, the filtering process is based on the motion information used in the motion compensation process. 46. ​​The method described in Appendix 46.

[0329] Appendix 48. The rules further provide for using motion vectors used in a motion compensation process during a deblocking filter strength derivation process and / or for deblocking boundary filtering strength setting. The method described in Appendix 47.

[0330] Appendix 49. The rule further specifies that a stored H×H motion vector of the current video block is not used for deblocking boundary filtering strength setting, where H is an integer greater than 0. The method described in Appendix 47.

[0331] Appendix 50. The rules depend on the decoded information and / or the block size. The method described in Appendix 47.

[0332] Appendix 51. 1. A method of video processing, comprising: performing a conversion between the video and a coded representation of the video; The coded representation follows formatting rules: the formatting rules determine whether a chroma syntax element indicating the chroma component should be included in the coded representation based on a chroma format, a coding mode associated with the chroma component, or a chroma information syntax element; method.

[0333] Appendix 52. the chroma syntax element is a Cb / Cr flag conditionally signaled in a picture parameter set according to the sampling structure of the chroma format or the chroma information syntax element; 51. The method described in Appendix 51.

[0334] Appendix 53. The chroma array element is called X and is signaled when ChromaArrayType is equal to true. 51. The method described in Appendix 51.

[0335] Appendix 54. The chroma format element is called X and is only signaled if the chroma format is a monochrome format. 53. The method according to claim 51 or 52.

[0336] Appendix 55. The chroma format element is called X and is signaled only if the chroma format is 4:4:4 and a separate color flag is set to 1. 53. The method according to claim 51 or 52.

[0337] Appendix 56. The chroma syntax element is called X and is signaled only if the chroma information syntax element is set to 1. 53. The method according to claim 51 or 52.

[0338] Appendix 57. X is i) pps_cb_qp_offset or ii) pps_cr_qp_offset or iii) pps_joint_cbcr_qp_offset or iv) cu_chroma_qp_offset_enabled_flag or v) pps_slice_chroma_qp_offsets_present_flag, 57. The method of any one of appendices 52 to 56.

[0339] Appendix 58. performing the transform includes generating the coded representation from the current video block. 58. The method of any one of appendices 1 to 57.

[0340] Appendix 59. performing the transform includes generating the current video block from the coded representation. 58. The method of any one of appendices 1 to 57.

[0341] Appendix 60. 60. A video processing device having a processor configured to implement the method described in any one or more of clauses 1 to 59.

[0342] Appendix 61. A computer-readable medium storing program code that, when executed, causes a processor to implement the method described in any one or more of Clauses 1 to 59. In some embodiments, the computer-readable medium stores a coded representation or bitstream generated in accordance with the techniques described herein.

[0343] The disclosed and other solutions, examples, embodiments, modules, and functional operations described herein can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in one or more combinations thereof. The disclosed and other embodiments can be implemented as one or more computer program products, i.e., as one or more modules of computer program instructions encoded on a computer-readable medium for execution by or controlling 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 affecting a machine-readable propagated signal, or one or more combinations thereof. The term "data processing apparatus" encompasses all apparatuses, devices, and machines for processing data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. In addition to hardware, an apparatus can include code that creates an execution environment for the computer program in question, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof. A propagated signal is an artificially generated signal, for example, a machine-generated electrical, optical, or electromagnetic signal that is generated to encode information for transmission to an appropriate receiver device.

[0344] A computer program (also known as a program, software, software application, script, or code) can be written in any 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), or 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 communications network.

[0345] 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 apparatus may be implemented as, special purpose logic circuitry, such as a field programmable gate array (FPGA) or application specific integrated circuit (ASIC).

[0346] Processors suitable for executing a computer program include, by way of example, both general-purpose and special-purpose microprocessors, as well as one or more processors of any kind of digital computer. Generally, a processor reads instructions and data from read-only memory or 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. Typically, a computer also includes one or more mass storage devices, e.g., magnetic, optical-magnetic, or optical disks, for storing data, or is operatively coupled to receive data from, 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, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal or removable disks; optical-magnetic disks; and all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal or removable disks; optical-magnetic disks; and CD-ROM and DVD-ROM disks. The processor and memory may be enhanced by, or incorporated in, dedicated logic circuitry.

[0347] While this specification contains numerous details, these 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 in 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, while 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 that combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.

[0348] Similarly, although operations are 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.

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

[0350] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application is a divisional application of Japanese Patent Application No. 2022-512298, which is a national phase application of International Patent Application No. PCT / CN2020 / 110784 filed on August 24, 2020, claiming priority to and the benefit of International Patent Application No. PCT / CN2019 / 102217 filed on August 23, 2019. The entire disclosure of the above application is incorporated by reference as part of the disclosure of this application.

Claims

1. 1. A method for processing video data, comprising the steps of: determining, for a sub-block of a current video block of a video coded in a sub-block temporal motion vector prediction mode or an affine prediction mode, a sub-block boundary to which a deblocking filter should be applied according to a rule; performing a conversion between the current video block and the video bitstream based on the determination; having The rule provides that, when determining the sub-block boundary, a second deblocking filter length of a second horizontal sub-block boundary of the sub-block boundary at a second vertical position (y2) and a second horizontal position (x2) in the current video block is determined based on checking one or both of: i) whether the boundary at a vertical position (y2+dy) and the second horizontal position (x2) is a transform block boundary; ii) whether the boundary at a vertical position (y2-dy) and the second horizontal position (x2) is a transform block boundary, where dy is equal to 4; method.

2. the second deblocking filter length is equal to 1 in response to satisfying at least one of: i) a boundary at the vertical location (y2+dy) and the second horizontal location (x2) is a transform block boundary; or ii) a boundary at the vertical location (y2-dy) and the second horizontal location (x2) is a transform block boundary; The second deblocking filter length includes a P-side deblocking filter length or a Q-side deblocking filter length. The method of claim 1.

3. the second deblocking filter length is determined by omitting checking a second relationship between a height of the current video block and y2+dy. The method of claim 1.

4. the second relationship between the height of the current video block and y2+dy comprises whether y2+dy is greater than or equal to the height of the current video block; The method according to claim 3.

5. The rule provides that, when determining the sub-block boundary, a first deblocking filter length of a first vertical sub-block boundary of the sub-block boundary at a first horizontal position (x1) and a first vertical position (y1) in the current video block is determined based on checking one or both of: i) whether the boundary at a horizontal position (x1+dx) and the first vertical position (y1) is a transform block boundary; ii) whether the boundary at a horizontal position (x1-dx) and the first vertical position (y1) is a transform block boundary, where dx is equal to 4; The method of claim 1.

6. the first deblocking filter length is equal to 1 in response to satisfying at least one of: i) the boundary at the horizontal location (x1+dx) and the first vertical location (y1) is a transform block boundary; or ii) the boundary at the horizontal location (x1-dx) and the first vertical location (y1) is a transform block boundary; The first deblocking filter length comprises a P-side deblocking filter length or a Q-side deblocking filter length. The method according to claim 5.

7. the first deblocking filter length is determined by omitting checking a first relationship between a width of the current video block and x1+dx. The method according to claim 5.

8. the first relationship between a width of the current video block and x1+dx comprises whether x1+dx is greater than or equal to a width of the current video block; The method according to claim 7.

9. determining, during the transform, if a block edge of the current video block is a third sub-block boundary of the sub-block boundary and at least one of two adjacent samples along the third sub-block boundary is coded in a composite inter-intra prediction (CIIP) mode, a boundary strength applied to the third sub-block boundary is equal to 2; The method of claim 1.

10. The bitstream follows formatting rules; the formatting rules determine whether to include one or more quantization-related chroma syntax elements in the bitstream based on a chroma format sampling syntax element; The method of claim 1.

11. the one or more quantization-related chrominance tax elements are included in a picture parameter set, i) a first syntax element that indicates an offset to a luma quantization parameter used to derive a Cb quantization parameter; ii) a second syntax element indicating an offset to the luma quantization parameter used to derive the Cr quantization parameter; iii) a third syntax element indicating an offset to the luma quantization parameter used to derive the CbCr joint quantization parameter; iv) a fourth syntax element indicating that a flag indicating an offset to the luma quantization parameter used to derive the chroma component quantization parameter is allowed to be present at the coding unit level or the transform unit level; or v) a fifth syntax element indicating that a flag indicating an offset to a luma quantization parameter used to derive the chroma component quantization parameter is allowed to be present at the slice level. having at least one of: The method of claim 10.

12. the transforming includes encoding the current video block into the bitstream. The method of claim 1.

13. the converting includes decoding the current video block from the bitstream. The method of claim 1.

14. 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, for a sub-block of a current video block of a video coded in a sub-block temporal motion vector prediction mode or an affine prediction mode, a sub-block boundary to which a deblocking filter should be applied according to a rule; performing a conversion between the current video block and the video bitstream based on the determination; Run the command, The rule provides that, when determining the sub-block boundary, a second deblocking filter length of a second horizontal sub-block boundary of the sub-block boundary at a second vertical position (y2) and a second horizontal position (x2) in the current video block is determined based on checking one or both of: i) whether the boundary at a vertical position (y2+dy) and the second horizontal position (x2) is a transform block boundary; ii) whether the boundary at a vertical position (y2-dy) and the second horizontal position (x2) is a transform block boundary, where dy is equal to 4; Device.

15. The processor: determining, for a sub-block of a current video block of a video coded in a sub-block temporal motion vector prediction mode or an affine prediction mode, a sub-block boundary to which a deblocking filter should be applied according to a rule; performing a conversion between the current video block and the video bitstream based on the determination; storing an instruction to execute the The rule provides that, when determining the sub-block boundary, a second deblocking filter length of a second horizontal sub-block boundary of the sub-block boundary at a second vertical position (y2) and a second horizontal position (x2) in the current video block is determined based on checking one or both of: i) whether the boundary at a vertical position (y2+dy) and the second horizontal position (x2) is a transform block boundary; ii) whether the boundary at a vertical position (y2-dy) and the second horizontal position (x2) is a transform block boundary, where dy is equal to 4; A non-transitory computer-readable storage medium.

16. A method for storing a bitstream of video, comprising the steps of: determining, for a sub-block of a current video block of the video coded in a sub-block temporal motion vector prediction mode or an affine prediction mode, a sub-block boundary to which a deblocking filter should be applied according to a rule; generating the bitstream based on the determination and storing the bitstream on a non-transitory computer-readable recording medium; having The rule provides that, when determining the sub-block boundary, a second deblocking filter length of a second horizontal sub-block boundary of the sub-block boundary at a second vertical position (y2) and a second horizontal position (x2) in the current video block is determined based on checking one or both of: i) whether the boundary at a vertical position (y2+dy) and the second horizontal position (x2) is a transform block boundary; ii) whether the boundary at a vertical position (y2-dy) and the second horizontal position (x2) is a transform block boundary, where dy is equal to 4; method.

Citation Information

Patent Citations

  • Determining filter length for deblocking during encoding and / or decoding of video

    WO2019137750A1

  • Encoding device, decoding device, encoding method, and decoding method

    WO2020050279A1

  • Image processing device and image processing method

    WO2020175145A1