Method and apparatus for processing video data, and storage medium

By optimizing the application of reduced quadratic transforms and modifying context modeling based on block characteristics, the method addresses inefficiencies in video coding standards, enhancing compression performance and resource utilization.

JP2024153751AActive Publication Date: 2024-10-29DOUYIN VISION CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2024119547
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-06-07
Filing Date
2024-07-25
Publication Date
2024-10-29
Estimated Expiration
2040-06-08

AI Technical Summary

Technical Problem

Existing video coding standards face inefficiencies in compression performance due to suboptimal use of transformation tools, unnecessary signaling of transformation indices, and complex context modeling, leading to increased computational complexity and resource utilization.

Method used

The proposed method involves applying a reduced quadratic transform (RST) to video blocks based on block dimensions, intra-prediction modes, and color components, optimizing the selection and signaling of transformation tools, and modifying context modeling to reduce computational complexity and improve coding efficiency.

Benefits of technology

This approach enhances video coding efficiency by reducing unnecessary signaling and computational overhead, allowing for more effective use of transformation tools, thereby improving compression performance and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024153751000001_ABST
    Figure 2024153751000001_ABST
Patent Text Reader

Abstract

To provide devices, systems and methods for digital video processing.SOLUTION: A method for video processing includes a step of performing a conversion between a current video block of a video and a coded representation of the video. The step of performing the conversion includes determining, based on a width (W) and / or a height (H) of the current video block, applicability of a secondary transform tool to the current video block. The secondary transform tool includes applying, during encoding, a forward secondary transform to an output of a forward primary transform applied to a residual of a video block prior to quantization, or applying, during decoding, an inverse secondary transform to an output of dequantization of the video block before applying an inverse primary transform.SELECTED DRAWING: Figure 22D
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS Under applicable patent laws and / or regulations relating to the Paris Convention, this application has been timely filed to claim priority to and the benefit of International Patent Application No. PCT / CN2019 / 090446, filed July 7, 2019. For all purposes under law, the entire disclosure of the aforementioned application is incorporated by reference as part of the disclosure of this application.

[0002] Technical Field This patent document relates to video processing techniques, devices and systems.

[0003] background Despite advances in video compression, digital video still accounts for the largest amount of bandwidth in the Internet and other digital communications networks. It is expected that the bandwidth demands for digital video usage will continue to increase as the number of connected user devices capable of receiving and displaying video increases. Summary of the Invention

[0004] The devices, systems, and methods relate to digital video processing. The methods described may be applied to both existing video coding standards (e.g., High Efficiency Video Coding (HEVC)) and future video coding standards or video codecs.

[0005] In one exemplary aspect, the disclosed techniques can be used to provide a video processing method, the method including performing a transformation between a current video block of a video and a coded representation of the video, the performing the transformation including determining applicability of a secondary transform (or secondary transform) tool to the current video block based on a width (W) and / or height (H) of the current video block, the secondary transform tool including applying a forward secondary transform to an output of a forward primary transform (or forward primary transform) applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse primary transform during decoding.

[0006] In another exemplary aspect, the disclosed technology can be used to provide a video processing method, the method including: determining whether a current video block of a coding unit of video satisfies a condition according to a rule; and performing a transformation between the current video block and a coded representation of the video according to the determination, the condition being related to characteristics of one or more color components of the video, a size of the current video block, or coefficients in a portion of a residual block of the current video block, the rule specifying that the condition controls the presence of side information in the coded representation related to a secondary transform tool, the secondary transform tool including applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse primary transform during decoding.

[0007] In yet another representative aspect, the disclosed techniques can be used to provide a video processing method, the method including performing a transformation between a current video block of a video and a coded representation of the video, the performing the transformation including determining a usage of a secondary transform tool and / or signaling information related to the secondary transform tool according to rules independent of a partition tree type applied to the current video block, the secondary transform tool including applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse primary transform during decoding.

[0008] In yet another representative aspect, the disclosed techniques can be used to provide a video processing method, the method including, for a current video block of a coding unit of video, determining applicability of a secondary transform tool to the current video block, the coding unit including multiple transform units, the determination being based on a single transform unit of the coding unit, and performing a transform between the current video block and the coded representation of the video based on the determination, the secondary transform tool including applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse primary transform during decoding.

[0009] In yet another representative aspect, the disclosed techniques can be used to provide a video processing method, the method including: determining applicability of a secondary transform tool and / or presence of side information associated with the secondary transform tool for a current video block of a coding unit of video, the coding unit including a plurality of transform units, the determining being performed at a transform unit level or a prediction unit level, and performing a transform between the current video block of the coded representation of the video based on the determining, the secondary transform tool including applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying the inverse primary transform during decoding.

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

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

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

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

[0014] [Figure 1] 1 shows a block diagram of an exemplary encoder.

[0015] [Diagram 2]67 examples of intra prediction modes are shown.

[0016] [Diagram 3] An example of ALWIP for a 4x4 block is shown below.

[0017] [Figure 4] Here is an example of ALWIP for an 8x8 block.

[0018] [Diagram 5] An example of ALWIP for an 8x4 block is shown below.

[0019] [Figure 6] Here is an example of ALWIP for a 16x16 block.

[0020] [Figure 7] An example of four reference lines adjacent to a predicted block is shown.

[0021] [Figure 8] An example of division into 4x8 and 8x4 blocks is shown.

[0022] [Figure 9] Examples of block division for all blocks except 4x8, 8x4, and 4x4 are shown.

[0023] [Figure 10] Here is an example of a quadratic transformation in JEM.

[0024] [Figure 11] An example of the proposed reduced secondary transform (RST) is given below.

[0025] [Figure 12] Examples of forward and inverse contraction transformations are given below.

[0026] [Figure 13]Here is an example of a forward RST 8x8 process using a 16x48 matrix.

[0027] [Figure 14] Here is an example of a zero-out region for an 8x8 matrix.

[0028] [Figure 15] Examples of sub-block transform modes SBT-V and SBT-H are shown.

[0029] [Figure 16] An example of a diagonal up-right scan order for a 4x4 coding group is shown.

[0030] [Figure 17] An example of a diagonal up-right scan order for an 8x8 block with a coding group of size 4x4 is shown.

[0031] [Figure 18] 1 shows an example of a template used to select a probabilistic model.

[0032] [Figure 19] Here is an example of two scalar quantizers used for dependent quantization.

[0033] [Figure 20] 13 shows examples of state transitions and quantizer selection for the proposed dependent quantization process.

[0034] [Figure 21] Here is an example of an 8x8 block with 4 coding groups.

[0035] [Figure 22A] 1 shows a flowchart of an exemplary video processing method. [Figure 22B] 1 shows a flowchart of an exemplary video processing method. [Figure 22C] 1 shows a flowchart of an exemplary video processing method. [Figure 22D] 1 shows a flowchart of an exemplary video processing method.

[0036] [Figure 23] 1 is a block diagram of an example hardware platform for implementing the visual media decoding or visual media encoding techniques described herein. [Figure 24] 1 is a block diagram of an example hardware platform for implementing the visual media decoding or visual media encoding techniques described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0037] Embodiments of the disclosed technology may 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 do not in any way limit the description or embodiments (and / or implementations) to any particular section.

[0038] 1. Video Coding Introduction Due to the ever-increasing demand for higher resolution video, video coding methods and techniques are ubiquitous in modern technology. Video codecs typically include electronic circuits or software that compress or decompress digital video and are constantly being improved to provide higher coding efficiency. Video codecs convert uncompressed video to compressed form and vice versa. There is a complex relationship between video quality, the amount of data used to represent the video (determined by the bit rate), the complexity of the encoding and decoding algorithms, the sensitivity to data loss and errors, the ease of editing, random access, and end-to-end delay (latency). Compressed formats usually comply with a standard video compression standard, such as the High Efficiency Video Coding (HEVC) standard (also known as H.265 or MPEG-H Part 2), the Versatile Video Coding (VVC) standard that is to be finalized, or other current and / or future video coding standards.

[0039] Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T created H.261 and H.263, while ISO / IEC created MPEG-1 and MPEG-4 Visual, and the two organizations jointly created 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 structure, in which temporal prediction and transform coding are used. In 2015, the Joint Video Exploration Team (JVET) was jointly established by VCEG and MPEG to explore future video coding technologies beyond HEVC. Since then, many new methods have been adopted by JVET and incorporated into a reference software named the Joint Exploration Model (JEM) [3][4]. In April 2018, the Joint Video Experts Team (JVET) was formed between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) to work on the VVC standard, which aims for a 50% bitrate reduction compared to HEVC.

[0040] 2.1 Typical video codec coding flow Figure 1 shows an example of an encoder block diagram for VVC, which includes three in-loop filtering blocks: Deblocking Filter (DF), Sample Adaptive Offset (SAO), and ALF. Unlike DF, which uses a predefined filter, SAO and ALF use the original samples of the current picture to reduce the mean squared error between the original and reconstructed samples by adding an offset and by applying a Finite Impulse Response (FIR) filter (coded side information signals the offset and filter coefficients, respectively). The ALF is located at the final processing stage of each picture and can be seen as a tool that tries to catch and repair artifacts produced in previous stages.

[0041] 2.2 Intra-coding in VVC 2.2.1 Intra-mode coding with 67 intra-prediction modes To capture any edge orientation present in natural video, the number of directional intra modes is expanded from 33 as used in HEVC to 65. The additional directional modes are depicted as dotted arrows in Figure 2, while the planar and DC modes remain the same. These denser directional intra prediction modes apply to all block sizes and to both luma and chroma intra prediction.

[0042] The traditional angular intra prediction direction is defined from 45 degrees to -135 degrees in a clockwise direction as shown in Figure 2. In VTM2, some traditional angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes for non-square blocks. The replaced modes are signaled using the original method and remapped to wide-angle mode indices after analysis. The total number of intra prediction modes remains unchanged, i.e., 67, and the intra mode coding remains unchanged.

[0043] In HEVC, all intra-coded blocks are square and the length of each side is a power of 2. Therefore, no splitting is required to generate an intra predictor using DC mode. In VVV2, blocks may have rectangular shapes, and splitting needs to be used for each block in the general case. To avoid splitting for DC prediction, only the long side is used to calculate the average for non-square blocks.

[0044] In addition to the 67 intra prediction modes, wide-angle intra prediction for non-square blocks (WAIP) and position-dependent intra prediction combined (PDPC) methods are further enabled for certain blocks. PDPC is applied without signaling for the following intra modes: planar, DC, horizontal, vertical, bottom-left angle mode and its 8 neighboring angle modes, and top-right angle mode and its 8 neighboring angle modes.

[0045] 2.2.2 Affine Linear Weighted Intra Prediction (ALWIP or Matrix-Based Intra Prediction) Affine linear weighted intra prediction (ALWIP, also known as matrix based intra prediction, MIP) was proposed in JVET-N0217.

