[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2021190594A1 - Implicit determination of transform skip mode - Google Patents

Implicit determination of transform skip mode Download PDF

Info

Publication number
WO2021190594A1
WO2021190594A1 PCT/CN2021/082963 CN2021082963W WO2021190594A1 WO 2021190594 A1 WO2021190594 A1 WO 2021190594A1 CN 2021082963 W CN2021082963 W CN 2021082963W WO 2021190594 A1 WO2021190594 A1 WO 2021190594A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
transform
block
mode
bitstream
Prior art date
Application number
PCT/CN2021/082963
Other languages
French (fr)
Inventor
Li Zhang
Kai Zhang
Yuhuai ZHANG
Hongbin Liu
Yue Wang
Siwei Ma
Original Assignee
Beijing Bytedance Network Technology Co., Ltd.
Bytedance Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bytedance Network Technology Co., Ltd., Bytedance Inc. filed Critical Beijing Bytedance Network Technology Co., Ltd.
Priority to CN202180024661.6A priority Critical patent/CN115699737A/en
Publication of WO2021190594A1 publication Critical patent/WO2021190594A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Definitions

  • This patent document relates to image and video coding and decoding.
  • Digital video accounts for the largest bandwidth use on the internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, it is expected that the bandwidth demand for digital video usage will continue to grow.
  • the present document discloses techniques that can be used by video encoders and decoders for processing coded representation of video using control information useful for decoding of the coded representation.
  • a video processing method includes performing a conversion between a video and a bitstream of the video according to a rule.
  • the rule specifies that usage of an identity transform mode for the conversion is indicated in at least a first video unit level and a second video unit level.
  • a video processing method includes performing a conversion between a video block of a video and a bitstream of the video according to a rule.
  • the rule specifies that a syntax element in a video unit level is used to indicate an allowed transform set for the conversion.
  • a video processing method includes performing a conversion between a video block of a video and a bitstream of the video according to a rule.
  • the rule specifies that usage of an identity transform mode for the conversion of the video block is determined based on a function associated with an energy of representative coefficients of one or more representative blocks of the video.
  • a video processing method includes making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination.
  • the rule specifies a relationship between the determination and representative coefficients from decoded coefficients of one or more representative blocks of the video.
  • another video processing method includes making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination.
  • the rule specifies a relationship between the determination and decoded luma coefficients of the video block.
  • another video processing method includes making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination.
  • the rule specifies a relationship between the determination and a value V associates with representative coefficients of decoded coefficients or a representative block.
  • another video processing method includes determining that one or more syntax fields are present in a coded representation of a video where the video contains one or more video blocks; making a determination, based on the one or more syntax fields, whether a horizontal or a vertical identity transform is enabled for video blocks in the video.
  • another video processing method includes making a first determination regarding whether use of an identity transform is enabled for a conversion between a video block of a video and a coded representation of the video; making a second determination regarding whether a zero-out operation is enabled during the conversion; and performing the conversion based on the first determination and the second determination.
  • another video processing method includes performing a conversion between a video block of a video and a coded representation of the video; where the video block is represented in the coded representation as a coded block, where non-zero coefficients of the coded block are restricted to be within one or more sub-regions; and where an identity transform is applied for generating the coded block.
  • a video encoder apparatus comprising a processor configured to implement above-described methods.
  • a video decoder apparatus comprising a processor configured to implement above-described methods.
  • a computer readable medium having code stored thereon is disclose.
  • the code embodies one of the methods described herein in the form of processor-executable code.
  • FIG. 1 shows an example video encoder block diagram
  • FIG. 2 shows an example of 67 intra prediction modes.
  • FIG. 3A shows an example of reference samples for wide-angular intra prediction
  • FIG. 3B shows another example of reference samples for wide-angular intra prediction.
  • FIG. 4 illustrates a problem of discontinuity in case of directions beyond 45 degree.
  • FIG. 5A shows an example definition of samples used by PDPC applied to diagonal and adjacent angular intra modes.
  • FIG. 5B shows another example definition of samples used by PDPC applied to diagonal and adjacent angular intra modes.
  • FIG. 5C shows another example definition of samples used by PDPC applied to diagonal and adjacent angular intra modes.
  • FIG. 5D show yet another example definition of samples used by PDPC applied to diagonal and adjacent angular intra modes.
  • FIG. 6 shows an example of division of 4 ⁇ 8 and 8 ⁇ 4 blocks.
  • FIG. 7 shows an example of division of all blocks except 4 ⁇ 8, 8 ⁇ 4 and 4 ⁇ 4.
  • FIG. 8 shows an example of a secondary transform in JEM.
  • FIG. 9 shows an example of reduced secondary transform LFNST.
  • FIG. 10A shows an example of a forward reduced transform.
  • FIG. 10B shows an example of an invert reduced transform.
  • FIG. 11 shows an example of forward LFNST8x8 process with 16x48 matrix.
  • FIG. 12 illustrates an example of scanning position 17 to 64 for non-zero element.
  • FIG. 13 is an example Illustration of sub-block transform modes SBT-V and SBT-H.
  • FIG. 14A illustrates an example of Scan region based Coefficient Coding (SRCC) .
  • SRCC Scan region based Coefficient Coding
  • FIG. 14B illustrates another example of Scan region based Coefficient Coding (SRCC) .
  • SRCC Scan region based Coefficient Coding
  • FIG. 15A illustrates an example restriction of IST according to non-zero coefficients’ positions.
  • FIG. 15B illustrates another example restriction of IST according to non-zero coefficients’ positions.
  • FIG. 16A shows an example zero-out type of TS coded blocks.
  • FIG. 16B shows another example zero-out type of TS coded blocks.
  • FIG. 16C shows another example zero-out type of TS coded blocks.
  • FIG. 16D shows yet another zero-out type of TS coded blocks.
  • FIG. 17 is a block diagram of an example video processing system.
  • FIG. 18 is a block diagram that illustrates a video coding system in accordance with some embodiments of the present disclosure.
  • FIG. 19 is a block diagram that illustrates an encoder in accordance with some embodiments of the present disclosure.
  • FIG. 20 is a block diagram that illustrates a decoder in accordance with some embodiments of the present disclosure.
  • FIG. 21 is a block diagram of a video processing apparatus.
  • FIG. 22 is a flowchart for an example method of video processing.
  • FIG. 23 is a flowchart representation of a method for video processing in accordance with the present technology.
  • FIG. 24 is a flowchart representation of another method for video processing in accordance with the present technology.
  • FIG. 25 is a flowchart representation of yet another method for video processing in accordance with the present technology.
  • This document is related to video coding technologies. Specifically, it is related to transform skip mode and transform types (e.g., including identity transform) in video coding. It may be applied to the existing video coding standard like HEVC, or the standard (Versatile Video Coding) to be finalized. It may be also applicable to future video coding standards or video codec.
  • transform skip mode and transform types e.g., including identity transform
  • transform types e.g., including identity transform
  • Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO/IEC standards.
  • the ITU-T produced H. 261 and H. 263, ISO/IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H. 262/MPEG-2 Video and H. 264/MPEG-4 Advanced Video Coding (AVC) and H. 265/HEVC standards.
  • AVC H. 264/MPEG-4 Advanced Video Coding
  • H. 265/HEVC High Efficiency Video Coding
  • the video coding standards are based on the hybrid video coding structure where temporal prediction plus transform coding are utilized.
  • Joint Video Exploration Team JVET was founded by VCEG and MPEG jointly in 2015.
  • JVET Joint Exploration Model
  • FIG. 1 shows an example ofencoder block diagram of VVC, which contains three in-loop filtering blocks: deblocking filter (DF) , sample adaptive offset (SAO) and ALF.
  • DF deblocking filter
  • SAO sample adaptive offset
  • ALF 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.
  • FIR finite impulse response
  • ALF 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.
  • the number of directional intra modes is extended from 33, as used in HEVC, to 65.
  • the additional directional modes are depicted as red dotted arrows in FIG. 2, and the planar and DC modes remain the same.
  • These denser directional intra prediction modes apply for all block sizes and for both luma and chroma intra predictions.
  • Conventional angular intra prediction directions are defined from 45 degrees to -135 degrees in clockwise direction as shown in FIG. 2.
  • VTM2 several conventional angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes for the non-square blocks.
  • the replaced modes are signaled using the original method and remapped to the indexes of wide angular modes after parsing.
  • the total number of intra prediction modes is unchanged, e.g., 67, and the intra mode coding is unchanged.
  • every intra-coded block has a square shape and the length of each of its side is a power of 2. Thus, no division operations are required to generate an intra-predictor using DC mode.
  • blocks can have a rectangular shape that necessitates the use of a division operation per block in the general case. To avoid division operations for DC prediction, only the longer side is used to compute the average for non-square blocks.
  • Conventional angular intra prediction directions are defined from 45 degrees to -135 degrees in clockwise direction.
  • VTM2 several conventional angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes for non-square blocks.
  • the replaced modes are signaled using the original method and remapped to the indexes of wide angular modes after parsing.
  • the total number of intra prediction modes for a certain block is unchanged, e.g., 67, and the intra mode coding is unchanged.
  • top reference with length 2W+1, and the left reference with length 2H+1 are defined as shown in FIG. 3A-3B.
  • the mode number of replaced mode in wide-angular direction mode is dependent on the aspect ratio of a block.
  • the replaced intra prediction modes are illustrated in Table 1.
  • two vertically-adjacent predicted samples may use two non-adjacent reference samples in the case of wide-angle intra prediction.
  • low-pass reference samples filter and side smoothing are applied to the wide-angle prediction to reduce the negative effect of the increased gap ⁇ p ⁇ .
  • PDPC position dependent intra prediction combination
  • PDPC is an intra prediction method which invokes a combination of the un-filtered boundary reference samples and HEVC style intra prediction with filtered boundary reference samples.
  • PDPC is applied to the following intra modes without signaling: planar, DC, horizontal, vertical, bottom-left angular mode and its eight adjacent angular modes, and top-right angular mode and its eight adjacent angular modes.
  • R x, -1 , R -1, y represent the reference samples located at the top and left of current sample (x, y) , respectively, and R -1, -1 represents the reference sample located at the top-left corner of the current block.
  • FIG. 5A-5D illustrate the definition of reference samples (R x, -1 , R -1, y and R -1, -1 ) for PDPC applied over various prediction modes.
  • the prediction sample pred (x’, y’) is located at (x’, y’) within the prediction block.
  • FIG. 5A shows a diagonal top-right mode.
  • FIG. 5B shows a diagonal bottom-left mode.
  • FIG. 5C shows an adjacent diagonal top-right mode.
  • FIG. 5D shows an adjacent diagonal bottom-left mode.
  • the PDPC weights are dependent on prediction modes and are shown in Table 2.
  • ISP Intra subblock partitioning
  • ISP is proposed, which divides luma intra-predicted blocks vertically or horizontally into 2 or 4 sub-partitions depending on the block size dimensions, as shown in Table 3.
  • FIG. 6 and FIG. 7 show examples of the two possibilities. All sub-partitions fulfill the condition of having at least 16 samples.
  • Table3 Number of sub-partitions depending on the block size.
  • a residual signal is generated by entropy decoding the coefficients sent by the encoder and then invert quantizing and invert transforming them. Then, the sub-partition is intra predicted and finally the corresponding reconstructed samples are obtained by adding the residual signal to the prediction signal. Therefore, the reconstructed values of each sub-partition will be available to generate the prediction of the next one, which will repeat the process and so on. All sub-partitions share the same intra mode.
  • the first sub-partition to be processed is the one containing the top-left sample of the CU and then continuing downwards (horizontal split) or rightwards (vertical split) .
  • reference samples used to generate the sub-partitions prediction signals are only located at the left and above sides of the lines.
  • the reverse processing order either starts with the sub-partition containing the bottom-left sample of the CU and continues upwards or starts with sub-partition containing the top-right sample of the CU and continues leftwards.
  • 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 4 shows the basis functions of the selected DST/DCT.
  • MTS There are two ways to enable MTS, one is explicit MTS; and the other is implicit MTS.
  • Implicit MTS is a recent tool in VVC.
  • the variable implicitMtsEnabled is derived as follows:
  • variable implicitMtsEnabled is derived as follows:
  • IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT (that is, ISP is enabled)
  • cu_sbt_flag is equal to 1 (that is, ISP is enabled) and Max (nTbW, nTbH) is less than or equal to 32
  • sps_explicit_mts_intra_enabled_flag is equal to 0 (that is, explicity MTS is disabled) and CuPredMode [0] [xTbY] [yTbY] is equal to MODE_INTRA and lfnst_idx [x0] [y0] is equal to 0 and intra_mip_flag [x0] [y0] is equal to 0
  • implicitMtsEnabled is set equal to 0.
  • variable trTypeHor specifying the horizontal transform kernel and the variable trTypeVer specifying the vertical transform kernel are derived as follows:
  • trTypeHor and trTypeVer are set equal to 0 (e.g., DCT2) .
  • IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT and lfnst_idx is not equal to 0
  • trTypeHor and trTypeVer are specified in Table 40 depending on cu_sbt_horizontal_flag and cu_sbt_pos_flag.
  • trTypeHor and trTypeVer are specified in Table 39 depending on mts_idx.
  • nonZeroW and nonZeroH are derived as follows:
  • nonZeroW Min (nTbW, (trTypeHor>0) ? 16: 32) (1192)
  • nonZeroH Min (nTbH, (trTypeVer>0) ? 16: 32) (1193)
  • one flag is used to specify whether explicit MTS for intra/inter is present in a bitstream.
  • two separate enabling flags are specified at SPS level for intra and inter, respectively to indicate whether explicit MTS is enabled.
  • a CU level transform index may be signaled to indicate whether MTS is applied or not.
  • MTS is applied only for luma.
  • the MTS CU level index (denoted by mts_idx) is signaled when the following conditions are satisfied.
  • 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.
  • the residual of a block can be coded with transform skip mode.
  • the transform skip flag is not signaled when the CU level MTS_CU_flag is not equal to zero.
  • the block size limitation for transform skip is the same to that for MTS in JEM4, which indicate that transform skip is applicable for a CU when both block width and height are equal to or less than 32.
  • VTM8 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 of blocks with DCT2 transform applied are zeroed out for the transform blocks with size (width or height, orboth width and height) no smaller than 64, so that only the lower-frequency coefficients are retained, all other coefficients are forced to be zeros without being signaled.
  • size width or height, orboth width and height
  • High frequency transform coefficients of blocks with DCT8 or DST7 transform applied are zeroed out for the transform blocks with size (width or height, or both width and height) no smaller than 32, so that only the lower-frequency coefficients are retained, all other coefficients are forced to be zeros without being signaled.
  • size width or height, or both width and height
  • secondary transform is applied between forward primary transform and quantization (at encoder) and between de-quantization and invert primary transform (at decoder side) .
  • 4x4 (or 8x8) secondary transform is performed depends on block size.
  • 4x4 secondary transform is applied for small blocks (e.g., min (width, height) ⁇ 8) and 8x8 secondary transform is applied for larger blocks (e.g., min (width, height) > 4) per 8x8 block.
  • non-separable transform Application of a non-separable transform is described as follows using input as an example. To apply the non-separable transform, the 4x4 input block X
  • the non-separable transform is calculated as where indicates the transform coefficient vector, and Tis 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 index will be placed with the smaller scanning index in the 4x4 coefficient block.
  • the mapping from the intra prediction mode to the transform set is pre-defined.
  • the selected non-separable secondary transform candidate is further specified by the explicitly signaled secondary transform index.
  • the index is signaled in a bit-stream once per Intra CU after transform coefficients.
  • the LFNST was introduced and 4 transform set (instead of 35 transform sets) mapping has been used in some embodiments.
  • 16x64 may further be reduced to 16x48
  • 16x16 matrices are employed for 8x8 and 4x4 blocks, respectively.
  • the 16x64 (may further be reduced to 16x48) transform is denoted as LFNST8x8 and the 16x16 one as LFNST4x4.
  • FIG. 9 shows an example of LFNST.
  • RT Reduced Transform
  • the RT matrix is an R ⁇ N matrix as follows:
  • the invert transform matrix for RT is the transpose of its forward transform.
  • the forward and invert RT are depicted in FIGS. 10A, 10B.
  • the LFNST8x8 with a reduction factor of 4 (1/4 size) is applied.
  • 64x64 which is conventional 8x8 non-separable transform matrix size
  • 16x64 direct matrix is used instead of 64x64, which is conventional 8x8 non-separable transform matrix size.
  • the 64 ⁇ 16 invert LFNST matrix is used at the decoder side to generate core (primary) transform coefficients in 8 ⁇ 8 top-left regions.
  • the forward LFNST8x8 uses 16 ⁇ 64 (or 8x64 for 8x8 block) matrices so that it produces non-zero coefficients only in the top-left 4 ⁇ 4 region within the given 8 ⁇ 8 region. In other words, if LFNST is applied then the 8 ⁇ 8 region except the top-left 4 ⁇ 4 region will have only zero coefficients.
  • 16x16 (or 8x16 for 4x4 block) direct matrix multiplication is applied for LFNST4x4.
  • An invert LFNST is conditionally applied when the following two conditions are satisfied:
  • width (W) and height (H) of a transform coefficient block is greater than 4, then the LFNST8x8 is applied to the top-left 8 ⁇ 8 region of the transform coefficient block. Otherwise, the LFNST4x4 is applied on the top-left min (8, W) ⁇ min (8, H) region of the transform coefficient block.
  • LFNST index is equal to 0, LFNST is not applied. Otherwise, LFNST is applied, of which kernel is chosen with the LFNST index.
  • LFNST selection method and coding of the LFNST index are explained later.
  • 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.
  • ISP Intra Sub-Partitions
  • ALFNST matrix is chosen from four transform sets, each of which consists of two transforms. Which transform set is applied is determined from intra prediction mode as the following:
  • transform set 0 is selected.
  • IntraPredMode The index to access the Table, denoted as IntraPredMode, have a range of [-14, 83] , which is a transformed mode index used for wide angle intra prediction.
  • 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 (FIG. 11) .
  • any coefficient in the 4 ⁇ 4 sub-block may be non-zero. However, it is constrained that in some cases, some coefficients in the 4 ⁇ 4 sub-block must be zero before invert LFNST is applied on the sub-block.
  • nonZeroSize be a variable. It is required that any coefficient with the index no smaller than nonZeroSize when it is rearranged into a 1-D array before the invert LFNST must be zero.
  • nonZeroSize when the current block size is 4 ⁇ 4 or 8 ⁇ 8, nonZeroSize is set equal to 8. For other block dimensions, nonZeroSize is set equal to 16.
  • Affine linear weighted intra prediction (ALWIP, a.k.a. Matrix based intra prediction)
  • Affine linear weighted intra prediction (ALWIP, a.k.a. Matrix based intra prediction (MIP) ) is used in some embodiments.
  • test 1 ALWIP is designed with a memory restriction of 8K bytes and at most 4 multiplications per sample.
  • Test 2 is similar to test 1, but further simplifies the design in terms of memory requirement and model architecture.
  • cu_sbt_flag may be signaled to indicate whether the whole residual block or a sub-part of the residual block is decoded.
  • inter MTS information is further parsed to determine the transform type of the CU.
  • a part of the residual block is coded with inferred adaptive transform and the other part of the residual block is zeroed out.
  • the SBT is not applied to the combined inter-intra mode.
  • sub-block transform position-dependent transform 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. 13.
  • the horizontal and vertical transforms for SBT-V position 0 is DCT-8 and DST-7, respectively.
  • the sub-block transform jointly specifies the TU tiling, cbf, and horizontal and vertical transforms of a residual block, which maybe considered a syntax shortcut for the cases that the major residual of a block is at one side of the block.
  • SRCC has been adopted into AVS-3.
  • SRCC a bottom-right position (SRx, SRy) as shown in FIGS. 14A-14B is signaled, and only coefficients inside a rectangle with four corners (0, 0) , (SRx, 0) , (0, SRy) , (SRx, SRy) are scanned and signaled. All coefficients out of the rectangle are zero.
  • the proposed method is applied to luma component of intra coded blocks excluding those blocks coded with DT, and the allowed block sizes are from 4 ⁇ 4 to 32 ⁇ 32.
  • the transform type is hidden in the transform coefficients. Specifically, the parity of the number of significant coefficients (e.g., non-zero coefficients) in one block is employed to represent the transform types. Odd number indicates DST-VII is applied, while even number indicates DCT-II is applied.
  • each non-zero coefficient needs checking. IST is disallowed when either x-or y-coordinate of one non-zero coefficient position is no smaller than 16.
  • TS mode in VVC is signaled in block level.
  • DCT2 and DST7 are working well for residual blocks in camera captured sequences while for videos with screen content, transform skip (TS) mode is more frequently used compared to DST7. How to determine the usage of TS mode in a more efficient way needs to be studied.
  • VVC the maximum allowed TS block size is set to 32 ⁇ 32. How to support TS for large blocks needs to be further studied.
  • min (x, y) returns the smaller one of x and y.
  • IT horizontal and/or vertical identity transform
  • TS transform skip
  • the ‘block’ may be a transform unit (TU) /prediction unit (PU) /coding unit (CU) /transform block (TB) /prediction block (PB) /coding block (CB) .
  • the TU/PU/CU may include one or multiple color components, such as only luma component for the dual tree partitioning and current coded color component is luma; and two chroma components for the dual tree partitioning and current coded color component is chroma; or three color components for the single tree case.
  • the decoded coefficients may be associated with one or multiple representative blocks in the same color component or different color components to the current firstblock.
  • the representative block is the first block, and the decoded coefficients associated with the first block are used to determine the usage of IT on the first block.
  • the determination on the usage of IT to the first block may depend on the decoded coefficients of multiple blocks comprising at least one block not identical to the first block.
  • multiple blocks may comprise the first block.
  • multiple blocks may comprise one block or plurality of blocks neighboring to the first block.
  • multiple blocks may comprise one block or plurality of blocks with the same block dimensions as the first block.
  • multiple blocks may comprise last N decoded block satisfying certain conditions, such as with the same prediction mode (e.g., all are intra-coded or IBC-coded) or the same dimensions to the current block, before the first block in the decoding order.
  • N is an integer larger than 1.
  • multiple blocks may comprise one block or plurality of blocks not in the same color component as the first block.
  • the first block may be in the luma component.
  • Multiple blocks may compriseblocks in chroma components (e.g., a second block in the Cb/B component, and a third block in the Cr/R component) .
  • the three blocks are in the same coding unit.
  • the first block in the first color component and the plurality ofblocks not in the first component color component comprised in the multiple blocks may be at the corresponding or collocated locations of a picture.
  • the decoded coefficients utilized for determination of usage of IT are called representative coefficients.
  • representative coefficients only include coefficients unequal to zero (denoted as significant coefficients)
  • the representative coefficients may be modified before being used to determine the usage of IT.
  • a representative coefficient may be clipped before being used to derive the transforms.
  • a representative coefficient may be scaled before being used to derive the transforms.
  • a representative coefficient may be added by an offset before being used to derive the transforms.
  • representative coefficients may be filtered before being used to derive the transforms.
  • a coefficient or representative coefficients may be mapped to other values (e.g., via look up tables or dequantized) before being used to derive the transforms.
  • representative coefficients are all the significant coefficients in the representative blocks.
  • representative coefficients are partial of significant coefficients in the representative blocks.
  • representative coefficients are those decoded significant coefficients which are odd.
  • representative coefficients are those decoded significant coefficients which are even.
  • representative coefficients are those decoded significant coefficients which are larger than or no smaller than a threshold.
  • representative coefficients are those decoded significant coefficients where magnitudes of which are larger than or no smaller than a threshold.
  • representative coefficients are those decoded significant coefficients which are smaller than or no greater than a threshold.
  • representative coefficients are those decoded significant coefficients where magnitudes of which are smaller than or no greater than a threshold.
  • representative coefficients may be those at a predefined location in ablock.
  • representative coefficients may comprise only one coefficient located at (xPos, yPos) coordinate relative to the representative block.
  • representative coefficients may comprise only one coefficient located at (xPos, yPos) coordinate relative to the representative block.
  • xPos and/or yPos satisfy the following conditions:
  • xPos is no greater than a threshold Tx (e.g., 31) and/or yPos is no greater than a threshold Ty (e.g., 31) .
  • xPos is no smaller than a threshold Tx (e.g., 32) and/or yPos is no smaller than a threshold Ty (e.g., 32) .
  • the positions may depend on the dimensions of the block.
  • representative coefficients may be those at a predefined position in the coefficient scanning order.
  • representative coefficients may also comprise those zero coefficients.
  • representative coefficients may be those derived from decoded coefficients, such as via clipping to a range, via quantization.
  • representative coefficients may be coefficients before the last significant coefficient (may include the last significant coefficient) .
  • the determination on the usage of IT to the first block may depend on the decoded luma coefficients of the first block.
  • the determined usage of IT is only applied to the luma component of the first block while DCT2 is always used for chroma components of the first block.
  • the determined usage of IT is applied to all color components of the first block. That is, the same transform matrix is applied to all color components of the first block.
  • the determination of usage of IT maydepend on a function of representative coefficients, such as a function with avalue V as the output, using representative coefficients as inputs.
  • V is derived as the number of representative coefficients.
  • V is derived as the sum of representative coefficients.
  • V is derived as the sum of levels (or their absolute values) of representative coefficients.
  • V may be derived as the level (or its absolute value) of one representative coefficient (such as the last one) .
  • V may be derived as the number of representative coefficients whose levels are even numbers.
  • V may be derived as the number of representative coefficients whose levels are odd numbers.
  • the sum may be clipped to derive V.
  • V is derived as the output of a function where the function defines residual energy distribution.
  • the function returns the ratio of sum of absolute values of partial of representative coefficients compared to the absolute values of all representative coefficients.
  • the function returns the ratio of sum of square of absolute values of partial of representative coefficients compared to the sum of square of absolute values of all representative coefficients.
  • the function returns whether the energy of the first K representative coefficients times a scaling factor is greater than the energy of the first M (M>K) or all representative coefficients.
  • the function returns whether the energy of the representative coefficients in a first sub-region of a representative block times a scaling factor is greater than the energy of the representative coefficients in a second sub-region which contains the first sub-region and larger than the first sub-region.
  • the function returns whether the energy of the representative coefficients in a first sub-region of a representative block times a scaling factor is greater than the energy of the representative coefficients in a second sub-region which is non-overlapped from the first sub-region.
  • the first sub-region is the second sub-region excluding the top-left MxK sub-region (i.e., excluding DC) .
  • the first sub-region is top-left 4x4 sub-region.
  • the energy is defined as sum of absolute values or sum of squares of values.
  • V is derived as whether at least one representative coefficient is located outside a sub-region of a representative block.
  • the sub-region is defined as the top-left sub-region of the representative block, e.g., the top-left quarter of the representative block.
  • the determination of usage of IT may be dependent on the parity of V.
  • V is smaller than a threshold T1, IT is used; and if V is larger than a threshold T2, IT is not used.
  • V is greater than a threshold T1, IT is used; and if V is smaller than a threshold T2, IT is not used.
  • the thresholds may depend on the coded information, such as block dimensions, prediction mode.
  • the threshold may depend on the QP.
  • the determination of usage of IT may depend on a combination of V and other coding information (e.g, prediction mode, slice/picture types, block dimension) .
  • the determination of usage of IT may further depend on the coded information of current block.
  • the determination may further depend on the mode information (e.g., intra, intra or IBC) .
  • mode information e.g., intra, intra or IBC
  • the transform determination may depend on a scan region which is a smallest rectangular covering all the significant coefficients (e.g., as depicted FIG. 14) .
  • a default transform such as DCT-2
  • the rules such as defined in bullet 3 (e.g., IT when V is even and DCT-2 when V is odd) may be utilized.
  • a default horizontal transform such as DCT-2
  • the rules, such as defined in bullet 3 may be utilized.
  • a default vertical transform such as DCT-2
  • the rules, such as defined in bullet 3 may be utilized.
  • the given size is L ⁇ K where L and K are integers, such as 16.
  • the default transform matrix may be DCT-2 or DST-7.
  • bullet 1-bullet 5 One or multiple of the methods disclosed in bullet 1-bullet 5 can only be applied to specific blocks.
  • bullet 1-bullet 5 can only be applied to IBC-coded blocks and/or intra-coded blocks excluding DT.
  • bullet 1-bullet 5 can only be applied to blocks with specific constrains on the coefficients.
  • a rectangle with four corners (0, 0) , (CRx, 0) , (0, CRy) , (CRx, CRy) is defined as the constrained rectangle, e.g., in the SRCC method.
  • one or multiple of the methods disclosed in bullet 1-bullet 5 can be applied only if all coefficients out of the constrained rectangle are zero.
  • K is equal to 16.
  • the above method is only applied when the block width is greater than K1 and K1 is equal to CRx; or when the block height is greater than K2 and K2 is equal to CRy.
  • One or multiple of the methods may be applied only when the last non-zero coefficients (in forward scanning order) satisfies certain conditions, e.g., when the horizontal/vertical coordinator is no greater than a threshold (e.g., 16/32) .
  • a threshold e.g. 16/32
  • a default transform such as DCT-2 or DST-7 may be used instead.
  • multiple default transforms such as DCT-2 or DST-7 may be chosen from, when IT is determined to be not used.
  • the representative coefficients e.g., bullet 2 in one or multiple representative blocks (e.g., bullet 1) are used, and the transform set may be dependent on prediction mode A and/or one or more syntax elements and/or other coded information (e.g., usage of DT, block dimension) .
  • the transform set is ⁇ DCT2 ⁇ .
  • the transform set is ⁇ IT ⁇ .
  • the transform set includes ⁇ DCT2, IT ⁇ .
  • the transform set includes ⁇ DCT2, DST7 ⁇ .
  • DCT2 when number of representative coefficients is even, DCT2 is used. Otherwise (when number of representative coefficients is odd) , DST7 or IT is used which may be determined by the prediction mode A and/or one or more syntax elements and/or other coded information.
  • IT is always used when number of representative coefficients is odd.
  • DCT2 is always used when number of representative coefficients is odd.
  • IT is always used when number of representative coefficients is odd.
  • Whether to and/or how to apply the disclosed methods above may be signaled at a video region level, such as sequence level/picture level/slice level/tile group level/tile level/subpicture level.
  • a may be signaled (e.g., a flag) in sequence header/picture header/SPS/VPS/DCI/DPS/PPS/APS/slice header/tile group header.
  • one or multiple syntax elements may be signaled to specify whether the method ofimplicit determination of IT or usage of implicit determination of transform skip mode is enabled or not.
  • a first flag may be signaled to control the usage of the method of implicit determination of IT for IBC coded blocks in the video region level.
  • the flag may be signaled under the condition check of whether IBC is enabled.
  • whether the usage of the method of implicit determination of IT for IBC coded blocks is enabled may be controlled by the same flag which is used to control the usage of implicit selection of transform (IST) mode for intra coded blocks excluding the derived tree (DT) mode.
  • IST implicit selection of transform
  • DT derived tree
  • a second flag may be signaled to control the usage of the method of implicit determination of IT for intra coded blocks (e.g., may exclude blocks with derived tree (DT) mode) in the video region level.
  • DT derived tree
  • a third flag may be signaled to control the usage of the method of implicit determination of IT for inter coded blocks in the video region level.
  • a flag may be signaled to control the usage of the method of implicit determination of IT for intra coded blocks (e.g., may exclude blocks with DT mode) and inter coded blocks in the video region level.
  • a flag may be signaled to control the usage of the method of implicit determination of IT for IBC coded blocks and intra coded blocks (e.g., may exclude blocks with DT mode) in the video region level.
  • intra coded blocks e.g., may exclude blocks with DT mode
  • TS mode is applied; otherwise, DCT2 is used.
  • DCT-2 is used.
  • DCT-2 or DST-7 may be determined on-the-fly, such as by IST.
  • Multiple-level control of enabling/applying IT methods may be signaled in multiple video unit levels (e.g., sequence, picture, slice levels) .
  • a first video unit level is defined as the sequence level.
  • a first syntax element e.g., a flag
  • sequence header/SPS/to indicate the usage of IT.
  • the first syntax element equal to 0 indicates that the Implicit Selected Transform Skip (ISTS) method cannot be used in the sequence. Otherwise (the first syntax element equal to 1) indicates that the Implicit Selected Transform Skip (ISTS) method may be used in the sequence.
  • the first syntax element may be conditionally signaled, such as according to “implicit selection of transform (IST) is enabled/ist_enable_flag being equal to 1” .
  • the first syntax element when it is not present, it is inferred to be a default value.
  • the IT is inferred to be disabled for the first video unit level.
  • a second video unit level is defined as the picture/slice level.
  • a second syntax element e.g., a flag
  • picture header e.g., intra picture header and/or inter picture header
  • slice header to indicate the usage of IT.
  • the second syntax element may be conditionally signaled, such as according to “implicit selection of transform (IST) is enabled” or “ist_enable_flag being equal to 1” and/or “the IT method is enabled at the first video unit level (e.g., sequence) ” .
  • the second syntax element when it is not present, it is inferred to be a default value.
  • the IT is inferred to be disabled for the second video unit level.
  • a syntax element to indicate an allowed transform set may be signaled at a video unit level (e.g., picture) and it may be conditionally signaled according to whether the implicit selection of transform (IST) is enabled.
  • the syntax element e.g., a flag or an index
  • picture header e.g., intra picture header and/or inter picture header
  • N different allowed transform sets are supported, and the selection of allowed transform set is dependent on the syntax element.
  • N is set to 2.
  • the selection of transform set may depend on block information, such as the coding mode of a CU, or whether the CU is code with (Derived Tree) DT mode.
  • DCT2 is always used for a CU with DT mode.
  • DCT2 is always used for a chroma block.
  • two sets are ⁇ DCT2, DST7 ⁇ and ⁇ DCT2, IT ⁇ .
  • two sets are ⁇ DCT2 ⁇ and ⁇ DCT2, IT ⁇ .
  • IBC intra block copy
  • IBC intra block copy
  • the allowed transform set is inferred to be only one transform type (e.g., DCT2) is allowed.
  • the syntax element (e.g., a flag or an index) is used to control the selection of transforms from an allowed transform set for blocks with certain coded mode.
  • the allowed transform set may be independent from the syntax element.
  • the allowed transform set is ⁇ DCT2 ⁇ .
  • the allowed transform set is ⁇ DCT2 ⁇ or ⁇ DCT2, IT ⁇ , which may depend on e.g., whether IST is enabled or whether IBC is enabled for current picture.
  • An indication of whether zero-out is applied to a transform block is signaled in at a video region level, such as sequence level/picture level/slice level/tile group level/tile level/subpicture level.
  • a may be signaled (e.g., a flag) in sequence header/picture header/SPS/VPS/DCI/DPS/PPS/APS/slice header/tile group header.
  • the binarization/context modeling/allowed range of last significant coefficient/bottom-right position (e.g., maximum X/Y coordinate relative to the top-left position of the block) in SRCC may be dependent on the indication.
  • Afirst rule (e.g., in above bullets 1-7) may be used to determine the usage of IT for a first block, and a second rule may be used to determine the transform type excluding IT.
  • the first rule may be defined as the residual energy distribution.
  • the second rule may be defined as the parity of representative coefficients.
  • Zero-out is applied to IT (e.g. TS) coded blocks, where the non-zero coefficients are restricted to be within certain sub-regions of a block.
  • IT e.g. TS
  • the zero-out range for IT (e.g. TS) coded blocks is set to the top-right K*L sub-region of a block, where K is set to min (T1, W) and L is set to min(T2, H) where W and H are the block width/height, respectively and T1/T2 are two thresholds.
  • T1 and/or T2 may be set to 32 or 16.
  • the last non-zero coefficient shall be located within the K*L sub-region.
  • the bottom-right position (SRx, SRy) in the SRCC method shall be located within the K*L sub-region.
  • non-zero coefficients are only existing in the top-left K0*L0 sub-region of a block.
  • non-zero coefficients are only existing in the top-right K1*L1 sub-region of a block.
  • indication of the bottom-left position of the sub-region with non-zero coefficients may be signaled.
  • non-zero coefficients are only existing in the bottom-left K2*L2 sub-region of a block.
  • indication of the top-rightposition of the sub-region with non-zero coefficients may be signaled.
  • non-zero coefficients are only existing in the bottom-right K3*L3 sub-region of a block.
  • indication of the top-left position of the sub-region with non-zero coefficients may be signaled.
  • an indication of the zero-out type of IT may be further explicitly signaled or derived on-the-fly.
  • IT e.g. TS
  • IT is not used in a block when there is at least one significant coefficient outside the zero-out region defined by IT (e.g. TS) , for example, outside of the top-left K0*L0 sub-region of a block.
  • IT e.g. TS
  • DST7/DCT2/DCT8 another transform matrix
  • TS mode is inferred to be used.
  • FIG. 16A-16D show multiple zero-out types of TS coded blocks.
  • FIG. 16A shows top-left K0*L0 sub-region.
  • FIG. 16B shows top-right K1*L1 sub-region.
  • FIG. 16C shows bottom-left K2*L2 sub-region.
  • FIG. 16D shows bottom-right K3*L3 sub-region.
  • the decision of transform matrix may be done in CU/CB-level or TU-level.
  • the decision is made in CU level where all TUs share the same transform matrix.
  • coefficients in one TU e.g., the first or the last TU
  • partial or all TUs may be utilized to determine the transform matrix.
  • CU-level solution Whether to use the CU-level solution or TU-level solution may depend on the block size and/or VPDU size and/or maximum CTU size and/or coded information of one block.
  • CU-level determination method may be applied.
  • coding information which may include:
  • a threshold e.g. 32
  • the above-mentioned methods may be applied.
  • a threshold e.g. 4, 4
  • the above-mentioned methods may be applied.
  • a threshold e.g. 64
  • the above-mentioned methods may be applied.
  • Picture or slice type (such as I-frame or P/B-frame, I-slice or P/B-slice)
  • the proposed method may be enabled on I-frames but be disabled on P/B frames.
  • e. Coding mode (such as inter mode/intra mode/IBC mode etc. )
  • Coding methods such as Intra Sub-block partition, Derived Tree (DT) method, etc.
  • the above-mentioned methods may be disabled.
  • the above-mentioned methods may be disabled.
  • the above-mentioned methods may be applied while for chroma blocks, it is not applied.
  • Intra-prediction mode (such as DC, vertical, horizontal, etc. )
  • Motion information (such as MV and reference index) .
  • DCT-II is allowed for coding residual blocks for IBC modes. While for intra coded blocks excluding DT, IST is applied which allows a block to select either DCT-II or DST-VII according to the parity of number of non-zero coefficients. However, for screen content coding, DST-VII is much less efficient. Transform skip (TS) mode is an efficient coding method for screen content coding. How to allow the codec to support TS without being explicitly signaled for a block needs to be studied.
  • an Implicit Selection of Transform Skip mode can be used.
  • a high-level flag is signaled in picture header to indicate whether ISTS is enabled.
  • the allowed transform set is set to ⁇ DCT-II TS ⁇ , and the determination of TS mode is based on the parity of number of non-zero coefficients in a block, which is following the same design principle of IST.
  • An odd number indicates TS is applied, while an even number indicates DCT-II is applied.
  • ISTS is applied to CUs with sizes from 4 ⁇ 4 to 32 ⁇ 32 for either intra-coded or IBC-coded CUs, excluding those with DT applied or with PCM.
  • a value of '1' indicates that the implicitly selective transform skip method can be used; a value of '0' indicates that the implicitly selective transform skip method should not be used.
  • the value of IstsEnableFlag is equal to ists_enable_flag. If ists_enable_flag does not exist in the bit stream, the value of IstsEnableFlag is 0.
  • PhIstsEnableFlag is equal to the value of ph_ists_enable_flag. If ph_ists_enable_flag does not exist in the bit stream, the value of PhIstsEnableFlag is 0.
  • This article defines the process of converting the M1 ⁇ M2 transformation coefficient matrix CoeffMatrix into the residual sample matrix ResidueMatrix.
  • the intra prediction mode is neither ‘Intra_Luma_PCM’ nor ‘Intra_Chroma_PCM’ or the current block uses the block copy intra prediction mode, then:
  • PhIstsEnableFlag is 0, the current transform block is a luma intra prediction residual block, the values of M1 and M2 are both less than 64 and the value of IstTuFlag is equal to 1, then the residual sample matrix ResidueMatrix is derived according to the method defined by 0;
  • PhIstsEnableFlag 1
  • the current transform block is a luma intra prediction residual block or a block copy intra prediction block
  • the values of M1 and M2 are both less than 64 and the value of IstTuFlag is equal to 1
  • the residual is derived according to the method defined by 0 Sample matrix ResidueMatrix
  • the residual sample matrix ResidueMatrix is derived according to the method defined in 9.6.3.1.
  • the residual sample matrix ResidueMatrix is derived according to the method defined in 9.6.3.3.
  • the current transform block is a luma intra prediction residual block or a luma intra prediction residual block
  • PhIstsEnableFlag is 1
  • the values of M1 and M2 are both less than 64 and the value of IstTuFlag is equal to 1, then:
  • wij (CoeffMatrixij + rnd_factor) ⁇ shift
  • the matrix W is directly used as the residual sample matrix ResidueMatrix to end the implicit selective inverse transformation operation.
  • FIG. 17 is a block diagram showing an example video processing system 1700 in which various techniques disclosed herein may be implemented.
  • the system 1700 may include input 1702 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 1702 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.
  • PON passive optical network
  • the system 1700 may include a coding component 1704 that may implement the various coding or encoding methods described in the present document.
  • the coding component 1704 may reduce the average bitrate of video from the input 1702 to the output of the coding component 1704 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 1704 may be either stored, or transmitted via a communication connected, as represented by the component 1706.
  • the stored or communicated bitstream (or coded) representation of the video received at the input 1702 may be used by the component 1708 for generating pixel values or displayable video that is sent to a display interface 1710.
  • the process of generating user-viewable video from the bitstream representation is sometimes called video decompression.
  • 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
  • peripheral bus interface or a display interface may include universal serial bus (USB) or high definition multimedia interface (HDMI) or Displayport, and so on.
  • storage interfaces include SATA (serial advanced technology attachment) , PCI, IDE interface, and the like.
  • FIG. 21 is a block diagram of a video processing apparatus 2100.
  • the apparatus 2100 may be used to implement one or more of the methods described herein.
  • the apparatus 2100 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, and so on.
  • the apparatus 2100 may include one or more processors 2102, one or more memories 2104 and video processing hardware 2106.
  • the processor (s) 2102 may be configured to implement one or more methods described in the present document.
  • the memory (memories) 2104 may be used for storing data and code used for implementing the methods and techniques described herein.
  • the video processing hardware 2106 may be used to implement, in hardware circuitry, some techniques described in the present document.
  • FIG. 18 is a block diagram that illustrates an example video coding system 100 that may utilize the techniques of this disclosure.
  • video coding system 100 may include a source device 110 and a destination device 120.
  • Source device 110 generates encoded video data which may be referred to as a video encoding device.
  • Destination device 120 may decode the encoded video data generated by source device 110 which may be referred to as a video decoding device.
  • Source device 110 may include a video source 112, a video encoder 114, and an input/output (I/O) interface 116.
  • Video source 112 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 114 encodes the video data from video source 112 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 116 may include a modulator/demodulator (modem) and/or a transmitter.
  • the encoded video data may be transmitted directly to destination device 120 via I/O interface 116 through network 130a.
  • the encoded video data may also be stored onto a storage medium/server 130b for access by destination device 120.
  • Destination device 120 may include an I/O interface 126, a video decoder 124, and a display device 122.
  • I/O interface 126 may include a receiver and/or a modem. I/O interface 126 may acquire encoded video data from the source device 110 or the storage medium/server 130b. Video decoder 124 may decode the encoded video data. Display device 122 may display the decoded video data to a user. Display device 122 may be integrated with the destination device 120, or may be external to destination device 120 which be configured to interface with an external display device.
  • Video encoder 114 and video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVM) standard and other current and/or further standards.
  • HEVC High Efficiency Video Coding
  • VVM Versatile Video Coding
  • FIG. 19 is a block diagram illustrating an example of video encoder 200, which may be video encoder 114 in the system 100 illustrated in FIG. 18.
  • Video encoder 200 may be configured to perform any or all of the techniques of this disclosure.
  • video encoder 200 includes a plurality of functional components.
  • the techniques described in this disclosure may be shared among the various components of video encoder 200.
  • a processor may be configured to perform any or all of the techniques described in this disclosure.
  • the functional components of video encoder 200 may include a partition unit 201, a predication unit 202 which may include a mode select unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.
  • a partition unit 201 may include a mode select unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.
  • video encoder 200 may include more, fewer, or different functional components.
  • predication unit 202 may include an intra block copy (IBC) unit.
  • the IBC unit may perform predication in an IBC mode in which at least one reference picture is a picture where the current video block is located.
  • IBC intra block copy
  • motion estimation unit 204 and motion compensation unit 205 may be highly integrated, but are represented in the example of FIG. 19 separately for purposes of explanation.
  • Partition unit 201 may partition a picture into one or more video blocks.
  • Video encoder 200 and video decoder 300 may support various video block sizes.
  • Mode select unit 203 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 207 to generate residual block data and to a reconstruction unit 212 to reconstruct the encoded block for use as a reference picture.
  • Mode select unit 203 may select a combination of intra and inter predication (CIIP) mode in which the predication is based on an inter predication signal and an intra predication signal.
  • CIIP intra and inter predication
  • Mode select unit 203 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-predication.
  • motion estimation unit 204 may generate motion information for the current video block by comparing one or more reference frames from buffer 213 to the current video block.
  • Motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from buffer 213 other than the picture associated with the current video block.
  • Motion estimation unit 204 and motion compensation unit 205 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.
  • motion estimation unit 204 may perform uni-directional prediction for the current video block, and motion estimation unit 204 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. Motion estimation unit 204 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 204 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 205 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.
  • motion estimation unit 204 may perform bi-directional prediction for the current video block, motion estimation unit 204 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 204 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 204 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 205 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.
  • motion estimation unit 204 may output a full set of motion information for decoding processing of a decoder.
  • motion estimation unit 204 may do not output a full set of motion information for the current video. Rather, motion estimation unit 204 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 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.
  • motion estimation unit 204 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 300 that the current video block has the same motion information as the another video block.
  • motion estimation unit 204 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 300 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.
  • video encoder 200 may predictively signal the motion vector.
  • Two examples of predictive signaling techniques that may be implemented by video encoder 200 include advanced motion vector predication (AMVP) and merge mode signaling.
  • AMVP advanced motion vector predication
  • merge mode signaling merge mode signaling
  • Intra prediction unit 206 may perform intra prediction on the current video block. When intra prediction unit 206 performs intra prediction on the current video block, intra prediction unit 206 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.
  • Residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by the minus sign) 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.
  • residual generation unit 207 may not perform the subtracting operation.
  • Transform processing unit 208 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.
  • quantization unit 209 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.
  • QP quantization parameter
  • Inverse quantization unit 210 and inverse transform unit 211 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 212 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the predication unit 202 to produce a reconstructed video block associated with the current block for storage in the buffer 213.
  • loop filtering operation may be performed reduce video blocking artifacts in the video block.
  • Entropy encoding unit 214 may receive data from other functional components of the video encoder 200. When entropy encoding unit 214 receives the data, entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.
  • FIG. 20 is a block diagram illustrating an example of video decoder 300 which may be video decoder 114 in the system 100 illustrated in FIG. 18.
  • the video decoder 300 may be configured to perform any or all of the techniques of this disclosure.
  • the video decoder 300 includes a plurality of functional components.
  • the techniques described in this disclosure may be shared among the various components of the video decoder 300.
  • a processor may be configured to perform any or all of the techniques described in this disclosure.
  • video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transformation unit 305, and a reconstruction unit 306 and a buffer 307.
  • Video decoder 300 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 200 (FIG. 19) .
  • Entropy decoding unit 301 may retrieve an encoded bitstream.
  • the encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data) .
  • Entropy decoding unit 301 may decode the entropy coded video data, and from the entropy decoded video data, motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. Motion compensation unit 302 may, for example, determine such information by performing the AMVP and merge mode.
  • Motion compensation unit 302 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.
  • Motion compensation unit 302 may use interpolation filters as used by video encoder 20 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. Motion compensation unit 302 may determine the interpolation filters used by video encoder 200 according to received syntax information and use the interpolation filters to produce predictive blocks.
  • Motion compensation unit 302 may uses 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-encoded block, and other information to decode the encoded video sequence.
  • Intra prediction unit 303 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks.
  • Inverse quantization unit 303 inverse quantizes, e.g., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 301.
  • Inverse transform unit 303 applies an inverse transform.
  • Reconstruction unit 306 may sum the residual blocks with the corresponding prediction blocks generated by motion compensation unit 202 or intra-prediction unit 303 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 307, which provides reference blocks for subsequent motion compensation/intra predication and also produces decoded video for presentation on a display device.
  • a video processing method comprising: making a determination (2202) , for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing (2204) the conversion based on the determination, wherein the rule specifies a relationship between the determination and representative coefficients from decoded coefficients of one or more representative blocks of the video.
  • a video processing method comprising: making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination, wherein the rule specifies a relationship between the determination and decoded luma coefficients of the video block.
  • a video processing method comprising: making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination, wherein the rule specifies a relationship between the determination and a value V associates with representative coefficients of decoded coefficients or a representative block.
  • a video processing method comprising: determining that one or more syntax fields are present in a coded representation of a video wherein the video contains one or more video blocks; making a determination, based on the one or more syntax fields, whether a horizontal or a vertical identity transform is enabled for video blocks in the video.
  • the first video block is coded with intra mode but not a derived tree (DT) mode.
  • DT derived tree
  • the determination is based on the parity of number of non-zero coefficients in the first video block.
  • a method of video processing comprising: making a first determination regarding whether use of an identity transform is enabled for a conversion between a video block of a video and a coded representation of the video; making a second determination regarding whether a zero-out operation is enabled during the conversion; and performing the conversion based on the first determination and the second determination.
  • a video processing method comprising: performing a conversion between a video block of a video and a coded representation of the video; wherein the video block is represented in the coded representation as a coded block, wherein non-zero coefficients of the coded block are restricted to be within one or more sub-regions; and wherein an identity transform is applied for generating the coded block.
  • a video decoding apparatus comprising a processor configured to implement a method recited in one or more of solutions 1 to 51.
  • a video encoding apparatus comprising a processor configured to implement a method recited in one or more of solutions 1 to 51.
  • a computer program product having computer code stored thereon, the code, when executed by a processor, causes the processor to implement a method recited in any of solutions 1 to 51.
  • FIG. 23 is a flowchart representation of a method for video processing in accordance with the present technology.
  • the method 2300 includes, at operation 2310, performing a conversion between a video and a bitstream of the video according to a rule.
  • the rule specifies that usage of an identity transform mode for the conversion is indicated in at least a first video unit level and a second video unit level.
  • the identity transform mode comprises a transform skip mode.
  • the transform skip mode a residual of a prediction error between the current video block and a reference video block is represented in the bitstream without applying a transformation.
  • the first video unit level comprises a sequence level.
  • a first syntax element is included in a sequence header or a sequence parameter set to indicate usage of an implicitly selected transform skip mode in the sequence level.
  • the first syntax element being equal to 0 indicates that the implicitly selected transform skip mode is disabled in the sequence level.
  • the first syntax element being equal to 1 indicates that the implicitly selected transform skip mode is enabled in the sequence level.
  • the first syntax element is conditionally included in the sequence header or the sequence parameter set based on a first syntax flag indicating whether an implicit selection of transform is enabled in the sequence level. In some embodiments, the first syntax element is included in the sequence header or the sequence parameter set in response to the first syntax flag indicating the implicit selection of transform is enabled in the sequence level. In some embodiments, a default value of the first syntax element is inferred in response to the first syntax element being omitted in the bitstream. In some embodiments, the default value indicates that the implicitly selected transform skip mode is disabled in the sequence level.
  • the second video unit level comprises a picture level or a slice level.
  • a second syntax element is included in a picture header or a slice header to indicate usage of an implicitly selected transform skip mode in the picture level or the slice level, the picture header comprising at least an intra picture header or an inter picture header.
  • the second syntax element is conditionally indicated based on the first syntax element in the first video unit level or a syntax flag.
  • a default value of the second syntax element is inferred in response to the second syntax element being omitted in the bitstream. In some embodiments, the default value indicates that the usage of the identity transform is disabled in the second video unit level.
  • FIG. 24 is a flowchart representation of a method for video processing in accordance with the present technology.
  • the method 2400 includes, at operation 2410, performing a conversion between a video block of a video and a bitstream of the video according to a rule.
  • the rule specifies that a syntax element in a video unit level is used to indicate an allowed transform set for the conversion.
  • the video unit level comprises a picture level.
  • the syntax element is conditionally included based on whether an implicit selection of transform is enabled in the video unit level.
  • the syntax element comprises a flag or an index.
  • the syntax element is included in a picture header or a slice header, the picture header comprising at least an intra picture header or an inter picture header.
  • N transform sets are supported for the conversion, and a selection of the allowed transform set from the N transform sets is based on the syntax element. In some embodiments, N is equal to 2. In some embodiments, the selection of the allowed transform set is further based on coding information of the video block, the coding information comprising at least a coding mode or a partitioning mode of the video block.
  • a discrete cosine transform type-II (DCT2) is always in case the video block is coded using a derived tree mode. In some embodiments, a discrete cosine transform type-II (DCT2) is always used in case the video block is a chroma block.
  • the N transform sets comprise ⁇ DCT2, DST7 ⁇ and ⁇ DCT2, IT ⁇ .
  • DCT2 represents discrete cosine transform type-II
  • DST7 represents discrete sine transform type 7
  • IT represents Implicit Transform.
  • the N transform sets are applicable to intra coded blocks.
  • the N transform sets are applicable to intra coded blocks that are coded using non-derived-tree coding mode.
  • the N transform sets comprise ⁇ DCT2 ⁇ and ⁇ DCT2, IT ⁇ .
  • DCT2 represents discrete cosine transform type-II and IT represents Implicit Transform.
  • the N transform sets are applicable to intra block copy (IBC) coded blocks.
  • the N transform sets are applicable to intra block copy (IBC) coded blocks that are coded using non-derived-tree coding mode.
  • a default value is inferred in response to the syntax element being omitted in the bitstream indicating a default allowed transform set.
  • the syntax element comprises a flag or an index.
  • the syntax element is used to indicate the allowed transform set for the conversion in response to the video block being coded using a particular coding mode.
  • the syntax element is used for the conversion in case the video block is coded using an intra coding mode or using an intra coding mode that excludes a derived tree coding mode or a pulse-code modulation coding mode.
  • the allowed transform set for the conversion is independent from the syntax element in case the video block is coded without using an intra coding mode.
  • the allowed transform set comprises ⁇ DCT2 ⁇ in case the video block is an inter coded block.
  • the allowed transform set comprises ⁇ DCT2, IT ⁇ in case the video block is an inter block copy (IBC) coded block.
  • FIG. 25 is a flowchart representation of a method for video processing in accordance with the present technology.
  • the method 2500 includes, at operation 2510, performing a conversion between a video block of a video and a bitstream of the video according to a rule.
  • the rule specifies that usage of an identity transform mode for the conversion of the video block is determined based on a function associated with an energy of representative coefficients of one or more representative blocks of the video.
  • the identity transform mode comprises a transform skip mode.
  • the transform skip mode a residual of a prediction error between the video block and a reference video block is represented in the bitstream without applying a transformation.
  • the function returns whether an energy of first K representative coefficients times a scaling factor is greater than an energy of first M representative coefficients or all representative coefficients, where M is greater than K.
  • the function returns whether an energy of representative coefficients in a first subregion of a representative block times a scaling factor is greater than an energy of representative coefficients in a second subregion that includes the first sub-region and bigger than the first sub-region.
  • the function returns whether an energy of representative coefficients in a first subregion of a representative block times a scaling factor is greater than an energy of representative coefficients in a second subregion that does not overlap with the first subregion.
  • applicability of the one or more above methods is based on coding information of the video block.
  • the method is applicable to the video block in case a width or a height of the video block is smaller than a threshold.
  • the threshold is 64.
  • the method is applicable to the video block in case the video block is intra-coded without using a derived tree mode or a pulse-code modulation mode.
  • the method is applicable to the video block in case the video block is intra-block copy (IBC) coded.
  • IBC intra-block copy
  • the conversion comprises encoding the video into the bitstream. In some embodiments, the conversion comprises decoding the bitstream to generate the video.
  • video processing may refer to video encoding, video decoding, video compression or video decompression.
  • 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.
  • 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.
  • 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.
  • 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.
  • the disclosed and other solutions, examples, embodiments, modules and the functional operations described in this document can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this document 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, e.g., 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.
  • data processing apparatus encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, acomputer, 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.
  • 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.
  • the processes and logic flows described in this document 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., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit) .
  • 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.
  • 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.
  • 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.
  • mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks.
  • 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., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and CD ROM and DVD-ROM disks.
  • semiconductor memory devices e.g., EPROM, EEPROM, and flash memory devices
  • magnetic disks e.g., internal hard disks or removable disks
  • magneto optical disks e.g., CD ROM and DVD-ROM disks.
  • the processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Methods, system and apparatus for video processing are described. One example video processing method includes performing a conversion between a video and a bitstream of the video according to a rule. The rule specifies that usage of an identity transform mode is indicated in at least a first video unit level and a second video unit level for the conversion.

