Methods, apparatuses, and media for video processing

By employing sub-block transformation and indivisible transformation techniques in video blocks, geometric segmentation mode encoding and decoding is performed on video blocks, solving the problem of improving encoding and decoding efficiency in existing video encoding and decoding technologies and achieving more efficient encoding and decoding performance.

CN123147138APending Publication Date: 2026-11-20DOUYIN VISION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580029878.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-06-04
Filing Date
2025-04-24
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing video codec technologies have room for improvement in codec efficiency, especially in video block processing. In particular, existing technologies struggle to further improve codec performance for the High Efficiency Video Coding (HEVC) and Multi-Functional Video Coding (VVC) standards.

Method used

Subblock Transform (SBT) and Low Frequency Indivisible Transform (LFNST) or Indivisible Main Transform (NSPT) techniques are used to encode and decode video blocks in Geometric Partition Mode (GPM) inter-frame and intra-frame mode. By determining the set of indivisible transforms and applying them to the video blocks, the encoding and decoding performance is improved.

Benefits of technology

By employing SBT and LFNST or NSPT technologies, the encoding and decoding performance of video codecs has been significantly improved, and the encoding and decoding efficiency has been enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123147138A_ABST
    Figure CN123147138A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a solution for video processing. In one method for video processing, for conversion between a current video block of a video and a bitstream of the video, sub-block transform (SBT) is enabled for the current video block. The current video block is coded in a geometric partition mode (GPM) inter-intra mode. The SBT is applied to at least one sub-block of the current video block. The conversion is performed based on the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this disclosure generally relate to video processing techniques, and more specifically, to low-frequency inseparable transform (LFNST) and / or inseparable main transform (NSPT) for blocks encoded and decoded via sub-block transform (SBT). Background Technology

[0002] Today, digital video capabilities are being applied to all aspects of people's lives. Various video compression technologies have been proposed for video encoding / decoding, such as MPEG-2, MPEG-4, ITU-TH.263, ITU-TH.264 / MPEG-4 Part 10 Advanced Video Codec (AVC), ITU-TH.265 High Efficiency Video Codec (HEVC) standard, and Multi-Functional Video Codec (VVC) standard. However, the encoding and decoding efficiency of video encoding and decoding technologies is generally expected to be further improved. Summary of the Invention

[0003] Embodiments of this disclosure provide a solution for video processing.

[0004] In a first aspect, a method for video processing is proposed. The method includes: determining that Sub-Block Transform (SBT) is enabled for the current video block and the video bitstream for a conversion between a current video block and the bitstream of the video, the current video block being encoded and decoded in Geometric Partition Mode (GPM) inter-frame-intra mode; applying SBT to at least one sub-block of the current video block; and performing the conversion based on the application. The method of the first aspect of this disclosure enables SBT for blocks encoded and decoded via GPM inter-frame-intra mode, thereby improving encoding and decoding performance.

[0005] In a second aspect, another method for video processing is proposed. This method includes: a conversion between a current video block and a bitstream of the video; determining an inseparable transform set for the current video block based on an index in the bitstream, the inseparable transform set including at least one of the following: a Low Frequency Inseparable Transform (LFNST) set or an Inseparable Main Transform (NSPT) set; applying the inseparable transform set to the current video block; and performing the conversion based on the application. The method of the second aspect of this disclosure, which determines the LFNST or NSPT set based on an index in the bitstream, can improve encoding and decoding performance.

[0006] In a third aspect, an apparatus for video processing is proposed. The apparatus includes a processor and a non-transitory memory having instructions thereon. When executed by the processor, the instructions cause the processor to perform a method according to the first or second aspect of this disclosure.

[0007] In a fourth aspect, a non-transitory computer-readable storage medium is proposed. This non-transitory computer-readable storage medium stores instructions that cause a processor to execute a method according to the first or second aspect of this disclosure.

[0008] In a fifth aspect, another non-transitory computer-readable recording medium is proposed. This non-transitory computer-readable recording medium stores a bitstream of video generated by a method performed by an apparatus for video processing. The method includes: determining a current video block and enabling Sub-Block Transform (SBT), the current video block being encoded and decoded in a geometrically segmented mode (GPM) inter-frame / intra-frame mode; applying the SBT to at least one sub-block of the current video block; and generating a bitstream based on the application.

[0009] In a sixth aspect, another non-transitory computer-readable recording medium is proposed. This non-transitory computer-readable recording medium stores a bitstream of video generated by a method performed by an apparatus for video processing. The method includes: determining an inseparable transform set for a current video block based on an index in the bitstream, the inseparable transform set including at least one of the following: a low-frequency inseparable transform (LFNST) set or an inseparable main transform (NSPT) set; applying the inseparable transform set to the current video block; and generating a bitstream based on the application.

[0010] In a seventh aspect, a method for storing a bitstream of video is proposed. The method includes: determining a current video block for which Sub-Block Transform (SBT) is enabled, the current video block being encoded and decoded in Geometric Partition Mode (GPM) inter- and intra-frame modes; applying SBT to at least one sub-block of the current video block; generating a bitstream based on the application; and storing the bitstream in a non-transitory computer-readable recording medium.

[0011] In the eighth aspect, a method for storing a bitstream of video is proposed. The method includes: determining an indivisible transform set for a current video block based on an index in the bitstream, the indivisible transform set including at least one of the following: a low-frequency indivisible transform (LFNST) set or an indivisible main transform (NSPT) set; applying the indivisible transform set to the current video block; and generating a bitstream based on the application.

[0012] This summary aims to present, in a simplified form, the selected concepts further described below in the detailed embodiments. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter. Attached Figure Description

[0013] The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become clearer from the following detailed description with reference to the accompanying drawings, in which the same reference numerals generally refer to the same parts.

[0014] Figure 1 A block diagram of an example video codec system according to some embodiments of the present disclosure is shown; Figure 2 A block diagram of a first example video encoder according to some embodiments of the present disclosure is shown; Figure 3 A block diagram of an example video decoder according to some embodiments of the present disclosure is shown; Figure 4 This shows the locations of spatial and temporal neighbor blocks used in the construction of the AMVP / Merge candidate list; Figure 5 This shows the positions of non-adjacent candidates in the ECM; Figure 6A A 4-parameter affine motion model based on control points is shown; Figure 6B A 6-parameter affine motion model based on control points is shown. Figure 7 The affine MVF for each sub-block is shown; Figure 8 The location of the inherited affine motion prediction value is shown; Figure 9 This demonstrates the inheritance of control point motion vectors; Figure 10 The locations of candidate positions for constructing the affine Merge pattern are shown; Figure 11 The spatial nearest neighbors of the affine Merge candidate used for deriving inheritance and the spatial nearest neighbors of the affine Merge candidate used for deriving construction are shown. Figure 12 The affine Merge candidates from non-nearest neighbors to the constructed ones are shown; Figure 13 An example of generating HAPC is shown; Figure 14 A diagram illustrating the regression-based affine Merge candidate derivation is shown. Figure 15 This shows that template matching is performed on the search area surrounding the initial MV; Figure 16 The template and the corresponding reference template are shown; Figure 17 The template and reference template of a block with sub-block motion information using the motion information of the current block are shown; Figure 18The derivation of the sub-CU motion field obtained by applying motion displacement based on neighbor motion information is shown; Figure 19 The top and left neighbor blocks used in the CIIP weight derivation are shown; Figure 20 A flowchart of CIIP_PDPC using the extended CIIP mode with PDPC is shown; Figure 21A and Figure 21B The method for dividing the angle pattern is shown; Figure 22 This demonstrates the generation of sub-block templates for SbTMVP; Figure 23 The diamond-shaped area in the search region is shown; Figure 24 An example of GPM partitioning grouped at the same angle is shown; Figure 25 The unidirectional prediction MV selection for geometric segmentation patterns is shown; Figure 26 An exemplary generation of the bending weight w_0 using a geometric segmentation pattern is shown; Figure 27 The spatial GPM candidates are shown; Figure 28 The GPM template is shown; Figure 29 The ramp function for weighting GPM mixing is shown, based on the displacement (d) from the predicted sample location to the GPM segmentation boundary and the mixing region size (τ). Figure 30 The low-frequency inseparable transform (LFNST) process is shown; Figure 31 The location, type, and transformation type of the SBT are shown; Figure 32 The ROI for LFNST16 is shown; Figure 33 The ROI for LFNST8 is shown; Figure 34 Discontinuous measurements are shown; Figure 35 A flowchart of a method for video processing according to an embodiment of the present disclosure is shown; Figure 36 A flowchart of a method for video processing according to embodiments of the present disclosure is shown; and Figure 37 A block diagram of a computing device in which various embodiments of the present disclosure may be implemented is shown.

[0015] In all the accompanying drawings, the same or similar reference numerals usually indicate the same or similar elements. Detailed Implementation

[0016] The principles of this disclosure will now be described with reference to some embodiments. It should be understood that these embodiments are described for illustrative purposes only and to help those skilled in the art understand and implement this disclosure, and do not imply any limitation on the scope of this disclosure. In addition to the methods described below, the disclosure described herein can be implemented in various other ways.

[0017] In the following description and claims, unless otherwise defined, all scientific and technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains.

[0018] The terms "an embodiment," "embodiment," "example embodiment," etc., used in this disclosure refer to embodiments that may include specific features, structures, or characteristics, but not every embodiment is required to include that specific feature, structure, or characteristic. Furthermore, these phrases do not necessarily refer to the same embodiment. Additionally, when a specific feature, structure, or characteristic is described in conjunction with an example embodiment, whether explicitly described or not, it is believed that such a feature, structure, or characteristic affecting its relation to other embodiments is within the knowledge of those skilled in the art.

[0019] It should be understood that although the terms “first” and “second”, etc., can be used to describe various elements, these elements should not be limited to these terms. These terms are used only to distinguish one element from another. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element, without departing from the scope of the exemplary embodiments. As used herein, the term “and / or” includes any and all combinations of one or more of the listed terms.

[0020] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments. As used herein, the singular forms “a,” “an,” and “the” are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising,” “including,” and / or “having” as used herein indicate the presence of the said features, elements, and / or components, but do not exclude the presence or addition of one or more other features, elements, components, and / or combinations thereof.

[0021] Example Environment Figure 1This is a block diagram illustrating an example video encoding / decoding system 100 from which the techniques of this disclosure may be utilized. As shown, the video encoding / decoding system 100 may include a source device 110 and a destination device 120. The source device 110 may also be referred to as a video encoding device, and the destination device 120 may also be referred to as a video decoding device. In operation, the source device 110 may be configured to generate encoded video data, and the destination device 120 may be configured to decode the encoded video data generated by the source device 110. The source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.

[0022] Video source 112 may include sources such as video capture devices. Examples of video capture devices include, but are not limited to, interfaces for receiving video data from video content providers, computer graphics systems for generating video data, and / or combinations thereof.

[0023] Video data may include one or more images. Video encoder 114 encodes the video data from video source 112 to generate a bitstream. The bitstream may include a sequence of bits forming an encoded representation of the video data. The bitstream may include encoded images and associated data. An encoded image is an encoded representation of an image. Associated data may include sequence parameter sets, image parameter sets, and other syntax structures. I / O interface 116 may include a modulator / demodulator and / or a transmitter. Encoded video data can be directly transmitted to destination device 120 via network 130A through I / O interface 116. Encoded video data may also be stored on storage medium / server 130B for access by destination device 120.

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

[0025] The video encoder 114 and the video decoder 124 can operate according to video compression standards, such as the High Efficiency Video Codec (HEVC) standard, the Multi-Functional Video Codec (VVC) standard, and other existing and / or further standards.

[0026] Figure 2This is a block diagram illustrating an example of a video encoder 200 according to some embodiments of the present disclosure. The video encoder 200 may be... Figure 1 An example of a video encoder 114 in system 100 is shown.

[0027] The video encoder 200 can be configured to implement any or all of the technologies disclosed herein. Figure 2 In the example, the video encoder 200 includes multiple functional components. The techniques described in this disclosure can be shared among the various components of the video encoder 200. In some examples, the processor can be configured to perform any or all of the techniques described in this disclosure.

[0028] In some embodiments, the video encoder 200 may include a segmentation unit 201, a prediction unit 202, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy coding unit 214. The prediction unit 202 may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205, and an intra-frame prediction unit 206.

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

[0030] Furthermore, although some components (such as motion estimation unit 204 and motion compensation unit 205) can be integrated, for interpretable purposes, these components are... Figure 2 The examples are shown separately.

[0031] The segmentation unit 201 can segment an image into one or more video blocks. The video encoder 200 and the video decoder 300 can support various video block sizes.

[0032] The mode selection unit 203 can, for example, select one of several coding modes (intra-coding or inter-coding) based on the error result, and provide the resulting intra-coded or inter-coded block to the residual generation unit 207 to generate residual block data, and to the reconstruction unit 212 to reconstruct the coded block for use as a reference image. In some examples, the mode selection unit 203 can select an intra-inter-prediction joint prediction (CIIP) mode, in which prediction is based on inter-prediction signals and intra-prediction signals. In the case of inter-prediction, the mode selection unit 203 can also select a resolution for the block based on the motion vector (e.g., sub-pixel precision or integer pixel precision).

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

[0034] The motion estimation unit 204 and the motion compensation unit 205 can perform different operations on the current video block, for example, depending on whether the current video block is in an I-strip, P-strip, or B-strip. As used herein, an "I-strip" can refer to a portion of an image composed of macroblocks, all of which are based on macroblocks within the same image. Furthermore, as used herein, in some aspects, "P-strip" and "B-strip" can refer to portions of an image composed of macroblocks that do not depend on macroblocks within the same image.

[0035] In some examples, motion estimation unit 204 can perform unidirectional prediction on the current video block, and can search reference images in list 0 or list 1 to find a reference video block for the current video block. Motion estimation unit 204 can then generate a reference index indicating the reference image containing the reference video block in list 0 or list 1, and a motion vector indicating the spatial displacement between the current video block and the reference video block. Motion estimation unit 204 can output the reference index, prediction direction indicator, and motion vector as motion information for the current video block. Motion compensation unit 205 can generate a predicted video block for the current video block based on the reference video block indicated by the motion information of the current video block.

[0036] Alternatively, in other examples, motion estimation unit 204 can perform bidirectional prediction on the current video block. Motion estimation unit 204 can search reference images in list 0 to find a reference video block for the current video block, and can also search reference images in list 1 to find another reference video block for the current video block. Motion estimation unit 204 can then generate multiple reference indices and multiple motion vectors, the multiple reference indices indicating reference images in lists 0 and 1 containing multiple reference video blocks, and the multiple motion vectors indicating multiple spatial displacements between the multiple reference video blocks and the current video block. Motion estimation unit 204 can output the multiple reference indices and multiple motion vectors of the current video block as motion information for the current video block. Motion compensation unit 205 can generate a predicted video block for the current video block based on the multiple reference video blocks indicated by the motion information of the current video block.

[0037] In some examples, the motion estimation unit 204 can output a complete set of motion information for use in the decoder's decoding process. Alternatively, in some embodiments, the motion estimation unit 204 can reference the motion information of another video block to transmit the motion information of the current video block via a signal. For example, the motion estimation unit 204 can determine that the motion information of the current video block is sufficiently similar to the motion information of neighboring video blocks.

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

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

[0040] As discussed above, the video encoder 200 can transmit motion vectors via signals in a predictive manner. Two examples of predictive signaling techniques that can be implemented by the video encoder 200 include Advanced Motion Vector Prediction (AMVP) and Merge Pattern Signaling.

[0041] Intra-prediction unit 206 can perform intra-prediction on the current video block. When intra-prediction unit 206 performs intra-prediction on the current video block, it can generate prediction data for the current video block based on decoded samples from other video blocks in the same frame. The prediction data for the current video block can include the predicted video block and various syntax elements.

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

[0043] In other examples, such as in skip mode, there may be no residual data for the current video block, and the residual generation unit 207 may not perform a subtraction operation.

[0044] The transform processing unit 208 can generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to the residual video blocks associated with the current video block.

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

[0046] The inverse quantization unit 210 and the inverse transform unit 211 can apply inverse quantization and inverse transform to the transform coefficient video block, respectively, to reconstruct the residual video block from the transform coefficient video block. The reconstruction unit 212 can add the reconstructed residual video block to the corresponding samples of one or more predicted video blocks generated by the prediction unit 202 to generate a reconstructed video block associated with the current video block, which is stored in the buffer 213.