[0046] 2.2.2.1 Generating a reduced prediction signal by matrix-vector multiplication First, the adjacent reference samples are downsampled by averaging to obtain a reduced reference signal bdry red Then, the reduced prediction signal pred is generated by calculating the matrix-vector product and adding an offset. red is calculated:

[0047]

number

[0048] Here, A has 4 columns if W=H=4, and 8 columns in all other cases, and W red H red is a matrix with rows and columns. b is of size W red H red is a vector where

[0049] 2.2.2.2 Overall ALWIP Process Description The overall process of averaging, matrix vector multiplication, and linear interpolation is illustrated for various shapes in Figures 3-6. Note that the remaining shapes are treated similarly to one of the cases shown.

[0050] Given a 1.4x4 block, ALWIP takes two averages along each axis of the boundary. The resulting four input samples go into a matrix-vector multiplication. The matrix is ​​taken from set S0. After adding an offset, this results in 16 final predicted samples. No linear interpolation is required to generate the predicted signal. Thus, a total of (4·16) / (4·4)=4 multiplications are performed per sample.

[0051] Given a 2.8x8 block, ALWIP takes 4 averages along each axis of the boundary. The resulting 8 input samples go into a matrix-vector multiplication. The matrix is ​​taken from set S1. This results in 16 samples in odd positions of the prediction block. Thus, a total of (8·16) / (8·8)=2 multiplications are performed per sample. After adding the offset, these samples are interpolated vertically by using the reduced top boundary. Horizontal interpolation follows by using the original left boundary.

[0052] Given a 3.8x4 block, ALWIP takes the four averages along the horizontal axis of the boundary and the four original boundary values ​​at the left boundary. The resulting eight input samples go into a matrix-vector multiplication. The matrix is ​​taken from set S1. This results in 16 samples at odd horizontal positions and at each vertical position of the predicted block. Thus, a total of (8·16) / (8·4)=4 multiplications are performed per sample. After adding the offset, these samples are horizontally interpolated by using the original left boundary.

[0053] 4. Given a 16x16 block, ALWIP takes 4 averages along each axis of the boundary. The resulting 8 input samples go into a matrix-vector multiplication. The matrix is ​​taken from set S2. This results in 64 samples at odd positions in the prediction block. Thus, a total of (8·64) / (16·16)=2 multiplications are performed per sample. After adding the offset, these samples are interpolated vertically by using the 8 averages of the top boundary. Horizontal interpolation follows by using the original left boundary. In this case, the interpolation process does not add any multiplications. Thus, in total, 2 multiplications per sample are required to compute the ALWIP prediction.

[0054] For larger shapes, the procedure is essentially the same, and it is easy to verify that the number of multiplications per sample is less than four.

[0055] For a W×8 (W>8) block, only horizontal interpolation is required since samples are provided at every vertical position at odd horizontal positions.

[0056] Finally, for W×4 (W>8) blocks, let A_kbe be the matrix resulting from excluding all rows corresponding to odd entries along the horizontal axis of the downsampled block. Thus, the output size is 32, and again, only horizontal interpolation remains to be performed. Transposed cases are treated accordingly. 2.2.2.3 Syntax and semantics 7.3.6.5 Coding unit syntax

[0057]

number

[0058] 2.2.3 Multiple Reference Lines (MRLs) Multiple reference line (MRL) intra prediction uses more reference lines for intra prediction. In Figure 7, an example of four reference lines is depicted, where samples of segments A and F are padded with the nearest samples from segments B and E, respectively, instead of being fetched from reconstructed neighboring samples. HEVC intra picture prediction uses the nearest reference line (i.e., reference line 0). In MRL, two additional lines (reference line 1 and reference line 3) are used.

[0059] The index of the selected reference line (mrl_idx) is signaled and used to generate the intra predictor. For a reference line index greater than 0, we just include additional reference line modes in the MPM list and signal the MPM index without the remaining modes. The reference line index is signaled before the intra prediction modes, and planar and DC modes are excluded from intra prediction modes if a non-zero reference line index is signaled.

[0060] The MRL is disabled for the first line of a block inside the CTU, prohibiting the use of extended reference samples outside the current CTU line, and the PDPC is disabled if additional lines are used.

[0061]

number

[0062]

number

[0063]

number

[0064]

number

[0065]

number

[0066] To preserve the orthogonality of the transform matrices, they are quantized more precisely than those of HEVC. After horizontal and vertical transforms, all coefficients should have 10 bits to keep intermediate values ​​of the transformed coefficients within the 16-bit range.

[0067] To control the MTS scheme, separate enablement flags are specified at the SPS level for intra and inter respectively. When MTS is enabled at the SPS, a CU level flag is signaled to specify whether MTS is applied or not, where MTS is applied only for luma. The MTS CU level flag is signaled if the following conditions are met:

[0068] Both width and height must be 32 or less.

[0069] ○ CBF flag is equal to 1

[0070]

number

[0071] To reduce the complexity of large sizes of DST-7 and DCT-8, for DST-7 and DCT-8 blocks with size (width or height, or both width and height) equal to 32, the high frequency transform coefficients are zeroed. Only the coefficients in the 16x16 low frequency region are retained.

[0072] In addition to cases where different transforms are applied, VVC also supports a mode called Transform Skip (TS), which is similar to the concept of TS in HEVC. TS is treated as a special case of MTS.

[0073] 2.4.2 Reduced Quadratic Transformation (RST) proposed in JVET-N0193 2.4.2.1 Non-separable second-order transformation (NSST) in JEM In JEM, a quadratic transform is applied between the forward linear transform and quantization (encoder side) and between the inverse quantization and the inverted linear transform (decoder side). As shown in Figure 10, a 4x4 (or 8x8) quadratic transform is performed depending on the block size. For example, a 4x4 quadratic transform is applied to small blocks (i.e., min (width, height) < 8) and for every 8x8 block, an 8x8 quadratic transform is applied to larger blocks (i.e., min (width, height) > 4).

[0074] The application of a non-separable transform can be described using the following input as an example:

[0075]

number

[0076]

number

[0077]

Number

[0078]

Number

[0079] 2.4.2.2 Reduced Secondary Transform (RST) in JVET-N0193 RST (Low Frequency Non-Separable Transform, LFNST) was introduced in JVET-K0099, and the mapping of four transform sets (instead of 35 transform sets) was introduced in JVET-L0133. In this JVET-N0193, 16×64 matrices (which are further reduced to 16×48 matrices) and 16×16 matrices are used. For notation convenience, the 16×64 (reduced to 16×48) transform is denoted as RST8×8, and the 16×16 transform is denoted as RST4×4. Figure 11 shows an example of RST.

[0080] 2.4.2.2.1 RST Calculation The main idea of the reduced transform (RT) is to map an N-dimensional vector to an R-dimensional vector in another space, where R / N (R < N) is the reduction factor.

[0081]

Number

[0082] Here, the R rows of the transform matrix are the R bases in the N-dimensional space. The inverse transform matrix for RT is the transpose of its forward transform matrix. The forward and inverse RTs are depicted in Figure 12.

[0083] In this contribution, RST8x8 with a reduction factor of 4 (1 / 4 size) is applied. Thus, instead of the traditional 8x8 non-separable transform matrix size of 64x64, a 16x64 direct matrix is ​​used. In other words, a 64x16 invert RST matrix is ​​used at the decoder side to generate the core (primary) transform coefficients in the top-left region of 8x8. The forward RST8x8 uses a 16x64 (or 8x64 for 8x8 blocks) matrix, which results in non-zero coefficients only in the top-left 4x4 region in a given 8x8 region. In other words, when RST is applied, the 8x8 region except the top-left 4x4 region will have only zero coefficients. For RST4x4, 16x16 (8x16 for 4x4 blocks), direct matrix multiplication is applied

[0084] Inverted RST is conditionally applied if the following two conditions are met:

[0085] ○ Block size must be greater than or equal to a given threshold (W>=4 && H>=4)

[0086] ○ The conversion skip mode flag is equal to zero.

[0087] If both the width (W) and height (H) of a transform coefficient block are greater than 4, then RST8x8 is applied to the top-left 8x8 region of the transform coefficient block. Otherwise, RST4x4 is applied to the top-left min(8,W) x min(8,H) region of the transform coefficient block.

[0088] If the RST index is equal to 0, the RST is not applied. Otherwise, the RST is applied and its kernel is selected using the RST index. The method for selecting the RST and the coding of the RST index are described below.

[0089] Furthermore, RST applies to intra CUs, and to both luma and chroma, in both intra and inter slices. If dual tree is enabled, RST indexes for luma and chroma are signaled separately. In the inter slice case (dual tree is disabled), a single RST index is signaled and used for both luma and chroma.

[0090] 2.4.2.2.2 RST Constraints When ISP mode is selected, RST is disabled and the RST index is not signaled because even if RST is applied to all appropriate partition blocks, the performance improvement is only marginal. Furthermore, disabling RST for ISP predicted residuals may reduce the coding complexity.

[0091] 2.4.2.2.3 RST Selection The RST matrix is ​​selected from a set of four transformations, each of which consists of two transformations. Which transformation set is applied is determined by the intra prediction mode, as follows:

[0092] (1) If one of the three CCLM modes is specified, transformation set 0 is selected.

[0093]

number

[0094] The index to access the above table, denoted IntraPredMode, has the range [-14,83], which is the transform mode index used for wide-angle intra prediction.

[0095] 2.4.2.2.4 RST Matrix with Reduced Dimensions As a further simplification, a 16x48 matrix is ​​applied instead of a 16x64 matrix using the same set of transformations, each of which takes 48 pieces of data from three 4x4 blocks in the top left 8x8 block (excluding the bottom right 4x4 block) (as shown in Figure 13).

[0096] 2.4.2.2.5 RST signaling The forward RST8x8 uses a 16x48 matrix, which results in a non-zero coefficient only in the top-left 4x4 region among the first three 4x4 regions. In other words, when RST8x8 is applied, only the top-left 4x4 (due to RST8x8) and bottom-right 4x4 (due to linear transform) regions can have non-zero coefficients. As a result, if any non-zero elements are found in the top-right 4x4 and bottom-left 4x4 block regions (shown in Figure 14 and called "zero-out" regions), the RST index is not coded because it indicates that the RST was not applied. In such cases, the RST index is presumed to be zero.

[0097] 2.4.2.2.6 Zero-out areas in one CG Usually, before applying the inverted RST to a 4x4 sub-block, any coefficients in the 4x4 sub-block may be non-zero. However, in some cases, some coefficients of a 4x4 sub-block are restricted to be zero before the inverted RST is applied to the sub-block.

[0098] Let nonZeroSize be a variable that requires that, prior to the inversion RST, any coefficient that, when rearranged into a 1-D array, has an index not less than nonZeroSize must be zero.

[0099] If nonZeroSize is equal to 16, there are no zero-out constraints on the coefficients of the top-left 4x4 sub-block.

