Adaptive in-loop color space conversion and optional use of other video codec tools

By flexibly managing the use of ACT tools in video encoding and decoding, combined with dual-tree segmentation structure and in-ring shaping, the problem of low interaction efficiency between ACT and other tools is solved, and the compression efficiency and encoding and decoding complexity of video encoding and decoding are improved. It is applicable for standards such as HEVC and VVC.

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

Patent Information

Application Number
CN202080045542.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-06-21
Filing Date
2020-06-22
Publication Date
2024-10-22
Estimated Expiration
2040-06-22

AI Technical Summary

Technical Problem

In video coding and decoding technology, it is difficult for existing technologies to effectively utilize the interaction between Adaptive Color Space Transform (ACT) and other tools, resulting in low coding and decoding efficiency. Especially in the design of Versatile Video Coding (VVC), ACT and the environment There are difficulties with tools such as Inner Shaping (ILR) and Sub-Block Transform (SBT) working together.

Method used

Flexibly manage the use of ACT tools by enabling or disabling ACT tools in video units, combined with dual-tree segmentation structures, in-ring shaping and sub-block transformations, to optimize the video encoding and decoding process. Specific methods include dynamically adjusting the enabling and disabling of ACT based on the usage of encoding and decoding tools, ensuring that ACT works in conjunction with other tools and improving encoding and decoding efficiency.

Benefits of technology

It improves the compression efficiency of video coding and decoding and the collaborative work of coding and decoding tools, reduces the complexity of coding and decoding, and enhances the processing capabilities of video signals. It is suitable for video coding and decoding standards such as HEVC and VVC.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114041287B_ABST
    Figure CN114041287B_ABST
Patent Text Reader

Abstract

A video processing method is provided. The method includes: determining that the applicability of a first codec tool and a second codec tool are mutually exclusive for conversion between a current video block of a video and a codec representation of the video; and performing the conversion based on the determination; wherein the first codec tool corresponds to an adaptive color space transform (ACT) tool; wherein use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color gamut to a second color gamut, or, during decoding, converting a representation of a visual signal from a second color gamut to a first color gamut.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is an application entering the Chinese national phase of International Patent Application No. PCT / CN2020 / 097370 filed on June 22, 2020, which claims priority to International Patent Application No. PCT / CN2019 / 092326 filed on June 21, 2019. The entire disclosure of the above application is incorporated by reference as part of the disclosure of this application. Technical Field

[0003] This patent document generally relates to video encoding and decoding techniques. Background Art

[0004] Video codec standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, ISO / IEC developed MPEG-1 and MPEG-4 video, and the two organizations jointly developed the H.262 / MPEG-2 video and H.264 / MPEG-4 Advanced Video Codec (AVC) and H.265 / High Efficiency Video Codec (HEVC) standards. Since H.262, video codec standards have been based on a hybrid video codec structure that uses temporal prediction plus transform codec. To explore future video codec technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new methods and applied them to reference software called the Joint Exploration Model (JEM). In April 2018, the Joint Video Experts Team (JVET) was established between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) to develop the next-generation Versatile Video Coding (VVC) standard, with the goal of reducing the bit rate by 50% compared to HEVC. Summary of the invention

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

[0006] In one example aspect, a video processing method is disclosed. The method includes: determining to disable an Adaptive Color Space Transformation (ACT) tool for a video unit due to using a dual-tree partitioning structure for conversion between a video unit and a coded representation of the video unit; and, based on the determination, performing conversion by disabling the ACT tool for the video unit; wherein use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color gamut to a second color gamut, or, during decoding, converting a representation of a visual signal from a second color gamut to a first color gamut.

[0007] In another example aspect, another video processing method is disclosed. The method includes: determining to use a dual-tree partitioning structure and an adaptive color space conversion (ACT) tool for conversion between a video unit and a codec representation of the video unit; and, based on the determination, performing the conversion by enabling the ACT tool for the video unit; wherein the use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color domain to a second color domain, or, during decoding, converting a representation of a visual signal from a second color domain to a first color domain.

[0008] In another example aspect, another video processing method is disclosed. The method includes: determining that the applicability of a first codec tool and a second codec tool are mutually exclusive for conversion between a current video block of a video and a codec representation of the video; and performing the conversion based on the determination; wherein the first codec tool corresponds to an adaptive color space transform (ACT) tool; wherein use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color gamut to a second color gamut, or, during decoding, converting a representation of a visual signal from a second color gamut to a first color gamut.

[0009] In another example aspect, another video processing method is disclosed. The method includes: determining that a conversion between a current video block of a video and a codec representation of the video uses both a codec tool and an adaptive color space transform (ACT) tool; and, based on the determination, performing the conversion by enabling the ACT tool for the current video block, wherein the use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color domain to a second color domain, or, during decoding, converting a representation of a visual signal from a second color domain to a first color domain.

[0010] In another example aspect, another video processing method is disclosed. The method includes: for a conversion between a current video block of a video unit of a video and a codec representation of the video, determining that an adaptive color space transform (ACT) tool is disabled for the conversion due to enabling an in-loop reshaping (ILR) tool for the video unit; and performing the conversion based on the determination, wherein the use of the ILR tool includes: constructing the video unit based on luma shaping between a first domain and a second domain and / or scaling of chroma residuals in a luma-dependent manner, and wherein the use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color domain to a second color domain, or, during decoding, converting a representation of a visual signal from a second color domain to a first color domain.

[0011] In another example aspect, another video processing method is disclosed. The method includes: determining to enable both an in-loop reshaping (ILR) tool and an adaptive color space transform (ACT) tool for conversion between a video unit and a coded representation of the video unit; and, performing the conversion based on the determination; wherein the use of the ILR tool includes: constructing a current video unit based on a first domain and a second domain and / or scaling a chroma residual in a luma-dependent manner, and, wherein the use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color domain to a second color domain, or, during decoding, converting a representation of a visual signal from a second color domain to a first color domain.

[0012] In another example aspect, another video processing method is disclosed. The method includes: determining to enable both a sub-block transform (SBT) tool and an adaptive color space transformation (ACT) codec tool for conversion between a current video block and a codec representation of the current video block; and, based on the determination, performing the conversion, wherein the use of the SBT tool includes: applying a transform process or an inverse transform process on a sub-portion of a prediction residual block, and wherein the use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color domain to a second color domain, or, during decoding, converting a representation of a visual signal from a second color domain to a first color domain.

[0013] In another example aspect, another video processing method is disclosed. The method includes: performing conversion between a video unit of a video and a codec representation of the video, wherein the video unit includes one or more partitions of a first level, and the one or more partitions of the first level include one or more partitions of a second level, wherein the codec representation conforms to a formatting rule, wherein the formatting rule specifies whether to include a partition level at which a syntax element indicating the use of an adaptive color space transform (ACT) tool to represent one or more second level partitions in the codec representation is included in the codec representation, wherein the partition level is one of the first level, the second level, or the video unit.

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

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

[0016] In yet another exemplary aspect, a machine-readable medium is disclosed, wherein the medium stores codes that, when executed, cause a processor to implement one or more of the above methods.

[0017] The above and other aspects and features of the disclosed technology are described in more detail in the drawings, detailed description, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 An example of an encoding flow utilizing Adaptive Color Space Transform (ACT) is shown.

[0019] Figure 2 An example of a decoding flow using ACT is shown.

[0020] Figure 3 An example of neighboring sample points used to derive IC parameters is shown.

[0021] Figure 4 An example flow chart of a decoding process with shaping is shown.

[0022] Figure 5 is an example of a reference row.

[0023] Figure 6 Examples of partitioning of 4x8 and 8x4 blocks are shown.

[0024] Figure 7 Examples of partitioning of all blocks except 4×8, 8×4, and 4×4 are shown.

[0025] Figure 8 is a diagram of ALWIP for 4×4 blocks.

[0026] Fig. 9 is a diagram of ALWIP for 8×8 blocks.

[0027] Fig.10 is a diagram of ALWIP for 8×4 blocks.

[0028] Fig.11 is a diagram of ALWIP for 16×16 blocks.

[0029] Fig.12 is an illustration of sub-block transform modes SBT-V and SBT-H (grey areas are TUs that may have non-zero coefficients; white areas are zeroed TUs with all zero coefficients).

[0030] Fig.13 is a diagram of the sub-block transform mode SBT-Q.

[0031] Fig.14 and Fig.15 is a block diagram of an example apparatus for video processing.

[0032] Fig.16A and Fig. 16B is a flow chart of an example method of video processing based on some implementations of the disclosed technology.

[0033] FIG. 17A to FIG. 17E is a flow chart of an example method of video processing based on some implementations of the disclosed technology.

[0034] Fig.18 is a flow chart of an example method of video processing based on some implementations of the disclosed technology. Specific embodiments

[0035] In this article, section headings are used for ease of understanding and do not limit the embodiments described in each section to that section. In addition, although certain embodiments are described with reference to Versatile Video Coding or other specific video encoders, the disclosed technology is also applicable to other video coding and decoding technologies. In addition, although some embodiments describe the video coding and decoding steps in detail, it should be understood that the corresponding decoding steps of the decoding will be implemented by the decoder. In addition, the term "video processing" covers video coding or compression, video decoding or decompression, and video transcoding, in which video pixels are represented from one compression format to another compression format or at different compression bit rates.

[0036] 1. Overview

[0037] This document relates to video coding techniques. Specifically, it relates to the interaction of adaptive color space transform with other tools in video coding. It can be applied to existing video coding standards (such as HEVC) or to a pending standard (Versatile Video Coding). It can also be applied to future video coding standards or video codecs.

[0038] 2. Background

[0039] Video codec standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, ISO / IEC developed MPEG-1 and MPEG-4 video, and the two organizations jointly developed H.262 / MPEG-2 video and H.264 / MPEG-4 Advanced Video Coding (AVC) and H.265 / HEVC standards. Since H.262, video codec standards have been based on a hybrid video codec structure that uses temporal prediction plus transform codec. In order to explore future video codec technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new methods and applied them to reference software called the Joint Exploration Model (JEM). In April 2018, a Joint Video Experts Team (JVET) was established between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) to study the VVC standard with the goal of reducing the bit rate by 50% compared to HEVC.