[0047] After the video block is reconstructed by reconstruction unit 212, a loop filtering operation can be performed to reduce video block artifacts in the video block.

[0048] Entropy encoding unit 214 can receive data from other functional components of video encoder 200. When entropy encoding unit 214 receives data, it can perform one or more entropy encoding operations to generate entropy-encoded data and output a bitstream including the entropy-encoded data.

[0049] Figure 3 This is a block diagram illustrating an example of a video decoder 300 according to some embodiments of the present disclosure. The video decoder 300 may be... Figure 1 An example of video decoder 124 in system 100 is shown.

[0050] The video decoder 300 can be configured to perform any or all of the technologies disclosed herein. Figure 3 In the example, the video decoder 300 includes multiple functional components. The techniques described in this disclosure can be shared among the various components of the video decoder 300. In some examples, the processor can be configured to perform any or all of the techniques described in this disclosure.

[0051] exist Figure 3 In the example, the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra-frame prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, a reconstruction unit 306, and a buffer 307. In some examples, the video decoder 300 can perform a decoding process that is generally contrasted with the encoding process described with respect to the video encoder 200.

[0052] Entropy decoding unit 301 can retrieve the encoded bitstream. The encoded bitstream may include entropy-encoded video data (e.g., encoded blocks of video data). Entropy decoding unit 301 can decode the entropy-encoded video data, and based on the entropy-encoded video data, motion compensation unit 302 can determine motion information, including motion vectors, motion vector precision, reference picture list indices, and other motion information. Motion compensation unit 302 can determine such information, for example, by performing AMVP and Merge mode. AMVP is used, which involves deriving several most likely candidates based on data from neighboring PBs and reference pictures. Motion information typically includes horizontal and vertical motion vector displacement values, one or two reference picture indices, and, in the case of a prediction region in a B-strip, an identifier of which reference picture list is associated with each index. As used herein, in some aspects, "Merge mode" may refer to deriving motion information from spatially or temporally neighboring blocks.

[0053] The motion compensation unit 302 can generate motion compensation blocks, possibly performing interpolation based on an interpolation filter. Identifiers for interpolation filters used with sub-pixel precision can be included in the syntax elements.

[0054] The motion compensation unit 302 can use the interpolation filter used by the video encoder 200 during the encoding of the video block to calculate the interpolated values ​​for sub-integer pixels of the reference block. The motion compensation unit 302 can determine the interpolation filter used by the video encoder 200 based on the received syntax information, and the motion compensation unit 302 can use the interpolation filter to generate the prediction block.

[0055] Motion compensation unit 302 may use at least some of the syntax information to determine the size of the blocks used to encode (multiple) frames and / or (multiple) stripes of the coded video sequence, segmentation information describing how each macroblock of the image of the coded video sequence is segmented, a pattern indicating how each segment is encoded, one or more reference frames (and a list of reference frames) for each inter-frame coded block, and other information for decoding the coded video sequence. As used herein, in some aspects, a “strip” can refer to a data structure that can be decoded independently of other stripes of the same image in terms of entropy encoding / decoding, signal prediction, and residual signal reconstruction. A strip can be an entire image or a region of an image.

[0056] Intra-prediction unit 303 can use, for example, an intra-prediction mode received in the bitstream to form prediction blocks from spatially adjacent blocks. Dequantization unit 304 dequantizes (i.e., dequantizes) the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 301. Inverse transform unit 305 applies an inverse transform.

[0057] The reconstruction unit 306 can obtain the decoded block, for example, by adding the residual block to the corresponding predicted block generated by the motion compensation unit 302 or the intra-frame prediction unit 303. If necessary, a deblocking filter can also be applied to filter the decoded block to remove block artifacts. The decoded video block is then stored in a buffer 307, which provides a reference block for subsequent motion compensation / intra-frame prediction and also generates decoded video for presentation on a display device.

[0058] Some exemplary embodiments of this disclosure will be described in detail below. It should be understood that section headings are used in this document for ease of understanding and not to limit the embodiments disclosed in a section to that section only. Furthermore, although some embodiments are described with reference to multi-function video codecs or other specific video codecs, the disclosed techniques are also applicable to other video codec techniques. Furthermore, although some embodiments describe video encoding steps in detail, it should be understood that the corresponding decoding steps for decoding will be implemented by the decoder. Additionally, the term video processing includes video encoding or compression, video decoding or decompression, and video transcoding, in which video pixels are represented from one compression format to another or at different compression bitrates.

[0059] 1. Brief Overview This disclosure relates to video encoding and decoding technologies. Specifically, this disclosure concerns transformation methods in video encoding and decoding. The ideas can be applied alone or in various combinations to any standard or non-standard video codec.

[0060] 2 Introduction The exponential growth of multimedia data has posed significant challenges to video encoding and decoding. To meet the ever-increasing demand for more efficient compression technologies, the ITU-T and ISO / IEC have developed a series of video encoding and decoding standards over the past few decades. Specifically, the ITU-T developed the H.261 and H.263 standards, and ISO / IEC developed MPEG-1 and MPEG-4 visual standards. These two organizations jointly developed the H.262 / MPEG-2 video standard, the H.264 / MPEG-4 Advanced Video Codec (AVC) standard, the H.265 / HEVC standard, and the latest VVC standard. Starting with H.262 / MPEG-2, a hybrid video encoding and decoding framework has been adopted, utilizing intra / inter-frame prediction plus transform encoding and decoding.

[0061] Figure 4 The location of spatial and temporal neighbor blocks used in the construction of the AMVP / Merge candidate list is shown.

[0062] 2.1 MVP in Video Encoding and Decoding Inter-frame prediction aims to eliminate temporal redundancy between adjacent frames and is an indispensable component of hybrid video coding and decoding frameworks. Specifically, inter-frame prediction utilizes the content specified by motion vectors (MVs) as the predicted version of the current block to be encoded or decoded, thereby transmitting only residual signals and motion information in the bitstream. To reduce the cost of MV signaling, motion vector prediction (MVP) emerged as an efficient mechanism for conveying motion information. Early strategies simply used the MV of a specified neighboring block or the median MV of neighboring blocks as the MVP. In H.265 / HEVC, a contention mechanism is involved, where Rate Distortion Optimization (RDO) selects the best MVP from multiple candidates. Specifically, Advanced MVP (AMVP) mode and Merge mode are designed using different motion information signaling strategies. With AMVP mode, the reference index, the MVP candidate index referencing the AMVP candidate list, and the motion vector difference (MVD) are transmitted via signaling. Regarding Merge mode, only the Merge index referencing the Merge candidate list is transmitted via signaling, and all motion information associated with the Merge candidate is inherited. Both the AMVP and Merge modes require building an MVP candidate list, and the details of the building process for these two modes are described below.

[0063] AMVP mode: AMVP utilizes the spatial-temporal correlation of motion vectors with neighboring blocks for explicit transfer of motion parameters. For each list of reference images, a candidate list of motion vectors is constructed by first checking the availability of temporally adjacent locations to the left and top, removing redundant candidates, and adding zero vectors to ensure a constant length for the candidate list. For the spatial motion vector candidate derivation, two motion vector candidates are ultimately based on locations such as... Figure 4 Motion vectors for the five blocks at different locations shown are derived. The five neighboring blocks located at B0, B1, B2, and A0, A1 are classified into two groups: group A includes the three spatially adjacent blocks above, and group B includes the two spatially adjacent blocks to the left. Two MV candidates are derived using the first available candidates from groups A and B in a predefined order, respectively. For temporal motion vector candidate derivation, a motion vector candidate is derived based on two distinct co-locations (lower right (C0) and center (C1)) examined sequentially, as shown... Figure 4 As shown. To avoid redundant MV candidates, duplicate motion vector candidates in the list are discarded. If the number of potential candidates is less than 2, additional zero motion vector candidates are added to the list. Figure 5 The positions of non-adjacent candidates in the ECM are shown.

[0064] Merge modeSimilar to the AMVP mode, the MVP candidate list for the Merge mode also includes spatial and temporal candidates. For spatial motion vector candidate derivation, after performing availability and redundancy checks, up to four candidates are selected in the order A1, B1, B0, A0, and B2. For temporal Merge candidate (TMVP) derivation, at most one candidate is selected from two temporally neighboring blocks (C0 and C1). When there are not enough Merge candidates using both spatial and temporal candidates, combined bidirectional prediction Merge candidates and zero MV candidates are added to the MVP candidate list. The Merge candidate list construction process terminates once the number of available Merge candidates reaches the maximum allowed number for signal transmission.

[0065] In VVC, the Merge pattern construction process is further improved by introducing a history-based MVP (HMVP), where the HMVP incorporates motion information from previously encoded / decoded blocks that can be far removed from the current block. In VVC, HMVP merge candidates are appended to the Merge list, following the spatial MVP and TMVP. In this method, motion information from previously encoded / decoded blocks is stored in a table and used as the MVP for the current CU. The table with multiple HMVP candidates is maintained during the encoding / decoding process using a first-in, first-out (FIFO) strategy. Whenever a non-sub-block inter-encoding / decoding CU is present, the associated motion information is added to the last entry of the table as a new HMVP candidate.

[0066] During the standardization of VVC, the non-adjacent MVP was proposed to facilitate better motion information derivation by utilizing non-adjacent regions. In ECM software, the non-adjacent MVP is inserted between the TMVP and HMVP, where the distance between the non-adjacent spatial candidate and the current codec block is based on the width and height of the current codec block, such as... Figure 5 As shown.

[0067] 2.2 Affine Motion Compensation Prediction In HEVC, only the translational motion model is applied to motion compensation prediction (MCP). In the real world, there are many types of motion, such as zooming in / out, rotation, perspective motion, and other irregular motions. In VVC, block-based affine transformation motion compensation prediction is applied. Figure 6A and Figure 6B As shown, the affine motion field of a block is described by motion information from two control points (4 parameters) or three control point motion vectors (6 parameters).

[0068] For the 4-parameter affine motion model, the motion vector at the sample point position (x, y) in the block is derived as: (1) For the 6-parameter affine motion model, the motion vector at the sample point position (x, y) in the block is derived as: (2) Where (mv0x, mv0y) is the motion vector of the top left control point, (mv1x, mv1y) is the motion vector of the top right control point, and (mv2x, mv2y) is the motion vector of the bottom left control point.

[0069] To simplify motion compensation prediction, block-based affine transformation prediction is applied. To derive the motion vector for each 4x4 luma sub-block, the motion vector of the center sample point of each sub-block is calculated according to the above equation (e.g., ...). Figure 7 (as shown), and rounded to 1 / 16 fractional precision. Then a motion-compensated interpolation filter is applied to generate a prediction for each sub-block with a derived motion vector. The sub-block size for the chroma component is also set to 4x4. The MV of the 4x4 chroma sub-block is calculated as the average of the MV of the upper-left luminance sub-block and the lower-right luminance sub-block in the co-located 8x8 luminance region. Figure 7 The affine MVF for each sub-block is shown.

[0070] Similar to translational motion inter-frame prediction, there are two affine motion inter-frame prediction modes: affine Merge mode and affine AMVP mode.

[0071] 2.2.1 Affine Merge Prediction The Affine Merge pattern can be applied to CUs with a width and height greater than or equal to 8. In this pattern, the CPMVP of the current CU is generated based on the motion information of spatially neighboring CUs. There can be up to five CPMVP candidates, and a signal transmission index indicates which CPMVP candidate should be used for the current CU. In VVC, the following three types of CPMVP candidates are used to form the Affine Merge candidate list: – Inherited affine Merge candidates inferred from the CPMV of neighboring CUs; – Affine Merge candidate CPMVP constructed using translational MV derivation of neighboring CUs; – Zero MV.

[0072] In VVC, there are at most two inherited affine candidates, which are derived from the affine motion model of neighboring blocks: one from the left neighboring CU and one from the upper neighboring CU. Candidate blocks are as follows: Figure 31As shown. For the left-hand predicted value, the scan order is A0->A1, and for the upper-hand predicted value, the scan order is B0->B1->B2. Only candidates from the first inheritance of each side are selected. No deduplication check is performed between candidates from two inheritances. When a neighboring affine CU is identified, its control point motion vector is used to derive the CPMVP candidate in the affine Merge list of the current CU. Figure 9 As shown, if the adjacent lower-left block A is encoded and decoded in affine mode, the motion vectors of the upper-left, upper-right, and lower-left corners of the CU containing block A are obtained. , and When block A is encoded and decoded using a 4-parameter affine model, the two CPMVs of the current CU are based on... and Computed. When block A is encoded and decoded using a 6-parameter affine model, the three CPMVs of the current CU are calculated according to... , and Calculated.

[0073] Figure 8 The location of the inherited affine motion prediction value is shown. Figure 9 The inheritance of control point motion vectors is shown.

[0074] The constructed affine candidate refers to the candidate built by combining the translational motion information of the neighbors of each control point. The motion information for the control points is derived from... Figure 33 The spatial and temporal nearest neighbors shown are derived. CPMVk (k=1, 2, 3, 4) represents the k-th control point. For CPMV1, the B2->B3->A2 block is checked, and the MV of the first available block is used. For CPMV2, the B1->B0 block is checked, and for CPMV3, the A1->A0 block is checked. If the TMVP is available, it is used as CPMV4.

[0075] After obtaining the motion signatures (MVs) of the four control points, the affine Merge candidate is constructed based on this motion information. The following combinations of control point MVs are used for sequential construction: {CPMV1, CPMV2, CPMV3}, {CPMV1, CPMV2, CPMV4}, {CPMV1, CPMV3, CPMV4}, {CPMV2, CPMV3, CPMV4}, {CPMV1, CPMV2}, {CPMV1, CPMV3}.

[0076] Combining three CPMVs constructs a 6-parameter affine merge candidate, and combining two CPMVs constructs a 4-parameter affine merge candidate. To avoid motion scaling, combinations of control point MVs are discarded if the reference indices of the control points are different. Figure 10 The locations of candidate positions for constructing the affine Merge pattern are shown.

[0077] After the inherited affine Merge candidate and the constructed affine Merge candidate are checked, if the list is still not full, zero MV is inserted at the end of the list.

[0078] 2.2.2 Affine Merge Prediction The affine AMVP mode can be applied to CUs with a width and height both greater than or equal to 16. An affine flag at the CU level is signaled in the bitstream to indicate whether the affine AMVP mode is used, and another flag is signaled to indicate whether it is a 4-parameter affine or a 6-parameter affine. In this mode, the difference between the current CU's CPVM and its predicted CPMVP is signaled in the bitstream. The affine AMVP candidate list is of size 2 and is generated sequentially using the following four types of CPVM candidates: – Inherited affine AMVP candidates inferred from the CPMV of neighboring CUs; – A constructive affine AMVP candidate CPMVP derived using translational MV of neighboring CUs; – Translation MV from the neighboring CU; – Zero MV.

[0079] The checking order for inherited affine AMVP candidates is the same as that for inherited affine Merge candidates. The only difference is that, for AMVP candidates, only affine CUs with the same reference picture as those in the current block are considered. No deduplication process is applied when inserting inherited affine motion predictions into the candidate list.

[0080] The constructed AMVP candidate is from Figure 33 The specified spatial nearest neighbor derivation is shown. The same checking order as in the affine Merge candidate construction is used. Additionally, the reference picture index of neighboring blocks is also checked. The first block in the checking order to be inter-coded and has the same reference picture as in the current CU is used. Only one. Encoded and decoded in the current CU using a 4-parameter affine mode, and mv0 and mv1 If all three CPMVs are available, they are added as candidates to the affine AMVP list. If the current CU is encoded and decoded using a 6-parameter affine mode, and all three CPMVs are available, they are added as candidates to the affine AMVP list. Otherwise, the constructed AMVP candidates are set to unavailable. Figure 11 (a) is shown for deriving the spatial nearest neighbors of the inherited affine Merge candidate, and (b) is shown for deriving the spatial nearest neighbors of the constructed affine Merge candidate.

