On subblock-transform for intra video and image coding and subblock-transform information inferring

The application of sub-block transform and advanced motion vector prediction techniques addresses the challenge of efficient multimedia data compression, enhancing video coding efficiency and reducing bandwidth demands.

WO2026007990A1PCT designated stage Publication Date: 2026-01-08DOUYIN VISION CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/106650
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-19
Filing Date
2025-07-02
Publication Date
2026-01-08

AI Technical Summary

Technical Problem

Existing video coding technologies face challenges in efficiently addressing the increasing demand for multimedia data compression, particularly in handling complex motions and motion vector prediction, which affects bandwidth utilization and coding efficiency.

Method used

The implementation of sub-block transform (SBT) and advanced motion vector prediction techniques, including sub-block transform (SBT) for intra-predicted coding units, to enhance video coding efficiency by refining motion vector prediction and transform methods.

Benefits of technology

Enhances video coding efficiency by improving compression capabilities and reducing bandwidth requirements through optimized motion vector prediction and transform techniques.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025106650_08012026_PF_FP_ABST
    Figure CN2025106650_08012026_PF_FP_ABST
Patent Text Reader

Abstract

A mechanism for processing video data is disclosed. The mechanism includes determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU). A conversion is performed between a visual media data and a bitstream based on the intra-predicted CU. For example, a CU can be split into subblocks for intra prediction and then the SBT can be applied to the residual of each subblock.
Need to check novelty before this filing date? Find Prior Art

Description

On Subblock-Transform For Intra Video And Image Coding and Subblock-Transform Information InferringCROSS-REFERENCE TO RELATED APPLICATION

[0001] This application claims the priority to and benefits of International Patent Application No. PCT / CN2024 / 103072 filed on July 2, 2024, International Patent Application No. PCT / CN2024 / 127915 filed on October 28, 2024, International Patent Application No. PCT / CN2024 / 130633 filed on November 7, 2024, and International Patent Application No. PCT / CN2025 / 083476 filed on March 19, 2025, all of which are herein incorporated by reference in their entireties.TECHNICAL FIELD

[0002] The present disclosure relates to generation, storage, and consumption of digital audio video media information in a file format.BACKGROUND

[0003] Digital video accounts for the largest bandwidth used on the Internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, the bandwidth demand for digital video usage is likely to continue to grow.SUMMARY

[0004] A first aspect relates to a method for processing video data comprising: determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ; and performing a conversion between a visual media data and a bitstream based on the intra-predicted CU.

[0005] A second aspect relates to an apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform any of the preceding aspects.

[0006] A third aspect relates to non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of the preceding aspects.

[0007] A fourth aspect relates to a non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ; and generating a bitstream based on the determining.

[0008] A fifth aspect relates to a method for storing bitstream of a video comprising: determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ; generating a bitstream based on the determining; and storing the bitstream in a non-transitory computer-readable recording medium.

[0009] A sixth aspect relates to a method, apparatus, or system described in the present disclosure.

[0010] For the purpose of clarity, any one of the foregoing embodiments may be combined with any one or more of the other foregoing embodiments to create a new embodiment within the scope of the present disclosure.

[0011] These and other features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.BRIEF DESCRIPTION OF THE DRAWINGS

[0012] For a more complete understanding of this disclosure, reference is now made to the following brief description, taken in connection with the accompanying drawings and detailed description, wherein like reference numerals represent like parts.

[0013] FIG. 1 is a diagram illustrating an example of positions of spatial and temporal neighboring blocks used in advanced motion vector prediction (AMVP)  / merge candidate list construction.

[0014] FIG. 2 is a diagram illustrating an example of positions of non-adjacent candidate in an enhanced compression model (ECM) .

[0015] FIG. 3 is a diagram illustrating an example of a control point based affine motion model.

[0016] FIG. 4 is a diagram illustrating an example of an affine motion vector field (MVF) per subblock.

[0017] FIG. 5 is a diagram illustrating example locations of inherited affine motion predictors.

[0018] FIG. 6 is a diagram illustrating an example of control point motion vector inheritance.

[0019] FIG. 7 is a diagram illustrating example locations of candidates position for constructed affine merge mode.

[0020] FIG. 8 is a diagram illustrating an example of spatial neighbors for deriving affine merge candidates including a diagram for deriving inherited affine merge candidates and a diagram for deriving constructed affine merge candidates.

[0021] FIG. 9 is a diagram illustrating an example of using non-adjacent neighbors to construct affine merge candidates.

[0022] FIG. 10 is a diagram illustrating an example of generating a history-affine-parameter-based candidate (HAPC) .

[0023] FIG. 11 is a diagram illustrating an example of regression based affine merge candidate derivation.

[0024] FIG. 12 is a diagram illustrating an example of template matching performed on a search area around initial MV.

[0025] FIG. 13 is a diagram illustrating an example template and the corresponding reference template.

[0026] FIG. 14 is a diagram illustrating an example template and reference template for block with sub-block motion using the motion information of the subblocks of current block.

[0027] FIG. 15 is a diagram illustrating an example of deriving sub-CU motion field obtained by applying a motion shift based on the neighboring motion information.

[0028] FIG. 16 is a diagram illustrating an example of top and left neighboring blocks used in combined inter / intra prediction (CIIP) weight derivation.

[0029] FIG. 17 is a diagram illustrating an example flowchart of an extended CIIP mode using position dependent prediction combination (PDPC) .

[0030] FIG. 18 is a diagram illustrating an example division method for angular modes.

[0031] FIG. 19 is a diagram illustrating an example of subblock template based generation of subblock-based temporal motion vector prediction (SbTMVP) .

[0032] FIG. 20 is a diagram illustrating an example of diamond regions in the search area.

[0033] FIG. 21 is a diagram illustrating an example of geometric partitioning mode (GPM) splits grouped by identical angles.

[0034] FIG. 22 is a diagram illustrating an example of Uni-prediction motion vector (MV) selection for geometric partitioning mode.

[0035] FIG. 23 is a diagram illustrating an example of generation of a bending weight w0 using geometric partitioning mode.

[0036] FIG. 24 is a diagram illustrating an example of spatial GPM candidates.

[0037] FIG. 25 is a diagram illustrating an example GPM template.

[0038] FIG. 26 is a diagram illustrating an example ramp function for the weights for GPM blending based on the displacement from a predicted sample position to the GPM partitioning boundary and the blending area size.

[0039] FIG. 27 is a diagram illustrating an example Low-Frequency Non-Separable Transform (LFNST) process.

[0040] FIG. 28 is a diagram illustrating an example SBT position, type and transform type.

[0041] FIG. 29 is a diagram illustrating an example region of interest (ROI) for LFNST16.

[0042] FIG. 30 is a diagram illustrating an example ROI for LFNST8.

[0043] FIG. 31 is a diagram illustrating an example discontinuity measure.

[0044] FIG. 32 is a block diagram showing an example video processing system.

[0045] FIG. 33 is a block diagram of an example video processing apparatus.

[0046] FIG. 34 is a flowchart for an example method of video processing.

[0047] FIG. 35 is a block diagram that illustrates an example video coding system.

[0048] FIG. 36 is a block diagram that illustrates an example encoder.

[0049] FIG. 37 is a block diagram that illustrates an example decoder.

[0050] FIG. 38 is a schematic diagram of an example encoder.

[0051] FIG. 39 is a diagram illustrating SBT types supported in ECM-14.0.

[0052] FIG. 40 is a diagram illustrating other possible SBT types according to examples of the present disclosure.

[0053] FIG. 41 is a diagram illustrating an example of the boundary used for inferring according to an example of the present disclosure.

[0054] FIG. 42 is a diagram illustrating an example of non-zero transform unit (TU) locations after SBT half splitting.

[0055] FIG. 43 is a diagram illustrating an example of non-zero transform unit (TU) locations after SBT quarter splitting.

[0056] FIG. 44 is a diagram illustrating an example of non-zero transform unit (TU) locations after SBT corner splitting in a width / 2 and height / 2 case.

[0057] FIG. 45 is a diagram illustrating an example of non-zero transform unit (TU) locations after SBT corner splitting in a width / 4 and height / 4 case.

[0058] FIG. 46 is a diagram illustrating an example of calculating a continuity metric value using a top TU boundary.

[0059] FIG. 47 is a diagram illustrating an example of calculating a continuity metric value using a left TU boundary.DETAILED DESCRIPTION

[0060] It should be understood at the outset that although an illustrative implementation of one or more embodiments are provided below, the disclosed systems and / or methods may be implemented using any number of techniques, whether currently known or yet to be developed. The disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents. 1. Initial discussion

[0061] This disclosure is related to video coding technologies. Specifically, this disclosure is related to transform methods in video coding. The ideas may be applied individually or in various combinations to any video coding standard or non-standard video codec. 2. Further discussion

[0062] FIG. 1 is a diagram illustrating an example of positions of spatial and temporal neighboring blocks used in AMVP / merge candidate list construction. The exponential increasing of multimedia data poses a critical challenge for video coding. To satisfy the increasing demands for more efficient compression technology, International Telecommunication Union (ITU) telecommunication standardization sector (ITU-T) and International Organization for Standardization (ISO)  / International Electrotechnical Commission (IEC) have developed a series of video coding standards in the past decades. In particular, the ITU-T produced H. 261 and H. 263, ISO / IEC produced moving picture experts group (MPEG) -1 and MPEG-4 visual, and the two organizations jointly developed the H. 262 / MPEG-2 Video, H.264 / MPEG-4 Advanced Video Coding (AVC) , H. 265 / high efficiency video coding (HEVC) and the latest Versatile Video Coding (VVC) standards. Since H. 262 / MPEG-2, hybrid video coding framework is employed wherein in intra / inter prediction plus transform coding are utilized. 2.1. Motion vector prediction (MVP) in video coding

[0063] Inter prediction aims to remove the temporal redundancy between adjacent frames, which serves as an indispensable component in the hybrid video coding framework. Specifically, inter prediction makes use of the contents specified by motion vector (MV) as the predicted version of the current to-be-coded block, thus only residual signals and motion information are transmitted in the bitstream. To reduce the cost for MV signaling, motion vector prediction (MVP) came into being as an effective mechanism to convey motion information. Early strategies simply use the MV of a specified neighboring block or the median MV of neighboring blocks as MVP. In H. 265 / HEVC, competing mechanisms were involved, where the optimal MVP is selected from multiple candidates through rate distortion optimization (RDO) . In particular, advanced MVP (AMVP) mode and merge mode are devised with different motion information signaling strategy. With the AMVP mode, a reference index, a MVP candidate index referring to an AMVP candidate list and motion vector difference (MVD) is signaled. Regarding the merge mode, only a merge index referring to a merge candidate list is signaled, and all the motion information associated with the merge candidate is inherited. Both AMVP mode and merge mode need to construct MVP candidate list, and the details of the construction process for these two modes are described as follows.

[0064] AMVP mode: AMVP exploits spatial-temporal correlation of motion vector with neighboring blocks, which is used for explicit transmission of motion parameters. For each reference picture list, a motion vector candidate list is constructed by firstly checking availability of left, above temporally neighboring positions, removing redundant candidates and adding zero vector to make the candidate list to be constant length. For spatial motion vector candidate derivation, two motion vector candidates are eventually derived based on motion vectors of blocks located in five different positions as depicted in FIG. 1. The five neighboring blocks located at B0, B1, B2, and A0, A1 are classified into two groups, where Group A includes the three above spatial neighboring blocks and Group B includes the two left spatial neighboring blocks. The two MV candidates are respectively derived with the first available candidate from Group A and Group B in a predefined order. For temporal motion vector candidate derivation, one motion vector candidate is derived based on two different collocated positions (bottom-right (C0) and central (C1) ) checked in order, as depicted in FIG. 1. To avoid redundant MV candidates, duplicated motion vector candidates in the list are abandoned. If the number of potential candidates is smaller than two, additional zero motion vector candidates are added to the list.

[0065] FIG. 2 is a diagram illustrating an example of positions of non-adjacent candidates in ECM.

[0066] Merge mode: Similar to AMVP mode, MVP candidate list for merge mode comprises of spatial and temporal candidates as well. For spatial motion vector candidate derivation, at most four candidates are selected with order A1, B1, B0, A0, and B2 after performing availability and redundant checking. For temporal merge candidate derivation, at most one candidate is selected from two temporal neighboring blocks (C0 and C1) . When there are not enough merge candidates with spatial and temporal candidates, combined bi-predictive merge candidates and zero MV candidates are added to MVP candidate list. Once the number of available merge candidates reaches the signaled maximally allowed number, the merge candidate list construction process is terminated.

[0067] In VVC, the construction process for merge mode is further improved by introducing the history-based MVP (HMVP) , which incorporates the motion information of previously coded blocks which may be far away from current block. In VVC, HMVP merge candidates are appended to merge list after the spatial MVP and temporal motion vector prediction (TMVP) . In this method, the motion information of a previously coded block is stored in a table and used as MVP for the current CU. The table with multiple HMVP candidates is maintained with first-in-first-out strategy during the encoding / decoding process. Whenever there is a non-subblock inter-coded CU, the associated motion information is added to the last entry of the table as a new HMVP candidate.

[0068] During the standardization of VVC, non-adjacent MVP was proposed to facilitate better motion information derivation by exploiting the non-adjacent area. In ECM software, non-adjacent MVP are inserted between TMVP and HMVP, where the distances between non-adjacent spatial candidates and current coding block are based on the width and height of current coding block as depicted in FIG. 2. 2.2. Affine motion compensated prediction

[0069] FIG. 3 is a diagram illustrating an example of a control point based affine motion model including a 4 parameter affine model and a 6 parameter affine model. In HEVC, only translation motion model is applied for motion compensation prediction (MCP) . While in the real world, there are many kinds of motion, e.g., zoom in / out, rotation, perspective motions and the other irregular motions. In VVC, a block-based affine transform motion compensation prediction is applied. As shown FIG. 3, the affine motion field of the block is described by motion information of two control point (4-parameter) or three control point motion vectors (6-parameter) .

[0070] For 4-parameter affine motion model, motion vector at sample location (x, y) in a block is derived as:

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

[0072] FIG. 4 is a diagram illustrating an example of an affine MVF per subblock. To simplify the motion compensation prediction, block based affine transform prediction is applied. To derive motion vector of each 4×4 luma subblock, the motion vector of the center sample of each subblock, as shown in FIG. 4, is calculated according to above equations, and rounded to 1 / 16 fraction accuracy. Then the motion compensation interpolation filters are applied to generate the prediction of each subblock with derived motion vector. The subblock size of chroma-components is also set to be 4×4. The MV of a 4×4 chroma subblock is calculated as the average of the MVs of the top-left and bottom-right luma subblocks in the collocated 8x8 luma region.

[0073] As done for translational motion inter prediction, there are also two affine motion inter prediction modes: affine merge mode and affine AMVP mode. 2.2.1 Affine merge prediction

[0074] FIG. 5 is a diagram illustrating example locations of inherited affine motion predictors.