Description

IMPLICIT DETERMINATION OF TRANSFORM SKIP MODE
CROSS REFERENCE TO RELATED APPLICATIONS
Under the applicable patent law and/or rules pursuant to the Paris Convention, this application is made to timely claim the priority to and benefits of International Patent Application No. PCT/CN2020/081198, filed on March 25, 2020. For all purposes under the law, the entire disclosure of the aforementioned application is incorporated by reference as part of the disclosure of this application.
TECHNICAL FIELD
This patent document relates to image and video coding and decoding.
BACKGROUND
Digital video accounts for the largest bandwidth use on the internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, it is expected that the bandwidth demand for digital video usage will continue to grow.
SUMMARY
The present document discloses techniques that can be used by video encoders and decoders for processing coded representation of video using control information useful for decoding of the coded representation.
In one example aspect, a video processing method is disclosed. The method includes performing a conversion between a video and a bitstream of the video according to a rule. The rule specifies that usage of an identity transform mode for the conversion is indicated in at least a first video unit level and a second video unit level.
In another example aspect, a video processing method is disclosed. The method includes performing a conversion between a video block of a video and a bitstream of the video according to a rule. The rule specifies that a syntax element in a video unit level is used to indicate an allowed transform set for the conversion.
In another example aspect, a video processing method is disclosed. The method includes performing a conversion between a video block of a video and a bitstream of the video according  to a rule. The rule specifies that usage of an identity transform mode for the conversion of the video block is determined based on a function associated with an energy of representative coefficients of one or more representative blocks of the video.
In another example aspect, a video processing method is disclosed. The method includes making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination. The rule specifies a relationship between the determination and representative coefficients from decoded coefficients of one or more representative blocks of the video.
In another example aspect, another video processing method is disclosed. The method includes making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination. The rule specifies a relationship between the determination and decoded luma coefficients of the video block.
In another example aspect, another video processing method is disclosed. The method includes making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination. The rule specifies a relationship between the determination and a value V associates with representative coefficients of decoded coefficients or a representative block.
In another example aspect, another video processing method is disclosed. The method includes determining that one or more syntax fields are present in a coded representation of a video where the video contains one or more video blocks; making a determination, based on the one or more syntax fields, whether a horizontal or a vertical identity transform is enabled for video blocks in the video.
In another example aspect, another video processing method is disclosed. The method includes making a first determination regarding whether use of an identity transform is enabled for a conversion between a video block of a video and a coded representation of the video; making a second determination regarding whether a zero-out operation is enabled during the  conversion; and performing the conversion based on the first determination and the second determination.
In another example aspect, another video processing method is disclosed. The method includes performing a conversion between a video block of a video and a coded representation of the video; where the video block is represented in the coded representation as a coded block, where non-zero coefficients of the coded block are restricted to be within one or more sub-regions; and where an identity transform is applied for generating the coded block.
In yet another example aspect, a video encoder apparatus is disclosed. The video encoder comprises a processor configured to implement above-described methods.
In yet another example aspect, a video decoder apparatus is disclosed. The video decoder comprises a processor configured to implement above-described methods.
In yet another example aspect, a computer readable medium having code stored thereon is disclose. The code embodies one of the methods described herein in the form of processor-executable code.
These, and other, features are described throughout the present document.
BRIEF DESCRIPTION OF DRAWINGS
FIG. 1 shows an example video encoder block diagram.
FIG. 2 shows an example of 67 intra prediction modes.
FIG. 3A shows an example of reference samples for wide-angular intra prediction
FIG. 3B shows another example of reference samples for wide-angular intra prediction.
FIG. 4 illustrates a problem of discontinuity in case of directions beyond 45 degree.
FIG. 5A shows an example definition of samples used by PDPC applied to diagonal and adjacent angular intra modes.
FIG. 5B shows another example definition of samples used by PDPC applied to diagonal and adjacent angular intra modes.
FIG. 5C shows another example definition of samples used by PDPC applied to diagonal and adjacent angular intra modes.
FIG. 5D show yet another example definition of samples used by PDPC applied to diagonal and adjacent angular intra modes.
FIG. 6 shows an example of division of 4×8 and 8×4 blocks.
FIG. 7 shows an example of division of all blocks except 4×8, 8×4 and 4×4.
FIG. 8 shows an example of a secondary transform in JEM.
FIG. 9 shows an example of reduced secondary transform LFNST.
FIG. 10A shows an example of a forward reduced transform.
FIG. 10B shows an example of an invert reduced transform.
FIG. 11 shows an example of forward LFNST8x8 process with 16x48 matrix.
FIG. 12 illustrates an example of scanning position 17 to 64 for non-zero element.
FIG. 13 is an example Illustration of sub-block transform modes SBT-V and SBT-H.
FIG. 14A illustrates an example of Scan region based Coefficient Coding (SRCC) .
FIG. 14B illustrates another example of Scan region based Coefficient Coding (SRCC) .
FIG. 15A illustrates an example restriction of IST according to non-zero coefficients’ positions.
FIG. 15B illustrates another example restriction of IST according to non-zero coefficients’ positions.
FIG. 16A shows an example zero-out type of TS coded blocks.
FIG. 16B shows another example zero-out type of TS coded blocks.
FIG. 16C shows another example zero-out type of TS coded blocks.
FIG. 16D shows yet another zero-out type of TS coded blocks.
FIG. 17 is a block diagram of an example video processing system.
FIG. 18 is a block diagram that illustrates a video coding system in accordance with some embodiments of the present disclosure.
FIG. 19 is a block diagram that illustrates an encoder in accordance with some embodiments of the present disclosure.
FIG. 20 is a block diagram that illustrates a decoder in accordance with some embodiments of the present disclosure.
FIG. 21 is a block diagram of a video processing apparatus.
FIG. 22 is a flowchart for an example method of video processing.
FIG. 23 is a flowchart representation of a method for video processing in accordance with the present technology.
FIG. 24 is a flowchart representation of another method for video processing in accordance with the present technology.
FIG. 25 is a flowchart representation of yet another method for video processing in accordance with the present technology.
DETAILED DESCRIPTION
Section headings are used in the present document for ease of understanding and do not limit the applicability of techniques and embodiments disclosed in each section only to that section. Furthermore, H. 266 terminology is used in some description only for ease of understanding and not for limiting scope of the disclosed techniques. As such, the techniques described herein are applicable to other video codec protocols and designs also.
1. Overview
This document is related to video coding technologies. Specifically, it is related to transform skip mode and transform types (e.g., including identity transform) in video coding. It may be applied to the existing video coding standard like HEVC, or the standard (Versatile Video Coding) to be finalized. It may be also applicable to future video coding standards or video codec.
2. Initial Discussion
Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO/IEC standards. The ITU-T produced H. 261 and H. 263, ISO/IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H. 262/MPEG-2 Video and H. 264/MPEG-4 Advanced Video Coding (AVC) and H. 265/HEVC standards. Since H. 262, the video coding standards are based on the hybrid video coding structure where temporal prediction plus transform coding are utilized. To explore the future video coding technologies beyond HEVC, Joint Video Exploration Team (JVET) was founded by VCEG and MPEG jointly in 2015. Since then, many new methods have been adopted by JVET and put into the reference software named Joint Exploration Model (JEM) . In April 2018, the Joint Video Expert Team (JVET) between VCEG (Q6/16) and ISO/IEC JTC1 SC29/WG11 (MPEG) was created to work on the VVC standard targeting at 50%bitrate reduction compared to HEVC.
2.1. Coding flow of a typical video codec
FIG. 1 shows an example ofencoder block diagram of VVC, which contains three in-loop filtering blocks: deblocking filter (DF) , sample adaptive offset (SAO) and ALF. Unlike DF,  which uses predefined filters, SAO and ALF 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. ALF 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.
2.2. Intra mode coding with 67 intra prediction modes
To capture the arbitrary edge directions presented in natural video, the number of directional intra modes is extended from 33, as used in HEVC, to 65. The additional directional modes are depicted as red dotted arrows in FIG. 2, and the planar and DC modes remain the same. These denser directional intra prediction modes apply for all block sizes and for both luma and chroma intra predictions.
Conventional angular intra prediction directions are defined from 45 degrees to -135 degrees in clockwise direction as shown in FIG. 2. In VTM2, several conventional angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes for the non-square blocks. The replaced modes are signaled using the original method and remapped to the indexes of wide angular modes after parsing. The total number of intra prediction modes is unchanged, e.g., 67, and the intra mode coding is unchanged.
In the HEVC, every intra-coded block has a square shape and the length of each of its side is a power of 2. Thus, no division operations are required to generate an intra-predictor using DC mode. In VVV2, blocks can have a rectangular shape that necessitates the use of a division operation per block in the general case. To avoid division operations for DC prediction, only the longer side is used to compute the average for non-square blocks.
2.3. Wide-angle intra prediction for non-square blocks
Conventional angular intra prediction directions are defined from 45 degrees to -135 degrees in clockwise direction. In VTM2, several conventional angular intra prediction modes are adaptively replaced with wide-angle intra prediction modes for non-square blocks. The replaced modes are signaled using the original method and remapped to the indexes of wide angular modes after parsing. The total number of intra prediction modes for a certain block is unchanged, e.g., 67, and the intra mode coding is unchanged.
To support these prediction directions, the top reference with length 2W+1, and the left reference with length 2H+1, are defined as shown in FIG. 3A-3B.
The mode number of replaced mode in wide-angular direction mode is dependent on the aspect ratio of a block. The replaced intra prediction modes are illustrated in Table 1.
Table 1: Intra prediction modes replaced by wide-angular modes
Condition Replaced intra prediction modes
W/H == 2 Modes  2, 3, 4, 5, 6, 7
W/H > 2 Modes  2, 3, 4, 5, 6, 7, 8, 9, 10, 11
W/H == 1 None
H/W == 1/2 Modes  61, 62, 63, 64, 65, 66
H/W < 1/2 Mode  57, 58, 59, 60, 61, 62, 63, 64, 65, 66
As shown in FIG. 4, two vertically-adjacent predicted samples may use two non-adjacent reference samples in the case of wide-angle intra prediction. Hence, low-pass reference samples filter and side smoothing are applied to the wide-angle prediction to reduce the negative effect of the increased gapΔp α.
2.4. Position dependent intra prediction combination
In the VTM2, the results of intra prediction of planar mode are further modified by a position dependent intra prediction combination (PDPC) method. PDPC is an intra prediction method which invokes a combination of the un-filtered boundary reference samples and HEVC style intra prediction with filtered boundary reference samples. PDPC is applied to the following intra modes without signaling: planar, DC, horizontal, vertical, bottom-left angular mode and its eight adjacent angular modes, and top-right angular mode and its eight adjacent angular modes. 
The prediction sample pred (x, y) is predicted using an intra prediction mode (DC, planar, angular) and a linear combination of reference samples according to the Equation as follows: pred (x, y) = (wL×R -1, y+ wT×R x, -1–wTL×R -1, -1+ (64 –wL–wT+wTL) ×pred (x, y) +32) >> 6
where R x, -1, R -1, y represent the reference samples located at the top and left of current sample (x, y) , respectively, and R -1, -1 represents the reference sample located at the top-left corner of the current block.
If PDPC is applied to DC, planar, horizontal, and vertical intra modes, additional boundary filters are not needed, as required in the case of HEVC DC mode boundary filter or horizontal/vertical mode edge filters.
FIG. 5A-5D illustrate the definition of reference samples (R x, -1, R -1, y and R -1, -1) for PDPC applied over various prediction modes. The prediction sample pred (x’, y’) is located at (x’, y’) within the prediction block. The coordinate x of the reference sample R x, -1 is given by: x= x’+ y’+ 1, and the coordinate y of the reference sample R -1, y is similarly given by: y= x’+ y’+ 1. FIG. 5A shows a diagonal top-right mode. FIG. 5B shows a diagonal bottom-left mode. FIG. 5C shows an adjacent diagonal top-right mode. FIG. 5D shows an adjacent diagonal bottom-left mode.
The PDPC weights are dependent on prediction modes and are shown in Table 2.
Table 2: Example of PDPC weights according to prediction modes
Figure PCTCN2021082963-appb-000001
2.5. Intra subblock partitioning (ISP)
In some embodiments, ISP is proposed, which divides luma intra-predicted blocks vertically or horizontally into 2 or 4 sub-partitions depending on the block size dimensions, as shown in Table 3. FIG. 6 and FIG. 7 show examples of the two possibilities. All sub-partitions fulfill the condition of having at least 16 samples.
Table3: Number of sub-partitions depending on the block size.
Block Size Number of Sub-Partitions
4×4 Not divided
4×8 and 8×4 2
All other cases 4
For each of these sub-partitions, a residual signal is generated by entropy decoding the coefficients sent by the encoder and then invert quantizing and invert transforming them. Then, the sub-partition is intra predicted and finally the corresponding reconstructed samples are obtained by adding the residual signal to the prediction signal. Therefore, the reconstructed values of each sub-partition will be available to generate the prediction of the next one, which will repeat the process and so on. All sub-partitions share the same intra mode.
Based on the intra mode and the split utilized, two different classes of processing orders are used, which are referred to as normal and reversed order. In the normal order, the first sub-partition to be processed is the one containing the top-left sample of the CU and then continuing downwards (horizontal split) or rightwards (vertical split) . As a result, reference samples used to generate the sub-partitions prediction signals are only located at the left and above sides of the lines. On the other hand, the reverse processing order either starts with the sub-partition containing the bottom-left sample of the CU and continues upwards or starts with sub-partition containing the top-right sample of the CU and continues leftwards.
2.6. Multiple Transform Set (MTS)
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 4 shows the basis functions of the selected DST/DCT.
Table 4: transform types and basis functions
Figure PCTCN2021082963-appb-000002
There are two ways to enable MTS, one is explicit MTS; and the other is implicit MTS.
2.6.1. Implicit MTS
Implicit MTS is a recent tool in VVC. The variable implicitMtsEnabled is derived as follows:
Whether to enable implicit MTS is dependent on the value of a variabel implicitMtsEnabled. The variable implicitMtsEnabled is derived as follows:
– If sps_mts_enabled_flag is equal to 1 and one or more of the following conditions are true, implicitMtsEnabled is set equal to 1:
– IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT (that is, ISP is enabled)
– cu_sbt_flag is equal to 1 (that is, ISP is enabled) and Max (nTbW, nTbH) is less than or equal to 32
– sps_explicit_mts_intra_enabled_flag is equal to 0 (that is, explicity MTS is disabled) and CuPredMode [0] [xTbY] [yTbY] is equal to MODE_INTRA and lfnst_idx [x0] [y0] is equal to 0 and intra_mip_flag [x0] [y0] is equal to 0
– Otherwise, implicitMtsEnabled is set equal to 0.
The variable trTypeHor specifying the horizontal transform kernel and the variable trTypeVer specifying the vertical transform kernel are derived as follows:
– If one or more of the following conditions are true, trTypeHor and trTypeVer are set equal to 0 (e.g., DCT2) .
– cIdx is greater than 0 (that is, for a chroma component)
– IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT and lfnst_idx is not equal to 0
– Otherwise, if implicitMtsEnabled is equal to 1, the following applies:
– If cu_sbt_flag is equal to 1, trTypeHor and trTypeVer are specified in Table 40 depending on cu_sbt_horizontal_flag and cu_sbt_pos_flag.
– Otherwise (cu_sbt_flag is equal to 0) , trTypeHor and trTypeVer are derived as follows:
trTypeHor = (nTbW >= 4 && nTbW <= 16) ? 1: 0       (1188)
trTypeVer = (nTbH >= 4 && nTbH <= 16) ? 1: 0       (1189)
– Otherwise, trTypeHor and trTypeVer are specified in Table 39 depending on mts_idx.
The variables nonZeroW and nonZeroH are derived as follows:
– If ApplyLfnstFlagis equal to 1 and nTbW is greater than or equal to 4 and nTbH is greater than or equal to 4, the following applies:
nonZeroW = (nTbW == 4 || nTbH == 4) ? 4: 8         (1190)
nonZeroH = (nTbW == 4 || nTbH == 4) ? 4: 8         (1191)
– Otherwise, the following applies:
nonZeroW = Min (nTbW, (trTypeHor>0) ? 16: 32)        (1192)
nonZeroH = Min (nTbH, (trTypeVer>0) ? 16: 32)        (1193)
2.6.2. Explicit MTS
In order to control MTS scheme, one flag is used to specify whether explicit MTS for intra/inter is present in a bitstream. In addition, two separate enabling flags are specified at SPS level for intra and inter, respectively to indicate whether explicit MTS is enabled. When MTS is enabled at SPS, a CU level transform index may be signaled to indicate whether MTS is applied or not. Here, MTS is applied only for luma. The MTS CU level index (denoted by mts_idx) is signaled when the following conditions are satisfied.
- Both width and height smaller than or equal to 32
- CBF luma flag is equal to one
- Non-TS
- Non-ISP
- Non-SBT
- LFNST is disabled
- Non-zero coefficient is existing which is not in the DC position (top-left position of a block)
- There are no non-zero coefficients outside the top-left 16x16 region
If 1 st bin of mts_idx is equal to zero, then DCT2 is applied in both directions. However, if 1 st bin of the mts_idx is equal to one, then two more bins are additionally signaled to indicate the transform type for the horizontal and vertical directions, respectively. Transform and signaling mapping table as shown in Table 5. 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 5: signaling of MTS
Figure PCTCN2021082963-appb-000003
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.
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 signaled when the CU level MTS_CU_flag is not equal to zero. The block size limitation for transform skip is the same to that for MTS in JEM4, which indicate that transform skip is applicable for a CU when both block width and height are equal to or less than 32.
2.6.3. Zero-out in MTS
In VTM8, 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 of blocks with DCT2 transform applied are zeroed out for the transform blocks with size (width or height, orboth width and height) no smaller than 64, so that only the lower-frequency coefficients are retained, all other coefficients are forced to be zeros without being signaled. For example, for an M×N transform block, with M as the block width and N as the block height, when M is no smaller than 64, only the left 32 columns of transform coefficients are kept. Similarly, when N is no smaller than 64, only the top 32 rows of transform coefficients are kept.
High frequency transform coefficients of blocks with DCT8 or DST7 transform applied are zeroed out for the transform blocks with size (width or height, or both width and height) no smaller than 32, so that only the lower-frequency coefficients are retained, all other coefficients are forced to be zeros without being signaled. For example, for an M×N transform block, with M as the block width and N as the block height, when M is no smaller than 32, only the left 16 columns of transform coefficients are kept. Similarly, when N is no smaller than 32, only the top 16 rows of transform coefficients are kept.
2.7. Low frequency non-separable secondary transform (LFNST)
2.7.1. Non-Separable Secondary Transform (NSST) in JEM
In JEM, secondary transform is applied between forward primary transform and quantization (at encoder) and between de-quantization and invert primary transform (at decoder side) . As shown in FIG. 8, 4x4 (or 8x8) secondary transform is performed depends on block size. For example, 4x4 secondary transform is applied for small blocks (e.g., min (width, height) < 8) and 8x8 secondary transform is applied for larger blocks (e.g., min (width, height) > 4) per 8x8 block.
Application of a non-separable transform is described as follows using input as an example. To apply the non-separable transform, the 4x4 input block X
Figure PCTCN2021082963-appb-000004
is first represented as a vector
Figure PCTCN2021082963-appb-000005
Figure PCTCN2021082963-appb-000006
The non-separable transform is calculated as
Figure PCTCN2021082963-appb-000007
where
Figure PCTCN2021082963-appb-000008
indicates the transform coefficient vector, and Tis a 16x16 transform matrix. The 16x1 coefficient vector
Figure PCTCN2021082963-appb-000009
is subsequently re-organized as 4x4 block using the scanning order for that block (horizontal, vertical or diagonal) . The coefficients with smaller index will be placed with the smaller scanning index in the 4x4 coefficient block. There are totally 35 transform sets and 3 non-separable transform matrices (kernels) per transform set are used. The mapping from the intra prediction mode to the transform set is pre-defined. For each transform set, the selected non-separable secondary transform candidate is further specified by the explicitly signaled secondary  transform index. The index is signaled in a bit-stream once per Intra CU after transform coefficients.
2.7.2. Reduced Secondary Transform (LFNST)
The LFNST was introduced and 4 transform set (instead of 35 transform sets) mapping has been used in some embodiments. In some implementations, 16x64 (may further be reduced to 16x48) and 16x16 matrices are employed for 8x8 and 4x4 blocks, respectively. For notational convenience, the 16x64 (may further be reduced to 16x48) transform is denoted as LFNST8x8 and the 16x16 one as LFNST4x4. FIG. 9 shows an example of LFNST.
LFNST computation
The main idea of a Reduced Transform (RT) is to map an N dimensional vector to an R dimensional vector in a different space, where R/N (R< N) is the reduction factor.
The RT matrix is an R×N matrix as follows:
Figure PCTCN2021082963-appb-000010
where the R rows of the transform are Rbases of the N dimensional space. The invert transform matrix for RT is the transpose of its forward transform. The forward and invert RT are depicted in FIGS. 10A, 10B.
In this contribution, the LFNST8x8 with a reduction factor of 4 (1/4 size) is applied. Hence, instead of 64x64, which is conventional 8x8 non-separable transform matrix size, 16x64 direct matrix is used. In other words, the 64×16 invert LFNST matrix is used at the decoder side to generate core (primary) transform coefficients in 8×8 top-left regions. The forward LFNST8x8 uses 16×64 (or 8x64 for 8x8 block) matrices so that it produces non-zero coefficients only in the top-left 4×4 region within the given 8×8 region. In other words, if LFNST is applied then the 8×8 region except the top-left 4×4 region will have only zero coefficients. For LFNST4x4, 16x16 (or 8x16 for 4x4 block) direct matrix multiplication is applied.
An invert LFNST is conditionally applied when the following two conditions are satisfied:
a. Block size is greater than or equal to the given threshold (W>=4 &&H>=4)
b. Transform skip mode flag is equal to zero
If both width (W) and height (H) of a transform coefficient block is greater than 4, then the LFNST8x8 is applied to the top-left 8×8 region of the transform coefficient block. Otherwise, the LFNST4x4 is applied on the top-left min (8, W) × min (8, H) region of the transform coefficient block.
If LFNST index is equal to 0, LFNST is not applied. Otherwise, LFNST is applied, of which kernel is chosen with the LFNST index. The LFNST selection method and coding of the LFNST index are explained later.
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.
In 13 th JVET meeting, Intra Sub-Partitions (ISP) , as a new intra prediction mode, was adopted. When ISP mode is selected, LFNST is disabled and LFNST index is not signaled, because performance improvement was marginal even if LFNST is applied to every feasible partition block. Furthermore, disabling LFNST for ISP-predicted residual could reduce encoding complexity.
LFNST selection
ALFNST matrix is chosen from four transform sets, each of which consists of two transforms. Which transform set is applied is determined from intra prediction mode as the following:
1) If one of three CCLM modes is indicated, transform set 0 is selected.
2) Otherwise, transform set selection is performed according to Table 6.
Table 6: transform set selection table
Figure PCTCN2021082963-appb-000011
Figure PCTCN2021082963-appb-000012
The index to access the Table, denoted as IntraPredMode, have a range of [-14, 83] , which is a transformed mode index used for wide angle intra prediction.
LFNST matrices of reduced dimension
As a further simplification, 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 (FIG. 11) .
LFNST Signaling
The forward LFNST8x8 with R =16 uses 16×64 matrices so that it produces non-zero coefficients only in the top-left 4×4 region within the given 8×8 region. In other words, if LFNST is applied then the 8×8 region except the top-left 4×4 region generates only zero coefficients. As a result, LFNST index is not coded when any non-zero element is detected within 8x8 block region other than top-left 4×4 (which is depicted in FIG. 12) because it implies that LFNST was not applied. In such a case, LFNST index is inferred to be zero.
Zero-out range
Usually, before applying the invert LFNST on a 4×4 sub-block, any coefficient in the 4×4 sub-block may be non-zero. However, it is constrained that in some cases, some coefficients in the 4×4 sub-block must be zero before invert LFNST is applied on the sub-block.
Let nonZeroSize be a variable. It is required that any coefficient with the index no smaller than nonZeroSize when it is rearranged into a 1-D array before the invert LFNST must be zero.
When nonZeroSize is equal to 16, there is no zero-out constrain on the coefficients in the top-left 4×4 sub-block.
In some embodiments, when the current block size is 4×4 or 8×8, nonZeroSize is set equal to 8. For other block dimensions, nonZeroSize is set equal to 16.
2.8. Affine linear weighted intra prediction (ALWIP, a.k.a. Matrix based intra prediction)
Affine linear weighted intra prediction (ALWIP, a.k.a. Matrix based intra prediction (MIP) ) is used in some embodiments.
In some embodiments, two tests are conducted. In test 1, ALWIP is designed with a memory restriction of 8K bytes and at most 4 multiplications per sample. Test 2 is similar to test 1, but further simplifies the design in terms of memory requirement and model architecture.
● Single set of matrices and offset vectors for all block shapes.
● Reduction of number of modes to 19 for all block shapes.
● Reduction of memory requirement to 5760 10-bit values, that is 7.20 Kilobyte.
● Linear interpolation of predicted samples is carried out in a single step per direction replacing iterative interpolation as in the first test.
2.9. Sub-block transform
For an 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 decoded. 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. The SBT is not applied to the combined inter-intra mode.
In sub-block transform, position-dependent transform 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. 13. 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 corresponding transform is set as DCT-2. Therefore, the sub-block transform jointly specifies the TU tiling, cbf, and horizontal and vertical transforms of a residual block, which maybe considered a syntax shortcut for the cases that the major residual of a block is at one side of the block.
2.10. Scan Region based Coefficient Coding (SRCC)
SRCC has been adopted into AVS-3. With SRCC, a bottom-right position (SRx, SRy) as shown in FIGS. 14A-14B is signaled, and only coefficients inside a rectangle with four corners (0, 0) , (SRx, 0) , (0, SRy) , (SRx, SRy) are scanned and signaled. All coefficients out of the rectangle are zero.
2.11. Implicit Selection of Transform (IST)
As disclosed in PCT/CN2019/090261 (incorporated herein by reference) , an implicit selection of transform solution is given where the selection of transform matrices (either DCT2 for both horizontal and vertical transform or DST7 for both) is determined by the parity of non-zero coefficients in the transform block.
The proposed method is applied to luma component of intra coded blocks excluding those blocks coded with DT, and the allowed block sizes are from 4×4 to 32×32. The transform type is hidden in the transform coefficients. Specifically, the parity of the number of significant coefficients (e.g., non-zero coefficients) in one block is employed to represent the transform types. Odd number indicates DST-VII is applied, while even number indicates DCT-II is applied.
To remove the 32-point DST-7 introduced by IST, it is proposed to restrict the usage of IST based on the range of residual scanning region when SRCC is used. As shown in FIGS. 15A-15B, IST is disallowed when either x-or y-coordinate of the bottom-right position in the residual scanning region is no smaller than 16. That is, for this case, DCT-II is directly applied.
For another case when run-length coefficient coding is used, each non-zero coefficient needs checking. IST is disallowed when either x-or y-coordinate of one non-zero coefficient position is no smaller than 16.
The corresponding syntax changes are indicated using bold italicized and underlined texts as follows:
Figure PCTCN2021082963-appb-000013
Figure PCTCN2021082963-appb-000014
Figure PCTCN2021082963-appb-000015
Figure PCTCN2021082963-appb-000016
3. Examples of technical problems addressed by disclosed technical solutions
The current design of IST and MTS has the following problems:
1. TS mode in VVC is signaled in block level. However, DCT2 and DST7 are working well for residual blocks in camera captured sequences while for videos with screen content, transform skip (TS) mode is more frequently used compared to DST7. How to determine the usage of TS mode in a more efficient way needs to be studied.
2. In VVC, the maximum allowed TS block size is set to 32×32. How to support TS for large blocks needs to be further studied.
4. Example techniques and embodiments
The items listed below should be considered as examples to explain general concepts. These items should not be interpreted in a narrow way. Furthermore, these items can be combined in any manner. min (x, y) returns the smaller one of x and y.
Implicit determination of transform skip mode/identity transform
It is proposed to determine whether horizontal and/or vertical identity transform (IT) (e.g., the transform skip mode) is applied to a current first block according to decoded coefficients of one or multiple representative blocks. Such a method is called ‘implicit determination of IT’. When horizontal and vertical transforms are both ITs, transform skip (TS) mode is used for the current first block.
The ‘block’ may be a transform unit (TU) /prediction unit (PU) /coding unit (CU) /transform block (TB) /prediction block (PB) /coding block (CB) . The TU/PU/CU may include one or multiple color components, such as only luma component for the dual tree partitioning and current coded color component is luma; and two chroma components for the dual tree partitioning and current coded color component is chroma; or three color components for the single tree case.
1. The decoded coefficients may be associated with one or multiple representative blocks in the same color component or different color components to the current firstblock.
a. In one example, the representative block is the first block, and the decoded coefficients associated with the first block are used to determine the usage of IT on the first block.
b. In one example, the determination on the usage of IT to the first block may depend on the decoded coefficients of multiple blocks comprising at least one block not identical to the first block.
i. In one example, multiple blocks may comprise the first block.
ii. In one example, multiple blocks may comprise one block or plurality of blocks neighboring to the first block.
iii. In one example, multiple blocks may comprise one block or plurality of blocks with the same block dimensions as the first block.
iv. In one example, multiple blocks may comprise last N decoded block satisfying certain conditions, such as with the same prediction mode (e.g., all are intra-coded or IBC-coded) or the same dimensions to the current block, before the first block in the decoding order. N is an integer larger than 1.
v. In one example, multiple blocks may comprise one block or plurality of blocks not in the same color component as the first block.
1) In one example, the first block may be in the luma component. Multiple blocks may compriseblocks in chroma components (e.g., a second block in the Cb/B component, and a third block in the Cr/R component) .
a) In one example, the three blocks are in the same coding unit.
b) Alternatively, furthermore, implicit MTS is applied only to the luma blocks, not to chroma blocks.
2) In one example, the first block in the first color component and the plurality ofblocks not in the first component color component comprised in the multiple blocks may be at the corresponding or collocated locations of a picture.
2. The decoded coefficients utilized for determination of usage of IT are called representative coefficients.
a. In one example, representative coefficients only include coefficients unequal to zero (denoted as significant coefficients)
b. In one example, the representative coefficients may be modified before being used to determine the usage of IT.
i. For example, a representative coefficient may be clipped before being used to derive the transforms.
ii. For example, a representative coefficient may be scaled before being used to derive the transforms.
iii. For example, a representative coefficient may be added by an offset before being used to derive the transforms.
iv. For example, representative coefficients may be filtered before being used to derive the transforms.
v. For example, a coefficient or representative coefficients may be mapped to other values (e.g., via look up tables or dequantized) before being used to derive the transforms.
c. In one example, representative coefficients are all the significant coefficients in the representative blocks.
d. Alternatively, representative coefficients are partial of significant coefficients in the representative blocks.
i. In one example, representative coefficients are those decoded significant coefficients which are odd.
1) Alternatively, representative coefficients are those decoded significant coefficients which are even.
ii. In one example, representative coefficients are those decoded significant coefficients which are larger than or no smaller than a threshold.
1) Alternatively, representative coefficients are those decoded significant coefficients where magnitudes of which are larger than or no smaller than a threshold.
iii. In one example, representative coefficients are those decoded significant coefficients which are smaller than or no greater than a threshold.
1) Alternatively, representative coefficients are those decoded significant coefficients where magnitudes of which are smaller than or no greater than a threshold.
iv. In one example, representative coefficients are the first K (K>=1) decoded significant coefficients in the decoding order.
v. In one example, representative coefficients are the last K (K>=1) decoded significant coefficients in the decoding order.
vi. In one example, representative coefficients may be those at a predefined location in ablock.
1) In one example, representative coefficients may comprise only one coefficient located at (xPos, yPos) coordinate relative to the representative block. E. g. xPos = yPos = 0.
2) In one example, representative coefficients may comprise only one coefficient located at (xPos, yPos) coordinate relative to the representative block. And xPos and/or yPos satisfy the following conditions:
a) In one example, xPos is no greater than a threshold Tx (e.g., 31) and/or yPos is no greater than a threshold Ty (e.g., 31) .
b) In one example, xPos is no smaller than a threshold Tx (e.g., 32) and/or yPos is no smaller than a threshold Ty (e.g., 32) .
3) For example, the positions may depend on the dimensions of the block.
vii. In one example, representative coefficients may be those at a predefined position in the coefficient scanning order.
e. Alternatively, representative coefficients may also comprise those zero coefficients.
f. Alternatively, representative coefficients may be those derived from decoded coefficients, such as via clipping to a range, via quantization.
g. In one example, representative coefficients may be coefficients before the last significant coefficient (may include the last significant coefficient) .
3. The determination on the usage of IT to the first block may depend on the decoded luma coefficients of the first block.
a. Alternatively, furthermore, the determined usage of IT is only applied to the luma component of the first block while DCT2 is always used for chroma components of the first block.
b. Alternatively, furthermore, the determined usage of IT is applied to all color components of the first block. That is, the same transform matrix is applied to all color components of the first block.
4. The determination of usage of IT maydepend ona function of representative coefficients, such as a function with avalue V as the output, using representative coefficients as inputs.
a. In one example, V is derived as the number of representative coefficients.
i. Alternatively, V is derived as the sum of representative coefficients.
1) Alternatively, V is derived as the sum of levels (or their absolute values) of representative coefficients.
2) Alternatively, V may be derived as the level (or its absolute value) of one representative coefficient (such as the last one) .
3) Alternatively, V may be derived as the number of representative coefficients whose levels are even numbers.
4) Alternatively, V may be derived as the number of representative coefficients whose levels are odd numbers.
5) Alternatively, furthermore, the sum may be clipped to derive V.
6)
ii. Alternatively, V is derived as the output of a function where the function defines residual energy distribution.
1) In one example, the function returns the ratio of sum of absolute values of partial of representative coefficients compared to the absolute values of all representative coefficients.
2) In one example, the function returns the ratio of sum of square of absolute values of partial of representative coefficients compared to the sum of square of absolute values of all representative coefficients.
3) In one example, the function returns whether the energy of the first K representative coefficients times a scaling factor is greater than the energy of the first M (M>K) or all representative coefficients.
4) In one example, the function returns whether the energy of the representative coefficients in a first sub-region of a representative block times a scaling factor is greater than the energy of the representative coefficients in a second sub-region which contains the first sub-region and larger than the first sub-region.
a) Alternatively, the function returns whether the energy of the representative coefficients in a first sub-region of a representative block times a scaling factor is greater than the energy of the representative coefficients in a second sub-region which is non-overlapped from the first sub-region.
b)In one example, the first sub-region is top-left MxN sub-region (i.e., M=N=1, only DC) .
i. Alternatively, the first sub-region is the second sub-region excluding the top-left MxK sub-region (i.e., excluding DC) .
c) In one example, the first sub-region is top-left 4x4 sub-region.
5) In above examples, the energy is defined as sum of absolute values or sum of squares of values.
iii. Alternatively, V is derived as whether at least one representative coefficient is located outside a sub-region of a representative block.
1) In one example, the sub-region is defined as the top-left sub-region of the representative block, e.g., the top-left quarter of the representative block.
b. In one example, the determination of usage of IT may be dependent on the parity of V.
i. For example, if V is even, IT is used; and if V is odd, IT is not used.
1) Alternatively, if V is even, IT is used; and if V is odd, IT is not used.
ii. In one example, if V is smaller than a threshold T1, IT is used; and if V is larger than a threshold T2, IT is not used.
1) Alternatively, if V is greater than a threshold T1, IT is used; and if V is smaller than a threshold T2, IT is not used.
iii. For example, the thresholds may depend on the coded information, such as block dimensions, prediction mode.
iv. For example, the threshold may depend on the QP.
c. In one example, the determination of usage of IT may depend on a combination of V and other coding information (e.g, prediction mode, slice/picture types, block dimension) .
5. The determination of usage of IT may further depend on the coded information of current block.
a. In one example, the determination may further depend on the mode information (e.g., intra, intra or IBC) .
b. In one example, the transform determination may depend on a scan region which is a smallest rectangular covering all the significant coefficients (e.g., as depicted FIG. 14) .
i. In one example, if the size of the scan region (e.g. width multiplied with height) associated with current block is larger than a given threshold, a default transform (such as DCT-2) , including horizontal and vertical transform, may be utilized. Otherwise, the rules, such as defined in bullet 3 (e.g., IT when V is even and DCT-2 when V is odd) may be utilized.
ii. In one example, if the width of the scan region associated with current block is larger (or lower) than a given maximum width (e.g., 16) , a default horizontal transform (such as DCT-2) may be utilized. Otherwise, the rules, such as defined in bullet 3 may be utilized.
iii. In one example, if the height of the scan region associated with current block is larger (or lower) than a given maximum height (e.g., 16) , a default vertical transform (such as DCT-2) may be utilized. Otherwise, the rules, such as defined in bullet 3 may be utilized.
iv. In one example, the given size is L×K where L and K are integers, such as 16.
v. In one example, the default transform matrix may be DCT-2 or DST-7.
6. One or multiple of the methods disclosed in bullet 1-bullet 5 can only be applied to specific blocks.
a. For example, one or multiple of the methods disclosed in bullet 1-bullet 5 can only be applied to IBC-coded blocks and/or intra-coded blocks excluding DT.
b. For example, one or multiple of the methods disclosed in bullet 1-bullet 5 can only be applied to blocks with specific constrains on the coefficients.
i. A rectangle with four corners (0, 0) , (CRx, 0) , (0, CRy) , (CRx, CRy) is defined as the constrained rectangle, e.g., in the SRCC method. In one example, one or multiple of the methods disclosed in bullet 1-bullet 5 can be applied only if all coefficients out of the constrained rectangle are zero. E.g. CRx=CRy=16.
1) For example, CRx=SRx and CRy=SRy, where (SRx, SRy) is defined in SRCC as described in section 2.14.
2) Alternatively, furthermore, the above method is only applied when either block width or block height is greater than K.
a) In one example, K is equal to 16.
b) In one example, the above method is only applied when the block width is greater than K1 and K1 is equal to CRx; or when the block height is greater than K2 and K2 is equal to CRy.
ii. One or multiple of the methods may be applied only when the last non-zero coefficients (in forward scanning order) satisfies certain conditions, e.g., when the horizontal/vertical coordinator is no greater than a threshold (e.g., 16/32) .
7. When IT is determined to be not used, a default transform such as DCT-2 or DST-7 may be used instead.
a. Alternatively, multiple default transforms such as DCT-2 or DST-7 may be chosen from, when IT is determined to be not used.
8. For determination of transforms from a transform set to be applied to a block coded with prediction mode A, the representative coefficients (e.g., bullet 2) in one or multiple representative blocks (e.g., bullet 1) are used, and the transform set may be dependent on prediction mode A and/or one or more syntax elements and/or other coded information (e.g., usage of DT, block dimension) .
a. In one example, the transform set is {DCT2} .
b. In one example, the transform set is {IT} .
c. In one example, the transform set includes {DCT2, IT} .
d. In one example, the transform set includes {DCT2, DST7} .
e. In one example, when number of representative coefficients is even, DCT2 is used. Otherwise (when number of representative coefficients is odd) , DST7 or IT is used which may be determined by the prediction mode A and/or one or more syntax elements and/or other coded information.
i. In one example, if the prediction mode A is IBC, IT is always used when number of representative coefficients is odd.
ii. In one example, if the prediction mode A is intra and DT is applied, DCT2 is always used when number of representative coefficients is odd.
iii. In one example, if the prediction mode A is intra and DT is not applied, and the one or more syntax elements indicate the use of implicit determination of IT or usage of implicit determination of transform skip mode is enabled, IT is always used when number of representative coefficients is odd.
9. Whether to and/or how to apply the disclosed methods above may be signaled at a video region level, such as sequence level/picture level/slice level/tile group level/tile level/subpicture level.
a. In one example, it may be signaled (e.g., a flag) in sequence header/picture header/SPS/VPS/DCI/DPS/PPS/APS/slice header/tile group header.
i. Alternatively, furthermore, one or multiple syntax elements (e.g., one or multiple flags) may be signaled to specify whether the method ofimplicit determination of IT or usage of implicit determination of transform skip mode is enabled or not.
1) In one example, a first flag may be signaled to control the usage of the method of implicit determination of IT for IBC coded blocks in the video region level.
a) Alternatively, furthermore, the flag may be signaled under the condition check of whether IBC is enabled.
b) Alternatively, whether the usage of the method of implicit determination of IT for IBC coded blocks is enabled may be controlled by the same flag which is used to control the usage of implicit selection of transform (IST) mode for intra coded blocks excluding the derived tree (DT) mode.
2) In one example, a second flag may be signaled to control the usage of the method of implicit determination of IT for intra coded blocks (e.g., may exclude blocks with derived tree (DT) mode) in the video region level.
3) In one example, a third flag may be signaled to control the usage of the method of implicit determination of IT for inter coded blocks in the video region level.
4) In one example, a flag may be signaled to control the usage of the method of implicit determination of IT for intra coded blocks (e.g., may exclude blocks with DT mode) and inter coded blocks in the video region level.
5) In one example, a flag may be signaled to control the usage of the method of implicit determination of IT for IBC coded blocks and intra coded blocks (e.g., may exclude blocks with DT mode) in the video region level.
ii. Alternatively, furthermore, whenthe method ofimplicit determination of IT is enabled for a video region (e.g., the flag is true) , the following may be further applied:
1) In one example, for IBC coded blocks, if IT is used for a block, TS mode is applied; otherwise, DCT2 is used.
2) In one example, for intra coded blocks (e.g., may exclude blocks with DT mode) , if IT is used for a block, TS mode is applied; otherwise, DCT2 is used.
iii. Alternatively, furthermore, when the method of implicit determination of IT is disabled for a video region (e.g., the flag is false) , the following may be further applied:
1) In one example, for IBC and/or intra coded blocks, DCT-2 is used.
2) In one example, for intra coded blocks (e.g., excluding blocks with DT mode) , DCT-2 or DST-7 may be determined on-the-fly, such as by IST.
b. Multiple-level control of enabling/applying IT methods may be signaled in multiple video unit levels (e.g., sequence, picture, slice levels) .
i. In one example, a first video unit level is defined as the sequence level.
1) Alternatively, furthermore, a first syntax element (e.g., a flag) is signaled in sequence header/SPS/to indicate the usage of IT.
a) In one example, the first syntax element equal to 0 indicates that the Implicit Selected Transform Skip (ISTS) method cannot be used in the sequence. Otherwise (the  first syntax element equal to 1) indicates that the Implicit Selected Transform Skip (ISTS) method may be used in the sequence.
b) Alternatively, furthermore, the first syntax element may be conditionally signaled, such as according to “implicit selection of transform (IST) is enabled/ist_enable_flag being equal to 1” .
c) Alternatively, furthermore, when the first syntax element is not present, it is inferred to be a default value. For example, the IT is inferred to be disabled for the first video unit level.
ii. In one example, a second video unit level is defined as the picture/slice level.
1) Alternatively, furthermore, a second syntax element (e.g., a flag) is signaled in picture header (e.g., intra picture header and/or inter picture header) /slice header to indicate the usage of IT.
a) Alternatively, furthermore, the second syntax element may be conditionally signaled, such as according to “implicit selection of transform (IST) is enabled” or “ist_enable_flag being equal to 1” and/or “the IT method is enabled at the first video unit level (e.g., sequence) ” .
b) Alternatively, furthermore, when the second syntax element is not present, it is inferred to be a default value. For example, the IT is inferred to be disabled for the second video unit level.
c. A syntax element to indicate an allowed transform set may be signaled at a video unit level (e.g., picture) and it may be conditionally signaled according to whether the implicit selection of transform (IST) is enabled.
i. In one example, the syntax element (e.g., a flag or an index) is signaled in picture header (e.g., intra picture header and/or inter picture header) /slice header.
1) Alternatively, furthermore, N different allowed transform sets are supported, and the selection of allowed transform set is dependent on the syntax element.
a) In one example, N is set to 2.
b) In one example, the selection of transform set may depend on block information, such as the coding mode of a CU, or whether the CU is code with (Derived Tree) DT mode.
i. For example, DCT2 is always used for a CU with DT mode.
ii. For example, DCT2 is always used for a chroma block.
c) In one example, two sets are {DCT2, DST7} and {DCT2, IT} .
i. Alternatively, they are used for intra coded blocks.
ii. Alternatively, they are used for non-DT-coded intra coded blocks.
d) In one example, two sets are {DCT2} and {DCT2, IT} .
i. Alternatively, they are used for intra block copy (IBC) coded blocks.
ii. Alternatively, they are used for non-DT-coded intra block copy (IBC) coded blocks.
2) Alternatively, furthermore, if not present, it is inferred to be a default value. For example, the allowed transform set is inferred to be only one transform type (e.g., DCT2) is allowed.
ii. In one example, the syntax element (e.g., a flag or an index) is used to control the selection of transforms from an allowed transform set for blocks with certain coded mode.
1) In one example, it controls the selection of transforms from an allowed transform set for intra coded blocks/intra coded blocks excluding those with DT applied and excluding those with Pulse-Code Modulation (PCM) mode.
2) Alternatively, furthermore, for blocks with other coded mode, the allowed transform set may be independent from the syntax element.
a) In one example, for inter coded blocks, the allowed transform set is {DCT2} .
b) In one example, for IBC coded blocks, the allowed transform set is {DCT2} or {DCT2, IT} , which may depend on e.g., whether IST is enabled or whether IBC is enabled for current picture.
10. An indication of whether zero-out is applied to a transform block (including identity transform) is signaled in at a video region level, such as sequence level/picture level/slice level/tile group level/tile level/subpicture level.
a. In one example, it may be signaled (e.g., a flag) in sequence header/picture header/SPS/VPS/DCI/DPS/PPS/APS/slice header/tile group header.
b. In one example, when it specifies zero-out is enabled, then only IT transforms are allowed.
c. In one example, when it specifies zero-out is disabled, then only non-IT transforms are allowed.
d. Alternatively, furthermore, the binarization/context modeling/allowed range of last significant coefficient/bottom-right position (e.g., maximum X/Y coordinate relative to the top-left position of the block) in SRCC may be dependent on the indication.
11. Afirst rule (e.g., in above bullets 1-7) may be used to determine the usage of IT for a first block, and a second rule may be used to determine the transform type excluding IT.
a. In one example, the first rule may be defined as the residual energy distribution.
b. In one example, the second rule may be defined as the parity of representative coefficients.
Transform skip
12. Zero-out is applied to IT (e.g. TS) coded blocks, where the non-zero coefficients are restricted to be within certain sub-regions of a block.
a. In one example, the zero-out range for IT (e.g. TS) coded blocks is set to the top-right K*L sub-region of a block, where K is set to min (T1, W) and L is set to min(T2, H) where W and H are the block width/height, respectively and T1/T2 are two thresholds.
i. In one example, T1 and/or T2 may be set to 32 or 16.
ii. Alternatively, furthermore, the last non-zero coefficient shall be located within the K*L sub-region.
iii. Alternatively, furthermore, the bottom-right position (SRx, SRy) in the SRCC method shall be located within the K*L sub-region.
13. Multiple zero-out types of IT (e.g. TS) coded blocks are defined where each type corresponds to a sub-region of a block where non-zero coefficients are only existing in the sub-region.
a. In one example, non-zero coefficients are only existing in the top-left K0*L0 sub-region of a block.
b. In one example, non-zero coefficients are only existing in the top-right K1*L1 sub-region of a block.
i. Alternatively, furthermore, indication of the bottom-left position of the sub-region with non-zero coefficients may be signaled.
c. In one example, non-zero coefficients are only existing in the bottom-left K2*L2 sub-region of a block.
i. Alternatively, furthermore, indication of the top-rightposition of the sub-region with non-zero coefficients may be signaled.
d. In one example, non-zero coefficients are only existing in the bottom-right K3*L3 sub-region of a block.
i. Alternatively, furthermore, indication of the top-left position of the sub-region with non-zero coefficients may be signaled.
e. Alternatively, furthermore, an indication of the zero-out type of IT may be further explicitly signaled or derived on-the-fly.
14. IT (e.g. TS) is not used in a block when there is at least one significant coefficient outside the zero-out region defined by IT (e.g. TS) , for example, outside of the top-left K0*L0 sub-region of a block.
a. Alternatively, furthermore, for this case, a default transform is used.
15. IT (e.g. TS) is used in a block when there is at least one significant coefficient outside the zero-out region defined by another transform matrix (e.g. DST7/DCT2/DCT8) , for example, outside of the top-left K0*L0 sub-region of a block.
a. Alternatively, furthermore, for this case, TS mode is inferred to be used.
FIG. 16A-16D show multiple zero-out types of TS coded blocks. FIG. 16A shows top-left K0*L0 sub-region. FIG. 16B shows top-right K1*L1 sub-region. FIG. 16C shows bottom-left K2*L2 sub-region. FIG. 16D shows bottom-right K3*L3 sub-region.
General
16. The decision of transform matrix may be done in CU/CB-level or TU-level.
a. In one example, the decision is made in CU level where all TUs share the same transform matrix.
i. Alternatively, furthermore, when one CU is split to multiple TUs, coefficients in one TU (e.g., the first or the last TU) or partial or all TUs may be utilized to determine the transform matrix.
b. Whether to use the CU-level solution or TU-level solution may depend on the block size and/or VPDU size and/or maximum CTU size and/or coded information of one block.
i. In one example, when the block size is larger than the VPDU size, CU-level determination method may be applied.
17. Whether to and/or how to apply the disclosed methods above may depend on coding information which may include:
a. Block dimensions.
i. In one example, for blocks with width and/or height no greater than a threshold (e.g., 32) , the above-mentioned methods may be applied.
ii. In one example, for blocks with width and/or height no smaller than a threshold (e.g., 4) , the above-mentioned methods may be applied.
iii. In one example, for blocks with width and/or height smaller than a threshold (e.g., 64) , the above-mentioned methods may be applied.
b. QPs
c. Picture or slice type (such as I-frame or P/B-frame, I-slice or P/B-slice)
i. In one example, the proposed method may be enabled on I-frames but be disabled on P/B frames.
d. Structure partitioning method (single tree or dual tree)
i. In one example, for single tree partitioning applied slices/pictures/bricks/tiles, the above-mentioned methods may be applied.
e. Coding mode (such as inter mode/intra mode/IBC mode etc. )
i. In one example, for intra-coded blocks, the above-mentioned methods may be applied.
ii. In one example, for intra-coded blocks excluding those with DT applied and excluding those with PCM mode, the above-mentioned methods may be applied.
iii. In one example, for intra-coded blocks excluding those with DT applied and excluding those with PCM mode, and IBC coded blocks, the above-mentioned methods may be applied.
f. Coding methods (such as Intra Sub-block partition, Derived Tree (DT) method, etc. )
i. In one example, for intra-coded blocks with DT applied, the above-mentioned methods may be disabled.
ii. In one example, for intra-coded blocks with ISP applied, the above-mentioned methods may be disabled.
g. Color components
i. In one example, for luma blocks, the above-mentioned methods may be applied while for chroma blocks, it is not applied.
h. Intra-prediction mode (such as DC, vertical, horizontal, etc. )
i. Motion information (such as MV and reference index) .
j. Standard Profiles/Levels/Tiers
5. Example Embodiments
Below are some example embodiments for some of the invention aspects summarized above in Section 4, which can be applied to the VVC specification.
5.1. Embodiment #1
This section presents an example of a solution for Implicit Selection of Transform Skip mode (ISTS) . Basically, it follows the design principle of the Implicit Selection of Transform (IST) which has been adopted by AVS3. One high level flag is signaled in picture header to indicate ISTS is enabled. If it is enabled, the allowed transform set is set to {DCT-II TS} , and the determination of TS mode is based on the parity of number of non-zero coefficients in a block. Compared with HPM6.0, simulation results reportedly show that the proposed ISTS achieves 15.86%and 12.79%bitrate reduction for screen content coding under the AI and RA configurations, respectively. It is asserted that encoder and decoder complexity increasement is negligible.
5.1.1. Introduction
In current design of AVS3, only DCT-II is allowed for coding residual blocks for IBC modes. While for intra coded blocks excluding DT, IST is applied which allows a block to select either DCT-II or DST-VII according to the parity of number of non-zero coefficients. However, for screen content coding, DST-VII is much less efficient. Transform skip (TS) mode is an efficient coding method for screen content coding. How to allow the codec to support TS without being explicitly signaled for a block needs to be studied.
5.1.2. Proposed method
In some embodiments, an Implicit Selection of Transform Skip mode (ISTS) can be used. A high-level flag is signaled in picture header to indicate whether ISTS is enabled.
When ISTS is enabled, the allowed transform set is set to {DCT-II TS} , and the determination of TS mode is based on the parity of number of non-zero coefficients in a block, which is following the same design principle of IST. An odd number indicates TS is applied, while an even number indicates DCT-II is applied. ISTS is applied to CUs with sizes from 4×4 to 32×32 for either intra-coded or IBC-coded CUs, excluding those with DT applied or with PCM.
When ISTS is disabled and IST is enabled, the allowed transform set is set to {DCT-II DST-VII} which is the same as current AVS3 design.
5.1.3. Proposed changes to syntax tables, semantics and decoding process
Most relevant parts that have been added or modified are underlined in  boldface italics, and some of the deleted parts are indicated using [ [] ] .
7.1.2.2 Sequence Header
Table 14 Sequence Header Definition
Figure PCTCN2021082963-appb-000017
7.1.3.1 Picture header of I pictures
Table 27 Intra prediction header definition
Figure PCTCN2021082963-appb-000018
7.1.3.2 Picture header of PB pictures
Table 28 Inter prediction header definition
Figure PCTCN2021082963-appb-000019
Figure PCTCN2021082963-appb-000020
Document modification  7, 1, 7
Figure PCTCN2021082963-appb-000021
7.2.2.2 Sequence Header
Transformation skip enable flag ists_enable_flag
Binary variable. A value of '1' indicates that the implicitly selective transform skip method can be used; a value of  '0' indicates that the implicitly selective transform skip method should not be used. The value of IstsEnableFlag is  equal to ists_enable_flag. If ists_enable_flag does not exist in the bit stream, the value of IstsEnableFlag is 0.
7.2.3.1 Intra prediction header
Intra prediction mode conversion skip enable flag ph_ists_enable_flag
Binary variable. A value of '1' indicates that the luma intra prediction block and the luma block copy intra  prediction block in the current frame use the transform skip method; a value of '0' indicates the luma intra  prediction transform block and the luma block copy in the current frame The prediction block cannot use the  transform skip method. The value of PhIstsEnableFlag is equal to the value of ph_ists_enable_flag. If  ph_ists_enable_flag does not exist in the bit stream, the value of PhIstsEnableFlag is 0.
9.6.3 Inverse transform
This article defines the process of converting the M1×M2 transformation coefficient matrix CoeffMatrix into the residual sample matrix ResidueMatrix.
If the intra prediction mode is neither ‘Intra_Luma_PCM’ nor ‘Intra_Chroma_PCM’  or the current block uses  the block copy intra prediction mode, then:
If  PhIstsEnableFlag is 0, the current transform block is a luma intra prediction residual block, the values of M1 and M2 are both less than 64 and the value of IstTuFlag is equal to 1, then the residual sample matrix ResidueMatrix is derived according to the method defined by 0;
Otherwise, if PhIstsEnableFlag is 1, the current transform block is a luma intra prediction residual block or  a block copy intra prediction block, the values of M1 and M2 are both less than 64 and the value of IstTuFlag is  equal to 1, then the residual is derived according to the method defined by 0 Sample matrix ResidueMatrix;
Otherwise, the residual sample matrix ResidueMatrix is derived according to the method defined in 9.6.3.1.
Otherwise (the intra prediction mode is ‘Intra_Luma_PCM’ or ‘Intra_Chroma_PCM’ ) , the residual sample matrix ResidueMatrix is derived according to the method defined in 9.6.3.3.
9.6.3.4 Implicit inverse transform skip method
If the current transform block is a luma intra prediction residual block or a luma intra prediction residual  block, and PhIstsEnableFlag is 1, the values of M1 and M2 are both less than 64 and the value of  IstTuFlag is equal to 1, then:
1) Calculate the shift shift, shift is equal to 15 –BitDepth – ( (logM1 + logM2) >> 1)
2) If shift is greater than or equal to 0, the carry factor rnd_factor is equal to 1 << (shift –1) . Get the matrix  W from the transformation coefficient matrix:
wij = (CoeffMatrixij + rnd_factor) >> shift
3) If shift is less than 0, let shift = -shift. Get the matrix W from the transformation matrix:
wij = (CoeffMatrixij + rnd_factor) << shift
The matrix W is directly used as the residual sample matrix ResidueMatrix to end the implicit selective inverse  transformation operation.
FIG. 17 is a block diagram showing an example video processing system 1700 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of the system 1700. The system 1700 may include input 1702 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 1702 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.
The system 1700 may include a coding component 1704 that may implement the various coding or encoding methods described in the present document. The coding component 1704 may reduce the average bitrate of video from the input 1702 to the output of the coding component 1704 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 1704 may be either stored, or transmitted via a communication connected, as represented by the component 1706. The stored or communicated bitstream (or coded) representation of the video received at the input 1702 may be used by the component 1708 for generating pixel values or displayable video that is sent to a display interface 1710. 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.
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 SATA (serial advanced technology attachment) , PCI, IDE interface, and the like. The techniques described in the present document 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.
FIG. 21 is a block diagram of a video processing apparatus 2100. The apparatus 2100 may be used to implement one or more of the methods described herein. The apparatus 2100 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, and so on. The apparatus 2100 may include one or more processors 2102, one or more memories 2104 and video processing hardware 2106. The processor (s) 2102 may be configured to implement one or more methods described in the present document. The memory (memories) 2104 may be used for storing data and code used for implementing the methods and techniques described herein. The video processing hardware 2106 may be used to implement, in hardware circuitry, some techniques described in the present document.
FIG. 18 is a block diagram that illustrates an example video coding system 100 that may utilize the techniques of this disclosure.
As shown in FIG. 18, video coding system 100 may include a source device 110 and a destination device 120. Source device 110 generates encoded video data which may be referred to as a video encoding device. Destination device 120 may decode the encoded video data generated by source device 110 which may be referred to as a video decoding device.
Source device 110 may include a video source 112, a video encoder 114, and an input/output (I/O) interface 116.
Video source 112 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 114 encodes the video data from video source 112 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 116 may include a modulator/demodulator (modem) and/or a transmitter. The encoded video data may be transmitted directly to destination device 120 via I/O interface 116 through network 130a. The encoded video data may also be stored onto a storage medium/server 130b for access by destination device 120.
Destination device 120 may include an I/O interface 126, a video decoder 124, and a display device 122.
I/O interface 126 may include a receiver and/or a modem. I/O interface 126 may acquire encoded video data from the source device 110 or the storage medium/server 130b. Video decoder 124 may decode the encoded video data. Display device 122 may display the decoded video data to a user. Display device 122 may be integrated with the destination device 120, or may be external to destination device 120 which be configured to interface with an external display device.
Video encoder 114 and video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVM) standard and other current and/or further standards.
FIG. 19 is a block diagram illustrating an example of video encoder 200, which may be video encoder 114 in the system 100 illustrated in FIG. 18.
Video encoder 200 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 19, video encoder 200 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of video encoder 200. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.
The functional components of video encoder 200 may include a partition unit 201, a predication unit 202 which may include a mode select unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.
In other examples, video encoder 200 may include more, fewer, or different functional components. In an example, predication unit 202 may include an intra block copy (IBC) unit. The IBC unit may perform predication in an IBC mode in which at least one reference picture is a picture where the current video block is located.
Furthermore, some components, such as motion estimation unit 204 and motion compensation unit 205 may be highly integrated, but are represented in the example of FIG. 19 separately for purposes of explanation.
Partition unit 201 may partition a picture into one or more video blocks. Video encoder 200 and video decoder 300 may support various video block sizes.
Mode select unit 203 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 207 to generate residual block data and to a reconstruction unit 212 to reconstruct the encoded block for use as a reference picture. In some example, Mode select unit 203 may select a combination of intra and inter predication (CIIP) mode in which the predication is based on an inter predication signal and an intra predication signal. Mode select unit 203 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-predication.
To perform inter prediction on a current video block, motion estimation unit 204 may generate motion information for the current video block by comparing one or more reference frames from buffer 213 to the current video block. Motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from buffer 213 other than the picture associated with the current video block.
Motion estimation unit 204 and motion compensation unit 205 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.
In some examples, motion estimation unit 204 may perform uni-directional prediction for the current video block, and motion estimation unit 204 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. Motion estimation unit 204 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 204 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 205 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.
In other examples, motion estimation unit 204 may perform bi-directional prediction for the current video block, motion estimation unit 204 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 204 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 204 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 205 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.
In some examples, motion estimation unit 204 may output a full set of motion information for decoding processing of a decoder.
In some examples, motion estimation unit 204 may do not output a full set of motion information for the current video. Rather, motion estimation unit 204 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 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.
In one example, motion estimation unit 204 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 300 that the current video block has the same motion information as the another video block.
In another example, motion estimation unit 204 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 300  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.
As discussed above, video encoder 200 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 200 include advanced motion vector predication (AMVP) and merge mode signaling.
Intra prediction unit 206 may perform intra prediction on the current video block. When intra prediction unit 206 performs intra prediction on the current video block, intra prediction unit 206 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.
Residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by the minus sign) 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.
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 207 may not perform the subtracting operation.
Transform processing unit 208 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.
After transform processing unit 208 generates a transform coefficient video block associated with the current video block, quantization unit 209 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.
Inverse quantization unit 210 and inverse transform unit 211 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 212 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the predication unit 202 to produce a reconstructed video block associated with the current block for storage in the buffer 213.
After reconstruction unit 212 reconstructs the video block, loop filtering operation may be performed reduce video blocking artifacts in the video block.
Entropy encoding unit 214 may receive data from other functional components of the video encoder 200. When entropy encoding unit 214 receives the data, entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.
FIG. 20 is a block diagram illustrating an example of video decoder 300 which may be video decoder 114 in the system 100 illustrated in FIG. 18.
The video decoder 300 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 20, the video decoder 300 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of the video decoder 300. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.
In the example of FIG. 20, video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transformation unit 305, and a reconstruction unit 306 and a buffer 307. Video decoder 300 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 200 (FIG. 19) .
Entropy decoding unit 301 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data) . Entropy decoding unit 301 may decode the entropy coded video data, and from the entropy decoded video data, motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. Motion compensation unit 302 may, for example, determine such information by performing the AMVP and merge mode.
Motion compensation unit 302 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.
Motion compensation unit 302 may use interpolation filters as used by video encoder 20 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. Motion compensation unit 302 may determine the interpolation filters used by  video encoder 200 according to received syntax information and use the interpolation filters to produce predictive blocks.
Motion compensation unit 302 may uses 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-encoded block, and other information to decode the encoded video sequence.
Intra prediction unit 303 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. Inverse quantization unit 303 inverse quantizes, e.g., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 301. Inverse transform unit 303 applies an inverse transform.
Reconstruction unit 306 may sum the residual blocks with the corresponding prediction blocks generated by motion compensation unit 202 or intra-prediction unit 303 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 307, which provides reference blocks for subsequent motion compensation/intra predication and also produces decoded video for presentation on a display device.
Alisting of solutions preferred by some embodiments is provided next.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., item 1) .
1. A video processing method (e.g., method 2200 depicted in FIG. 22) comprising: making a determination (2202) , for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing (2204) the conversion based on the determination, wherein the rule specifies a relationship between the determination and representative coefficients from decoded coefficients of one or more representative blocks of the video.
2. The method of solution 1, wherein the one or more representative blocks belong to a color component to which the video block belongs.
3. The method of solution 1, wherein the one or more representative blocks belong to a different color component than that of the video block.
4. The method of any of solutions 1-3, wherein the one or more representative blocks correspond to the video block.
5. The method of any of solutions 1-3, wherein the one or more representative blocks exclude the video block.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., items 1 and 2) .
6. The method of any of solutions 1-5, wherein the representative coefficients comprise decoded coefficients having non-zero values.
7. The method of any of solutions 1-6, wherein the relationship specifies to use the representative coefficients based on modified coefficients that are determined by modifying the representative coefficients.
8. The method of any of solutions 1-7, wherein the representative coefficients correspond to significant coefficients of the decoded coefficients.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., item 3) .
9. A video processing method, comprising: making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination, wherein the rule specifies a relationship between the determination and decoded luma coefficients of the video block.
10. The method of solution 1, wherein performing the conversion comprises applying the horizontal or the vertical identity transform luma component of the video block and applying DCT2 to chroma components of the video block.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., items 1 and 4) .
11. A video processing method, comprising: making a determination, for a conversion between a video block of a video and a coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination, wherein the rule specifies a relationship between the  determination and a value V associates with representative coefficients of decoded coefficients or a representative block.
12. The method of solution 11, wherein V is equal to a number of representative coefficients.
13. The method of solution 11, wherein V is equal to a sum of values of the representative coefficients.
14. The method of solution 11, wherein V is a function of residual energy distribution of the representative coefficients.
15. The method of any of solutions 11-14, wherein the relationship is defined with respect to a parity of the value V.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., item 5) .
16. The method of any of above solutions, wherein the rule specifies that the relationship is further dependent on a coded information of the video block.
17. The method of solution 16, wherein the coded information is a coding mode of the video block.
18. The method of solution 16, wherein the coded information includes a smallest rectangular region that covers all significant coefficients of the video block.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., item 6) .
19. The method of any of above solutions, wherein the determination is performed due to the video block having a mode or a constraint on coefficients.
20. The method of solution 19, wherein the type corresponds to an intra-block copy (IBC) mode.
21. The method of solution 19, wherein the constraint on coefficients is such that coefficients outside a rectangular interior of the current block are zero.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., item 7) .
22. The method of any of solutions 1-21, wherein, in case that the determination is not to use the horizontal and the vertical identity transform, the conversion is performed using a DCT-2 or a DST-7 transform.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., items 9) .
23. The method of any of solutions 1-22, wherein one or more syntax fields in the coded representation is indicative of whether the method is enabled for the video block.
24. The method of solution 23, wherein the one or more syntax fields are included at a sequence level or a picture level or a slice level or a tile group level or a tile level or subpicture level.
25. The method of any of solutions 23-24, wherein the one or more syntax fields are included in a slice header or a picture header.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., items 1 and 8) .
26. A video processing method, comprising: determining that one or more syntax fields are present in a coded representation of a video wherein the video contains one or more video blocks; making a determination, based on the one or more syntax fields, whether a horizontal or a vertical identity transform is enabled for video blocks in the video.
27. The method of solution 1, wherein in response that the one or more syntax fields indications implicit determination of transform skip mode is enabled, making a determination, for a conversion between a first video block of the video and the coded representation of the video, whether a horizontal or a vertical identity transform is applied to the video block, based on a rule; and performing the conversion based on the determination, wherein the rule specifies a relationship between the determination and representative coefficients from decoded coefficients of one or more representative blocks of the video.
28. The method of solution 27, the first video block is coded with an intra block copy mode.
29. The method of solution 27, the first video block is coded with an intra mode.
30. The method of solution 27, the first video block is coded with intra mode but not a derived tree (DT) mode.
31. The method of solution 27, the determination is based on the parity of number of non-zero coefficients in the first video block.
32. The method of solution 27, when the parity of number of non-zero coefficients in the first video block is even, horizontal and vertical identity transform is applied to the first video block.
33. The method of solution 27, when the parity of number of non-zero coefficients in the first video block is even, horizontal and vertical identity transform is not applied to the first video block.
34. The method of solution 33, DCT-2 is applied to the first video block.
35. The method of solution 32, further including in response that the one or more syntax fields indications implicit determination of transform skip mode is disabled, horizontal and vertical identity transform is not applied to the first video block.
36. The method of solution 32, wherein DCT-2 is applied to the first video block.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., items 9, 10) .
37. A method of video processing, comprising: making a first determination regarding whether use of an identity transform is enabled for a conversion between a video block of a video and a coded representation of the video; making a second determination regarding whether a zero-out operation is enabled during the conversion; and performing the conversion based on the first determination and the second determination.
38. The method of solution 37, wherein one or more syntax fields at a first level in the coded representation are indicative of the first determination.
39. The method of any of solutions 37-38, wherein one or more syntax fields at a second level in the coded representation are indicative of the second determination.
40. The method of any of solutions 38-39, wherein the first level and the second level correspond to a header field at sequence or picture level or a parameter set at a sequence level or a picture level or an adaptation parameter set.
41. The method of any of solutions 37-40, wherein the conversion uses either the identify transform or the zero-out operation but not both.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., items 12 and 13) .
42. A video processing method, comprising: performing a conversion between a video block of a video and a coded representation of the video; wherein the video block is represented  in the coded representation as a coded block, wherein non-zero coefficients of the coded block are restricted to be within one or more sub-regions; and wherein an identity transform is applied for generating the coded block.
43. The method of solution 1, wherein the one or more sub-regions comprises a top-right sub-region of the video block having a dimension K x L, where K and L are integers, and K is min(T1, W) and L is min (T2, H) wherein W and H are width and height of the video block, respectively and T1 and T2 are thresholds.
44. The method of any of solutions 42-43, wherein the coded representation indicates the one or more sub-regions.
The following solutions show example embodiments of techniques discussed in the previous section (e.g., items 16 and 17) .
45. The method of any of solutions 1-44, wherein the video region comprises a video coding unit.
46. The method of solutions 1-45, wherein the video region is a prediction unit or a transform unit.
47. The method of any of solutions 1-46, wherein the video block meets a certain dimension condition.
48. The method of any of solutions 1-47, wherein the video block is coded using a pre-specified quantization parameter range.
49. The method of any of solutions 1-48, wherein the video region comprises a video picture.
50. The method of any of solutions 1 to 49, wherein the conversion comprises encoding the video into the coded representation.
51. The method of any of solutions 1 to 49, wherein the conversion comprises decoding the coded representation to generate pixel values of the video.
52. A video decoding apparatus comprising a processor configured to implement a method recited in one or more of solutions 1 to 51.
53. A video encoding apparatus comprising a processor configured to implement a method recited in one or more of solutions 1 to 51.
54. A computer program product having computer code stored thereon, the code, when executed by a processor, causes the processor to implement a method recited in any of solutions 1 to 51.
55. A method, apparatus or system described in the present document.
FIG. 23 is a flowchart representation of a method for video processing in accordance with the present technology. The method 2300 includes, at operation 2310, performing a conversion between a video and a bitstream of the video according to a rule. The rule specifies that usage of an identity transform mode for the conversion is indicated in at least a first video unit level and a second video unit level.
In some embodiments, the identity transform mode comprises a transform skip mode. In the transform skip mode, a residual of a prediction error between the current video block and a reference video block is represented in the bitstream without applying a transformation. In some embodiments, the first video unit level comprises a sequence level. In some embodiments, a first syntax element is included in a sequence header or a sequence parameter set to indicate usage of an implicitly selected transform skip mode in the sequence level. In some embodiments, the first syntax element being equal to 0 indicates that the implicitly selected transform skip mode is disabled in the sequence level. In some embodiments, the first syntax element being equal to 1 indicates that the implicitly selected transform skip mode is enabled in the sequence level.
In some embodiments, the first syntax element is conditionally included in the sequence header or the sequence parameter set based on a first syntax flag indicating whether an implicit selection of transform is enabled in the sequence level. In some embodiments, the first syntax element is included in the sequence header or the sequence parameter set in response to the first syntax flag indicating the implicit selection of transform is enabled in the sequence level. In some embodiments, a default value of the first syntax element is inferred in response to the first syntax element being omitted in the bitstream. In some embodiments, the default value indicates that the implicitly selected transform skip mode is disabled in the sequence level.
In some embodiments, the second video unit level comprises a picture level or a slice level. In some embodiments, a second syntax element is included in a picture header or a slice header to indicate usage of an implicitly selected transform skip mode in the picture level or the slice level, the picture header comprising at least an intra picture header or an inter picture header. In some embodiments, the second syntax element is conditionally indicated based on the first  syntax element in the first video unit level or a syntax flag. In some embodiments, a default value of the second syntax element is inferred in response to the second syntax element being omitted in the bitstream. In some embodiments, the default value indicates that the usage of the identity transform is disabled in the second video unit level.
FIG. 24 is a flowchart representation of a method for video processing in accordance with the present technology. The method 2400 includes, at operation 2410, performing a conversion between a video block of a video and a bitstream of the video according to a rule. The rule specifies that a syntax element in a video unit level is used to indicate an allowed transform set for the conversion.
In some embodiments, the video unit level comprises a picture level. In some embodiments, the syntax element is conditionally included based on whether an implicit selection of transform is enabled in the video unit level. In some embodiments, the syntax element comprises a flag or an index. The syntax element is included in a picture header or a slice header, the picture header comprising at least an intra picture header or an inter picture header.
In some embodiments, N transform sets are supported for the conversion, and a selection of the allowed transform set from the N transform sets is based on the syntax element. In some embodiments, N is equal to 2. In some embodiments, the selection of the allowed transform set is further based on coding information of the video block, the coding information comprising at least a coding mode or a partitioning mode of the video block. In some embodiments, a discrete cosine transform type-II (DCT2) is always in case the video block is coded using a derived tree mode. In some embodiments, a discrete cosine transform type-II (DCT2) is always used in case the video block is a chroma block. In some embodiments, the N transform sets comprise {DCT2, DST7} and {DCT2, IT} . DCT2 represents discrete cosine transform type-II, DST7 represents discrete sine transform type 7, and IT represents Implicit Transform. In some embodiments, the N transform sets are applicable to intra coded blocks. In some embodiments, the N transform sets are applicable to intra coded blocks that are coded using non-derived-tree coding mode. In some embodiments, the N transform sets comprise {DCT2} and {DCT2, IT} . DCT2 represents discrete cosine transform type-II and IT represents Implicit Transform. In some embodiments, the N transform sets are applicable to intra block  copy (IBC) coded blocks. In some embodiments, the N transform sets are applicable to intra block copy (IBC) coded blocks that are coded using non-derived-tree coding mode.
In some embodiments, a default value is inferred in response to the syntax element being omitted in the bitstream indicating a default allowed transform set. In some embodiments, the syntax element comprises a flag or an index. The syntax element is used to indicate the allowed transform set for the conversion in response to the video block being coded using a particular coding mode. In some embodiments, the syntax element is used for the conversion in case the video block is coded using an intra coding mode or using an intra coding mode that excludes a derived tree coding mode or a pulse-code modulation coding mode. In some embodiments, the allowed transform set for the conversion is independent from the syntax element in case the video block is coded without using an intra coding mode. In some embodiments, the allowed transform set comprises {DCT2} in case the video block is an inter coded block. In some embodiments, the allowed transform set comprises {DCT2, IT} in case the video block is an inter block copy (IBC) coded block.
FIG. 25 is a flowchart representation of a method for video processing in accordance with the present technology. The method 2500 includes, at operation 2510, performing a conversion between a video block of a video and a bitstream of the video according to a rule. The rule specifies that usage of an identity transform mode for the conversion of the video block is determined based on a function associated with an energy of representative coefficients of one or more representative blocks of the video.
In some embodiments, the identity transform mode comprises a transform skip mode. In the transform skip mode, a residual of a prediction error between the video block and a reference video block is represented in the bitstream without applying a transformation. In some embodiments, the function returns whether an energy of first K representative coefficients times a scaling factor is greater than an energy of first M representative coefficients or all representative coefficients, where M is greater than K. In some embodiments, the function returns whether an energy of representative coefficients in a first subregion of a representative block times a scaling factor is greater than an energy of representative coefficients in a second subregion that includes the first sub-region and bigger than the first sub-region. In some embodiments, the function returns whether an energy of representative coefficients in a first  subregion of a representative block times a scaling factor is greater than an energy of representative coefficients in a second subregion that does not overlap with the first subregion.
In some embodiments, the first subregion comprises a top-left M×N region in the video block. In some embodiments, M = N = 1. In some embodiments, the first subregion is the second subregion excluding a top-left M×N region. In some embodiments, the first subregion is a top-left 4×4 region. In some embodiments, the energy of the representative coefficients is defined as a sum of absolute values of the representative coefficients or a sum of squares of the representative coefficients.
In some embodiments, applicability of the one or more above methods is based on coding information of the video block. In some embodiments, the method is applicable to the video block in case a width or a height of the video block is smaller than a threshold. In some embodiments, the threshold is 64. In some embodiments, the method is applicable to the video block in case the video block is intra-coded without using a derived tree mode or a pulse-code modulation mode. In some embodiments, the method is applicable to the video block in case the video block is intra-block copy (IBC) coded.
In some embodiments, the conversion comprises encoding the video into the bitstream. In some embodiments, the conversion comprises decoding the bitstream to generate the video.
In the present document, 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.
The disclosed and other solutions, examples, embodiments, modules and the functional operations described in this document can be implemented in digital electronic circuitry, or in  computer software, firmware, or hardware, including the structures disclosed in this document 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, e.g., 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, acomputer, 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.
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.
The processes and logic flows described in this document 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., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit) .
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., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and CD ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
While this patent document 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 particular techniques. Certain features that are described in this patent document 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.
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 this patent document should not be understood as requiring such separation in all embodiments.
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 this patent document.