[0081] If the affine AMVP list still has fewer than 2 candidates after inserting valid inherited affine AMVP candidates and constructed AMVP candidates, then when available, mv0 , mv1 and mv2 They will be added sequentially as translation MVs to predict all control point MVs for the current CU. Finally, if the affine AMVP list is still not full, zero MVs are used to fill the affine AMVP list.

[0082] 2.2.3 Affine Merge Prediction In ECM-6.0, three additional affine Merge and AMVP candidate derivation methods are integrated: non-adjacent spatial domain candidates, historical parameter-based candidates, regression-based affine candidates, and pixel-based affine motion compensation.

[0083] 2.2.3.1 Non-adjacent airspace candidates In ECM-6.0, non-adjacent airspace neighbors were studied to provide candidates for both affine Merge and affine AMVP. The patterns for obtaining non-adjacent airspace candidates are as follows: Figure 11 As shown in (a), similar to non-adjacent regular Merge candidates, the distance between non-adjacent spatial candidates and the current codec block is also defined based on the width and height of the current CU.

[0084] Figure 11 Motion information of non-adjacent spatial neighbors is used to generate additional inheritance and construct affine merge candidates. Specifically, to generate inheritance candidates, non-adjacent spatial neighbors are checked based on their distance from the current block (i.e., from nearest to farthest). At a specific distance, only the first available neighbors encoded in affine mode from each side (e.g., left and top) of the current block are included. Figure 11 As shown in (a), the checks of the left and top nearest neighbors are performed from bottom to top and from right to left, respectively. For the constructed candidates, as... Figure 11 As shown in (b), the positions of non-adjacent spatial neighbors on the left and top are first determined independently; then, the positions of the upper left neighbors can be determined accordingly to form a rectangular virtual block together with the non-adjacent neighbors on the left and top. Figure 12 The diagram illustrates the affine Merge candidates from non-nearest neighbors to the build. Motion information from three non-nearest neighbors is used to form a CPMV at the top-left (A), top-right (B), and bottom-left (C) of the virtual block, which is projected onto the current CU to generate the corresponding build candidates, as shown below. Figure 12 As shown.

[0085] 2.2.3.2 Affine Candidates Based on Historical Parameters History-based Affine Model Inheritance (HAMI) allows affine models to be inherited from previously affine encoded / decoded blocks that may not be adjacent to the current block. A History Parameter Table (HPT) is established. Each entry in the HPT stores a set of affine parameters: a, b, c, and d, each represented by a 16-bit signed integer. Entries in the HPT are categorized by reference lists and reference indices. Each reference list in the HPT supports five reference indices. The HPT category (denoted as HPTCat) is calculated in a formulaic manner. HPTCat (RefList, RefIdx) = 5 x RefList + min (RefIdx, 4)(3) Here, RefList and RefIdx represent the list of reference images (0 or 1) and the reference index, respectively. A maximum of 7 entries can be stored for each category, resulting in a total of 70 entries in the HPT. At the beginning of each CTU row, the number of entries for each category is initialized to zero. After decoding the affine-encoded CU using the reference lists RefListcur and RefIdxcur, the affine parameters are used to update the entries in the category HPTCat(RefListcur, RefIdxcur) in a manner similar to HMVP table updates.

[0086] Candidates based on historical affine parameters (HAPC) from... Figure 13 The neighboring 4x4 blocks, denoted as A0, A1, B0, B1, or B2, and a set of affine parameters stored in the corresponding entries in the HPT are derived. The MV of the neighboring 4x4 blocks is used as the base MV. Formulatically, the MV of the current block at position (x, y) is calculated as: (4) Where (mvhbase, mvvbase) represents the MV of the nearest 4x4 block, and (xbase, ybase) represents the center position of the nearest 4x4 block. (x, y) can be the top left, top right, and bottom left corners of the current block to obtain the corner position MV (CPMV) for the current block, or it can be the center of the current block to obtain the regular MV for the current block.

[0087] Figure 13An example of generating an HAPC is shown. The affine parameters {a0, b0, c0, d0} are obtained directly from an entry in the class HPTIdx(RefListA0, refIdx0A0) in the HPT. The affine parameters from the HPT (with the center position of A0 as the base position and the MV of block A0 as the base MV) are used together to derive the CPMV for either the affine MergeHAPC or the affine AMVPHAPC. They can also be used to derive the MV located at the center of the current block as a regular Merge candidate. HAPCs can be placed into the sub-block-based Merge candidate list, the affine AMVP candidate list, or the regular Merge candidate list. In response to the introduction of new HAPCs, the size of the sub-block-based Merge candidate list is increased from 5 to 10 and 12 for random access and low-latency B configurations, respectively. Furthermore, for the random access configuration, the size of the regular Merge candidate list is increased from 10 to 11 to accommodate the newly added regular Merge candidates.

[0088] 2.2.3.3 Regression-based Affine Candidates In ECM-6.0, regression-based affine merge candidates are derived and added to the affine merge list. The sub-block motion fields from previously encoded and decoded affine CUs and the motion information of neighboring sub-blocks from the current CU are used as inputs to the regression process to derive the proposed affine candidates.

[0089] Previously encoded and decoded affine CUs can be identified by scanning non-adjacent positions and the affine HMVP table. The adjacent sub-block information of the current CU is obtained from... Figure 14 The 4x4 sub-blocks, represented by the gray area, are captured. For each sub-block, given a reference list, the corresponding motion vector and center coordinates of the sub-block can be used.

[0090] For each affine CU, at most two affine candidates can be derived. One has neighboring subblock information, and the other does not. All candidates generated by linear regression are deduplicated and collected into a candidate subgroup. When ARMC is enabled, the ARMC process based on TM cost is applied. Subsequently, when N affine CUs are found, at most N candidates generated by linear regression are added to the affine merge list. Figure 14 A diagram illustrating the regression-based affine Merge candidate derivation is shown.

[0091] 2.2.3.4 Pixel-based Affine Motion Compensation Using pixel-based affine motion compensation, when OBMC is not applied, the minimum affine sub-block size is set to 1x1 for the luma component and is always set to 1x1 for the chroma component.

[0092] Template matching Merge / AMVP pattern in 2.3ECM Template Matching (TM) Merge / AMVP mode is a decoder-side MV derivation method used to refine the motion information of the current CU by finding the closest match between a template in the current image (i.e., the top and / or left neighboring blocks of the current CU) and a block in the reference image (i.e., of the same size as the template). Figure 15 As shown, within the search range of [-8, +8] pixels, a better MV is searched around the initial motion of the current CU. Figure 15 This illustrates template matching execution over the search area surrounding the initial MV.

[0093] In AMVP mode, MVP candidates are determined based on template matching error, picking the one that minimizes the difference between the current block and the reference block template. Then, TM performs MV refinement only on that specific MVP candidate. TM refines the MVP candidate using an iterative diamond search, starting with full-pixel MVD precision (or 4 pixels for 4-pixel AMVR mode) within a search range of [-8, +8] pixels. AMVP candidates can be further refined using a cross search with full-pixel MVD precision (or 4 pixels for 4-pixel AMVR mode), followed by half-pixels and quarter-pixels depending on the AMVR mode. This search process ensures that the MVP candidate maintains the same MV precision as indicated by the Adaptive Motion Vector Resolution (AMVR) mode after the TM process.

[0094] In Merge mode, a similar search method is applied to the Merge candidates indicated by the Merge index. TMMerge can proceed up to 1 / 8 pixel MVD accuracy, or skip those accuracies beyond half-pixel MVD accuracy, depending on whether an alternative interpolation filter is used based on the merged motion information (i.e., used when AMVR is in half-pixel mode). Furthermore, when TM mode is enabled, template matching can operate as a standalone process or as an additional MV refinement process between block-based and sub-block-based bilateral matching (BM) methods, depending on whether BM is enabled according to its enable condition check. When both BM and TM are enabled for the CU, the TM search process stops at half-pixel MVD accuracy, and the resulting MV is further refined using the same model-based MVD derivation method as in DMVR.

[0095] 2.4 Adaptive Reordering of Merge Candidates (ARMC) Inspired by the spatial correlation between reconstructed neighboring pixels and the current codec block, Adaptive Reordering of Merge Candidates (ARMC) is proposed to refine the order of candidates in a given candidate list. The basic assumption is that candidates with lower template matching costs have a higher probability of being selected through the RDO process and should therefore be placed earlier in the list to reduce signaling costs.

[0096] The reordering method is applied to the regular Merge pattern, the Template Matching (TM) Merge pattern, and the Affine Merge pattern (excluding SbTMVP candidates). For the TM Merge pattern, the Merge candidates are reordered before the refinement process.

[0097] After the Merge candidate list is constructed, the Merge candidates are divided into several subgroups. The subgroup size is set to 5. The Merge candidates in each subgroup are reordered in ascending order based on the cost value of template matching. For simplicity, the Merge candidates in the last subgroup (not the first subgroup) are not reordered.

[0098] Template matching cost is measured by the sum of absolute differences (SAD) between the samples of the current block's template and the samples of its corresponding reference template. For example... Figure 16 As shown, the template includes a set of reconstructed samples adjacent to the current block, while the reference template is located using the same motion information of the current block. When the Merge candidate utilizes bidirectional prediction, the reference samples of the Merge candidate's template are also generated through bidirectional prediction.

[0099] For sub-block size equal to Wsub Hsub's sub-block-based merge candidates, the upper template includes several sub-templates of size Wsub x K, and the left template includes several sub-templates of size K x Hsub. For example... Figure 17 As shown, the motion information of the sub-blocks in the first row and first column of the current block is used to derive the reference sample points of each sub-template.

[0100] 2.5 Sub-block-based temporal motion vector prediction (SbTMVP) VVC supports a sub-block-based temporal motion vector prediction (SbTMVP) method. Similar to TMVP, SbTMVP leverages the motion field in a co-located image to facilitate more accurate MVP derivation. The same co-located image used by TMVP is used in SbTMVP. SbTMVP differs from TMVP primarily in two ways. First, SbTMVP enables motion prediction at the sub-CU level, while TMVP predicts motion at the CU level. Second, compared to TMVP, which obtains the temporal MV from a co-located block (the lower right or center block relative to the current CU), SbTMVP applies motion displacement before obtaining temporal motion information from the co-located image. This motion displacement is obtained by reusing the MV from one of the spatially neighboring blocks of the current CU.

[0101] Figure 18 The derivation of the sub-block level motion field for SbTMVP is shown. Specifically, the motion information of the lower left sub-block A1 is first acquired. If either the MV in reference list 0 or list 1 points to the same frame, the corresponding MV will be identified as the motion displacement. Otherwise, zero MV will be used as the motion displacement.

[0102] Once the motion displacement is determined, a designated region within the same frame is used to derive the sub-block level motion field. For example... Figure 18 As shown, it is assumed that the motion of A1 is used as the motion displacement. Then, for each sub-CU, the motion information of its corresponding block (the smallest motion grid covering the center sample point) in the co-location image is obtained to provide motion information, wherein the MV scaling operation is first performed to align the reference frame of the temporal motion vector with the reference frame of the current CU.

[0103] Figure 17 The template and reference template of a block with sub-block motion information are shown. Figure 18 The derivation of the sub-CU motion field obtained by applying motion displacement based on neighbor motion information is shown.

[0104] In VVC and ECM, in addition to the CU-level MVP candidate list, a sub-CU-level MVP candidate list is also constructed to provide more accurate motion predictions for the current CU. This list includes the motion field generated by both the SbTMVP and AFFINE methods. Specifically, only one SbTMVP candidate is included and is always placed as the first entry in the constructed sub-CU-level MVP candidate list. Multiple AFFINE candidates are included in the list after performing template matching-based reordering, with the less costly AFFINE candidates placed earlier.

[0105] 2.6 Inter-frame and intra-frame joint prediction (CIIP) In VVC, when a CU is encoded and decoded in Merge mode, if the CU contains at least 64 luma samples (i.e., the CU width multiplied by the CU height is equal to or greater than 64), and if both the CU width and height are less than 128 luma samples, an additional flag is transmitted via signaling to indicate whether Inter-Frame Intra-Frame Joint Prediction (CIIP) mode is applied to the current CU. As the name suggests, CIIP prediction combines inter-frame prediction signals with intra-frame prediction signals. The inter-frame prediction signal in CIIP mode... The inter-frame prediction process is derived using the same procedure as the regular Merge mode; and the intra-frame prediction signal... The conventional intra-frame prediction process with a planar pattern is derived. Then, the intra-frame prediction signal and the inter-frame prediction signal are combined using a weighted average, where the weight values ​​are based on the top neighbor block and the left neighbor block (in...). Figure 19 The encoding / decoding mode (shown in the figure) is calculated as follows: – If the top nearest neighbor is available and is intra-coded, set isIntraTop to 1; otherwise, set isIntraTop to 0. – If the left nearest neighbor is available and is intra-coded, set isIntraLeft to 1; otherwise, set isIntraLeft to 0. – If (isIntraLeft + isIntraTop) equals 2, then It was set to 3; Otherwise, if (isIntraLeft + isIntraTop) equals 1, then It was set to 2; Otherwise, Set to 1.

[0106] The CIIP predictions are formed as follows:

[0107] Figure 19 The top neighbor block and left neighbor block used in the CIIP weight derivation are shown.

[0108] 2.7 CIIP with PDPC hybrid In ECM, the CIIP model is extended. In this extended model (CIIP_PDPC), the predictions of the regular Merge model are refined using samples reconstructed from the top (Rx, -1) and left (R-1, y). This refinement inherits the Location-Related Prediction Combination (PDPC) scheme. The flowchart of the CIIP_PDPC model prediction can be seen as follows... Figure 20 As shown, WT and WL are weighted values ​​that depend on the sample location in the block, as defined in PDPC.

[0109] The CIIP_PDPC mode is transmitted via signaling along with the CIIP mode. When the CIIP flag is true, another flag (i.e., the CIIP_PDPC flag) is further transmitted via signaling to indicate whether CIIP_PDPC is used. Figure 20 A flowchart of the CIIP_PDPC process using the extended CIIP mode with PDPC is shown.

[0110] 2.8 CIIP combined with TIMD and TM Merge In ECM CIIP mode, prediction samples can be generated by weighting the inter-prediction signal using CIIP-TM Merge candidate prediction and the intra-prediction signal using the intra-prediction mode derived using TIMD. This method is only applied to codec blocks with an area of ​​1024 or less.

[0111] The TIMD derivation method was used to derive intra-prediction modes in CIIP. Specifically, the intra-prediction mode with the smallest SATD value in the TIMD mode list was selected and mapped to one of 67 regular intra-prediction modes.

[0112] Furthermore, it is proposed that if the derived intra-prediction mode is an angle mode, the weights of the two tests (wIntra, wInter) should be modified. For near-horizontal mode (2 <= angle mode index < 34), the current block is as follows: Figure 21A The block is shown as being vertically divided; for near-vertical mode (34 <= angle mode index <= 66), the current block is as follows: Figure 21B The diagram shows a horizontal division.

[0113] Table 1 shows the (wIntra, wInter) values ​​for different sub-blocks. Figure 21A and Figure 21B The method for dividing the angle pattern is shown.

[0114] Table 1. Weights used for modifying angle modes

[0115] Using CIIP-TM, a CIIP-TM Merge candidate list is constructed for the CIIP-TM pattern. Merge candidates are refined through template matching. CIIP-TM Merge candidates are also reordered as regular Merge candidates using the ARMC method. The maximum number of CIIP-TM Merge candidates is 2.

[0116] 2.9 Combination of intra-block copying and intra-prediction Intra-Block Copy and Intra-Prediction Combination (IBC-CIIP) is an encoding / decoding tool for CUs that uses IBC and intra-prediction to obtain two prediction signals, which are then weighted and summed to generate the following final prediction: (6) in and This represents the IBC prediction signal and the intra-frame prediction signal. For IBC Merge mode and IBCAMVP mode, It is set to equal to (13, 4) and (1, 1).

[0117] An intra-prediction mode (IPM) candidate list is used to generate the intra-prediction signal, and the IPM candidate list size is predefined to 2. The IPM index is transmitted via signaling to indicate which IPM to use. Figure 22 This demonstrates the generation of sub-block templates for SbTMVP.