[0040] The latest version of the VVC draft, Versatile Video Codec (Draft 5), can be found at:

[0041] http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 14_Geneva / wg11 / JVET-N1001-v2.zip

[0042] The latest reference software for VVC, called VTM, can be found at:

[0043] https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-5.0

[0044] 2.1 Adaptive Color-Space Transform (ACT) in HEVC Screen Content Codec Extension

[0045] In the HEVC SCC extension, several tools are proposed and adopted to improve the efficiency of SCC under the HEVC framework. For example, in order to exploit the repeated patterns in SCC, the intra-block copy (IBC) scheme is adopted. Similar to the motion compensation scheme used for inter-pictures, this IBC mode searches for repeated patterns in the reconstructed areas of the current picture. Another direction to improve SCC is to reduce the redundancy between color components of RGB / YCbCr sequences in 4:4:4 chroma format.

[0046] The cross-component prediction (CCP) technique signals the weighted parameter index for each chrominance color component of the transform unit. CCP provides good codec efficiency improvements with limited complexity, so it is adopted by HEVC Range Extensions and is part of the second version of HEVC, which specifies the description of range extensions and other extensions.

[0047] To further exploit the correlation between the color components of the SCC, an in-loop adaptive color space transform (ACT) for the HEVC SCC extension is employed. The basic idea of ​​ACT is to adaptively transform the prediction residual into a color space with reduced redundancy between the three color components. Before and after this, the signal follows the existing codec path in the HEVC range extension. To keep the complexity as low as possible, only one additional color space is considered (i.e., the inverse transform from RGB to YCgCo-R), which can be easily implemented with shift and add operations.

[0048] 2.1.1 Transformations used in ACT

[0049] For lossy codecs, the YCgCo transform is used, while its reversible variant, YCgCo-R, is used for lossless codecs.

[0050] The YCgCo forward and inverse transformation processes are as follows: Taking pixels in (R, G, B) color format as an example:

[0051] Forward:

[0052] Reverse:

[0053]

[0054] Unlike the YCgCo transform, which can be implemented via matrix multiplication, the reversible color space transform used in ACT (i.e., YCgCo-R) can only be performed in a lifting-based operation, as shown below:

[0055] Forward:

[0056] Reverse:

[0057] 2.1.2 Use of ACT

[0058] For each TU, a flag may be signaled to indicate the use of color space transform. In addition, for intra-coded CUs, ACT is enabled only when the chroma and luma intra prediction modes are the same, i.e., when the chroma block is coded in DM mode.

[0059] Figure 1 A block diagram of the proposed method at the encoder side is shown, with the residual signal derived from intra / inter prediction as input. The proposed functional blocks (including forward and inverse color space transformation) are located in the codec loop and highlighted. Figure 1 As shown, after intra-frame or inter-frame prediction processing (including the prediction process of IBC mode), it is determined whether to perform forward color space transformation. By introducing the color space transformation, the color space of the input signal can be converted to YCgCo, and the correlation between the three color components is small. Thereafter, the original codec stream, such as CCP, integer transform (i.e., Figure 1 T in ), if applicable, and also calls quantization (i.e., Figure 1 Q) and entropy encoding and decoding process. Figure 2 In the reconstruction or decoding process shown, in the conventional inverse quantization (ie, Figure 2 IQ in), inverse transform (i.e., Figure 2 After IT) and inverse CCP in ACT, if applicable, the inverse color transform is called to convert the codec residual back to the original color space. It should be noted that the color space conversion process is applied to the residual signal instead of the reconstructed signal. Using this approach, the decoder only needs to perform the inverse color space transform process, which can increase the complexity as little as possible. In addition, in ACT, regardless of the input color space, a fixed color space transform is used, namely YCgCo and YCgCo-R.

[0060] 2.2. Local Illumination Compensation in JEM

[0061] Local illumination compensation (LIC) is based on a linear model of illumination variation, using a scaling factor a and an offset b, and adaptively enables or disables LIC for each inter-mode coded codec unit (CU).

[0062] When LIC is applied to a CU, the least square error method is used to derive parameters a and b by using the neighboring samples of the current CU and its corresponding reference samples. More specifically, Figure 3 As shown, neighboring samples of the CU's subsampling (2:1 subsampling) and corresponding samples in the reference picture (identified by the motion information of the current CU or sub-CU) are used.

[0063] 2.2.1 Derivation of prediction blocks

[0064] IC parameters are derived and applied to each prediction direction separately. For each prediction direction, the first prediction block is generated using the decoded motion information, and then a temporary prediction block is obtained by applying the LIC model. After that, the final prediction block is derived using the two temporary prediction blocks.

[0065] When the CU is encoded and decoded in Merge mode, the LIC flag is copied from the neighboring block in a manner similar to the motion information copying in Merge mode; otherwise, the LIC flag is signaled to the CU to indicate whether LIC is applied.

[0066] When LIC is enabled for a picture, additional CU-level RD verification is required to determine whether LIC is applied to the CU. When LIC is enabled for a CU, the mean-removed sum of absolute differences (MR-SAD) and the mean-removed Hadamard-transformed sum of absolute differences (MR-SATD) are used for integer pel motion search and fractional pel motion search, respectively, instead of SAD and SATD.

[0067] In order to reduce the complexity of encoding and decoding, the following encoding and decoding schemes are applied in JEM:

[0068] When there is no significant illumination change between the current picture and its reference pictures, LIC will be disabled for the entire picture. To identify this situation, the histogram of the current picture and each reference picture of the current picture is calculated on the encoder side. If the histogram difference between the current picture and each reference picture of the current picture is less than a given threshold, LIC is disabled for the current picture; otherwise, LIC is enabled for the current picture.

[0069] 2.3 Inter-frame prediction method in VVC

[0070] For inter-frame prediction improvement, there are several new codec tools, such as adaptive motion vector difference precision (AMVR) signaling MVD, affine prediction mode, triangular prediction mode (TPM), ATMVP, generalized bidirectional prediction (GBI), bidirectional optical flow (BIO), etc.

[0071] 2.3.1 Codec Block Structure in VVC

[0072] In VVC, a quadtree / binarytree / ternarytree (QT / BT / TT) structure is used to divide images into square or rectangular blocks.

[0073] In addition to QT / BT / TT, VVC also uses a separate tree for I frames (also known as a dual codec tree). Using separate trees, the codec block structure is signaled for the luminance component and the chrominance component respectively.

[0074] 2.4 In-loop reshaping ILR in JVET-M0427

[0075] The basic idea of ​​in-loop reshaping (ILR) is to transform the original (in the first domain) signal (the predicted / reconstructed signal) into the second domain (the reshaped domain).