[0075] Affine merge mode can be applied for CUs with both width and height larger than or equal to 8. In this mode the corner-position MVs (CPMVs) of the current CU is generated based on the motion information of the spatial neighboring CUs. There can be up to five control point motion vector predictor (CPMVP) candidates and an index is signalled to indicate the one to be used for the current CU. In VVC, the following three types of CPVM candidate are used to form the affine merge candidate list: –Inherited affine merge candidates that extrapolated from the CPMVs of the neighbor CUs, –Constructed affine merge candidates CPMVPs that are derived using the translational MVs of the neighbor  CUs, and –Zero MVs.

[0076] In VVC, there are maximum two inherited affine candidates, which are derived from affine motion model of the neighboring blocks, one from left neighboring CUs and one from above neighboring CUs. The candidate blocks are shown in FIG. 5. For the left predictor, the scan order is A0->A1, and for the above predictor, the scan order is B0->B1->B2. Only the first inherited candidate from each side is selected. No pruning check is performed between two inherited candidates. When a neighboring affine CU is identified, its control point motion vectors are used to derive the CPMVP candidate in the affine merge list of the current CU.

[0077] FIG. 6 is a diagram illustrating an example of control point motion vector inheritance.

[0078] As shown in FIG. 6, if the neighbor left bottom block A is coded in affine mode, the motion vectors v2 , v3 and v4 of the top left corner, above right corner and left bottom corner of the CU which contains the block A are attained. When block A is coded with 4-parameter affine model, the two CPMVs of the current CU are calculated according to v2, and v3. In case that block A is coded with 6-parameter affine model, the three CPMVs of the current CU are calculated according to v2 , v3 and v4.

[0079] FIG. 7 is a diagram illustrating example locations of candidates position for constructed affine merge mode. Constructed affine candidate means the candidate is constructed by combining the neighbor translational motion information of each control point. The motion information for the control points is derived from the specified spatial neighbors and temporal neighbor shown in FIG. 7. CPMVk (k=1, 2, 3, 4) represents the k-th control point. For CPMV1, the B2->B3->A2 blocks are checked and the MV of the first available block is used. For CPMV2, the B1->B0 blocks are checked and for CPMV3, the A1->A0 blocks are checked. For TMVP is used as CPMV4 if it is available.

[0080] After MVs of four control points are attained, affine merge candidates are constructed based on those motion information. The following combinations of control point MVs are used to construct in order: {CPMV1, CPMV2, CPMV3} , {CPMV1, CPMV2, CPMV4} , {CPMV1, CPMV3, CPMV4} ,  {CPMV2, CPMV3, CPMV4} , {CPMV1, CPMV2} , {CPMV1, CPMV3}

[0081] The combination of 3 CPMVs constructs a 6-parameter affine merge candidate and the combination of 2 CPMVs constructs a 4-parameter affine merge candidate. To avoid motion scaling process, if the reference indices of control points are different, the related combination of control point MVs is discarded.

[0082] After inherited affine merge candidates and constructed affine merge candidates are checked, if the list is still not full, zero MVs are inserted to the end of the list. 2.2.2. Affine AMVP prediction

[0083] Affine AMVP mode can be applied for CUs with both width and height larger than or equal to 16. An affine flag in CU level is signalled in the bitstream to indicate whether affine AMVP mode is used and then another flag is signalled to indicate whether 4-parameter affine or 6-parameter affine is used. In this mode, the difference of the CPMVs of current CU and their predictors CPMVPs is signalled in the bitstream. The affine AMVP candidate list size is 2 and it is generated by using the following four types of CPVM candidate in order: –Inherited affine AMVP candidates that extrapolated from the CPMVs of the neighbor CUs, –Constructed affine AMVP candidates CPMVPs that are derived using the translational MVs of the  neighbor CUs, –Translational MVs from neighboring CUs, and –Zero MVs.

[0084] The checking order of inherited affine AMVP candidates is the same as the checking order of inherited affine merge candidates. The only difference is that, for AMVP candidate, only the affine CU that has the same reference picture as in current block is considered. No pruning process is applied when inserting an inherited affine motion predictor into the candidate list.

[0085] FIG. 8 is a diagram illustrating an example of spatial neighbors for deriving affine merge candidates including a diagram for deriving inherited affine merge candidates and a diagram for deriving constructed affine merge candidates.

[0086] Constructed AMVP candidate is derived from the specified spatial neighbors shown in FIG. 8. The same checking order is used as done in affine merge candidate construction. In addition, reference picture index of the neighboring block is also checked. The first block in the checking order that is inter coded and has the same reference picture as in current CUs is used. When the current CU is coded with 4-parameter affine mode, and mv0 and mv1 are both available, they are added as one candidate in the affine AMVP list. When the current CU is coded with 6-parameter affine mode, and all three CPMVs are available, they are added as one candidate in the affine AMVP list. Otherwise, constructed AMVP candidate is set as unavailable.

[0087] If affine AMVP list candidates are still less than 2 after valid inherited affine AMVP candidates and constructed AMVP candidate are inserted, mv0, mv1 and mv2 will be added, in order, as the translational MVs to predict all control point MVs of the current CU, when available. Finally, zero MVs are used to fill the affine AMVP list if it is still not full. 2.2.3. Additional Affine candidates derivation methods in ECM-8.0

[0088] In ECM-6.0, 3 additional Affine merge and AMVP candidate derivation methods are integrated, which are Non-adjacent spatial candidates, History-parameter-based candidates, Regression-based affine candidates and Pixel-based affine motion compensation. 2.2.3.1 Non-adjacent spatial candidates

[0089] In ECM-6.0, non-adjacent spatial neighbors are investigated to provided candidates for both Affine merge and Affine AMVP. The pattern of obtaining non-adjacent spatial candidates is shown in FIG. 8. Same as the non-adjacent regular merge candidates, the distances between non-adjacent spatial candidates and current coding block are also defined based on the width and height of current CU.

[0090] The motion information of the non-adjacent spatial neighbors in FIG. 8 is utilized to generate additional inherited and constructed affine merge candidates. Specifically, to generate inherited candidates, the non-adjacent spatial neighbors are checked based on their distances to the current block, i.e., from near to far. At a specific distance, only the first available neighbor which is coded with Affine mode from each side (e.g., the left and above) of the current block is included. As indicated in FIG. 8 (a) , the checking of the neighbors on the left and above sides are performed from bottom-to-up and right-to-left, respectively. For constructed candidates, as shown in the FIG. 8 (b) , the positions of one left and above non-adjacent spatial neighbors are firstly determined independently; then, the location of the top-left neighbor can be determined accordingly to form a rectangular virtual block together with the left and above non-adjacent neighbors.

[0091] FIG. 9 is a diagram illustrating an example of using non-adjacent neighbors to construct affine merge candidates. The motion information of the three non-adjacent neighbors is used to form the CPMVs at the top-left (A) , top-right (B) and bottom-left (C) of the virtual block, which is projected to the current CU to generate the corresponding constructed candidates, as shown in FIG. 9. 2.2.3.2. History-parameter-based affine candidates

[0092] History-parameter-based affine model inheritance (HAMI) allows the affine model to be inherited from a previously affine-coded block which may not be neighboring to the current block. A history-parameter table (HPT) is established. An entry of HPT stores a set of affine parameters: a, b, c and d, each of which is represented by a 16-bit signed integer. Entries in HPT are categorized by reference list and reference index. Five reference indices are supported for each reference list in HPT. In a formulaic way, the category of HPT (denoted as HPTCat) is calculated as: HPTCat (RefList, RefIdx) = 5×RefList + min (RefIdx, 4)       (3) Where RefList and RefIdx represent a reference picture list (0 or 1) and a reference index, respectively. For each  category, at most seven entries can be stored, resulting in 70 entries total in the HPT. At the beginning of each coding tree unit (CTU) row, the number of entries for each category is initialized as zero. After decoding an affine-coded CU with reference list RefListcur and RefIdxcur, the affine parameters are utilized to update entries in the category HPTCat (RefListcur, RefIdxcur) in a way similar to HMVP table updating.

[0093] A history-affine-parameter-based candidate (HAPC) is derived from a neighboring 4×4 block denoted as A0, A1, B0, B1 or B2 in Fig. 10 and a set of affine parameters stored in a corresponding entry in HPT. The MV of a neighboring 4×4 block served as the base MV. In a formulaic way, the MV of the current block at position (x, y) is calculated as: Where (mvhbase, mvvbase) represents the MV of the neighboring 4×4 block, (xbase, ybase) represents the center  position of the neighboring 4×4 block. (x, y) can be the top-left, top-right and bottom-left corner of the current block to obtain the corner-position MVs (CPMVs) for the current block, or it can be the center of the current block to obtain a regular MV for the current block.

[0094] FIG. 10 is a diagram illustrating an example of generating an HAPC. FIG. 10 shows an example of how to derive an HAPC from block A0. The affine parameters {a0, b0, c0, d0} are directly fetched from one entry of category HPTIdx (RefListA0, refIdx0A0) in HPT. The affine parameters from 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 CPMVs for an affine merge HAPC, or an affine AMVP HAPC. They can also be used to derive MVs located at the center of the current block, as regular merge candidates. An HAPC can be put into the sub-block-based merge candidate list, the affine AMVP candidate list or the regular merge candidate list. As a response to new HAPCs being introduced, the size of sub-block-based merge candidate list is increased from five to ten and twelve for random access and low-delay B configurations, respectively. Besides, the size of regular merge candidate list is increased from ten to eleven for random access configurations to accommodate the newly added regular merge candidates. 2.2.3.3. Regression based affine candidate

[0095] FIG. 11 is a diagram illustrating an example of regression-based affine merge candidate derivation. In ECM-6.0, the regression-based affine merge candidates are derived and added to the affine merge list. A subblock motion field from a previously coded affine CU and motion information from adjacent subblocks of a current CU are used as the input to the regression process to derive proposed affine candidates.

[0096] The previously coded affine CU can be identified from scanning through non-adjacent positions and the affine HMVP table. Adjacent subblock information of current CU is fetched from 4x4 sub-blocks represented by the grey zone as depicted in FIG. 11. For each sub-block, given a reference list, the corresponding motion vector and center coordinate of the sub-block may be used.

[0097] For each affine CU, up to 2 affine candidates can be derived. The 2 affine candidates include one candidate with adjacent subblock information and one candidate without adjacent subblock information. All of the linear-regression-generated candidates are pruned and collected into one candidate sub-group, template matching (TM) cost based adaptive reorder of merge candidates (ARMC) process is applied when ARMC is enabled. Afterwards, up to N linear-regression-generated candidates are added to the affine merge list when N affine CUs are found. 2.2.3.4 Pixel-based affine motion compensation

[0098] With pixel-based affine motion compensation, minimum affine subblock size is set to 1x1 for luma component when OBMC is not applied, minimum subblock size is always set to 1x1 for chroma components. 2.3 Template matching merge / AMVP mode in ECM

[0099] FIG. 12 is a diagram illustrating an example of template matching performed on a search area around initial MV. Template matching (TM) merge / AMVP mode is a decoder-side MV derivation method to refine the motion information of the current CU by finding the closest match between a template (i.e., top and / or left neighboring blocks of the current CU) in the current picture and a block (i.e., same size to the template) in a reference picture. As illustrated in FIG. 12, a better MV is to be searched around the initial motion of the current CU within a [–8, +8] -pel search range.

[0100] In AMVP mode, an MVP candidate is determined based on the template matching error to pick up the one which reaches the minimum difference between the current block and the reference block templates, and then TM is performed only for this particular MVP candidate for MV refinement. TM refines this MVP candidate, starting from full-pel MVD precision (or 4-pel for 4-pel AMVR mode) within a [–8, +8] -pel search range by using an iterative diamond search. The AMVP candidate may be further refined by using cross search with full-pel MVD precision (or 4-pel for 4-pel AMVR mode) , followed sequentially by half-pel and quarter-pel precision depending on AMVR mode. This search process ensures that the MVP candidate still keeps the same MV precision as indicated by adaptive motion vector resolution (AMVR) mode after the TM process.

[0101] In the merge mode, a similar search method is applied to the merge candidate indicated by the merge index. TM merge may perform all the way down to 1 / 8-pel MVD precision or skipping those beyond half-pel MVD precision, depending on whether the alternative interpolation filter (that is used when AMVR is of half-pel mode) is used according to merged motion information. Besides, when TM mode is enabled, template matching may work as an independent process or an extra MV refinement process between block-based and subblock-based bilateral matching (BM) methods, depending on whether BM can be enabled or not according to its enabling condition check. When BM and TM are both enabled for a CU, the search process of TM stops at half-pel MVD precision and the resulted MVs are further refined by using the same model-based MVD derivation method as in DMVR. 2.4. Adaptive reorder of merge candidates (ARMC)

[0102] Inspired by the spatial correlation between reconstructed neighboring pixels and the current coding block, adaptive reorder of merge candidates (ARMC) was proposed to refine the candidates order in a given candidate list. The underlying assumption is that the candidates with less template matching cost have higher probability to be chosen through RDO process, and hence should be placed in front positions within the list to reduce the signaling cost.

[0103] The reordering method is applied to regular merge mode, template matching (TM) merge mode, and affine merge mode (excluding the SbTMVP candidate) . For the TM merge mode, merge candidates are reordered before the refinement process.

[0104] After a merge candidate list is constructed, merge candidates are divided into several subgroups. The subgroup size is set to 5. Merge candidates in each subgroup are reordered ascendingly according to cost values based on template matching. For simplification, merge candidates in the last but not the first subgroup are not reordered.

[0105] FIG. 13 is a diagram illustrating an example template and the corresponding reference template. The template matching cost is measured by the sum of absolute differences (SAD) between samples of a template of the current block and their corresponding reference template. The template comprises a set of reconstructed samples neighboring to the current block, while the reference template is located by the same motion information of the current block, as illustrated in FIG. 13. When a merge candidate utilizes bi-directional prediction, the reference samples of the template of the merge candidate are also generated by bi-prediction.

[0106] FIG. 14 is a diagram illustrating an example template and reference template for block with sub-block motion using the motion information of the subblocks of the current block. For subblock-based merge candidates with subblock size equal to Wsub *Hsub, the above template comprises several sub-templates with the size of Wsub × K, and the left template comprises several sub-templates with the size of K × Hsub. As shown in FIG. 14, the motion information of the subblocks in the first row and the first column of current block is used to derive the reference samples of each sub-template. 2.5. Subblock-based temporal motion vector prediction (SbTMVP)

[0107] VVC supports the subblock-based temporal motion vector prediction (SbTMVP) method. Similar to TMVP, SbTMVP takes advantage of the motion field in the collocated picture to facilitate more precise MVP derivation. The same collocated picture used by TMVP is used for SbTMVP. SbTMVP differs from TMVP mainly in two aspects. Firstly, SbTMVP enables sub-CU level motion prediction whereas TMVP predicts motion at CU level. Secondly, compared with TMVP that fetches the temporal MV from the collocated block in the collocated picture (the collocated block is the bottom-right or center block relative to the current CU) , SbTMVP applies a motion shift before fetching the temporal motion information from the collocated picture, where the motion shift is obtained by re-using the MV from one of the spatial neighboring blocks of the current CU.