[0100]

number

[0101] 2.4.3 Sub-block transformation For inter predicted CUs with cu_cbf equal to 1, cu_sbt_flag may be signaled to indicate whether the entire residual block or a sub-part of the residual block is decoded. In the former case, the inter MTS information is further parsed to determine the transform type of the CU. In the latter case, part of the residual block is coded with an estimated adaptive transform and other parts of the residual block are zeroed out. SBT does not apply for mixed inter-intra modes.

[0102]

number

[0103] 2.4.4 Quantized Residual Domain Block Differential Pulse Code Modulation Coding (QR-BDPCM) JVET-N0413 proposes quantized residual domain BDPCM (hereafter referred to as RBDPCM). Similar to intra prediction, intra prediction is performed for the whole block by sample-copying in the prediction direction (horizontal or vertical prediction). The residual is quantized and the delta between the quantized residual and its predictor (horizontal or vertical) quantized value is coded.

[0104] For a block of size M (rows) × N (columns), r i,jLet 0≦i≦M-1, 0≦j≦N-1 be the prediction residual after performing intra prediction horizontally (by copying the left adjacent pixel value across the prediction block line by line) or vertically (by copying the upper adjacent line for each line of the predicted block) using unfiltered samples from the upper or left block boundary samples. i,j ), 0≦i≦M-1,0≦j≦N-1 are the residuals r i,j where the residual is the difference between the values ​​of the original and predicted blocks. Then, block DPCM is applied to the quantized residual samples, resulting in an element r ~ i,j A modified M×N array R with ~ If vertical BDPCM is signaled, the result is:

[0105]

number

[0106] For horizontal prediction, a similar rule applies and the residual quantized samples are obtained by

[0107]

number

[0108]

number

[0109]

number

[0110]

number

[0111] In the horizontal case:

[0112]

number