[0076] The in-loop brightness shaper is implemented as a pair of lookup tables (LUTs), but only one of the two LUTs needs to be signaled, since the other can be calculated from the signaled LUT. Each LUT is a one-dimensional, 10-bit, 1024-entry mapping table (1D-LUT). One LUT is a forward LUT, FwdLUT, which converts the input brightness code value Y i Mapped to the changed value Y r :Y r =FwdLUT[Y i The other LUT is the inverse LUT, InvLUT, which changes the code value Y r Map to ( Represents Y i reconstructed value).

[0077] 2.4.1 PWL model

[0078] Conceptually, piecewise linear (PWL) is implemented in the following way:

[0079] Let x1, x2 be the two input pivot points, and y1, y2 be the corresponding output pivot points for a segment. The output value y for any input value x between x1 and x2 can be interpolated by the following formula:

[0080] y=((y2-y1) / (x2-x1))*(x-x1)+y1

[0081] In a fixed-point implementation, this formula can be rewritten as:

[0082] y=((m*x+2 FP_PREC-1 )>>FP_PREC)+c

[0083] Where m is a scalar, c is an offset, and FP_PREC is a constant value used to specify the precision.

[0084] Note that in CE-12 software, the PWL model is used to pre-compute the 1024-entry FwdLUT and InvLUT mapping tables; however, the PWL model also allows implementations where the same mapping values ​​are computed on-the-fly without pre-computing the LUTs.

[0085] 2.4.2 Brightness Shaping

[0086] Test 2 of in-loop luma shaping (ie CE12-2 in the proposal) provides a lower complexity pipeline that also eliminates decoding latency for intra prediction of blocks in inter-slice reconstruction. For both inter-slice and intra-slice, intra prediction is performed in the shaping domain.

[0087] Intra prediction is always performed in the shaped domain regardless of the slice type. With this setup, intra prediction can start immediately after the previous TU reconstruction is completed. Such an arrangement can also provide a unified process for intra mode, independent of the slice. Figure 4 A block diagram of a mode-based CE12-2 decoding process is shown.

[0088] CE12-2 also tests a 16-segment piecewise linear (PWL) model for luma and chroma residual scaling, instead of the 32-segment PWL model of CE12-1.

[0089] Figure 4 A flow chart showing the decoding process with a shaping step is shown.

[0090] An in-loop luma shaper is used in CE12-2 for inter-slice reconstruction (the light green shaded blocks indicate the signals in the shaping domain: luma residual; predicted intra luma; and reconstructed intra luma).

[0091] 2.4.3 Luminance-dependent Chroma Residual Scaling

[0092] Luma-dependent chroma residual scaling is a multiplication process implemented using fixed-point integer arithmetic. Chroma residual scaling compensates for luma signals that interact with chroma signals. Chroma residual scaling is applied at the TU level. More specifically, the following conditions apply:

[0093] For intra-frames, the reconstructed brightness is averaged.

[0094] For inter frames, the predicted brightness is averaged.

[0095] This average is used to identify the index in the PWL model. This index identifies the scaling factor cScaleInv. The chroma residual is multiplied by this number.

[0096] Note that the chroma scaling factors are computed based on the predicted luma values ​​from the forward map rather than the reconstructed luma values.

[0097] 2.4.3.1 Signaling Notification of ILR Side Information

[0098] Currently, the parameters are sent in the slice group header (similar to ALF). These parameters are said to take up 40 to 100 bits.

[0099] 2.4.3.2 Use of ILR

[0100] On the encoder side, each picture (or slice group) is first converted to the shaped domain. And all encoding and decoding processes are performed in the shaped domain. For intra prediction, the neighboring blocks are in the shaped domain; for inter prediction, the reference blocks (generated from the original domain of the decoded picture buffer) are first converted to the shaped domain. Then the residual is generated and encoded and decoded to the bitstream.

[0101] After the entire picture (or slice group) is encoded / decoded, the samples in the shaped domain are converted to the original domain, and then the deblocking filter and other filters are applied.

[0102] Forward shaping of the prediction signal is disabled for the following cases:

[0103] The current block is intra-coded

[0104] The current block is encoded and decoded as CPR (Current Picture Reference, also known as Intra Block Copy (IBC))

[0105] The current block is coded in combined inter-intra mode (CIIP) and forward shaping is disabled for intra predicted blocks

[0106] 2.5 Virtual Pipeline Data Unit (VPDU)

[0107] A Virtual Pipeline Data Unit (VPDU) is defined as a non-overlapping M×M-luminance (L) / N×N-chrominance (C) unit in a picture. In a hardware decoder, consecutive VPDUs are processed simultaneously by multiple pipeline stages. Different stages process different VPDUs simultaneously. In most pipeline stages, the size of the VPDU is roughly proportional to the size of the buffer, so it is important to keep the VPDU size small. In the HEVC hardware decoder, the size of the VPDU is set to the size of the largest transform block (TB). Increasing the maximum TB size from 32×32-L / 16×16-C (as in HEVC) to 64×64-L / 32×32-C (as in current VVC) can bring codec gains, which is expected to increase the VPDU size by 4 times (64×64-L / 32×32-C) compared to HEVC. However, in addition to the quadtree (QT) codec unit (CU) partitioning, ternary tree (TT) and binary tree (BT) are also adopted in VVC to achieve additional codec gains, and the TT and BT partitioning can be recursively applied to the 128×128-L / 64×64-C codec tree block (CTU), which is said to make the VPDU size 16 times (128×128-L / 64×64-C) compared to HEVC.

[0108] In the current VVC design, the size of VPDU is defined as 64×64-L / 32×32-C.

[0109] 2.6 Multiple Reference Line (MRL)

[0110] Multiple reference line (MRL) intra prediction uses more reference lines for intra prediction. Figure 5 In Figure 1, an example of 4 reference lines is depicted, where the samples of segments A and F are not taken from the reconstructed neighboring samples, but are filled with the closest samples of segments B and E, respectively. HEVC intra-picture prediction uses the nearest reference line (i.e., reference line 0). In MRL, 2 additional lines are used (reference line 1 and reference line 3).

[0111] The index of the selected reference row (mrl_idx) is signaled and used to generate intra prediction values. For reference row indices greater than 0, only additional reference row modes are included in the MPM list, and only the MPM index is signaled without other modes. The reference row index is signaled before the intra prediction mode, and, in case of a non-zero reference row index being signaled, planar mode and DC mode are excluded from the intra prediction mode.

[0112] Figure 5 is an example of 4 reference rows adjacent to the prediction block.

[0113] MRL is disabled for the first row of blocks within a CTU to prevent the use of extended reference samples beyond the current CTU row. Likewise, PDPC is disabled when additional rows are used.

[0114] 2.7 Intra-frame Sub-block Partitioning (ISP)

[0115] In JVET-M0102, ISP is proposed, as shown in Table 1, which divides the luma intra prediction block vertically or horizontally into 2 or 4 sub-partitions according to the size dimension of the block. Figure 6 and Figure 7 Examples of two possibilities are shown. All sub-partitions satisfy the condition of having at least 16 samples. For block size, if 4×N or N×4 (N>8) is allowed, there may be 1×N or N×1 sub-partitions.

[0116] Table 1: Number of sub-partitions depending on block size (maximum transform size represented by maxTBSize)

[0117]

[0118] For each of these subpartitions, a residual signal is generated by entropy decoding the coefficients sent by the encoder, then inverse quantizing and inverse transforming them. Then, intra prediction is performed on the subpartition, and finally the corresponding reconstructed samples are obtained by adding the residual signal to the prediction signal. Therefore, the reconstructed values ​​of each subpartition will be used to generate the prediction of the next subpartition, repeating the process, and so on. All subpartitions share the same intra mode.

[0119] Hereinafter, the inner sub-partition is used to refer to the sub-partitions other than the first sub-partition. If the ISP block is divided in the horizontal (vertical) direction, the first sub-partition refers to the upper (left) sub-partition.

[0120] Table 2: Specification of trTypeHor and trTypeVer depending on predModeIntra

[0121]

[0122] 2.8 Affine Linear Weighted Intra Prediction (ALWIP, also known as Matrix-based Intra Prediction)

[0123] Affine Linear Weighted Intra Prediction (ALWIP, also known as Matrix-based Intra Prediction (MIP)) was proposed in JVET-N0217.

[0124] 2.8.1 Generating Reduced Prediction Signals via Matrix-Vector Multiplication

[0125] First, the adjacent reference samples are downsampled by averaging to generate a reduced reference signal bdry.red Then, the reduced prediction signal pred is calculated by calculating the matrix-vector product and adding the offset red :

[0126] pred red =A.bdry red +b

[0127] Here, A is a matrix, where if W = H = 4, then the matrix A has W red ·H red rows and 4 columns, in all other cases it has 8 columns. b is the dimension W red ·H red Vector.

[0128] 2.8.2 Diagram of the entire ALWIP process

[0129] Figure 8 , Fig. 9 , Fig.10 and Fig.11 The whole process of averaging, matrix-vector multiplication and linear interpolation is shown for different shapes. Note that the remaining shape is considered as one of the cases described.

[0130] 1. Given a 4×4 block, ALWIP takes two averages along each axis of the boundary. The resulting four input samples enter the matrix-vector multiplication. The matrix is ​​taken from set S0. After adding the offset, this will produce 16 final prediction samples. Linear interpolation is not necessary to generate the prediction signal. Therefore, a total of (4·16) / (4·4)=4 multiplications are performed for each sample.

[0131] 2. Given an 8×8 block, ALWIP takes four averages along each axis of the boundary. The resulting eight input samples enter a matrix-vector multiplication. The matrix is ​​taken from set S1. This produces 16 samples at odd positions in the prediction block. Therefore, a total of (8·16) / (8·8)=2 multiplications are performed for each sample. After adding the offset, these samples are interpolated vertically using the reduced upper boundary. Then horizontal interpolation is performed by using the original left boundary.

[0132] 3. Given an 8×4 block, ALWIP takes four averages along the horizontal axis of the boundary and four original boundary values ​​at the left boundary. The resulting eight input samples enter the matrix-vector multiplication. The matrix is ​​taken from set S1. This produces 16 samples at odd horizontal positions and every vertical position of the prediction block. Therefore, a total of (8·16) / (8·4)=4 multiplications are performed for each sample. After adding the offset, these samples are interpolated horizontally by using the original left boundary.

[0133] 4. Given a 16×16 block, ALWIP takes four averages along each axis of the boundary. The resulting eight input samples enter a matrix-vector multiplication. The matrix is ​​taken from set S2. This produces 64 samples at odd positions in the prediction block. Therefore, a total of (8·64) / (16·16)=2 multiplications are performed for each sample. After adding the offset, the samples are interpolated vertically by using the eight averages of the upper boundary. This is followed by horizontal interpolation by using the original left boundary. In this case, the interpolation process does not add any multiplications. Therefore, a total of two multiplications are required per sample to compute the ALWIP prediction.

[0134] For larger shapes, the process is essentially the same, and it is easy to check that the number of multiplications per sample point is less than four.

[0135] For W×8 blocks with W>8, only horizontal interpolation is required because samples are given at odd horizontal positions and every vertical position.

[0136] Finally, for W×4 blocks with W>8, let A k is the matrix produced by omitting each row corresponding to the odd entries along the horizontal axis of the downsampling block. Therefore, the output size is 32, and again, only horizontal interpolation remains to be performed.

[0137] The transposed case is handled accordingly.

[0138] 2.8.3 Derivation of MPM Lists for Conventional Luma and Chroma Intra Prediction Modes

[0139] The proposed ALWIP mode is coordinated with the MPM-based codec in the conventional intra prediction mode as follows. The derivation process of the luminance and chrominance MPM lists in the conventional intra prediction mode uses a fixed table map_alwip_to_angular idx ,idx∈{0,1,2}, set the ALWIP mode predmode on the given PU ALWIP Mapped into one of the regular intra prediction modes.

[0140] predmode Angular =map_alwip_to_angular idx(PU) [predmode ALWIP ]

[0141] For the brightness MPM list derivation, whenever the ALWIP mode predmode is encountered ALWIP The neighboring luminance block is considered to use the conventional intra prediction mode predmode AngularFor chroma MPM list derivation, whenever the current luma block uses LWIP mode, the same mapping is used to convert ALWIP mode to regular intra prediction mode.

[0142] 2.9 Quantized Residual Block Differential Pulse Codec Modulation (QR-BDPCM)

[0143] In JVET-M0413, a Quantized Residual Block Differential Pulse Codec Modulation (QR-BDPCM) is proposed to efficiently encode and decode screen content.

[0144] The prediction direction used in QR-BDPCM can be vertical and horizontal prediction modes. Intra-frame prediction is performed on the entire block by replicating samples in the prediction direction (horizontal or vertical prediction) similar to intra-frame prediction. The residual is quantized, and the delta between the quantized residual and its predicted value (horizontal or vertical) is encoded and decoded. The description is as follows: For a block of size M (rows) × N (columns), let r i,j , 0≤i≤M-1,0≤j≤N-1 is the prediction residual after horizontal intra prediction (copying left neighbor pixel values ​​across prediction blocks row by row) or vertical intra prediction (copying top neighbor rows to each row in prediction blocks) using unfiltered samples from the upper or left block boundary samples. Let Q(r i,j ), 0≤i≤M-1,0≤j≤N-1 represents the residual r i,j The quantized version of , where the residual is the difference between the original block value and the predicted block value. Then, block DPCM is applied to the quantized residual samples to generate a sample with elements The modified M×N array When vertical BDPCM is signaled:

[0145]

[0146] For horizontal prediction, similar rules apply and the residual quantization samples are obtained by the following formula:

[0147]

[0148] Quantize the residual samples Send to the decoder.

[0149] At the decoder side, the above calculation is inverted to generate Q(r i,j ),0≤i≤M-1,0≤j≤N-1. For vertical prediction,

[0150]

[0151] For horizontal prediction,

[0152]

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

[0154] The main advantage of this scheme is that inverse DPCM can be done on the fly during coefficient analysis by simply adding prediction values ​​when the coefficients are analyzed, or inverse DPCM can be performed after analysis.

[0155] 2.10 Intra-frame Chroma Encoding and Decoding

[0156] In addition to the intra-frame chroma prediction mode, VVC also introduces CCLM and joint chroma residual coding and decoding.

[0157] 2.10.1 Cross-Component Linear Model (CCLM)

[0158] In order to reduce cross-component redundancy, the Cross-Component Linear Model (CCLM) prediction mode is used in VTM4, for which the chrominance samples are predicted based on the reconstructed luma samples of the same CU using the following linear model:

[0159] pred C (i,j)=α·rec L '(i,j)+β

[0160] Among them, pred C (i, j) represents the predicted chroma sample in the CU, and rec L (i, j) represents the downsampled reconstructed luma sample of the same CU. The linear model parameters α and β are derived from the relationship between the luma and chroma values ​​of the four samples at a specific position. Among the four samples, the two larger values ​​are averaged and the two smaller values ​​are averaged. The average values ​​are then used to derive the linear model parameters.

[0161] 2.10.2 Joint Chroma Residual Coding and Decoding

[0162] If the chroma shaper is active, the received residual is shaped in the same way as in the separate codec mode (i.e. the joint residual signal is shaped). When testing this mode, at the encoder side, the average of the positive Cb residual and the negative Cr residual is taken as the joint residual:

[0163] resJoint=(resCb resCr) / 2

[0164] A bin indicator is signaled in the bitstream to enable this mode. In case of enabled mode, the joint residual signal is encoded in the bitstream. At the decoder side, the joint residual is applied to the Cb component and the negative version of the residual is applied to Cr.

[0165] 2.11 Sub-Block Transform (SBT) in VVC

[0166] For inter-predicted CUs with cu_cbf equal to 1, cu_sbt_flag can 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 encoded and decoded by the inferred adaptive transform, while another part of the residual block is zeroed. Since almost no codec gain is achieved, SBT is not applicable to combined inter-intra mode.

[0167] 2.11.1 Sub-block TU tiling

[0168] When SBT is used for inter CU, SBT type and SBT location information are further decoded from the bitstream. Fig.12 As shown, there are two SBT types and two SBT positions. For SBT-V (or SBT-H), the TU width (or height) can be equal to half of the CU width (or height), or equal to 1 / 4 of the CU width (or height), which is signaled by another flag, resulting in 2:2 partitioning or 1:3 / 3:1 partitioning. 2:2 partitioning is like binary tree (BT) partitioning, while 1:3 / 3:1 partitioning is like asymmetric binary tree (ABT) partitioning. If one side of the CU is 8 in the luminance samples, 1:3 / 3:1 partitioning is not allowed along this side. Therefore, a CU has a maximum of 8 SBT modes.

[0169] like Fig.13 As shown, quadtree (QT) partitioning is also used to concatenate a CU into 4 sub-blocks, and there is also a sub-block with residual. This SBT type is denoted as SBT-Q. This part is not adopted by VVC.

[0170] For CUs whose width and height are both no larger than maxSbtSize, SBT-V, SBT-H, and SBT-Q are allowed. maxSbtSize is signaled in the SPS. For HD and 4K sequences, the encoder sets maxSbtSize to 64; for other smaller resolution sequences, maxSbtSize is set to 32.

[0171] 2.11.2 Sub-block Transform Type

[0172] The luma transform blocks in SBT-V and SBT-H use position-dependent transforms (chroma TBs always use DCT-2). The two positions in SBT-H and SBT-V are associated with different core transforms. More specifically, Fig.12 The horizontal and vertical transforms for each SBT position are specified in . For example, the horizontal and vertical transforms for SBT-V position 0 are DCT-8 and DST-7, respectively. When one side of the residual TU is larger than 32, the corresponding transform is set to DCT-2. Therefore, the sub-block transform jointly specifies the TU concatenation, cbf, and horizontal and vertical transforms of the residual block, which can be regarded as a syntactic shortcut for the case where the main residual of the block is on one side of the block.

[0173] Fig.12 is an illustration of sub-block transform modes SBT-V and SBT-H (grey areas are TUs that may have non-zero coefficients; white areas are zeroed TUs with all zero coefficients).

[0174] Fig.13 is a diagram of the sub-block transform mode SBT-Q.

[0175] 2.12 Partition Tree

[0176] In VTM5, the codec tree scheme supports the ability to have separate block tree structures for luma and chroma. Currently, for P slices and B slices, the luma CTB and chroma CTB in one CTU must share the same codec tree structure. However, for I slices, luma and chroma can have separate block tree structures. When separate block tree mode is applied, the luma CTB is partitioned into luma CUs by one codec tree structure, and the chroma CTB is partitioned into chroma CUs by another codec tree structure. This means that a CU in an I slice may consist of codec blocks for the luma component or codec blocks for two chroma components, while a CU in a P or B slice always consists of codec blocks for all three color components unless the video is monochrome.

[0177] 3. Examples of technical problems solved by the solutions described in this document

[0178] There is a need to study how to apply ACT to VVC design, especially to address the interaction between ACT and other tools:

[0179] 1. ILR converts the luminance component from the entire picture / strip / slice from the original domain to the shaping domain and encodes and decodes all the contents in the shaping domain. However, for the chrominance component, it is encoded and decoded in the original domain. ACT needs to obtain the residual signal of the pixels of the three color components.

[0180] 2. How to handle ACT when dual tree is enabled.

[0181] 4. Examples of solutions and implementations

[0182] The following list should be considered as an example to explain the general concept. These inventions should not be interpreted narrowly. In addition, these technologies can be combined in any way.

[0183] In the following discussion, a CU may include information associated with all three color components using a single-tree codec structure. Alternatively, a CU may include information associated only with a luminance color component using monochrome codec. Alternatively, a CU may include information associated only with a luminance color component using a dual-tree codec structure (e.g., a Y component in a YCbCr format or a G component in a GBR format). Alternatively, a CU may include information associated only with two chrominance components using a dual-tree codec structure (e.g., Cb and Cr components in a YCbCr format or B and R components in a GBR format).

[0184] In the following description, "block" may refer to a codec unit (CU) or a transform unit (TU) or any rectangular or polygonal area of ​​video data. "Current block" may refer to a codec unit (CU) currently being decoded / encoded or a transform unit (TU) currently being decoded / encoded or any codec rectangular area of ​​video data currently being decoded / encoded. "CU" or "TU" may also be referred to as "codec block" and "transform block".

[0185] In the following discussion, the term “ACT” may refer to any technology that can convert the original signal / prediction signal / reconstruction signal / residual signal of the three color components from one domain to another, not necessarily the same design as in HEVC SCC.

[0186] 1. When dual-tree partitioning structure is enabled for a video unit (eg, a slice / tile / picture / region covering one or more CTUs), ACT is disabled for all blocks in the video unit.

[0187] a. The indication of the use of ACT may be conditionally signaled based on the use of the dual-tree partitioning structure.

[0188] i. In one example, when a dual-tree partitioning structure is applied, signaling an indication of the use of ACT may be skipped.

[0189] 2. When ILR is enabled for a video unit (eg, a slice / tile / picture / region covering one or more CTUs), ACT is disabled for all blocks in the video unit.

[0190] a. The indication of the use of ACT may be conditionally signaled based on the use of ILR.

[0191] i. In one example, when ILR is applied, signaling indication of the use of ACT may be skipped.

[0192] 3. ACT and codec tool X are specific to video blocks (eg, CU / TU).

[0193] a. In one example, X is CCLM. If CCLM is enabled for the chroma components of the video block, ACT is disabled; and vice versa.

[0194] b. In one example, X is joint chroma residual codec. If joint chroma residual codec is enabled for the chroma components of the video block, ACT is disabled; and vice versa.

[0195] c. In one example, X is a matrix-based intra prediction method. If the matrix-based intra prediction method is enabled for the luma component of the video block, ACT is disabled; and vice versa.

[0196] d. In one example, X is QR-BDPCM. If QR-BDPCM is enabled for the luma component of the video block, ACT is disabled; and vice versa.

[0197] e. In one example, X is a sub-block transform (SBT). If SBT is enabled for the luma component of the video block, ACT is disabled; and vice versa.

[0198] f. In one example, X is the Multiple Transform Selection (MTS). If MTS is enabled for the luma component of the video block, ACT is disabled; and vice versa.

[0199] g. In one example, X is a low frequency non-separable transform (LFNST). If LFNST is enabled, ACT is disabled; and vice versa.

[0200] h. In one example, X is pulse code modulation (PCM). If PCM is enabled, ACT is disabled; and vice versa.

[0201] i. In one example, X is Transform Skip (TS). If TS is enabled, ACT is disabled; and vice versa.

[0202] j. In one example, X is intra sub-block segmentation (ISP). If ISP is enabled, ACT is disabled; and vice versa.

[0203] k. Furthermore, alternatively, the indication of the use of ACT may be conditionally signaled based on the use of codec tool X.

[0204] i. In one example, when codec X is enabled, signaling indication of the use of ACT may be skipped.

[0205] 1. Furthermore, alternatively, the indication of the use of tool X may be conditionally signaled based on the use of ACT.

[0206] i. In one example, when ACT is enabled, signaling indication of the use of codec tool X may be skipped.

[0207] m. Alternatively, both the above tools and ACT may be enabled for one video block.

[0208] 4. Both ACT and dual-tree partitioning structures can be enabled for one video unit (eg picture / slice / slice / brick).

[0209] a. Furthermore, alternatively, the signaling of the use of the dual-tree partitioning structure is moved from the video unit level to the video block (eg, CTU / CTB or VPDU) level.

[0210] b. Both ACT and dual-tree partitioning structures can be enabled for one video block.

[0211] i. In one example, at the encoder side, ACT may be applied to CTU / CTB before segmenting the CTU / CTB.

[0212] ii. In one example, at the decoder side, the CTU / CTB may be decoded first and then the inverse color space transform may be performed.

[0213] 5. Both ACT and ILR can be enabled for one video unit (eg picture / slice / slice / tile).

[0214] a. Furthermore, alternatively, the signaling of the use of ILR is moved from the video unit level to the video block (eg, CU / TU) level.

[0215] b. Both ACT and ILR may be enabled for one video block (eg, CU / TU).

[0216] i. In one example, at the encoder side, ACT can be applied first and then ILR can be performed. That is, the prediction signal and the residual signal are first generated in the original domain, ACT is applied to convert the residual signal from the original domain to a different color space domain; and ILR is further applied to convert the residual signal to the shaping domain.

[0217] ii. In one example, at the decoder side, ILR can be applied first, followed by inverse color space transformation. That is, ILR is first applied to transform the decoded residual signal from the shaping domain to the color space domain. Then ACT is applied to transform from the color space domain to the original domain.

[0218] 6. Both ACT and SBT can be enabled for one video block (eg, CU / TU).

[0219] a. In one example, two TUs are used to encode the prediction value error in the converted color space domain (e.g., the original domain is RGB, and the converted domain is YCoCg using ACT), one of which is all zero coefficients and the other has non-zero coefficients.

[0220] i. In addition, alternatively, a TU with non-zero coefficients can be obtained by transform or transform skipping.

[0221] ii. In one example, (eg, in a manner similar to SBT), it may be signaled how the partitioning into 2 TUs is done; and / or which type of transform is applied to one of the two TUs.

[0222] 7. For video units (e.g., slice / slice / brick / picture), ACT can be enabled at different levels (e.g., CU level and TU level).

[0223] a. In one example, for different video blocks in a video unit, the signaling of the use of ACT can be at different levels, such as CU level and TU level.

[0224] b. Whether to enable / signal ACT at CU or TU level and / or whether to signal the use of ACT may be determined based on codec characteristics.

[0225] i. In one example, whether to enable / signal ACT at CU or TU level may be determined based on the dimension of the current CU. Assume that the width and height of the current CU are denoted as W and H, respectively.

[0226] 1. For example, whether to enable / signal ACT at the CU or TU level may be determined based on whether the size of the current CU is larger than the size of the VPDU.

[0227] a. In one example, if the size of the current CU is larger than the size of the VPDU, the signaling / use of ACT at the CU level may be applied (ie, all TUs share the same on / off control of ACT). Otherwise, the signaling / use of ACT at the TU level may be applied.

[0228] b. Alternatively, if the size of the current CU is larger than the size of the VPDU, TU-level ACT signaling / usage may be applied (ie, all TUs share the same ACT on / off control). Otherwise, CU-level ACT signaling / usage may be applied.

[0229] c. In one example, if the size of the current CU is larger than the size of the VPDU, ACT is disabled without signaling.

[0230] 2. In one example, whether to enable / signal ACT at CU or TU level may be determined based on whether the size of the current CU is larger than the maximum TU size.

[0231] 3. In one example, when W>=T1 and H>=T2, ACT is disabled.

[0232] For example, T1=T2=32.

[0233] a. Alternatively, when W>=T1 or H>=T2, ACT is disabled. For example, T1=T2=32.

[0234] b. Alternatively, when W<=T1 and H<=T2, disable ACT. For example, T1=T2=8.

[0235] c. Alternatively, when W<=T1 or H<=T2, ACT is disabled. For example, T1=T2=8.

[0236] d. Alternatively, when W*H>=T, disable ACT. For example, T=1024.

[0237] e. Alternatively, when W*H<=T, disable ACT. For example, T=64.

[0238] ii. In one example, whether to enable / signal ACT at the CU or TU level may be determined based on whether a sub-block partitioning tool such as ISP is used to encode and decode the current CU.

[0239] Fig.14 1 is a block diagram of a video processing apparatus 1400. Apparatus 1400 may be used to implement one or more methods described herein. Apparatus 1400 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. Apparatus 1400 may include one or more processors 1402, one or more memories 1404, and video processing hardware 1406. Processor(s) 1402 may be configured to implement one or more methods described in this document. Memory(s) 1404 may be used to store data and code for implementing the methods and techniques described herein. Video processing hardware 1406 may be used to implement some of the techniques described in this document in hardware circuits.

[0240] Fig.15 is another example of a block diagram of a video processing system that may implement the disclosed technology. Fig.1515 is a block diagram illustrating an example video processing system 1510 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 1510. System 1510 may include an input 1512 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 may be received in a compressed or encoded format. Input 1512 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces (e.g., Ethernet, passive optical network (PON), etc.) and wireless interfaces (e.g., Wi-Fi or cellular interfaces).

[0241] System 1510 may include a codec component 1514, which may implement various codec methods described in this document. Codec component 1514 may reduce the average bit rate of the video from input 1512 to the output of codec component 1514 to generate a codec representation of the video. Therefore, codec technology is sometimes referred to as video compression or video transcoding technology. The output of codec component 1514 may be stored or transmitted via a connected communication (such as represented by component 1516). Component 1518 may use a bitstream (or codec) representation of the communication transmission of the video stored or received at input 1512 to generate pixel values ​​or displayable video sent to display interface 1520. The process of generating a user-viewable video from a bitstream representation is sometimes referred to as video decompression. In addition, although some video processing operations are referred to as "codec" operations or tools, it should be understood that the codec tool or operation is used on the encoder side, and the corresponding decoding tool or operation of the inverse codec result will be performed using a decoder.

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

[0243] In some embodiments, the video encoding and decoding method may use Fig.14 or Fig.15 The described apparatus is implemented on a hardware platform.

[0244] Fig.16A16 is a flowchart of an example method 1610 for video processing. The method 1610 includes, in step 1612, determining to disable an adaptive color space transform (ACT) tool for a video unit due to the use of a dual-tree partitioning structure for conversion between a video unit and a coded representation of the video unit. The method 1610 also includes, in step 1614, performing the conversion by disabling the ACT tool for the video unit based on the determination. In some embodiments of the method 1610 and other example methods, use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color gamut to a second color gamut, or, during decoding, converting a representation of a visual signal from a second color gamut to a first color gamut.

[0245] Fig. 16B 16 is a flow chart of an example method 1620 of video processing. The method 1620 includes, in step 1622, determining to use both a dual-tree partitioning structure and an adaptive color space transform (ACT) tool for conversion between a video unit and a codec representation of the video unit. The method 1620 also includes, in step 1624, based on the determination, performing the conversion by enabling the ACT tool for the video unit.

[0246] Fig.17A 17 is a flow chart of an example method 1710 for video processing. The method 1710 includes, at step 1712, determining that the applicability of a first codec tool and a second codec tool are mutually exclusive for conversion between a current video block of a video and a codec representation of the video. The method 1710 also includes, at step 1714, performing the conversion based on the determination.

[0247] Fig. 17B 17 is a flow chart of an example method 1720 of video processing. The method 1720 includes, in step 1722, determining to use both a codec tool and an adaptive color space transform (ACT) tool for a conversion between a current video block of a video and a codec representation of the video. The method 1720 also includes, in step 1724, based on the determination, performing the conversion by enabling the ACT tool for the current video block.

[0248] Fig. 17C 17 is a flow chart of an example method 1730 for video processing. The method 1730 includes, in step 1732, determining that an adaptive color space transform (ACT) tool is disabled for conversion between a current video block of a video unit of a video and a codec representation of the video due to an in-loop shaping (ILR) tool being enabled for the video unit. The method 1730 also includes, in step 1734, performing the conversion based on the determination. In some embodiments of the method 1730 and other example methods, use of the ILR tool includes constructing the video unit based on luma shaping between the first domain and the second domain and / or scaling of the chroma residual in a luma-dependent manner.

[0249] Fig.17D 1740 is a flow chart of an example method 1740 for video processing. The method 1740 includes, in step 1742, determining that both an in-loop reshaping (ILR) tool and an adaptive color space transform (ACT) tool are enabled for conversion between a video unit and a codec representation of the video unit. The method 1740 also includes, in step 1744, performing the conversion based on the determination.

[0250] Fig.17E 17 is a flow chart of an example method 1750 for video processing. The method 1750 includes, in step 1752, determining that both a sub-block transform (SBT) tool and an adaptive color space transform (ACT) codec tool are enabled for conversion between a current video block and a codec representation of the current video block. The method 1750 also includes, in step 1754, performing the conversion based on the determination. In some embodiments of the method 1750 and other example methods, the use of the SBT tool includes: applying a transform process or an inverse transform process on a sub-portion of the prediction residual block.

[0251] Fig.18 18 is a flow chart of an example method 1800 for video processing. The method 1800 includes, in step 1810, performing a conversion between a video unit of a video and a codec representation of the video, wherein the video unit includes one or more partitions of a first level, and the one or more partitions of the first level include one or more partitions of a second level. In some embodiments, the codec representation conforms to a formatting rule, wherein the formatting rule specifies whether to include a partition level at which a syntax element indicating the use of an adaptive color space transform (ACT) tool to represent one or more second level partitions in the codec representation is included in the codec representation, wherein the partition level is one of a first level, a second level, or a video unit.

[0252] Some embodiments of the disclosed technology include making a decision or determination to enable a video processing tool or mode. In one example, when a video processing tool or mode is enabled, the encoder will use or implement the tool or mode in the processing of the video block, but will not necessarily modify the generated bitstream based on the use of the tool or mode. That is, the conversion from the video block to the bitstream representation of the video will use the video processing tool or mode when the video processing tool or mode is enabled based on the decision or determination. In another example, when the video processing tool or mode is enabled, the decoder will process the bitstream knowing that the bitstream has been modified based on the video processing tool or mode. That is, the conversion from the bitstream representation of the video to the video block will be performed using the video processing tool or mode enabled based on the decision or determination.

[0253] Some embodiments of the disclosed technology include making a decision or determination to disable a video processing tool or mode. In one example, when the video processing tool or mode is disabled, the encoder will not use the tool or mode in the conversion of video blocks to a bitstream representation of the video. In another example, when the video processing tool or mode is disabled, the decoder will process the bitstream knowing that the bitstream has not been modified according to the decision or determination to disable the video processing tool or mode.

[0254] 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 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, for example, to bits in a bitstream that are concatenated or distributed at different locations, as defined by a syntax. For example, a macroblock may be encoded based on a transformed and coded error residual value and using bits in a header and other fields in a bitstream.

[0255] A list of terms is used to further describe the various solutions and embodiments described in this document. The first set of terms describes certain features and aspects of the disclosed technology in the preceding sections.

[0256] Item 1 in the preceding section provides additional examples of the following clauses.

[0257] 1. A video processing method, comprising: determining that an adaptive color space transform (ACT) tool is disabled for a video unit due to the use of a dual-tree partitioning structure for conversion between a video unit and a codec representation of the video unit; and performing conversion by disabling the ACT tool for the video unit based on the determination.

[0258] 2. A method as described in clause 1, wherein the bitstream representation does not include bits for providing information about the use of the ACT.

[0259] Item 2 in the preceding section provides additional examples of the following clauses.

[0260] 1. A method of video processing, comprising: determining that an adaptive color space transform (ACT) is disabled for conversion between a video unit and a bitstream representation of the video unit due to an in-loop reshaper being enabled for conversion between the video unit and the bitstream representation of the video unit; and, based on the determination, performing the conversion by disabling the ACT for the video unit.

[0261] 2. A method as described in clause 1, wherein the bitstream representation includes bits for providing information about the use of ILR.

[0262] Item 3 in the preceding section provides additional examples of the following clauses.

[0263] 3. A video processing method, comprising: determining that an adaptive color space transform (ACT) tool is disabled for conversion between a video unit and a codec representation of the video unit due to the use of a codec tool; and, based on the determination, performing the conversion by disabling the ACT tool for the video unit.

[0264] 4. A method according to clause 3, wherein the encoding and decoding tool corresponds to a cross-component linear model tool.

[0265] 5. A method according to clause 3, wherein the codec tool corresponds to joint chroma residual codec.

[0266] 6. The method of clause 3, wherein the codec corresponds to a Multiple Transform Selection (MTS) codec.

[0267] Item 4 in the preceding section provides additional examples of the following clauses.

[0268] 7. A video processing method, comprising: determining that conversion between a video unit and a bitstream representation of the video unit uses both a dual-tree partitioning structure and an adaptive color space transform (ACT) codec tool; and, based on the determination, performing the conversion by enabling ACT for the video unit.

[0269] 8. The method of clause 7, wherein the bitstream representation includes signaling the dual-tree partitioning structure at a video block level that is finer than a video unit level.

[0270] Item 5 in the preceding section provides additional examples of the following terms.

[0271] 9. A method of video processing, comprising: determining that conversion between a video unit and a bitstream representation of the video unit uses both in-loop reshaping (ILR) and adaptive color space transform (ACT) codec tools; and, based on the determination, performing the conversion using the ILR and ACT codec tools.

[0272] 10. The method of clause 9, wherein performing the conversion comprises: during encoding, first applying an ACT codec and then applying ILR to the result of applying the ACT.

[0273] 11. The method of clause 9, wherein performing the conversion comprises first applying ILR and then applying an inverse color space transform to a result of the ILR.

[0274] Item 6 in the preceding section provides additional examples of the following clauses.

[0275] 12. A video processing method, comprising: determining that conversion between a video unit and a bitstream representation of the video unit uses both SBT and Adaptive Color Space Transform (ACT) codec tools; and, based on the determination, using the SBT and ACT codec tools to perform the conversion.

[0276] 13. A method according to clause 12, wherein the prediction error during conversion is transformed from an RGB color space to a YCoCg color space.

[0277] 14. A method according to clause 13, wherein after transformation, the prediction error is encoded using at least two transform unit (TU) partitions.

[0278] Item 7 in the preceding section provides additional examples of the following clauses.

[0279] 15. A method according to any of the preceding clauses, wherein a video unit comprises a strip or a slice or a tile or a picture.

[0280] 16. The method of clause 15, wherein the determining is performed at a sub-video unit level, wherein the sub-unit level corresponds to a codec unit (CU) or a transform unit (TU).

[0281] 17. The method of clause 16, wherein the determination at the sub-video unit level is based on codec characteristics at the sub-unit level.

[0282] 18. A method according to clause 17, wherein the codec characteristics include the size of the CU and / or the size of the TU, and / or the relationship between the size of the CU and the size of the TU.

[0283] 19. A method as claimed in any of the preceding clauses, wherein converting comprises decoding a bitstream representation to generate a video unit.

[0284] 20. A method as described in any of the preceding clauses, wherein converting comprises encoding the video unit into a bitstream representation.

[0285] 21. A video encoder apparatus comprising a processor configured to implement the method according to any one or more of the preceding clauses.

[0286] 22. A video decoder device comprising a processor configured to implement the method according to any one or more of the preceding clauses.

[0287] 23. A computer readable medium having stored thereon code for implementing the method according to any one or more of the preceding clauses.

[0288] The second set of clauses describes certain features and aspects of the technology disclosed in the preceding sections (eg, Example Implementations 1 and 4).

[0289] 1. A video processing method, comprising: determining to disable an adaptive color space transform (ACT) tool for a video unit due to the use of a dual-tree partitioning structure for conversion between a video unit and a codec representation of the video unit; and, based on the determination, performing conversion by disabling the ACT tool for the video unit; wherein use of the ACT tool comprises: during encoding, converting a representation of a visual signal from a first color gamut to a second color gamut, or, during decoding, converting a representation of a visual signal from a second color gamut to a first color gamut.

[0290] 2. The method according to clause 1, wherein the visual signal comprises: an original signal, a predicted signal, a reconstructed signal or a residual signal.

[0291] 3. The method of clause 1, wherein the video unit corresponds to a slice, a tile, a picture, or a video region covering one or more codec tree units.

[0292] 4. The method of clause 1, wherein the ACT tool is disabled for all codec blocks in the video unit and the codec blocks are generated based on a dual-tree partitioning structure.

[0293] 5. The method of clause 1, wherein the dual-tree partitioning structure uses separate partitioning trees for luma and chroma components.

[0294] 6. A method as described in clause 1, wherein the use of the ACT tool is signaled based on the use of the dual-tree partitioning structure.

[0295] 7. The method of clause 1, wherein the codec representation excludes bits that provide information about the use of the ACT tool due to the use of the dual-tree partitioning structure.

[0296] 8. A video processing method, comprising: determining that a dual-tree partitioning structure and an adaptive color space transform (ACT) tool are used for conversion between a video unit and a codec representation of the video unit; and based on the determination, performing the conversion by enabling the ACT tool for the video unit; wherein the use of the ACT tool includes: during encoding, converting the representation of the visual signal from a first color gamut to a second color gamut, or, during decoding, converting the representation of the visual signal from the second color gamut to the first color gamut.

[0297] 9. The method of clause 8, wherein the visual signal comprises: an original signal, a predicted signal, a reconstructed signal or a residual signal.

[0298] 10. The method of clause 8, wherein the video unit corresponds to a slice, a tile, a picture, or a video region covering one or more codec tree units.

[0299] 11. The method of clause 8, wherein the codec representation comprises signaling the dual-tree partitioning structure at a video block level that is finer than a video unit level.

[0300] 12. The method of clause 8, wherein both the dual-tree partitioning structure and the ACT tool are enabled for video blocks of the video unit.

[0301] 13. The method of clause 12, wherein performing the conversion comprises applying an ACT tool to the video blocks prior to segmenting the video blocks during encoding.

[0302] 14. The method of clause 12, wherein performing the conversion comprises decoding the video block and then performing an inverse color space transform on the decoded result.

[0303] 15. A method as described in any of clauses 1 to 14, wherein converting comprises decoding the codec representation to generate the video unit.

[0304] 16. A method as described in any of clauses 1 to 14, wherein converting comprises encoding and decoding the video unit into a codec representation.

[0305] 17. A video processing apparatus, comprising: a processor configured to implement the method according to any one or more of clauses 1 to 16.

[0306] 18. A computer readable medium having stored thereon program code which, when executed, causes a processor to implement the method according to any one or more of clauses 1 to 16.

[0307] The third group of clauses describes certain features and aspects of the technology disclosed in the preceding sections, such as example embodiments 2, 3, 5, and 6.

[0308] 1. A video processing method, comprising: determining that the applicability of a first codec tool and a second codec tool are mutually exclusive for conversion between a current video block of a video and a codec representation of the video; and performing the conversion based on the determination; wherein the first codec tool corresponds to an adaptive color space transform (ACT) tool; wherein use of the ACT tool includes: during encoding, converting a representation of a visual signal from a first color gamut to a second color gamut, or, during decoding, converting a representation of a visual signal from a second color gamut to a first color gamut.

[0309] 2. The method according to clause 1, wherein the visual signal comprises: an original signal, a predicted signal, a reconstructed signal or a residual signal.

[0310] 3. The method of clause 1, wherein the second codec tool corresponds to a cross-component linear model tool that uses a linear model to derive a prediction value for a chroma component from another component.

[0311] 4. A method according to clause 1, wherein the second codec corresponds to a joint chroma residual codec in which prediction residual blocks of two color components are processed jointly.

[0312] 5. The method according to clause 1, wherein the second codec tool corresponds to a matrix-based intra prediction tool, which tool comprises generating a prediction signal based on a predefined matrix and samples obtained along two axes of a boundary of the current video block.

[0313] 6. A method according to clause 1, wherein the second codec tool corresponds to a quantized residual block differential pulse codec modulation (QR-BDPCM) tool, which includes encoding and decoding a residual difference value between a quantized residual and a predicted residual into a codec representation, or deriving the quantized residual from a residual difference value included in the codec representation.

[0314] 7. The method of clause 1, wherein the second codec tool corresponds to a sub-block transform (SBT) tool in which a current video block is divided into a plurality of sub-blocks and a transform or an inverse transform is performed on only a portion of the sub-blocks.

[0315] 8. The method of clause 1, wherein the second codec tool corresponds to a multiple transform selection (MTS) tool that selects a transform among a plurality of transforms for the current video block.

[0316] 9. A method according to clause 1, wherein the second codec tool corresponds to a low frequency non-separable transform (LFNST) tool, which tool includes applying a forward secondary transform to the output of a forward main transform applied to the residual of the video block before quantization during encoding, or includes applying an inverse secondary transform to the dequantized output of the video block before applying an inverse main transform during decoding.

[0317] 10. The method of clause 1, wherein the second codec tool corresponds to a pulse code modulation (PCM) tool that digitally represents the sampled analog signal.

[0318] 11. The method of clause 1, wherein the second codec corresponds to a transform skip (TS) mode in which a transform is bypassed or an identify transform is applied.

[0319] 12. The method of clause 1, wherein the second codec tool corresponds to an intra sub-block partitioning (ISP) tool, the tool comprising dividing the luma intra prediction block vertically or horizontally into sub-partitions.

[0320] 13. The method of clause 1, wherein use of the first codec tool is signaled based on use of the second codec tool.

[0321] 14. A method according to clause 13, wherein the codec representation excludes bits providing information about the use of the first codec due to the use of the second codec.

[0322] 15. The method of clause 1, wherein use of the second codec tool is signaled based on use of the first codec tool.

[0323] 16. The method of clause 15, wherein the codec representation excludes bits that provide information about the use of the second codec due to the use of the first codec.

[0324] 17. A video processing method, comprising: determining that a conversion between a current video block of a video and a codec representation of the video uses both a codec tool and an adaptive color space transform (ACT) tool; and, based on the determination, performing the conversion by enabling the ACT tool for the current video block, wherein the use of the ACT tool includes: during encoding, converting the representation of the visual signal from a first color gamut to a second color gamut, or, during decoding, converting the representation of the visual signal from the second color gamut to the first color gamut.

[0325] 18. A method according to clause 17, wherein the codec tool includes a matrix-based intra prediction (MIP) tool, a sub-block transform (SBT) tool, a multiple transform selection (MTS), a low frequency non-separable transform (LFNST) tool or a transform skip (TS) tool.

[0326] 19. A video processing method, comprising: for a conversion between a current video block of a video unit of a video and a codec representation of the video, determining that an adaptive color space transform (ACT) tool is disabled for the conversion due to enabling an in-loop shaping (ILR) tool for the video unit; and performing the conversion based on the determination, wherein use of the ILR tool comprises: constructing the video unit based on luminance shaping between a first domain and a second domain and / or scaling of a chrominance residual in a luminance-dependent manner, and wherein use of the ACT tool comprises: during encoding, converting a representation of a visual signal from a first color domain to a second color domain, or, during decoding, converting a representation of a visual signal from a second color domain to a first color domain.

[0327] 20. The method of clause 19, wherein the video unit corresponds to a slice, a tile, a picture, or a video region covering one or more codec tree units.

[0328] 21. The method of clause 19, wherein use of the ACT tool is signaled based on use of the ILR tool.

[0329] 22. The method of clause 19, wherein the codec representation excludes bits that provide information about the use of ACT due to the use of ILR.

[0330] 23. A video processing method, comprising: determining to enable both an in-loop reshaping (ILR) tool and an adaptive color space transform (ACT) tool for conversion between a video unit and a codec representation of the video unit; and, performing the conversion based on the determination; and wherein the use of the ILR tool comprises: constructing the video unit based on a first domain and a second domain and / or chroma residual scaling performed in a luminance-dependent manner, and wherein the use of the ACT tool comprises: during encoding, converting a representation of a visual signal from a first color domain to a second color domain, or, during decoding, converting a representation of a visual signal from a second color domain to a first color domain.

[0331] 24. The method of clause 23, wherein the video unit corresponds to a slice, a tile, a picture, or a video region covering one or more codec tree units.

[0332] 25. The method of clause 23, wherein the codec representation comprises signaling a dual-tree partitioning structure at a video block level that is finer than a video unit level.

[0333] 26. The method of clause 23, wherein both the ILR tool and the ACT tool are enabled for the video chunks of the video unit.

[0334] 27. The method of clause 26, wherein performing the conversion comprises: during encoding, first applying an ACT tool to the video block and then applying an ILR tool to the result of applying the ACT tool.

[0335] 28. The method of clause 26, wherein performing the conversion comprises first applying an ILR tool to the video block and then applying an inverse color space transform to the result of applying the ILR tool.

[0336] 29. A video processing method, comprising: determining to enable both a sub-block transform (SBT) tool and an adaptive color space transform (ACT) codec tool for conversion between a current video block and a codec representation of the current video block; and performing the conversion based on the determination, wherein the use of the SBT tool comprises: applying a transform process or an inverse transform process on a sub-portion of a prediction residual block, and wherein the use of the ACT tool comprises: during encoding, converting a representation of a visual signal from a first color domain to a second color domain, or, during decoding, converting a representation of a visual signal from a second color domain to a first color domain.

[0337] 30. A method according to clause 29, wherein the prediction error is converted from RGB color space to YCoCg color space before a transform process of encoding, or the prediction error is converted from YCoCg color space to RGB color space after an inverse transform process of decoding.

[0338] 31. A method according to clause 30, wherein the prediction error is encoded using two transform units (TUs), the two transform units (TUs) comprising a first transform unit (TU) and a second transform unit (TU).

[0339] 32. The method of clause 31, wherein a first transform unit (TU) has all-zero coefficients and a second transform unit (TU) has non-zero coefficients.

[0340] 33. A method according to clause 32, wherein the second transform unit (TU) is obtained by performing a transform or a transform skip.

[0341] 34. A method according to clause 31, wherein the codec representation comprises information about how the current video block is divided into two transform units (TUs) and / or about the type of transform applied to at least one of the two transform units (TUs).

[0342] 35. A method according to any of clauses 1 to 34, wherein converting comprises generating a video unit or a current video block from a codec representation.

[0343] 36. A method according to any of clauses 1 to 34, wherein converting comprises generating a codec representation from the video unit or the current video block.

[0344] 37. A video processing apparatus comprising: a processor configured to implement the method according to any one or more of clauses 1 to 36.

[0345] 38. A computer readable medium having stored thereon program code which, when executed, causes a processor to implement the method according to any one or more of clauses 1 to 36.

[0346] The fourth group of clauses describes certain features and aspects of the technology disclosed in the previous sections, such as Example Implementation 7.

[0347] 1. A video processing method, comprising: performing conversion between a video unit of a video and a codec representation of the video, wherein the video unit includes one or more partitions at a first level, the one or more partitions of the first level including one or more partitions of a second level, wherein the codec representation conforms to a formatting rule, wherein the formatting rule specifies whether to include a partition level, at which a syntax element indicating the use of an adaptive color space transform (ACT) tool to represent one or more second level partitions in the codec representation is included in the codec representation, wherein the partition level is one of the first level, the second level, or the video unit.

[0348] 2. A method according to clause 1, wherein the video unit corresponds to a slice or a tile or a picture.

[0349] 3. The method of clause 1, wherein use of the ACT tool comprises converting a representation of a visual signal from a first color gamut to a second color gamut during encoding, or converting a representation of a visual signal from a second color gamut to a first color gamut during decoding.

[0350] 4. A method according to any of clauses 1 to 3, wherein the formatting rules are specified at different levels for different video blocks in a video unit.

[0351] 5. A method according to clause 4, wherein the different levels correspond to codec units (CUs) and / or transform units (TUs).

[0352] 6. A method according to any of clauses 1 to 5, wherein the formatting rules specify the partition level based on the codec characteristics of the conversion.

[0353] 7. A method according to clause 6, wherein the codec characteristics include a width (W) and / or a height (H) of the current codec unit.

[0354] 8. The method of clause 7, wherein the formatting rule specifies the partition level based on whether the size of the current codec unit is greater than the size of a virtual pipeline data unit (VPDU).

[0355] 9. A method as described in clause 8, wherein the partition level corresponds to a codec unit (CU) level in case the size of the current codec unit is larger than the size of the VPDU.

[0356] 10. A method as described in clause 8, wherein, in case the size of the current codec unit is larger than the size of the VPDU, the partition level corresponds to the transform unit (TU) level.

[0357] 11. A method as described in clause 8, wherein the formatting rules provide that the syntax element is not included due to disabling the ACT tool if the size of the current codec unit is greater than the size of the VPDU.

[0358] 12. The method of clause 7, wherein the formatting rule specifies the partition level based on whether the size of the current codec unit is greater than the maximum size of a transform unit (TU).

[0359] 13. A method according to clause 1, wherein the formatting rules provide that the syntax element is not included due to disabling the ACT tool when W>=T1 and H>=T2, where W and H correspond to the width and height of the current codec unit, respectively.

[0360] 14. A method according to clause 1, wherein the formatting rules provide that the syntax element is not included due to disabling the ACT tool when W>=T1 or H>=T2, where W and H correspond to the width and height of the current codec unit, respectively.

[0361] 15. A method as described in clause 7, wherein the formatting rules provide that the syntax element is not included due to disabling the ACT tool when W<=T1 and H<=T2, where W and H correspond to the width and height of the current codec unit, respectively.

[0362] 16. A method according to clause 7, wherein the formatting rules provide that the syntax element is not included due to disabling the ACT tool if W<=T1 or H<=T2, where W and H correspond to the width and height of the current codec unit, respectively.

[0363] 17. A method according to clause 7, wherein the formatting rules provide that the syntax element is not included due to disabling the ACT tool if W*H>=T, where W and H correspond to the width and height of the current codec unit, respectively.

[0364] 18. A method as described in clause 7, wherein the formatting rules provide that the syntax element is not included due to disabling the ACT tool if W*H<=T, where W and H correspond to the width and height of the current codec unit, respectively.

[0365] 19. The method of clause 7, wherein the formatting rules specify the partition level based on whether the current codec unit is encoded or decoded with a sub-block partitioning tool.

[0366] 20. A method according to any one of clauses 1 to 19, wherein the conversion comprises generating a video unit from a codec representation.

[0367] 21. A method according to any of clauses 1 to 19, wherein converting comprises generating a codec representation from the video unit.

[0368] 22. A video processing apparatus, comprising: a processor configured to implement the method according to any one or more of clauses 1 to 21.

[0369] 23. A computer readable medium having stored thereon program code which, when executed, causes a processor to implement the method according to any one or more of clauses 1 to 21.

[0370] From the foregoing, it will be appreciated that, for purposes of illustration, specific embodiments of the presently disclosed technology have been described herein, but that various modifications may be made without departing from the scope of the present invention. Therefore, the presently disclosed technology is not to be limited except as set forth in the appended claims.

[0371] The embodiments of the subject names and functional operations described in this patent document can be implemented in various systems, digital electronic circuits, or in computer software, firmware or hardware, including the structures disclosed in this specification and their structural equivalents, or a combination of one or more thereof. The embodiments of the subject names described in this specification can be implemented as one or more computer program products, that is, one or more modules of computer program instructions encoded and decoded on a tangible and non-transitory computer-readable medium, which are executed by a data processing device or control the operation of the data processing device. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a storage device, a material composition that affects a machine-readable propagation signal, or a combination of one or more thereof. The term "data processing unit" or "data processing device" covers all devices, devices, and machines for processing data, such as a programmable processor, a computer, or multiple processors or computers. In addition to hardware, the device may also include code that creates an execution environment for the computer program in question, for example, code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more thereof.

[0372] A computer program (also referred to as a program, software, software application, script, or code) may be written in any form of programming language (including compiled or interpreted languages) and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may be stored in a portion 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, or in multiple coordinated files (e.g., files that store one or more modules, subroutines, or portions of code). A computer program may be deployed for execution on one or more computers that are located at one site or distributed across multiple sites and interconnected by a communications network.

[0373] The processes and logic flows described in this specification may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by special purpose logic circuits, and the apparatus may also be implemented as special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits).