Claims (63)

  1. A video processing method, comprising:
    performing a conversion between a video and a bitstream of the video according to a rule,
    wherein the rule specifies that usage of an identity transform mode for the conversion is indicated in at least a first video unit level and a second video unit level.
  2. The method of claim 1, wherein the identity transform mode comprises a transform skip mode, wherein, in the transform skip mode, a residual of a prediction error between the current video block and a reference video block is represented in the bitstream without applying a transformation.
  3. The method of claim 1 or 2, wherein the first video unit level comprises a sequence level.
  4. The method of claim 3, wherein a first syntax element is included in a sequence header or a sequence parameter set to indicate usage of an implicitly selected transform skip mode in the sequence level.
  5. The method of claim 3 or 4, wherein the first syntax element being equal to 0 indicates that the implicitly selected transform skip mode is disabled in the sequence level.
  6. The method of claim 3 or 4, wherein the first syntax element being equal to 1 indicates that the implicitly selected transform skip mode is enabled in the sequence level.
  7. The method of any of claims 4 to 6, wherein the first syntax element is conditionally included in the sequence header or the sequence parameter setbased on a first syntax flag indicating whether an implicit selection of transform is enabled in the sequence level.
  8. The method of claim 7, wherein the first syntax element is included in the sequence header or the sequence parameter set in response to the first syntax flag indicating the implicit selection of transform is enabled in the sequence level.
  9. The method of claim 7 or 8, wherein a default value of the first syntax element is inferred in response to the first syntax element being omitted in the bitstream.
  10. The method of claim 8, wherein the default value indicates that the implicitly selected transform skip mode is disabled in the sequence level.
  11. The method of any of claims 1 to 10, wherein the second video unit level comprises a picture level or a slice level.
  12. The method of claim 11, wherein a second syntax element is included in a picture header or a slice header to indicate usage of an implicitly selected transform skip mode in the picture level or the slice level, the picture header comprising at least an intra picture header or an inter picture header.
  13. The method of claim 12, wherein the second syntax element is conditionally indicated based on the first syntax element in the first video unit level or a syntax flag.
  14. The method of claim 12, wherein a default value of the second syntax element is inferred in response to the second syntax element being omitted in the bitstream.
  15. The method of claim 14, wherein the default value indicates that the usage of the identity transform is disabled in the second video unit level.
  16. A video processing method, comprising:
    performing a conversion between a video block of a video and a bitstream of the video according to a rule,
    wherein the rule specifies that a syntax element in a video unit level is used to indicate an allowed transform set for the conversion.
  17. The method of claim 16, wherein the video unit level comprises a picture level.
  18. The method of claim 16 or 17, wherein the syntax element is conditionally included based on whether an implicit selection of transform is enabled in the video unit level.
  19. The method of any of claims 16 to 18, wherein the syntax element comprises a flag or an index, and wherein the syntax element is included in a picture header or a slice header, the picture header comprising at least an intra picture header or an inter picture header.
  20. The method of any of claims 16 to 19, wherein N transform sets are supported for the conversion, and a selection of the allowed transform set from the N transform sets is based on the syntax element.
  21. The method of claim 20, wherein N is equal to 2.
  22. The method of claim 20 or 21, wherein the selection of the allowed transform set is further based on coding information of the video block, the coding information comprising at least a coding mode or a partitioning mode of the video block.
  23. The method of claim 22, wherein a discrete cosine transform type-II (DCT2) is always in case the video block is coded using a derived tree mode.
  24. The method of claim 22, wherein a discrete cosine transform type-II (DCT2) is always used in case the video block is a chroma block.
  25. The method of any of claims 20 to 24, wherein the N transform sets comprise {DCT2, DST7} and {DCT2, IT} , wherein DCT2 represents discrete cosine transform type-II, DST7 represents discrete sine transform type 7, and IT represents Implicit Transform.
  26. The method of claim 25, wherein the N transform sets are applicable to intra coded blocks.
  27. The method of claim 25, wherein the N transform sets are applicable to intra coded blocks that are coded using non-derived-tree coding mode.
  28. The method of any of claims 20 to 24, wherein the N transform sets comprise {DCT2} and {DCT2, IT} , wherein DCT2 represents discrete cosine transform type-IIand IT represents Implicit Transform.
  29. The method of claim 28, wherein the N transform sets are applicable to intra block copy (IBC) coded blocks.
  30. The method of claim 28, wherein the N transform sets are applicable to intra block copy (IBC) coded blocks that are coded using non-derived-tree coding mode.
  31. The method of any of claims 16 to 30, wherein a default value is inferred in response to the syntax element being omitted in the bitstream indicating a default allowed transform set.
  32. The method of any of claims 16 to 31, wherein the syntax element comprises a flag or an index, and wherein the syntax element is used to indicate the allowed transform set for the conversion in response to the video block being coded using a particular coding mode.
  33. The method of claim 32, wherein the syntax element is used for the conversion in case the video block is coded using an intra coding mode or using an intra coding mode that excludes a derived tree coding mode or a pulse-code modulation coding mode.
  34. The method of claim 32 or 33, wherein the allowed transform set for the conversion is independent from the syntax element in case the video block is coded without using an intra coding mode.
  35. The method of claim 34, wherein the allowed transform set comprises {DCT2} in case the video block is an inter coded block.
  36. The method of claim 34, wherein the allowed transform set comprises {DCT2, IT} in case the video block is an inter block copy (IBC) coded block.
  37. A video processing method, comprising:
    performing a conversion between a video block of a video and a bitstream of the video according to a rule,
    wherein the rule specifies that usage of an identity transform mode for the conversion of the video block is determined based on a function associated with an energy of representative coefficients of one or more representative blocks of the video.
  38. The method of claim 37, wherein the identity transform mode comprises a transform skip mode, wherein, in the transform skip mode, a residual of a prediction error between the video block and a reference video block is represented in the bitstream without applying a transformation.
  39. The method of claim 37 or 38, wherein the function returns whether an energy of first K representative coefficients times a scaling factor is greater than an energy of first M representative coefficients or all representative coefficients, wherein M is greater than K.
  40. The method of claim 37 or 38, wherein the function returns whether an energy of representative coefficients in a first subregion of a representative block times a scaling factor is greater than an energy of representative coefficients in a second subregion that includes the first sub-region and bigger than the first sub-region.
  41. The method of claim 37 or 38, wherein the function returns whether an energy of representative coefficients in a first subregion of a representative block times a scaling factor is greater than an energy of representative coefficients in a second subregion that does not overlap with the first subregion.
  42. The method of claim 40 or 41, wherein the first subregion comprises a top-left M×N region in the video block.
  43. The method of claim 42, wherein M = N = 1.
  44. The method of claim 40 or 41, wherein the first subregion is the second subregion excluding a top-left M×N region.
  45. The method of claim 40 or 41, wherein the first subregion is a top-left 4×4 region.
  46. The method of any of claims 37 to 45, wherein the energy of the representative coefficients is defined as a sum of absolute values of the representative coefficients or a sum of squares of the representative coefficients.
  47. The method of any of claims 1 to 45, wherein applicability of the method is based on coding information of the video block.
  48. The method of claim 47, wherein the method is applicable to the video block in case a width or a height of the video block is smaller than a threshold.
  49. The method of claim 48, wherein the threshold is 64.
  50. The method of claim 47, wherein the method is applicable to the video block in case the video block is intra-coded without using a derived tree mode or a pulse-code modulation mode.
  51. The method of claim 47, wherein the method is applicable to the video block in case the video block is intra-block copy (IBC) coded.
  52. The method of any of claims 1 to 51, wherein the conversion comprises encoding the video into the bitstream.
  53. The method of any of claims 1 to 51, wherein the conversion comprises decoding the video from the bitstream.
  54. A method for storing bitstream of a video, comprising:
    generating a bitstream of the video from a video block of a video according to a rule,
    wherein the rule specifies that usage of an identity transform mode is indicated in at least a first video unit level and a second video unit level for the conversion.
  55. A method for storing bitstream of a video, comprising:
    generating a bitstream of the video from a video block of a video according to a rule,
    wherein the rule specifies that a syntax element in a video unit level is used to indicate an allowed transform set for the conversation.
  56. A method for storing bitstream of a video, comprising:
    generating a bitstream of the video from a video block of a video according to a rule,
    wherein the rule specifies that usage of an identity transform mode for the video block is determined based on a function associated with an energy of representative coefficients of one or more representative blocks of the video.
  57. A video decoding apparatus comprising a processor configured to implement a method recited in any of claims 1 to 56.
  58. A video encoding apparatus comprising a processor configured to implement a method recited in any of claims 1 to 56.
  59. A computer program product having computer code stored thereon, the code, when executed by a processor, causes the processor to implement a method recited in any of claims 1 to 56.
  60. 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:
    generating a bitstream of the video from a video block of a video according to a rule,
    wherein the rule specifies that usage of an identity transform mode is indicated in at least a first video unit level and a second video unit level for the conversion.
  61. 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:
    generating a bitstream of the video from a video block of a video according to a rule,
    wherein the rule specifies that a syntax element in a video unit level is used to indicate an allowed transform set for the conversation.
  62. 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:
    generating a bitstream of the video from a video block of a video according to a rule,
    wherein the rule specifies that usage of an identity transform mode for the video block is determined based on a function associated with an energy of representative coefficients of one or more representative blocks of the video.
  63. A method, apparatus or system described in the present document.