[0113] Inverted quantized residual Q -1 (Q(r i,j ) is added to the intra block prediction to produce the reconstructed sample value.

[0114] If QR-BDPCM is selected, there is no transformation applied.

[0115] 2.5 Entropy coding of coefficients 2.5.1 Coefficient Coding of Transform Application Blocks In HEVC, the transform coefficients of a coding block are coded using non-overlapping coefficient groups (or sub-blocks), where each CG contains a 4x4 block of coefficients for the coding block. The CGs within a coding block and the transform coefficients within a CG are coded according to a predefined scan order.

[0116] The CG and intra-CG transform coefficients within a coding block are coded according to a predefined scan order. Both the CG and intra-CG coefficients follow a diagonal up-right scan order. Examples of 4x4 block and 8x8 scan orders are depicted in Figure 16 and Figure 17, respectively.

[0117] Note that the coding order is the reversed scan order (i.e., decoding from CG3 to CG0 in FIG. 17) and when decoding a block, the coordinates of the last non-zero coefficient are decoded first.

[0118] The coding of transform coefficient levels of CGs with at least one non-zero transform coefficient may be separated into multiple scan passes. In the first pass, the first bin (denoted by bin0, also referred to as significant_coeff_flag, which indicates that the coefficient magnitude is greater than 0) is coded. Then, two scan passes for the context coding the second / third bins (denoted by bin1 and bin2, respectively, also referred to as coeff_abs_greater1_flag and coeff_abs_greater2_flag) may be applied. Finally, two more scan passes for coding the coefficient level sign information and the remaining value (also referred to as coeff_abs_level_remaining) may be invoked, if necessary. Note that only the bins of the first three scan passes are coded in regular mode, and they are referred to as regular bins in the following description.

[0119] In VVC 3, for each CG, the regular coded bins and the bypass coded bins are separated in the coding order; first all the regular coded bins for a subblock are transmitted, followed by the bypass coded bins. The transform coefficient levels of the subblock are coded in five passes over the scan positions as follows:

[0120] ○ Pass 1: The coding of the significance (sig_flag), the greater than 1 flag (gt1_flag), the parity (par_level_flag), and the greater than 2 flag (gt2_flag) are processed in coding order. If sig_flag is equal to 1, then gt1_flag is coded first (it specifies whether the absolute level is greater than 1). If gt1_flag is equal to 1, then par_flag is coded additionally (it specifies the parity of the absolute level minus 2).

[0121] Pass 2: The coding of the remaining absolute levels (remainders) is processed for all scan positions having gt2_flag equal to 1 or gt1_flag equal to 1. Non-binary syntax elements are binarized with a Golomb-Rice code and the resulting bins are coded in the bypass mode of the arithmetic coding engine.

[0122] Pass 3: The absolute levels (absLevel) of coefficients whose sig_flag was not coded in the first pass (due to reaching the limit of a regular coded bin) are fully coded in the bypass mode of the arithmetic coding engine using Golomb-Rice coding.

[0123] Pass 4: Code the sign (sign_flag) for all scan positions that have sig_coeff_flag equal to 1.

[0124] For 4x4 sub-blocks, it is guaranteed that no more than 32 regularly coded bins (sig_flag, par_flag, gt1_flag, and gt2_flag) are coded or decoded. For 2x2 chroma sub-blocks, the number of regularly coded bins is limited to 8.

[0125] The Rice parameter (ricePar) for coding the non-binary syntax element remainder (in pass 3) is derived similarly to HEVC. At the beginning of each subblock, ricePar is set equal to 0. After coding the syntax element remainder, the Rice parameter is modified according to a predefined formula. For coding the non-binary syntax element absLevel (in pass 4), the sum of absolute values ​​sumAbs in the local template is determined. The variables ricePar and posZero are determined based on the dependent quantization and sumAb by table lookup. The intermediate variable codeValue is derived as follows:

[0126] ○ if absLevel[k] is equal to 0, then codeValue is set equal to posZero;

[0127] Otherwise, if absLevel[k] is less than or equal to posZero, then codeValue is set equal to absLevel[k]-1;

[0128] Otherwise (absLevel[k] is greater than posZero), codeValue is set equal to absLevel[k].

[0129] The value of codeValue is coded using the Golomb-Rice code with the rice parameter ricePar.

[0130] 2.5.1.1 Context Modeling for Coefficient Coding The choice of the probability model for syntax elements related to the magnitude of the transform coefficient levels depends on the values ​​of the magnitude levels in a local neighborhood or on the values ​​of the partially reconstructed magnitude levels. The template used is shown in FIG.

[0131] The probability model chosen depends on the sum of the absolute levels (or partially reconstructed absolute levels) in the local neighborhood and the number of absolute levels greater than 0 in the local neighborhood (given by the number of sig_coeff_flags equal to 1). Context modeling and binarization depend on the following measures for the local neighborhood:

[0132] numSig: number of non-zero levels in the local neighborhood;

[0133] sumAbs1: the sum of the partially reconstructed absolute levels (absLevel1) after the first pass in the local neighborhood;

[0134] ○ sumAbs: the sum of the reconstructed absolute levels in the local neighborhood;

[0135] ○ Diagonal position (d): The sum of the horizontal and vertical coordinates of the current scan position within the transformation block.

[0136] Based on the values ​​of numSig, sumAbs1, and d, a probability model is selected for coding sig_flag, par_flag, gt1_flag, and gt2_flag. The Rice parameters for binarizing abs_remainder are selected based on the values ​​of sumAbs and numSig.

[0137] 2.5.1.2 Dependent Quantization (DQ) Furthermore, the same HEVC scalar quantization is used with a new concept called dependent scale quantization. Dependent scalar quantization refers to an approach in which the set of allowable reconstructed values ​​of a transform coefficient depends on the value of the transform coefficient level preceding the current transform coefficient level in the reconstruction order. The main effect of this approach is that allowable reconstructed vectors are packed more densely in an N-dimensional vector space (N represents the number of transform coefficients in a transform block) compared to traditional independent scalar quantization as used in HEVC. This means that for a given average number of allowable reconstructed vectors per N-dimensional unit volume, the average distortion between an input vector and the closest reconstructed vector is reduced. The dependent scalar quantization approach is realized by: (a) defining two scalar quantizers with different reconstruction levels, and (b) defining a process for switching between the two scalar quantizers.

[0138] Two scalar quantizers, denoted Q0 and Q1, are shown in Figure 19. The location of the available reconstruction levels is uniquely specified by the quantization step size Δ. The scalar quantizer used (Q0 or Q1) is not explicitly signaled in the bitstream. Instead, the quantizer used for the current transform coefficient is determined by the parity of the transform coefficient level that precedes the current transform coefficient in the coding / reconstruction order.

[0139]

number

[0140] 2.5.2 Coefficient Coding for TS-Coded and QR-BDPCM-Coded Blocks QR-BDPCM follows the context modeling method for TS coded blocks.

[0141] Modified transform coefficient level coding on TS residuals Compared to the regular residual coding case, the residual coding for TS includes the following changes:

[0142] (1) There is no signaling of the final x / y position.

[0143] (2) A coded_sub_block_flag that is coded for all sub-blocks except the last sub-block if all preceding flags are equal to 0.

[0144] (3) sig_coeff_flag context modeling using reduced templates

[0145] (4) Single-context model for abs_level_gt1_flag and par_level_flag

[0146] (5) Context modeling for sign flags, additional flags larger than 5, 7, and 9

[0147] (6) Modified Rice parameters for remainder binarization

[0148]

number

[0149] 3 Shortcomings of existing implementations The current design has the following problems:

[0150] (1) The four predefined transform sets for the chroma components are the same as the transform sets for the luma component. Furthermore, luma and chroma blocks with the same intra prediction mode use the same transform set. However, chroma signals are typically smoother compared to the luma component. Using the same set may not be optimal.

[0151] (2) RST is applied only to a specific CG, not to all CGs. However, the decision on signaling the RST index depends on the number of non-zero coefficients in the entire block. If all coefficients of the CG to which RST is applied are zero, there is no need to signal the RST index. However, the current design may still signal the index, wasting unnecessary bits.

[0152] (3) The RST index is signaled after the residual coding because it is necessary to record whether and how many non-zero coefficients exist at a given location (e.g., numZeroOutSigCoeff, numSigCoeff in Section 2.3.2.2.7). Such a design makes the analysis process more complicated.

[0153] (4) The RST index is context coded, and the context modeling depends on the coded luma / chroma intra prediction mode and the MTS index. Such a design introduces analysis delay for the reconfiguration of intra prediction mode. Also, eight contexts are introduced, which may be a burden for hardware implementation.

[0154] (a) Although DM and CCLM share the same context index and offset, this does not make sense as they are two different chroma-intra prediction methods.

[0155] (5) The current design of non-TS residual coding first codes the coefficient information, followed by coding the index of the RST (i.e., whether to use the RST or not, and if so, which matrix is ​​selected). In such a design, the on / off information of the RST cannot be taken into account in the entropy coding of the residual.

[0156] (6) RST is always applied to the top-left region of the transformation block on which the linear transformation was applied. However, when based on a different linear transformation, it is not always true that the energy is concentrated in the top-left region of the transformation block.

[0157] (7) The decision to signal RST-related information is made differently for the dual-tree and single-tree coding structures.

[0158] (8) If there is more than one TU in a CU (e.g., the CU size is 128x128), the decision to parse the RST-related information can only be made after decoding all TUs. For example, for a 128x128 CU, the first PB cannot be processed without waiting for the LFNST index that comes after the last PB. This does not necessarily break the overall 64x64-based decoder pipeline (if CABAC is separable), but it does increase the data buffering by a factor of four for a certain number of decoder pipeline stages, which is costly.

[0159] 4. Example Method for Context Modeling in Residual Coding Embodiments of the presently disclosed technology overcome shortcomings of existing implementations, thereby providing video coding with higher coding efficiency. Methods for context modeling for residual coding based on the disclosed technology may enhance both existing and future video coding standards, as elucidated in the following examples in which various implementations are described. The examples of the disclosed technology provided below illustrate general concepts and are not intended to be construed as limiting. Various features described in these examples can be combined, unless expressly specified otherwise in the examples.

[0160] In the following description, a "block" may refer to a coding unit (CU), a transform unit (TU), or any rectangular region of video data. A "current block" may refer to a decoded / encoded coding unit (CU), a transform unit (TU) currently being decoded / encoded, or any coding rectangular region of video data being decoded / encoded. A "CU" or "TU" may also be known as a "coding block" and a "transform block."

[0161] In these embodiments, the RST may be any variation of the design in JVET-N0193. The RST may be any technique capable of applying a secondary transform to a block or applying a transform to a transform-skip (TS) coded block (e.g., the RST proposed in JVET-N0193 applied to a TS coded block).

[0162] Additionally, a "zero-out region" or "zero-out CG" may specify a region / CG that always has zero coefficients due to the reduced transform size used in the secondary transform process. For example, if the secondary transform size is 16x32 and the CG size is 4x4, then it applies to the first two CGs, but only the first CG may have non-zero coefficients, and the second 4x4 CG is also referred to as a zero-out CG. Selection of transformation matrices in RST 1. The sub-region to which RST is applied may be a sub-region that is not the top-left part of the block. In one example, RST may be applied to the top right, bottom right, bottom left, or center sub-region of a block. b. The sub-region to which the RST is applied may depend on the intra prediction mode and / or the linear transform matrix (eg, DCT-II, DST-VII, identity transform). 2. The selection of the transformation set and / or transformation matrix used in the RST may depend on the color components. In one example, one set of transformation matrices may be used for the luma (or G) components and one set for the chroma (or B / R) components. b. In one example, each color component may correspond to one set. c. In one example, at least one matrix differs in any of the two or more sets for different color components. 3. The choice of the transform set and / or transform matrix used in RST may depend on the intra prediction method (e.g., CCLM, multi-reference line-based intra prediction, matrix-based intra prediction). In one example, one set of transformation matrices may be used for CCLM-coded blocks and another for non-CCLM-coded blocks. b. In one example, one set of transformation matrices may be used for normal intra-predictive coded blocks and another for blocks with multiple reference lines enabled (i.e., those that do not use neighboring lines for intra prediction). c. In one example, one set of transform matrices may be used for blocks with joint chroma residual coding, and another may be used for blocks to which joint chroma residual coding is not applied. d. In one example, at least one matrix differs in any of the two or more sets for different intra prediction methods. e. Alternatively, RST may be disabled for blocks coded with a particular intra-prediction direction and / or a particular coding tool, e.g., CCLM, and / or joint chroma residual coding, and / or a particular color component (e.g., chroma). 4. The choice of transformation set and / or transformation matrix used in the RST may depend on the linear transformation. a. In one example, if the linear transform applied to a block is an identity transform (e.g., a TS mode is applied to a block), the transform set and / or transform matrix used in the RST may be different from other types of linear transforms. b. In one example, if the horizontal and vertical 1-D linear transforms applied to a block are in the same basis (e.g., both DCT-II), the transform set and / or transform matrix used in the RST may be different from that linear transform with a different basis for a different direction (vertical or horizontal). Signaling and residual coding of RST side information 5. Whether and / or how to signal side information in the RST (eg, st_idx) may depend on the last non-zero coefficient in the block (in scanning order). a. In one example, the RST may be enabled and the index of the RST may be signaled only if the last non-zero coefficient is located within the CG to which the RST is applied. b. In one example, if the last non-zero coefficient is not located within the CG to which the RST is applied, the RST is disabled and the signaling of the RST is skipped. 6. Whether and / or how to signal the side information of the RST (e.g., st_idx) may depend on the coefficients of a specific color component rather than all available color components within the CU. a. In one example, only the side information may be used to determine whether and / or how to signal the side information of the RST. i. Alternatively, further, the above method is applied only when the block size meets certain conditions. 1) The condition is W < T1 or H < T2. 2) For example, T1 = T2 = 4. Therefore, for a 4X4 CU, the luma block size is 4x4, and the two chroma blocks in the 4:2:0 format are 2x2. In this case, only the luma information may be used. ii. Alternatively, further, the above method is applied only when the current partition type tree is a single tree. b. Whether to use the information of one color component or the information of all color components may depend on the block size / coded information. 7. Whether and / or how to signal the side information of the RST (e.g., st_idx) may depend on the coefficients within a partial region of one block rather than the entire block. a. In one example, the partial region may be defined as the CG to which the RST is applied. b. In one example, the partial region may be defined as the first or last M (e.g., M = 1 or 2) CGs in the scanning order or the reverse scanning order of the block. i. In one example, M may depend on the block dimension. ii. In one example, when the block size is 4xN and / or Nx4 (N>8), M is set to 2. iii. In one example, when the block size is 4x8 and / or 8x4 and / or WxH (W≧8, H≧8), M is set to 1. c. In one example, information about a block having dimensions W×H (e.g., the number of non-zero coefficients of the block) may be allowed to be taken into account to determine the use of RST and / or the signaling of RST-related information. i. For example, when W<T1 or H<T2, the number of non-zero coefficients of the block may not be counted. For example, T1=T2=4. d. In one example, a partial region may be defined as the upper left M×N region of the current block having dimensions W×H. i. In one example, M may be smaller than W, and / or N may be smaller than H. ii. In one example, M and N may be fixed numbers, for example, M=N=4. iii. In one example, M and / or N may depend on W and / or H. iv. In one example, M and / or N may depend on the maximum allowable transform size. 1) For example, when W is greater than 8 and H is equal to 4, M=8 and N=4. 2) For example, when H is greater than 8 and W is equal to 4, M=4 and N=8. 3) For example, when neither of the above two conditions is met, M=4 and N=4. v. Alternatively, furthermore, these methods may be applied only for specific block dimensions such that the conditions of 7.c are not satisfied. e. In one example, the partial region may be the same for all blocks. i. Alternatively, this may be changed based on the block dimensions and / or the coded information. f. In one example, the partial region may depend on a given range of scanning order indexes. i. In one example, the partial region may cover coefficients that lie within a particular range based on the coefficient scan order (e.g., reverse decoding order) of a current block having dimensions W×H, with their scanning order indexes in [dxS, IdxE] inclusive. 1) In one example, IdxS is equal to 0. 2) In one example, IdxE may be less than W×H−1. 3) In one example, IdxE can be a fixed number, for example IdxE=15. 4) In one example, IdxE may depend on W and / or H. For example, if W is greater than 8 and H is equal to 4, then IdxE=31. b. For example, if H is greater than 8 and W is equal to 4, then IdxE=31. c. For example, if W is equal to 8 and H is equal to 8, then IdxE=7. d. For example, if W is equal to 4 and H is equal to 4, then IdxE=7. e. For example, if neither of the above two conditions a) nor b) is satisfied, then IdxE=15. f. For example, if none of the above two conditions a), b), c) and d) are satisfied, then IdxE=15. g. For example, if neither of the above two conditions c) nor d) is satisfied, then IdxE=15. ii. Alternatively, further, these methods may be applied only for specific block sizes for which the condition in 7.c is not satisfied. g. In one example, this may depend on the location of the non-zero coefficients within the partial region. h. In one example, this may depend on the energy (such as sum of squares or sum of absolute values) of the non-zero coefficients in the partial region. i. In one example, this may depend on the number of non-zero coefficients in a partial region of a block, rather than the entire block. i. Alternatively, it may depend on the number of non-zero coefficients in a partial region of one or more blocks in a CU. ii. If the number of non-zero coefficients in a partial region of a block is smaller than a threshold, the signaling of side information in the RST may be skipped. iii. In one example, the threshold is fixed to be N (eg, N=1 or 2). iv. In one example, the threshold may depend on slice type / picture type / partition tree type (dual or single) / video content (screen content or camera captured content). v. In one example, the threshold may depend on the color format, such as 4:2:0 or 4:4:4, and / or the color components, such as Y or Cb / Cr. 8. If there are no non-zero coefficients in the CG to which RST may be applied, RST shall be disabled. In one example, if RST is applied to a block, at least one CG to which the RST is applied must contain at least one non-zero coefficient. b. In one example, for 4×N and / or N×4 (N>8), if RST is applied, the first two 4×4 CGs must contain at least one non-zero coefficient. c. In one example, for 4x8 and / or 8x4, if RST is applied, the top-left 4x4 must contain at least one non-zero coefficient. d. In one example, for WxH (W>=8 and H>=8), if RST is applied, the top-left 4x4 must contain at least one non-zero coefficient. e. A conforming bitstream must meet one or more of the conditions above. 9. RST-related syntax elements may be signaled prior to coding the residual (eg, transform coefficients / directly quantized). In one example, counts of the number of non-zero coefficients in the zero-out region (eg, numZeroOutSigCoeff) and the number of non-zero coefficients in the entire block (eg, numSigCoeff) are excluded in the coefficient analysis process. b. In one example, RST-related syntax elements (eg, st_idx) may be coded before the residual_coding. c. RST related syntax elements may be signaled conditionally (e.g. according to coded block flags, TS mode usage). vi. In one example, RST related syntax elements (eg, st_idx) may be coded after the signaling of coded block flags or after the signaling of TS / MTS related syntax elements. vii. In one example, if TS mode is enabled (eg, if the decoded transform_skip_flag is equal to 1), then signaling of RST related syntax elements is skipped. d. Residual-related syntax may not be signaled for zero-out CG. e. How the residual is coded (e.g., scanning order, binarization, decoded syntax, context modeling) may depend on the RST. i. In one example, a raster scanning order may be applied rather than a diagonal up-right scanning order. 1) The raster scanning order is from left to right, top to bottom, or vice versa. 2) Alternatively, instead of the diagonal up-right scanning order, a vertical scanning order (top-to-bottom, left-to-right, or vice versa) may be applied. 3) Alternatively or additionally, the context modeling may be modified. In one example, context modeling may rely on previously coded information in the template, namely the N most recent neighbors in scan order, rather than using the right, bottom, and bottom-right neighbors. b. In one example, context modeling may rely on previously coded information in the template according to the scanned index (e.g., -1, -2, ... assuming the current index is equal to 0). ii. In one example, different binarization methods (e.g., Rice parameter derivation) may be applied to code the residuals associated with RST coded and non-RST coded blocks. iii. In one example, signaling of certain syntax elements may be skipped for RST coded blocks. 1) Signaling of the CG coded block flag (coded_sub_block_flag) for the CG to which the RST applies may be skipped. a. In one example, if RST8x8 is applied to the first three CGs in diagonal scan order, then signaling of the CG coded block flags is skipped for the second and third CGs, e.g., the top-right 4x4 CG and the bottom-left 4x4 CG of the top-left 8x8 region of the block. i. Alternatively, further, the corresponding CG coded block flag is presumed to be 0, i.e., all coefficients are zero. b. In one example, when RST is applied to a block, the signaling of the CG coded block flag is skipped for the first CG in scanning order (or the last CG in reverse scanning order). ii. Alternatively, further, the CG coded block flag for the top-left CG in the block is presumed to be 1, i.e., it contains at least one non-zero coefficient. An example of an 8x8 block is shown in Figure 21. When RST8x8 or RST4x4 is applied to an 8x8 block, coded_sub_block_flag of CG0 is inferred to be 1, and coded_sub_block_flag of CG1 and CG2 are inferred to be 0. 2) Signaling of coefficient magnitude and / or sign flags for certain coordinates may be skipped. In one example, if the index for one CG in the scan order is not less than the maximum allowed index at which a non-zero coefficient may exist (eg, nonZeroSize in section 0), the signaling of the coefficient may be skipped. b. In one example, signaling of syntax elements such as sig_coeff_flag, abs_level_gtX_flag, par_level_flag, abs_remainder, coeff_sign_flag, and dec_abs_level may be skipped. 3) Alternatively, the residual signaling (e.g., CG coded block flags, coefficient magnitudes, and / or sign flags of specific coordinates) may be maintained, but the context modeling may be modified to be different for one CG than for another. iv. In one example, the coding of the residual in the CG where the RST is applied and in other CGs may be different. 1) With regard to the above provisions, they may only apply to CGs to which the RST applies. 10. RST related syntax elements may be signaled before other transform indications such as transform skip and / or MTS index. In one example, the signaling of the transform skip may depend on the RST information. i. In one example, if a RST is applied within a block, the transform skip indication is not signaled and is presumed to be 0 for the block. b. In one example, the signaling of the MTS index may depend on the RST information. i. In one example, if a RST is applied within a block, one or more MTS transformation indications are not signaled and are presumed to be unused for the block. 11. It is proposed to use different context modeling methods in arithmetic coding for different parts of a block. In one example, the block is treated as being in two parts: the first M CGs in the scanning order and the remaining CG. In one example, M is set to 1. ii. In one example, M is set to 2 for 4xN and Nx4 (N>8) blocks, and is set to 1 for all other cases. b. In one example, the block is treated as if it were two parts: a sub-region to which RST is applied and a sub-region to which RST is not applied. i. When RST4x4 is applied, the sub-region to which RST is applied is the first one or two CGs of the current block. ii. If RST4x4 is applied, the sub-region to which RST is applied is the first three CGs of the current block. c. In one example, it is proposed to disable the use of previously coded information in the context modeling process for the first part in a block, but enable it for the second part. d. In one example, when decoding the first CG, information of the remaining one or more CGs may not be allowed to be used. i. In one example, when coding the CG coded block flag for the first CG, the value of the second CG (e.g. right or bottom) is not taken into account. ii. In one example, when coding the CG coded block flags for the first CG, the values ​​of the second and third CG (e.g., right and bottom CG for WxH (W≧8 and H≧8)) are not considered. iii. In one example, when coding the current coefficient, if a neighbor in the context template is in a different CG, information from this neighbor is prohibited from being used. e. In one example, when decoding coefficients in a region to which a RST is applied, information in the remaining regions to which a RST is not applied may be prohibited from being used. f. Alternatively, or in addition, the above method may be applied under certain conditions. i. The conditions may include whether RST is enabled. ii. The conditions may include block dimensions. Context modeling in arithmetic coding of RST side information 12. When coding the RST index, context modeling may depend on whether explicit or implicit multiple transform selection (MTS) is enabled. In one example, when implicit MTS is enabled, different contexts may be selected for blocks coded in the same intra-prediction mode. i. In one example, block dimensions, such as shape (square or non-square), are used to select the context. b. In one example, instead of checking the transform index (eg, tu_mts_idx) coded for an explicit MTS, the basis of the transform matrix may be used. i. In one example, for the transform matrix basis using DCT-II for both horizontal and vertical 1-D transforms, the corresponding context may be different from other types of transform matrices. 13. When coding a RST index, context modeling may depend on whether CCLM is enabled (e.g., sps_cclm_enabled_flag). Alternatively, whether or how to enable context selection for RST index coding may depend on whether CCLM applies to a block. b. In one example, context modeling may depend on whether CCLM is enabled for the current block. i. The following is an example: intraModeCtx = sps_cclm_enabled_flag? ( intra_chroma_pred_mode[ x0 ][ y0 ] is CCLM: intra_chroma_pred_mode[ x0 ][ y0 ] is DM) ? 1 : 0. c. Alternatively, whether or how to enable selecting a context for RST index coding may depend on whether the current chroma block is coded in DM mode. i. The following is an example: intraModeCtx = ( intra_chroma_pred_mode[ x0 ][ y0 ] == (sps_cclm_enabled_flag ? 7:4) ) ? 1 : 0. 14. When coding the RST index, the context modeling may depend on the block dimension / partition depth (e.g., quadtree depth and / or BT / TT depth). 15. When coding the RST index, the context modeling may depend on the color format and / or the color components. 16. When coding the RST index, the context modeling may be independent of the intra prediction mode and / or the MTS index. 17. When coding the RST index, the first and / or second bins may be context coded with only one context or may be bypass coded. Conditionally triggering the RST process 18. Whether or not to initiate an inverse RST process may depend on the CG coded block flags. In one example, if the top left CG coded block flag is zero, there is no need to launch the process. i. In one example, if the top-left CG coded block flag is zero and the block size is not equal to 4xN / Nx4 (N>8), then there is no need to invoke the process. b. In one example, if the first two CG coded block flags in the scanning order are both equal to zero, no process needs to be initiated. i. In one example, if the first two CG coded block flags in the scanning order are both equal to zero and the block size is equal to 4xN / Nx4 (N>8), then no process needs to be initiated. 19. Whether or not to trigger an inverse RST process may depend on the block size. In one example, for certain block dimensions such as 4x8 / 8x4, RST may be disabled. Alternatively, further, the signaling of RST related syntax elements may be skipped. Unified dual-tree and single-tree coding 20. The usage of the RST and / or the signaling of RST related information may be determined in the same manner in dual tree and single tree coding. a. For example, if the number of counted non-zero coefficients (e.g., numSigCoeff as specified in JVET-N0193) is not greater than T1 in the case of dual tree coding or not greater than T2 in the case of single tree coding, where T1 is equal to T2, then RST should not be applied and no related information is signaled. b. In one example, T1 and T2 are both set to N, e.g., N=1 or 2. Consider multiple TUs within a CU. 21. Whether and / or how RST is applied may depend on the block dimensions WxH. In one example, if W>T1 or H>T2, RST may not apply. b. In one example, if W>T1 and H>T2, RST may not apply. c. In one example, if W*H>=T, then RST may not apply. d. With respect to the above example, the following applies: i. In one example, the block is a CU. ii. In one example, T1=T2=64. iii. In one example, T1 and / or T2 may be dependent on the maximum allowed transform size, eg, T1=T2=maximum allowed transform size. iv. In one example, T is set to 4096. e. Alternatively, further, if it is determined that RST does not apply, the related information may not be signaled. 22. If there are N (N>1) TUs in a CU, the coded information of only one of the N TUs is used to determine the usage of the RST and / or the signaling of RST-related information. In one example, the first TU of a CU in decoding order may be used to make the decision. b. In one example, the top-left TU of the CU in decoding order may be used to make the decision. c. In one example, the decision to use a particular TU may be made in the same manner as in the case where there is only one TU in a CU. 23. Signaling of RST usage and / or RST related information may be performed at the TU level or PU level instead of at the CU level. Alternatively, different TUs / PUs in a CU may also select different secondary transformation matrices or enable / disable control flags. b. Alternatively, and further for the dual tree case, chroma blocks may be coded and different color components may select different secondary transform matrices or enable / disable control flags. c. Alternatively, at which video unit level RST-related information is signaled may depend on the partition tree type (dual or single). d. Alternatively, at which video unit level to signal RST-related information may depend on the relationship between the CU / PU / TU and the maximum allowed transform block size, e.g., larger or smaller.