[0374] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and any one or more of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor that executes instructions and one or more storage devices that store instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or be coupled to one or more mass storage devices by operation to receive data from them or transfer data to one or more mass storage devices, or both. However, a computer does not necessarily have such a device. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices. The processor and memory can be supplemented by, or incorporated into, a dedicated logic circuit.

[0375] The specification and drawings are to be regarded as exemplary only, where exemplary means example.As used herein, the use of "or" is intended to include "and / or" unless the context clearly dictates otherwise.

[0376] Although this patent document contains many details, they should not be construed as limitations on the scope of any invention or claim, but rather as descriptions of features of particular embodiments of particular inventions. Certain features described in this patent document in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various functions described in the context of a single embodiment may also be implemented separately in multiple embodiments, or in any suitable subcombination. In addition, although the above-mentioned features may be described as working in certain combinations, or even initially claimed to be so, in some cases, one or more features in the claim combination may be removed from the combination, and the claim combination may be directed to subcombinations or variations of subcombinations.

[0377] Likewise, although operations are described in a particular order in the drawings, this should not be understood as requiring that such operations be performed in the particular order or order shown, or that all illustrated operations be performed, in order to achieve the desired results. In addition, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.

[0378] Only a few implementations and examples are described, and other implementations, enhancements, and variations may be made based on what is described and illustrated in this patent document.