[0118] 2.10 ECM Time-Domain Motion Derivation In VVC, temporal motion vector prediction (TMVP) for AMVP and Merge modes is derived by acquiring motion information from the center or lower right of the co-occurrence block in the co-occurrence image transmitted via signal transmission. Similarly, for sub-block-based temporal motion vector prediction (SbTMVP) mode, motion information from the left neighboring location is used as motion displacement, which is then employed to obtain the sub-CU level TMVP.

[0119] In ECM, two modifications were made to further improve the encoding and decoding efficiency of TMVP. First, two co-located images are utilized; these are two reference frames with the minimum POC distance relative to the frame to be encoded / decoded. Second, the motion displacement for locating the TMVP is adaptively determined from multiple positions based on template cost. More specifically, two motion displacement candidate lists are constructed for each of the two co-located frames. The motion displacement with the minimum template matching cost is used to derive either SbTMVP or TMVP candidates. Up to four SbTMVP candidates are included in the sub-block-based merge list. The SbTMVP candidate with the minimum template matching cost derived from the first co-located frame is placed in the first entry without reordering, while other SbTMVP candidates are ordered together with affine candidates. Additionally, the prediction direction of each sub-block template is determined based on the central sub-block. Figure 22 As shown, if the central sub-block is unidirectionally predicted, then all sub-block templates are unidirectionally predicted, and vice versa. If the motion vector of the corresponding adjacent sub-block at a defined reference list is unavailable for a sub-block template, then zero MV is used for that sub-block template.

[0120] 2.11 Multi-pass Decoder-Side Motion Vector Refinement (DMVR) Multi-pass decoder-side motion vector refinement is integrated into the ECM. In the first pass, bilateral matching (BM) is applied to the codec block. In the second pass, BM is applied to each 16x16 sub-block within the codec block. In the third pass, the motion vectors (MVs) in each 8x8 sub-block are refined by applying bidirectional optical flow (BDOF). The refined MVs are stored for both spatial and temporal motion vector prediction.

[0121] 2.11.1 First pass – Block-based bilateral matching MV refinement In the first pass, the refined MV is derived by applying the BM to the codec block. Similar to decoder-side motion vector refinement (DMVR), in the bidirectional prediction operation, the refined MV is searched around the two initial MVs (MV0 and MV1) in the reference picture lists L0 and L1. The refined MVs (MV0_pass1 and MV1_pass1) are derived around the initial MVs based on the minimum bilateral matching cost between the two reference blocks in L0 and the two reference blocks in L1.

[0122] BM performs a local search to derive the integer sample precision intDeltaMV. The local search applies a 3x3 square search pattern to iterate through the search range [-sHor, sHor] in the horizontal direction and [-sVer, sVer] in the vertical direction, where the values ​​of sHor and sVer are determined by the block dimension, and the maximum value of sHor and sVer is 8.

[0123] The cost of bilateral matching is calculated as: bilCost = mvDistanceCost + sadCost. When the block size is cbW... When cbH is greater than 64, the mean-removed SAD (MRSAD) cost function is applied to remove the DC effect of distortion between reference blocks. The intDeltaMV local search terminates when bilCost at the center point of the 3x3 search pattern has the minimum cost. Otherwise, the current minimum cost search point becomes the new center point of the 3x3 search pattern, and the search for the minimum cost continues until the end of the search range is reached.

[0124] The existing fractional sample refinement is further applied to derive the final deltaMV. Then, the refined MV after the first pass is derived as follows: MV0_pass1 = MV0 + deltaMV, MV1_pass1 = MV1 – delta(7).

[0125] 2.11.2 Second pass – Sub-block-based bilateral matching MV refinement In the second pass, the refined MV is derived by applying the BM to 16x16 grid sub-blocks. For each sub-block, the refined MV is searched around the two MVs (MV0_pass1 and MV1_pass1) obtained in the first pass, against the reference image lists L0 and L1. The refined MVs (MV0_pass2(sbIdx2) and MV1_pass2(sbIdx2)) are derived based on the minimum bilateral matching cost between the two reference sub-blocks in L0 and the two reference sub-blocks in L1.

[0126] For each sub-block, BM performs a full search to derive the integer sample precision intDeltaMV. The full search has a search range [-sHor, sHor] in the horizontal direction and a search range [-sVer, sVer] in the vertical direction, where the values ​​of sHor and sVer are determined by the block dimension, and the maximum value of sHor and sVer is 8.

[0127] The bilateral matching cost is calculated by applying a cost factor to the SATD cost between the two reference subblocks, as follows: bilCost = satdCost costFactor. Search area (2) sHor + 1) (2) sVer + 1) is divided into Figure 23 The diagram shows a maximum of five diamond-shaped search regions. Each search region is assigned a cost factor, determined by the distance (intDeltaMV) between each search point and the starting MV, and each diamond region is processed sequentially starting from the center of the search region. Within each region, search points are processed in raster scan order, starting from the top left corner and ending at the bottom right corner. The minimum bilCost within the current search region is less than a threshold (which is equal to sbW). When sbH), the integer pixel complete search is terminated; otherwise, the integer pixel complete search continues to the next search region until all search points have been checked. Additionally, the search process terminates if the difference between the previous minimum cost and the current minimum cost in the iteration is less than or equal to a threshold of the block area. Figure 23 The diamond-shaped area in the search area is shown.

[0128] The existing VVC DMVR fractional sample refinement is further applied to derive the final deltaMV(sbIdx2). Then, the refined MV for the second pass is derived as follows: MV0_pass2(sbIdx2) = MV0_pass1 + deltaMV(sbIdx2)(8) MV1_pass2(sbIdx2) = MV1_pass1 – deltaMV(sbIdx2).

[0129] 2.11.3 Third pass – Sub-block based bidirectional optical flow MV refinement In the third pass, the refined bioMv is derived by applying BDOF to the 8x8 grid sub-blocks. For each 8x8 sub-block, BDOF refinement is applied to derive scaled Vx and Vy without clipping, starting from the refined bioMv of the parent block in the second pass. The derived bioMv(Vx, Vy) is rounded to 1 / 16 sample precision and clipped between -32 and 32.

[0130] The refined MVs (MV0_pass3(sbIdx3) and MV1_pass3(sbIdx3)) at the third pass are derived as follows: MV0_pass3(sbIdx3) = MV0_pass2(sbIdx2) + bioMv(9) MV1_pass3(sbIdx3) = MV0_pass2(sbIdx2) – bioMv.

[0131] In all of the aforementioned sub-entries, when surround motion compensation is enabled, the motion vector must be limited to account for surround offset.

[0132] 2.12 Geometric Partitioning Mode (GPM) In VVC, geometric segmentation mode is supported for inter-frame prediction. Geometric segmentation mode uses a CU-level flag as a merge mode transmitted via signaling. Other merge modes include regular merge mode, MMVD mode, CIIP mode, and sub-block merge mode. This applies to each possible CU size. (in Excluding 8x64 and 64x8, the geometric segmentation mode supports a total of 64 segments.

[0133] When using this mode, the CU is divided into two parts by a straight line of geometric positioning ( Figure 24 The position of the dividing line is mathematically derived from the angle and offset parameters of the specific segment. Each part of the geometric segment in the CU is predicted inter-frame using its own motion; only unidirectional prediction is allowed for each segment, i.e., each part has one motion vector and one reference index. Unidirectional prediction motion constraints are applied to ensure that, as with traditional bidirectional prediction, only two motion-compensated predictions are needed for each CU. Figure 24 An example of GPM partitioning grouped at the same angle is shown.

[0134] If a geometric segmentation pattern is used for the current CU, the geometric segmentation pattern (angle and offset) and two merge indices (one for each segment) are further indicated via signal transmission. The number of maximum GPM candidate dimensions is explicitly transmitted in SPS, and syntax binarization is specified for the GPM merge indices. After predicting each part of the geometric segmentation, the sample values ​​along the geometric segmentation edges are adjusted using a blending process with adaptive weights. This is the prediction signal for the entire CU, and the transformation and quantization processes are applied to the entire CU as in other prediction patterns. Finally, the motion field of the CU predicted using the geometric segmentation pattern is stored.

[0135] 2.12.1 Construction of One-Way Prediction Candidate List The unidirectional prediction candidate list is directly derived from the Merge candidate list constructed according to the extended Merge prediction process. Let n denote the index of the unidirectional prediction motion in the geometric unidirectional prediction candidate list. The LX motion vector of the nth extended Merge candidate (where X equals the parity of n) is used as the nth unidirectional prediction motion vector for the geometric segmentation pattern. These motion vectors in... Figure 25 The value is marked with "x". If the corresponding LX motion vector of the nth extended Merge candidate does not exist, the L(1-X) motion vector of the same candidate is instead used as the unidirectional predicted motion vector for the geometric segmentation pattern. Figure 25 The unidirectional prediction MV selection for geometric segmentation mode is shown.

[0136] 2.12.2 Blending along geometric segmentation edges After predicting each segment of the geometric segment using its own motion, a blend is applied to the two predicted signals to derive samples around the segmentation edges. The blending weights for each location of the CU are derived based on the distance between the individual location and the segmentation edge.

[0137] For location The distance to the segmentation edge is derived as follows: (10) (11) (12) (13) in It is an index for the angle and offset of the geometric segmentation, which depends on the geometric segmentation index transmitted via signal. and The sign depends on the angle index. .

[0138] The weights of each part of the geometric segmentation are derived as follows: (14) (15) (16) partIdx depends on the angle index Weight An example in Figure 26 It is shown in the middle.

[0139] 2.12.3 Motion field storage for geometric segmentation patterns Mv1 from the first part of the geometric segmentation, Mv2 from the second part of the geometric segmentation, and the combination Mv of Mv1 and Mv2 are stored in the motion field of the CU encoded and decoded by the geometric segmentation pattern.

[0140] The type of motion vector stored for each individual location in the sports field is determined as follows: (17) Where motionIdx equals partIdx depends on the angle index. .

[0141] If sType equals 0 or 1, then Mv0 or Mv1 is stored in the corresponding motion field; otherwise, if sType equals 2, then the combined Mv from Mv0 and Mv2 is stored. The combined Mv is generated using the following process: 1) If Mv1 and Mv2 come from different lists of reference images (one from L0 and the other from L1), then Mv1 and Mv2 are simply combined to form a bidirectional predicted motion vector.

[0142] 2) Otherwise, if Mv1 and Mv2 come from the same list, only the unidirectional predicted motion Mv2 is stored.

[0143] 2.13 Spatial Geometric Partitioning Model (SGPM) SGPM is an intra-frame mode of inter-frame coding / decoding tools similar to GPM, where two prediction parts are generated from the intra-frame prediction process. In this mode, a candidate list is constructed, where each entry contains a segmentation partition and two intra-frame prediction modes, such as... Figure 27 As shown, 26 segmentation modes and 3 intra-frame prediction modes were used to form a combination. The length of the candidate list was set to 16. The selected candidate indices were transmitted via signaling. Figure 27The candidates for the spatial GPM are shown.