[0108] FIG. 15 is a diagram illustrating an example of deriving sub-CU motion field obtained by applying a motion shift based on the neighboring motion information. FIG. 15 illustrates the derivation process of the sub-block level motion field for SbTMVP. In particular, the motion information of left-bottom sub-block A1 is firstly fetched, and if either of the MVs in reference list0 and list1 points to the collocated frame, then the corresponding MV will be identified as motion shift. Otherwise, zero MV will be used as motion shift.

[0109] Once the motion shift is determined, the specified region in the collocated frame is employed to derive sub-block level motion field. It is assumed that A1’ motion is used as motion shift as depicted in FIG. 15. Then for each sub-CU, the motion information of its corresponding block (the smallest motion grid that covers the center sample) in the collocated picture is fetched to provide motion information, where an MV scale operation is firstly performed to align the reference frames of the temporal motion vectors to those of the current CU.

[0110] In VVC and ECM, in addition to CU level MVP candidate list, a sub-CU level MVP candidate list is also constructed to provide more precise motion prediction for the current CU, which comprises the motion fields produced by both SbTMVP and AFFINE methods. In particular, only one SbTMVP candidate is included and is always placed in the first entry of the constructed sub-CU level MVP candidate list, whereas multiple AFFINE candidates are included in the list after performing template matching-based reordering, where those with smaller costs are placed in positions nearer to the front within the list. 2.6. Combined inter and intra prediction (CIIP)

[0111] FIG. 16 is a diagram illustrating an example of top and left neighboring blocks used in CIIP weight derivation. In VVC, when a CU is coded in merge mode, if the CU contains at least 64 luma samples (that is, CU width times CU height is equal to or larger than 64) , and if both CU width and CU height are less than 128 luma samples, an additional flag is signalled to indicate whether the combined inter / intra prediction (CIIP) mode is applied to the current CU.As its name indicates, the CIIP prediction combines an inter prediction signal with an intra prediction signal. The inter prediction signal in the CIIP mode Pinter is derived using the same inter prediction process applied to regular merge mode; and the intra prediction signal Pintra is derived following the regular intra prediction process with the planar mode. Then, the intra and inter prediction signals are combined using weighted averaging, where the weight value is calculated depending on the coding modes of the top and left neighboring blocks (depicted in FIG. 16) as follows: –If the top neighbor is available and intra coded, then set isIntraTop to 1, otherwise set isIntraTop to 0; –If the left neighbor is available and intra coded, then set isIntraLeft to 1, otherwise set isIntraLeft to 0; –If (isIntraLeft + isIntraTop) is equal to 2, then wt is set to 3; –Otherwise, if (isIntraLeft + isIntraTop) is equal to 1, then wt is set to 2; –Otherwise, set wt to 1.

[0112] The CIIP prediction is formed as follows: PCIIP= ( (4-wt) * Pinter+wt*Pintra+2) >>2      (5) 2.7. CIIP with PDPC blending

[0113] FIG. 17 is a diagram illustrating an example flowchart of the extended CIIP mode using position dependent prediction combination (PDPC) . The flowchart in FIG. 17 is referred to as a CIIP_PDPC flowchart for brevity. In ECM, the CIIP mode is extended as described in JVET-O0537. In this extended mode (CIIP_PDPC) , the prediction of the regular merge mode is refined using the above (Rx, -1) and left (R-1, y) reconstructed samples. This refinement inherits the PDPC scheme. The flowchart of the prediction of the CIIP_PDPC mode can be depicted as in FIG. 17, where WT and WL are the weighted values which depend on the sample position in the block as defined in PDPC.

[0114] The CIIP_PDPC mode is signaled together with CIIP mode. When CIIP flag is true, another flag, namely CIIP_PDPC flag, is further signaled to indicate whether to use CIIP_PDPC. 2.8. Combination of CIIP with template-based intra mode derivation (TIMD) and TM merge

[0115] FIG. 18 is a diagram illustrating an example division method for angular modes.

[0116] In ECM CIIP mode, the prediction samples may be generated by weighting an inter prediction signal predicted using CIIP-TM merge candidate and an intra prediction signal predicted using TIMD derived intra prediction mode. The method is only applied to coding blocks with an area less than or equal to 1024.

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

[0118] In addition, it is also proposed to modify the weights (wIntra, wInter) for the two tests if the derived intra prediction mode is an angular mode. For near-horizontal modes (2 <= angular mode index < 34) , the current block is vertically divided as shown in FIG. 18 (a) ; for near-vertical modes (34 <= angular mode index <= 66) , the current block is horizontally divided as shown in FIG. 18 (b) .

[0119] The (wIntra, wInter) for different sub-blocks are shown in Table 1. Table 1. The modified weights used for angular modes.

[0120] With CIIP-TM, a CIIP-TM merge candidate list is built for the CIIP-TM mode. The merge candidates are refined by template matching. The CIIP-TM merge candidates are also reordered by the ARMC method as regular merge candidates. The maximum number of CIIP-TM merge candidates is equal to two. 2.9. Combined intra block copy and intra prediction

[0121] Combined intra block copy and intra prediction (IBC-CIIP) is a coding tool for a CU which uses IBC and intra prediction to obtain two prediction signals, and the two prediction signals are weighted summed to generate the final prediction as follows: P= (wibc*Pibc+ ( (1<<shift) -wibc) *Pintra+ (1<< (shift-1) ) ) >>shift     (6) Where Pibc and Pintra denote the IBC prediction signal and intra prediction signal. (wibc, shift) are set equal to (13,  4) and (1, 1) for IBC merge mode and IBC AMVP mode.

[0122] An intra prediction mode (IPM) candidate list is used to generate the intra prediction signal, and the IPM candidate list size is pre-defined as 2. An IPM index is signalled to indicate which IPM is used. FIG. 19 is a diagram illustrating an example of subblock template based generation of SbTMVP. 2.10. Temporal motion derivation in ECM

[0123] In VVC, the TMVP for the AMVP and merge mode is derived by fetching the motion information from the center or the bottom-right of the collocated block in a signaled collocated picture. Similarly, for the SbTMVP mode, the motion information from the left neighboring position is used as a motion shift, which is then employed to obtain TMVPs at sub-CU level.

[0124] In ECM, to further improve the coding efficiency of TMVP, two aspects are modified. Firstly, two collocated pictures are utilized which are the two reference frames with the least picture order count (POC) distance relative to the to-be-coded frame. Secondly, the motion shift to locate TMVP is adaptively determined from multiple locations according to template costs. More specifically, two motion shift candidate lists are constructed respectively for the two collocated frames. The motion shifts with the minimum template matching cost are used to derive SbTMVP or TMVP candidates. At most 4 SbTMVP candidates are included in the sub-block-based merge list. The SbTMVP candidate with the least template matching cost derived from the first collocated frame is placed in the first entry without reordering, while other SbTMVP candidates are sorted together with affine candidates. In addition, the prediction direction of each subblock template is determined based on the center subblock. As illustrated in FIG. 19, if the center subblock is uni-predicted, then all the subblock templates are uni-predicted, and vice versa. If the motion vector of corresponding adjacent subblock at the determined reference list is not available for a subblock template, zero MV is used for that subblock template. 2.11. Multi-pass decoder-side motion vector refinement (DMVR)

[0125] A multi-pass decoder-side motion vector refinement is integrated in ECM. In the first pass, bilateral matching (BM) is applied to the coding block. In the second pass, BM is applied to each 16x16 subblock within the coding block. In the third pass, MV in each 8x8 subblock is refined by applying bi-directional optical flow (BDOF) . The refined MVs are stored for both spatial and temporal motion vector prediction. 2.11.1 First pass - Block based bilateral matching MV refinement

[0126] In the first pass, a refined MV is derived by applying BM to a coding block. Similar to decoder-side motion vector refinement (DMVR) , in bi-prediction operation, a 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 initiate MVs based on the minimum bilateral matching cost between the two reference blocks in L0 and L1.

[0127] BM performs local search to derive integer sample precision intDeltaMV. The local search applies a 3×3 square search pattern to loop through the search range [–sHor, sHor] in horizontal direction and [–sVer, sVer] in vertical direction, wherein, the values of sHor and sVer are determined by the block dimension, and the maximum value of sHor and sVer is 8.

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

[0129] The existing fractional sample refinement is further applied to derive the final deltaMV. The refined MVs after the first pass is then derived as: MV0_pass1 = MV0 + deltaMV             (7) MV1_pass1 = MV1 –deltaMV. 2.11.2 Second pass - Subblock based bilateral matching MV refinement

[0130] In the second pass, a refined MV is derived by applying BM to a 16×16 grid subblock. For each subblock, a refined MV is searched around the two MVs (MV0_pass1 and MV1_pass1) , obtained on the first pass, in the reference picture list 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 subblocks in L0 and L1.

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

[0132] FIG. 20 is a diagram illustrating an example of diamond regions in the search area. The bilateral matching cost is calculated by applying a cost factor to the SATD cost between two reference subblocks, as: bilCost = satdCost *costFactor. The search area (2*sHor + 1) * (2*sVer + 1) is divided up to 5 diamond shape search regions shown on FIG. 20. Each search region is assigned a costFactor, which is determined by the distance (intDeltaMV) between each search point and the starting MV, and each diamond region is processed in the order starting from the center of the search area. In each region, the search points are processed in the raster scan order starting from the top left going to the bottom right corner of the region. When the minimum bilCost within the current search region is less than a threshold equal to sbW *sbH, the int-pel full search is terminated, otherwise, the int-pel full search continues to the next search region until all search points are examined. Additionally, if the difference between the previous minimum cost and the current minimum cost in the iteration is less than a threshold that is equal to the area of the block, the search process terminates.

[0133] The existing VVC DMVR fractional sample refinement is further applied to derive the final deltaMV (sbIdx2) . The refined MVs at second pass is then derived as: MV0_pass2 (sbIdx2) = MV0_pass1 + deltaMV (sbIdx2)        (8) MV1_pass2 (sbIdx2) = MV1_pass1 –deltaMV (sbIdx2)  2.11.3 Third pass - Subblock based bi-directional optical flow MV refinement

[0134] In the third pass, a refined MV is derived by applying BDOF to an 8×8 grid subblock. For each 8×8 subblock, BDOF refinement is applied to derive scaled Vx and Vy without clipping starting from the refined MV of the parent subblock of the second pass. The derived bioMv (Vx, Vy) is rounded to 1 / 16 sample precision and clipped between -32 and 32.

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

[0136] In all aforementioned sub-clauses, when wrap around motion compensation is enabled, the motion vectors shall be clipped with wrap around offset taken into consideration. 2.12. Geometric partitioning mode (GPM)

[0137] FIG. 21 is a diagram illustrating an example of GPM splits grouped by identical angles. In VVC, a geometric partitioning mode is supported for inter prediction. The geometric partitioning mode is signalled using a CU-level flag as one kind of merge mode, with other merge modes including the regular merge mode, the MMVD mode, the CIIP mode and the subblock merge mode. In total 64 partitions are supported by geometric partitioning mode for each possible CU size w×h=2m×2n with m, n ∈ {3…6} excluding 8x64 and 64x8.

[0138] When this mode is used, a CU is split into two parts by a geometrically located straight line (FIG. 21) . The location of the splitting line is mathematically derived from the angle and offset parameters of a specific partition. Each part of a geometric partition in the CU is inter-predicted using its own motion; only uni-prediction is allowed for each partition, that is, each part has one motion vector and one reference index. The uni-prediction motion constraint is applied to ensure that same as the conventional bi-prediction, only two motion compensated prediction are needed for each CU.

[0139] If GPM is used for the current CU, then a geometric partition index indicating the partition mode of the geometric partition (angle and offset) , and two merge indices (one for each partition) are further signalled. The number of maximum GPM candidate size is signalled explicitly in sequence parameter set (SPS) and specifies syntax binarization for GPM merge indices. After predicting each of part of the geometric partition, the sample values along the geometric partition edge are adjusted using a blending processing with adaptive weights. This is the prediction signal for the whole CU, and transform and quantization process will be applied to the whole CU as in other prediction modes. Finally, the motion field of a CU predicted using the geometric partition modes is stored. 2.12.1 Uni-prediction candidate list construction

[0140] FIG. 22 is a diagram illustrating an example of Uni-prediction MV selection for geometric partitioning mode. The uni-prediction candidate list is derived directly from the merge candidate list constructed according to the extended merge prediction process. Denote n as the index of the uni-prediction motion in the geometric uni-prediction candidate list. The LX motion vector of the n-th extended merge candidate, with X equal to the parity of n, is used as the n-th uni-prediction motion vector for geometric partitioning mode. These motion vectors are marked with “x” in FIG. 22. In case a corresponding LX motion vector of the n-the extended merge candidate does not exist, the L (1 -X) motion vector of the same candidate is used instead as the uni-prediction motion vector for geometric partitioning mode. 2.12.2 Blending along the geometric partitioning edge

[0141] FIG. 23 is a diagram illustrating an example of generation of a bending weight w0 using GPM. After predicting each part of a geometric partition using its own motion, blending is applied to the two prediction signals to derive samples around geometric partition edge. The blending weight for each position of the CU are derived based on the distance between individual position and the partition edge.

[0142] The distance for a position (x, y) to the partition edge are derived as follows: Where i, j are the indices for angle and offset of a geometric partition, which depend on the signaled geometric partition  index. The sign of ρx, j and ρy, j depend on angle index i.

[0143] The weights for each part of a geometric partition are derived as follows: wIdxL (x, y) =partIdx ? 32+d (x, y) : 32-d (x, y)     (14) w1 (x, y) =1-w0 (x, y)         (16)

[0144] The partIdx depends on the angle index i. One example of weigh w0 is illustrated below (FIG. 23) . 2.12.3. Motion field storage for geometric partitioning mode

[0145] Mv1 from the first part of the geometric partition, Mv2 from the second part of the geometric partition, and a combined Mv of Mv1 and Mv2 are stored in the motion filed of a geometric partitioning mode coded CU.

[0146] The stored motion vector type for each individual position in the motion filed are determined as: sType = abs (motionIdx) < 32 ? 2∶ (motionIdx≤0 ? (1 -partIdx) : partIdx) (17) Where motionIdx is equal to d (4x+2, 4y+2) . The partIdx depends on the angle index i.

[0147] If sType is equal to 0 or 1, Mv0 or Mv1 are stored in the corresponding motion field, otherwise if sType is equal to 2, a combined Mv from Mv0 and Mv2 are stored. The combined Mv are generated using the following process: 1) If Mv1 and Mv2 are from different reference picture lists (one from L0 and the other from L1) , then Mv1 and  Mv2 are simply combined to form the bi-prediction motion vectors. 2) Otherwise, if Mv1 and Mv2 are from the same list, only uni-prediction motion Mv2 is stored. 2.13. Spatial geometric partitioning mode (SGPM)