Claims

1. A method for processing video data, comprising: determining the applicability of a first codec mode and a second codec mode for a conversion between a current video unit of a video and a bitstream of the video are mutually exclusive, wherein the first codec mode converts a visual signal from a first color gamut to a second color gamut for an encoding operation or the first codec mode converts the visual signal from the second color gamut to the first color gamut for a decoding operation; and performing said converting based on said determining, The second encoding and decoding mode is an intra-frame sub-partition mode in which the current video unit is divided into a plurality of sub-regions sharing the same intra-frame mode, and Wherein, when the first codec mode is enabled for the current video unit, the second codec mode is disabled for the current video unit.

2. The method according to claim 1, wherein: When the second codec mode is enabled for the current video unit, the first codec mode is disabled for the current video unit.

3. The method according to claim 1, wherein: When the first codec mode is enabled, a third codec mode is enabled for the luma component of the current video unit, and the third codec mode is disabled for the chroma components of the current video unit.

4. The method according to claim 3, wherein: In the third coding mode, the difference between the quantized residual derived by intra prediction and the predicted value of the quantized residual is presented in the bitstream.

5. The method according to claim 3, wherein: In the third coding mode, prediction samples are derived by performing a boundary downsampling operation on reference samples based on a size of the current video unit, followed by a matrix-vector multiplication operation, and optionally followed by an upsampling operation.