[0144] Use templates ( Figure 28 The list is reordered, where the SAD between the template's prediction and reconstruction is used for sorting. The template size is fixed at 1. Figure 28 The GPM template is shown.

[0145] For each segmentation pattern, the same intra-frame to inter-frame GPM list is used for derivation, and the IPM list is derived for each segment. The IPM list size is set to 3. In the list, the TIMD-derived pattern is replaced by two derived patterns with horizontal and vertical directions.

[0146] The SGPM pattern is applied with limited block sizes: 4 <= width <= 64, 4 <= height <= 64, width < height. 8. Height < Width 8. Width Height >= 32.

[0147] The PPS flag is encoded to indicate whether mixing of two intra-frame predictions is not allowed. When the PPS flag is set to false, the following adaptive mixing is also applied to the spatial GPM, where the mixing depth τ is derived as follows: • If min(width, height) == 4, then choose 1 / 2 τ. • Otherwise, if min(width, height) == 8, then choose τ. • Otherwise, if min(width, height) == 16, then choose 2τ. • Otherwise, if min(width, height) == 32, then choose 4τ. • Otherwise, choose 8τ.

[0148] Otherwise (with the PPS flag set to true), 1 / 4 τ is always used for blocks encoded via spatial GPM to ensure that blending is not used when SGPM blocks have perfectly horizontal or vertical split angles, and a much narrower blending width is used when SGPM blocks have other split angles. It should be noted that this flag is set to true in the current Common Test Conditions (CTC) for screen content video.

[0149] 2.14 Features an adaptive blending geometry segmentation mode (GPM) In VVC, the final predicted samples are generated by mixing the predictions of the two predicted signals using a weighted average. Two integer mixing matrices (W0 and W1) are used. The weights in the GPM mixing matrix are derived from the ramp function based on the displacement from the predicted sample location to the GPM segmentation boundary. The mixing region size is fixed at 2 (2 samples on each side of the GPM segmentation boundary).

[0150] By adding four additional blending region sizes (one-quarter, half, twice, and four times the existing region size), such as Figure 29 As shown, the mixing process in the ECM is improved. CU-level flags are encoded and decoded to select the mixing region size via signal transmission. Furthermore, extended weighting precision is utilized, where the maximum weight value is changed from 8 (in VVC) to 32 to accommodate the extended mixing region size. Figure 29 The ramp function for GPM mixing is shown, based on the displacement (d) from the predicted sample location to the GPM segmentation boundary and the size of the mixing region (τ).

[0151] 2.15 Large-block size transformation with high-frequency zeroing In VVC, large block size transforms up to 64x64 are enabled, primarily for higher resolution video such as 1080p and 4K sequences. For transform blocks with a size (width or height, or both) equal to 64, high-frequency transform coefficients are set to zero, leaving only low-frequency coefficients. For example, for an MxN transform block, where M is the block width and N is the block height, when M equals 64, only the left 32 columns of transform coefficients are retained. Similarly, when N equals 64, only the first 32 rows of transform coefficients are retained. When transform skip mode is used for large blocks, the entire block is used without setting any values ​​to zero. Furthermore, transform shifts are removed in transform skip mode. VTM also supports configurable maximum transform sizes in SPS, allowing the encoder to flexibly select transform sizes of up to 32 or 64 lengths depending on the specific implementation requirements.

[0152] 2.16 Multiple Transform Selection (MTS) for Core Transformation In addition to DCT-II, which is already used in HEVC, the Multiple Transform Selection (MTS) scheme is also used for residual coding and decoding of both inter-frame and intra-frame codec blocks. It uses multiple transforms selected from DCT8 / DST7. The newly introduced transform matrices are DST-VII and DCT-VIII. Table 2 shows the basis functions of the selected DST / DCT.

[0153] Table 2 - Transform basis functions for DCT-II / VIII and DSTVII for N-point inputs

[0154] To maintain the orthogonality of the transformation matrix, the transformation matrix is ​​quantized more precisely than that in HEVC. To keep the intermediate values ​​of the transformation coefficients within the 16-bit range, all coefficients must have 10 bits after both the horizontal and vertical transformations.

[0155] To control the MTS scheme, separate enable flags are specified at the SPS level for intra-frame and inter-frame operations. When MTS is enabled at SPS, CU-level flags are signaled to indicate whether MTS is applied. Here, MTS is applied only to luminance. MTS signaling is skipped when one of the following conditions is met.

[0156] The position of the last significant coefficient for luminance TB is less than 1 (i.e., DC only).

[0157] The last significant coefficient of luminance TB is located in the MTS zero region.

[0158] If the MTS CU flag is equal to 0, DCT2 is applied in both directions. However, if the MTS CU flag is equal to 1, two additional flags are transmitted via signaling to indicate the transform type for the horizontal and vertical directions, respectively. The transform and signaling mapping table is shown in Table 3. By removing intra-frame mode and block shape dependencies, a unified transform selection for ISP and implicit MTS is used. If the current block is in ISP mode, or if the current block is an intra-frame block and both intra-frame explicit MTS and inter-frame explicit MTS are enabled, only DST7 is used for both the horizontal and vertical transform kernels. When transform matrix precision is involved, an 8-bit master transform kernel is used. Therefore, all transform kernels used in HEVC remain unchanged, including 4-point DCT-2 and DST-7, 8-point, 16-point, and 32-point DCT-2. In addition, other transform kernels (including 64-point DCT-2, 4-point DCT-8, 8-point, 16-point, and 32-point DST-7 and DCT-8) use an 8-bit master transform kernel.

[0159] Table 3 - Transformation and Signaling Mapping Table

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

[0161] Similar to HEVC, block residuals can be encoded and decoded using transform skip mode. To avoid redundancy in syntax encoding and decoding, the transform skip flag is not transmitted via signaling when MTS_CU_flag is not equal to 0 at the CU level. Note: When LFNST or MIP is activated for the current CU, the implicit MTS transform is set to DCT2. Furthermore, implicit MTS can still be enabled when MTS is enabled for inter-frame encoding / decoding blocks.

[0162] 2.17 Low-Frequency Inseparable Transform (LFNST) In VVC, LFNST is applied between the forward primary transform and quantization (at the encoder side) and between dequantization and the inverse primary transform (at the decoder side). In LFNST, a 4x4 non-separable transform or an 8x8 non-separable transform is applied according to the block size ( Figure 30 ). For example, for small blocks (i.e., min(width, height) < 8), 4x4 LFNST is applied, and for large blocks (i.e., min(width, height) > 4), 8x8 LFNST is applied. Figure 30 illustrates the Low-Frequency Non-Separable Transform (LFNST) process.

[0163] Taking the input as an example, the application of the non-separable transform used in LFNST is described as follows. To apply 4x4 LFNST, the 4x4 input block X (18) is first represented as a vector : (19).

[0164] The non-separable transform is calculated as , where denotes the transform coefficient vector, and T is a 16x16 transform matrix. The 16x1 coefficient vector is subsequently reorganized into a 4x4 block using the scan order (horizontal, vertical, or diagonal) for this block. Coefficients with smaller indices will be placed at positions with smaller scan indices in the 4x4 coefficient block.

[0165] 2.18 Reduced Non-Separable Transform LFNST (Low-Frequency Non-Separable Transform) applies the non-separable transform based on a direct matrix multiplication method, such that it is implemented in a single pass without multiple iterations. However, the dimension of the non-separable transform matrix needs to be reduced to minimize the computational complexity and the storage space for storing transform coefficients. Therefore, the Reduced Non-Separable Transform (or RST) method is used for LFNST. The main idea of the reduced non-separable transform is to map an N-dimensional vector (for 8x8 NSST, N is typically equal to 64) to an R-dimensional vector in a different space, where N / R (R<N) is the reduction factor. Thus, the RST matrix is not an NxN matrix, but an RxN matrix as follows:

[0166] The R rows of the transform form R bases in N-dimensional space. The inverse transform matrix of RT is the transpose of its forward transform. For 8x8 LFNST, a reduction factor of 4 is applied, and the 64x64 direct matrix (which is the size of a regular 8x8 inseparable transform matrix) is reduced to a 16x48 direct matrix. Therefore, a 48x16 inverse RST matrix is ​​used on the decoder side to generate the kernel (primary) transform coefficients in the top-left region of the 8x8. When applying the 16x48 matrix instead of the 16x64 matrix with the same transform set configuration, each matrix takes 48 input data from the three 4x4 blocks excluding the bottom-right 4x4 block from the top-left 8x8 block. Thanks to the reduced dimension, memory usage for storing all LFNST matrices is reduced from 10KB to 8KB with a reasonable performance degradation. To reduce complexity, LFNST is restricted to only being applicable if all coefficients outside the first coefficient subgroup are insignificant. Therefore, when applying LFNST, all primary transform coefficients must be zero. This allows LFNST indexing signaling to be conditional on the last valid position, thus avoiding the extra coefficient scans in the current LFNST design, which are only used to check significant coefficients at specific locations. LFNST's worst-case handling (in terms of per-pixel multiplication) restricts the indivisible transforms of 4x4 and 8x8 blocks to 8x16 and 8x48 transforms, respectively. In these cases, the last valid scan position must be less than 8 when LFNST is applied, and for other sizes less than 16, the last valid scan position must be less than 16. For blocks of shapes 4xN and Nx4 where N>8, the proposed restrictions mean that LFNST is now applied only once, and only to the top-left 4x4 region. Since all principal coefficients are zero when LFNST is applied, the number of operations required for the principal transform is reduced in this case. From the encoder's perspective, coefficient quantization is significantly simplified when testing the LFNST transform. Rate-distortion optimized quantization is performed for at most the first 16 coefficients (in scan order), and the remaining coefficients are forced to zero.

[0167] 2.19 LFNST Transform Selection There are a total of 4 transform sets, and each transform set uses 2 inseparable transform matrices (kernels) in LFNST. The mapping from intra-prediction modes to transform sets is predefined, as shown in Table 4. If one of the three CCLM modes (INTRA_LT_CCLM, INTRA_T_CCLM, or INTRA_L_CCLM) is used for the current block (81 <= predModeIntra <= 83), then transform set 0 is selected for the current chroma block. For each transform set, the selected inseparable quadratic transform candidate is further specified by an LFNST index explicitly transmitted via signaling. This index is transmitted once in the bitstream for each intra-CU after the transform coefficients.

[0168] Table 4 - Transformation Selection Table

[0169] 2.20LFNST Index Signaling and Interaction with Other Tools Because LFNST is restricted to application only when all coefficients outside the first coefficient subgroup are insignificant, LFNST index encoding / decoding depends on the position of the last significant coefficient. Furthermore, LFNST indexing is context-coded but not dependent on the intra-prediction mode, and only the first bit is context-coded. Additionally, LFNST is applied to intra-CUs in both intra-slice and inter-slice scenarios, and to both luma and chroma. If dual-tree is enabled, the luma and chroma LFNST indices are transmitted separately via signaling. For inter-slice (dual-tree disabled), a single LFNST index is transmitted via signaling and used for both luma and chroma.

[0170] Considering that large CUs larger than 64x64 are implicitly partitioned (TU slices) due to the existing maximum transform size limit (64x64), LFNST index search can quadruple the data buffer for a certain number of decoding pipeline stages. Therefore, the maximum allowed size for LFNST is limited to 64x64. Note: LFNST is only enabled using DCT2. LFNST index signaling is placed before MTS index signaling.

[0171] The use of a scaling matrix for perceptual quantization is not obvious because a scaling matrix specified for the master matrix might be useful for the LFNST coefficients. Therefore, the use of scaling matrices for the LFNST coefficients is not permitted. For single-tree segmentation mode, chroma LFNST is not applied.

[0172] 2.21 Subblock Transformation (SBT) In VTM, a sub-block transform is introduced for inter-frame prediction CUs. In this transform mode, only a sub-part of the residual block is encoded or decoded for the CU. When the inter-frame prediction CU has 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 encoded or decoded. In the former case, the inter-frame MTS information is further parsed to determine the transform type of the CU. In the latter case, a portion of the residual block is encoded or decoded using an assumed adaptive transform, and another portion of the residual block is set to zero.

[0173] When SBTs are used in inter-frame encoding / decoding CUs, SBT type and SBT position information are transmitted via signals in the bitstream. For example... Figure 31As shown, there are two SBT types and two SBT locations. For SBT-V (or SBT-H), the TU width (or height) can be equal to half the CU width (or height) or 1 / 4 of the CU width (or height), resulting in a 2:2 partition or a 1:3 / 3:1 partition. A 2:2 partition is like a binary tree (BT) partition, while a 1:3 / 3:1 partition is like an asymmetric binary tree (ABT) partition. In an ABT partition, only small regions contain non-zero residuals. If one dimension of the CU is 8 in the luma sample, a 1:3 / 3:1 partition along that dimension is prohibited. There can be a maximum of 8 SBT modes for a CU.

[0174] Position-dependent transform kernel selection is applied to the luma transform blocks in SBT-V and SBT-H (chroma TB always uses DCT-2). Two positions in SBT-H and SBT-V are associated with different kernel transforms. More specifically, the horizontal and vertical transforms for each SBT position are... Figure 31 The subblock transformation is specified. For example, the horizontal and vertical transformations for SBT-V position 0 are DCT-8 and DST-7, respectively. When one side of the residual TU is greater than 32, the transformations in both dimensions are set to DCT-2. Therefore, the subblock transformation jointly specifies the TU slice, cbf, and horizontal and vertical kernel transformation types of the residual block.

[0175] SBT is not applied to CUs that utilize combined inter-frame and intra-frame mode encoding and decoding. Figure 31 The location, type, and transformation type of the SBT are shown.

[0176] 2.22 Setting the maximum transformation size and transformation coefficients to zero The CTU size and the maximum transform size (i.e., all MTS transform kernels) are both extended to 256, where the largest intra-codec block can have a size of 128x128. For UHD sequences, the maximum CTU size is set to 256; otherwise, it is set to 128. During the main transform, no normalized zeroing operation is applied to the transform coefficients. However, if LFNST is applied, the main transform coefficients outside the LFNST region are normalized to zero.

[0177] 2.23 Enhanced MTS for Intra-Frame Coding and Decoding In the current VVC design, only the DST7 and DCT8 transform cores are utilized for MTS, and they are used for intra-frame encoding and decoding and inter-frame encoding and decoding.

[0178] Additional master transforms (including DCT5, DST4, DST1, and the identity transform (IDT)) are employed. Furthermore, the MTS set depends on the TU size and intra-frame mode information. Sixteen different TU sizes are considered, and for each TU size, five different categories are considered based on the intra-frame mode information. For each category, four different transform pairs are considered, the same as for VVC. Note: Although a total of 80 different categories are considered, some of these different categories often share the exact same transform set. Therefore, there are 58 (less than 80) unique entries in the resulting LUT.

[0179] For angular modes, the joint symmetry of cross-TU shape and intra-frame prediction is considered. Therefore, mode i (i>34) with TU shape AxB will be mapped to the same category as mode j = (68-i) with TU shape BxA. However, for each transform pair, the order of the horizontal and vertical transform kernels is swapped. For example, a 16x4 block with mode 18 (horizontal prediction) and a 4x16 block with mode 50 (vertical prediction) are mapped to the same category. However, the vertical and horizontal transform kernels are swapped. For wide-angle modes, the most recent regular angular mode is used for transform set determination. For example, mode 2 is used for all modes between -2 and -14. Similarly, mode 66 is used for modes 67 through 80.

[0180] The MTS index [0,3] is transmitted via signaling using 2-bit fixed-length encoding and decoding.

[0181] 2.24 Quadratic Transformation: LFNST Extension with Large Kernel The LFNST design in VVC is extended as follows: • LFNST set ( S ) and candidates ( C The number of ) was expanded S =35 and C =3, and the LFNST set (lfnstTrSetIdx) for a given intra-frame mode (predModeIntra) is derived according to the following formula: ○ For predModeIntra<2, lfnstTrSetIdx equals 2. ○ lfnstTrSetIdx = predModeIntra, where predModeIntra is in [0,34]. ○ lfnstTrSetIdx = 68 – predModeIntra, for predModeIntra in [35,66].

[0182] • Three distinct kernels, LFNST4, LFNST8, and LFNST16, are defined to indicate the LFNST kernel set, which are applied to 4xN / Nx4 (N 4) 8xN / Nx8 (N 8) and M x N (M, N) 16).

[0183] The kernel dimension is specified as follows: (LFSNT4, LFNST8) LFNST16 ) = (16x16, 32x64, 32x96).

[0184] The forward LFNST is applied to the low-frequency region in the upper left corner, which is called the region of interest (ROI). When the LFNST is applied, the principal transform coefficients in regions other than the ROI are set to zero, which is unchanged from the VVC standard.

[0185] The ROI of LFNST16 is Figure 32 The diagram is depicted in [the diagram]. It consists of six 4x4 sub-blocks that are consecutive in scan order. Since the number of input samples is 96, the transformation matrix of the forward LFNST16 can be Rx96. In this contribution, R is chosen to be 32, and 32 coefficients (two 4x4 sub-blocks) are generated accordingly from the forward LFNST16, which are placed in the order of coefficient scan. Figure 32 The ROI for LFNST16 is shown.

[0186] The ROI of LFNST8 is Figure 33 The results are shown in the diagram. The positive LFNST8 matrix can be Rx64, and R is chosen to be 32. The generated coefficients are positioned in the same manner as LFNST16. Figure 33 The ROI for LFNST8 is shown.

[0187] The mapping from intra-frame prediction modes to these sets is shown in Table 5: Table 5. Mapping of Intra-Prediction Modes to LFNST Set Indices

[0188] 2.25 Indivisible Main Transform (NSPT) for Intra-Frame Encoding and Decoding For block sizes of 4x4, 4x8, 8x4, and 8x8, DCT-II+LFNST is replaced by NSPT. NSPT follows the design of LFNST, with 3 candidates and 35 sets, selected based on intra-frame mode. The kernel size is as follows: • NSPT4x4: 16x16, • NSPT4x8 / NSPT8x4: 32x20, • NSPT8x8: 64x32.

[0189] Therefore, 12 coefficients for NSPT4x8 / NSPT8x4 and 32 coefficients for NSPT8x8 are set to zero.

[0190] 2.26 Symbol Prediction The basic idea of ​​the coefficient sign prediction method is to calculate the reconstruction residual for both positive and negative sign combinations for applicable transformation coefficients, and select the assumption that minimizes the cost function.

[0191] To derive the optimal sign, the cost function is defined as a measure of discontinuity across block boundaries, such as... Figure 34 As shown. The cost function is measured for all hypotheses, and the hypothesis with the minimum cost is selected as the predicted value for the sign of the coefficients. Figure 34 Discontinuity measurements are shown.

[0192] The cost function is defined as the sum of the absolute second derivatives in the residual domain with respect to the top row and the left column as follows: (twenty one) in R It is a neighboring area that is being rebuilt. P It is the prediction for the current block, and r It's the residual assumption. (Term) Each block can only be computed once, and only the residual assumption is subtracted.

[0193] 2.27 LFNST / NSPT for inter-frame encoding and decoding In ECM-12.0, LFNST / NSPT is applied to inter-frame coding and decoding, where Virtual Intra-Prediction Modes (VIPMs) are employed. Each VIPM represents a feature, such as a specific orientation. VIPMs are derived by applying a similar DIMD process, also used in MIP and IntraTMP, to inter-frame prediction blocks. The horizontal and vertical gradients of pixels within a prediction block are calculated using the Sobel operator, and the horizontal and vertical gradients of each pixel are used to derive the orientation. For the corresponding orientation, the magnitude of the gradient for each pixel is accumulated. The intra-frame prediction mode corresponding to the strongest accumulation is selected as the VIPM. Using VIPMs, the transform set of LFNST / NSPT can be derived. For inter-frame coding and decoding, the kernel mapping method is the same as that for intra-frame LFNST / NSPT.

[0194] The distribution of inter-frame LFNST / NSPT indices differs from that of intra-frame LFNST / NSPT indices. Therefore, it is proposed that the signaling for inter-frame LFNST / NSPT indices differ from that for intra-frame LFNST / NSPT indices. Intra-frame LFNST / NSPT index binarization uses two binary bits for context encoding / decoding per symbol, while for inter-frame LFNST / NSPT index encoding / decoding, a rounding unary code with a different context model is proposed.

[0195] 2.28 Selection of Multiple Transform Sets for LFNST / NSPT The LFNST / NSPT transform set for a specific intra-frame mode (i.e., DIMD, TIMD, MIP, SGPM, EIP, and ITMP) is selected from two candidate sets, corresponding to two different intra-frame prediction modes (IPM). The derivation of the two intra-frame modes is as follows.

[0196] Table 6: Derivation of Multiple Intra-Frame Modes in LFNST / NSPT

[0197] The candidate LFNST / NSPT IPMs for MIP, EIP, and ITMP were modified, with intermediate results from DIMD processing being reused. Specifically, the first LFNST / NSPT IPM for MIP, EIP, and ITMP retained the first DIMD IPM, while the second IPM was replaced by a second DIMD IPM derived based on the prediction signal of the current block. The derivations of the multiple intra-frame modes proposed for LFNST / NSPT are summarized in Table 7.

[0198] Table 7: Derivation of Multiple Intra-Frame Modes of Proposed LFNST / NSPT

[0199] 3 questions The existing inter-frame LFNST / NSPT methods have the following problems: 1) In ECM-12.0, LFNST / NSPT cannot be applied to blocks encoded and decoded via Subblock Transform (SBT), and coordination between LFNST / NSPT and SBT (i.e., SBT-LFNST / NSPT) is highly needed to further improve encoding and decoding performance.