[0148] FIG. 24 is a diagram illustrating an example of spatial GPM candidates. SGPM is an intra mode that resembles the inter coding tool of GPM, where the two prediction parts are generated from intra predicted process. In this mode, a candidate list is built with each entry containing one partition split and two intra prediction modes as shown in FIG. 24.26 partition modes and 3 intra prediction modes are used to form the combinations. the length of the candidate list is set equal to 16. The selected candidate index is signalled.

[0149] FIG. 25 is a diagram illustrating an example GPM template. The list is reordered using template (FIG. 25) where SAD between the prediction and reconstruction of the template is used for ordering. The template size is fixed to 1.

[0150] For each partition mode, an IPM list is derived for each part using the same intra-inter GPM list derivation. The IPM list size is set to 3. In the list, TIMD derived mode is replaced by 2 derived modes with horizontal and vertical orientations.

[0151] The SGPM mode is applied with a restricted blocks size: 4<=width<=64, 4<=height<=64, width<height*8, height<width*8, width*height>=32.

[0152] A picture parameter set (PPS) flag is coded to indicate whether no blending of two intra predictions is allowed. When this PPS flag is set to false, the following adaptive blending is also used for spatial GPM, where blending depth τ is derived as follows: · If min (width, height) ==4, 1 / 2 τ is selected, · Else if min (width, height) ==8, τ is selected, · Else if min (width, height) ==16, 2 τ is selected, · Else if min (width, height) ==32, 4 τ is selected, · Else, 8 τ is selected.

[0153] Otherwise (the PPS flag is set to true) , 1 / 4 τ is always used for spatial GPM coded blocks to make sure no blending is used when SGPM block has partition angle completely horizontal or vertical, and much narrower blending width is used when SGPM block has other partition angles. It is noted that the flag is set to true in current Common Test Conditions (CTC) for the screen content videos. 2.14. Geometric partitioning mode (GPM) with adaptive blending

[0154] FIG. 26 is a diagram illustrating an example ramp function for the weights for GPM blending based on the displacement (d) from a predicted sample position to the GPM partitioning boundary and the blending area size (τ) .

[0155] In VVC, the final prediction samples are generated with by blending the prediction of the two prediction signals using weighted average. Two integer blending matrices (W0 and W1) are used. The weights in the GPM blending matrices are derived from the ramp function based on the displacement from a predicted sample position to the GPM partitioning boundary. The blending area size is fixed to two (2 samples on each side of the GPM partition split boundary) .

[0156] The blending process in ECM is improved by adding four extra blending area sizes (quarter, half, double, and quadrupole of the existing area size) as shown in FIG. 26. A CU level flag is coded to signal the selected blending area size is signalled. Furthermore, the extended weighting precision is utilized, in which the maximum value of the weighs is changed from 8 (in VVC) to 32 to accommodate the extended blending area sizes. 2.15 Large block-size transforms with high-frequency zeroing

[0157] In VVC, large block-size transforms, up to 64×64 in size, are enabled, which is primarily useful for higher resolution video, e.g., 1080p and 4K sequences. High frequency transform coefficients are zeroed out for the transform blocks with size (width or height, or both width and height) equal to 64, so that only the lower-frequency coefficients are retained. For example, for an M×N transform block, with M as the block width and N as the block height, when M is equal to 64, only the left 32 columns of transform coefficients are kept. Similarly, when N is equal to 64, only the top 32 rows of transform coefficients are kept. When transform skip mode is used for a large block, the entire block is used without zeroing out any values. In addition, transform shift is removed in transform skip mode. The VVC test model (VTM) also supports configurable max transform size in SPS, such that an encoder has the flexibility to choose up to 32-length or 64-length transform size depending on the need of specific implementation. 2.16. Multiple transform selection (MTS) for core transform

[0158] In addition to DCT-II which has been employed in HEVC, a Multiple Transform Selection (MTS) scheme is used for residual coding both inter and intra coded blocks. It uses multiple selected transforms from the DCT8 / DST7. The newly introduced transform matrices are DST-VII and DCT-VIII. Table 2 shows the basis functions of the selected DST / DCT. Table 2. Transform basis functions of DCT-II / VIII and DSTVII for N-point input

[0159] In order to keep the orthogonality of the transform matrix, the transform matrices are quantized more accurately than the transform matrices in HEVC. To keep the intermediate values of the transformed coefficients within the 16-bit range, after horizontal and after vertical transform, all the coefficients are to have 10 bits.

[0160] In order to control MTS scheme, separate enabling flags are specified at SPS level for intra and inter, respectively. When MTS is enabled at SPS, a CU level flag is signalled to indicate whether MTS is applied or not. Here, MTS is applied only for luma. The MTS signaling is skipped when one of the below conditions is applied.

[0161] The position of the last significant coefficient for the luma transform block (TB) is less than 1 (i.e., DC only)

[0162] The last significant coefficient of the luma TB is located inside the MTS zero-out region

[0163] If MTS CU flag is equal to zero, then DCT2 is applied in both directions. However, if MTS CU flag is equal to one, then two other flags are additionally signalled to indicate the transform type for the horizontal and vertical directions, respectively. Transform and signalling mapping table as shown in Table 3. Unified the transform selection for ISP and implicit MTS is used by removing the intra-mode and block-shape dependencies. If current block is ISP mode or if the current block is intra block and both intra and inter explicit MTS is on, then only DST7 is used for both horizontal and vertical transform cores. When it comes to transform matrix precision, 8-bit primary transform cores are used. Therefore, all the transform cores used in HEVC are kept as the same, including 4-point DCT-2 and DST-7, 8-point, 16-point and 32-point DCT-2. Also, other transform cores including 64-point DCT-2, 4-point DCT-8, 8-point, 16-point, 32-point DST-7 and DCT-8, use 8-bit primary transform cores. Table 3. Transform and signalling mapping table

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

[0165] As in HEVC, the residual of a block can be coded with transform skip mode. To avoid the redundancy of syntax coding, the transform skip flag is not signalled when the CU level MTS_CU_flag is not equal to zero. Note that implicit MTS transform is set to DCT2 when LFNST or MIP is activated for the current CU. Also the implicit MTS can be still enabled when MTS is enabled for inter coded blocks. 2.17. Low-frequency non-separable transform (LFNST)

[0166] FIG. 27 is a diagram illustrating an example LFNST process. In VVC, LFNST is applied between forward primary transform and quantization (at encoder) and between de-quantization and inverse primary transform (at decoder side) . In LFNST, 4x4 non-separable transform or 8x8 non-separable transform is applied according to block size (FIG. 27) . For example, 4x4 LFNST is applied for small blocks (i.e., min (width, height) < 8) and 8x8 LFNST is applied for larger blocks (i.e., min (width, height) > 4) .

[0167] Application of a non-separable transform, which is being used in LFNST, is described as follows using input as an example. To apply 4x4 LFNST, the 4x4 input block X: is first represented as a vector

[0168] The non-separable transform is calculated as where indicates the transform coefficient vector, and T is a 16x16 transform matrix. The 16x1 coefficient vector is subsequently re-organized as 4x4 block using the scanning order for that block (horizontal, vertical or diagonal) . The coefficients with smaller indices will be placed with the smaller scanning index in the 4x4 coefficient block. 2.18. Reduced Non-separable transform

[0169] LFNST is based on direct matrix multiplication approach to apply non-separable transform so that it is implemented in a single pass without multiple iterations. However, the non-separable transform matrix dimension needs to be reduced to minimize computational complexity and memory space to store the transform coefficients. Hence, reduced non-separable transform (or RST) method is used in LFNST. The main idea of the reduced non-separable transform is to map an N (N is commonly equal to 64 for an 8x8 non-separable secondary transform (NSST) ) dimensional vector to an R dimensional vector in a different space, where N / R (R < N) is the reduction factor. Hence, instead of NxN matrix, RST matrix becomes an R×N matrix as follows: Where the R rows of the transform are R bases of the N dimensional space. The inverse transform matrix for RT is the  transpose of its forward transform. For 8x8 LFNST, a reduction factor of 4 is applied, and 64x64 direct matrix, which is conventional 8x8 non-separable transform matrix size, is reduced to16x48 direct matrix. Hence, the 48×16 inverse RST matrix is used at the decoder side to generate core (primary) transform coefficients in 8×8 top-left regions. When 16x48 matrices are applied instead of 16x64 with the same transform set configuration, each of which takes 48 input data from three 4x4 blocks in a top-left 8x8 block excluding right-bottom 4x4 block. With the help of the reduced dimension, memory usage for storing all LFNST matrices is reduced from 10KB to 8KB with reasonable performance drop. In order to reduce complexity LFNST is restricted to be applicable only if all coefficients outside the first coefficient sub-group are non-significant. Hence, all primary-only transform coefficients have to be zero when LFNST is applied. This allows a conditioning of the LFNST index signalling on the last-significant position, and hence avoids the extra coefficient scanning in the current LFNST design, which is needed for checking for significant coefficients at specific positions only. The worst-case handling of LFNST (in terms of multiplications per pixel) restricts the non-separable transforms for 4x4 and 8x8 blocks to 8x16 and 8x48 transforms, respectively. In those cases, the last-significant scan position has to be less than 8 when LFNST is applied, for other sizes less than 16. For blocks with a shape of 4xN and Nx4 and N > 8, the proposed restriction implies that the LFNST is now applied only once, and that to the top-left 4x4 region only. As all primary-only coefficients are zero when LFNST is applied, the number of operations needed for the primary transforms is reduced in such cases. From encoder perspective, the quantization of coefficients is remarkably simplified when LFNST transforms are tested. A rate-distortion optimized quantization has to be done at maximum for the first 16 coefficients (in scan order) , the remaining coefficients are enforced to be zero. 2.19. LFNST transform selection

[0170] There are totally 4 transform sets and 2 non-separable transform matrices (kernels) per transform set are used in LFNST. The mapping from the intra prediction mode to the transform set is pre-defined as shown in Table 4. If one of three CCLM modes (INTRA_LT_CCLM, INTRA_T_CCLM or INTRA_L_CCLM) is used for the current block (81 <= predModeIntra <= 83) , transform set 0 is selected for the current chroma block. For each transform set, the selected non-separable secondary transform candidate is further specified by the explicitly signalled LFNST index. The index is signalled in a bit-stream once per Intra CU after transform coefficients. Table 4. Transform selection table 2.20. LFNST index Signaling and interaction with other tools

[0171] Since LFNST is restricted to be applicable only if all coefficients outside the first coefficient sub-group are non-significant, LFNST index coding depends on the position of the last significant coefficient. In addition, the LFNST index is context coded but does not depend on intra prediction mode, and only the first bin is context coded. Furthermore, LFNST is applied for intra CU in both intra and inter slices, and for both Luma and Chroma. If a dual tree is enabled, LFNST indices for Luma and Chroma are signaled separately. For inter slice (the dual tree is disabled) , a single LFNST index is signaled and used for both Luma and Chroma.

[0172] Considering that a large CU greater than 64x64 is implicitly split (TU tiling) due to the existing maximum transform size restriction (64x64) , an LFNST index search could increase data buffering by four times for a certain number of decode pipeline stages. Therefore, the maximum size that LFNST is allowed is restricted to 64x64. Note that LFNST is enabled with DCT2 only. The LFNST index signaling is placed before MTS index signaling.

[0173] The use of scaling matrices for perceptual quantization is not evident that the scaling matrices that are specified for the primary matrices may be useful for LFNST coefficients. Hence, the uses of the scaling matrices for LFNST coefficients are not allowed. For single-tree partition mode, chroma LFNST is not applied. 2.21. Subblock transform (SBT)

[0174] FIG. 28 is a diagram illustrating an example SBT position, type and transform type. In VTM, subblock transform is introduced for an inter-predicted CU. In this transform mode, only a sub-part of the residual block is coded for the CU. When inter-predicted CU with cu_cbf equal to 1, cu_sbt_flag may be signaled to indicate whether the whole residual block or a sub-part of the residual block is coded. In the former case, inter MTS information is further parsed to determine the transform type of the CU. In the latter case, a part of the residual block is coded with inferred adaptive transform and the other part of the residual block is zeroed out.

[0175] When SBT is used for an inter-coded CU, SBT type and SBT position information are signaled in the bitstream. There are two SBT types and two SBT positions, as indicated in FIG. 28. For SBT-V (or SBT-H) , the transform unit (TU) width (or height) may equal to half of the CU width (or height) or 1 / 4 of the CU width (or height) , resulting in 2: 2 split or 1: 3 / 3: 1 split. The 2: 2 split is like a binary tree (BT) split while the 1: 3 / 3: 1 split is like an asymmetric binary tree (ABT) split. In ABT splitting, only the small region contains the non-zero residual. If one dimension of a CU is 8 in luma samples, the 1: 3 / 3: 1 split along that dimension is disallowed. There are at most 8 SBT modes for a CU.

[0176] Position-dependent transform core selection is applied on luma transform blocks in SBT-V and SBT-H (chroma TB always using DCT-2) . The two positions of SBT-H and SBT-V are associated with different core transforms. More specifically, the horizontal and vertical transforms for each SBT position is specified in FIG. 28. For example, the horizontal and vertical transforms for SBT-V position 0 is DCT-8 and DST-7, respectively. When one side of the residual TU is greater than 32, the transform for both dimensions is set as DCT-2. Therefore, the subblock transform jointly specifies the TU tiling, cbf, and horizontal and vertical core transform type of a residual block.

[0177] The SBT is not applied to the CU coded with combined inter-intra mode. 2.22. Maximum Transform Size and Zeroing-out of Transform Coefficients

[0178] Both CTU size and maximum transform size (i.e., all MTS transform kernels) are extended to 256, where the maximum intra coded block can have a size of 128x128. The maximum CTU size is set to 256 for ultra-high definition (UHD) sequences and it is set to 128, otherwise. In the primary transformation process, there is no normative zeroing out operation applied on transform coefficients. However, if LFNST is applied, the primary transform coefficients outside the LFNST region are normatively zeroed-out. 2.23. Enhanced MTS for intra coding

[0179] In an example VVC design [1] , for MTS, only DST7 and DCT8 transform kernels are utilized which are used for intra and inter coding.

[0180] Additional primary transforms including DCT5, DST4, DST1, and identity transform (IDT) are employed. Also MTS set is made dependent on the TU size and intra mode information. 16 different TU sizes are considered, and for each TU size 5 different classes are considered depending on intra-mode information. For each class, 4 different transform pairs are considered, the same as that of VVC. Note, although a total of 80 different classes are considered, some of those different classes often share exactly same transform set. So there are 58 (less than 80) unique entries in the resultant look-up table (LUT) .