6. The method according to claim 1, wherein: When the first codec mode is enabled, a fourth codec mode is enabled for the luma component and the chroma component of the current video unit.

7. The method according to claim 6, wherein: The fourth coding mode uses a piecewise linear mode to map the luma component between different domains, and scales the chroma residual using a scaling coefficient derived based on the reconstructed luma samples.

8. The method according to claim 6, wherein: The fourth encoding and decoding mode divides the transform region into a plurality of transform sub-regions, and only one transform sub-region has non-zero residual samples, and wherein the size of the transform sub-region having the non-zero residual samples is smaller than or equal to that of the other transform sub-regions.

9. The method according to claim 1, wherein: The converting includes encoding the current video unit into the bitstream.

10. The method according to claim 1, wherein: The converting includes decoding the current video unit from the bitstream.

11. The method according to claim 1, wherein: The visual signal includes: an original signal, a predicted signal, a reconstructed signal or a residual signal.

12. The method according to claim 1, wherein: Use of the first codec mode is signaled based on use of the second codec mode.

13. The method according to claim 12, wherein: Due to the use of the second codec mode, the bitstream excludes bits providing information about the use of the first codec mode.

14. The method according to claim 1, wherein: Use of the second codec mode is signaled based on use of the first codec mode.

15. The method according to claim 14, wherein: Due to the use of the first codec mode, the bitstream excludes bits providing information about the use of the second codec mode.

16. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein: The instructions, when executed by the processor, cause the processor to: determining the applicability of a first codec mode and a second codec mode for a conversion between a current video unit of a video and a bitstream of the video are mutually exclusive, wherein the first codec mode converts a visual signal from a first color gamut to a second color gamut for an encoding operation or the first codec mode converts the visual signal from the second color gamut to the first color gamut for a decoding operation; and performing said converting based on said determining, The second encoding and decoding mode is an intra-frame sub-partition mode in which the current video unit is divided into a plurality of sub-regions sharing the same intra-frame mode, and Wherein, when the first codec mode is enabled for the current video unit, the second codec mode is disabled for the current video unit.

17. The device according to claim 16, wherein: When the second codec mode is enabled for the current video unit, the first codec mode is disabled for the current video unit.

18. The device according to claim 16, wherein: When the first codec mode is enabled, a third codec mode is enabled for a luma component of the current video unit, and the third codec mode is disabled for a chroma component of the current video unit, and In the third coding mode, the difference between the quantized residual derived using intra-frame prediction and the predicted value of the quantized residual is presented in the bitstream, or in the third coding mode, the predicted sample is derived by performing a boundary downsampling operation on the reference sample based on the size of the current video unit, followed by a matrix-vector multiplication operation, and optionally followed by an upsampling operation.