[0200] 4 Detailed Solutions In this disclosure, it is proposed to further improve LFNST / NSPT by allowing LFNST / NSPT for blocks encoded and decoded by SBT.

[0201] The detailed embodiments described below should be considered as examples for explaining general concepts. These embodiments should not be interpreted in a narrow sense. Furthermore, these embodiments can be combined in any way.

[0202] The terms "video unit," "code-decoder unit," or "block" can refer to code-decoder tree block (CTB), code-decoder tree unit (CTU), code-decoder block (CB), CU, PU, ​​TU, PB, and TB. The term "sub-block-based codec tool" can refer to affine codecs, SbTMVP, and their corresponding variants.

[0203] In this disclosure, "block encoded or decoded in mode N" can refer to a predictive mode (e.g., MODE_INTRA, MODE_INTER, MODE_PLT, MODE_IBC, etc.) or a encoding / decoding technique (e.g., DIMD, TIMD, PDPC, CCLM, CCCM, GLM, intraTMP, AMVP, SMVD, Merge, BDOF, PROF, DMVR, AMVR, TM, affine, CIIP, GPM, spatial GPM, SGPM, GPM inter-frame to inter-frame, GPM intra-frame to intra-frame, GPM inter-frame to intra-frame, MHP, GEO, TPM, MMVD, BCW, HMVP, SbTMVP, LIC, OBMC, ALF, deblocking, SAO, bilateral filter, LMCS, SBT, LFNST / NSPT, MTS and corresponding variants, etc.).

[0204] It should be noted that the following terms are not limited to the specific terms defined in existing standards. Any changes to encoding / decoding tools also apply.

[0205] 1. For blocks encoded and decoded by SBT, LFNST / NSPT can be applied to at least one sub-block / TU.

[0206] a) In one example, the codec unit may first be divided into M (M>=0) sub-blocks / TUs, and / or each sub-block / TU may perform a separate transformation.

[0207] i. In one example, for a specific subblock / TU, K (K>1) transformations can be applied in a cascaded manner.

[0208] 1) In one example, all K transformations can be separable transformations.

[0209] a) In one example, at least one of the K transformations can be indivisible.

[0210] b) In one example, at least one of the K transformations can be separable.

[0211] c) In one example, among the K transformations, at least one transformation may be inseparable, and at least one transformation may be separable.

[0212] 2) In one example, a first transformation can be applied, and then a second transformation can be applied based on the coefficients of the first transformation.

[0213] a) In one example, the second transformation could be LFNST.

[0214] ii. In one example, only one transformation is performed for a specific subblock / TU.

[0215] 1) In one example, a separable transformation can be applied.

[0216] 2) In one example, an inseparable transformation can be applied.

[0217] a) In one example, the inseparable transformation could be NSPT.

[0218] iii. In one example, whether and / or how to perform LFNST / NSPT on blocks encoded and decoded by SBT can depend on predefined rules.

[0219] 1) For example, predefined rules can be defined based on the type of video unit / encoding / decoding tool / encoding method, such as: a) For example, it can be based on low-latency (e.g., low-latency-B and / or low-latency-P) images.

[0220] b) For example, it can be based on time-domain information.

[0221] c) For example, it can be based on the strip type (e.g., B strip, P strip).

[0222] d) For example, it can be based on prediction modes (e.g., intra-frame, inter-frame, IBC, PLT, CCP, etc.).

[0223] e) For example, it can be based on prediction methods (e.g., intra-frame CCP, intra-frame CCP Merge, inter-frame CCP, inter-frame CCP Merge, template-based methods, GPM, affine, CIIP, etc.).

[0224] f) For example, it can be based on block information (e.g., block height / width / width-to-height ratio / block area, etc.).

[0225] g) For example, it can depend on a combination of the above rules.

[0226] 2. It is possible to indicate by signal transmission whether a secondary transformation can be applied to at least one syntax of a block encoded or decoded by SBT.

[0227] a) In one example, the quadratic transformation could be LFNST / NSPT.

[0228] b) In one example, at least one block-level SBT-LFNST / NSPT syntax can be transmitted via signaling in the bitstream.

[0229] c) In one example, at least one SBT-LFNST / NSPT syntax can be transmitted in the bitstream at the sequence level / picture group level / picture level / strip level / piece group level (such as in the sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / strip header / piece group header).

[0230] d) In one example, whether the SBT-LFNST / NSPT syntax is transmitted via signaling or whether SBT-LFNST / NSPT is applied may depend on the value of at least one other syntax.

[0231] i. In one example, whether the SBT-LFNST / NSPT syntax is transmitted via signaling or whether SBT-LFNST / NSPT is applied may depend on the value of at least one additional sequence-level / picture-group-level / picture-level / strip-level / piece-group-level syntax.

[0232] 1) In one example, whether the SBT-LFNST / NSPT syntax is transmitted via signaling or whether SBT-LFNST / NSPT is applied may depend on the value of the syntax indicating whether SBT and / or LFNST / NSPT is enabled.

[0233] ii. In one example, whether the SBT-LFNST / NSPT syntax is transmitted via signaling or whether SBT-LFNST / NSPT is applied may depend on the value of at least one other block-level syntax.

[0234] 1) In one example, specifically, whether the SBT-LFNST / NSPT syntax is transmitted via signaling or whether SBT-LFNST / NSPT is applied may depend on whether SBT and / or LFNST / NSPT is used for a particular block.

[0235] 2) In one example, the SBT-LFNST / NSPT syntax may not be transmitted via signaling. If the SBT syntax and / or LFNST / NSPT syntax meet certain conditions, then SBT-LFNST / NSPT is used by default.

[0236] a) In one example, the condition could be greater than a specific value (e.g., 0).

[0237] b) In one example, the condition could be a syntax indicating that SBT and / or LFNST / NSPT are used.

[0238] 3. Whether and / or how to perform LFNST / NSPT on blocks encoded and decoded by SBT can depend on the block information.

[0239] a) In one example, whether and / or how to perform LFNST / NSPT on blocks encoded and decoded by SBT can depend on SBT information (i.e., partitioning direction / position).

[0240] i. In one example, if the SBT is not used (i.e., using index 0) and / or equal to a specific index value (e.g., greater than 0), the LFNST / NSPT index may not be transmitted via signaling.

[0241] b) In one example, whether and / or how to perform LFNST / NSPT on a block encoded and decoded by SBT can depend on the number of non-zero coefficients within the block.

[0242] i. In one example, if the number of non-zero coefficients is greater than or less than a threshold, the LFNST / NSPT index may not be transmitted via signaling or the LFNST / NSPT may not be applied.

[0243] c) In one example, a combination of the above conditions can be used.

[0244] 4. At least one sub-block / TU within a CU encoded and decoded by SBT-LFNST / NSPT can execute LFNST / NSPT.

[0245] a) In one example, all sub-blocks / TUs can execute LFNST / NSPT.

[0246] b) In one example, only some sub-blocks / TUs can execute LFNST / NSPT.

[0247] i. In one example, whether a particular sub-block / TU will perform LFNST / NSPT may depend on whether it contains at least one non-zero coefficient / residual.

[0248] 5. For blocks encoded and decoded by SBT, which main transform core is used may depend on whether LFNST / NSPT is used.

[0249] a) In one example, if LFNST / NSPT is not applied to blocks encoded / decoded by SBT, the main transform kernel for a particular subblock / TU can be specified by the SBT index (i.e., partition direction / position).

[0250] i. In one example, specifically, different master transform kernels can be used for different SBT indices (i.e., partitioning directions / positions).

[0251] b) In one example, alternatively, if LFNST / NSPT is applied to a block encoded / decoded by SBT, a different master transform core can be used for a particular sub-block / TU.

[0252] i. In one example, the choice of which master transform kernel to use may not depend on the SBT index (i.e., the division direction / position).

[0253] ii. In one example, if LFNST / NSPT is applied to a block encoded / decoded by SBT, a fixed (e.g., DCT2) master transform core can be used.

[0254] 6. If LFNST / NSPT is applied to blocks encoded or decoded by SBT, different LFNST / NSPT kernel index derivation methods can be used.

[0255] a) In one example, for a block encoded or decoded without SBT, the LFNST / NSPT core index can be derived by analyzing the prediction signals of the CU or PU regions.

[0256] i. In one example, the HOG (or the cumulative magnitude of the gradient, in a manner similar to DIMD) can be constructed based on the predicted signal of the CU or PU region, and the direction corresponding to the highest histogram can be used to derive the LFNST / NSPT kernel index.

[0257] b) In one example, for a block encoded or decoded by SBT, the LFNST / NSPT kernel index can be derived by analyzing the prediction signal in the current sub-block or TU region.

[0258] i. In one example, the HOG (or the cumulative magnitude of the gradient, in a manner similar to DIMD) can be constructed based on the predicted signal within the current sub-block or TU region, and the direction corresponding to the highest histogram can be used to derive the LFNST / NSPT kernel index.

[0259] 7. For blocks encoded and decoded by SBT, the coefficients after LFNST / NSPT can be further used to perform symbol prediction, and / or the difference between the actual symbol and the predicted symbol can be transmitted via signal transmission.

[0260] 8. For blocks encoded or decoded by SBT, LFNST / NSPT can be applied according to the color format and / or color components.

[0261] a) For example, LFNST / NSPT can be applied only to the luminance component.

[0262] b) For example, LFNST / NSPT can be applied to the chromaticity component.

[0263] c) For example, different transformation kernels can be applied to different color components.

[0264] 9. Propose enabling SBT for blocks encoded and decoded via GPM inter-frame-intra-frame coding.

[0265] a) In one example, a block encoded by GPM inter-intra-frame indicates that its two segments are encoded by GPM blocks encoded by intra-frame mode and inter-frame mode respectively.

[0266] b) In one example, SBT can be applied to blocks encoded and decoded via GPM inter-frame-intra-frame to preserve residual signals only for a portion of the block.

[0267] i. In one example, when SBT is applied to a block that has been codified and decoded via GPM inter-frame to intra-frame, LFNST / NSPT can be further applied to encode and decode the TU using the residual.

[0268] Regarding the selection of multiple transform sets (MTSS) 10. Indicates which LFNST / NSPT transform set index (i.e., MTSS index) can be transmitted via signaling in the bitstream for the codec block.

[0269] c) In one example, the index can first be used to specify the intra-prediction mode (IPM), which can then be used to derive the LFNST / NSPT transform set / kernel.

[0270] 11. Whether / how the MTSS index is transmitted via signaling may depend on the encoding / decoding information of the current block.

[0271] d) In one example, the encoding / decoding information may be as follows: i. In one example, the information could be the encoding / decoding mode / block width / height / area / width to height ratio / smaller (or larger) value of width and height / quantization parameter / whether the temporal layer index (Tid) is greater than or less than a predefined constant / value transmitted by the encoder through the signal / value derived by both the encoder and decoder.

[0272] ii. In one example, the information could be whether the current stripe meets the low-latency condition.

[0273] iii. In one example, the information could be whether the current block belongs to the screen content.

[0274] iv. In one example, the information may be based on a prediction pattern (e.g., intra-frame, inter-frame, IBC, PLT, CCP, GPM, TIMD, DIMD, MIP, EIP, ITMP, etc.).

[0275] v. In one example, information may be based on a prediction method (e.g., intra-frame CCP, intra-frame CCP Merge, inter-frame CCP, inter-frame CCP Merge, template-based methods, GPM, affine, CIIP, etc.).

[0276] vi. In one example, the above information can be used in combination.

[0277] e) For intra-frame codec blocks, whether / how the MTSS index is transmitted via signaling can depend on whether it is angle-predicted.

[0278] i. In one example, the prediction of the intra-code block indicated by the angle prediction is generated by projecting reference samples onto corresponding positions with specific angle values.

[0279] ii. In one example, if the codec block is non-angle-predicted, the MTSS index can be transmitted via signaling.

[0280] 1) In one example, if the block is encoded or decoded using TIMD / DIMD / SGPM / MIP / EIP / ITMP, the MTSS index can be transmitted via signaling.

[0281] a) In one example, alternatively, the MTSS index can be transmitted via signaling if the block’s angle index (intra-frame direction) meets certain conditions.

[0282] i. In one example, the condition could be whether the angle index (intra-frame direction) is equal to (or greater than / less than) a specific value.

[0283] ii. In one example, the condition could be whether the angle index (intra-frame direction) is an even or odd value.

[0284] iii. In one example, the condition could be whether the remainder of the angle index (intra-frame direction) divided by K (i.e., angle index % K) is equal to a specific value.

[0285] b) In one example, alternatively, if the block size meets certain conditions, the MTSS index can be transmitted via signaling.

[0286] i. In one example, the condition could be whether the block size / block area / block height / block width is equal to (or greater than / less than) a specific value.

[0287] c) In one example, alternatively, if both the angle index condition (in item a) and the block size condition (in item b) are satisfied, the MTSS index can be transmitted via signaling.

[0288] d) In one example, a lookup table indexed by an angle index (or a variant of an angle index) and / or a block size (or a variant of a block size) can be used to determine whether an MTSS index has been transmitted via signaling.

[0289] i. In one example, an MTSS index can be signaled if the table value associated with the angular index (or a variant of the angular index) and / or the block size (or a variant of the block size) meets certain conditions.

[0290] 1. In one example, the condition can be equal to (or greater than / less than) a specific value.

[0291] General aspects 12. In the above examples, a video unit can refer to a color component / sub-picture / strip / piece / code-decode tree unit (CTU) / CTU line / CTU group / code-decode unit (CU) / prediction unit (PU) / transform unit (TU) / code-decode tree block (CTB) / code-decode block (CB) / prediction block (PB) / transform block (TB) / sub-block of a block / sub-region within a block / any other region containing more than one sample or pixel.

[0292] 13. Whether and / or how the methods disclosed above can be applied to be transmitted via signaling at the sequence level / picture group level / picture level / strip level / piece group level, such as in the sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / strip header / piece group header.

[0293] 14. Whether and / or how to apply the above methods may depend on the following information: f) Messages transmitted via signals in DPS / SPS / VPS / PPS / APS / Picture Header / Strip Header / Piece Group Header / Maximum Codec Unit (LCU) / Codec Unit (CU) / LCU Line / LCU Group / TU / PU Block / Video Codec Unit.

[0294] g) Location of CU / PU / TU / block / video codec unit.

[0295] h) The block dimension of the current block and / or the blocks adjacent to the current block.

[0296] i) The block shape of the current block and / or the blocks adjacent to the current block.

[0297] j) The encoding / decoding mode of the block, such as IBC or non-IBC inter-frame mode or non-IBC sub-block mode.

[0298] k) Indication of color format (such as 4:2:0, 4:4:4).

[0299] l) Encoding / decoding tree structure.

[0300] m) Strip / panel type and / or image type.

[0301] n) Color components (e.g., can be applied only to the chromaticity component or the luminance component).

[0302] o) Time-domain layer ID.

[0303] p) Standard grade / level / layer.

[0304] q) Does the current stripe meet the low latency condition?

[0305] r) Whether the current block belongs to the screen content.

[0306] Figure 35 A flowchart of a method 3500 for video processing according to an embodiment of the present disclosure is shown. Method 3500 is implemented during the conversion between video blocks or video units of a video and a bitstream of the video.

[0307] At box 3510, for the conversion between the current video block and the video bitstream, it is determined that Subblock Transform (SBT) is enabled for the current video block. The current video block is encoded and decoded in Geometric Partition Mode (GPM) inter-frame-intra-frame mode.

[0308] At box 3520, SBT is applied to at least one sub-block of the current video block.

[0309] At box 3530, the SBT-based application performs a conversion. In some embodiments, the conversion may include encoding the current video block into a bitstream. Alternatively or additionally, in some embodiments, the conversion may include decoding the current video block from the bitstream.

[0310] Method 3500 enables the application of SBT to blocks encoded and decoded via GPM inter- and intra-frame encoding / decoding. This improves encoding / decoding efficiency and performance.

[0311] In some embodiments, the current video block includes a block encoded and decoded using GPM. A block encoded and decoded using GPM may include segments encoded and decoded in intra-frame mode and segments encoded and decoded in inter-frame mode.

[0312] In some embodiments, SBT is applied to the current video block to preserve residual signals for a portion of the current video block. For example, residual signals for sub-blocks or corresponding transform units of the current video block can be preserved.