PCT/CN2021/082963 2020-03-25 2021-03-25 Implicit determination of transform skip mode WO2021190594A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202180024661.6A CN115699737A (en) 2020-03-25 2021-03-25 Implicit determination of transform skip mode

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNPCT/CN2020/081198 2020-03-25
CN2020081198 2020-03-25

Publications (1)

Publication Number Publication Date
WO2021190594A1 true WO2021190594A1 (en) 2021-09-30

Family

ID=77890929

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/082963 WO2021190594A1 (en) 2020-03-25 2021-03-25 Implicit determination of transform skip mode

Country Status (2)

Country Link
CN (1) CN115699737A (en)
WO (1) WO2021190594A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013166395A2 (en) * 2012-05-04 2013-11-07 Qualcomm Incorporated Transform skipping and lossless coding unification
WO2014052775A1 (en) * 2012-09-29 2014-04-03 Motorola Mobility Llc Adaptive transform options for scalable extension
US20180288439A1 (en) * 2017-03-31 2018-10-04 Mediatek Inc. Multiple Transform Prediction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013166395A2 (en) * 2012-05-04 2013-11-07 Qualcomm Incorporated Transform skipping and lossless coding unification
WO2014052775A1 (en) * 2012-09-29 2014-04-03 Motorola Mobility Llc Adaptive transform options for scalable extension
US20180288439A1 (en) * 2017-03-31 2018-10-04 Mediatek Inc. Multiple Transform Prediction

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
H. E. EGILMEZ (QUALCOMM), V. SEREGIN, M. KARCZEWICZ (QUALCOMM): "AHG17/Non-CE6: High-level syntax for MTS and Implicit Transform Derivations", 16. JVET MEETING; 20191001 - 20191011; GENEVA; (THE JOINT VIDEO EXPLORATION TEAM OF ISO/IEC JTC1/SC29/WG11 AND ITU-T SG.16 ), 25 September 2019 (2019-09-25), XP030217737 *
Y. WANG (BYTEDANCE), H. LIU (BYTEDANCE), L. ZHANG (BYTEDANCE), K. ZHANG (BYTEDANCE), Z. DENG (BYTEDANCE), Y. WANG (BYTEDANCE): "Non-CE6: On implicit MTS", 16. JVET MEETING; 20191001 - 20191011; GENEVA; (THE JOINT VIDEO EXPLORATION TEAM OF ISO/IEC JTC1/SC29/WG11 AND ITU-T SG.16 ), 29 September 2019 (2019-09-29), XP030217497 *