[0163] 5. Implementation examples of the disclosed technology In the exemplary embodiment below, the changes added to JVET-N0193 are highlighted in gray. Text that is deleted is marked with double brackets (e.g., [[a]] indicates the deletion of the letter "a").

[0164]

number

[0165]

number

[0166]

number

[0167] The above examples may be incorporated in the context of the methods described below, such as methods 2200, 2210, 2220, 2230, 2240 and 2250, which may be implemented in a video decoder or a video encoder.

[0168] 22A shows a flowchart of an example method for video processing. The method 2210 includes, at step 2212, performing a transformation between a current video block of the video and a coded representation of the video. In some implementations, performing the transformation includes determining applicability of a secondary transformation tool to the current video block based on a width (W) and / or height (H) of the current video block. In some implementations, performing the transformation includes determining usage of the secondary transformation tool and / or signaling of information related to the secondary transformation tool according to rules independent of the partition tree type applied to the current video block.

[0169] 22B shows a flowchart of an example method for video processing. The method 2220 includes, at step 2222, determining whether a current video block of a coding unit of the video satisfies a condition according to the rule. The method 2220 further includes, at step 2224, performing a transformation between the current video block and the coded representation of the video according to the determination. In some implementations, the condition is related to characteristics of one or more color components of the video, a size of the current video block, or coefficients in a portion of a residual block of the current video block. In some implementations, the rule specifies that the condition controls the presence of side information related to a secondary transformation tool in the coded representation.

[0170] 22C shows a flowchart of an example method for video processing. The method 2230 includes, at step 2232, determining, for a current video block of a coding unit of video, applicability of a secondary transform tool to the current video block, the coding unit including multiple transform units, where the determining is based on a single transform unit of the coding unit. The method 2230 further includes, at step 2234, performing a transform between the current video block and the coded representation of the video.