19. The device according to claim 16, wherein: When the first codec mode is enabled, a fourth codec mode is enabled for the luma component and the chroma component of the current video unit, and The fourth coding mode uses a piecewise linear mode to map the luminance component between different domains, and uses a scaling coefficient derived based on the reconstructed luminance samples to scale the chrominance residual, or the fourth coding mode divides the transform region into multiple transform sub-regions, and only one transform sub-region has non-zero residual samples, and the size of the transform sub-region with non-zero residual samples is less than or equal to that of other transform sub-regions.

20. A non-transitory computer-readable storage medium storing instructions that cause a processor to: For a conversion between a current video unit of a video and a bitstream of the video, determining the applicability of a first codec mode and a second codec mode are mutually exclusive, wherein, For encoding operation, the first codec mode converts the visual signal from a first color gamut to a second color gamut, or for decoding operation, the first codec mode converts the visual signal from the second color gamut to the first color gamut; as well as performing said converting based on said determining, The second encoding and decoding mode is an intra-frame sub-partition mode in which the current video unit is divided into a plurality of sub-regions sharing the same intra-frame mode, and Wherein, when the first codec mode is enabled for the current video unit, the second codec mode is disabled for the current video unit.

21. The non-transitory computer-readable storage medium of claim 20, wherein: When the second codec mode is enabled for the current video unit, the first codec mode is disabled for the current video unit.

22. A method for storing a bit stream of a video, comprising: For a current video unit of the video, determining the applicability of a first codec mode and a second codec mode are mutually exclusive, wherein for an encoding operation, the first codec mode converts a visual signal from a first color gamut to a second color gamut, or for a decoding operation, the first codec mode converts the visual signal from the second color gamut to the first color gamut; generating the bitstream based on the determination; and storing the bitstream in a non-transitory computer-readable storage medium, The second encoding and decoding mode is an intra-frame sub-partition mode in which the current video unit is divided into a plurality of sub-regions sharing the same intra-frame mode, and Wherein, when the first codec mode is enabled for the current video unit, the second codec mode is disabled for the current video unit.

23. The method according to claim 22, wherein: When the second codec mode is enabled for the current video unit, the first codec mode is disabled for the current video unit.

24. A video processing device, comprising: A processor configured to implement the method according to any one of claims 9-15, 22-23.

25. A computer readable medium having program code stored thereon, which when executed causes a processor to implement the method according to any one of claims 3-15, 22-23.

Citation Information

Cited By

  • Selective use of adaptive in-loop color-space transform and other video coding tools

    US12375719B2