Also Published As

Publication number Publication date
CN115699737A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
US20220094930A1 (en) Simplified transform coding tools
JP7256293B2 (en) Using Quadratic Transforms in Coded Video
US11490086B2 (en) Block dimension settings of transform skip mode
US20230017146A1 (en) Implicit multiple transform set signaling in video coding
WO2021238828A1 (en) Indication of multiple transform matrices in coded video
JP7444970B2 (en) Using default and user-defined scaling matrices
WO2021110018A1 (en) Separable secondary transform processing of coded video
US11546595B2 (en) Sub-block based use of transform skip mode
WO2020228716A1 (en) Usage of transquant bypass mode for multiple color components
WO2020221213A1 (en) Intra sub-block partitioning and multiple transform selection
US20220094929A1 (en) Applicability of implicit transform selection
US20230300334A1 (en) Position dependent coefficient reordering in coded video
US20230199177A1 (en) Coding mode dependent selection of transform skip mode
WO2021190593A1 (en) Coded video processing using enhanced secondary transform
WO2021190594A1 (en) Implicit determination of transform skip mode
WO2020253642A1 (en) Block size dependent use of secondary transforms in coded video
KR102727219B1 (en) Using quadratic transforms in coded video
WO2020253810A1 (en) Coding tools for chroma components

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21774058

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09-02-2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21774058

Country of ref document: EP

Kind code of ref document: A1