[0171] In the operations shown in Figures 22A to 22C, the secondary transform tool includes applying a forward secondary transform to the output of a forward linear transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to the output of an inverse quantization of the video block prior to applying an inverse linear transform during decoding.

[0172] In yet another representative aspect, the disclosed techniques can be used to provide a video processing method, the method including: determining applicability of a secondary transform tool and / or presence of side information associated with the secondary transform tool for a current video block of a coding unit of video, the coding unit including a plurality of transform units, the determining being performed at a transform unit level or a prediction unit level, and performing a transform between the current video block of the coded representation of the video based on the determining, the secondary transform tool including applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying the inverse primary transform during decoding.

[0173] In some embodiments, the video coding method may be implemented using an apparatus implemented on a hardware platform such as those described with respect to FIG. 23 or FIG.

[0174] FIG. 23 is a block diagram of a video processing device 2300. The device 2310 may be used to implement one or more of the methods described herein. The device 2300 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 2300 may include one or more processors 2302, one or more memories 2304, and video processing hardware 2306. The processor 2302 may be configured to implement one or more of the methods described herein, including but not limited to the methods 2200, 2210, 2220, 2230, 2240, and 2250. The memories 2304 may be used to store data and codes used to implement the methods and techniques described herein. The video processing hardware 2306 may be used to implement some of the techniques described herein in a hardware circuit.

[0175] FIG. 24 is a block diagram of another example of a video processing system in which the disclosed techniques may be implemented. FIG. 24 is a block diagram illustrating an example video processing system 2400 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 4100. System 2400 may include an input 2402 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10 bit multi-component pixel values, or in a compressed or encoded format. Input 2402 may represent 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), and wireless interfaces such as Wi-Fi or cellular interfaces.

[0176] The system 2400 may include a coding component 2404 capable of implementing various coding or encoding methods described herein. The coding component 2404 may reduce the average bit rate of the video from the input 2402 to the output of the coding component 2404 to generate a coded representation of the video. Thus, the coding techniques are sometimes referred to as video compression or video transcoding techniques. The output of the coding component 2404 may be stored or transmitted via a communication connection as represented by component 2406. The stored or communicated bitstream (or coded) representation of the video received at the input 2402 may be used by component 2408 to generate pixel values ​​or displayable video that are sent to the display interface 2410. The process of generating a user viewable video from the bitstream representation is sometimes referred to as video decompression. Furthermore, although certain video processing operations are referred to as "coding" operations or tools, it will be understood that the coding tools or operations are used in an encoder and that corresponding decoding tools or operations that process the results of the coding in the reverse direction will be performed by a decoder.

[0177] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB) or High Definition Multimedia Interface (HDMI), Displayport, etc. Examples of storage interfaces include Serial Advanced Technology Attachment (SATA), PCI, IDE interfaces, etc. The technology described in this document may be embodied in a variety of electronic devices, such as a mobile phone, a laptop, a smart phone, or other device capable of performing digital data processing and / or video display.

[0178] Some embodiments of the disclosed techniques include making a judgment or decision to enable a video processing tool or mode. In one example, if a video processing tool or mode is enabled, an encoder will use or implement the tool or mode in processing blocks of video, but may not necessarily modify the resulting bitstream based on the use of the tool or mode. That is, conversion of blocks of video to a bitstream representation of video will use the video processing tool or mode if enabled based on the judgment or decision. In another example, if a video processing tool or mode is enabled, a decoder will process the bitstream with information that the bitstream has been modified based on the video processing tool or mode. That is, conversion of a bitstream representation of video to blocks of video will be performed using the video processing tool or mode that is enabled based on the judgment or decision.

[0179] Some embodiments of the disclosed techniques include making a judgment or decision to disable a video processing tool or mode. In one example, if a video processing tool or mode is disabled, an encoder will not use the tool or mode in converting blocks of video to a bitstream representation of the video. In another example, if a video processing tool or mode is disabled, a decoder will process the bitstream with information that the bitstream has not been modified using the video processing tool or mode that was disabled based on the judgment or decision.

[0180] In this document, 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 from 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 at the same position in the bitstream or that are spread to different locations, e.g., as defined by a syntax. For example, a macroblock may be coded in terms of a transformed coded error residual value and using bits from the header and other fields in the bitstream.

[0181] Various techniques and embodiments may be described using the following clause format: A first set of clauses describes particular features and aspects of the techniques disclosed in the sections above.

[0182] 1. A video processing method comprising: selecting a set of transforms or transform matrices for applying a reduction quadratic transform to the current video block based on characteristics of the current video block; and applying the selected transform set or transform matrix to a portion of the current video block as part of a transformation between the current video block and a bitstream representation of the video that includes the current video block; The method includes:

[0183] 2. The method of clause 1, wherein the portion of the current video block is a top right sub-region, a bottom right sub-region, a bottom left sub-region or a center sub-region of the current video block.

[0184] 3. The method of any one of clauses 1 to 2, wherein the feature of the current video block is an intra-prediction mode or a linear transform matrix of the current video block.

[0185] 4. The method according to clause 1, wherein said features are color components of the current video block.

[0186] 5. The method of clause 4, wherein a first set of transforms is selected for a luma component of the current video block, and a second set of transforms different from the first set is selected for one or more chroma components of the current video block.

[0187] 6. The method according to clause 1, wherein the feature is an intra-prediction mode or an intra-coding method of the current video block.

[0188] 7. The method of clause 6, wherein the intra prediction method includes a multiple reference line (MRL) based prediction method or a matrix-based intra prediction method.

[0189] 8. The method of claim 6, wherein a first transform set is selected if the current video block is a cross-component linear model (CCLM) coded block, and a second transform set different from the first transform set is selected if the current video block is a non-CCLM coded block.

[0190] 9. The method of claim 6, wherein a first transform set is selected if the current video block is coded in a joint chroma residual coding manner, and a second transform set different from the first transform set is selected if the current video block is not coded in a joint chroma residual coding manner.

[0191] 10. The method according to clause 1, wherein said characteristic is a linear transformation of the current video block.

[0192] 11. A video processing method comprising: making a decision regarding selective inclusion of signaling of side information for application of a reduction-secondary transform (RST) in a bitstream representation of the current video block based on one or more coefficients associated with the current video block; and performing, based on the determination, a conversion between the current video block and a video including a bitstream representation of the current video block; The method includes:

[0193] 12. The method of claim 11, wherein the one or more coefficients include a last non-zero coefficient in a scanning order of the current video block.

[0194] 13. The method of claim 11, wherein the one or more coefficients include a plurality of coefficients within a partial region of the current video block.

[0195] 14. The method according to clause 13, wherein the partial region comprises one or more coding groups to which the RST can be applied.

[0196] 15. The method of claim 13, wherein the partial region includes the first M coding groups or the last M coding groups in a scanning order of the current video block.

[0197] 16. The method of claim 13, wherein the partial region includes the first M coding groups or the last M coding groups in reverse scanning order of the current video block.

[0198] 17. The method of claim 13, wherein making the determination is further based on the energy of one or more non-zero coefficients of the plurality of coefficients.

[0199] 18. A video processing method comprising: constructing a bitstream representation of the current video block for applying a shrinking quadratic transform (RST) to the current video block, where syntax elements related to the RST are signaled in the bitstream representation prior to coding the residual information; and performing a conversion between the current video block and a bitstream representation of the current video block based on the construction; The method includes:

[0200] 19. The method according to clause 18, wherein signalling a syntax element associated with the RST is based on usage of at least one coded block flag or a transform selection mode.

[0201] 20. The method according to clause 18, wherein the bitstream representation excludes coding residual information corresponding to coding groups that are all-zero coefficients.

[0202] 21. The method of clause 18, wherein the coding residual information is based on application of a RST.

[0203] 22. A video processing method comprising: constructing a bitstream representation of a current video block to apply a reduction secondary transform (RST) to the current video block, where a syntax element related to the RST is signaled in the bitstream representation before either a transform skip indication or a multiple transform set (MTS) index; and performing a conversion between the current video block and a bitstream representation of the current video block based on the construction; The method includes:

[0204] 23. The method of clause 22, wherein the transform skip indication or MTS index is based on a syntax element associated with the RST.

[0205] 24. A video processing method comprising: constructing a context model for coding an index of a reduced quadratic transform (RST) based on features of the current video block; and performing a conversion between the current video block and a bitstream representation of the video that includes the current video block based on the construction; The method includes:

[0206] 25. The method according to clause 24, wherein said feature is the explicit or implicit enablement of a multiple transform selection (MTS) process.

[0207] 26. The method according to clause 24, wherein the feature is enablement of a cross-component linear model (CCLM) coding mode in the current video block.

[0208] 27. The method according to clause 24, wherein the characteristic is a size of the current video block.

[0209] 28. The method according to clause 24, wherein the characteristic is a partition depth of a partitioning process applied to the current video block.

[0210] 29. The method of claim 28, wherein the partitioning process is a quad-tree (QT) partitioning process, a binary tree (BT) partitioning process, or a ternary tree (TT) partitioning process.

[0211] 30. The method according to clause 24, wherein the characteristic is a color format or color components of the current video block.

[0212] 31. The method of claim 24, wherein the above features exclude an intra prediction mode of the current video block and an index of a multiple transform selection (MTS) process.

[0213] 32. A video processing method comprising: making a decision regarding selective application of an inverse shrinking secondary transform (RST) process to the current video block based on characteristics of the current video block; and performing, based on the determination, a conversion between the current video block and a bitstream representation of the video that includes the current video block; The method includes:

[0214] 33. The method according to clause 32, wherein the feature is a coded block flag of a coding group of the current video block.

[0215] 34. The method according to clause 33, wherein the inverse RST process is not applied and the coded block flag of the top-left coding group is zero.

[0216] 35. The method of claim 33, wherein the inverse RST process is not applied and the coded block flags for the first and second coding groups in the scanning order of the current video block are zero.

[0217] 36. The method of claim 32, wherein the characteristic is a height (M) or a width (N) of the current video block.

[0218] 37. The method of clause 36, wherein the inverse RST process is not applied and (i) M=8 and N=4, or (ii) M=4 and N=8.

[0219] 38. A video processing method comprising: making a decision regarding selective application of an inverse shrinking secondary transform (RST) process to the current video block based on characteristics of the current video block; and performing, based on the determination, a conversion between the current video block and a bitstream representation of the video that includes the current video block; wherein the bitstream representation includes side information regarding the RST, the side information being included based on a luma component or a single color coefficient of the current video block.

[0220] 39. The method of clause 38, wherein side information is included further based on dimensions of the current video block.

[0221] 40. The method of clause 38 or 39, wherein the side information is included without considering block information for the current video block.

[0222] 41. The method of any one of clauses 1-40, wherein the converting includes generating a bitstream representation from the current video block.

[0223] 42. The method of any one of clauses 1-40, wherein the transforming includes generating the current video block from a bitstream representation.