[0181] For angular modes, a joint symmetry over TU shape and intra prediction is considered. So, a mode i (i >34) with TU shape AxB will be mapped to the same class corresponding to the mode j= (68 –i) with TU shape BxA. However, for each transform pair the order of the horizontal and vertical transform kernel is swapped. For example, for a 16x4 block with mode 18 (horizontal prediction) and a 4x16 block with mode 50 (vertical prediction) are mapped to the same class. However, the vertical and horizontal transform kernels are swapped. For the wide-angle modes the nearest conventional angular mode is used for the transform set determination. For example, mode 2 is used for all the modes between -2 and -14. Similarly, mode 66 is used for mode 67 to mode 80.

[0182] MTS index [0, 3] is signalled with 2 bit fixed-length coding. 2.24. Secondary Transformation: LFNST extension with large kernel

[0183] FIG. 29 is a diagram illustrating an example ROI for LFNST16. The LFNST design in VVC is extended as follows: · The number of LFNST sets (S) and candidates (C) are extended to S=35 and C=3, and the LFNST set  (lfnstTrSetIdx) for a given intra mode (predModeIntra) is derived according to the following formulas: ○ For predModeIntra < 2, lfnstTrSetIdx is equal to 2 ○ lfnstTrSetIdx = predModeIntra, for predModeIntra in [0, 34] ○ lfnstTrSetIdx = 68 –predModeIntra, for predModeIntra in [35, 66] · Three different kernels, LFNST4, LFNST8, and LFNST16, are defined to indicate LFNST kernel sets,  which are applied to 4xN / Nx4 (N≥4) , 8xN / Nx8 (N≥8) , and MxN (M, N≥16) , respectively.

[0184] The kernel dimensions are specified by: (LFSNT4, LFNST8*, LFNST16*) = (16x16, 32x64, 32x96)

[0185] The forward LFNST is applied to top-left low frequency region, which is the ROI. When LFNST is applied, primary-transformed coefficients that exist in the region other than ROI are zeroed out, which is not changed from the VVC standard.

[0186] The ROI for LFNST16 is depicted in FIG. 29. It consists of six 4x4 sub-blocks, which are consecutive in scan order. Since the number of input samples is 96, transform matrix for forward LFNST16 can be Rx96. R is chosen to be 32 in this contribution, 32 coefficients (two 4x4 sub-blocks) are generated from forward LFNST16 accordingly, which are placed following coefficient scan order.

[0187] FIG. 30 is a diagram illustrating an example ROI for LFNST8. The ROI for LFNST8 is shown in FIG. 30. The forward LFNST8 matrix can be Rx64 and R is chosen to be 32. The generated coefficients are located in the same manner as with LFNST16. The mapping from intra prediction modes to these sets is shown in Table 5: Table 5. Mapping of intra prediction modes to LFNST set index 2.25. Non-Separable Primary Transform for Intra Coding (NSPT)

[0188] DCT-II+LFNST is replaced by NSPT for the block sizes 4x4, 4x8, 8x4 and 8x8. The NSPTs follows the design of LFNST, i.e., 3 candidates and 35 sets, chosen based on the intra mode. The kernel sizes are as follows: · NSPT4x4: 16x16 · NSPT4x8  / NSPT8x4: 32x20 · NSPT8x8: 64x32

[0189] Therefore, 12 and 32 coefficients are zeroed-out for NSPT4x8 / NSPT8x4 and NSPT8x8 respectively. 2.26. Sign prediction

[0190] FIG. 31 is a diagram illustrating an example discontinuity measure. The basic idea of the coefficient sign prediction method (JVET-D0031 and JVET-J0021) is to calculate reconstructed residuals for both negative and positive sign combinations for applicable transform coefficients and select the hypothesis that minimizes a cost function.

[0191] To derive the best sign, the cost function is defined as discontinuity measure across block boundary shown on FIG. 31. It is measured for all hypotheses, and the one with the smallest cost is selected as a predictor for coefficient signs.

[0192] The cost function is defined as a sum of absolute second derivatives in the residual domain for the above row and left column as follows: Where R is reconstructed neighbors, P is prediction of the current block, and r is the residual hypothesis. The term  (-R-1+2R0-P1) can be calculated only once per block and only residual hypothesis is subtracted. 2.27. LFNST / NSPT for inter coding

[0193] In ECM-12.0, LFNST / NSPT is applied to inter coding, where a virtual intra prediction mode (VIPM) is employed. Each VIPM represents a kind of feature, for example, a specific direction. The VIPM is derived by applying a decoder-side intra mode derivation (DIMD) -like process, which is also used in MIP and IntraTMP, to the inter prediction block. The horizontal and vertical gradients of pixels inside the prediction block are calculated with Sobel operator and the horizontal and vertical gradients of each pixel are used to derive a direction. The amplitudes of the gradient of each pixel are accumulated for the corresponding direction. The intra prediction mode corresponding to the strongest accumulation is selected as the VIPM. With the VIPM, the transform set of LFNST / NSPT can be derived. For inter coding, the kernel mapping method is the same as that for intra LFNST / NSPT.

[0194] The distribution of inter LFNST / NSPT index is different from that of intra LFNST / NSPT index. Therefore, the signaling of inter LFNST / NSPT index is proposed to be different from that of intra LFNST / NSPT index. The intra LFNST / NSPT index binarization employs two context coded bins for each symbol, while it is proposed to use truncated unary code with different context models for inter LFNST / NSPT index coding. 2.28. Multiple transform set selection for LFNST / NSPT

[0195] In JVET-AG0062, the LFNST / NSPT transform set for certain intra modes, i.e., DIMD, TIMD, MIP, SGPM, EIP and ITMP, is selected out of two candidate sets, which corresponds to two different intra prediction modes (IPM) . The derivation of the two intra modes is as follows: Table 6. The LFNST / NSPT multiple intra modes derivation in JVET-AG0062

[0196] In JVET-AH0218, the candidate LFNST / NSPT IPMs for MIP, EIP and ITMP are modified, where the intermediate results of DIMD processing are reused. In particular, the first LFNST / NSPT IPM for MIP, EIP and ITMP remains the 1st DIMD IPM, while the second IPM is replaced by the 2nd DIMD IPM derived based on the prediction signal of the current block. The proposed multiple intra mode derivation for LFNST / NSPT is summarized as in Table 7. Table 7. The proposed LFNST / NSPT multiple intra modes derivation in JVET-AH0218 3. Technical problems addressed by disclosed embodiments

[0197] An example design of the SBT method has the following problems:

[0198] In ECM-13.0, subblock transform (SBT) is only applied to inter-predicted coding block. Accordingly, harmonization between SBT and intra coding may be useful to further improve coding performance. 4. A listing of solutions and embodiments

[0199] In this design, SBT is further improved by allowing SBT for intra-predicted blocks (i.e., intra-SBT) . Also, a method of SBT information inferring is presented. In particular, only a sub-part of the residual block may be coded for an intra-predicted block.

[0200] The detailed aspects below should be considered as examples to explain general concepts. These aspects should not be interpreted in a narrow way. Furthermore, these aspects can be combined in any manner.

[0201] The terms video unit, coding unit, or block may represent a coding tree block (CTB) , a coding tree unit (CTU) , a coding block (CB) , a CU, a prediction unit (PU) , a TU, a prediction block (PB) , a transform block (TB) . The term subblock-based coding tools may represent affine, SbTMVP, and the corresponding variants, and etc.

[0202] In this design, regarding a block coded with mode N, here mode N may be a prediction mode (e.g., MODE_INTRA, MODE_INTER, MODE_PLT, MODE_IBC, and etc. ) , or a coding 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-inter, GPM intra-intra, GPM inter-intra, MHP, GEO, TPM, MMVD, BCW, HMVP, SbTMVP, LIC, OBMC, ALF, deblocking, SAO, bilateral filter, LMCS, SBT, LFNST / NSPT MTS, intra TMP, IBC and the corresponding variants, and etc. ) .

[0203] It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. 1. It is proposed that SBT can be applied to an intra-predicted CU (i.e., intra-SBT) . a) In one example, a coding unit may be firstly split into M (M >= 1) subblocks / TUs, and / or each  subblock / TU may have residual or not. i. In one example, the residuals of at most N (M >= N >= 1) subblock / TU are coded, and / or the residuals  of other subblock / TU are set to zero. ii. In one example, the residual of a non-zero-residual subblock / TU may be transform-coded. 1) In one example, alternatively, the residual of a non-zero-residual subblock / TU may be coded  without transform (i.e., transform skip-coded) . 2) In one example, residual of a non-zero-residual subblock / TU may further perform at least one  transform. a) In one example, the transform may be realized with a separable core, including but not  limited to DCT or DST variants. b) In one example, alternatively, the transform kernels may be realized with a non-separable  core, including but not limited to Karhunen-Loeve Transform (KLT) , NSPT. c) In one example, multiple-pass transform may be applied to a non-zero-residual  subblock / TU. i. In one example, at least one pass transform may be a separable (e.g., DCT or DST  variants) core. ii. In one example, at least one pass transform may be a non-separable (e.g., NSPT, KLT,  LFNST) . iii. In one example, at least one separable transform and at least one pass non-separable  transform may be performed sequentially. iii. In one example, whether to and / or how to perform SBT to an intra-coded block may depend on a pre- defined rule. 1) For example, the pre-defined rules may be defined based on the type of video units / coding  tools / coding methods, such as: a) For example, it may be based on low-delay (e.g., low-delay-B, and / or low-delay-P) pictures. b) For example, it may be based on temporal layer information. c) For example, it may be based on slice type (e.g., I slice, B slice, P slice) . d) For example, it may be based on prediction method (e.g., intra CCP, intra CCP merge, a  template-based method, IBC, IntraTMP, MIP, SGPM, etc. ) . e) For example, it may be based on whether the CU is angular predicted or not. i. In one example, SBT may not be applied to an angular-predicted intra block. f) For example, it may be based on block information (e.g., block height / width / ratio of width  and height / block area, etc. ) . g) For example, it may depend on the combination of above rules. 2. At least one syntax indicating whether SBT is applied to an intra-coded block may be signalled. a) In one example, at least one block level intra-SBT syntax may be signaled in the bitstream. b) In one example, at least one intra-SBT syntax in sequence level / group of pictures level / picture level / slice  level / tile group level, such as in sequence header / picture header / SPS / video parameter set (VPS)  / decoding parameter set (DPS)  / decoding capability information (DCI)  / PPS / adaptation parameter set (APS)  / slice header / tile group header may be signaled in the bitstream. c) In one example, whether an intra-SBT syntax is signaled or not, or whether intra-SBT is applied or not  may depend on the value of at least one another block level syntax. i. In one example, whether an intra-SBT syntax is signaled or not, or whether intra-SBT is applied or  not may depend on MTS index. 1) In one example, specifically, no intra-SBT syntax is signaled if MTS index equals to certain  values or satisfy certain conditions (e.g., larger or smaller than certain values) , and / or intra-SBT is not applied in this case. 3. For an intra-SBT-coded block, which primary transform kernel is used may be dependent on the SBT  information (i.e., split direction / position) . a) In one example, for an intra-SBT-coded block, the primary transform kernel for a certain subblock / TU  may be specified by the SBT index (i.e., split direction / position) . i. In one example, specifically, for different SBT index (i.e., split direction / position) , different primary  transform kernels may be used. ii. In one example, a same (or different) primary transform kernel derivation method of inter SBT may  be used by an intra-SBT-coded block. b) In one example, alternatively, if LFNST / NSPT is applied to an intra-SBT-coded block, a different primary  transform kernels may be used for a certain subblock / TU. i. In one example, which primary transform kernel is used may not depend on the SBT index (i.e., split  direction / position) . ii. In one example, a fixed (e.g., DCT2) primary transform kernel may be used if LFNST / NSPT is  applied to an intra-SBT-coded block. 4. A different LFNST / NSPT kernel index deviation method may be used if LFNST / NSPT is applied to an intra- SBT-coded block. a) In one example, for an intra-SBT-coded block, the LFNST / NSPT kernel index may be derived by  analyzing the prediction signal in the to-be-coded subblock / TU region. i. In one example, the histogram of oriented gradients (HOG) (or accumulated amplitudes of the  gradient, in a similar way as DIMD) may be built based on the prediction signal within the to-be-coded subblock / TU region, and the direction corresponds to the highest histogram may be used to derive LFNST / NSPT kernel index. 5. The coefficients of an intra-SBT-coded block may further perform sign prediction, and / or the difference  between the real sign and predicted sign may be signalled. 6. Whether intra-SBT is applied may depend on the color format and / or color components. a) For example, intra-SBT may be only applied to the luma component. b) For example, intra-SBT may be applied to a chroma component. c) For example, different transform kernels may be applied for different color components for non-zero- residual subblock / TU coding.

