WO2020243246A1 - Using coding tree structure type to control coding mode - Google Patents

Using coding tree structure type to control coding mode Download PDF

Info

Publication number
WO2020243246A1
WO2020243246A1 PCT/US2020/034839 US2020034839W WO2020243246A1 WO 2020243246 A1 WO2020243246 A1 WO 2020243246A1 US 2020034839 W US2020034839 W US 2020034839W WO 2020243246 A1 WO2020243246 A1 WO 2020243246A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
tree structure
current video
current
coding tree
Prior art date
Application number
PCT/US2020/034839
Other languages
French (fr)
Inventor
Weijia Zhu
Li Zhang
Jizheng Xu
Original Assignee
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 Bytedance Inc. filed Critical Bytedance Inc.
Priority to CN202080040213.0A priority Critical patent/CN113892267A/en
Publication of WO2020243246A1 publication Critical patent/WO2020243246A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/002Image coding using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/40Tree coding, e.g. quadtree, octree
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding

Definitions

  • This document is related to video and image coding/decoding technologies.
  • Devices, systems and methods related to digital video coding/decoding, and specifically, coefficient coding in transform skip mode for video coding/decoding are described.
  • the described methods may be applied to both the existing video coding standards (e.g., High Efficiency Video Coding (HEVC)) and future video coding standards (e.g., Versatile Video Coding (VVC)) or codecs.
  • HEVC High Efficiency Video Coding
  • VVC Versatile Video Coding
  • a method for visual media encoding includes making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a cross component linear model (CCLM) prediction mode based on or inferred from at least a coding tree structure associated with the video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and selectively including, in the bitstream representation, a syntax element indicative of the application of the CCLM prediction mode based on or inferred from at least the coding tree structure.
  • CCLM cross component linear model
  • a method for visual media decoding includes determining a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block; determining, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a cross component linear model (CCLM) prediction mode to the current video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and generating the current video block from the bitstream representation.
  • CCLM cross component linear model
  • a method for visual media encoding includes making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a luma mapping with chroma scaling (LMCS) processing step to the video region based on or inferred from at least a coding tree structure associated with the video region, wherein, in the LMCS processing step, luma samples in the video region are mapped using an adaptive piecewise linear model and/or chroma samples in the video region are subjected to a luma-dependent chroma residual scaling operation; and selectively including a syntax element, in the bitstream representation, indicative of the application of the LMCS processing step to the video region.
  • LMCS luma mapping with chroma scaling
  • a method for visual media encoding includes determining a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block; determining, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a luma mapping with chroma scaling (LMCS) processing step to the video region, wherein, in the LMCS processing step, luma samples are mapped using an adaptive piecewise linear model and chroma samples are subjected to a luma-dependent chroma residual scaling operation; and generating the current video block from the bitstream representation.
  • LMCS luma mapping with chroma scaling
  • the above-described method may be implemented by a video encoder apparatus that comprises a processor.
  • the above-described method may be implemented by a video decoder apparatus that comprises a processor.
  • these methods may be embodied in the form of processor- executable instructions and stored on a computer-readable program medium.
  • FIG. 1 shows an example of intra block copy.
  • FIG. 2 shows an example of a block coded in palete mode.
  • FIG. 3 shows an example of use of a palete predictor to signal palete entries.
  • FIG. 4 shows an example of horizontal and vertical traverse scans.
  • FIG. 5 shows an example of coding of palete indices.
  • FIG. 6 shows an example of multi-type tree spliting modes.
  • FIG. 7 shows an example of samples used to derive parameters in a cross-component linear model (CCFM) prediction mode.
  • CCFM cross-component linear model
  • FIG. 8 shows an exemplary architecture for luma mapping with chroma scaling.
  • FIGS. 9A-9E are flowcharts for examples of a video processing methods.
  • FIG. 10 is a block diagram of an example of a hardware platform for implementing a visual media decoding or a visual media encoding technique described in the present document.
  • FIG. 11 is a block diagram of an example video processing system in which disclosed techniques may be implemented.
  • FIG. 12 is a flowchart for an example for a visual media encoding method.
  • FIG. 13 is a flowchart for an example for a visual media decoding method.
  • FIG. 14 is a flowchart for an example for a visual media encoding method.
  • FIG. 15 is a flowchart for an example for a visual media decoding method.
  • the present document provides various techniques that can be used by a decoder of image or video bitstreams to improve the quality of decompressed or decoded digital video or images.
  • video is used herein to include both a sequence of pictures (traditionally called video) and individual images.
  • a video encoder may also implement these techniques during the process of encoding in order to reconstruct decoded frames used for further encoding.
  • This document is related to video coding technologies. Specifically, it is related to coefficient coding in a transform skip mode 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.
  • 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 [1,2] .
  • AVC H.264/MPEG-4 Advanced Video Coding
  • H.265/HEVC H.265/HEVC
  • the video coding standards are based on the hybrid video coding structure wherein 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
  • VTM The latest reference software of VVC, named VTM, could be found at: https://vcgit.hhi.fraunhofer.de/jvet VVCSoftware_VTM/tags/VTM -4.0
  • IBC Intra block copy
  • IBC Screen Content Coding extensions
  • VTM-4.0 VVC test model
  • IBC extends the concept of motion compensation from inter-frame coding to intra-frame coding.
  • the current block is predicted by a reference block in the same picture when IBC is applied.
  • the samples in the reference block must have been already reconstructed before the current block is coded or decoded.
  • IBC is not so efficient for most camera-captured sequences, it shows significant coding gains for screen content. The reason is that there are lots of repeating patterns, such as icons and text characters in a screen content picture. IBC can remove the redundancy between these repeating patterns effectively.
  • an inter-coded coding unit can apply IBC if it chooses the current picture as its reference picture.
  • the MV is renamed as block vector (BV) in this case, and a BV always has an integer-pixel precision.
  • BV block vector
  • the current picture is marked as a“long-term” reference picture in the Decoded Picture Buffer (DPB).
  • DPB Decoded Picture Buffer
  • the prediction can be generated by copying the reference block.
  • the residual can be got by subtracting the reference pixels from the original signals.
  • transform and quantization can be applied as in other coding modes.
  • the luma motion vector mvLX shall obey the following constraints:
  • the whole reference block should be with the current coding tree unit (CTU) and does not overlap with the current block. Thus, there is no need to pad the reference or prediction block.
  • the IBC flag is coded as a prediction mode of the current CU. Thus, there are totally three prediction modes, MODE INTRA, MODE INTER and MODE IBC for each CU.
  • IBC merge mode an index pointing to an entry in the IBC merge candidates list is parsed from the bitstream.
  • the construction of the IBC merge list can be summarized according to the following sequence of steps:
  • Step 1 Derivation of spatial candidates
  • Step 2 Insertion of HMVP candidates
  • Step 3 Insertion of pairwise average candidates
  • IBC candidates from HMVP table may be inserted. Redundancy check are performed when inserting the HMVP candidates.
  • pairwise average candidates are inserted into the IBC merge list.
  • the merge candidate is called invalid merge candidate.
  • invalid merge candidates may be inserted into the IBC merge list.
  • IBC AMVP mode an AMVP index point to an entry in the IBC AMVP list is parsed from the bitstream.
  • the construction of the IBC AMVP list can be summarized according to the following sequence of steps:
  • Step 1 Derivation of spatial candidates
  • Step 2 Insertion of HMVP candidates
  • Step 3 Insertion of zero candidates
  • IBC candidates from HMVP table may be inserted.
  • AMVR Adaptive motion vector resolution
  • MVDs motion vector differences
  • a CU-level adaptive motion vector resolution (AMVR) scheme is introduced. AMVR allows MVD of the CU to be coded in different precision.
  • the MVDs of the current CU can be adaptively selected as follows:
  • Normal AMVP mode quarter-luma-sample, integer-luma-sample or four-luma-sample.
  • Affine AMVP mode quarter-luma-sample, integer-luma-sample or 1/16 luma-sample.
  • the CU-level MVD resolution indication is conditionally signalled if the current CU has at least one non-zero MVD component. If all MVD components (that is, both horizontal and vertical MVDs for reference list U0 and reference list Ul) are zero, quarter-luma-sample MVD resolution is inferred. [0059] For a CU that has at least one non-zero MVD component, a first flag is signalled to indicate whether quarter-luma-sample MVD precision is used for the CU. If the first flag is 0, no further signaling is needed and quarter-luma-sample MVD precision is used for the current CU.
  • a second flag is signalled to indicate whether integer-luma-sample or four-luma-sample MVD precision is used for normal AMVP CU.
  • the same second flag is used to indicate whether integer- luma-sample or 1/16 luma-sample MVD precision is used for affine AMVP CU.
  • the motion vector predictors for the CU will be rounded to the same precision as that of the MVD before being added together with the MVD.
  • the motion vector predictors are rounded toward zero (that is, a negative motion vector predictor is rounded toward positive infinity and a positive motion vector predictor is rounded toward negative infinity).
  • the encoder determines the motion vector resolution for the current CU using RD check.
  • the RD check of MVD precisions other than quarter-luma-sample is only invoked conditionally.
  • the RD cost of quarter-luma-sample MVD precision and integer-luma sample MV precision is computed first. Then, the RD cost of integer-luma-sample MVD precision is compared to that of quarter-luma-sample MVD precision to decide whether it is necessary to further check the RD cost of four-luma-sample MVD precision.
  • affine AMVP mode if affine inter mode is not selected after checking rate-distortion costs of affine merge/skip mode, merge/skip mode, quarter- luma sample MVD precision normal AMVP mode and quarter-luma sample MVD precision affine AMVP mode, then 1/16 luma-sample MV precision and 1-pel MV precision affine inter modes are not checked. Furthermore, affine parameters obtained in quarter-luma-sample MV precision affine inter mode is used as starting search point in 1/16 luma-sample and quarter-luma-sample MV precision affine inter modes.
  • a palette mode the samples in the CU are represented by a small set of representative color values. This set is referred to as the palette. It is also possible to indicate a sample that is outside the palette by signaling an escape symbol followed by (possibly quantized) component values. This is illustrated in FIG. 2. 2.6 Palette Mode in HEVC Screen Content Coding extensions (HEVC-SCC)
  • a palette predictor For coding of the palette entries, a palette predictor is maintained. The maximum size of the palette as well as the palette predictor is signalled in the SPS.
  • a palette_predictor_initializer_present_flag is introduced in the PPS. When this flag is 1, entries for initializing the palette predictor are signalled in the bitstream.
  • the palette predictor is initialized at the beginning of each CTU row, each slice and each tile.
  • the palette predictor is reset to 0 or initialized using the palette predictor initializer entries signalled in the PPS.
  • a palette predictor initializer of size 0 was enabled to allow explicit disabling of the palette predictor initialization at the PPS level.
  • a reuse flag is signaled to indicate whether it is part of the current palette. This is illustrated in FIG. 3.
  • the reuse flags are sent using run-length coding of zeros. After this, the number of new palette entries are signaled using exponential Golomb code of order 0. Finally, the component values for the new palette entries are signaled.
  • palette indices are coded using horizontal and vertical traverse scans as shown in FIG.
  • the palette indices are coded using two main palette sample modes: 'INDEX' and
  • the escape symbol is also signaled as an 'INDEX' mode and assigned an index equal to the maximum palette size.
  • the mode is signaled using a flag except for the top row or when the previous mode was 'COPY ABOVE'.
  • the palette index of the sample in the row above is copied.
  • the palette index is explicitly signalled.
  • a run value is signalled which specifies the number of subsequent samples that are also coded using the same mode.
  • This syntax order is accomplished as follows. First the number of index values for the CU is signaled. This is followed by signaling of the actual index values for the entire CU using truncated binary coding. Both the number of indices as well as the index values are coded in bypass mode. This groups the index-related bypass bins together. Then the palette sample mode (if necessary) and run are signaled in an interleaved manner. Finally, the component escape values corresponding to the escape samples for the entire CU are grouped together and coded in bypass mode.
  • An additional syntax element, last run type flag, is signaled after signaling the index values. This syntax element, in conjunction with the number of indices, eliminates the need to signal the run value corresponding to the last run in the block.
  • each palette entry consists of 3 components.
  • the chroma samples are associated with luma sample indices that are divisible by 2. After reconstructing the palette indices for the CU, if a sample has only a single component associated with it, only the first component of the palette entry is used. The only difference in signaling is for the escape component values. For each escape sample, the number of escape component values signaled may be different depending on the number of components associated with that sample.
  • JVET-M0464 and JVET-N0280 several modifications are proposed on the coefficients coding in transform skip (TS) mode in order to adapt the residual coding to the statistics and signal characteristics of the transform skip levels.
  • Subblock CBFs The absence of the last significant scanning position signalling requires the subblock CBF signalling with coded sub block flag for TS to be modified as follows:
  • top-left subblock presents a special case.
  • the coded_sub_block_flag for this subblock is never signaled and always inferred to be equal to 1.
  • the DC subblock may contain only zero/non-significant levels although the coded_sub_block_flag for this subblock is inferred to be equal to 1.
  • the coded sub block flag for each subblock is signaled. This also includes the coded sub block flag for the DC subblock except when all other coded sub block flag syntax elements are already equal to 0.
  • the context modeling for coded sub block flag is changed.
  • the context model index is calculated as the sum of the coded sub block flag to the left and the coded_sub_block_flag above the current subblock instead of and a logical disjunction of both.
  • sig coeff flag context modelling The local template in sig coeff flag context modeling is modified to only include the neighbor to the left (NBo) and the neighbor above (NBi) the current scanning position.
  • the context model offset is just the number of significant neighboring positions sig_coeff_flag[NBo] + sig_coeff_flag[NBi] Hence, the selection of different context sets depending on the diagonal d within the current transform block is removed. This results in three context models and a single context model set for coding the sig_coeff_flag flag.
  • abs level gtl flag and par level flag context modelling a single context model is employed for abs lcvcl gt 1 flag and par_level_flag.
  • abs remainder coding Although the empirical distribution of the transform skip residual absolute levels typically still fits a Laplacian or a Geometrical distribution, there exist larger instationarities than for transform coefficient absolute levels. Particularly, the variance within a window of consecutive realization is higher for the residual absolute levels. This motivates the following modifications of the abs remainder syntax binarization and context modelling:
  • the prediction directions used in QR-BDPCM can be vertical and horizontal prediction modes.
  • the intra prediction is done on the entire block by sample copying in prediction direction (horizontal or vertical prediction) similar to intra prediction.
  • the residual is quantized and the delta between the quantized residual and its predictor (horizontal or vertical) quantized value is coded. This can be described by the following: For a block of size M (rows) c N (cols), let 0 ⁇ i £ M— 1, 0 ⁇ j £ N— 1 be the prediction residual after performing intra prediction horizontally (copying left neighbor pixel value across the predicted block line by line) or vertically (copying top neighbor line to each line in the predicted block) using unfiltered samples from above or left block boundary samples.
  • the residual quantized samples r L are sent to the decoder.
  • bdpcm_flag[ xO ][ yO ] 1 specifies that a bdpcm dir flag is present in the coding unit including the luma coding block at the location ( xO, yO )
  • bdpcm_dir_flag[ xO ][ yO ] 0 specifies that the prediction direction to be used in a bdpcm block is horizontal, otherwise it is vertical.
  • a CTU is split into CUs by using a quaternary-tree structure denoted as coding tree to adapt to various local characteristics.
  • the decision whether to code a picture area using inter picture (temporal) or intra-picture (spatial) prediction is made at the leaf CU level.
  • Each leaf CU can be further split into one, two or four PUs according to the PU splitting type. Inside one PU, the same prediction process is applied and the relevant information is transmitted to the decoder on a PU basis.
  • a leaf CU After obtaining the residual block by applying the prediction process based on the PU splitting type, a leaf CU can be partitioned into transform units (TUs) according to another quaternary-tree structure similar to the coding tree for the CU.
  • transform units TUs
  • One of key feature of the HEVC structure is that it has the multiple partition conceptions including CU, PU, and TU.
  • a quadtree with nested multi-type tree using binary and ternary splits segmentation structure replaces the concepts of multiple partition unit types, i.e., it removes the separation of the CU, PU and TU concepts except as needed for CUs that have a size too large for the maximum transform length, and supports more flexibility for CU partition shapes.
  • a CU can have either a square or rectangular shape.
  • a coding tree unit (CTU) is first partitioned by a quaternary tree (a.k.a. quadtree) structure. Then the quaternary tree leaf nodes can be further partitioned by a multi-type tree structure. As shown in FIG.
  • the multi-type tree leaf nodes are called coding units (CUs), and unless the CU is too large for the maximum transform length, this segmentation is used for prediction and transform processing without any further partitioning.
  • CUs coding units
  • luma and chroma components have separate partition structures on I tiles.
  • CCLM cross-component linear model
  • pred c (i, j) represents the predicted chroma samples in a CU and rec L (i, j) represents the downsampled reconstructed luma samples of the same CU.
  • Uinear model parameter a and b are derived from the relation between luma values and chroma values from two samples, which are luma sample with minimum sample value and with maximum sample inside the set of downsampled neighboring luma samples, and their corresponding chroma samples.
  • the linear model parameters a and b are obtained according to the following equations.
  • FIG. 7 shows an example of the location of the left and above samples and the sample of the current block involved in the CCUM mode.
  • LMCS luma mapping with chroma scaling
  • FIG. 8 shows the LMCS architecture from decoder’s perspective.
  • the shaded blocks in FIG. 8 indicate where the processing is applied in the mapped domain; and these include the inverse quantization, inverse transform, luma intra prediction and adding of the luma prediction together with the luma residual.
  • FIG. 8 indicate where the processing is applied in the original (i.e., non-mapped) domain; and these include loop filters such as deblocking, ALF, and SAO, motion compensated prediction, chroma intra prediction, adding of the chroma prediction together with the chroma residual, and storage of decoded pictures as reference pictures.
  • the shaded blocks in FIG. 8 are the new LMCS functional blocks, including forward and inverse mapping of the luma signal and a luma-dependent chroma scaling process. Like most other tools in VVC, LMCS can be enabled/disabled at the sequence level using an SPS flag. 3. Examples of Problems Solved by Embodiments
  • Indications of the maximal allowed width and height for transform skip may be both signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs. a. In one example, the maximal allowed width and height for transform skip may be indicated by different messages signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs.
  • the maximal allowed width and/or height may be first signaled in the SPS/PPS, then updated in the picture header/slice header/tile group header/LCU row/group of LCUs.
  • a TS coded block may be divided into several coefficient groups (CGs) and signaling of the coded block flag (Cbf) flags of at least one CG may be skipped.
  • CGs coefficient groups
  • Cbf coded block flag
  • signaling of all CGs’ Cbf flags may be skipped, e.g., for a TS coded blocks.
  • the skipped cbf flags of CGs may be inferred to 1 for the TS mode c. In one example, whether to skip partial or all Cbf flags of CGs may depend on the coded mode.
  • the skipped Cbf flag of a CG may be inferred based on
  • the most probable modes of the current block and/or its neighboring blocks vi. Prediction modes (Intra/Inter) of the neighboring blocks of the current block vii. Intra prediction modes of the neighboring blocks of the current block viii. Motion vectors of the neighboring blocks of the current block
  • the coefficient scanning order in TS coded blocks may be dependent on a message signalled in the SPS VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU.
  • the CG and/or coefficient scanning order may be dependent on intra prediction mode when TS is employed
  • the scanning order may be vertical if the intra prediction mode is horizontally dominated
  • the scanning order may be vertical if the intra prediction mode index ranges from 2 to 34. 2. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 2 to 33.
  • the scanning order may be vertical if the intra prediction mode is vertically dominated
  • the scanning order may be vertical if the intra prediction mode index ranges from 34-66.
  • the scanning order may be vertical if the intra prediction mode index ranges from 35-66.
  • the scanning order may be horizontal if the intra prediction mode is vertically dominated
  • the scanning order may be vertical if the intra prediction mode index ranges from 34 to 66.
  • the scanning order may be vertical if the intra prediction mode index ranges from 35 to 66.
  • the scanning order may be horizontal if the intra prediction mode is horizontally dominated
  • the scanning order may be vertical if the intra prediction mode index ranges from 2 to 34.
  • the scanning order may be vertical if the intra prediction mode index ranges from 2 to 33.
  • sign flag coding may depend on neighboring information in a coefficient block for TS mode.
  • the context of coding the current sign flag may depend on the value of neighboring sign flags for TS mode.
  • the context of coding the current sign flag may depend on the value of sign flags of left and/or above neighbors.
  • the context of coding the current sign flag may depend on the value of sign flags of left, above neighbors, and above left neighbor. iii.
  • the context of coding the current sign flag may depend on the value of sign flags of left, above neighbors, above left neighbor, above right neighbor.
  • the context of coding the current sign flag may depend on the position of the coefficient.
  • the context of sign flag may be different at different positions. ii. In one example, the context of sign flag may depend on x+y, where x and y are horizontal and vertical position of a position.
  • the context of sign flag may depend on min(x,y), where x and y are horizontal and vertical position of a position.
  • the context of sign flag may depend on max(x,y), where x and y are horizontal and vertical position of a position.
  • chroma transform skip mode may be supported.
  • usage of the chroma transform skip mode may be based on a message signalled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
  • usage of the chroma transform skip mode may be based on the decoded information of one or multiple representative previously coded blocks in the same color component or other color components.
  • the indication of chroma TS flag may be inferred to false if the indication of the TS flag of a representative block is false.
  • the indication of chroma TS flag may be inferred to true if the indication of the TS flag of the representative block is true.
  • the representative block may be a luma block or a chroma block. iii. In one example, the representative block could be any block within the collocated luma block. iv. In one example, the representative block could be one of neighboring chroma blocks of the current chroma block.
  • the representative block may be the block covering the corresponding luma sample of the center chroma sample within current chroma block.
  • the representative block may be the block covering the corresponding luma sample of the right bottom chroma sample within current chroma block.
  • Whether and/or how to apply the transform skip mode may depends on a message signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
  • the indication of when to and/or how to apply transform skip mode may depend on
  • iii The most probable modes of the current block and/or its neighboring blocks iv. Prediction modes (Intra/Inter) of the neighboring blocks of the current block v. Intra prediction modes of the neighboring blocks of the current block vi. Motion vectors of the neighboring blocks of the current block
  • transform skip mode may be applied when the prediction mode is an IBC mode and the block width and/or height is smaller/bigger/equal to a threshold i.
  • the threshold may be 4,8,16 or 32. ii. In one example, the threshold may be signaled in the bitstream.
  • the threshold may be based on
  • Whether to signal the indication of TS mode may depend on the decoded/derived intra prediction mode.
  • QR-BDPCM coded blocks may depend on the allowed intra prediction modes/directions used in QR-BDPCM coded blocks and usage of QR-BDPCM.
  • the signaling of TS flag may be skipped.
  • transform skip mode may be inferred to be enabled when the indication of QR-BDPCM mode (e.g., bdpcm flag) is 1.
  • the above method may be applied based on
  • ther and/or how to apply QR-BDPCM may depend on the indication of the TS mode. a.
  • the indication of whether to apply QR-BDPCM may be signaled on a transform unit (TU) level instead of being signaled in CU.
  • TU transform unit
  • the indication of whether to apply QR-BDPCM may be signaled after the indication of TS mode is applied to a TU.
  • QR-BDPCM is treated as a special case of TS mode.
  • QR-BDPCM When one block is coded with TS mode, another flag may be further signaled to indicate whether QR-BDPCM or conventional TS mode is applied. If it is coded with QR-BDPCM, the prediction direction used in QR-BDPCM may be further signaled. ii. Alternatively, when one block is coded with TS mode, another flag may be further signaled to indicate which kind of QR-BDPCM (e.g., horizontal/vertical prediction direction-based QR-BDPCM) or conventional TS mode is applied. c. In one example, the indication of whether to QR-BDPCM may be inferred based on the indication of TS mode.
  • QR-BDPCM e.g., horizontal/vertical prediction direction-based QR-BDPCM
  • the indication of whether to apply QR-BDPCM on a luma and/or chroma block may be inferred to true if the indication of whether to apply the transform skip flag on the same block is true.
  • the indication of whether to apply QR-BDPCM on the same block may be inferred to true.
  • the indication of whether to apply QR-BDPCM on a luma and/or chroma block may be inferred to false if the indication of whether to apply the transform skip flag on the same block is false.
  • the indication of whether to apply QR-BDPCM on the same block may be inferred to false.
  • Whether and/or how to apply separate/dual tree may depends on a message signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
  • the indication of whether to apply separate/dual tree may depends whether the current slice/tile/LCU/LCU row/group of LCUs/video data unit is determined as screen contents.
  • a slice/tile/LCU/LCU row/group of LCUs/video data unit is determined as screen contents may depend on
  • the indication of whether to apply separate/duals tree may be inferred, which may depend on
  • the indication of whether to apply CCUM and/or UMCS may depend on separate/dual coding tree structure type
  • the indication CCUM and/or UMCS may be inferred to false when separate tree is used.
  • the above methods may be also applicable to single tree partition case, or single/dual coding tree structure type.
  • ther to enable IBC may depend on the coding tree structure type.
  • the signaling of indication of IBC mode, block vectors used in IBC mode, and/or other syntax related to IBC mode may be skipped and inferred.
  • the indication of the IBC mode may be inferred to false when dual coding tree structure type is applied.
  • the indication of the IBC mode of a luma block may be inferred to false when dual coding tree structure type is applied.
  • the indication of the IBC mode of a chroma block may be inferred to false when dual coding tree structure type is applied.
  • the indication of the IBC mode may be inferred based on
  • ther to enable CCUM may depend on the coding tree structure type.
  • the signaling of indication of CCUM mode, and/or other syntax related to CCUM mode may be skipped and inferred.
  • the indication of the CCUM mode may be inferred to false when dual coding tree structure type is applied.
  • the indication of the CCUM mode, when dual coding tree structure type is applied may be inferred based on
  • Whether to enable UMCS for chroma components may depend on the coding tree structure type.
  • the signaling of indication of UMCS for chroma components, and/or other syntax related to UMCS mode may be skipped and inferred.
  • the indication of the UMCS for chroma components may be inferred to false when dual coding tree structure type is applied.
  • the indication of the UMCS for chroma components, when dual coding tree structure type is applied, may be inferred based on
  • Temporal layer ID ing tree structure may depend on whether IBC is used or not.
  • the dual tree structure and the IBC method may be not enabled concurrently at a sequence/picture/tile/brick/CTU/VPDU/32x32 block/64x32 block/32x64 block level.
  • the dual tree structure may be disabled at a sequence/picture/tile/brick/CTU/VPDU/32x32 block/64x32 block/32x64 block level.
  • chroma coding tree structure may be aligned to luma coding tree structure
  • the region may be a sequence/picture/tile/brick/CTU VPDU/32x32 block/64x32 block/32x64 block.
  • the chroma block may be split into subblocks if it is allowed to be split.
  • whether and how a chroma block is split may be inferred from the coding structure of its collocated luma block.
  • the signals to code the chroma coding tree structure may be skipped.
  • a flag may be used to indicate whether chroma coding structure can be inferred from luma coding structure or not. Signaling of the flag may depend on
  • ther to enable palette coding mode may depend on the coding tree structure type.
  • the signaling of indication of palette coding mode may be skipped and inferred.
  • the indication of the palette coding mode may be inferred to false when dual coding tree structure type is applied.
  • the indication of the palette coding mode of a luma block may be inferred to false when dual coding tree structure type is applied.
  • the indication of the palette coding mode of a chroma block may be inferred to false when dual coding tree structure type is applied.
  • the indication of the palette coding mode inferred may be based on i. a message signaled in the SP S VP S/PP S/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
  • ing tree structure may depend on whether palette coding mode is used or not.
  • chroma coding tree structure when palette coding mode is used in a region, chroma coding tree structure may be aligned to luma coding tree structure i.
  • the region may be a sequence/picture/tile/brick/CTU/VPDU/32x32 block/64x32 block ii.
  • the chroma block when a collocated luma block is split into subblocks, the chroma block may be split into subblocks if it is allowed to be split.
  • whether and how a chroma block is split may be inferred from the coding structure of its collocated luma block.
  • the signals to code the chroma coding tree structure may be skipped.
  • a flag may be used to indicate whether chroma coding structure can be inferred from luma coding structure or not. Signaling of the flag may depend on
  • the motion/block vector of a sub-block/sample in a chroma IBC coded block may be derived from the first available IBC-coded sub-region within the collocated luma block.
  • a scanning order of sub-regions within the collocated luma block may be defined, such as raster scanning order.
  • a sub-region may be defined as the minimum coding unit/minimum transform unit.
  • the motion/block vector of whole samples in a chroma IBC mode may be derived based on the motion vector of the most top-left sample with coded in an IBC or inter mode in the collocated luma block.
  • otion/block vector may be signaled in the chroma IBC mode.
  • the difference between a motion vector and a motion vector predictor may be signaled.
  • the motion vector predictor may be derived based on the motion vectors of a collocated luma block, neighboring luma blocks of the collocated luma block, neighboring chroma blocks of current chroma block.
  • the motion/block vector predictor may be derived based on the motion vector of the top-left sample in the collocated luma block.
  • the motion/block vector predictor may be derived based on the motion vector of the sample with a center position in the collocated luma block.
  • the motion/block vector predictor may be derived based on the motion vector of the most top-left sample with coded in an IBC or inter mode in the collocated luma block.
  • the motion vector predictor associated one sub-region of luma component may be scaled before being used as a predictor.
  • the block vector may be derived from motion vectors/blocks vectors of neighboring (adjacent or non-adjacent) chroma blocks.
  • a block vector candidate list may be constructed and an index to the list may be signaled.
  • the candidate list may include motion vectors/block vectors from collocated luma blocks, neighboring luma blocks of the collocated luma blocks, neighboring chroma blocks.
  • the indication of AMVR flag may be inferred
  • the indication of AMVR flag may be inferred to false (0) in a block coded in the chroma IBC mode
  • the indication of motion vector difference may be inferred to integer precision in a block coded in the chroma IBC mode
  • a separate HMVP table may be used on the chroma IBC mode. i. In one example, the size of chroma HMVP table and luma HMVP table may be different.
  • whether to signal a block/motion vector in the chroma IBC mode may be based on
  • chroma block’ block vectors may be signaled.
  • chroma block’ block vectors may be signaled.
  • Block dimension of current CTU and/or its neighboring CTUs vi. Block shape of current CTU and/or its neighboring CTUs vii. Current quantization parameter of current CTU and/or that of its neighboring CTUs
  • An exemplary method for video processing includes performing a conversion between a current video block and a bitstream representation of a video comprising the current video block, wherein the conversion selectively uses a transform skip mode for the conversion based on an indicator that is included in the bitstream representation, and wherein, using the transform skip mode, a residual of a prediction error of the current video block is represented in the bitstream representation without applying a transformation.
  • the indicator is a maximal allowed width and a maximal allowed height for the transform skip mode.
  • the maximal allowed width and height is signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU) row or a group of LCUs.
  • SPS sequence parameter set
  • VPS video parameter set
  • PPS picture parameter set
  • a picture header a slice header, a tile group header, a largest coding unit (LCU) row or a group of LCUs.
  • the maximal allowed width and height is signaled in different messages.
  • the maximal allowed width and height is signaled in a sequence parameter set (SPS) or a picture parameter set (PPS), and wherein an updated value of the maximal allowed width and height is signaled in a picture header, a slice header, a tile group header, a largest coding unit (LCU) row or a group of LCUs.
  • SPS sequence parameter set
  • PPS picture parameter set
  • an updated value of the maximal allowed width and height is signaled in a picture header, a slice header, a tile group header, a largest coding unit (LCU) row or a group of LCUs.
  • FIG. 9A shows a flowchart of another exemplary method for video processing.
  • the method 900 includes, at step 902, determining that a current video block is coded using a transform skip mode.
  • the method 900 includes, at step 904, performing, based on the determining, a conversion between the current video block and a bitstream representation of a video comprising the current video block.
  • the current video block is divided into a plurality of coefficient groups, and the bitstream representation omits signaling of a coded block flag for at least one of the plurality of coefficient groups.
  • the bitstream representation omits the signaling of the coded block flag for each of the plurality of coefficient groups.
  • the coded block flag omitted in the signaling in the bitstream representation is inferred based on one or more of the following: (1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU), (2) a position of at least one of the plurality of coefficient groups, (3) a block dimension of the current video block or at least one neighboring block of the current video block, (4) a block shape of the current video block or the at least one neighboring block, (5) a most probable mode of the current video block or the at least one neighboring block, (6) a prediction mode of the at least one neighboring block, (7) an intra prediction mode of the at least one neighboring block, (8) one or more motion vectors of the at least one neighboring block, (9) an indication of the following: (1) a message signale
  • the current video block is divided into a plurality of coefficient groups, and the method 900 further includes the step of determining a coefficient scanning order for the plurality of coefficient groups.
  • the coefficient scanning order is based on a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU).
  • the plurality of coefficient group or the coefficient scanning order is based on an intra prediction mode of the current video block.
  • the coefficient scanning order is vertical, and wherein the intra prediction mode is horizontally dominated.
  • the coefficient scanning order is horizontal, and wherein the intra prediction mode is horizontally dominated.
  • an index of the intra prediction mode ranges from 2 to 33 or from 2 to 34.
  • the plurality of coefficient group or the coefficient scanning order is based on an intra prediction mode of the current video block.
  • the coefficient scanning order is vertical, and wherein the intra prediction mode is vertically dominated.
  • the coefficient scanning order is horizontal, and wherein the intra prediction mode is vertically dominated.
  • an index of the intra prediction mode ranges from 34 to 66 or from 35 to 66.
  • a context of a sign flag is based on neighboring information in a coefficient block associated with the current video block.
  • the context of the sign flag is further based on a position of a coefficient of the coefficient block.
  • the context of the sign flag is based on (x+y), min(x, y) or max(x, y). wherein x and y are a horizontal value and a vertical value of the position of the coefficient, respectively.
  • FIG. 9B shows a flowchart of yet another exemplary method for video processing.
  • the method 910 includes, at step 912, determining, for a current video block, that a chroma transform skip mode is applicable.
  • the method 910 includes, at step 914, performing, based on the determining, a conversion between the current video block and a bitstream representation of a video comprising the current video block.
  • the determining is based on a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs, a coding unit (CU) or a video data unit.
  • SPS sequence parameter set
  • VPS video parameter set
  • PPS picture parameter set
  • LCU largest coding unit
  • LCU largest coding unit
  • CU largest coding unit
  • CU coding unit
  • CU coding unit
  • the determining is based on decoded information from one or more representative video blocks that were decoded prior to the performing the conversion, and wherein a sample in each of the one or more representative video blocks and the current video block is based on a common color information.
  • the one or more representative video blocks comprises a luma block or a chroma block.
  • the one or more representative video blocks comprises a block within a collocated luma block.
  • FIG. 9C shows a flowchart of yet another exemplary method for video processing.
  • the method 920 includes, at step 922, making a decision, during a conversion between a current video block and a bitstream representation of a video comprising the current video block, regarding a selective application of a transform skip mode to the current video block based on a condition.
  • the method 920 includes, at step 924, performing, based on the decision, the conversion.
  • the condition is based on a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs, a coding unit (CU) or a video data unit.
  • SPS sequence parameter set
  • VPS video parameter set
  • PPS picture parameter set
  • LCU largest coding unit
  • CU largest coding unit
  • CU coding unit
  • CU coding unit
  • the condition is based on one or more of the following: (1) a block dimension of the current video block or at least one neighboring block of the current video block, (2) a block shape of the current video block or the at least one neighboring block, (3) a most probable mode of the current video block or the at least one neighboring block, (4) a prediction mode of the at least one neighboring block, (5) an intra prediction mode of the at least one neighboring block, (6) one or more motion vectors of the at least one neighboring block, (7) an indication of a quantized residual block differential pulse-code modulation (QR-BDPCM) mode of the at least one neighboring block, (8) a current quantization parameter (QP) of the current video block or the at least one neighboring block, (9) an indication of a color format of the current video block, (10) a separate or dual coding tree structure associated with the current video block, (11) a slice type, a tile group type or a picture type of the current video block, or (12) a temporal
  • the application of the transform skip mode is performed, a prediction mode of the current video block is an inter block copy (IBC) mode, and a width or a height of the current video block is compared to a threshold.
  • IBC inter block copy
  • the threshold is signaled in the bitstream representation.
  • the threshold is 4, 8, 16 or 32.
  • the threshold is based on one or more of the following: (1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU), (2) a temporal layer identification (ID), (3) a block dimension of the current video block or at least one neighboring block of the current video block, (4) a block shape of the current video block or the at least one neighboring block, (5) a most probable mode of the current video block or the at least one neighboring block, (6) a prediction mode of the at least one neighboring block, (7) an intra prediction mode of the at least one neighboring block, (8) one or more motion vectors of the at least one neighboring block, (9) an indication of a quantized residual block differential pulse-code modulation (QR-BDPCM) mode of the at least
  • QR-BDPCM
  • FIG. 9D shows a flowchart of yet another exemplary method for video processing.
  • the method 930 includes, at step 932, making a decision, during a conversion between a current video block and a bitstream representation of a video comprising the current video block, regarding a selective application of quantized residual block differential pulse-code modulation (QR-BDPCM) based on an indication of a transform skip mode in the bitstream representation.
  • QR-BDPCM quantized residual block differential pulse-code modulation
  • the method 930 includes, at step 934, performing, based on the decision, the conversion.
  • the indication of the transform skip mode is signaled on a transform unit (TU) level.
  • TU transform unit
  • FIG. 9E shows a flowchart of yet another exemplary method for video processing.
  • the method 940 includes, at step 942, making a decision, during a conversion between a current video block and a bitstream representation of a video comprising the current video block, regarding a selective application of a separate or dual tree based on a condition.
  • the method 940 includes, at step 944, performing, based on the decision, the conversion.
  • the condition is based on a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs, a coding unit (CU) or a video data unit.
  • SPS sequence parameter set
  • VPS video parameter set
  • PPS picture parameter set
  • LCU largest coding unit
  • CU largest coding unit
  • CU coding unit
  • CU coding unit
  • the condition is based on determining whether a slice, a tile, a largest coding unit (LCU), an LCU row, a group of LCUs or a video data unit comprising the current video block is screen content.
  • LCU largest coding unit
  • the determining is based on one or more of the following: (1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, the LCU, the LCU row, the group of LCUs, the coding unit (CU) or the video data unit, (2) a block dimension of the current video block or at least one neighboring block of the current video block, (3) a block shape of the current video block or the at least one neighboring block, (4) a current quantization parameter (QP) of the current video block or the at least one neighboring block, (5) an indication of a color format of the current video block, (6) a separate or dual coding tree structure associated with the current video block, (7) a slice type, a tile group type or a picture type of the current video block, or (8) a temporal layer identification (ID).
  • SPS sequence parameter set
  • VPS video parameter set
  • PPS picture parameter set
  • ID
  • FIG. 10 is a block diagram of a video processing apparatus 1000.
  • the apparatus 1000 may be used to implement one or more of the methods described herein.
  • the apparatus 1000 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, and so on.
  • the apparatus 1000 may include one or more processors 1002, one or more memories 1004 and video processing hardware 1006.
  • the processor(s) 1002 may be configured to implement one or more methods (including, but not limited to, methods 900, 910, 920, 930 and 940) described in the present document.
  • the memory (memories) 1004 may be used for storing data and code used for implementing the methods and techniques described herein.
  • the video processing hardware 1006 may be used to implement, in hardware circuitry, some techniques described in the present document.
  • the video coding methods may be implemented using an apparatus that is implemented on a hardware platform as described with respect to FIG. 10.
  • a method of video processing includes making a determination about whether or not intra block copy mode is applicable for a conversion between a current video block of a video and a bitstream representation based on a type of coding tree structure corresponding to the current video block; and performing the conversion based on the determination.
  • the bitstream representation excludes an indication of the intra block copy mode. In other words, the bitstream does not carry an explicit signaling of the IBC mode.
  • the type of coding tree structure is a dual coding tree structure and the determination is that intra block copy mode is not applicable.
  • FIG. 11 is a block diagram of an example video processing system in which disclosed techniques may be implemented.
  • the system 1100 may include input 1102 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 1102 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 1100 may include a coding component 1104 that may implement the various coding or encoding methods described in the present document.
  • the coding component 1104 may reduce the average bitrate of video from the input 1102 to the output of the coding component 1104 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 1104 may be either stored, or transmitted via a communication connected, as represented by the component 1106.
  • the stored or communicated bitstream (or coded) representation of the video received at the input 1102 may be used by the component 1108 for generating pixel values or displayable video that is sent to a display interface 1110.
  • the process of generating user-viewable video from the bitstream representation is sometimes called video decompression.
  • 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 (HD MI) or Displayport, and so on.
  • Examples of storage interfaces include SATA (serial advanced technology attachment), PCI, IDE interface, and the like.
  • FIG. 12 is a flowchart for an example for a visual media encoding method. Steps of this flowchart are discussed in connection with example 11 in Section 4 of this document.
  • the process makes a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a cross component linear model (CCLM) prediction mode based on or inferred from at least a coding tree structure associated with the video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block.
  • the process selectively includes, in the bitstream representation, a syntax element indicative of the application of the CCLM prediction mode based on or inferred from at least the coding tree structure.
  • FIG. 13 is a flowchart for an example for a visual media decoding method. Steps of this flowchart are discussed in connection with example 11 in Section 4 of this document.
  • the process determines a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block.
  • the process determines, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a cross-component linear model (CCLM) prediction mode to the current video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block.
  • CCLM cross-component linear model
  • FIG. 14 is a flowchart for an example for a visual media encoding method. Steps of this flowchart are discussed in connection with example 12 in Section 4 of this document.
  • the process makes a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a luma mapping with chroma scaling (LMCS) processing step to the video region based on or inferred from at least a coding tree structure associated with the video region, wherein, in the LMCS processing step, luma samples in the video region are mapped using an adaptive piecewise linear model and/or chroma samples in the video region are subjected to a luma-dependent chroma residual scaling operation.
  • the process selectively includes a syntax element, in the bitstream representation, indicative of the application of the LMCS processing step to the video region.
  • FIG. 15 is a flowchart for an example for a visual media decoding method. Steps of this flowchart are discussed in connection with example 12 in Section 4 of this document.
  • the process determines a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block.
  • the process determines, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a luma mapping with chroma scaling (LMCS) processing step to the video region, wherein, in the LMCS processing step, luma samples are mapped using an adaptive piecewise linear model and chroma samples are subjected to a luma-dependent chroma residual scaling operation.
  • LMCS luma mapping with chroma scaling
  • a method for visual media encoding comprising:
  • a method for visual media decoding comprising:
  • CCLM cross-component linear model
  • SPS sequence parameter set
  • VPS video parameter set
  • PPS picture parameter set
  • LCU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • a method for visual media encoding comprising:
  • a method for visual media decoding comprising:
  • LMCS luma mapping with chroma scaling
  • SPS sequence parameter set
  • VPS video parameter set
  • PPS picture parameter set
  • LCU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • CU largest coding unit
  • a video encoder apparatus comprising a processor configured to implement a method recited in any one or more of clauses 1-12.
  • a video decoder apparatus comprising a processor configured to implement a method recited in any one or more of clauses 1-12.
  • the term“video processing” or“visual media 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.
  • Implementations of the subject matter and the functional operations described in this patent document can be implemented in various systems, digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them.
  • Implementations of the subject matter described in this specification can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on atangible and non-transitory 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 of them.
  • data processing unit or“data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers.
  • the apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
  • a 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 specification 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 nonvolatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices.
  • semiconductor memory devices e.g., EPROM, EEPROM, and flash memory devices.
  • the processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

An exemplary method for visual media processing includes making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a cross-component linear model (CCLM) prediction mode based on or inferred from at least a coding tree structure associated with the video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and selectively including, in the bitstream representation, a syntax element indicative of the application of the CCLM prediction mode based on or inferred from at least the coding tree structure.

Description

USING CODING TREE STRUCTURE TYPE TO CONTROL CODING
MODE
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] Under the applicable patent law and/or rules pursuant to the Paris Convention, this application is made to timely claim the priority to and benefit of International Patent Application No. PCT/CN2019/089250, filed on May 30, 2019. 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
[0002] This document is related to video and image coding/decoding technologies.
BACKGROUND
[0003] 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
[0004] Devices, systems and methods related to digital video coding/decoding, and specifically, coefficient coding in transform skip mode for video coding/decoding are described. The described methods may be applied to both the existing video coding standards (e.g., High Efficiency Video Coding (HEVC)) and future video coding standards (e.g., Versatile Video Coding (VVC)) or codecs.
[0005] In one exemplary aspect, a method for visual media encoding is disclosed. The method includes making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a cross component linear model (CCLM) prediction mode based on or inferred from at least a coding tree structure associated with the video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and selectively including, in the bitstream representation, a syntax element indicative of the application of the CCLM prediction mode based on or inferred from at least the coding tree structure.
[0006] In one exemplary aspect, a method for visual media decoding is disclosed. The method includes determining a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block; determining, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a cross component linear model (CCLM) prediction mode to the current video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and generating the current video block from the bitstream representation.
[0007] In one exemplary aspect, a method for visual media encoding is disclosed. The method includes making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a luma mapping with chroma scaling (LMCS) processing step to the video region based on or inferred from at least a coding tree structure associated with the video region, wherein, in the LMCS processing step, luma samples in the video region are mapped using an adaptive piecewise linear model and/or chroma samples in the video region are subjected to a luma-dependent chroma residual scaling operation; and selectively including a syntax element, in the bitstream representation, indicative of the application of the LMCS processing step to the video region.
[0008] In one exemplary aspect, a method for visual media encoding is disclosed. The method includes determining a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block; determining, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a luma mapping with chroma scaling (LMCS) processing step to the video region, wherein, in the LMCS processing step, luma samples are mapped using an adaptive piecewise linear model and chroma samples are subjected to a luma-dependent chroma residual scaling operation; and generating the current video block from the bitstream representation.
[0009] In yet another example aspect, the above-described method may be implemented by a video encoder apparatus that comprises a processor.
[0010] In yet another example aspect, the above-described method may be implemented by a video decoder apparatus that comprises a processor.
[0011] In yet another example aspect, these methods may be embodied in the form of processor- executable instructions and stored on a computer-readable program medium.
[0012] These, and other, aspects are further described in the present document. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] FIG. 1 shows an example of intra block copy.
[0014] FIG. 2 shows an example of a block coded in palete mode.
[0015] FIG. 3 shows an example of use of a palete predictor to signal palete entries.
[0016] FIG. 4 shows an example of horizontal and vertical traverse scans.
[0017] FIG. 5 shows an example of coding of palete indices.
[0018] FIG. 6 shows an example of multi-type tree spliting modes.
[0019] FIG. 7 shows an example of samples used to derive parameters in a cross-component linear model (CCFM) prediction mode.
[0020] FIG. 8 shows an exemplary architecture for luma mapping with chroma scaling.
[0021] FIGS. 9A-9E are flowcharts for examples of a video processing methods.
[0022] FIG. 10 is a block diagram of an example of a hardware platform for implementing a visual media decoding or a visual media encoding technique described in the present document.
[0023] FIG. 11 is a block diagram of an example video processing system in which disclosed techniques may be implemented.
[0024] FIG. 12 is a flowchart for an example for a visual media encoding method.
[0025] FIG. 13 is a flowchart for an example for a visual media decoding method.
[0026] FIG. 14 is a flowchart for an example for a visual media encoding method.
[0027] FIG. 15 is a flowchart for an example for a visual media decoding method.
DETAIFED DESCRIPTION
[0028] The present document provides various techniques that can be used by a decoder of image or video bitstreams to improve the quality of decompressed or decoded digital video or images. For brevity, the term“video” is used herein to include both a sequence of pictures (traditionally called video) and individual images. Furthermore, a video encoder may also implement these techniques during the process of encoding in order to reconstruct decoded frames used for further encoding.
[0029] Section headings are used in the present document for ease of understanding and do not limit the embodiments and techniques to the corresponding sections. As such, embodiments from one section can be combined with embodiments from other sections. 1. Summary
[0030] This document is related to video coding technologies. Specifically, it is related to coefficient coding in a transform skip mode 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
[0031] 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 [1,2] . Since H.262, the video coding standards are based on the hybrid video coding structure wherein 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.
[0032] The latest version of VVC draft, i.e., Versatile Video Coding (Draft 4) could be found at: http://phenix.it-sudparis.eu/jvet/doc_end_user/current_document.php?id=5755
[0033] The latest reference software of VVC, named VTM, could be found at: https://vcgit.hhi.fraunhofer.de/jvet VVCSoftware_VTM/tags/VTM -4.0
2.1 Intra block copy
[0034] Intra block copy (IBC), a.k.a. current picture referencing, has been adopted in HEVC
Screen Content Coding extensions (HEVC-SCC) and the current VVC test model (VTM-4.0). IBC extends the concept of motion compensation from inter-frame coding to intra-frame coding. As demonstrated in FIG. 1, the current block is predicted by a reference block in the same picture when IBC is applied. The samples in the reference block must have been already reconstructed before the current block is coded or decoded. Although IBC is not so efficient for most camera-captured sequences, it shows significant coding gains for screen content. The reason is that there are lots of repeating patterns, such as icons and text characters in a screen content picture. IBC can remove the redundancy between these repeating patterns effectively. In HEVC-SCC, an inter-coded coding unit (CU) can apply IBC if it chooses the current picture as its reference picture. The MV is renamed as block vector (BV) in this case, and a BV always has an integer-pixel precision. To be compatible with main profile HEVC, the current picture is marked as a“long-term” reference picture in the Decoded Picture Buffer (DPB). It should be noted that similarly, in multiple view/3D video coding standards, the inter-view reference picture is also marked as a“long-term” reference picture.
[0035] Following a BV to find its reference block, the prediction can be generated by copying the reference block. The residual can be got by subtracting the reference pixels from the original signals. Then transform and quantization can be applied as in other coding modes.
[0036] However, when a reference block is outside of the picture, or overlaps with the current block, or outside of the reconstructed area, or outside of the valid area restricted by some constrains, part or all pixel values are not defined. Basically, there are two solutions to handle such a problem. One is to disallow such a situation, e.g., in bitstream conformance. The other is to apply padding for those undefined pixel values. The following sub-sessions describe the solutions in detail.
2.2 IBC in HEVC Screen Content Coding extensions
[0037] In the screen content coding extensions of HEVC, when a block uses current picture as reference, it should guarantee that the whole reference block is within the available reconstructed area, as indicated in the following spec text:
The variables offsetX and offsetY are derived as follows:
offsetX = ( ChromaArrayType = = 0 ) ? 0 : ( mvCLX[ 0 ] & 0x7 ? 2 : 0 ) (8-106) offsetY = ( ChromaArrayType = = 0 ) ? 0 : ( mvCLX[ 1 ] & 0x7 ? 2 : 0 ) (8-107)
It is a requirement of bitstream conformance that when the reference picture is the current picture, the luma motion vector mvLX shall obey the following constraints:
- When the derivation process for z-scan order block availability as specified in clause 6.4.1 is invoked with ( xCurr, yCurr ) set equal to ( xCb, yCb ) and the neighbouring luma location ( xNbY, yNbY ) set equal to ( xPb + (mvLX[ 0 ] » 2) - offsetX, yPb + ( mvLX[ 1 ] » 2 ) - offsetY ) as inputs, the output shall be equal to TRUE.
- When the derivation process for z-scan order block availability as specified in clause 6.4.1 is invoked with ( xCurr, yCurr ) set equal to ( xCb, yCb ) and the neighbouring luma location ( xNbY, yNbY ) set equal to ( xPb + (mvLX[ 0 ] » 2) + nPbW - 1 + offsetX, yPb + (mvLX[ 1 ] » 2) + nPbH - 1 + offsetY) as inputs, the output shall be equal to TRUE.
- One or both the following conditions shall be true:
The value of ( mvLX[ 0 ] » 2 ) + nPbW + xB 1 + offsetX is less than or equal to 0. - The value of ( mvLX[ 1 ] » 2 ) + nPbH + yB 1 + offsetY is less than or equal to 0.
- The following condition shall be true:
( xPb + ( mvLX[ 0 ] » 2 ) + nPbSw - 1 + offsetX) / CtbSizeY - xCurr / CtbSizeY <= yCurr/CtbSizeY - ( yPb + ( mvLX[ 1 ] » 2 ) + nPbSh - 1 + offsetY ) / CtbSizeY (8-108)
[0038] Thus, the case that the reference block overlaps with the current block or the reference block is outside of the picture will not happen. There is no need to pad the reference or prediction block.
2.3 IBC in VVC Test Model
[0039] In the current VVC test model, i.e., VTM-4.0 design, the whole reference block should be with the current coding tree unit (CTU) and does not overlap with the current block. Thus, there is no need to pad the reference or prediction block. The IBC flag is coded as a prediction mode of the current CU. Thus, there are totally three prediction modes, MODE INTRA, MODE INTER and MODE IBC for each CU.
2.3.1 IBC Merge mode
[0040] In IBC merge mode, an index pointing to an entry in the IBC merge candidates list is parsed from the bitstream. The construction of the IBC merge list can be summarized according to the following sequence of steps:
[0041] Step 1 : Derivation of spatial candidates
[0042] Step 2: Insertion of HMVP candidates
[0043] Step 3: Insertion of pairwise average candidates
[0044] In the derivation of spatial merge candidates, a maximum of four merge candidates are selected among candidates located in the positions Al, B l, B0, A0 and B2. The order of derivation is Al, B l, B0, A0 and B2. Position B2 is considered only when any PU of position Al, Bl, B0, A0 is not available (e.g., because it belongs to another slice or tile) or is not coded with IBC mode. After candidate at position A 1 is added, the insertion of the remaining candidates is subj ect to a redundancy check which ensures that candidates with same motion information are excluded from the list so that coding efficiency is improved.
[0045] After insertion of the spatial candidates, if the IBC merge list size is still smaller than the maximum IBC merge list size, IBC candidates from HMVP table may be inserted. Redundancy check are performed when inserting the HMVP candidates.
[0046] Finally, pairwise average candidates are inserted into the IBC merge list. [0047] When a reference block identified by a merge candidate is outside of the picture, or overlaps with the current block, or outside of the reconstructed area, or outside of the valid area restricted by some constrains, the merge candidate is called invalid merge candidate.
[0048] It is noted that invalid merge candidates may be inserted into the IBC merge list.
2.3.2 IBC AM VP mode
[0049] In IBC AMVP mode, an AMVP index point to an entry in the IBC AMVP list is parsed from the bitstream. The construction of the IBC AMVP list can be summarized according to the following sequence of steps:
[0050] Step 1 : Derivation of spatial candidates
[0051] Check A0, A1 until an available candidate is found.
[0052] Check B0, B l, B2 until an available candidate is found.
[0053] Step 2: Insertion of HMVP candidates
[0054] Step 3 : Insertion of zero candidates
[0055] After insertion of the spatial candidates, if the IBC AMVP list size is still smaller than the maximum IBC AMVP list size, IBC candidates from HMVP table may be inserted.
[0056] Finally, zero candidates are inserted into the IBC AMVP list.
2.4 Adaptive motion vector resolution (AMVR)
[0057] In HEVC, motion vector differences (MVDs) (between the motion vector and predicted motion vector of a CU) are signalled in units of quarter-luma-sample when use_integer_mv_flag is equal to 0 in the slice header. In VVC, a CU-level adaptive motion vector resolution (AMVR) scheme is introduced. AMVR allows MVD of the CU to be coded in different precision. Dependent on the mode (normal AMVP mode or affine AVMP mode) for the current CU, the MVDs of the current CU can be adaptively selected as follows:
Normal AMVP mode: quarter-luma-sample, integer-luma-sample or four-luma-sample.
Affine AMVP mode: quarter-luma-sample, integer-luma-sample or 1/16 luma-sample.
[0058] The CU-level MVD resolution indication is conditionally signalled if the current CU has at least one non-zero MVD component. If all MVD components (that is, both horizontal and vertical MVDs for reference list U0 and reference list Ul) are zero, quarter-luma-sample MVD resolution is inferred. [0059] For a CU that has at least one non-zero MVD component, a first flag is signalled to indicate whether quarter-luma-sample MVD precision is used for the CU. If the first flag is 0, no further signaling is needed and quarter-luma-sample MVD precision is used for the current CU. Otherwise, a second flag is signalled to indicate whether integer-luma-sample or four-luma-sample MVD precision is used for normal AMVP CU. The same second flag is used to indicate whether integer- luma-sample or 1/16 luma-sample MVD precision is used for affine AMVP CU. In order to ensure the reconstructed MV has the intended precision (quarter-luma-sample, integer-luma-sample or four- luma-sample), the motion vector predictors for the CU will be rounded to the same precision as that of the MVD before being added together with the MVD. The motion vector predictors are rounded toward zero (that is, a negative motion vector predictor is rounded toward positive infinity and a positive motion vector predictor is rounded toward negative infinity).
[0060] The encoder determines the motion vector resolution for the current CU using RD check.
To avoid always performing CU-level RD check three times for each MVD resolution, in VTM4, the RD check of MVD precisions other than quarter-luma-sample is only invoked conditionally. For normal AVMP mode, the RD cost of quarter-luma-sample MVD precision and integer-luma sample MV precision is computed first. Then, the RD cost of integer-luma-sample MVD precision is compared to that of quarter-luma-sample MVD precision to decide whether it is necessary to further check the RD cost of four-luma-sample MVD precision. When the RD cost for quarter-luma-sample MVD precision is much smaller than that of the integer-luma-sample MVD precision, the RD check of four-luma-sample MVD precision is skipped. For affine AMVP mode, if affine inter mode is not selected after checking rate-distortion costs of affine merge/skip mode, merge/skip mode, quarter- luma sample MVD precision normal AMVP mode and quarter-luma sample MVD precision affine AMVP mode, then 1/16 luma-sample MV precision and 1-pel MV precision affine inter modes are not checked. Furthermore, affine parameters obtained in quarter-luma-sample MV precision affine inter mode is used as starting search point in 1/16 luma-sample and quarter-luma-sample MV precision affine inter modes.
2.5 Palette Mode
[0061] The basic idea behind a palette mode is that the samples in the CU are represented by a small set of representative color values. This set is referred to as the palette. It is also possible to indicate a sample that is outside the palette by signaling an escape symbol followed by (possibly quantized) component values. This is illustrated in FIG. 2. 2.6 Palette Mode in HEVC Screen Content Coding extensions (HEVC-SCC)
[0062] In the palette mode in HEVC-SCC, a predictive way is used to code the palette and index map.
2.6.1 Coding of the palette entries
[0063] For coding of the palette entries, a palette predictor is maintained. The maximum size of the palette as well as the palette predictor is signalled in the SPS. In HEVC-SCC, a palette_predictor_initializer_present_flag is introduced in the PPS. When this flag is 1, entries for initializing the palette predictor are signalled in the bitstream. The palette predictor is initialized at the beginning of each CTU row, each slice and each tile. Depending on the value of the palette_predictor_initializer_present_flag, the palette predictor is reset to 0 or initialized using the palette predictor initializer entries signalled in the PPS. In HEVC-SCC, a palette predictor initializer of size 0 was enabled to allow explicit disabling of the palette predictor initialization at the PPS level.
[0064] For each entry in the palette predictor, a reuse flag is signaled to indicate whether it is part of the current palette. This is illustrated in FIG. 3. The reuse flags are sent using run-length coding of zeros. After this, the number of new palette entries are signaled using exponential Golomb code of order 0. Finally, the component values for the new palette entries are signaled.
2.6.2 Coding of palette indices
[0065] The palette indices are coded using horizontal and vertical traverse scans as shown in FIG.
4. The scan order is explicitly signaled in the bitstream using the palette_transpose_flag. For the rest of the subsection it is assumed that the scan is horizontal.
[0066] The palette indices are coded using two main palette sample modes: 'INDEX' and
'COPY_ABOVE'. As explained previously, the escape symbol is also signaled as an 'INDEX' mode and assigned an index equal to the maximum palette size. The mode is signaled using a flag except for the top row or when the previous mode was 'COPY ABOVE'. In the 'COPY ABOVE' mode, the palette index of the sample in the row above is copied. In the 'INDEX' mode, the palette index is explicitly signalled. For both 'INDEX' and 'COPY ABOVE' modes, a run value is signalled which specifies the number of subsequent samples that are also coded using the same mode. When escape symbol is part of the run in 'INDEX' or 'COPY ABOVE' mode, the escape component values are signalled for each escape symbol. The coding of palette indices is illustrated in FIG. 5.
[0067] This syntax order is accomplished as follows. First the number of index values for the CU is signaled. This is followed by signaling of the actual index values for the entire CU using truncated binary coding. Both the number of indices as well as the index values are coded in bypass mode. This groups the index-related bypass bins together. Then the palette sample mode (if necessary) and run are signaled in an interleaved manner. Finally, the component escape values corresponding to the escape samples for the entire CU are grouped together and coded in bypass mode.
[0068] An additional syntax element, last run type flag, is signaled after signaling the index values. This syntax element, in conjunction with the number of indices, eliminates the need to signal the run value corresponding to the last run in the block.
[0069] In HEVC-SCC, the palette mode is also enabled for 4:2:2, 4:2:0, and monochrome chroma formats. The signaling of the palette entries and palette indices is almost identical for all the chroma formats. In case of non-monochrome formats, each palette entry consists of 3 components. For the monochrome format, each palette entry consists of a single component. For subsampled chroma directions, the chroma samples are associated with luma sample indices that are divisible by 2. After reconstructing the palette indices for the CU, if a sample has only a single component associated with it, only the first component of the palette entry is used. The only difference in signaling is for the escape component values. For each escape sample, the number of escape component values signaled may be different depending on the number of components associated with that sample.
2.7 Coefficients Coding in Transform Skip mode
[0070] In JVET-M0464 and JVET-N0280, several modifications are proposed on the coefficients coding in transform skip (TS) mode in order to adapt the residual coding to the statistics and signal characteristics of the transform skip levels.
[0071] The proposed modifications are listed as follows.
[0072] No last significant scanning position: Since the residual signal reflects the spatial residual after the prediction and no energy compaction by transform is performed for TS, the higher probability for trailing zeros or insignificant levels at the bottom right comer of the transform block is not given anymore. Thus, last significant scanning position signalling is omitted in this case.
[0073] Subblock CBFs: The absence of the last significant scanning position signalling requires the subblock CBF signalling with coded sub block flag for TS to be modified as follows:
[0074] o Due to quantization, the aforementioned sequence of insignificance may still occur locally inside a transform block. Thus, the last significant scanning position is removed as described before and coded sub block flag is coded for all sub-blocks.
[0075] o The coded sub block flag for the subblock covering the DC frequency position
(top-left subblock) presents a special case. In VVC Draft 3, the coded_sub_block_flag for this subblock is never signaled and always inferred to be equal to 1. When the last significant scanning position is located in another subblock, it means that there is at least one significant level outside the DC subblock. Consequently, the DC subblock may contain only zero/non-significant levels although the coded_sub_block_flag for this subblock is inferred to be equal to 1. With the absence of the last scanning position information in TS, the coded sub block flag for each subblock is signaled. This also includes the coded sub block flag for the DC subblock except when all other coded sub block flag syntax elements are already equal to 0. In this case, the DC coded_sub_block_flag is inferred to be equal to 1 (inferDcSbCbf=l). Since there has to be at least one significant level in this DC subblock, the sig coeff flag syntax element for the first position at (0,0) is not signaled and derived to be equal to 1 (inferSbDcSigCoeffFlag=l) instead if all other sig_coeff_flag syntax elements in this DC subblock are equal to 0.
[0076] o The context modeling for coded sub block flag is changed. The context model index is calculated as the sum of the coded sub block flag to the left and the coded_sub_block_flag above the current subblock instead of and a logical disjunction of both.
[0077] sig coeff flag context modelling: The local template in sig coeff flag context modeling is modified to only include the neighbor to the left (NBo) and the neighbor above (NBi) the current scanning position. The context model offset is just the number of significant neighboring positions sig_coeff_flag[NBo] + sig_coeff_flag[NBi] Hence, the selection of different context sets depending on the diagonal d within the current transform block is removed. This results in three context models and a single context model set for coding the sig_coeff_flag flag.
[0078] abs level gtl flag and par level flag context modelling: a single context model is employed for abs lcvcl gt 1 flag and par_level_flag.
[0079] abs remainder coding: Although the empirical distribution of the transform skip residual absolute levels typically still fits a Laplacian or a Geometrical distribution, there exist larger instationarities than for transform coefficient absolute levels. Particularly, the variance within a window of consecutive realization is higher for the residual absolute levels. This motivates the following modifications of the abs remainder syntax binarization and context modelling:
[0080] o Using a higher cutoff value in the binarization, i.e., the transition point from the coding with sig_coeff_flag, abs lc vcl gt 1 flag. par_level_flag, and abs_lcvcl_gt3_flag to the Rice codes for abs remainder, and dedicated context models for each bin position yields higher compression efficiency. Increasing the cutoff will result in more“greater than X” flags, e.g., introducing abs_level_gt5_flag, abs_level_gt7_flag, and so on until a cutoff is reached. The cutoff itself is fixed to 5 (numGtFlags=5).
[0081] o The template for the rice parameter derivation is modified, i.e., only the neighbor to the left and the neighbor above the current scanning position are considered similar to the local template for sig_coeff_flag context modeling. [0082] coeff sign flag context modelling: Due to the instationarities inside the sequence of signs and the fact that the prediction residual is often biased, the signs can be coded using context models, even when the global empirical distribution is almost uniformly distributed. A single dedicated context model is used for the coding of the signs and the sign is parsed after sig_coeff_flag to keep all context coded bins together.
2.8 Quantized residual Block Differential Pulse-code Modulation(QR-BDPCM)
[0083] In JVET-M0413, a quantized residual block differential pulse-code modulation (QR-
BDPCM) is proposed to code screen contents efficiently.
[0084] The prediction directions used in QR-BDPCM can be vertical and horizontal prediction modes. The intra prediction is done on the entire block by sample copying in prediction direction (horizontal or vertical prediction) similar to intra prediction. The residual is quantized and the delta between the quantized residual and its predictor (horizontal or vertical) quantized value is coded. This can be described by the following: For a block of size M (rows) c N (cols), let
Figure imgf000014_0001
0 < i £ M— 1, 0 < j £ N— 1 be the prediction residual after performing intra prediction horizontally (copying left neighbor pixel value across the predicted block line by line) or vertically (copying top neighbor line to each line in the predicted block) using unfiltered samples from above or left block boundary samples. Let Q (ri 7), 0 £ i £ M— 1, 0 £ J £ N— 1 denote the quantized version of the residual rL . where residual is difference between original block and the predicted block values. Then the block DPCM is applied to the quantized residual samples, resulting in modified M c N array R with elements fi 7· . When vertical BDPCM is signalled:
Figure imgf000014_0002
[0085] For horizontal prediction, similar rules apply, and the residual quantized samples are obtained by
Figure imgf000014_0003
[0086] The residual quantized samples rL are sent to the decoder.
[0087] On the decoder side, the above calculations are reversed to produce Q (ri 7), 0 < i £ M—
1, 0 < 7 < N— 1. For vertical prediction case,
Figure imgf000014_0004
[0088] For horizontal case,
Figure imgf000015_0001
[0089] The inverse quantized residuals, Q~ are added to the intra block prediction
Figure imgf000015_0002
values to produce the reconstructed sample values.
[0090] The main benefit of this scheme is that the inverse DPCM can be done on the fly during coefficient parsing simply adding the predictor as the coefficients are parsed or it can be performed after parsing.
[0091] The draft text changes of QR-BDPCM are shown as follows.
7.3.6.5 Coding unit syntax
Figure imgf000015_0003
Figure imgf000016_0001
bdpcm_flag[ xO ][ yO ] equal to 1 specifies that a bdpcm dir flag is present in the coding unit including the luma coding block at the location ( xO, yO )
bdpcm_dir_flag[ xO ][ yO ] equal to 0 specifies that the prediction direction to be used in a bdpcm block is horizontal, otherwise it is vertical.
2.9 Partition Structure
2.9.1 Partitioning of the CTUs using a tree structure
[0092] In HEVC, a CTU is split into CUs by using a quaternary-tree structure denoted as coding tree to adapt to various local characteristics. The decision whether to code a picture area using inter picture (temporal) or intra-picture (spatial) prediction is made at the leaf CU level. Each leaf CU can be further split into one, two or four PUs according to the PU splitting type. Inside one PU, the same prediction process is applied and the relevant information is transmitted to the decoder on a PU basis. After obtaining the residual block by applying the prediction process based on the PU splitting type, a leaf CU can be partitioned into transform units (TUs) according to another quaternary-tree structure similar to the coding tree for the CU. One of key feature of the HEVC structure is that it has the multiple partition conceptions including CU, PU, and TU.
[0093] In VVC, a quadtree with nested multi-type tree using binary and ternary splits segmentation structure replaces the concepts of multiple partition unit types, i.e., it removes the separation of the CU, PU and TU concepts except as needed for CUs that have a size too large for the maximum transform length, and supports more flexibility for CU partition shapes. In the coding tree structure, a CU can have either a square or rectangular shape. A coding tree unit (CTU) is first partitioned by a quaternary tree (a.k.a. quadtree) structure. Then the quaternary tree leaf nodes can be further partitioned by a multi-type tree structure. As shown in FIG. 6, there are four splitting types in multi-type tree structure, vertical binary splitting (SPLIT BT VER), horizontal binary splitting (SPLIT BT HOR), vertical ternary splitting (SPLIT TT VER), and horizontal ternary splitting (SPLIT TT HOR). The multi-type tree leaf nodes are called coding units (CUs), and unless the CU is too large for the maximum transform length, this segmentation is used for prediction and transform processing without any further partitioning. This means that, in most cases, the CU, PU and TU have the same block size in the quadtree with nested multi -type tree coding block structure. The exception occurs when maximum supported transform length is smaller than the width or height of the color component of the CU. In addition, luma and chroma components have separate partition structures on I tiles. 2.10 Cross-component linear model prediction
[0094] To reduce the cross-component redundancy, a cross-component linear model (CCLM) prediction mode is used in the VTM4, for which the chroma samples are predicted based on the reconstructed luma samples of the same CU by using a linear model as follows:
predc(i, j) = a · recL'(i, j) + b
[0095] where predc(i, j) represents the predicted chroma samples in a CU and recL(i, j) represents the downsampled reconstructed luma samples of the same CU. Uinear model parameter a and b are derived from the relation between luma values and chroma values from two samples, which are luma sample with minimum sample value and with maximum sample inside the set of downsampled neighboring luma samples, and their corresponding chroma samples. The linear model parameters a and b are obtained according to the following equations.
_ Ya - Yb
“ Xa - ¾
b = Yb - a · Xb
[0096] Where Ya and Xa represent luma value and chroma value of the luma sample with maximum luma sample value. And Xb and Yb represent luma value and chroma value of the luma sample with minimum luma sample, respectively. FIG. 7 shows an example of the location of the left and above samples and the sample of the current block involved in the CCUM mode.
2.11 Luma mapping with chroma scaling (LMCS)
[0097] In VTM4, a coding tool called the luma mapping with chroma scaling (LMCS) is added as a new processing block before the loop filters. LMCS has two main components: 1) in-loop mapping of the luma component based on adaptive piecewise linear models; 2) for the chroma components, luma-dependent chroma residual scaling is applied. FIG. 8 shows the LMCS architecture from decoder’s perspective. The shaded blocks in FIG. 8 indicate where the processing is applied in the mapped domain; and these include the inverse quantization, inverse transform, luma intra prediction and adding of the luma prediction together with the luma residual. The unshaded blocks in FIG. 8 indicate where the processing is applied in the original (i.e., non-mapped) domain; and these include loop filters such as deblocking, ALF, and SAO, motion compensated prediction, chroma intra prediction, adding of the chroma prediction together with the chroma residual, and storage of decoded pictures as reference pictures. The shaded blocks in FIG. 8 are the new LMCS functional blocks, including forward and inverse mapping of the luma signal and a luma-dependent chroma scaling process. Like most other tools in VVC, LMCS can be enabled/disabled at the sequence level using an SPS flag. 3. Examples of Problems Solved by Embodiments
[0098] Although the coefficient coding in JVET-N0280 can achieve coding benefits on screen content coding, the coefficients coding and TS mode may still have some drawbacks.
[0099] (1) The maximal allowed width or height for TS mode are controlled by one common value in PPS, which may limit the flexibility.
[0100] (2) Every coding group (CG) needs to signal a cbf flag for the TS mode which may increase the overhead cost.
[0101] (3) The coefficient scanning order does not consider the intra prediction mode.
[0102] (4) The sign flag coding only employs one context.
[0103] (5) Transform skip on the chroma component is not supported.
[0104] (6) Transform skip flag are applied on all prediction modes which increases the overhead cost and encoding complexity.
4. Examples of Embodiments
[0105] The detailed inventions below should be considered as examples to explain general concepts. These inventions should not be interpreted in a narrow way. Furthermore, these inventions can be combined in any manner.
1. Indications of the maximal allowed width and height for transform skip may be both signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs. a. In one example, the maximal allowed width and height for transform skip may be indicated by different messages signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs.
b. In one example, the maximal allowed width and/or height may be first signaled in the SPS/PPS, then updated in the picture header/slice header/tile group header/LCU row/group of LCUs.
2. A TS coded block may be divided into several coefficient groups (CGs) and signaling of the coded block flag (Cbf) flags of at least one CG may be skipped.
a. In one example, signaling of all CGs’ Cbf flags may be skipped, e.g., for a TS coded blocks.
b. In one example, the skipped cbf flags of CGs may be inferred to 1 for the TS mode c. In one example, whether to skip partial or all Cbf flags of CGs may depend on the coded mode.
i. In one example, for TS-coded intra blocks, signalling of all Cbf flags of CGs is skipped.
d. In one example, the skipped Cbf flag of a CG may be inferred based on
i. A message signalled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU
ii. The position of the CG
iii. Block dimension of current block and/or its neighboring blocks
iv. Block shape of current block and/or its neighboring blocks
v. The most probable modes of the current block and/or its neighboring blocks vi. Prediction modes (Intra/Inter) of the neighboring blocks of the current block vii. Intra prediction modes of the neighboring blocks of the current block viii. Motion vectors of the neighboring blocks of the current block
ix. The indication of QR-BDPCM modes of the neighboring block of the current block
x. Current quantization parameter of current block and/or that of its neighboring blocks
xi. Indication of the color format (such as 4:2:0, 4:4:4)
xii. Separate/dual coding tree structure
xiii. Sbce/tile group type and/or picture type
The coefficient scanning order in TS coded blocks may be dependent on a message signalled in the SPS VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU.
a. Alternatively, the CG and/or coefficient scanning order may be dependent on intra prediction mode when TS is employed
i. In one example, the scanning order may be vertical if the intra prediction mode is horizontally dominated
1. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 2 to 34. 2. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 2 to 33.
ii. In one example, the scanning order may be vertical if the intra prediction mode is vertically dominated
1. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 34-66.
2. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 35-66.
iii. In one example, the scanning order may be horizontal if the intra prediction mode is vertically dominated
1. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 34 to 66.
2. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 35 to 66.
iv. In one example, the scanning order may be horizontal if the intra prediction mode is horizontally dominated
1. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 2 to 34.
2. In one example, the scanning order may be vertical if the intra prediction mode index ranges from 2 to 33.
It is proposed the context of sign flag coding may depend on neighboring information in a coefficient block for TS mode.
a. In one example, the context of coding the current sign flag may depend on the value of neighboring sign flags for TS mode.
i. In one example, the context of coding the current sign flag may depend on the value of sign flags of left and/or above neighbors.
1. In one example, the context of the current sign flag may be derived as C= (L + A), where the C is the context id, L is the sign flag of its left neighbor and A is the sign flag of its above neighbor
2. In one example, the context of the current sign flag may be derived as C= (L + A* 2), where the C is the context id, L is the sign flag of its left neighbor and A is the sign flag of its above neighbor 3. In one example, the context of the current sign flag may be derived as C= (L*2 + A), where the C is the context id, L is the sign flag of its left neighbor and A is the sign flag of its above neighbor ii. In one example, the context of coding the current sign flag may depend on the value of sign flags of left, above neighbors, and above left neighbor. iii. In one example, the context of coding the current sign flag may depend on the value of sign flags of left, above neighbors, above left neighbor, above right neighbor.
b. In one example, the context of coding the current sign flag may depend on the position of the coefficient.
i. In one example, the context of sign flag may be different at different positions. ii. In one example, the context of sign flag may depend on x+y, where x and y are horizontal and vertical position of a position.
iii. In one example, the context of sign flag may depend on min(x,y), where x and y are horizontal and vertical position of a position.
iv. In one example, the context of sign flag may depend on max(x,y), where x and y are horizontal and vertical position of a position.
proposed the chroma transform skip mode may be supported.
a. In one example, usage of the chroma transform skip mode may be based on a message signalled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
b. Alternatively, usage of the chroma transform skip mode may be based on the decoded information of one or multiple representative previously coded blocks in the same color component or other color components.
i. In one example, the indication of chroma TS flag may be inferred to false if the indication of the TS flag of a representative block is false. Alternatively, the indication of chroma TS flag may be inferred to true if the indication of the TS flag of the representative block is true.
ii. In one example, the representative block may be a luma block or a chroma block. iii. In one example, the representative block could be any block within the collocated luma block. iv. In one example, the representative block could be one of neighboring chroma blocks of the current chroma block.
v. In one example, the representative block may be the block covering the corresponding luma sample of the center chroma sample within current chroma block.
vi. In one example, the representative block may be the block covering the corresponding luma sample of the right bottom chroma sample within current chroma block.
Whether and/or how to apply the transform skip mode may depends on a message signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
a. In one example, the indication of when to and/or how to apply transform skip mode may depend on
i. Block dimension of current block and/or its neighboring blocks
ii. Block shape of current block and/or its neighboring blocks
iii. The most probable modes of the current block and/or its neighboring blocks iv. Prediction modes (Intra/Inter) of the neighboring blocks of the current block v. Intra prediction modes of the neighboring blocks of the current block vi. Motion vectors of the neighboring blocks of the current block
vii. The indication of QR-BDPCM modes of the neighboring block of the current block
viii. Current quantization parameter of current block and/or that of its neighboring blocks
ix. Indication of the color format (such as 4:2:0, 4:4:4)
x. Separate/dual coding tree structure
xi. Slice/tile group type and/or picture type
xii. Temporal layer ID
b. In one example, transform skip mode may be applied when the prediction mode is an IBC mode and the block width and/or height is smaller/bigger/equal to a threshold i. In one example, the threshold may be 4,8,16 or 32. ii. In one example, the threshold may be signaled in the bitstream.
iii. In one example, the threshold may be based on
1. a message signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU
2. Block dimension of current block and/or its neighboring blocks
3. Block shape of current block and/or its neighboring blocks
4. The most probable modes of the current block and/or its neighboring blocks
5. Prediction modes (Intra/Inter) of the neighboring blocks of the current block
6. Intra prediction modes of the neighboring blocks of the current block
7. Motion vectors of the neighboring blocks of the current block
8. The indication of QR-BDPCM modes of the neighboring block of the current block
9. Current quantization parameter of current block and/or that of its neighboring blocks
10. Indication of the color format (such as 4:2:0, 4:4:4)
11. Separate/dual coding tree structure
12. Slice/tile group type and/or picture type
13. Temporal layer ID
Whether to signal the indication of TS mode may depend on the decoded/derived intra prediction mode.
a. Alternatively, furthermore, it may depend on the allowed intra prediction modes/directions used in QR-BDPCM coded blocks and usage of QR-BDPCM.
b. For a decoded or derived intra prediction mode, if it is part of allowed sets of intra prediction modes/directions used in QR-BDPCM coded blocks, the signaling of TS flag may be skipped.
i. In one example, if QR-BDPCM is allowed for coding one slice/picture/tile/brick, vertical and horizontal modes are two allowed modes in QR-BDPCM process, and the decoded/derived intra mode is vertical or horizontal mode, then the indication of TS mode is not signaled. c. In one example, transform skip mode may be inferred to be enabled when the indication of QR-BDPCM mode (e.g., bdpcm flag) is 1.
d. The above method may be applied based on
i. a message signaled in the SP S/VP S/PP S/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU
ii. Block dimension of current block and/or its neighboring blocks
iii. Block shape of current block and/or its neighboring blocks
iv. The most probable modes of the current block and/or its neighboring blocks v. Prediction modes (Intra/Inter) of the neighboring blocks of the current block vi. Intra prediction modes of the neighboring blocks of the current block vii. Motion vectors of the neighboring blocks of the current block
viii. The indication of QR-BDPCM modes of the neighboring block of the current block
ix. Current quantization parameter of current block and/or that of its neighboring blocks
x. Indication of the color format (such as 4:2:0, 4:4:4)
xi. Separate/dual coding tree structure
xii. Slice/tile group type and/or picture type
xiii. Temporal layer ID
ther and/or how to apply QR-BDPCM may depend on the indication of the TS mode. a. In one example, the indication of whether to apply QR-BDPCM may be signaled on a transform unit (TU) level instead of being signaled in CU.
i. In one example, the indication of whether to apply QR-BDPCM may be signaled after the indication of TS mode is applied to a TU.
b. In one example, QR-BDPCM is treated as a special case of TS mode.
i. When one block is coded with TS mode, another flag may be further signaled to indicate whether QR-BDPCM or conventional TS mode is applied. If it is coded with QR-BDPCM, the prediction direction used in QR-BDPCM may be further signaled. ii. Alternatively, when one block is coded with TS mode, another flag may be further signaled to indicate which kind of QR-BDPCM (e.g., horizontal/vertical prediction direction-based QR-BDPCM) or conventional TS mode is applied. c. In one example, the indication of whether to QR-BDPCM may be inferred based on the indication of TS mode.
i . In one example, the indication of whether to apply QR-BDPCM on a luma and/or chroma block may be inferred to true if the indication of whether to apply the transform skip flag on the same block is true. Alternatively, if the indication of whether to apply transform skip flag on a luma and/or chroma block is true, the indication of whether to apply QR-BDPCM on the same block may be inferred to true.
ii . In one example, the indication of whether to apply QR-BDPCM on a luma and/or chroma block may be inferred to false if the indication of whether to apply the transform skip flag on the same block is false. Alternatively, if the indication of whether to apply the transform skip flag on a luma and/or chroma block is false, the indication of whether to apply QR-BDPCM on the same block may be inferred to false.
Whether and/or how to apply separate/dual tree may depends on a message signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
a. In one example, the indication of whether to apply separate/dual tree may depends whether the current slice/tile/LCU/LCU row/group of LCUs/video data unit is determined as screen contents.
i. Furthermore, in one example, whether a slice/tile/LCU/LCU row/group of LCUs/video data unit is determined as screen contents may depend on
1. a message/flag signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
2. Block dimension of current CTU and/or its neighboring CTUs
3. Block shape of current CTU and/or its neighboring CTUs
4. Current quantization parameter of current CTU and/or that of its neighboring CTUs
5. Indication of the color format (such as 4:2:0, 4:4:4) 6. Separate/dual coding tree structure type of the previous slice/tile/LCU/LCU row/group of LCUs/video data unit
7. Slice/tile group type and/or picture type
8. Temporal layer ID
b. In one example, the indication of whether to apply separate/duals tree may be inferred, which may depend on
i. a message signaled in the SP S VP S/PP S/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
ii. The hash hit ratio of IBC/Inter modes in previous coded pictures/tile/slices/reconstructed region
iii. Block dimension of current CTU and/or its neighboring CTUs
iv. Block shape of current CTU and/or its neighboring CTUs
v. Current quantization parameter of current CTU and/or that of its neighboring CTUs
vi. Indication of the color format (such as 4:2:0, 4:4:4)
vii. Separate/dual coding tree structure type of the previous slice/tile/UCU/UCU row/group of UCUs/video data unit
viii. Slice/tile group type and/or picture type
ix. Temporal layer ID
c. In one example, the indication of whether to apply CCUM and/or UMCS may depend on separate/dual coding tree structure type
i. In one example, the indication CCUM and/or UMCS may be inferred to false when separate tree is used.
d. The above methods may be also applicable to single tree partition case, or single/dual coding tree structure type.
ther to enable IBC may depend on the coding tree structure type.
a. In one example, for a given coding tree structure type (e.g., dual tree), the signaling of indication of IBC mode, block vectors used in IBC mode, and/or other syntax related to IBC mode, may be skipped and inferred.
b. In one example, the indication of the IBC mode may be inferred to false when dual coding tree structure type is applied. c. In one example, the indication of the IBC mode of a luma block may be inferred to false when dual coding tree structure type is applied.
d. In one example, the indication of the IBC mode of a chroma block may be inferred to false when dual coding tree structure type is applied.
e. In one example, the indication of the IBC mode may be inferred based on
i. a message signaled in the SP S/VP S/PP S/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
ii. The hash hit ratio of IBC/Inter modes in previous coded pictures/tile/slices/reconstructed region
iii. Block dimension of current CTU and/or its neighboring CTUs
iv. Block shape of current CTU and/or its neighboring CTUs
v. Current quantization parameter of current CTU and/or that of its neighboring CTUs
vi. Indication of the color format (such as 4:2:0, 4:4:4)
vii. Coding tree structure type of the previous slice/tile/UCU/LCU row/group of UCUs/video data unit
viii. Slice/tile group type and/or picture type
ix. Temporal layer ID
ther to enable CCUM may depend on the coding tree structure type.
a. In one example, for a given coding tree structure type (e.g., dual tree), the signaling of indication of CCUM mode, and/or other syntax related to CCUM mode, may be skipped and inferred.
b. In one example, the indication of the CCUM mode may be inferred to false when dual coding tree structure type is applied.
c. In one example, the indication of the CCUM mode, when dual coding tree structure type is applied , may be inferred based on
i. a message signaled in the SP S VP S/PP S/picture header/slice header/tile group header/UCU row/group of UCUs/UCU/CU/video data unit.
ii. The hash hit ratio of IBC/Inter modes in previous coded
pictures/tile/slices/reconstructed region
iii. Block dimension of current CTU and/or its neighboring CTUs iv. Block shape of current CTU and/or its neighboring CTUs
v. Current quantization parameter of current CTU and/or that of its neighboring CTUs
vi . Indication of the color format (such as 4 : 2 : 0, 4 : 4 : 4)
vii. Coding tree structure type of the previous slice/tile/LCU/UCU row/group of UCUs/video data unit
viii. Slice/tile group type and/or picture type
ix. Temporal layer ID
Whether to enable UMCS for chroma components may depend on the coding tree structure type.
a. In one example, for a given coding tree structure type (e.g., dual tree), the signaling of indication of UMCS for chroma components, and/or other syntax related to UMCS mode, may be skipped and inferred.
b. In one example, the indication of the UMCS for chroma components may be inferred to false when dual coding tree structure type is applied.
c. In one example, the indication of the UMCS for chroma components, when dual coding tree structure type is applied, may be inferred based on
i. a message signaled in the SP S VP S/PP S/picture header/slice header/tile group header/UCU row/group of UCUs/UCU/CU/video data unit.
ii. The hash hit ratio of IBC/Inter modes in previous coded
pictures/tile/slices/reconstructed region
iii. Block dimension of current CTU and/or its neighboring CTUs
iv. Block shape of current CTU and/or its neighboring CTUs
v. Current quantization parameter of current CTU and/or that of its neighboring CTUs
vi. Indication of the color format (such as 4:2:0, 4:4:4)
vii. Coding tree structure type of the previous slice/tile/LCU/UCU row/group of LCUs/video data unit
viii. Slice/tile group type and/or picture type
ix. Temporal layer ID ing tree structure may depend on whether IBC is used or not.
a. In one example, the dual tree structure and the IBC method may be not enabled concurrently at a sequence/picture/tile/brick/CTU/VPDU/32x32 block/64x32 block/32x64 block level.
b. Alternatively, furthermore, in one example, if IBC method is enabled, the dual tree structure may be disabled at a sequence/picture/tile/brick/CTU/VPDU/32x32 block/64x32 block/32x64 block level.
c. In one example, when IBC is used in a region, chroma coding tree structure may be aligned to luma coding tree structure
i. In one example, the region may be a sequence/picture/tile/brick/CTU VPDU/32x32 block/64x32 block/32x64 block. ii. In one example, when a collocated luma block is split into subblocks, the chroma block may be split into subblocks if it is allowed to be split.
iii. In one example, whether and how a chroma block is split may be inferred from the coding structure of its collocated luma block.
iv. In one example, when chroma coding tree structure is inferred from luma coding tree structure, the signals to code the chroma coding tree structure may be skipped.
v. In one example, a flag may be used to indicate whether chroma coding structure can be inferred from luma coding structure or not. Signaling of the flag may depend on
1. A message signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
2. The hash hit ratio of IBC/Inter modes in previous coded pictures/tile/slices/reconstructed region
3. Block dimension of current CTU and/or its neighboring CTUs
4. Block shape of current CTU and/or its neighboring CTUs
5. Current quantization parameter of current CTU and/or that of its neighboring CTUs
6. Indication of the color format (such as 4:2:0, 4:4:4) 7. Coding tree structure type of the previous slice/tile/LCU/LCU row/group of LCUs/video data unit
8. Slice/tile group type and/or picture type
9. Temporal layer ID
ther to enable palette coding mode may depend on the coding tree structure type.
a. In one example, for a given coding tree structure type (e.g., dual tree), the signaling of indication of palette coding mode may be skipped and inferred.
b. In one example, the indication of the palette coding mode may be inferred to false when dual coding tree structure type is applied.
c . In one example, the indication of the palette coding mode of a luma block may be inferred to false when dual coding tree structure type is applied.
d. In one example, the indication of the palette coding mode of a chroma block may be inferred to false when dual coding tree structure type is applied.
e. In one example, the indication of the palette coding mode inferred may be based on i. a message signaled in the SP S VP S/PP S/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
ii. The hash hit ratio of IBC/Inter modes in previous coded pictures/tile/slices/reconstructed region
iii. Block dimension of current CTU and/or its neighboring CTUs
iv. Block shape of current CTU and/or its neighboring CTUs
v. Current quantization parameter of current CTU and/or that of its neighboring CTUs
vi. Indication of the color format (such as 4:2:0, 4:4:4)
vii. Coding tree structure type of the previous slice/tile/UCU/LCU row/group of UCUs/video data unit
viii. Slice/tile group type and/or picture type
ix. Temporal layer ID
ing tree structure may depend on whether palette coding mode is used or not.
a. In one example, when palette coding mode is used in a region, chroma coding tree structure may be aligned to luma coding tree structure i. In one example, the region may be a sequence/picture/tile/brick/CTU/VPDU/32x32 block/64x32 block ii. In one example, when a collocated luma block is split into subblocks, the chroma block may be split into subblocks if it is allowed to be split.
iii. In one example, whether and how a chroma block is split may be inferred from the coding structure of its collocated luma block.
iv. In one example, when chroma coding tree structure is inferred from luma coding tree structure, the signals to code the chroma coding tree structure may be skipped.
v. In one example, a flag may be used to indicate whether chroma coding structure can be inferred from luma coding structure or not. Signaling of the flag may depend on
1. A message signaled in the SPS/VPS/PPS/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
2. The hash hit ratio of IBC/Inter modes in previous coded pictures/tile/slices/reconstructed region
3. Block dimension of current CTU and/or its neighboring CTUs
4. Block shape of current CTU and/or its neighboring CTUs
5. Current quantization parameter of current CTU and/or that of its neighboring CTUs
6. Indication of the color format (such as 4:2:0, 4:4:4)
7. Coding tree structure type of the previous slice/tile/UCU/UCU row/group ofUCUs/video data unit
8. Slice/tile group type and/or picture type
9. Temporal layer ID
The motion/block vector of a sub-block/sample in a chroma IBC coded block may be derived from the first available IBC-coded sub-region within the collocated luma block.
a. In one example, a scanning order of sub-regions within the collocated luma block may be defined, such as raster scanning order.
b. In one example, a sub-region may be defined as the minimum coding unit/minimum transform unit. c. In one example, the motion/block vector of whole samples in a chroma IBC mode may be derived based on the motion vector of the most top-left sample with coded in an IBC or inter mode in the collocated luma block.
otion/block vector may be signaled in the chroma IBC mode.
a. In one example, the difference between a motion vector and a motion vector predictor may be signaled.
i. In one example, the motion vector predictor may be derived based on the motion vectors of a collocated luma block, neighboring luma blocks of the collocated luma block, neighboring chroma blocks of current chroma block.
1. In one example, the motion/block vector predictor may be derived based on the motion vector of the top-left sample in the collocated luma block.
2. In one example, the motion/block vector predictor may be derived based on the motion vector of the sample with a center position in the collocated luma block.
3. In one example, the motion/block vector predictor may be derived based on the motion vector of the most top-left sample with coded in an IBC or inter mode in the collocated luma block.
ii. In one example, the motion vector predictor associated one sub-region of luma component may be scaled before being used as a predictor.
iii. In one example, the block vector may be derived from motion vectors/blocks vectors of neighboring (adjacent or non-adjacent) chroma blocks. b. In one example, a block vector candidate list may be constructed and an index to the list may be signaled.
i. In one example, the candidate list may include motion vectors/block vectors from collocated luma blocks, neighboring luma blocks of the collocated luma blocks, neighboring chroma blocks.
c. In one example, the indication of AMVR flag may be inferred
i. In one example, the indication of AMVR flag may be inferred to false (0) in a block coded in the chroma IBC mode
ii. In one example, the indication of motion vector difference may be inferred to integer precision in a block coded in the chroma IBC mode
d. In one example, a separate HMVP table may be used on the chroma IBC mode. i. In one example, the size of chroma HMVP table and luma HMVP table may be different.
e. In one example, whether to signal a block/motion vector in the chroma IBC mode may be based on
i. Whether all sub-regions within the collocated luma block are coded with IBC mode.
1. If yes, no need to signal the chroma block’ block vector. Otherwise, chroma block’ block vectors may be signaled.
ii. Whether all sub-regions within the collocated luma block are coded with IBC mode and all of the associated block vectors are valid.
1. If yes, no need to signal the chroma block’ block vector. Otherwise, chroma block’ block vectors may be signaled.
iii. a message signaled in the SP S/VP S/PP S/picture header/slice header/tile group header/LCU row/group of LCUs/LCU/CU/video data unit.
iv. The hash hit ratio of IBC/Inter modes in previous coded pictures/tile/slices/reconstructed region
v. Block dimension of current CTU and/or its neighboring CTUs vi. Block shape of current CTU and/or its neighboring CTUs vii. Current quantization parameter of current CTU and/or that of its neighboring CTUs
viii. Indication of the color format (such as 4:2:0, 4:4:4)
ix. Coding tree structure type of the previous slice/tile/UCU/LCU row/group of UCUs/video data unit
x. Slice/tile group type and/or picture type
xi. Temporal layer ID
[0106] The examples described above may be incorporated in the context of the methods described below, e.g., methods 900, 910, 920, 930 and 940, which may be implemented at a video decoder or a video encoder.
[0107] An exemplary method for video processing includes performing a conversion between a current video block and a bitstream representation of a video comprising the current video block, wherein the conversion selectively uses a transform skip mode for the conversion based on an indicator that is included in the bitstream representation, and wherein, using the transform skip mode, a residual of a prediction error of the current video block is represented in the bitstream representation without applying a transformation.
[0108] In some embodiments, the indicator is a maximal allowed width and a maximal allowed height for the transform skip mode.
[0109] In some embodiments, the maximal allowed width and height is signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU) row or a group of LCUs.
[0110] In some embodiments, the maximal allowed width and height is signaled in different messages.
[0111] In some embodiments, the maximal allowed width and height is signaled in a sequence parameter set (SPS) or a picture parameter set (PPS), and wherein an updated value of the maximal allowed width and height is signaled in a picture header, a slice header, a tile group header, a largest coding unit (LCU) row or a group of LCUs.
[0112] FIG. 9A shows a flowchart of another exemplary method for video processing. The method 900 includes, at step 902, determining that a current video block is coded using a transform skip mode.
[0113] The method 900 includes, at step 904, performing, based on the determining, a conversion between the current video block and a bitstream representation of a video comprising the current video block.
[0114] In some embodiments, the current video block is divided into a plurality of coefficient groups, and the bitstream representation omits signaling of a coded block flag for at least one of the plurality of coefficient groups. In an example, the bitstream representation omits the signaling of the coded block flag for each of the plurality of coefficient groups.
[0115] In some embodiments, the coded block flag omitted in the signaling in the bitstream representation is inferred based on one or more of the following: (1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU), (2) a position of at least one of the plurality of coefficient groups, (3) a block dimension of the current video block or at least one neighboring block of the current video block, (4) a block shape of the current video block or the at least one neighboring block, (5) a most probable mode of the current video block or the at least one neighboring block, (6) a prediction mode of the at least one neighboring block, (7) an intra prediction mode of the at least one neighboring block, (8) one or more motion vectors of the at least one neighboring block, (9) an indication of a quantized residual block differential pulse-code modulation (QR-BDPCM) mode of the at least one neighboring block, (10) a current quantization parameter (QP) of the current video block or the at least one neighboring block, (11) an indication of a color format of the current video block, (12) a separate or dual coding tree structure associated with the current video block, or (13) a slice type, a tile group type or a picture type of the current video block.
[0116] In some embodiments, the current video block is divided into a plurality of coefficient groups, and the method 900 further includes the step of determining a coefficient scanning order for the plurality of coefficient groups. In an example, the coefficient scanning order is based on a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU).
[0117] In some embodiments, the plurality of coefficient group or the coefficient scanning order is based on an intra prediction mode of the current video block. In an example, the coefficient scanning order is vertical, and wherein the intra prediction mode is horizontally dominated. In another example, the coefficient scanning order is horizontal, and wherein the intra prediction mode is horizontally dominated. For example, an index of the intra prediction mode ranges from 2 to 33 or from 2 to 34.
[0118] In some embodiments, the plurality of coefficient group or the coefficient scanning order is based on an intra prediction mode of the current video block. In an example, the coefficient scanning order is vertical, and wherein the intra prediction mode is vertically dominated. In another example, the coefficient scanning order is horizontal, and wherein the intra prediction mode is vertically dominated. For example, an index of the intra prediction mode ranges from 34 to 66 or from 35 to 66.
[0119] In some embodiments, a context of a sign flag is based on neighboring information in a coefficient block associated with the current video block. In an example, the context of the sign flag is further based on a position of a coefficient of the coefficient block. In another example, the context of the sign flag is based on (x+y), min(x, y) or max(x, y). wherein x and y are a horizontal value and a vertical value of the position of the coefficient, respectively.
[0120] FIG. 9B shows a flowchart of yet another exemplary method for video processing. The method 910 includes, at step 912, determining, for a current video block, that a chroma transform skip mode is applicable.
[0121] The method 910 includes, at step 914, performing, based on the determining, a conversion between the current video block and a bitstream representation of a video comprising the current video block. [0122] In some embodiments, the determining is based on a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs, a coding unit (CU) or a video data unit.
[0123] In some embodiments, the determining is based on decoded information from one or more representative video blocks that were decoded prior to the performing the conversion, and wherein a sample in each of the one or more representative video blocks and the current video block is based on a common color information. In an example, the one or more representative video blocks comprises a luma block or a chroma block. In another example, the one or more representative video blocks comprises a block within a collocated luma block.
[0124] FIG. 9C shows a flowchart of yet another exemplary method for video processing. The method 920 includes, at step 922, making a decision, during a conversion between a current video block and a bitstream representation of a video comprising the current video block, regarding a selective application of a transform skip mode to the current video block based on a condition.
[0125] The method 920 includes, at step 924, performing, based on the decision, the conversion.
[0126] In some embodiments, the condition is based on a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs, a coding unit (CU) or a video data unit.
[0127] In some embodiments, the condition is based on one or more of the following: (1) a block dimension of the current video block or at least one neighboring block of the current video block, (2) a block shape of the current video block or the at least one neighboring block, (3) a most probable mode of the current video block or the at least one neighboring block, (4) a prediction mode of the at least one neighboring block, (5) an intra prediction mode of the at least one neighboring block, (6) one or more motion vectors of the at least one neighboring block, (7) an indication of a quantized residual block differential pulse-code modulation (QR-BDPCM) mode of the at least one neighboring block, (8) a current quantization parameter (QP) of the current video block or the at least one neighboring block, (9) an indication of a color format of the current video block, (10) a separate or dual coding tree structure associated with the current video block, (11) a slice type, a tile group type or a picture type of the current video block, or (12) a temporal layer identification (ID).
[0128] In some embodiments, the application of the transform skip mode is performed, a prediction mode of the current video block is an inter block copy (IBC) mode, and a width or a height of the current video block is compared to a threshold. In an example, the threshold is signaled in the bitstream representation. In another example, the threshold is 4, 8, 16 or 32. [0129] In yet another example, the threshold is based on one or more of the following: (1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU), (2) a temporal layer identification (ID), (3) a block dimension of the current video block or at least one neighboring block of the current video block, (4) a block shape of the current video block or the at least one neighboring block, (5) a most probable mode of the current video block or the at least one neighboring block, (6) a prediction mode of the at least one neighboring block, (7) an intra prediction mode of the at least one neighboring block, (8) one or more motion vectors of the at least one neighboring block, (9) an indication of a quantized residual block differential pulse-code modulation (QR-BDPCM) mode of the at least one neighboring block, (10) a current quantization parameter (QP) of the current video block or the at least one neighboring block, (11) an indication of a color format of the current video block, (12) a separate or dual coding tree structure associated with the current video block, or (13) a slice type, a tile group type or a picture type of the current video block.
[0130] FIG. 9D shows a flowchart of yet another exemplary method for video processing. The method 930 includes, at step 932, making a decision, during a conversion between a current video block and a bitstream representation of a video comprising the current video block, regarding a selective application of quantized residual block differential pulse-code modulation (QR-BDPCM) based on an indication of a transform skip mode in the bitstream representation.
[0131] The method 930 includes, at step 934, performing, based on the decision, the conversion.
[0132] In some embodiments, the indication of the transform skip mode is signaled on a transform unit (TU) level.
[0133] FIG. 9E shows a flowchart of yet another exemplary method for video processing. The method 940 includes, at step 942, making a decision, during a conversion between a current video block and a bitstream representation of a video comprising the current video block, regarding a selective application of a separate or dual tree based on a condition.
[0134] The method 940 includes, at step 944, performing, based on the decision, the conversion.
[0135] In some embodiments, the condition is based on a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs, a coding unit (CU) or a video data unit.
[0136] In some embodiments, the condition is based on determining whether a slice, a tile, a largest coding unit (LCU), an LCU row, a group of LCUs or a video data unit comprising the current video block is screen content. In an example, the determining is based on one or more of the following: (1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, the LCU, the LCU row, the group of LCUs, the coding unit (CU) or the video data unit, (2) a block dimension of the current video block or at least one neighboring block of the current video block, (3) a block shape of the current video block or the at least one neighboring block, (4) a current quantization parameter (QP) of the current video block or the at least one neighboring block, (5) an indication of a color format of the current video block, (6) a separate or dual coding tree structure associated with the current video block, (7) a slice type, a tile group type or a picture type of the current video block, or (8) a temporal layer identification (ID).
[0137] FIG. 10 is a block diagram of a video processing apparatus 1000. The apparatus 1000 may be used to implement one or more of the methods described herein. The apparatus 1000 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, and so on. The apparatus 1000 may include one or more processors 1002, one or more memories 1004 and video processing hardware 1006. The processor(s) 1002 may be configured to implement one or more methods (including, but not limited to, methods 900, 910, 920, 930 and 940) described in the present document. The memory (memories) 1004 may be used for storing data and code used for implementing the methods and techniques described herein. The video processing hardware 1006 may be used to implement, in hardware circuitry, some techniques described in the present document.
[0138] In some embodiments, the video coding methods may be implemented using an apparatus that is implemented on a hardware platform as described with respect to FIG. 10.
[0139] In some embodiments, e.g., described in items 5 and 10 et seq above, a method of video processing includes making a determination about whether or not intra block copy mode is applicable for a conversion between a current video block of a video and a bitstream representation based on a type of coding tree structure corresponding to the current video block; and performing the conversion based on the determination.
[0140] In the above method, the bitstream representation excludes an indication of the intra block copy mode. In other words, the bitstream does not carry an explicit signaling of the IBC mode.
[0141] In the above method, the type of coding tree structure is a dual coding tree structure and the determination is that intra block copy mode is not applicable.
[0142] FIG. 11 is a block diagram of an example video processing system in which disclosed techniques may be implemented. Various implementations may include some or all of the components of the system 1100. The system 1100 may include input 1102 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 1102 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.
[0143] The system 1100 may include a coding component 1104 that may implement the various coding or encoding methods described in the present document. The coding component 1104 may reduce the average bitrate of video from the input 1102 to the output of the coding component 1104 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 1104 may be either stored, or transmitted via a communication connected, as represented by the component 1106. The stored or communicated bitstream (or coded) representation of the video received at the input 1102 may be used by the component 1108 for generating pixel values or displayable video that is sent to a display interface 1110. 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.
[0144] Examples of a peripheral bus interface or a display interface may include universal serial bus (USB) or high definition multimedia interface (HD MI) 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.
[0145] FIG. 12 is a flowchart for an example for a visual media encoding method. Steps of this flowchart are discussed in connection with example 11 in Section 4 of this document. At step 1202, the process makes a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a cross component linear model (CCLM) prediction mode based on or inferred from at least a coding tree structure associated with the video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block. At step 1204, the process selectively includes, in the bitstream representation, a syntax element indicative of the application of the CCLM prediction mode based on or inferred from at least the coding tree structure.
[0146] FIG. 13 is a flowchart for an example for a visual media decoding method. Steps of this flowchart are discussed in connection with example 11 in Section 4 of this document. At step 1302, the process determines a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block. At step 1304, the process determines, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a cross-component linear model (CCLM) prediction mode to the current video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block. At step 1306, the process generates the current video block from the bitstream representation.
[0147] FIG. 14 is a flowchart for an example for a visual media encoding method. Steps of this flowchart are discussed in connection with example 12 in Section 4 of this document. At step 1402, the process makes a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a luma mapping with chroma scaling (LMCS) processing step to the video region based on or inferred from at least a coding tree structure associated with the video region, wherein, in the LMCS processing step, luma samples in the video region are mapped using an adaptive piecewise linear model and/or chroma samples in the video region are subjected to a luma-dependent chroma residual scaling operation. At step 1404, the process selectively includes a syntax element, in the bitstream representation, indicative of the application of the LMCS processing step to the video region.
[0148] FIG. 15 is a flowchart for an example for a visual media decoding method. Steps of this flowchart are discussed in connection with example 12 in Section 4 of this document. At step 1502, the process determines a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block. At step 1504, the process determines, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a luma mapping with chroma scaling (LMCS) processing step to the video region, wherein, in the LMCS processing step, luma samples are mapped using an adaptive piecewise linear model and chroma samples are subjected to a luma-dependent chroma residual scaling operation. At step 1506, the process generates the current video block from the bitstream representation.
[0149] Some embodiments of the present document are now presented in clause-based format.
[0150] 1. A method for visual media encoding, comprising:
[0151] making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a cross component linear model (CCLM) prediction mode based on or inferred from at least a coding tree structure associated with the video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and [0152] selectively including, in the bitstream representation, a syntax element indicative of the application of the CCLM prediction mode based on or inferred from at least the coding tree structure.
[0153] 2. A method for visual media decoding, comprising:
[0154] determining a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block;
[0155] determining, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a cross-component linear model (CCLM) prediction mode to the current video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and
[0156] generating the current video block from the bitstream representation.
[0157] 3. The method of any one or more of clauses 1-2, wherein, in a case that the syntax element is excluded in the bitstream representation, the syntax element indicative of the application of the CCLM prediction mode is inferred.
[0158] 4. The method of any one or more of clauses 1-3, wherein, in a case that the coding tree structure is a dual coding tree structure type, the syntax element is inferred as a Boolean false value.
[0159] 5. The method of any one or more of clauses 1-4, wherein, in a case that the coding tree structure is a dual coding tree structure type, the syntax element is excluded from the bitstream representation and is inferred based on a block dimension of the current video block or at least one neighboring block of the current video block.
[0160] 6. The method of any one or more of clauses 1-4, wherein, in a case that the coding tree structure is a dual coding tree structure type, the syntax element is excluded from the bitstream representation and is inferred based on one or more of the following:
[0161] (1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU),
[0162] (2) a hash hit ratio of IBC modes and/or inter modes in coded pictures/tiles/slices/reconstructed regions associated with other video blocks,
[0163] (3) a block shape of the current video block or the at least one neighboring block, [0164] (4) a current quantization parameter (QP) of the current video block or the at least one neighboring block,
[0165] (5) an indication of a color format of the current video block,
[0166] (6) a separate or dual coding tree structure associated with the current video block,
[0167] (7) a slice type, a tile group type or a picture type of the current video block, or
[0168] (8) a temporal layer ID.
[0169] 7. A method for visual media encoding, comprising:
[0170] making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a luma mapping with chroma scaling (LMCS) processing step to the video region based on or inferred from at least a coding tree structure associated with the video region, wherein, in the LMCS processing step, luma samples in the video region are mapped using an adaptive piecewise linear model and/or chroma samples in the video region are subjected to a luma-dependent chroma residual scaling operation; and
[0171] selectively including a syntax element, in the bitstream representation, indicative of the application of the LMCS processing step to the video region.
[0172] 8. A method for visual media decoding, comprising:
[0173] determining a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block;
[0174] determining, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a luma mapping with chroma scaling (LMCS) processing step to the video region, wherein, in the LMCS processing step, luma samples are mapped using an adaptive piecewise linear model and chroma samples are subjected to a luma-dependent chroma residual scaling operation; and
[0175] generating the current video block from the bitstream representation.
[0176] 9. The method of any one or more of clauses 7-8, wherein, in a case that the syntax element is excluded in the bitstream representation, the syntax element indicative of the application of the LMCS processing step is inferred.
[0177] 10. The method of any one or more of clauses 7-9, wherein, in a case that the coding tree structure is a dual coding tree structure type, the syntax element is inferred as a Boolean false value. [0178] 11. The method of any one or more of clauses 7-10, wherein in a case that the coding tree structure is a dual coding tree structure type, the syntax element is excluded from the bitstream representation and is inferred based on one or more of the following:
[0179] (1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU),
[0180] (2) a hash hit ratio of IBC modes and/or inter modes in coded pictures/tiles/slices/reconstructed regions associated with other video blocks,
[0181] (3) a block dimension of the current video block or at least one neighboring block of the current video block,
[0182] (4) a block shape of the current video block or the at least one neighboring block,
[0183] (5) a current quantization parameter (QP) of the current video block or the at least one neighboring block,
[0184] (6) an indication of a color format of the current video block,
[0185] (7) a separate or dual coding tree structure associated with the current video block,
[0186] (8) a slice type, a tile group type or a picture type of the current video block, or
[0187] (9) a temporal layer ID.
[0188] 12. The method of any one or more of clauses 6 or 11, wherein the color format of the current video block is a 4:2:0 format or a 4:4:4 format.
[0189] 13. A video encoder apparatus comprising a processor configured to implement a method recited in any one or more of clauses 1-12.
[0190] 14. A video decoder apparatus comprising a processor configured to implement a method recited in any one or more of clauses 1-12.
[0191] 15. A computer readable medium having code stored thereon, the code embodying processor-executable instructions for implementing a method recited in any one or more of clauses 1 12
[0192] In the present document, the term“video processing” or“visual media 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.
[0193] From the foregoing, it will be appreciated that specific embodiments of the presently disclosed technology have been described herein for purposes of illustration, but that various modifications may be made without deviating from the scope of the invention. Accordingly, the presently disclosed technology is not limited except as by the appended claims.
[0194] Implementations of the subject matter and the functional operations described in this patent document can be implemented in various systems, digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Implementations of the subject matter described in this specification can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on atangible and non-transitory 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 of them. The term“data processing unit” or“data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0195] 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. [0196] The processes and logic flows described in this specification 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).
[0197] 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 nonvolatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
[0198] It is intended that the specification, together with the drawings, be considered exemplary only, where exemplary means an example. As used herein, the singular forms“a”,“an” and“the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. Additionally, the use of“or” is intended to include“and/or”, unless the context clearly indicates otherwise.
[0199] While this patent document contains many specifics, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular inventions. 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.
[0200] 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.
[0201] 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