[0224] 43. An apparatus in a video system including a processor and a non-transitory memory with instructions, the instructions which, when executed by the processor, cause the processor to perform a method in any one of clauses 1-42.

[0225] 44. A computer program product stored on a non-transitory computer readable medium, comprising a program code for performing the method according to any one of clauses 1-42.

[0226] The second set of clauses describes particular features and aspects of the techniques disclosed in the above sections, eg, Example Implementations 6, 7, 20-23.

[0227] 1. A video processing method comprising: performing a transformation between a current video block of the video and the coded representation of the video, the performing the transformation including determining applicability of a secondary transformation tool to the current video block based on a width (W) and / or a height (H) of the current video block; The method, wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse linear transform during decoding.

[0228] 2. The method of claim 1, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool.

[0229] 3. The method of claim 1, wherein the secondary conversion tool is not applied if W>T1 or H>T2, and T1 and T2 are integers.

[0230] 4. The method of claim 1, wherein the secondary conversion tool is not applied if W>T1 and H>T2, and T1 and T2 are integers.

[0231] 5. The method of claim 1, wherein the secondary transformation tool is not applied if W*H>=T, where T is an integer.

[0232] 6. The method according to any of clauses 1-5, wherein the block is a coding unit.

[0233] 7. The method according to clause 3 or 4, wherein T1=T2=64.

[0234] 8. The method of claim 3 or 4, wherein T1 and / or T2 depend on the maximum allowed transform size.

[0235] 9. The method of claim 5, wherein T is 4096.

[0236] 10. The method of clause 1, wherein the determining step determines not to apply a secondary conversion tool, and information related to the secondary conversion tool is not signaled.

[0237] 11. A video processing method comprising: determining whether a current video block of a coding unit of video satisfies a condition according to the rule; performing a transformation between the current video block and a coded representation of the video in accordance with the determination; the condition relates to a characteristic of one or more color components of the video, a size of the current video block, or coefficients in a portion of the residual block of the current video block; The rule specifies that the condition controls the presence of side information relating to a secondary transformation tool in the coded representation; The method, wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse primary transform during decoding.

[0238] 12. The method of claim 11, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool.

[0239] 13. The method of clause 11 or 12, wherein the features of the one or more color components correspond only to luma information of the coding unit that contains the current video block.

[0240] 14. The method of claim 13, wherein the condition is satisfied if and only if a video coding unit has a height (H) less than T1 and a width (W) less than T2, where T1 and T2 are integers.

[0241] 15. The method of claim 14, wherein T1=T2=64.

[0242] 16. The method according to clause 12, wherein the condition is satisfied if and only if the partition type tree applied to the coding unit is a single tree.

[0243] 17. The method according to clause 11, wherein the rule makes a determination using one color component or all color components based on the dimensions of the current video block and / or the coded information.

[0244] 18. The method according to clause 11, wherein the determination is made according to the rule without using the information of the current video block having width (W) and height (H).

[0245] 19. The method according to clause 18, wherein the information of the current video block includes the number of non-zero coefficients of the current video block when W < T1 or H < T2, and T1 and T2 are integers.

[0246] 20. The method according to clause 11, wherein the determination is made according to the rule based on the coefficients within a portion of the current video block, and the portion is defined as the upper left MxN region of the current video block having width (W) and height (H), and M, N, W, and H are integers.

[0247] 21. The method according to clause 20, wherein M is smaller than W and / or N is smaller than H.

[0248] 22. The method according to clause 20, wherein M and N are fixed numbers.

[0249] 23. The method according to clause 20, wherein M and / or N depend on W and / or H.

[0250] 24. The method according to clause 20, wherein M and / or N depend on the maximum transform size.

[0251] 25. The method according to clause 11, wherein the determination is made according to the rule based on the coefficients within a portion of the current video block, and the portion is defined to be the same for all video blocks of the video.

[0252] 26. The method of clause 11, wherein the determination is made according to a rule based on coefficients within a portion of the current video block, the portion being determined depending on dimensions and / or coded information of the current video block.

[0253] 27. The method of clause 11, wherein the determination is made according to a rule based on coefficients in a portion of the current video block, the portion being determined in dependence on a given range of scanning order indices of the current video block.

[0254] 28. The method of clause 27, wherein the rule defines a portion having scanning order indices within the range [IdxS, IdxE] inclusive that satisfies at least one of the following: 1) IdxS is equal to 0; 2) IdxE is less than the product of W and (H-1); 3) IdxE is a fixed number; or 4) IdxE depends on W and / or H, where W and H correspond to the width and height of the current video block, respectively.

[0255] 29. The method of claim 11, wherein the condition is satisfied if the current video block has particular dimensions.

[0256] 12. The method of claim 11, wherein the determination is made according to a rule based on nonzero coefficients in a portion of the current video block, the portion being determined depending on a number of nonzero coefficients in the current video block and / or other blocks in the coding unit.

[0257] 31. A video processing method comprising: performing a conversion between a current video block of the video and a coded representation of the video; performing the conversion includes determining a usage of a secondary conversion tool and / or a signaling of information related to the secondary conversion tool according to a rule that is independent of a partition tree type applied to the current video block; The method, wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse primary transform during decoding.

[0258] 32. The method of claim 31, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool.

[0259] 33. The method of claim 31, wherein the partition tree type applied to the current video block is a dual tree type or a single tree type.

[0260] 34. The method according to clause 31, wherein the rule specifies not to use the secondary transformation tool if the number of counted non-zero coefficients is not greater than T, the value of T being determined independently of the partition tree type.

[0261] 35. The method of claim 34, wherein T is equal to 1 or 2.

[0262] 36. A video processing method comprising: For a current video block of a coding unit of the video, determining applicability of a secondary transform tool to the current video block, the coding unit including multiple transform units, the determining being based on a single transform unit of the coding unit; performing a transformation between the current video block and a coded representation of the video based on the determination; wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying the inverse primary transform during decoding.

[0263] 37. The method of claim 36, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool.

[0264] 38. The method of claim 37, wherein the single transform unit corresponds to a first transform unit of a coding unit in decoding order.

[0265] 39. The method of claim 37, wherein the single transform unit corresponds to an upper-left transform unit of a coding unit in decoding order.

[0266] 40. The method of any one of clauses 36-39, wherein a single transform unit is determined using similar rules that apply when there is only one transform unit in a coding unit.

[0267] 41. A video processing method comprising: determining, for a current video block of a coding unit of video, applicability of a secondary transform tool and / or presence of side information related to the secondary transform tool, where the coding unit includes a plurality of transform units, and the determining is performed at a transform unit level or a prediction unit level; and performing a transformation between the current video block of the coded representation of the video based on the determination; The method, wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse primary transform during decoding.

[0268] 42. The method of claim 41, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool.

[0269] 43. The method of claim 41, wherein the coding unit includes a flag indicating the applicability of a secondary transformation tool or a different prediction unit or a different transformation unit that uses a different secondary transformation matrix.

[0270] 44. The method of claim 41, wherein different color components use a flag indicating applicability of a secondary transformation tool or different secondary transformation matrices when the dual tree is enabled and the chroma block is coded.

[0271] 45. The method of clause 41, wherein the determining step determines the presence of side information based on a partition tree type applied to the current video block.

[0272] 46. ​​The method of clause 41, wherein the determining step determines the presence of side information based on whether the coding unit, prediction unit, or transform unit is larger or smaller than a maximum allowed transform block size.

[0273] 47. The method of any one of clauses 1-46, wherein performing the conversion includes generating a coded representation from the video, or generating a video from the coded representation.

[0274] 48. An apparatus in a video system including a processor and a non-transitory memory with instructions which, when executed by the processor, cause the processor to perform a method according to any one of clauses 1-47.

[0275] 49. A computer program product stored on a computer readable medium, comprising a program code for carrying out the method according to any one of clauses 1-47.

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

[0277] Implementations of the subject matter and functional operations described in this patent document can be realized in various systems, digital electronic circuits, or computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in one or more combinations thereof. Implementations of the subject matter described herein can be implemented as one or more computer program products, i.e., as one or more modules of computer program instructions encoded on a tangible and non-transitory computer-readable medium for execution by or for controlling the operation of a data processing apparatus. A 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 unit" or "data processing apparatus" encompasses all apparatus, devices, and machines for processing data, including, for example, a programmable processor, a computer, or multiple processors or computers. An apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, such as code constituting a processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof.

[0278] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, 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 part of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in several coordinated files (e.g., a file that stores one or more modules, subprograms, or code portions). A computer program can be deployed to run on one computer or on several computers, which can be located at one site or distributed across several sites and interconnected by a communication network.

[0279] 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 to generate output. The processes and logic flows may also be performed by, and apparatus may be implemented as, special purpose logic circuitry, such as, for example, an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

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

[0281] It is intended that the specification, together with the drawings, be considered as exemplary only, where exemplary means exemplary. As used in this application, the use of "or" is intended to include "and / or" unless the context clearly indicates otherwise.

[0282] While this patent document contains many details, these should not be construed as limitations on the scope of any invention or what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of a particular invention. Certain features that are described in this patent document in the context of separate embodiments may also be implemented in a single embodiment in combination. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as acting in a particular combination, or even originally claimed as such, one or more features in a claimed combination may, in some cases, be carved out of the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.

[0283] Similarly, although acts are depicted in a particular order in the figures, this should not be understood as requiring that such acts be performed in the particular order or sequence shown, or that all of the acts illustrated be performed, to achieve desired results.Furthermore, the division of various system components in the embodiments described in this patent document should not be understood as requiring such division in all embodiments.

[0284] Only a few implementations and examples have been described; other implementations, extensions and variations are possible based on what is described and illustrated in this patent document.