[0204] With respect to SBT information inferring, FIG. 39 shows SBT types supported in ECM-14.0. FIG. 40 shows other possible SBT types than those shown in FIG. 39. FIG. 41 shows an example of a boundary that is used for inferring. The following description also refers to FIGS. 42-47. FIG. 42 shows an example of the non-zero TU locations after SBT half splitting. FIG. 43 shows an example of the non-zero TU locations after SBT quarter splitting. FIG. 44 shows an example of the non-zero TU locations after SBT corner splitting (width / 2 × height / 2 case) . FIG. 45 shows an example of the non-zero TU locations after SBT corner splitting (width / 4 × height / 4 case) . FIG. 46 shows an example of calculating a continuity metric value using a top TU boundary. FIG. 47 shows an example of calculating a continuity metric value using a left TU boundary. 7. As described above, in some embodiments, the SBT information may be inferred. a) In one example, the information may be SBT types or SBT position. i. In one example, the SBT types may indicate how the root TU (i.e., CU region) is split. 1) In one example, the root TU may be split where at least one side of the block boundary for a  sub-TU / TU is the same as the root TU, e.g., as shown in FIG. 39. 2) In one example, the root TU may be split where at least one sub-TU / TU at a corner or center  position has residual, e.g., as shown in FIG. 40. ii. In one example, the SBT position may indicate whether the root TU is vertically or horizontally split,  and / or which sub-TU / TU can have residual, and / or has at least one non-zero transform coefficient, and / or where the non-zero-sub-TU / TU locates inside the CU. b) In one example, SBT position may be inferred. i. In one example, whether a root TU is vertically or horizontally split, and / or which sub-TU is assigned  to have residual, and / or where the non-zero-sub-TU / TU locates inside the CU may be inferred. 1) In one example, at least one block boundary may be used to do the inferring. a) In one example, the boundary may be a sub-TU boundary. b) In one example, alternatively, may be a CU / PU / TU boundary. c) In one example, the boundary may be a sub-TU boundary and a CU / PU / TU boundary at  the same time. d) In one example, at least one sub-TU / TU boundary which locates inside the CU / PU may  be used to do the inferring. e) In one example, when root TU is vertically split, then the top boundary of a sub-TU may  be used to do the inferring, e.g., as shown in FIG. 41. i. In one example, alternatively, when root TU is horizontally split, then the left  boundary of a sub-TU / TU may be used to do the inferring. f) In one example, more than one boundary may be used to do the inferring. i. In one example, when a sub-TU / TU contains more than one boundary that are also the  boundaries of at least one already coded / reconstructed block, more than one boundary may be used to do the inferring. 2) In one example, a cost / metric for all or partial SBT positions associated with a certain SBT type  may be calculated, and / or the one yielding the maximum / minimum value may be determined as the inferring result. a) In one example, the cost may be realized based on the boundary continuity / gradient. 3) In one example, a non-zero-sub-TU / non-zero-TU may slide along a block boundary with a step  value S, and / or for a certain position being checked, a cost may be derived. a) In one example, a block boundary may be a CU / PU / TU boundary. b) In one example, the sliding may start from one end-point of a boundary, and / or end at the  other end-point of the boundary. i. In one example, the sliding may be early-terminated if certain condition is satisfied. c) In one example, the step value S (S>= 1) may be an arbitrary integer value. i. In one example, S may be determined based on the dimension of the minimum  processing unit in video coding, or the minimum PU / CU / TU / subblock size. ii. In one example, S may be a power of 2, i.e., 2n (n >= 0) . iii. In one example, S may be different for a luma block and the corresponding collocated  chroma block. 1. In one example, the step value S for a luma block may be N times as that of the  corresponding chroma block. iv. In one example, S may be determined based on the block dimension. 1. In one example, S may be derived based on block dimension. 2. In one example, at least K (K >= 1) values may be pre-defined, and / or which  value is used may be determined based on block dimension. a) In one example, S may be determined / derived based on the length of the  boundary on which the sliding is performed. d) In one example, the cost associated with at least one sliding position may be sorted, and / or  the position yielding the maximum / minimum cost may be determined as the inferred SBT position. 4) In one example, for a certain SBT type, whether vertical or horizontal split is used may be  inferred. a) In one example, at least one SBT position associated with a vertical or horizontal split may  be checked, and / or the corresponding cost may be derived. i. In one example, for all the checked SBT positions associated with a vertical or  horizontal split, the minimum / maximum cost may be derived. 1. In one example, the minimum / maximum cost for a vertical and a horizontal split  may be respectively derived, and / or the one (i.e., vertical split or horizontal split) yielding the least / largest cost may be determined as the split direction. ii. In one example, all the potential SBT positions of a vertical and a horizontal split may  be checked, and / or the corresponding costs are derived. 1. In one example, the minimum / maximum cost may be derived from all the derived  costs of a vertical and a horizontal split, and / or the associated split direction may be inferred as the final split direction. 5) In one example, the inferring may be realized based on the sub-TU / TU boundary that separates  the PU of the current block and an already reconstructed / coded region. a) In one example, the prediction signal along one side of the boundary and the reconstructed  signal along the other side of the boundary may be used to do the inferring. b) In one example, prediction signals along both sides of the boundary may be used to do the  inferring. 6) In one example, the inferring may be realized based on the sub-TU / TU boundary that separates  the current TU and an adjacent TU that belongs to a same CU / PU. 7) In one example, the inferring may be realized based on the boundary continuity / gradient. a) In one example, a continuity measurement may be derived by calculating the sum of  continuity / gradient measurement for all / partial pixels along the boundary. 8) In one example, the inferring may depend on the availability of a neighboring block. a) In one example, a neighboring block may be an already coded block. b) In one example, whether a syntax indicating the usage of inferring SBT may depend on the  availability of a neighboring block. c) The inferring checking or metric calculation for a certain position or type may be skipped  when the corresponding neighboring block doesn’t exist. 9) In one example, whether to / How to do the inferring may be different for different SBT types. a) In one example, the inferring may not be allowed for certain SBT types. i. In one example, the inferring may not be allowed for the SBT types where only the  corner or center subblock can has residual. b) In one example, for a certain SBT type, the allowed SBT positions / candidates for inferring  SBT and non-inferring SBT may be different. i. In one example, the allowed SBT position / candidate number may be different. ii. In one example, whether a SBT position is allowed for inferring SBT may depend on  whether the corresponding sub-TU / TU is adjacent to an already reconstructed block or not. 1. In one example, the “adjacent” indicates the sharing of a mutual boundary. 2. In one example, if a SBT position / candidate is not adjacent to an already  reconstructed block (e.g., the right-bottom position for a SBT type that reserve corner residual, as shown in FIG. 40) , it may not be allowed to be used for an inferring-SBT coded block. c) In one example, SBT type may be inferred. i. In one example, which split type is used, and / or whether a corner / center block can have residual or  not, may be inferred. 1) In one example, for a certain split type, at least one SBT position may be checked, and the  corresponding cost is derived. a) In one example, the cost may be derived in a similar way as described in Bullet 7. b. 2) In one example, the minimum / maximum cost associated with a certain split type may be derived,  which may be assigned as the cost for this split type. 3) In one example, the cost of at least two split types may be compared. And the one yielding the  least / largest cost may be determined as the final split type. ii. In one example, for a SBT type where non-zero TU / sub-TU locates at the corner / center position of  the CU (e.g., shown in FIG. 40) , the size of the non-zero TU / sub-TU may be inferred. 1) In one example, assume the CU size is MxN, then a corner or center subblock may be allowed  to contain residual, of which the size may be (M / A) x (N / B) . a) In one example, A and B may be a same value. i. In one example, alternatively, A and B may be different values. b) In one example, A and B may be a power of 2. 2) In one example, which size is determined as the size of a non-zero TU / sub-TU, and / or what A / B  value is used, may be inferred. a) In one example, for at least one split type with a specific TU size, the cost of the split type  may be derived as described in Bullet 7. c. i. b) In one example, the cost of the split type associated with different TU size may be derived  and / or compared, and the one yielding the least / largest cost may be determined as the final split type (or TU size) .Predictive signalling of SBT information 8. The SBT information may be predictive signalled. a) In one example, the SBT information may include but not limited to split type, split direction, and / or position  (or index) of the TU that has at least one non-zero residual (i.e., non-zero TU) . b) In one example, the predictive signalling strategy may be applied to at least one SBT split type, e.g.,  half / quarter / corner split type. c) In one example, the predicted SBT information may be generated by analyzing the prediction samples of the  current coding block, and / or the neighboring reconstructed samples. i. In one example, for a certain SBT split type (e.g., half / quarter / corner split) , for at least one potential  non-zero TU after splitting, a fidelity score may be derived. 1) In one example, the potential non-zero TU locations after SBT splitting are provided as follows  (denoted in blue color) . a) In one example, for SBT half splitting type, the potential TU locations are provided in FIG.  42. b) In one example, for SBT quarter splitting type, the potential TU locations are provided in  FIG. 43. c) In one example, for SBT corner splitting type (width / 2 × height / 2 case) , the potential TU  locations are provided in FIG. 44. d) In one example, for SBT corner splitting type (width / 4 × height / 4 case) , the potential TU  locations are provided in FIG. 45. ii. In one example, specifically, the fidelity score may be used to evaluate the probability that a certain TU  can be chosen as non-zero TU after splitting. iii. In one example, specifically, the fidelity score may be derived by calculating the gradient of the  prediction sample values / variance of the prediction sample values / continuity of the block boundary between the current prediction block and a neighboring reconstructed block. 1) In one example, the fidelity score may be derived by calculating the sum of vertical and / or  horizontal gradient (i.e., SOG) based on the prediction signals associated with a certain non-zero TU region. a) In one example, a CU may firstly be split into multiple grids with size of (cu. width / N) ×  (cu. height / M) , and / or the SOG of each grid may be calculated separately. i. In one example, to derive the fidelity score of a certain non-zero TU, the aggregation of  the SOG associated with all or partial grids that covered by the non-zero TU may be calculated, which (including the variant) may be used to derive fidelity score. ii. In one example, N and / or M may be a power of 2. 1. In one example, M and N may be different or the same value. 2) In one example, the fidelity score may be derived by calculating the variance of the prediction  signals within a certain non-zero TU region. 3) In one example, the fidelity score may be derived by considering the continuity of the block  boundary between current prediction block and a neighboring reconstructed block. a) In one example, to predict the position of non-zero TU, continuity metric value associated  with top and / or left CU boundary may be calculated. i. In one example, which boundary (top or left) is used may be dependent on the split  direction. 1. In one example, if vertical split is used for a certain SBT block, as shown in FIG.  46, top boundary of a certain non-zero TU may be used to calculate continuity metric value. a) In one example, the continuity metric value may be calculated as where R is reconstructed neighbors, P is prediction of the current block. b) In one example, if horizontal split is used for a certain SBT block, as shown  in FIG. 47, left boundary of a certain non-zero TU may be used to calculate continuity metric value. i. In one example, the continuity metric value may be calculated as where R is reconstructed neighbors, P is prediction of the current  block. 4) In one example, multiple criterions (e.g., SOG, variance, continuity metric) may be combined to  produce the predicted SBT information. 5) In one example, the fidelity score may be derived based on only luma component of the prediction  and / or reconstruction of a coding block. a) In one example, the fidelity score may be derived based on both luma and at least one chroma  component. 6) In one example, the fidelity score may be derived based on the subsampled block. a) In one example, the subsampled prediction and / or reconstruction blocks may be used to  derive the fidelity score. d) In one example, for a certain split type, all or partial possible non-zero TUs may be reordered based on the  fidelity score, and the SBT information (e.g., direction and / or position) associated with the non-zero TU that has the highest fidelity score (denoted as TU-pre) may be used as the predicted SBT information, denoted as Dir-pre and Pos-pre. i. In one example, for a certain split type, after Dir-pre and Pos-pre are derived, the TUs in the reordered  list may be traversed in a descending order of the fidelity score, and the first non-zero TU which has a different split direction compared with TU-pre, denoted as TU-oppo-dir, may be identified, and the associated position of TU-diff-dir may be recoded as Pos-oppo-dir. e) In one example, at least one syntax indicating whether the real SBT information and the predicted information  are matched or not may be signalled, such that SBT information can be predictive coded. i. In one example, a first syntax (denote as SBT-new-Syntax0) indicating whether the real SBT split  direction and Dir-pre are matched (i.e., with the same value) or not may be signalled. 1) In one example, if the real SBT split direction and Dir-pre are matched, an indication A may be  signalled. Otherwise, an indication B may be signalled. a) In one example, indication A may be 0, and / or indication B may be 1. ii. In one example, a second syntax (denote as SBT-new-Syntax1) indicating whether the real SBT split  position and Pos-pre (or Pos-oppo-dir) are matched or not may be signalled. 1) In one example, if the real SBT split direction and Dir-pre are matched, then the real SBT split  position may be compared with Pos-pre, indication A may be signalled if they are matched, indication B may be signalled otherwise. a) In one example, alternatively, if real SBT split direction and Dir-pre are not matched, then  the real SBT split position may be compared with Pos-oppo-dir, indication A may be signalled if they are matched, indication B may be signalled otherwise. b) In one example, indication A may be 0, and / or indication B may be 1. iii. In one example, the syntax may be context-adaptive binary arithmetic coding (CABAC) -coded. f) In one example, at the decoder side, for a certain SBT split type, if the SBT information is predictive signalled,  a “tentative” non-zero TU may be created based on the parsed SBT-new-Syntax0 and / or SBT-new-Syntax1 value. i. In one example, SBT-new-Syntax0 and / or SBT-new-Syntax1 may be used as SBT direction and / or  position to generate at least one “tentative” non-zero TU and / or at least one “tentative” zero TU. 1) In one example, specifically, SBT-new-Syntax0 and / or SBT-new-Syntax1 may be used to generate  the information for the tentative TU, including but not limited to TU position, TU width and TU height. ii. In one example, all or partial syntax related to the real TU may be parsed by the tentative TU. g) In one example, at the decoder side, if the SBT information is predictive signalled, the tentative TU may be  adjusted to the real TU after the prediction signal of the current block is generated. i. In one example, after prediction signal is generated, the predicted SBT information (i.e., Dir-pre, Pos- pre and Pos-oppo-dir) may be derived in a similar way as described in c) and d) , then the real TU information / property (including real position, real size) may be derived accordingly. 1) In one example, if indication A is parsed for SBT-new-Syntax0, indicating real split direction is  the same as Dir-pre, then Dir-pre may be used to derive the real information / property (e.g., TU size) for non-zero TU. a) In one example, if Dir-pre is different from the split direction of the tentative non-zero TU,  the information / property of tentative TU may be adjusted to the real TU according to Dir-pre. b) In one example, if indication A is parsed for SBT-new-Syntax0, and indication A is parsed  for SBT-new-Syntax1, indicating real split position is the same as Pos-pre, then Pos-pre may be used to derive the real information / property (e.g., TU position) for non-zero TU. i. In one example, alternatively, if indication A is parsed for SBT-new-Syntax0, and  indication B is parsed for SBT-new-Syntax1, indicating real split position is different from Pos-pre, the information / property (e.g., TU position) of tentative TU may be adjusted to the real TU according to the contrary position of Pos-pre. 2) In one example, alternatively, if indication B is parsed for SBT-new-Syntax0, indicating real split  direction is different from Dir-pre, then the orthogonal direction relative to Dir-pre is used to derive the real information / property (e.g., TU size) for non-zero TU. a) In one example, if the orthogonal direction of Dir-pre is different from the split direction of  the tentative non-zero TU, the information / property of tentative TU may be adjusted to the real TU according to the orthogonal direction of Dir-pre. b) In one example, if indication B is parsed for SBT-new-Syntax0, and indication A is parsed  for SBT-new-Syntax1, indicating real split position is the same as Pos-oppo-dir, then Pos-oppo-dir may be used to derive the real information / property (e.g., TU position) for non-zero TU. i. In one example, alternatively, if indication B is parsed for SBT-new-Syntax0, and  indication B is parsed for SBT-new-Syntax1, indicating real split position is different from Pos-oppo-dir, the information / property (e.g., TU position) of tentative TU may be adjusted to the real TU according to the contrary position of Pos-oppo-dir.

[0205] The following general aspects may be applied to any of the foregoing described embodiments. 9. The implication of SBT information, e.g., split direction and SBT split position, may be slightly different for  different split types. For corner split type, the split direction may indicate whether non-zero TU locates in the right or left corner position, and / or split position may indicate whether non-zero TU locates in the up or bottom corner position. The terminologies mentioned above are applicable to both cases. 10. In above examples, the video unit may refer to the video unit may refer to color component / sub- picture / slice / tile / coding tree unit (CTU)  / CTU row / groups of CTU / coding unit (CU)  / prediction unit (PU)  / transform unit (TU)  / coding tree block (CTB)  / coding block (CB)  / prediction block (PB)  / transform block (TB)  / ablock / sub-block of a block / sub-region within a block / any other region that contains more than one sample or pixel. 11. Whether to and / or how to apply the disclosed methods above may be signaled at sequence level / group of  pictures level / picture level / slice level / tile group level, such as in sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header. 12. Whether and / or how to apply the above methods may depend on the following information: a) A message signaled in the DPS / SPS / VPS / PPS / APS / picture header / slice header / tile group header / Largest  coding unit (LCU)  / Coding unit (CU)  / LCU row / group of LCUs / TU / PU block / Video coding unit b) Position of CU / PU / TU / block / Video coding unit c) Block dimension of current block and / or its neighboring blocks d) Block shape of current block and / or its neighboring blocks e) coded mode of a block, e.g., IBC or non-IBC inter mode or non-IBC subblock mode f) Indication of the color format (such as 4: 2: 0, 4: 4: 4) g) Coding tree structure h) Slice / tile group type and / or picture type i) Color component (e.g., may be only applied on chroma components or luma component) j) Temporal layer ID k) Profiles / Levels / Tiers of a standard l) Whether current slice satisfies low-delay condition or not m) Whether current block belongs to screen content or not.