[0313] In some embodiments, method 3500 further includes applying an inseparable transform to at least one transform unit associated with at least one sub-block of the current video block, the inseparable transform including at least one of the following: low-frequency inseparable transform (LFNST) or inseparable master transform (NSPT).

[0314] According to another embodiment of this disclosure, a non-transitory computer-readable recording medium is provided. This non-transitory computer-readable recording medium stores a bitstream of video generated by a method performed by an apparatus for video processing. In this method, Subblock Transform (SBT) is determined to be enabled for a current video block. The current video block is encoded and decoded in Geometric Partition Mode (GPM) inter-frame / intra-frame mode. SBT is applied to at least one subblock of the current video block. A bitstream is generated based on this application.

[0315] According to further embodiments of this disclosure, a method for storing a bitstream of video is provided. In this method, Subblock Transform (SBT) is determined to be enabled for the current video block. The current video block is encoded and decoded in Geometric Partition Mode (GPM) inter-frame / intra-frame mode. SBT is applied to at least one subblock of the current video block. A bitstream is generated based on this application. The bitstream is stored in a non-transitory computer-readable recording medium.

[0316] Figure 36 A flowchart of a method 3600 for video processing according to an embodiment of the present disclosure is shown. Method 3600 is implemented during the conversion between video blocks or video units of a video and a bitstream of the video.

[0317] At box 3610, for the conversion between the current video block and the video bitstream, the set of inseparable transforms (also known as the set of inseparable transform kernels) for the current video block is determined based on the index in the bitstream. The set of inseparable transforms includes at least one of the following: a set of low-frequency inseparable transforms (LFNST) or a set of inseparable master transforms (NSPT). For example, the index could be a multiple transform set selection (MTSS) index, etc.

[0318] At box 3620, the indivisible transform set is applied to the current video block.

[0319] At box 3630, a transformation is performed based on the application of an indivisible transform set. In some embodiments, the transformation may include encoding the current video block into a bitstream. Alternatively or additionally, in some embodiments, the transformation may include decoding the current video block from the bitstream.

[0320] Method 3600 enables the derivation of the LFNST core set or NSPT core set based on indices in the bitstream. In this way, encoding and decoding performance can be improved.

[0321] In some embodiments, the index specifies the intra-frame prediction model (IPM), and the IPM is used to determine the set of inseparable transforms.

[0322] In some embodiments, whether and / or how an index is indicated in the bitstream can be based on the encoding / decoding information of the current video block and / or whether the current video block is angle-predicted.

[0323] In some embodiments, the encoding and decoding information may include, but is not limited to, encoding and decoding mode, block width, block height, area, width-to-height ratio, smaller of width and height, larger of width and height, quantization parameters, whether the temporal layer index (Tid) is greater than or less than a predefined constant, values ​​in the bitstream, derived values, whether the current stripe meets the low latency condition, whether the current video block belongs to screen content, prediction mode, prediction method, etc.

[0324] In some embodiments, the prediction mode includes at least one of the following: intra-frame mode, inter-frame mode, intra-block copy (IBC) mode, palette (PLT) mode, or cross-component prediction (CCP) mode, geometric segmentation mode (GPM), template-based intra-frame mode derivation (TIMD), decoder-side intra-frame mode derivation (DIMD), matrix-based intra-frame prediction (MIP), extrapolation-based intra-frame prediction (EIP), or intra-frame template matching prediction (ITMP).

[0325] In some embodiments, the prediction method includes at least one of the following: intra-frame cross-component prediction (CCP), intra-frame CCP merge, inter-frame CCP, inter-frame CCP merge, template-based method, geometric segmentation mode (GPM), affine method, or inter-frame and intra-frame joint prediction (CIIP).

[0326] In some embodiments, the current video block is angle-predicted, indicating that the prediction of the current video block is generated by projecting at least one reference sample point onto at least one corresponding position having an angle value, and the current video block is an intra-frame codec block.

[0327] In some embodiments, if the current video block is predicted non-angle-based, the index can be indicated in the bitstream.

[0328] In some embodiments, if the current video block is encoded using at least one of the following, the index may be indicated in the bitstream: Template-based intra-mode derivation (TIMD), decoder-side intra-mode derivation (DIMD), spatial geometry partitioning mode (SGPM), matrix-based intra-prediction (MIP), extrapolation-based intra-prediction (EIP), or intra-template matching prediction (ITMP).

[0329] In some embodiments, the index is indicated in the bitstream based on the following: the angle index of the current video block satisfies at least one first condition, the angle index indicates the intra-frame orientation of the current video block, and / or the size information of the current video block satisfies a second condition.

[0330] In some embodiments, at least one first condition may be: the angle index is equal to a first value, the angle index is greater than a second value, the angle index is less than a third value, the angle index is an even or odd value, the remainder of the angle index divided by a fourth value (such as an integer K) is equal to a fifth value, and / or similar conditions.

[0331] In some embodiments, the second condition may be one of the following: the block size of the current video block is equal to or greater than or less than a threshold, the block area of ​​the current video block is equal to or greater than or less than a threshold, the height of the current video block is equal to or greater than or less than a threshold, or the width of the current video block is equal to or greater than or less than a threshold.

[0332] In some embodiments, whether an index is indicated in the bitstream is based on: a lookup table indexed by an angular index or a variant of an angular index, and / or information related to the block size of the current video block.

[0333] In some embodiments, the index in the bitstream is indicated based on: a lookup table satisfying a third condition, block size-related information satisfying a fourth condition, and / or similar conditions. The third condition may be a lookup table value equal to, greater than, or less than. The fourth condition may be a block size-related value equal to, greater than, or less than.

[0334] According to another embodiment of this disclosure, a non-transitory computer-readable recording medium is provided. This non-transitory computer-readable recording medium stores a bitstream of video generated by a method performed by an apparatus for video processing. In this method, an inseparable transform set for a current video block is determined based on an index in the bitstream. The inseparable transform set includes at least one of the following: a low-frequency inseparable transform (LFNST) set or an inseparable main transform (NSPT) set. The inseparable transform set is applied to the current video block. The bitstream is generated based on the application of the inseparable transform set.

[0335] According to further embodiments of this disclosure, a method for storing a bitstream of video is provided. In this method, an indivisible transform set for a current video block is determined based on an index in the bitstream. The indivisible transform set includes at least one of the following: a low-frequency indivisible transform (LFNST) set or an indivisible main transform (NSPT) set. The indivisible transform set is applied to the current video block. A bitstream is generated based on the application of the indivisible transform set. The bitstream is stored in a non-transitory computer-readable recording medium.

[0336] In some embodiments, the current video block may include at least one of the following: color components, sub-pictures, stripes, slices, codec tree units (CTUs), CTU rows, CTU groups, codec units (CUs), prediction units (PUs), transform units (TUs), codec tree blocks (CTBs), codec blocks (CBs), prediction blocks (PBs), transform blocks (TBs), blocks, sub-blocks of blocks, sub-regions within blocks, or regions containing more than one sample point or pixel.

[0337] In some embodiments, an indication of whether and / or how to apply method 3500 and / or method 3600 may be indicated at one of the following: sequence level, picture group level, picture level, strip level, or slice group level, or wherein an indication of whether and / or how to apply the method may be indicated at one of the following: sequence header, picture header, sequence parameter set (SPS), video parameter set (VPS), dependency parameter set (DPS), decoding capability information (DCI), picture parameter set (PPS), adaptive parameter set (APS), strip header, or slice group header.

[0338] In some embodiments, whether and / or how method 3500 and / or method 3600 are applied may be based on at least one of the following: messages included in one of the following: Dependency Parameter Set (DPS), Sequence Parameter Set (SPS), Video Parameter Set (VPS), Picture Parameter Set (PPS), Adaptive Parameter Set (APS), Picture Header, Strip Header, Piece Group Header, Maximum Codec Unit (LCU), Codec Unit (CU), LCU Row, LCU Group, Transform Unit (TU), Prediction Unit (PU), Block or Video Codec Unit, Position of CU, PU, ​​TU, Block or Video Codec Unit, Block Dimension of the current video block and / or Block Dimension of the current video block's neighboring blocks, Block Shape of the current video block and / or Block Shape of the current video block's neighboring blocks, Codec Mode of the block, Indicator of Color Format, Codec Tree Structure, Strip, Piece Group Type, Picture Type, Color Components, Temporal Layer Identifier (ID), Standard Grade, Level or Layer, Whether the current strip containing the current video block satisfies the low latency condition, or Whether the current video block belongs to screen content.

[0339] In some embodiments, the encoding / decoding mode includes one of the following: intra-block copy (IBC), non-IBC inter-frame mode, or non-IBC sub-block mode, or wherein the color format includes one of the following: 4:2:0 or 4:4:4.

[0340] It should be understood that Method 3500, Method 3600, and any other suitable methods described herein can be applied individually or in any combination. Using Method 3500 and / or Method 3600, encoding / decoding efficiency and effectiveness can be improved.

[0341] Embodiments of this disclosure can be described according to the following entries, and its features can be combined in any reasonable manner.

[0342] Item 1. A method for video processing, comprising: for a conversion between a current video block and a bitstream of the video, determining that a sub-block transform (SBT) is enabled for the current video block, the current video block being encoded and decoded in a geometrically segmented mode (GPM) inter-intra-frame mode; applying the SBT to at least one sub-block of the current video block; and performing the conversion based on the application.

[0343] Item 2. The method according to Item 1, wherein the current video block comprises a block encoded and decoded by GPM, the block encoded and decoded by GPM comprising segments encoded and decoded in intra-frame mode and segments encoded and decoded in inter-frame mode.

[0344] Item 3. The method according to Item 1 or 2, wherein the SBT is applied to the current video block to preserve residual signals for a portion of the current video block.

[0345] Item 4. The method according to any one of items 1 to 3 further comprises: applying an inseparable transform to at least one transform unit associated with the at least one sub-block of the current video block, the inseparable transform including at least one of: low-frequency inseparable transform (LFNST) or inseparable master transform (NSPT).

[0346] Item 5. A method for video processing, comprising: a conversion between a current video block of a video and a bitstream of the video; determining an inseparable transform set for the current video block based on an index in the bitstream, the inseparable transform set including at least one of: a low-frequency inseparable transform (LFNST) set or an inseparable main transform (NSPT) set; applying the inseparable transform set to the current video block; and performing the conversion based on the application.

[0347] Item 6. The method according to Item 5, wherein the index comprises a plurality of Transform Set Selection (MTSS) indexes.

[0348] Item 7. The method according to Item 5 or 6, wherein the index specifies an intra-frame prediction model (IPM), and the IPM is used to determine the inseparable transform set.

[0349] Item 8. The method according to any one of items 5 to 7, wherein whether and / or how the index is indicated in the bitstream is based on at least one of: the codec information of the current video block, or whether the current video block is angle-predicted.

[0350] Item 9. The method according to Item 8, wherein the encoding / decoding information includes at least one of the following: encoding / decoding mode, block width, block height, area, ratio of the width to the height, the smaller of the width and the height, the larger of the width and the height, quantization parameter, whether the temporal layer index (Tid) is greater than or less than a predefined constant, a value in the bitstream, a derived value, whether the current stripe satisfies a low latency condition, whether the current video block belongs to screen content, prediction mode or prediction method.

[0351] Item 10. The method according to Item 9, wherein the prediction mode includes at least one of the following: intra-frame mode, inter-frame mode, intra-block copy (IBC) mode, palette (PLT) mode, or cross-component prediction (CCP) mode, geometric segmentation mode (GPM), template-based intra-frame mode derivation (TIMD), decoder-side intra-frame mode derivation (DIMD), matrix-based intra-frame prediction (MIP), extrapolation-based intra-frame prediction (EIP), or intra-frame template matching prediction (ITMP).

[0352] Item 11. The method according to Item 10, wherein the prediction method includes at least one of the following: intra-component cross-component prediction (CCP), intra-component CCP merge, inter-component CCP, inter-component CCP merge, template-based method, geometric segmentation mode (GPM), affine method, or inter-intra-component joint prediction (CIIP).

[0353] Item 12. The method according to Item 8, wherein the current video block is angle-predicted, indicating that the prediction of the current video block is generated by projecting at least one reference sample point onto at least one corresponding position having an angle value, and the current video block is an intra-frame codec block.

[0354] Item 13. The method according to Item 8, wherein if the current video block is predicted by a non-angle, the index is indicated in the bitstream.

[0355] Item 14. The method according to Item 13, wherein the index is indicated in the bitstream if the current video block is encoded using at least one of the following: Template-based intra-mode derivation (TIMD), decoder-side intra-mode derivation (DIMD), spatial geometric partitioning mode (SGPM), matrix-based intra-prediction (MIP), extrapolation-based intra-prediction (EIP), or intra-template matching prediction (ITMP).

[0356] Item 15. The method according to Item 8, wherein the index is indicated in the bitstream based on at least one of the following: the angle index of the current video block satisfies at least one first condition, the angle index indicating the intra-frame orientation of the current video block, or the size information of the current video block satisfies a second condition.

[0357] Item 16. The method according to Item 15, wherein the at least one first condition includes at least one of the following: the angle index is equal to a first value, the angle index is greater than a second value, the angle index is less than a third value, the angle index is an even value or an odd value, or the remainder of the angle index divided by a fourth value is equal to a fifth value, wherein the fourth value is an integer.

[0358] Item 17. The method according to Item 15, wherein the second condition includes one of the following: the block size of the current video block is equal to or greater than or less than a threshold, the block area of ​​the current video block is equal to or greater than or less than a threshold, the height of the current video block is equal to or greater than or less than a threshold, or the width of the current video block is equal to or greater than or less than a threshold.

[0359] Item 18. The method according to Item 8, wherein whether the index is indicated in the bitstream is based on at least one of the following: a lookup table indexed by an angle index or a variant of the angle index, or block size-related information of the current video block.

[0360] Item 19. The method according to Item 18, wherein the index is indicated in the bitstream based on at least one of the following: the lookup table satisfies a third condition, or the block size-related information satisfies a fourth condition.

[0361] Item 20. The method according to Item 19, wherein the third condition or the fourth condition includes the lookup table or the block size related information being equal to, greater than, or less than a value.

[0362] Item 21. The method according to any one of Items 1 to 20, wherein the current video block comprises at least one of the following: color component, sub-picture, strip, slice, codec tree unit (CTU), CTU row, CTU group, codec unit (CU), prediction unit (PU), transform unit (TU), codec tree block (CTB), codec block (CB), prediction block (PB), transform block (TB), block, sub-block of block, sub-region within block, or region containing more than one sample point or pixel.

[0363] Item 22. The method according to any one of items 1 to 21, wherein an indication of whether and / or how to apply the method is indicated at one of the following: sequence level, picture group level, picture level, strip level, or slice group level, or wherein an indication of whether and / or how to apply the method is indicated at one of the following: sequence header, picture header, sequence parameter set (SPS), video parameter set (VPS), dependency parameter set (DPS), decoding capability information (DCI), picture parameter set (PPS), adaptive parameter set (APS), strip header, or slice group header.

[0364] Item 23. According to any one of items 1 to 21, whether and / or how the method is applied is based on at least one of the following: messages including one of the following: Dependency Parameter Set (DPS), Sequence Parameter Set (SPS), Video Parameter Set (VPS), Picture Parameter Set (PPS), Adaptive Parameter Set (APS), Picture Header, Strip Header, Slice Header, Maximum Codec Unit (LCU), Codec Unit (CU), LCU Row, LCU Group, Transform Unit (TU), Prediction Unit (PU) Block or Video Codec Unit, Position of CU, PU, ​​TU, Block or Video Codec Unit, Block Dimension of the current video block and / or Block Dimension of the neighboring blocks of the current video block, Block Shape of the current video block and / or Block Shape of the neighboring blocks of the current video block, Codec Mode of the block, Indicator of Color Format, Codec Tree Structure, Strip, Slice Type, Picture Type, Color Components, Temporal Layer Identifier (ID), Standard Grade, Level or Layer, Whether the current strip containing the current video block satisfies the low latency condition, or Whether the current video block belongs to screen content.

[0365] Item 24. The method according to Item 23, wherein the encoding / decoding mode includes one of the following: intra-block copy (IBC), non-IBC inter-frame mode, or non-IBC sub-block mode, or wherein the color format includes one of the following: 4:2:0 or 4:4:4.