[0285] (Appendix 1) 1. A video processing method comprising the steps of: performing a transformation between a current video block of a video and a coded representation of said video; and performing the transformation includes determining applicability of a secondary transformation tool to the current video block based on a width (W) and / or a height (H) of the current video block; The method, wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward linear transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse linear transform during decoding. (Appendix 2) 2. The method of claim 1, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool. (Appendix 3) 2. The method of claim 1, wherein the secondary transformation tool is not applied if W>T1 or H>T2, and T1 and T2 are integers. (Appendix 4) 2. The method of claim 1, wherein the secondary transformation tool is not applied if W>T1 and H>T2, where T1 and T2 are integers. (Appendix 5) 2. The method of claim 1, wherein the secondary transformation tool is not applied if W*H>=T, where T is an integer. (Appendix 6) 6. The method of claim 1, wherein the block is a coding unit. (Appendix 7) 5. The method of claim 3 or 4, wherein T1=T2=64. (Appendix 8) 5. The method of claim 3 or 4, wherein T1 and / or T2 depend on the maximum allowed transform size. (Appendix 9) 6. The method of claim 5, wherein T is 4096. (Appendix 10) 2. The method of claim 1, wherein the determining step determines not to apply the secondary conversion tool, and information related to the secondary conversion tool is not signaled. (Appendix 11) 1. A video processing method comprising the steps of: determining whether a current video block of a coding unit of video satisfies a condition according to the rule; performing a conversion between the current video block and a coded representation of the video in accordance with the determining. the condition relates to characteristics of one or more color components of the video, a size of the current video block, or coefficients in a portion of a residual block of the current video block; the rule specifies that the condition controls the presence of side information in the coded representation relating to a secondary transformation tool; The method, wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward linear transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse linear transform during decoding. (Appendix 12) 12. The method of claim 11, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool. (Appendix 13) 13. The method of claim 11 or 12, wherein the features of the one or more color components correspond only to luma information of the coding unit containing the current video block. (Appendix 14) 14. The method of claim 13, wherein the condition is satisfied if and only if the coding unit of the video has a height (H) less than T1 and a width (W) less than T2, where T1 and T2 are integers. (Appendix 15) 15. The method of claim 14, wherein T1=T2=64. (Appendix 16) 13. The method of claim 12, wherein the condition is satisfied if and only if a partition type tree applied to the coding unit is a single tree. (Appendix 17) 12. The method of claim 11, wherein the rule performs the determination using one color component or all color components based on dimensions and / or coded information of the current video block. (Appendix 18) 12. The method of claim 11, wherein the determination is made according to the rule without using information of the current video block having a width (W) and a height (H). (Appendix 19) The current video block information is <t1又はh<t2である場合に前記現在のビデオ·ブロックの非ゼロ係数の数を含み、t1及びt2は整数である、付記18に記載の方法。(Appendix 20) 12. The method of claim 11, wherein the determination is made according to the rule based on coefficients within a portion of the current video block, the portion being defined as a top-left MxN region of the current video block having a width (W) and height (H), where M, N, W, and H are integers. (Appendix 21) 21. The method of claim 20, wherein M is less than W and / or N is less than H. (Appendix 22) 21. The method of claim 20, wherein M and N are fixed numbers. (Appendix 23) 21. The method of claim 20, wherein M and / or N depend on W and / or H. (Appendix 24) 21. The method of claim 20, wherein M and / or N depend on the maximum transform size. (Appendix 25) 12. The method of claim 11, wherein the determination is made according to the rule based on coefficients within a portion of the current video block, the portion being defined to be the same for all video blocks of the video. (Appendix 26) 12. The method of claim 11, wherein the determination is made according to the rule based on coefficients within a portion of the current video block, the portion being determined depending on dimensions and / or coded information of the current video block. (Appendix 27) 12. The method of claim 11, wherein the determination is made according to the rule based on coefficients within a portion of the current video block, the portion being determined in dependence on a given range of scanning order indexes of the current video block. (Appendix 28) 28. The method of claim 27, wherein the rule defines a portion having the scanning order index within a range [IdxS, IdxE] inclusive that satisfies at least one of the following: 1) IdxS is equal to 0; 2) IdxE is less than the product of W and (H-1); 3) IdxE is a fixed number; or 4) IdxE depends on W and / or H, where W and H correspond to the width and height of the current video block, respectively. (Appendix 29) 12. The method of claim 11, wherein the condition is satisfied if the current video block has particular dimensions. (Appendix 30) 12. The method of claim 11, wherein the determination is made according to the rule based on non-zero coefficients in a portion of the current video block, the portion being determined depending on a number of non-zero coefficients in the current video block and / or other blocks in the coding unit. (Appendix 31) 1. A video processing method comprising the steps of: performing a transformation between a current video block of a video and a coded representation of said video; performing the conversion includes determining a usage of a secondary conversion tool and / or a signaling of information related to the secondary conversion tool according to rules independent of a partition tree type applied to the current video block; The method, wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward linear transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse linear transform during decoding. (Appendix 32) 32. The method of claim 31, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool. (Appendix 33) 32. The method of claim 31, wherein the partition tree type applied to the current video block is a dual tree type or a single tree type. (Appendix 34) 32. The method of claim 31, wherein the rule specifies not to use the secondary transformation tool if the number of counted non-zero coefficients is not greater than T, the value of T being determined independently of the partition tree type. (Appendix 35) 35. The method of claim 34, wherein T is equal to 1 or 2. (Appendix 36) 1. A video processing method comprising the steps of: determining, for a current video block of a coding unit of video, an applicability of a secondary transform tool to the current video block, the coding unit including a plurality of transform units, the determining being based on a single transform unit of the coding unit; performing a conversion between the current video block and a coded representation of the video based on the determining. wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse linear transform during decoding. (Appendix 37) 37. The method of claim 36, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool. (Appendix 38) 38. The method of claim 37, wherein the single transform unit corresponds to a first transform unit of the coding unit in decoding order. (Appendix 39) 38. The method of claim 37, wherein the single transform unit corresponds to a top-left transform unit of the coding unit in decoding order. (Appendix 40) 40. The method of any one of claims 36-39, wherein the single transform unit is determined using similar rules that apply when there is only one transform unit in a coding unit. (Appendix 41) 1. A video processing method comprising the steps of: determining, for a current video block of a coding unit of video, applicability of a secondary transformation tool and / or presence of side information related to the secondary transformation tool, wherein the coding unit includes a plurality of transform units, the determining being performed at a transform unit level or a prediction unit level; performing a transformation between the current video block of the coded representation of the video based on the determining. wherein the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the video block prior to quantization during encoding, or applying an inverse secondary transform to an output of an inverse quantization of the video block prior to applying an inverse linear transform during decoding. (Appendix 42) 42. The method of claim 41, wherein the secondary transformation tool corresponds to a low frequency non-separable transformation (LFNST) tool. (Appendix 43) 42. The method of claim 41, wherein the coding unit includes a flag indicating the applicability of the secondary transform tool or a different prediction unit or a different transform unit using a different secondary transform matrix. (Appendix 44) 42. The method of claim 41, wherein different color components use a flag indicating the applicability of the secondary transformation tool or different secondary transformation matrices when dual tree is enabled and a chroma block is coded. (Appendix 45) 42. The method of claim 41, wherein the determining step determines the presence of side information based on a partition tree type applied to the current video block. (Appendix 46) 42. The method of claim 41, wherein the determining step determines the presence of side information based on whether the coding unit, the prediction unit, or the transform unit is larger or smaller than a maximum allowed transform block size. (Appendix 47) 47. The method of any one of claims 1-46, wherein performing the conversion includes generating the coded representation from the video or generating the video from the coded representation. (Appendix 48) An apparatus in a video system comprising a processor and a non-transitory memory with instructions which, when executed by the processor, cause the processor to perform a method according to any one of claims 1-47. (Appendix 49) A computer program stored on a computer readable medium, the computer program comprising a program code for performing the method according to any one of claims 1-47.

Claims

1. 1. A method for processing video data, comprising: determining, during conversion between a current video block of a video and a bitstream of the video, whether a secondary conversion tool is applied to the current video block based on a relationship between at least one of a width (W) and a height (H) of the current video block and a maximum allowed conversion size (T); and performing the conversion based on the determination; wherein the secondary transformation tool is not applied to the current video block if W>T and / or H>T; and using the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the current video block during encoding, prior to quantization; or The method, wherein using the secondary transform tool includes applying an inverse secondary transform to an output of an inverse quantization of the current video block before applying an inverse primary transform during decoding.

2. The method of claim 1 , wherein the secondary transformation tool corresponds to a Low Frequency Non-Separable Transform (LFNST) tool.

3. 2. The method of claim 1, further comprising determining whether side information for the current video block associated with the secondary conversion tool is included in the bitstream, and the side information is excluded from the bitstream if W>T and / or H>T.

4. 2. The method of claim 1, wherein each of the width (W) and height (H) is a size characteristic of the current video block that corresponds to luma information only.

5. The method of claim 1 , wherein the current video block is a coding unit.

6. 10. The method of claim 1, wherein whether side information is included in the bitstream is determined further based on a position of a last non-zero coefficient in a residual of the current video block.

7. 7. The method of claim 6, wherein if the side information is included in the bitstream, the last non-zero coefficient is located within a region of the current video block to which the secondary transform tool is applied.

8. 8. The method of claim 7, wherein when the size of the current video block is 4x4 or 8x8, the region corresponds to the first eight coefficients in a top-left 4x4 coding group.

9. 8. The method of claim 7, wherein if the width or the height of the current video block is greater than or equal to 4 and the size of the current video block is not 4x4 or 8x8, then the region corresponds to an upper left 4x4 coding group.

10. 2. The method of claim 1, wherein in response to side information indicating that the secondary transformation tool is enabled, a first syntax element indicating that a transformation kernel is to be used with a primary transformation tool is not present in the bitstream.

11. 2. The method of claim 1, wherein the transforming includes encoding the current video block into the bitstream.

12. 2. The method of claim 1, wherein the converting includes decoding the current video block from the bitstream.

13. 1. An apparatus for processing video data comprising a processor and a non-transitory memory having instructions that, when executed by the processor, cause the processor to: determining, during conversion between a current video block of a video and a bitstream of the video, whether a secondary conversion tool is applied to the current video block based on a relationship between at least one of a width (W) and a height (H) of the current video block and a maximum allowed conversion size (T); and performing the conversion based on the determination; wherein the secondary transformation tool is not applied to the current video block if W>T and / or H>T; and using the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the current video block during encoding, prior to quantization; or The apparatus, wherein using the secondary transform tool includes applying an inverse secondary transform to an output of an inverse quantization of the current video block before applying an inverse primary transform during decoding.

14. A non-transitory computer-readable storage medium storing instructions that cause a processor to: determining, during conversion between a current video block of a video and a bitstream of the video, whether a secondary conversion tool is applied to the current video block based on a relationship between at least one of a width (W) and a height (H) of the current video block and a maximum allowed conversion size (T); and performing the conversion based on the determination; wherein the secondary transformation tool is not applied to the current video block if W>T and / or H>T; and using the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the current video block during encoding, prior to quantization; or The storage medium, wherein using the secondary transform tool includes applying an inverse secondary transform to an output of inverse quantization of the current video block before applying an inverse primary transform during decoding.

15. 1. A method of storing a video bitstream, comprising: For a current video block of a video, determining whether a secondary transformation tool is to be applied to the current video block based on a relationship between at least one of a width (W) and a height (H) of the current video block and a maximum allowable transformation size (T); and generating the bitstream based on the determination; storing the bitstream on a non-transitory computer readable storage medium; wherein the secondary transformation tool is not applied to the current video block if W>T and / or H>T; and using the secondary transform tool includes applying a forward secondary transform to an output of a forward primary transform applied to a residual of the current video block during encoding, prior to quantization; or The method of storing, wherein using the secondary transform tool includes applying an inverse secondary transform to an output of inverse quantization of the current video block before applying an inverse primary transform during decoding.

Citation Information

Patent Citations

  • Image processing device and method

    WO2017195666A1