[0206] FIG. 32 is a block diagram showing an example video processing system 4000 in which various embodiments disclosed herein may be implemented. Various implementations may include some or all of the components of the system 4000. The system 4000 may include input 4002 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8-or 10-bit multi-component pixel values, or may be in a compressed or encoded format. The input 4002 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interface include wired interfaces such as Ethernet, passive optical network (PON) , etc. and wireless interfaces such as Wi-Fi or cellular interfaces.

[0207] The system 4000 may include a coding component 4004 that may implement the various coding or encoding methods described in the present disclosure. The coding component 4004 may reduce the average bitrate of video from the input 4002 to the output of the coding component 4004 to produce a coded representation of the video. The coding techniques are therefore sometimes called video compression or video transcoding techniques. The output of the coding component 4004 may be either stored, or transmitted via a communication connected, as represented by the component 4006. The stored or communicated bitstream (or coded) representation of the video received at the input 4002 may be used by a component 4008 for generating pixel values or displayable video that is sent to a display interface 4010. The process of generating user-viewable video from the bitstream representation is sometimes called video decompression. Furthermore, while certain video processing operations are referred to as “coding” operations or tools, it will be appreciated that the coding tools or operations are used at an encoder and corresponding decoding tools or operations that reverse the results of the coding will be performed by a decoder.

[0208] Examples of a peripheral bus interface or a display interface may include universal serial bus (USB) or high definition multimedia interface (HDMI) or DisplayPort, and so on. Examples of storage interfaces include serial advanced technology attachment (SATA) , peripheral component interconnect (PCI) , integrated drive electronics (IDE) interface, and the like. The embodiments described in the present disclosure may be embodied in various electronic devices such as mobile phones, laptops, smartphones or other devices that are capable of performing digital data processing and / or video display.

[0209] FIG. 33 is a block diagram of an example video processing apparatus 4100. The apparatus 4100 may be used to implement one or more of the methods described herein. The apparatus 4100 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, and so on. The apparatus 4100 may include one or more processors 4102, one or more memories 4104 and video processing circuitry 4106. The processor (s) 4102 may be configured to implement one or more methods described in the present disclosure. The memory (memories) 4104 may be used for storing data and code used for implementing the methods and embodiments described herein. The video processing circuitry 4106 may be used to implement, in hardware circuitry, some embodiments described in the present disclosure. In some embodiments, the video processing circuitry 4106 may be at least partly included in the processor 4102, e.g., a graphics co-processor.

[0210] FIG. 34 is a flowchart for an example method 4200 of video processing. The method 4200 determines to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) at step 4202. A conversion between a visual media data and a bitstream is based on the intra-predicted CU at step 4204. The conversion may include encoding at an encoder, decoding at a decoder, or combinations thereof.

[0211] It should be noted that the method 4200 can be implemented in an apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, such as video encoder 4400, video decoder 4500, and / or encoder 4600. In such a case, the instructions upon execution by the processor, cause the processor to perform the method 4200. Further, the method 4200 can be performed by a non-transitory computer readable medium comprising a computer program product for use by a video coding device. The computer program product comprises computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method 4200.

[0212] FIG. 35 is a block diagram that illustrates an example video coding system 4300 that may utilize the embodiments of this disclosure. The video coding system 4300 may include a source device 4310 and a destination device 4320. Source device 4310 generates encoded video data which may be referred to as a video encoding device. Destination device 4320 may decode the encoded video data generated by source device 4310 which may be referred to as a video decoding device.

[0213] Source device 4310 may include a video source 4312, a video encoder 4314, and an input / output (I / O) interface 4316. Video source 4312 may include a source such as a video capture device, an interface to receive video data from a video content provider, and / or a computer graphics system for generating video data, or a combination of such sources. The video data may comprise one or more pictures. Video encoder 4314 encodes the video data from video source 4312 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. I / O interface 4316 may include a modulator / demodulator (modem) and / or a transmitter. The encoded video data may be transmitted directly to destination device 4320 via I / O interface 4316 through network 4330. The encoded video data may also be stored onto a storage medium / server 4340 for access by destination device 4320.

[0214] Destination device 4320 may include an I / O interface 4326, a video decoder 4324, and a display device 4322. I / O interface 4326 may include a receiver and / or a modem. I / O interface 4326 may acquire encoded video data from the source device 4310 or the storage medium / server 4340. Video decoder 4324 may decode the encoded video data. Display device 4322 may display the decoded video data to a user. Display device 4322 may be integrated with the destination device 4320, or may be external to destination device 4320, which can be configured to interface with an external display device.

[0215] Video encoder 4314 and video decoder 4324 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVC) standard and other current and / or further standards.

[0216] FIG. 36 is a block diagram illustrating an example of video encoder 4400, which may be video encoder 4314 in the system 4300 illustrated in FIG. 35. Video encoder 4400 may be configured to perform any or all of the embodiments of this disclosure. The video encoder 4400 includes a plurality of functional components. The embodiments described in this disclosure may be shared among the various components of video encoder 4400. In some examples, a processor may be configured to perform any or all of the embodiments described in this disclosure.

[0217] The functional components of video encoder 4400 may include a partition unit 4401; a prediction unit 4402, which may include a mode select unit 4403, a motion estimation unit 4404, a motion compensation unit 4405, and an intra prediction unit 4406; a residual generation unit 4407; a transform processing unit 4408; a quantization unit 4409; an inverse quantization unit 4410; an inverse transform unit 4411; a reconstruction unit 4412; a buffer 4413; and an entropy encoding unit 4414.

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

[0219] Furthermore, some components, such as motion estimation unit 4404 and motion compensation unit 4405 may be highly integrated, but are represented in the example of video encoder 4400 separately for purposes of explanation.

[0220] Partition unit 4401 may partition a picture into one or more video blocks. Video encoder 4400 and video decoder 4500 may support various video block sizes.

[0221] Mode select unit 4403 may select one of the coding modes, intra or inter, e.g., based on error results, and provide the resulting intra or inter coded block to a residual generation unit 4407 to generate residual block data and to a reconstruction unit 4412 to reconstruct the encoded block for use as a reference picture. In some examples, mode select unit 4403 may select a combination of intra and inter prediction (CIIP) mode in which the prediction is based on an inter prediction signal and an intra prediction signal. Mode select unit 4403 may also select a resolution for a motion vector (e.g., a sub-pixel or integer pixel precision) for the block in the case of inter prediction.

[0222] To perform inter prediction on a current video block, motion estimation unit 4404 may generate motion information for the current video block by comparing one or more reference frames from buffer 4413 to the current video block. Motion compensation unit 4405 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from buffer 4413 other than the picture associated with the current video block.

[0223] Motion estimation unit 4404 and motion compensation unit 4405 may perform different operations for a current video block, for example, depending on whether the current video block is in an I slice, a P slice, or a B slice.

[0224] In some examples, motion estimation unit 4404 may perform uni-directional prediction for the current video block, and motion estimation unit 4404 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. Motion estimation unit 4404 may then generate a reference index that indicates the reference picture in list 0 or list 1 that contains the reference video block and a motion vector that indicates a spatial displacement between the current video block and the reference video block. Motion estimation unit 4404 may output the reference index, a prediction direction indicator, and the motion vector as the motion information of the current video block. Motion compensation unit 4405 may generate the predicted video block of the current block based on the reference video block indicated by the motion information of the current video block.

[0225] In other examples, motion estimation unit 4404 may perform bi-directional prediction for the current video block, motion estimation unit 4404 may search the reference pictures in list 0 for a reference video block for the current video block and may also search the reference pictures in list 1 for another reference video block for the current video block. Motion estimation unit 4404 may then generate reference indexes that indicate the reference pictures in list 0 and list 1 containing the reference video blocks and motion vectors that indicate spatial displacements between the reference video blocks and the current video block. Motion estimation unit 4404 may output the reference indexes and the motion vectors of the current video block as the motion information of the current video block. Motion compensation unit 4405 may generate the predicted video block of the current video block based on the reference video blocks indicated by the motion information of the current video block.

[0226] In some examples, motion estimation unit 4404 may output a full set of motion information for decoding processing of a decoder. In some examples, motion estimation unit 4404 may not output a full set of motion information for the current video. Rather, motion estimation unit 4404 may signal the motion information of the current video block with reference to the motion information of another video block. For example, motion estimation unit 4404 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.

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

[0228] In another example, motion estimation unit 4404 may identify, in a syntax structure associated with the current video block, another video block and a motion vector difference (MVD) . The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 4500 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.

[0229] As discussed above, video encoder 4400 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 4400 include advanced motion vector prediction (AMVP) and merge mode signaling.

[0230] Intra prediction unit 4406 may perform intra prediction on the current video block. When intra prediction unit 4406 performs intra prediction on the current video block, intra prediction unit 4406 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a predicted video block and various syntax elements.

[0231] Residual generation unit 4407 may generate residual data for the current video block by subtracting the predicted video block (s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks that correspond to different sample components of the samples in the current video block.

[0232] In other examples, there may be no residual data for the current video block for the current video block, for example in a skip mode, and residual generation unit 4407 may not perform the subtracting operation.

[0233] Transform processing unit 4408 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to a residual video block associated with the current video block.

[0234] After transform processing unit 4408 generates a transform coefficient video block associated with the current video block, quantization unit 4409 may 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.

[0235] Inverse quantization unit 4410 and inverse transform unit 4411 may apply inverse quantization and inverse transforms to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. Reconstruction unit 4412 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the prediction unit 4402 to produce a reconstructed video block associated with the current block for storage in the buffer 4413.

[0236] After reconstruction unit 4412 reconstructs the video block, the loop filtering operation may be performed to reduce video blocking artifacts in the video block.

[0237] Entropy encoding unit 4414 may receive data from other functional components of the video encoder 4400. When entropy encoding unit 4414 receives the data, entropy encoding unit 4414 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.

[0238] FIG. 37 is a block diagram illustrating an example of video decoder 4500 which may be video decoder 4324 in the system 4300 illustrated in FIG. 5. The video decoder 4500 may be configured to perform any or all of the embodiments of this disclosure. In the example shown, the video decoder 4500 includes a plurality of functional components. The embodiments described in this disclosure may be shared among the various components of the video decoder 4500. In some examples, a processor may be configured to perform any or all of the embodiments described in this disclosure.

[0239] In the example shown, video decoder 4500 includes an entropy decoding unit 4501, a motion compensation unit 4502, an intra prediction unit 4503, an inverse quantization unit 4504, an inverse transformation unit 4505, a reconstruction unit 4506, and a buffer 4507. Video decoder 4500 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 4400.

[0240] Entropy decoding unit 4501 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data) . Entropy decoding unit 4501 may decode the entropy coded video data, and from the entropy decoded video data, motion compensation unit 4502 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. Motion compensation unit 4502 may, for example, determine such information by performing the AMVP and merge mode.

[0241] Motion compensation unit 4502 may produce motion compensated blocks, possibly performing interpolation based on interpolation filters. Identifiers for interpolation filters to be used with sub-pixel precision may be included in the syntax elements.

[0242] Motion compensation unit 4502 may use interpolation filters as used by video encoder 4400 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. Motion compensation unit 4502 may determine the interpolation filters used by video encoder 4400 according to received syntax information and use the interpolation filters to produce predictive blocks.

[0243] Motion compensation unit 4502 may use some of the syntax information to determine sizes of blocks used to encode frame (s) and / or slice (s) of the encoded video sequence, partition information that describes how each macroblock of a picture of the encoded video sequence is partitioned, modes indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter coded block, and other information to decode the encoded video sequence.

[0244] Intra prediction unit 4503 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. Inverse quantization unit 4504 inverse quantizes, i.e., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 4501. Inverse transform unit 4505 applies an inverse transform.

[0245] Reconstruction unit 4506 may sum the residual blocks with the corresponding prediction blocks generated by motion compensation unit 4502 or intra prediction unit 4503 to form decoded blocks. If desired, a deblocking filter may also be applied to filter the decoded blocks in order to remove blockiness artifacts. The decoded video blocks are then stored in buffer 4507, which provides reference blocks for subsequent motion compensation / intra prediction and also produces decoded video for presentation on a display device.

[0246] FIG. 38 is a schematic diagram of an example encoder 4600. The encoder 4600 is suitable for implementing the techniques of VVC. The encoder 4600 includes three in-loop filters, namely a deblocking filter (DF) 4602, a sample adaptive offset (SAO) 4604, and an adaptive loop filter (ALF) 4606. Unlike the DF 4602, which uses predefined filters, the SAO 4604 and the ALF 4606 utilize the original samples of the current picture to reduce the mean square errors between the original samples and the reconstructed samples by adding an offset and by applying a finite impulse response (FIR) filter, respectively, with coded side information signaling the offsets and filter coefficients. The ALF 4606 is located at the last processing stage of each picture and can be regarded as a tool trying to catch and fix artifacts created by the previous stages.

[0247] The encoder 4600 further includes an intra prediction component 4608 and a motion estimation / compensation (ME / MC) component 4610 configured to receive input video. The intra prediction component 4608 is configured to perform intra prediction, while the ME / MC component 4610 is configured to utilize reference pictures obtained from a reference picture buffer 4612 to perform inter prediction. Residual blocks from inter prediction or intra prediction are fed into a transform (T) component 4614 and a quantization (Q) component 4616 to generate quantized residual transform coefficients, which are fed into an entropy coding component 4618. The entropy coding component 4618 entropy codes the prediction results and the quantized transform coefficients and transmits the same toward a video decoder (not shown) . Quantization components output from the quantization component 4616 may be fed into an inverse quantization (IQ) components 4620, an inverse transform component 4622, and a reconstruction (REC) component 4624. The REC component 4624 is able to output images to the DF 4602, the SAO 4604, and the ALF 4606 for filtering prior to those images being stored in the reference picture buffer 4612.

[0248] A listing of solutions preferred by some examples is provided next.

[0249] The following solutions show examples of embodiments discussed herein.

[0250] 1. A method for processing media data comprising: determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ; and performing a conversion between a visual media data and a bitstream based on the intra-predicted CU.

[0251] 2. The method of solution 1, wherein a CU is split into M subblocks or transform units (TUs) , where M is greater than or equal to 1, and wherein one or more of the subblocks or TUs has a residual.

[0252] 3. The method of any of solutions 1-2, wherein the residuals of at most N (M >= N >= 1) subblocks or TUs are coded, where M >= N >= 1, and residuals of other subblocks or TUs are set to zero.