[0366] Item 25. The method according to any one of items 1 to 24, wherein the conversion includes encoding the current video block into the bitstream.

[0367] Item 26. The method according to any one of items 1 to 24, wherein the conversion includes decoding the current video block from the bitstream.

[0368] Item 27. An apparatus for video processing, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform a method according to any one of items 1 to 26.

[0369] Item 28. A non-transitory computer-readable storage medium storing instructions that cause a processor to execute the method according to any one of items 1 to 26.

[0370] Item 29. A non-transitory computer-readable recording medium storing a bitstream of video generated by a method performed by means of a video processing apparatus, wherein the method includes: determining to enable Subblock Transform (SBT) for a current video block of the video, the current video block being encoded and decoded in a geometrically segmented mode (GPM) inter-frame-intra-frame mode; applying the SBT to at least one subblock of the current video block; and generating the bitstream based on the application.

[0371] Item 30. A method for storing a bitstream of video, comprising: determining to enable Subblock Transform (SBT) for a current video block of the video, the current video block being encoded and decoded in a geometrically segmented mode (GPM) inter-frame-intra-frame mode; applying the SBT to at least one subblock of the current video block; generating the bitstream based on the application; and storing the bitstream in a non-transitory computer-readable recording medium.

[0372] Item 31. A non-transitory computer-readable recording medium storing a bitstream of video generated by a method performed by means of a video processing apparatus, wherein the method comprises: determining an indivisible transform set for a current video block of the video based on an index in the bitstream, the indivisible transform set comprising at least one of: a low-frequency indivisible transform (LFNST) set or an indivisible main transform (NSPT) set; applying the indivisible transform set to the current video block; and generating the bitstream based on the application.

[0373] Item 32. A method for storing a bitstream of video, comprising: determining an indivisible transform set for a current video block of the video based on an index in the bitstream, the indivisible transform set including at least one of: a low-frequency indivisible transform (LFNST) set or an indivisible main transform (NSPT) set; applying the indivisible transform set to the current video block; generating the bitstream based on the application; and storing the bitstream in a non-transitory computer-readable recording medium.

[0374] Example device Figure 37A block diagram of a computing device 3700 in which various embodiments of the present disclosure may be implemented is shown. The computing device 3700 may be implemented as a source device 110 (or video encoder 114 or 200) or a destination device 120 (or video decoder 124 or 300), or may be included in a source device 110 (or video encoder 114 or 200) or a destination device 120 (or video decoder 124 or 300).

[0375] It should be understood that, Figure 37 The computing device 3700 shown is for illustrative purposes only and is not intended to imply any limitation on the functionality and scope of the embodiments of this disclosure.

[0376] like Figure 37 As shown, computing device 3700 includes general-purpose computing device 3700. Computing device 3700 may include at least one or more processors or processing units 3710, memory 3720, storage unit 3730, one or more communication units 3740, one or more input devices 3750, and one or more output devices 3760.

[0377] In some embodiments, the computing device 3700 can be implemented as any user terminal or server terminal with computing capabilities. The server terminal can be a server, large computing device, etc., provided by a service provider. The user terminal can be, for example, any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, stations, units, devices, multimedia computers, multimedia tablet computers, internet nodes, communicators, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination thereof, and includes accessories and peripherals of these devices, or any combination thereof. It is conceivable that the computing device 3700 can support any type of interface to the user (such as "wearable" circuitry devices, etc.).

[0378] Processing unit 3710 can be a physical processor or a virtual processor, and can perform various processes based on programs stored in memory 3720. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capabilities of computing device 3700. Processing unit 3710 may also be referred to as a central processing unit (CPU), microprocessor, controller, or microcontroller.

[0379] Computing device 3700 typically includes various computer storage media. Such media can be any media accessible by computing device 3700, including but not limited to volatile and non-volatile media, or removable and non-removable media. Memory 3720 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (such as read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), or flash memory) or any combination thereof. Storage cell 3730 can be any removable or non-removable media and may include machine-readable media, such as memory, flash drives, disks, or other media that can be used to store information and / or data and can be accessed within computing device 3700.

[0380] The computing device 3700 may also include additional removable / non-removable storage media, volatile / non-volatile storage media. Although in Figure 37 Not shown, but may provide disk drives for reading from and / or writing to removable non-volatile disks, and optical disc drives for reading from and / or writing to removable non-volatile optical discs. In this case, each drive may be connected to a bus (not shown) via one or more data media interfaces.

[0381] Communication unit 3740 communicates with another computing device via a communication medium. Furthermore, the functionality of the components in computing device 3700 can be implemented by a single computing cluster or by multiple computing machines communicating via communication connections. Therefore, computing device 3700 can operate in a networked environment using logical connections to one or more other servers, networked personal computers (PCs), or other general-purpose network nodes.

[0382] Input device 3750 can be one or more of various input devices, such as a mouse, keyboard, trackball, voice input device, etc. Output device 3760 can be one or more of various output devices, such as a monitor, speaker, printer, etc. With the aid of communication unit 3740, computing device 3700 can also communicate with one or more external devices (not shown), such as storage devices and display devices. Computing device 3700 can also communicate with one or more devices that enable a user to interact with computing device 3700, or, if necessary, with devices that enable computing device 3700 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via an input / output (I / O) interface (not shown).

[0383] In some embodiments, some or all components of computing device 3700 may be arranged in a cloud computing architecture, rather than integrated into a single device. In a cloud computing architecture, components may be provided remotely and work together to achieve the functionality described herein. In some embodiments, cloud computing provides computing, software, data access, and storage services without requiring end users to know the physical location or configuration of the systems or hardware providing these services. In various embodiments, cloud computing is provided via a wide area network (WAN), such as the Internet, using suitable protocols. For example, a cloud computing provider provides applications via a WAN that can be accessed through a web browser or any other computing component. The software or components of the cloud computing architecture, along with the corresponding data, may be stored on servers at remote locations. Computing resources in a cloud computing environment may be consolidated or distributed at locations in remote data centers. Cloud computing infrastructure may be provided through shared data centers, although they may appear as a single access point for users. Therefore, cloud computing architectures can be used to provide the components and functionality described herein from service providers at remote locations. Alternatively, they may be provided from conventional servers or directly installed or otherwise installed on client devices.

[0384] The computing device 3700 can be used to implement video encoding / decoding in the embodiments of this disclosure. The memory 3720 may include one or more video encoding / decoding modules 3725 having one or more program instructions. These modules can be accessed and executed by the processing unit 3710 to perform the functions of the various embodiments described herein.

[0385] In an example embodiment of performing video encoding, input device 3750 may receive video data as input 3770 to be encoded. The video data may be processed, for example, by video codec module 3725 to generate an encoded bitstream. The encoded bitstream may be provided as output 3780 via output device 3760.

[0386] In an example embodiment of performing video decoding, input device 3750 may receive an encoded bitstream as input 3770. The encoded bitstream may be processed, for example, by a video codec module 3725 to generate decoded video data. The decoded video data may be provided as output 3780 via output device 3760.

[0387] While this disclosure has been specifically shown and described with reference to exemplary embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made without departing from the spirit and scope of this application as defined by the appended claims. Such changes are intended to be covered by the scope of this application. Therefore, the foregoing description of embodiments of this application is not intended to be limiting.

Claims

1. A method for video processing, comprising: For the conversion between the current video block and the bitstream of the video, it is determined that the current video block is enabled for Sub-Block Transform (SBT), and the current video block is encoded and decoded in Geometric Partition Mode (GPM) inter-frame-intra-frame mode. Apply the SBT to at least one sub-block of the current video block; as well as The conversion is performed based on the application.

2. The method of claim 1, wherein the current video block comprises a block encoded and decoded by GPM, the block encoded and decoded by GPM comprising segments encoded and decoded in intra-frame mode and segments encoded and decoded in inter-frame mode.

3. The method according to claim 1 or 2, wherein the SBT is applied to the current video block to preserve residual signals for a portion of the current video block.

4. The method according to any one of claims 1 to 3, further comprising: An inseparable transform is applied to at least one transform unit associated with at least one sub-block of the current video block, the inseparable transform including at least one of the following: Low Frequency Inseparable Transform (LFNST) or Inseparable Main Transform (NSPT).

5. A method for video processing, comprising: For the conversion between the current video block and the bitstream of the video, an inseparable transform set for the current video block is determined based on the index in the bitstream. The inseparable transform set includes at least one of the following: a low-frequency inseparable transform (LFNST) set or an inseparable main transform (NSPT) set. Apply the indivisible transform set to the current video block; as well as The conversion is performed based on the application.

6. The method of claim 5, wherein the index comprises a plurality of Transform Set Selection (MTSS) indexes.

7. The method of claim 5 or 6, wherein the index specifies an intra-frame prediction model (IPM), and the IPM is used to determine the inseparable transform set.

8. The method according to any one of claims 5 to 7, wherein whether and / or how the index is indicated in the bitstream is based on at least one of: the codec information of the current video block, or whether the current video block is angle-predicted.

9. The method of claim 8, wherein the encoding / decoding information includes at least one of the following: encoding / decoding mode, block width, block height, area, ratio of the width to the height, the smaller of the width and the height, the larger of the width and the height, quantization parameter, whether the temporal layer index (Tid) is greater than or less than a predefined constant, a value in the bitstream, a derived value, whether the current stripe satisfies the low latency condition, whether the current video block belongs to screen content, prediction mode, or prediction method.

10. The method of claim 9, wherein the prediction mode includes at least one of the following: intra-frame mode, inter-frame mode, intra-block copy (IBC) mode, palette (PLT) mode, or cross-component prediction (CCP) mode, geometric segmentation mode (GPM), template-based intra-frame mode derivation (TIMD), decoder-side intra-frame mode derivation (DIMD), matrix-based intra-frame prediction (MIP), extrapolation-based intra-frame prediction (EIP), or intra-frame template matching prediction (ITMP).

11. The method of claim 10, wherein the prediction method comprises at least one of the following: intra-component cross-component prediction (CCP), intra-component CCP merge, inter-component CCP, inter-component CCP merge, template-based method, geometric segmentation mode (GPM), affine method, or inter-intra-component joint prediction (CIIP).

12. The method of claim 8, wherein the current video block is predicted by angle, indicating that the prediction of the current video block is generated by projecting at least one reference sample point onto at least one corresponding position having an angle value, and the current video block is an intra-frame codec block.

13. The method of claim 8, wherein if the current video block is predicted by a non-angle method, the index is indicated in the bitstream.

14. The method of claim 13, wherein the index is indicated in the bitstream if the current video block is encoded using at least one of the following: template-based intra-mode derivation (TIMD), decoder-side intra-mode derivation (DIMD), spatial geometry partitioning mode (SGPM), matrix-based intra-prediction (MIP), extrapolation-based intra-prediction (EIP), or intra-template matching prediction (ITMP).

15. The method of claim 8, wherein the index is indicated in the bitstream based on at least one of the following: The angle index of the current video block satisfies at least one first condition, wherein the angle index indicates the intra-frame orientation of the current video block, or The size information of the current video block satisfies the second condition.

16. The method of claim 15, wherein the at least one first condition comprises at least one of the following: The angle index is equal to the first value. The angle index is greater than the second value. The angle index is less than the third value. The angle index is either an even value or an odd value, or The remainder after dividing the angle index by the fourth value is equal to the fifth value, where the fourth value is an integer.

17. The method of claim 15, wherein the second condition comprises one of the following: The block size of the current video block is equal to, greater than, or less than the threshold. The area of ​​the current video block is equal to, greater than, or less than the threshold. The height of the current video block is equal to, greater than, or less than the threshold, or The width of the current video block is equal to, greater than, or less than the threshold.

18. The method of claim 8, wherein whether the index is indicated in the bitstream is based on at least one of: a lookup table indexed by an angle index or a variant of the angle index, or block size-related information of the current video block.

19. The method of claim 18, wherein the index is indicated in the bitstream based on at least one of the following: the lookup table satisfies a third condition, or the block size-related information satisfies a fourth condition.

20. The method of claim 19, wherein the third condition or the fourth condition includes a value equal to, greater than, or less than the lookup table or the block size-related information.

21. The method according to any one of claims 1 to 20, wherein the current video block comprises at least one of the following: Color components, sub-images, stripes, slices, codec tree units (CTUs), CTU rows, CTU groups, codec units (CUs), prediction units (PUs), transform units (TUs), codec tree blocks (CTBs), codec blocks (CBs), prediction blocks (PBs), transform blocks (TBs), blocks, sub-blocks of blocks, sub-regions within blocks, or regions containing more than one sample point or pixel.

22. The method according to any one of claims 1 to 21, wherein an indication of whether and / or how the method is applied is indicated at one of the following: sequence level, picture group level, picture level, strip level, or slice group level, or The indication of whether and / or how to apply the method is indicated in one of the following: sequence header, picture header, sequence parameter set (SPS), video parameter set (VPS), dependency parameter set (DPS), decoding capability information (DCI), picture parameter set (PPS), adaptive parameter set (APS), strip header or slice header.

23. The method according to any one of claims 1 to 21, wherein whether and / or how the method is applied is based on at least one of the following: The message includes one of the following: Dependency Parameter Set (DPS), Sequence Parameter Set (SPS), Video Parameter Set (VPS), Picture Parameter Set (PPS), Adaptive Parameter Set (APS), Picture Header, Strip Header, Slice Header, Maximum Codec Unit (LCU), Codec Unit (CU), LCU Row, LCU Group, Transform Unit (TU), Prediction Unit (PU) Block, or Video Codec Unit. The location of CU, PU, ​​TU, block, or the video codec unit. The block dimension of the current video block and / or the block dimensions of the neighboring blocks of the current video block, The block shape of the current video block and / or the block shape of the neighboring blocks of the current video block, Block encoding / decoding modes, Indicators of color format, Encoder tree structure, strip, Film set type, Image type, Color components, Temporal layer identifier (ID) Standard grade, level or tier Does the current strip containing the current video block meet the low latency condition, or Does the current video block belong to the screen content? 24. The method of claim 23, wherein the encoding / decoding mode includes one of the following: intra-block copy (IBC), non-IBC inter-frame mode, or non-IBC sub-block mode, or The color format mentioned includes one of the following: 4:2:0 or 4:4:

4.

25. The method of any one of claims 1 to 24, wherein the conversion comprises encoding the current video block into the bitstream.

26. The method of any one of claims 1 to 24, wherein the conversion comprises decoding the current video block from the bitstream.

27. An apparatus for video processing, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 26.

28. A non-transitory computer-readable storage medium storing instructions that cause a processor to execute the method according to any one of claims 1 to 26.

29. A non-transitory computer-readable recording medium storing a bitstream of video generated by a method performed by means of a video processing apparatus, wherein the method includes: The current video block of the video is determined to be enabled for Sub-Block Transform (SBT), and the current video block is encoded and decoded in Geometric Partition Mode (GPM) inter-frame-intra-frame mode. Apply the SBT to at least one sub-block of the current video block; as well as The bitstream is generated based on the application.

30. A method for storing a bitstream of video, comprising: The current video block of the video is determined to be enabled for Sub-Block Transform (SBT), and the current video block is encoded and decoded in Geometric Partition Mode (GPM) inter-frame-intra-frame mode. Apply the SBT to at least one sub-block of the current video block; The bitstream is generated based on the application. as well as The bitstream is stored in a non-transitory computer-readable recording medium.

31. A non-transitory computer-readable recording medium storing a bitstream of video generated by a method performed by means of a video processing apparatus, wherein the method includes: The set of inseparable transforms for the current video block of the video is determined based on the index in the bitstream, and the set of inseparable transforms includes at least one of the following: a set of low-frequency inseparable transforms (LFNST) or a set of inseparable main transforms (NSPT). Apply the indivisible transform set to the current video block; as well as The bitstream is generated based on the application.

32. A method for storing a bitstream of video, comprising: The set of inseparable transforms for the current video block of the video is determined based on the index in the bitstream, and the set of inseparable transforms includes at least one of the following: a set of low-frequency inseparable transforms (LFNST) or a set of inseparable main transforms (NSPT). Apply the indivisible transform set to the current video block; The bitstream is generated based on the application. as well as The bitstream is stored in a non-transitory computer-readable recording medium.