CLAIMS What is claimed is:
1. A method for visual media encoding, comprising:
making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a cross-component linear model (CCLM) prediction mode based on or inferred from at least a coding tree structure associated with the video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and
selectively including, in the bitstream representation, a syntax element indicative of the application of the CCLM prediction mode based on or inferred from at least the coding tree structure.
2. A method for visual media decoding, comprising:
determining a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block; determining, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a cross component linear model (CCLM) prediction mode to the current video region, wherein, in the CCLM prediction mode, chroma samples of the current video block are predicted using a linear model on reconstructed luma samples of the current video block; and
generating the current video block from the bitstream representation.
3. The method of any one or more of claims 1 -2, wherein, in a case that the syntax element is excluded in the bitstream representation, the syntax element indicative of the application of the CCLM prediction mode is inferred.
4. The method of any one or more of claims 1-3, wherein, in a case that the coding tree structure is a dual coding tree structure type, the syntax element is inferred as a Boolean false value.
5. The method of any one or more of claims 1-4, wherein, in a case that the coding tree structure is a dual coding tree structure type, the syntax element is excluded from the bitstream representation and is inferred based on a block dimension of the current video block or at least one neighboring block of the current video block.
6. The method of any one or more of claims 1-4, wherein, in a case that the coding tree structure is a dual coding tree structure type, the syntax element is excluded from the bitstream representation and is inferred based on one or more of the following:
(1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU),
(2) a hash hit ratio of IBC modes and/or inter modes in coded pictures/tiles/slices/reconstructed regions associated with other video blocks,
(3) a block shape of the current video block or the at least one neighboring block,
(4) a current quantization parameter (QP) of the current video block or the at least one neighboring block,
(5) an indication of a color format of the current video block,
(6) a separate or dual coding tree structure associated with the current video block,
(7) a slice type, a tile group type or a picture type of the current video block, or
(8) a temporal layer ID.
7. A method for visual media encoding, comprising:
making a decision, for encoding a current video block in a video region of a visual media data into a bitstream representation of the visual media data, regarding an application of a luma mapping with chroma scaling (LMCS) processing step to the video region based on or inferred from at least a coding tree structure associated with the video region, wherein, in the LMCS processing step, luma samples in the video region are mapped using an adaptive piecewise linear model and/or chroma samples in the video region are subjected to a luma-dependent chroma residual scaling operation; and
selectively including a syntax element, in the bitstream representation, indicative of the application of the LMCS processing step to the video region.
8. A method for visual media decoding, comprising:
determining a coding tree structure associated with a current video block from a bitstream representation of a visual media data comprising a video region comprising the current video block; determining, at least based on the coding tree structure, whether or not a syntax element is included in the bitstream representation, wherein the syntax element is indicative of application of a luma mapping with chroma scaling (LMCS) processing step to the video region, wherein, in the LMCS processing step, luma samples are mapped using an adaptive piecewise linear model and chroma samples are subjected to a luma-dependent chroma residual scaling operation; and
generating the current video block from the bitstream representation.
9. The method of any one or more of claims 7-8, wherein, in a case that the syntax element is excluded in the bitstream representation, the syntax element indicative of the application of the LMCS processing step is inferred.
10. The method of any one or more of claims 7-9, wherein, in a case that the coding tree structure is a dual coding tree structure type, the syntax element is inferred as a Boolean false value.
11. The method of any one or more of claims 7-10, wherein in a case that the coding tree structure is a dual coding tree structure type, the syntax element is excluded from the bitstream representation and is inferred based on one or more of the following:
(1) a message signaled in a sequence parameter set (SPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, a tile group header, a largest coding unit (LCU), an LCU row, a group of LCUs or a coding unit (CU),
(2) a hash hit ratio of IBC modes and/or inter modes in coded pictures/tiles/slices/reconstructed regions associated with other video blocks,
(3) a block dimension of the current video block or at least one neighboring block of the current video block,
(4) a block shape of the current video block or the at least one neighboring block,
(5) a current quantization parameter (QP) of the current video block or the at least one neighboring block,
(6) an indication of a color format of the current video block,
(7) a separate or dual coding tree structure associated with the current video block,
(8) a slice type, a tile group type or a picture type of the current video block, or
(9) a temporal layer ID.
12. The method of any one or more of claims 6 or 11, wherein the color format of the current video block is a 4:2:0 format or a 4:4:4 format.
13. A video encoder apparatus comprising a processor configured to implement a method recited in any one or more of claims 1-12.
14. A video decoder apparatus comprising a processor configured to implement a method recited in any one or more of claims 1-12.
15. A computer readable medium having code stored thereon, the code embodying processor- executable instructions for implementing a method recited in any one or more of claims 1-12.
PCT/US2020/034839 2019-05-30 2020-05-28 Using coding tree structure type to control coding mode WO2020243246A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202080040213.0A CN113892267A (en) 2019-05-30 2020-05-28 Controlling codec modes using codec tree structure types

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNPCT/CN2019/089250 2019-05-30
CN2019089250 2019-05-30

Publications (1)

Publication Number Publication Date
WO2020243246A1 true WO2020243246A1 (en) 2020-12-03

Family

ID=73552927

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2020/034839 WO2020243246A1 (en) 2019-05-30 2020-05-28 Using coding tree structure type to control coding mode

Country Status (2)

Country Link
CN (1) CN113892267A (en)
WO (1) WO2020243246A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023138627A1 (en) * 2022-01-21 2023-07-27 Mediatek Inc. Method and apparatus of cross-component linear model prediction with refined parameters in video coding system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023138628A1 (en) * 2022-01-21 2023-07-27 Mediatek Inc. Method and apparatus of cross-component linear model prediction in video coding system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150195545A1 (en) * 2014-01-03 2015-07-09 Qualcomm Incorporated Inference of nooutputofpriorpicsflag in video coding
US20180063531A1 (en) * 2016-08-26 2018-03-01 Qualcomm Incorporated Unification of parameters derivation procedures for local illumination compensation and cross-component linear model prediction
US20190045184A1 (en) * 2016-02-18 2019-02-07 Media Tek Singapore Pte. Ltd. Method and apparatus of advanced intra prediction for chroma components in video coding
WO2019026807A1 (en) * 2017-08-03 2019-02-07 Sharp Kabushiki Kaisha Systems and methods for partitioning video blocks in an inter prediction slice of video data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150195545A1 (en) * 2014-01-03 2015-07-09 Qualcomm Incorporated Inference of nooutputofpriorpicsflag in video coding
US20190045184A1 (en) * 2016-02-18 2019-02-07 Media Tek Singapore Pte. Ltd. Method and apparatus of advanced intra prediction for chroma components in video coding
US20180063531A1 (en) * 2016-08-26 2018-03-01 Qualcomm Incorporated Unification of parameters derivation procedures for local illumination compensation and cross-component linear model prediction
WO2019026807A1 (en) * 2017-08-03 2019-02-07 Sharp Kabushiki Kaisha Systems and methods for partitioning video blocks in an inter prediction slice of video data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023138627A1 (en) * 2022-01-21 2023-07-27 Mediatek Inc. Method and apparatus of cross-component linear model prediction with refined parameters in video coding system

Also Published As

Publication number Publication date
CN113892267A (en) 2022-01-04

Similar Documents

Publication Publication Date Title
AU2020258477B2 (en) Context coding for transform skip mode
US20230300379A1 (en) Signaling in transform skip mode
AU2020262284B2 (en) Constraints on quantized residual differential pulse code modulation representation of coded video
US11438602B2 (en) Coding mode based on a coding tree structure type
US11870996B2 (en) Transform bypass coded residual blocks in digital video
WO2020243295A1 (en) Palette mode with intra block copy prediction
WO2020223467A1 (en) Intra coded video using quantized residual differential pulse code modulation coding
WO2020224660A1 (en) Most probable mode list construction for screen content coding
WO2020243246A1 (en) Using coding tree structure type to control coding mode

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: 20813562

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 18/03/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20813562

Country of ref document: EP

Kind code of ref document: A1