[0253] 4. The method of any of solutions 1-3, wherein the residual of a non-zero-residual subblock or TU is transform-coded.

[0254] 5. The method of any of solutions 1-4, wherein the residual of a non-zero-residual subblock or TU is coded without transform.

[0255] 6. The method of any of solutions 1-5, wherein at least one transform is applied to a residual of a non-zero-residual subblock or TU.

[0256] 7. The method of any of solutions 1-6, wherein the transform is realized with a separable core, including but not limited to DCT or DST variants, or wherein the transform kernels are realized with a non-separable core, including but not limited to KLT or NSPT, or wherein multiple-pass transform may be applied to a non-zero-residual subblock or TU, or wherein at least one pass transform is a separable core including DCT or DST variants, or wherein at least one pass transform is non-separable including NSPT, KLT, or LFNST, or wherein at least one separable transform and at least one pass non-separable transform are performed sequentially.

[0257] 8. The method of any of solutions 1-7, wherein application of SBT to an intra-coded block depends on a pre-defined rule, or wherein the pre-defined rule is defined based on a type of video units, coding tools, or coding methods, or wherein the pre-defined rule is based on low-delay pictures, or wherein the pre-defined rule is based on temporal layer information, or wherein the pre-defined rule is based on slice type, or wherein the pre-defined rule is based on prediction method, or wherein the pre-defined rule is based on whether the CU is angular predicted, or wherein SBT is not be applied to an angular-predicted intra block, or wherein the pre-defined rule is based on block information, or combinations thereof.

[0258] 9. The method of any of solutions 1-8, wherein at least one syntax indicating whether SBT is applied to an intra-coded block is signalled.

[0259] 10. The method of any of solutions 1-9, wherein at least one block level intra-SBT syntax is signalled in the bitstream.

[0260] 11. The method of any of solutions 1-10, wherein at least one intra-SBT syntax in sequence level, group of pictures level, picture level, slice level, tile group level, including in sequence header, picture header, SPS, VPS, DPS, DCI, PPS, APS, slice header, or tile group header is signaled in the bitstream.

[0261] 12. The method of any of solutions 1-11, wherein whether an intra-SBT syntax is signaled or whether intra-SBT is applied depends on the value of at least one other block level syntax, or wherein whether an intra-SBT syntax is signaled or whether intra-SBT is applied depends on MTS index, or wherein no intra-SBT syntax is signaled and intra-SBT is not applied when MTS index equals certain values or satisfies certain conditions.

[0262] 13. The method of any of solutions 1-12, wherein which primary transform kernel is used for an intra-SBT-coded block is dependent on SBT information including split direction or position.

[0263] 14. The method of any of solutions 1-13, wherein for an intra-SBT-coded block, the primary transform kernel for a certain subblock or TU is specified by the SBT index, or wherein for different SBT indices indicating split direction or position) , different primary transform kernels are used, or wherein a same primary transform kernel derivation method of inter SBT is used by an intra-SBT-coded block, or wherein when LFNST / NSPT is applied to an intra-SBT-coded block, a different primary transform kernels is used for a certain subblock or TU, or wherein which primary transform kernel is used does not depend on the SBT index, or wherein a fixed primary transform kernel is used when LFNST / NSPT is applied to an intra-SBT-coded block.

[0264] 15. The method of any of solutions 1-14, wherein a different LFNST or NSPT kernel index deviation method is used when LFNST or NSPT is applied to an intra-SBT-coded block.

[0265] 16. The method of any of solutions 1-15, wherein for an intra-SBT-coded block, the LFNST or NSPT kernel index is derived by analyzing the prediction signal in the to-be-coded subblock or TU region, or wherein the HOG or accumulated amplitudes of the gradient are built based on the prediction signal within the to-be-coded subblock or TU region and the direction corresponds to the highest histogram is used to derive LFNST or NSPT kernel index.

[0266] 17. The method of any of solutions 1-16, wherein coefficients of an intra-SBT-coded block are used to perform sign prediction and the difference between the real sign and predicted sign is signalled.

[0267] 18. The method of any of solutions 1-17, wherein whether intra-SBT is applied depends on the color format or color components.

[0268] 19. The method of any of solutions 1-18, wherein intra-SBT is only applied to the luma component, or wherein intra-SBT is only applied to a chroma component, or wherein different transform kernels are applied for different color components for non-zero-residual subblock or TU coding.

[0269] 20. The method of any of solutions 1-19, wherein a video unit refers to a color component, sub-picture, slice, tile, coding tree unit (CTU) , CTU row, groups of CTU, coding unit (CU) , prediction unit (PU) , transform unit (TU) , coding tree block (CTB) , coding block (CB) , prediction block (PB) , transform block (TB) , a block, sub-block of a block, sub-region within a block, or any other region that contains more than one sample or pixel.

[0270] 21. The method of any of solutions 1-20, wherein application is signaled at sequence level, group of pictures level, picture level, slice level, or tile group level, including in sequence header, picture header, SPS, VPS, DPS, DCI, PPS, APS, slice header, or tile group header.

[0271] 22. The method of any of solutions 1-21, wherein application depends on: a message signaled in the DPS, SPS, VPS, PPS, APS, picture header, slice header, tile group header, Largest coding unit (LCU) , Coding unit (CU) , LCU row, group of LCUs, TU, PU block, Video coding unit, or a position of CU, PU, TU, block, or video coding unit, or block dimension of current block or neighboring blocks, or block shape of the current block or neighboring blocks, or coded mode of a block, or indication of the color format, or coding tree structure, or slice or tile group type or picture type, or color component, or temporal layer ID, or profiles, Levels, or Tiers of a standard, whether a current slice satisfies low-delay condition, or whether current block belongs to screen content.

[0272] 23. An apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of solutions 1-22.

[0273] 24. A non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of solutions 1-22.

[0274] 25. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ; and generating a bitstream based on the determining.

[0275] 26. A method for storing bitstream of a video comprising: determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ; generating a bitstream based on the determining; and storing the bitstream in a non-transitory computer-readable recording medium.

[0276] 27. A method, apparatus, or system described in the present disclosure.

[0277] In the solutions described herein, an encoder may conform to the format rule by producing a coded representation according to the format rule. In the solutions described herein, a decoder may use the format rule to parse syntax elements in the coded representation with the knowledge of presence and absence of syntax elements according to the format rule to produce decoded video.

[0278] In the present disclosure, the term “video processing” may refer to video encoding, video decoding, video compression or video decompression. For example, video compression algorithms may be applied during conversion from pixel representation of a video to a corresponding bitstream representation or vice versa. The bitstream representation of a current video block may, for example, correspond to bits that are either co-located or spread in different places within the bitstream, as is defined by the syntax. For example, a macroblock may be encoded in terms of transformed and coded error residual values and also using bits in headers and other fields in the bitstream. Furthermore, during conversion, a decoder may parse a bitstream with the knowledge that some fields may be present, or absent, based on the determination, as is described in the above solutions. Similarly, an encoder may determine that certain syntax fields are or are not to be included and generate the coded representation accordingly by including or excluding the syntax fields from the coded representation.

[0279] The disclosed and other solutions, examples, embodiments, modules and the functional operations described in this disclosure can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this disclosure and their structural equivalents, or in combinations of one or more of them. The disclosed and other embodiments can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer readable medium for execution by, or to control the operation of, data processing apparatus. The computer readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter effecting a machine-readable propagated signal, or a combination of one or more them. The term “data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. A propagated signal is an artificially generated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus.

[0280] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document) , in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code) . A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

[0281] The processes and logic flows described in this disclosure can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., a field-programmable gate array (FPGA) or an application-specific integrated circuit (ASIC) .

[0282] Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read only memory or a random-access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., erasable programmable read-only memory (EPROM) , electrically erasable programmable read-only memory (EEPROM) , and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and compact disc read-only memory (CD ROM) and Digital versatile disc-read only memory (DVD-ROM) disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

[0283] While the present disclosure contains many specifics, these should not be construed as limitations on the scope of any subject matter or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of the present disclosure. Certain features that are described in the present disclosure in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.

[0284] Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Moreover, the separation of various system components in the embodiments described in the present disclosure should not be understood as requiring such separation in all embodiments.

[0285] Only a few implementations and examples are described and other implementations, enhancements and variations can be made based on what is described and illustrated in the present disclosure.

[0286] A first component is directly coupled to a second component when there are no intervening components, except for a line, a trace, or another medium between the first component and the second component. The first component is indirectly coupled to the second component when there are intervening components other than a line, a trace, or another medium between the first component and the second component. The term “coupled” and its variants include both directly coupled and indirectly coupled. The use of the term “about” means a range including ±10%of the subsequent number unless otherwise stated.

[0287] While several embodiments have been provided in the present disclosure, it should be understood that the disclosed systems and methods might be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are to be considered as illustrative and not restrictive, and the intention is not to be limited to the details given herein. For example, the various elements or components may be combined or integrated in another system or certain features may be omitted, or not implemented.

[0288] In addition, techniques, systems, subsystems, and methods described and illustrated in the various embodiments as discrete or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items shown or discussed as coupled may be directly connected or may be indirectly coupled or communicating through some interface, device, or intermediate component whether electrically, mechanically, or otherwise. Other examples of changes, substitutions, and alterations are ascertainable by one skilled in the art and could be made without departing from the spirit and scope disclosed herein.

Claims

1.A method for processing media data, comprising:determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ; andperforming a conversion between a visual media data and a bitstream based on the intra-predicted CU.2.The method of claim 1, wherein a CU is split into M subblocks or transform units (TUs) , where M is greater than or equal to 1, and wherein one or more of the subblocks or TUs has a residual.3.The method of any of claims 1-2, wherein the residuals of at most N subblocks or TUs are coded, where M >= N >= 1, and residuals of subblocks or TUs other than the N subblocks or Tus are set to zero.4.The method of any of claims 1-3, wherein a residual of a non-zero-residual subblock or TU is transform-coded.5.The method of any of claims 1-4, wherein the residual of a non-zero-residual subblock or TU is coded without transform.6.The method of any of claims 1-5, wherein at least one transform is applied to a residual of a non-zero-residual subblock or TU.7.The method of any of claims 1-6, wherein the transform is realized with a separable core, including discrete cosine transform (DCT) or discrete sine transform (DST) variants.8.The method of any of claims 1-7, wherein transform kernels are realized with a non-separable core, including a Karhunen-Loeve transform (KLT) or non-separable primary transform (NSPT) .9.The method of any of claims 1-8, wherein a multiple-pass transform is applied to a non-zero-residual subblock or TU, orwherein at least one pass transform is a separable core including DCT or DST variants, orwherein at least one pass transform is non-separable including an NSPT, a KLT, or a low-frequency non-separable transform (LFNST) , orwherein at least one separable transform and at least one pass non-separable transform are performed sequentially.10.The method of any of claims 1-9, wherein application of SBT to an intra-coded block depends on a pre-defined rule.11.The method of any of claims 1-10, wherein the pre-defined rule is defined based on a type of video units, coding tools, or coding methods, orwherein the pre-defined rule is based on low-delay pictures, orwherein the pre-defined rule is based on temporal layer information, orwherein the pre-defined rule is based on slice type, or wherein the pre-defined rule is based on prediction method, orwherein the pre-defined rule is based on whether the CU is angular predicted, orwherein SBT is not applied to an angular-predicted intra block, orwherein the pre-defined rule is based on block information.12.The method of any of claims 1-11, wherein at least one syntax element indicating whether SBT is applied to an intra-coded block is signalled.13.The method of any of claims 1-12, wherein at least one block level intra-SBT syntax element is signalled in the bitstream.14.The method of any of claims 1-13, wherein at least one intra-SBT syntax element in sequence level, group of pictures level, picture level, slice level, tile group level, including in sequence header, picture header, sequence parameter set (SPS) , video parameter set (VPS) , decoding parameter set (DPS) , decoding capability information (DCI) , picture parameter set (PPS) , adaptation parameter set (APS) , slice header, or tile group header is signaled in the bitstream.15.The method of any of claims 1-14, wherein whether an intra-SBT syntax element is signaled or whether intra-SBT is applied depends on a value of at least one other block level syntax element, orwherein whether an intra-SBT syntax element is signaled or whether intra-SBT is applied depends on a multiple transform selection (MTS) index, orwherein no intra-SBT syntax element is signaled and intra-SBT is not applied when the MTS index equals a particular value values or satisfies a condition.16.The method of any of claims 1-15, wherein which primary transform kernel is used for an intra-SBT-coded block is dependent on SBT information including split direction or position.17.The method of any of claims 1-16, wherein for an intra-SBT-coded block, a primary transform kernel for a certain subblock or TU is specified by an SBT index, orwherein different primary transform kernels are used for different SBT indices indicating split direction or position, orwherein a same primary transform kernel derivation method of inter SBT is used by an intra-SBT-coded block, orwherein when LFNST and / or NSPT is applied to an intra-SBT-coded block, a different primary transform kernel is used for a certain subblock or TU, orwherein which primary transform kernel is used does not depend on the SBT index, orwherein a fixed primary transform kernel is used when LFNST and / or NSPT is applied to an intra-SBT-coded block.18.The method of any of claims 1-17, wherein a different LFNST or NSPT kernel index deviation method is used when LFNST or NSPT is applied to an intra-SBT-coded block.19.The method of any of claims 1-18, wherein for an intra-SBT-coded block, the LFNST or NSPT kernel index is derived by analyzing a prediction signal in the to-be-coded subblock or TU region, orwherein a histogram of oriented gradients (HOG) or accumulated amplitudes of gradients are built based on the prediction signal within the to-be-coded subblock or TU region and a direction corresponds to a highest histogram that is used to derive the LFNST or NSPT kernel index.20.The method of any of claims 1-19, wherein coefficients of an intra-SBT-coded block are used to perform sign prediction and a difference between a real sign and a predicted sign is signalled.21.The method of any of claims 1-20, wherein whether intra-SBT is applied depends on a color format or color components.22.The method of any of claims 1-21, wherein intra-SBT is only applied to a luma component, orwherein intra-SBT is only applied to a chroma component, orwherein different transform kernels are applied for different color components for non-zero-residual subblock or TU coding.23.The method of any of claims 1-22, wherein the conversion includes encoding the visual media data into the bitstream.24.The method of any of claims 1-22, wherein the conversion includes decoding the visual media data from the bitstream.25.An apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of claims 1-24.26.A non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of claims 1-24.27.A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ; andgenerating a bitstream based on the determining.28.A method for storing bitstream of a video, comprising:determining to apply a sub-block transform (SBT) to an intra-predicted coding unit (CU) ;generating a bitstream based on the determining; andstoring the bitstream in a non-transitory computer-readable recording medium.

Citation Information

Patent Citations

  • Method and Apparatus of Overlapped Block Motion Compensation in Video Coding System

    US20230328278A1

  • Method and device for processing video signal

    WO2020162732A1

  • Sub-block based use of transform SKIP mode

    WO2020233664A1

  • Video decoding device and video coding device

    WO2023162920A1