Coefficient coding in transform skip mode

By optimizing context index offsets and restricting adaptive parameter set sharing in video coding, the inefficiencies in VVC are addressed, leading to improved video compression and decoding performance.

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

Patent Information

Application Number
JP2022559412
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-04-02
Filing Date
2021-04-01
Publication Date
2024-10-29
Estimated Expiration
2041-04-01

AI Technical Summary

Technical Problem

Existing video coding standards, particularly in VVC, face issues with coefficient coding in transform skip mode, context index offset determination, and adaptive parameter set sharing across layers, leading to inefficiencies and unnecessary repetitions of non-VCL NAL units.

Method used

Implementing specific rules for context index offset determination based on coding modes, restricting bypass coding based on remaining context-coded bins, and prohibiting the sharing of adaptive parameter sets across video layers to enhance coding efficiency and reduce unnecessary repetitions.

Benefits of technology

Improves coding efficiency by optimizing context index offsets, reducing unnecessary coding modes, and ensuring adaptive parameter sets are layer-specific, thereby enhancing video compression and decoding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007575478000051
    Figure 0007575478000051
  • Figure 0007575478000052
    Figure 0007575478000052
  • Figure 0007575478000053
    Figure 0007575478000053
Patent Text Reader

Abstract

[0006] Methods and apparatuses for video processing are disclosed. The processing may include video encoding, video decoding, or video transcoding. One example of the method includes converting a current block of video to a video bitstream, the bitstream conforming to a rule that specifies using a context index offset to include a first sign flag of a first coefficient in the bitstream, the rule specifying that a value of the context index offset is based on whether a first coding mode is applied to the current block in the bitstream.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS Books This application claims priority to and the benefit of International Patent Application No. PCT / CN2020 / 082983, filed on April 2, 2020. Mainly Stretch Based on International Patent Application No. PCT / CN2021 / 084869 filed on April 1, 2021. The entire disclosure of this application is incorporated herein by reference. Show By reference Here It is incorporated herein by reference.

[0002] This patent specification relates to image and video coding and decoding. [Background technology]

[0003] Digital video accounts for the largest bandwidth usage on the Internet and other digital communications networks, and the bandwidth demands for digital video use are expected to continue to grow as the number of connected user devices capable of receiving and displaying video increases. Summary of the Invention

[0004] This application discloses techniques that may be used by video encoders and decoders to process coded representations of video using control information useful for decoding the coded representations.

[0005] In one exemplary aspect, a video processing method is disclosed, the method including converting between a current block of a video and a bitstream of the video, the bitstream conforming to a rule that specifies using a context index offset to include a first sign flag of a first coefficient in the bitstream, the rule specifying that a value of the context index offset is based on whether a first coding mode is applied to the current block in the bitstream.

[0006] In another exemplary aspect, a video processing method is disclosed, which includes converting between a block of a current video and a bitstream of the video, the bitstream conforming to a rule that specifies that a sign flag of the current block is included in the bitstream using one of a context mode and a bypass mode based on a number of remaining context-coded bins.

[0007] In another exemplary aspect, a video processing method is disclosed, the method including converting between a current block of a video and a bitstream of the video, the bitstream conforming to a rule specifying the use of a context index offset to include a sign flag of the current block in the bitstream, the rule specifying the context index offset being determined based on information of the current block.

[0008] In another exemplary aspect, a video processing method is disclosed, the method includes converting between a video including one or more video layers and a bitstream of the video according to a rule, the rule specifying using a plurality of adaptation parameter set network abstraction layer units for the video, each adaptation parameter set network abstraction layer unit having a corresponding adaptation parameter type value, each adaptation parameter set network abstraction layer unit being associated with a corresponding video layer identifier, each adaptation parameter set network abstraction layer unit being a prefix unit or a suffix unit, the rule specifying that in response to the plurality of adaptation parameter set network abstraction layer units sharing the same adaptation parameter type value, the adaptation parameter set identifier values ​​of the plurality of adaptation parameter set network abstraction layer units belong to the same identifier space.

[0009] In another exemplary aspect, a video processing method is disclosed, the method including converting between a current block of a video and a bitstream of the video, the bitstream conforming to a rule specifying that a first supplemental enhancement information message having a particular characteristic is not allowed to (1) be repeated within a slice unit of the bitstream in response to a second supplemental enhancement information message having the particular characteristic being included in the slice unit, or (2) be updated in response to the first supplemental enhancement message being within the slice unit of the bitstream, the slice unit including a set of consecutive network abstraction layer units in decoding order, the network abstraction layer set including a single coded slice and one or more non-video coding layer network abstraction layer units associated with the single coded slice.

[0010] In another exemplary aspect, a video processing method is disclosed that includes converting between a current block of a video and a bitstream of the video, where the bitstream complies with a rule that specifies that a slice unit in the bitstream is not allowed to repeat a first non-video coding layer network abstraction layer unit depending on: (1) the slice unit includes a second non-video coding layer network abstraction layer unit having the same characteristics as a first non-video coding layer network abstraction layer unit, and (2) the first non-video coding layer network abstraction layer unit has a network abstraction layer unit type other than prefix supplemental extension information or suffix supplemental extension information.

[0011] In another exemplary aspect, a video processing method is disclosed that includes converting between a video including multiple video layers and a bitstream for the video according to rules that specify which of multiple adaptation parameter sets are not allowed to be shared across the multiple video layers.

[0012] In another exemplary aspect, a video processing method is disclosed that includes converting between a video including one or more video layers and a bitstream of the video according to rules, the bitstream including one or more adaptive loop filter adaptation parameter sets, the rules specifying whether the one or more adaptive loop filter adaptation parameter sets are allowed to be updated within a picture unit.

[0013] In another exemplary aspect, a video processing method is disclosed that includes converting between video including one or more coded layer video sequences and a bitstream of the video, the bitstream including an adaptive loop filter adaptation parameter set, in accordance with rules that specify that in response to the adaptive loop filter adaptation parameter set having one or more particular characteristics, the adaptive loop filter adaptation parameter set is not allowed to be shared across the one or more coded layer video sequences.

[0014] In another example aspect, a video processing method is disclosed that includes converting between a current block of video and a coded representation of the video, the coded representation conforming to a format rule that specifies that a context index offset used to code a sign flag of the current block in the coded representation is within a range, the range being a function of a range of a coding mode used to represent the current block in the coded representation.

[0015] In another exemplary aspect, another video processing method is disclosed that includes converting between a current block of video and a coded representation of the video, the coded representation conforming to a format rule that specifies that a sign flag of the current block is coded in the coded representation using one of context coded bins or a bypass mode depending on a number of remaining context coded bins.

[0016] In another exemplary aspect, another video processing method is disclosed that includes converting between a current block of video and a coded representation of the video, the converting using a block-based delta pulse code modulation (BDPCM) mode, the coded representation conforming to a format rule that specifies context coding a code flag from the BDPCM in the coded representation such that a context index offset for coding the code flag is a function of a coding condition of the current block.

[0017] In another exemplary aspect, another video processing method is disclosed that includes converting between a current block of video and a coded representation of the video, the coded representation being in consecutive decoding order and conforming to a format rule that specifies that a slice unit of the coded representation that corresponds to a set of network abstraction layer units that includes a single coded slice is permitted to include at least a portion of supplemental enhancement information (SEI) at most once.

[0018] In another exemplary aspect, another video processing method is disclosed that includes converting between a current block of a video and a coded representation of the video, the coded representation conforming to a format rule that specifies that a slice unit in the coded representation that is in consecutive decoding order and corresponds to a set of network abstraction layer units that comprise a single coded slice includes one or more video coding layer network abstraction layer (VCL NAL) units, the format rule further specifying a first type of unit that is allowed to be repeated and a second type of unit that is not allowed to be repeated in the slice unit.

[0019] In another exemplary aspect, another video processing method is disclosed that includes transforming between a video including one or more video layers and a coded representation of the video based on rules, the coded representation including one or more adaptation parameter sets (APS), the rules specifying applicability of some of the one or more APS to the transformation of the one or more video layers.

[0020] In another exemplary aspect, another video processing method is disclosed that includes converting, in accordance with rules, between video including one or more video layers and a coded representation of the video, the coded representation arranged into one or more Network Abstraction Layer (NAL) units, the coded representation including one or more adaptation parameter sets for controlling characteristics of the conversion.

[0021] In yet another exemplary aspect, a video encoder apparatus is disclosed, comprising a processing unit configured to implement the above-described method.

[0022] In yet another exemplary aspect, a video decoder apparatus is disclosed, the video decoder comprising a processing unit configured to implement the method described above.

[0023] In yet another exemplary aspect, a computer readable medium is disclosed having code stored thereon, the code performing one of the methods described herein in the form of processor executable code.

[0024] These and other features are described throughout the specification. [Brief description of the drawings]

[0025] [Figure 1] FIG. 1 is a block diagram illustrating an example of a video processing system. [Diagram 2] FIG. 1 is a block diagram of a video processing device. [Diagram 3] 1 is a flowchart illustrating an example of a video processing method. [Figure 4] 1 is a block diagram illustrating a video coding system according to some embodiments of the present invention. [Diagram 5] FIG. 2 is a block diagram illustrating an encoder according to some embodiments of the present invention. [Figure 6] FIG. 2 is a block diagram illustrating a decoder according to some embodiments of the present invention. [Figure 7] Examples of adaptive loop filter (ALF) shapes are shown (chroma: 5x5 diamond, luminance: 7x7 diamond). [Figure 8] Examples of ALF and CC-ALF diagrams are shown. [Figure 9] 1 is a flow chart illustrating an example of a method for video processing. [Figure 10] 1 is a flow chart illustrating an example of a method for video processing. [Figure 11] 1 is a flow chart illustrating an example of a method for video processing. [Figure 12] 1 is a flow chart illustrating an example of a method for video processing. [Figure 13] 1 is a flow chart illustrating an example of a method for video processing. [Figure 14] 1 is a flow chart illustrating an example of a method for video processing. [Figure 15]1 is a flow chart illustrating an example of a method for video processing. [Figure 16] 1 is a flow chart illustrating an example of a method for video processing. [Figure 17] 1 is a flow chart illustrating an example of a method for video processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] Section headings are used herein for ease of understanding and are not intended to limit the applicability of the technology and embodiments described in each section to that section alone. Additionally, the term H.266 is used in certain descriptions for ease of understanding only and is not intended to limit the scope of the disclosed technology. Thus, the technology described herein is applicable to other video codec protocols and designs.

[0027] 1 Introduction This specification relates to video coding techniques. In particular, it relates to coefficient coding in transform skip mode, and repetition and updating of non-VCL data units in video coding. It may be applied to existing video coding standards such as HEVC, or to finalize standards (Versatile Video Coding). The present invention is also applicable to future video coding standards or video codecs.

[0028] 2 Abbreviations ALF Adaptive Loop Filter APS Adaptation Parameter Set AU Access Unit AUD Access Unit Delimiter AVC Advanced Video Coding CLVS Coded Layer Video Sequence CPB Coded Picture Buffer CRA Clean Random Access CTU Coding Tree Unit CVS Coded Video Sequence DCI Decoding Capability Information DPB Decoded Picture Buffer DU Decoding Unit EOB End Of Bitstream EOS End Of Sequence GDR Gradual Decoding Refresh HEVC High Efficiency Video Coding HRD Hypothetical Reference Decoder IDR Instantaneous Decoding Refresh JEM Joint Exploration Model LMCS Luma Mapping with Chroma Scaling MCTS Motion-Constrained Tile Sets NAL Network Abstraction Layer OLS Output Layer Set PH Picture Header PPS Picture Parameter Set PTL Profile, Tier and Level PU Picture Unit RADL Random Access Decodable Leading (Picture) RAP Random Access Point RASL Random Access Skipped Leading (Picture) RBSP Raw Byte Sequence Payload RPL Reference Picture List SAO Sample Adaptive Offset SEI Supplemental Enhancement Information SPS Sequence Parameter Set STSA Step-wise Temporal Sublayer Access SVC Scalable Video Coding VCL Video Coding Layer VPS Video Parameter Set VTM VVC Test Model VUI Video Usability Information VVC Versatile Video Coding

[0029] 3. Introduction of video coding Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T created H.261 and H.263, ISO / IEC created MPEG-1 and MPEG-4 Visual, and the two organizations jointly created H.262 / MPEG-2Video, H.264 / MPEG-4AVC (Advanced Video Coding), and H.265 / HEVC standards. Since H.262, video coding standards have been based on hybrid video coding structures where temporal prediction and transform coding are utilized. In 2015, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) to explore future video coding technologies beyond HEVC. Since then, many new methods have been adopted by JVET and incorporated into reference software called JEM (Joint Exploration Model). JVET meets quarterly, and the new coding standard aims to achieve a 50% bitrate reduction compared to HEVC. At the April 2018 JVET meeting, the new video coding standard was officially named "VVC (Versatile Video Coding)" and the first version of the VVC Test Model (VTM) was released at that time. As efforts to contribute to the standardization of VVC continue, new coding techniques are adopted for the VVC standard at every JVET meeting. After every meeting, the VVC working draft and test model VTM are updated. The VVC project is currently aiming for technical finalization (FDIS) at the July 2020 meeting.

[0030] [ka]

[0031] 3.2 Coefficient Coding in Transform Skip Mode In the current VVC draft, some modifications are proposed for coefficient coding in TS (transform skip) mode compared to non-TS coefficient coding in order to adapt the residual coding to the statistics and signal characteristics of the transform skip level.

[0032] The latest texts relevant to this part in JVET-Q2001-vE are: 7.3.10.11 Residual Coding Syntax [Table 1] [Table 2] [Table 3] [Table 4] [Table 5] [Table 6] [Table 7] [Table 8] [Table 9] [Table 10] [Table 11] [Table 12] [Table 13] [Table 14] [Table 15]

[0033] 3.2.1 Context Modeling of Sign Flag coeff_sign_flag and Context Index Offset Derivation Table 51 - Association of ctxIdx and syntax elements for each initialization type in the initialization process [Table 16] Table 125 - ctxInc initValue and shiftIdx specifications for coeff_sign_flag [Table 17] Table 131 - Allocation of ctxInc to syntax elements with context-coded bins [Table 18]

[0034] 9.3.4.2.10 Derivation Process of ctxInc for Syntax Element coeff_sign_flag for Transform Skip Mode The inputs to this process are the color component index cIdx, the luma position (x0,y0) that defines the top left sample of the current transform block relative to the top left sample of the current picture, and the current coefficient scan position (xC,yC). The output of this process is the variable ctxInc. The variables leftSign and aboveSign are derived as follows: leftSign=(xC==0)?0:CoeffSignLevel[xC-1][yC] (1595) aboveSign=(yC==0)?0:CoeffSignLevel[xC][yC-1] (1596) The variable ctxInc is derived as follows. If -leftSign is equal to 0 and aboveSign is equal to 0 or if leftSign is equal to -aboveSign, the following applies: ctxInc=(BdpcmFlag[x0][y0][cIdx]==0?0:3) (1597) - Else, if leftSign is greater than or equal to 0 and aboveSign is greater than or equal to 0, then the following applies: ctxInc=(BdpcmFlag[x0][y0][cIdx]?1:4) (1598) - If not, the following applies: ctxInc=(BdpcmFlag[x0][y0][cIdx]?2:5) (1599)

[0035] 3.3 Block-Based Quantized Residual Domain DPCM (BDPCM) In JVET-M0413, quantized residual block differential pulse code modulation (BDPCM) was proposed for efficient coding of screen content and has been adopted in the VVC draft.

[0036] The prediction directions used in QR-BDPCM can be vertical and horizontal prediction modes. Intra prediction predicts the whole block by copying samples to the 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 explained as follows: For a block of size M (rows) × N (columns), r i,j, 0≦i≦M-1, 0≦j≦N-1 be the prediction residual after intra prediction in the horizontal direction (copying the pixel values ​​of the left neighbor to the prediction block line by line) or vertical direction (copying the upper neighbor to each line in the prediction block) using unfiltered samples from the boundary samples of the upper or left block. i , j ), 0≦i≦M-1, 0≦j≦N-1 is the residual r i , j where the residual is the difference between the original block and the predicted block values. Then, block DPCM is applied to the quantized residual samples, resulting in the element r ~ i , j A modified M×N array R ~ When the vertical BDPCM is signaled,

[0037]

number

[0038] For horizontal prediction, a similar rule applies and the residual quantized samples are given by:

[0039]

number

[0040] Residual quantized sample r ~ i,j is sent to the decoder.

[0041] At the decoder, the above calculation is reversed to obtain Q(r i,j ), 0≦i≦M-1, 0≦j≦N-1. For vertical prediction,

[0042]

number

[0043] For the horizontal direction,

number

[0044] The dequantized residual Q -1 (Q(r i,j )) to the intrablock prediction to generate a reconstructed sample value.

[0045] The main advantage of this scheme is that the inverse DPCM can be done on the fly while parsing the coefficients, and only the predictor needs to be added while parsing the coefficients, or it can be done after parsing.

[0046] 3.4 Scalable Video Coding (SVC) in General and in VVC Scalable video coding (SVC, sometimes referred to as scalability in video coding), sometimes referred to as base layer (BL) (sometimes referred to as reference layer (RL)) video coding, employs one or more scalable enhancement layers (EL). In SVC, the base layer may carry a basic level of video data. One or more enhancement layers may carry additional video data, e.g., to support higher spatial, temporal, and / or signal-to-noise (SNR) levels. Enhancement layers may be defined relative to a previous, coded layer. For example, a lower layer may function as a BL and an upper layer may function as an EL. An intermediate layer may function as either an EL or an RL, or both. For example, an intermediate layer (e.g., a layer that is neither the lowest nor the highest layer) may be an EL for a layer below the intermediate layer, e.g., the base layer or any intervening enhancement layer, and at the same time serve as an RL for one or more enhancement layers above the intermediate layer. Similarly, in multiview or 3D extensions of the HEVC standard, there may be multiple views and information of one view may be utilized to code (e.g., encode or decode) information of another view (e.g., motion estimation, motion vector prediction, and / or other redundancy).

[0047] In SVC, parameters used in an encoder or decoder are grouped into parameter sets based on the coding level at which they can be utilized (e.g., video level, sequence level, picture level, slice level, etc.). For example, parameters that can be utilized by a coding video sequence of different layers in a bitstream may be included in a video parameter set (VPS), and parameters utilized by one or more pictures in a coding video sequence may be included in a sequence parameter set (SPS). Similarly, parameters utilized by one or more slices of a picture may be included in a picture parameter set (PPS), and other parameters specific to a slice may be included in a slice header. Similarly, an indication of which parameter set(s) a particular layer is using at a given time may be provided at various coding levels.

[0048] With the support of reference picture resampling (RPR) in VVC, a bitstream containing multiple layers, e.g., two layers of SD and HD resolution in VVC, can be designed to support without requiring additional signal processing level coding tools, since the upsampling required for spatial scalability support only requires the use of RPR upsampling filters. Nevertheless, a high level of syntax change (compared to not supporting scalability) is required for scalability support. Scalability support is specified in VVC version 1. Unlike scalability support in any previous video coding standard, including the extensions of AVC and HEVC, the design of scalability in VVC has been made as suitable as possible for the design of single-layer decoders. The decoding capabilities of multi-layer bitstreams are specified as if there was only one layer in the bitstream. For example, the decoding capabilities, such as DPB size, are specified to be independent of the number of layers of the bitstream being decoded. Essentially, a decoder designed for a single-layer bitstream does not require many modifications to be able to decode a multi-layer bitstream. Compared to the multi-layer extension designs of AVC and HEVC, the HLS aspects have been significantly simplified at the expense of some flexibility: for example, an IRAP AU needs to contain an image for each layer present in the CVS.

[0049] A VVC bitstream may be composed of one or more Output Layer Sets (OLS). An OLS is a collection of layers in which one or more layers are designated as output layers. An output layer is a layer that is output after being decoded.

[0050] 3.5 Parameter Set AVC, HEVC, and VVC specify parameter sets. Parameter set types are SPS, PPS, APS, VPS, etc. SPS and PPS are supported by all of AVC, HEVC, and VVC. VPS was introduced by HEVC and is included in both HEVC and VVC. APS was not included in AVC or HEVC, but is included in the recent VVC draft text.

[0051] The SPS was designed to carry sequence-level header information, and the PPS was designed to carry picture-level header information that does not change frequently. With the SPS and PPS, redundant signaling of frequently changing information can be avoided since it is not necessary to repeat this information for every sequence or picture. Furthermore, using the SPS and PPS enables out-of-band transmission of important header information, thereby improving error resilience as well as avoiding the need for redundant transmission.

[0052] VPS was introduced to carry sequence-level header information that is common to all layers of a multi-layer bitstream.

[0053] APS was introduced to carry such picture-level or slice-level information that requires significant bits to code, can be shared by multiple pictures, and can exist in a sequence with many different variations.

[0054] In VVC, the APS is used to carry the parameters ALF, LMCS, and scaling list parameters.

[0055] 3.6 NAL Unit Types and NAL Unit Header Syntax and Semantics in VVC In the recent VVC text (JVET-Q2001-vE / v15), the NAL unit header syntax and semantics are as follows: 7.3.1.2 NAL unit header syntax [Table 19] 7.4.2.2 NAL unit header semantics

[0056] [ka] The value of nuh_layer_id shall be the same for all VCL NAL units of one coded picture. The value of nuh_layer_id of a coded picture or PU is the value of nuh_layer_id of the VCL NAL units of the coded picture or PU. The values ​​of nuh_layer_id for AUD, PH, EOS, and FD NAL units are constrained as follows: - if nal_unit_type is equal to AUD_NUT, then nuh_layer_id shall be equal to vps_layer_id[0]. - Alternatively, if nal_unit_type is equal to PH_NUT, EOS_NUT, or FD_NUT, nuh_layer_id shall be equal to the nuh_layer_id of the associated VCL NAL unit. NOTE 1 – The values ​​of nuh_layer_id in DCI, VPS, and EOB NAL units are not constrained. [ka] nal_unit_type specifies the NAL unit type, i.e., the type of RBSP data structure contained in the NAL unit, as specified in Table 5. NAL units with nal_unit_type in the range UNSPEC_28..UNSPEC_31 and with unspecified semantics shall have no effect on the decoding process as specified in this specification. NOTE 2 - NAL unit types in the range UNSPEC_28...UNSPEC_31 may be used as determined by the application. This specification does not specify the decoding process for these values ​​of nal_unit_type. Because different applications may use these NAL unit types for different purposes, special care must be taken in the design of encoders that generate NAL units with these nal_unit_type values, and in the design of decoders that interpret the content of NAL units with these nal_unit_type values. This specification does not define the management of these values. These nal_unit_type values ​​may be suitable for use only in contexts where "collisions" of usage (i.e., different definitions of the meaning of the content of NAL units for the same nal_unit_type value) are not significant or possible, or are defined or managed by a controlling application or transport specification, or by controlling the environment in which the bitstream is distributed. For purposes other than determining the number of data in a DU of the bitstream (as specified in Annex C), a decoder SHALL ignore (remove from the bitstream and discard) the content of all NAL units that use reserved values ​​of nal_unit_type. NOTE 3 - This requirement allows for the future definition of extensions that conform to this specification. Table 5 - NAL unit type codes and NAL unit type classes

[0057] [Table 20] [Table 21] NOTE 4 – A Clean Random Access (CRA) picture may have an associated RASL or RADL picture present in the bitstream. NOTE 5 - An IDR (Instantaneous Decoding Refresh) picture with nal_unit_type equal to IDR_N_LP does not have an associated first picture present in the bitstream. An IDR picture with nal_unit_type equal to IDR_W_RADL does not have an associated RASL picture present in the bitstream, but may have a RADL picture associated with it. The value of nal_unit_type shall be the same for all VCL NAL units of a subpicture: a subpicture is considered to have the same NAL unit type as the VCL NAL units of this subpicture.

[0058] For any particular picture's VCL NAL units, the following applies: - If mixed_nalu_types_in_pic_flag is equal to 0, the value of nal_unit_type shall be the same for all VCL NAL units of a picture, and a picture or PU is considered to have the same NAL unit type as the coded slice NAL unit of this picture or PU. - Otherwise (mixed_nalu_types_in_pic_flag is equal to 1), this picture has at least two subpictures and the VCL NAL units of this picture shall have exactly two different nal_unit_type values ​​as follows: The VCL NAL units of at least one subpicture of this picture shall all have a particular nal_unit_type equal to STSA_NUT, RADL_NUT, RASL_NUT, IDR_W_RADL, IDR_N_LP, or CRA_NUT, while the VCL NAL units of other subpictures in the picture shall all have a different particular nal_unit_type equal to TRAIL_NUT, RADL_NUT, or RASL_NUT.

[0059] For single-layer bitstreams, the following constraints apply: - Each picture is considered to be related to the previous IRAP picture in decoding order, except for the first picture in the bitstream in decoding order. - If the picture is the start picture of an IRAP picture, it is a RADL or RASL picture. - If a picture is the last picture of an IRAP picture, it shall not be a RADL or RASL picture. - RASL pictures shall not be included in the bitstream associated with an IDR picture. - RADL pictures shall not be included in a bitstream associated with an IDR picture with nal_unit_type equal to IDR_N_LP. NOTE 6 - As long as each parameter set is referenced and available (in the bitstream or by external means not specified in this specification), it is possible to perform random access at the position of the IRAP PU (and correctly decode the IRAP picture and all subsequent non-RASL pictures in decoding order) by discarding all PUs before the IRAP PU. A picture that precedes the IRAP picture in decoding order shall precede the IRAP picture in output order and shall precede in output order the RADL picture associated with the IRAP picture. - A RASL picture associated with a CRA picture shall precede the RADL picture associated with the CRA picture in output order. - The RASL pictures associated with a CRA picture shall follow the output order of the IRAP picture that precedes the CRA picture in decoding order. - if field_seq_flag is equal to 0 and the current picture is equal to the first picture associated with an IRAP picture, it shall precede all non-first pictures associated with the same IRAP picture in decoding order. Otherwise, let picA and picB be the first and last first pictures, in decoding order, associated with an IRAP picture, respectively, then there shall be at most one non-first picture preceding picA in decoding order and there shall be no non-first pictures between picA and picB in decoding order.

[0060] [ka] The value of nuh_temporal_id_plus1 shall not be equal to 0. The variable TemporalId is derived as follows: TemporalId=nuh_temporal_id_plus1-1 (36)

[0061] If nal_unit_type is in the range IDR_W_RADL to RSV_IRAP_12, TemporalId shall be equal to 0. If nal_unit_type is equal to STSA_NUT and vps_independent_layer_flag[GeneralLayerIdx[nuh_layer_id]] is equal to 1, then TemporalId shall not be equal to 0.

[0062] The value of TemporalId shall be the same for all VCL NAL units of an AU. The value of TemporalId of a coded picture, PU, ​​or AU is the value of TemporalId of the VCL NAL units of the coded picture, PU, ​​or AU. The value of TemporalId of a sublayer representation is the maximum value of TemporalId of all VCL NAL units in the sublayer representation.

[0063] The values ​​of TemporalId for non-VCL NAL units are constrained as follows: - if nal_unit_type is equal to DCI_NUT, VPS_NUT, VPS_NUT, or SPS_NUT, TemporalId shall be equal to 0 and the TemporalId of the AU containing the NAL unit shall be equal to 0. - Otherwise, if nal_unit_type is equal to PH_NUT, then TemporalId shall be the TemporalId of the PU that contains the NAL unit. - Otherwise, if nal_unit_type is equal to EOS_NUT or EOB_NUT, TemporalId shall be equal to 0. - Otherwise, if nal_unit_type is equal to AUD_NUT, FD_NUT, PREFIX_SEI_NUT, or SUFFIX_SEI_NUT, then TemporalId SHALL be the TemporalId of the AU that contains the NAL unit. - Otherwise, if nal_unit_type is equal to PPS_NUT, PREFIX_APS_NUT, or SUFFIX_APS_NUT, TemporalId shall be greater than or equal to the TemporalId of the PU that contains the NAL unit. NOTE 7 - If the NAL unit is a non-VCL NAL unit, the value of TemporalId is equal to the minimum of the TemporalId values ​​of all AUs to which the non-VCL NAL unit applies. If nal_unit_type is equal to PPS_NUT, PREFIX_APS_NUT, or SUFFIX_APS_NUT, TemporalId may be greater than or equal to the TemporalId of the containing AU, all PPSs and APSs may be included at the beginning of the bitstream (e.g., if they are transported out-of-band, the receiver places them at the beginning of the bitstream), and the first coded picture has TemporalId equal to 0.

[0064] 3.7. Adaptive Loop Filter (ALF) Two diamond filter shapes (shown in Figure 7) are used in block-based ALF. A 7x7 diamond is applied to the luma component and a 5x5 diamond is applied to the chroma component. One of up to 25 filters is selected for each 4x4 block based on the local gradient direction and activity. Each 4x4 block in the picture is classified based on its directionality and activity. Before filtering each 4x4 block, simple geometric transformations such as rotation or diagonal and vertical flips can be applied to the filter coefficients based on the gradient values ​​calculated for that block. This is equivalent to applying these transformations to samples within the filter support region. The idea is to make different blocks to which ALF is applied more similar by aligning their directionality. Block-based classification is not applied to the chroma components.

[0065] The ALF filter parameters are signaled in an adaptive parameter set (APS). In one APS, up to 25 pairs of luma filter coefficients and clipping value indexes and up to 8 pairs of chroma filter coefficients and clipping value indexes can be signaled. To reduce bit overhead, filter coefficients of different classifications of luma components can be merged. In a picture or slice header, up to 7 APS IDs can be signaled to identify the luma filter set to be used for the current picture or slice. The filtering process is further controlled at the CTB level. One luma CTB can select one filter set from 16 fixed filter sets and filter sets signaled in multiple APSs. For the chroma component, the APS ID is signaled in the picture or slice header to indicate the chroma filter set used for the current picture or slice. At the CTB level, if there are more than one chroma filter set in an APS, a filter index is signaled for each chroma CTB. When the ALF is enabled for a CTB, for each sample in that CTB, it runs a diamond filter with the signaled weights and applies a clipping operation to clip the difference between adjacent samples and the current sample. The clipping operation introduces a nonlinearity to make the ALF more efficient by reducing the effect of adjacent sample values ​​that are too different from the current sample value.

[0066] The cross-component adaptive loop filter (CC-ALF) can further extend each chroma component on top of the ALF mentioned above. The purpose of CC-ALF is to refine each chroma component using the luma sample values. This is achieved by applying a diamond-shaped high-pass linear filter and using the output of this filtering operation for chroma fine-tuning. Figure 8 provides a system-level diagram of the CC-ALF processing relative to the other loop filters. As shown in Figure 8, CC-ALF uses the same input as the luma ALF to avoid an additional step of full-loop filtering.

[0067] 3.8. Luminance Mapping with Chroma Scaling (LMCS) [ka]

[0068] 4. Examples of technical problems that the disclosed technical solution aims to solve The existing design in the recent VVC text (JVET-Q2001-vE / v15) has the following problems: 1) Although the coefficient coding in JVET-N0280 can realize the coding advantages in coding of screen contents, the coefficient coding and TS mode may still have some disadvantages. a) For example, if BDPCM is disabled for a sequence, the contexts used to code the coding flags (described in section 3.2.1) may be non-contiguous. Such a design makes context switching difficult, since the memory addresses associated with the non-contiguous context indexes are also non-contiguous. b) It is unclear in this case whether the coding flag should use bypass coding or context coding. - The number of remaining allowed context-coded bins (denoted by RemCcbs) is equal to 0. - The current block is coded in TS mode. - slice_ts_residual_coding_disabled_flag is false. 2) Repetitions of most SEI messages are limited to a maximum of four times within a PU, and repetitions of decoding unit information SEI messages are limited to a maximum of four times within a DU. However, it is also possible to repeat the same SEI message multiple times between two VCL NAL units, which is meaningless. 3) Repetition of non-VCL NAL units other than the SEI NAL unit between two VCL NAL units is permitted, but is meaningless. 4) APS NAL units may be shared across multiple layers. However, in the case of ALF, the filters are highly dependent on the reconstructed samples, and QPs may be used differently for different layers, even for the same video content, and therefore in most cases ALF filter inheritance from those generated for pictures of different layers does not yield negligible coding gain benefit. Therefore, to make ALF APS operation simpler, sharing of APS NAL units across multiple layers should be prohibited. The same is true for other types of APS (i.e., LMCS APS and scaling list APS). [ka] 6) It is specified that all APS NAL units with a particular value of aps_params_type share the same value space for adaptation_parameter_set_id, regardless of the value of nuh_layer_id. However, on the other hand, it is specified that all APS NAL units with a particular value of adaptation_parameter_set_id and a particular value of aps_params_type in a PU must have the same content, regardless of whether they are prefix or suffix APS NAL units. Therefore, it makes sense that APS of the same type with different NAL unit types also share the same value space for adaptation_parameter_set_id. 7) APS NAL units (with specific values ​​of nal_unit_type, specific values ​​of adaptation_parameter_set_id, and specific values ​​of aps_params_type) are allowed to be shared between PUs and also between CLVSs. However, it is not expected to have good coding gain to be able to share a specific APS NAL unit across CLVSs.

[0069] 5. List of technical solutions and implementation examples In order to solve the above-mentioned problems, the following methods are disclosed. These items are examples for explaining a general concept, and should not be interpreted in a narrow sense. Furthermore, these items may be applied individually or may be combined in any manner. [ka] 1. It is proposed that the allowed context index offsets for coding the sign flag are in a first range [N0,N1] if the current block is coded in mode X, and [N2,N3] otherwise. In one example, mode X may be a luma and / or chroma BDPCM mode. b. In one example, N0, N1, N2, and N3 can be 0, 2, 3, and 5, respectively. c. In one example, the above example may apply if condition M is false. d. As an example, the above example may be applied when applying a transformation skip to a block. e. N0, N1, N2, N3 may be determined based on one or more of the following: i. Indications signaled in an SPS / VPS / PPS / Picture Header / Slice Header / Tile Group Header / LCU Row / LCU Group / LCU / CU ii. Block dimensions of the current block and / or its adjacent blocks iii. The block shape of the current block and / or its adjacent blocks iv. Display color format (e.g. 4:2:0, 4:4:4) v. Whether a separate or dual coding tree structure is used vi. Slice type and / or picture type vii. Number of color components 2. If the number of remaining permitted context-coded bins (represented by RemCcbs) is less than N, it is proposed to code the sign flag in bypass mode. a. In one example, the sign flag is coded in bypass mode if RemCcbs < N. i. Alternatively, in one example, if RemCcbs ≧ N, the sign flag is coded in context mode. b. In one example, if RemCcbs is equal to N, the sign flag is coded in bypass mode. i. Alternatively, in one example, if RemCcbs > N, the sign flag is coded in bypass mode. c. In one example, N may be set equal to 4. i. Alternatively, in one example, N may be set equal to 0. d. In one example, N is an integer and may be based on the following. i. Indications signaled in SPS / VPS / PPS / picture header / slice header / tile group header / LCU row / LCU group / LCU / CU ii. Block dimensions of the current block and / or its adjacent blocks iii. Block shapes of the current block and / or its adjacent blocks iv. Display of color format (e.g., 4:2:0, 4:4:4) v. Whether a separate or dual coding tree structure is used vi. Slice type and / or picture type vii. Number of color components e. The above examples may apply to transform blocks and / or transform skip blocks that include or do not include BDPCM-encoded blocks. 3. The context index offset for coding the sign flag may be determined based on one or more of the following. a. Indications signaled in an SPS / VPS / PPS / Picture Header / Slice Header / Tile Group Header / LCU Row / LCU Group / LCU / CU b. Block dimensions of the current block and / or its neighboring blocks c. Block shapes of the current block and / or its neighboring blocks i. In one example, the sign flag context values ​​may be separate for different block shapes. d. Prediction mode of the neighboring blocks of the current block (intra / inter) i. In one example, the context values ​​of the sign flag may be separate for intra and inter blocks. e. Display of BDPCM mode of adjacent blocks of current block f. Display color format (e.g. 4:2:0, 4:4:4) g. Whether a separate or dual coding tree structure is used h. Slice type and / or picture type i. Number of color components i. In one example, the context values ​​of the indicator flag may be separate for the luma and chroma color components. [ka] The term "slice unit" is defined as follows: [ka] 4. To solve problem 2, one or more of all types of SEI messages may not be allowed to be repeated within a SU. [ka] b. Alternatively, any SEI message of a particular payload type value (regardless of content) is not allowed to be repeated within a SU. [ka] c. Alternatively, any SEI message with a particular payload type is not allowed to be updated within the SU. [ka] 5. To solve problem 3, repetition of non-VCL NAL units within a SU may be disallowed for one or more of the non-VCL NAL types other than PREFIX_SEI_NUT and SUFFIX_SEI_NUT. In one example, one or more of the following constraints are specified: [ka] b. Alternatively or additionally, DCI NAL units are not allowed to be repeated within a CLVS or CVS. c. Alternatively or additionally, VPS NAL units with particular values ​​of vps_video_parameter_set_id are not allowed to be repeated within a CLVS or CVS. d. Alternatively or additionally, SPS NAL units with particular values ​​of sps_seq_parameter_set_id are not allowed to be repeated within the CLVS. 6. To address problem 4, one may specify that APS of any type may not be shared across layers. a. Alternatively, it may be specified that ALF APS is not shared across layers. 7. To solve problem 5, it may be provided that the ALF APS can be updated within the PU. a. Alternatively, it may be specified that updating the adaptive parameter set within a picture unit is not allowed. 8. To solve problem 6, it may be specified that all APS NAL units with a particular value of aps_params_type share the same value space for adaptation_parameter_set_id, regardless of the nuh_layer_id value and regardless of whether they are prefix or suffix APS NAL units. a. Alternatively, it may be specified that LMCS APS NAL units share the same value space for adaptation_parameter_set_id, regardless of the nuh_layer_id value and regardless of whether they are prefix or suffix APS NAL units. b. Alternatively, it may be specified that ALF APS NAL units share the same value space for adaptation_parameter_set_id, regardless of the nuh_layer_id value and regardless of whether they are prefix or suffix APS NAL units. 9. To solve issue 6, it may be specified that APS NAL units (specific values ​​of nal_unit_type, specific values ​​of adaptation_parameter_set_id, and specific values ​​of aps_params_type) must not be shared between CLVSs. a. In one example, it is specified that the APS NAL unit that the VCL NAL unit vclNalUnitA references must not be an associated non-VCL NAL unit of a VCL NAL unit in a CLVS different from the CLVS that contains vclNalUnitA. b. Alternatively, it is specified that the APS NAL unit referenced by the VCL NAL unit vclNalUnitA must not be an associated non-VCL NAL unit of a VCL NAL unit associated with an IRAP picture different from the IRAP picture with which vclNalUnitA is associated. c. Alternatively, it is specified that the APS NAL unit referenced by the VCL NAL unit vclNalUnitA must not be an associated non-VCL NAL unit of a VCL NAL unit associated with an IRAP or GDR picture different from the IRAP or GDR picture with which vclNalUnitA is associated. d. Alternatively, the APS may be specified as not being shared between CVSes. i. Alternatively, APSs with certain APS types (eg, ALF, LMCS, SCALING) may be designated as not being shared between CVSs.

[0070] 6. Embodiments [ka] The inputs to this process are the color component index cIdx, the luma position (x0,y0) that defines the top left sample of the current transform block relative to the top left sample of the current picture, and the current coefficient scan position (xC,yC). The output of this process is the variable ctxInc. The variables leftSign and aboveSign are derived as follows: leftSign=(xC==0)?0:CoeffSignLevel[xC-1][yC] (1595) aboveSign=(yC==0)?0:CoeffSignLevel[xC][yC-1] (1596) The variable ctxInc is derived as follows. If -leftSign is equal to 0 and aboveSign is equal to 0 or if leftSign is equal to -aboveSign, the following applies: ctxInc=(BdpcmFlag[x0][y0][cIdx]==0?0:3) (1597) - if leftSign is 0 or greater and aboveSign is 0 or greater, the following applies: ctxInc=(BdpcmFlag[x0][y0][cIdx]==0?1:4) (1598) - If not, the following applies: ctxInc=(BdpcmFlag[x0][y0][cIdx]==0?2:5) (1599)

[0071] 6.2 Embodiment #2 [ka] The inputs to this process are the color component index cIdx, the luma position (x0,y0) that defines the top left sample of the current transform block relative to the top left sample of the current picture, and the current coefficient scan position (xC,yC). The output of this process is the variable ctxInc. The variables leftSign and aboveSign are derived as follows: leftSign=(xC==0)?0:CoeffSignLevel[xC-1][yC] (1595) aboveSign=(yC==0)?0:CoeffSignLevel[xC][yC-1] (1596) The variable ctxInc is derived as follows. If -leftSign is equal to 0 and aboveSign is equal to 0 or if leftSign is equal to -aboveSign, the following applies: ctxInc=[[(BdpcmFlag[x0][y0][cIdx]==0?]]0[[:3)]] (1597) - if leftSign is 0 or greater and aboveSign is 0 or greater, the following applies: ctxInc=[[(BdpcmFlag[x0][y0][cIdx]?]]1[[:4)]](1598) - If not, the following applies: ctxInc=[[(BdpcmFlag[x0][y0][cIdx]?]]2[[:5)]] (1599) - If BdpcmFlag[x0][y0][cIdx] is equal to 1, the following applies: ctxInc=ctxInc+3

[0072] 6.3 Example #3 [ka]

[0073] 6.4 Example #4 This embodiment corresponds to items 5 to 7. 7.4.3.5 Adaptation Parameter Set Semantics Each APS RBSP shall be available to the decoding process before it is referenced, shall be contained within at least one AU with a TemporalId less than or equal to the TemporalId of the coded slice NAL unit that references it, or shall be provided through external means. [ka] If aps_params_type is equal to ALF_APS or SCALING_APS, the value of adaptation_parameter_set_id shall be in the range 0 to 7. When aps_params_type is equal to LMCS_APS, the value of adaptation_parameter_set_id shall be in the range of 0 to 3. Let apsLayerId be the value of nuh_layer_id for a particular APS NAL unit, and vclLayerId be the value of nuh_layer_id for a particular VCL NAL unit. A particular VCL NAL unit SHALL not reference a particular APS NAL unit unless its apsLayerId is [[less than or equal to]] its vclLayerId, and [[a layer with nuh_layer_id for apsLayerId is included in at least one OLS that contains a layer with nuh_layer_id that is vclLayerId.]] [ka] 1. Table 6 - APS Parameter Type Codes and APS Parameter Types [Table 22] [ka] [ka]

[0074] 6.5. Example for coding the sign flag In one embodiment, if RemCcbs is less than 0, bypass coding is used. Table 131 - Allocation of ctxInc to syntax elements with context coding bins [Table 23] [ka] Table 131 - Allocation of ctxInc to syntax elements with context coding bins [Table 24] Alternatively, in one embodiment, if RemCcbs is less than 4, bypass coding is used. Table 131 - Allocation of ctxInc to syntax elements with context coding bins [Table 25]

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

[0076] The system 1900 may include a coding module 1904 that may implement various coding or encoding methods described herein. The coding component 1904 may reduce the average bit rate of the video from the input 1902 to the output of the coding component 1904, generating a coded representation of the video. Thus, this coding technique may be referred to as a video compression or video transcoding technique. The output of the coding component 1904 may be stored or transmitted via a connected communication, as represented by component 1906. The bitstream (or coded) representation of the video received at the input 1902, stored or communicated, may be used by component 1908 to generate pixel values ​​or displayable video that are sent to a display interface 1910. The process of generating video viewable by a user from the bitstream representation may be referred to as video unfolding. Additionally, although certain video processing operations are referred to as "coding" operations or tools, it will be understood that the coding tools or operations are used in an encoder and that corresponding decoding tools or operations that reverse the results of the coding are performed by a decoder.

[0077] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB) or High Definition Multimedia Interface (HDMI) or DisplayPort, etc. Examples of storage interfaces include Serial Advanced Technology Attachment (SATA), PCI, IDE interfaces, etc. The techniques described herein may be implemented in a variety of electronic devices, such as mobile phones, laptops, smartphones, or other devices capable of digital data processing and / or video display.

[0078] 2 is a block diagram of a video processing device 3600. The device 3600 may be used to implement one or more of the methods described herein. The device 3600 may be implemented in a smartphone, tablet, computer, Internet of Things (IoT) receiver, etc. The device 3600 may include one or more processing units 3602, one or more memories 3604, and video processing hardware 3606. The one or more processors 3602 may be configured to implement one or more methods described herein. The memory(s) 3604 may be used to store data and codes used to implement the methods and techniques described herein. The video processing hardware 3606 may be used to implement the techniques described herein in a hardware circuit.

[0079] FIG. 4 is a block diagram illustrating an example video encoding system 100 that can utilize techniques of this disclosure.

[0080] 4, video coding system 100 may include source device 110 and destination device 120. Source device 110 generates encoded video data, which may also be referred to as a video coding device. Destination device 120 may decode the coded video data generated by source device 110, and may be referred to as a video decoding device.

[0081] Source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.

[0082] The video source 712 may include a source such as a video capture device, an interface for receiving video data from a video content provider, and / or a computer graphics system for generating video data, or a combination of these sources. The video data may include one or more pictures. The video encoder 114 encodes the video data from the video source 112 and generates a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include a coded picture and associated data. A coded picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. The I / O interface 116 may include a modulator / demodulator (modem) and / or a transmitter. The coded video data may be transmitted directly to the destination device 120 via the I / O interface 116 over the network 130a. The coded video data may be stored on a recording medium / server 130b for access by the destination device 120.

[0083] Destination device 120 may include an I / O interface 126 , a video decoder 124 , and a display device 122 .

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

[0085] Video encoder 114 and video decoder 124 may operate in accordance with a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, the Versatile Video Coding (VVVM) standard, and other current and / or future standards.

[0086] FIG. 5 is a block diagram of an example video encoder 200, which may be the video encoder 114 in the system 100 shown in FIG.

[0087] Video encoder 200 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 5, video encoder 200 includes multiple functional components. Techniques described in this disclosure may be shared among various modules of video encoder 200. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0088] The functional components of the video encoder 200 may include a partitioning unit 201, a prediction unit 202, which may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205, and an intra prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.

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

[0090] Furthermore, some modules, such as the motion estimator 204 and the motion compensator 205, may be highly integrated, but are depicted separately in the example of FIG. 5 for illustrative purposes.

[0091] The divider 201 may divide a picture into one or more video blocks. The video encoder 200 and the video decoder 300 may support a variety of video block sizes.

[0092] The mode selection unit 203 may, for example, select one of the coding modes, either intra or inter, based on the error result, and provide the resulting intra or inter coding block to the residual generation unit 207 to generate residual block data and to the reconstruction unit 212 to reconstruct the coding block for use as a reference picture. In some examples, the mode selection unit 203 may select a Combination of Intra and Inter Prediction (CIIP) mode, which performs prediction based on an inter prediction signal and an intra prediction signal. The mode selection unit 203 may also select a resolution of the motion vector of the block (e.g., sub-pixel or integer pixel precision) in the case of inter prediction.

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

[0094] Motion estimation unit 204 and motion compensation unit 205 may, for example, perform different operations on the current video block based on whether the current video block is an I slice, a P slice, or a B slice.

[0095] In some examples, motion estimation unit 204 may perform unidirectional prediction on the current video block, and motion estimation unit 204 may search reference pictures in list 0 or list 1 for a reference video block for the current video block. Motion estimation unit 204 may then generate a reference index indicating a reference picture in list 0 or list 1 including the reference video block and a motion vector indicating a spatial displacement between the current video block and the reference video block. Motion estimation unit 204 may output the reference index, prediction direction indicator, and motion vector as motion information for the current video block. Motion compensation unit 205 may generate a prediction video block for the current block based on the reference video block indicated by the motion information of the current video block.

[0096] In another example, motion estimation unit 204 may perform bidirectional prediction on the current video block, and motion estimation unit 204 may search for a reference video block among the reference pictures in list 0 for the current video block, and may search for another reference video block among the reference pictures in list 1 for the current video block. Motion estimation unit 204 may then generate a reference index indicating the reference pictures in list 0 and list 1 that contain the reference video block, and a motion vector indicating a spatial displacement between the reference video block and the current video block. Motion estimation unit 204 may output the reference index and the motion vector of the current video block as motion information of the current video block. Motion compensation unit 205 may generate a prediction video block for the current video block based on the reference video block indicated by the motion information of the current video block.

[0097] In some examples, the motion estimator 204 may output a full set of motion information for the decoding process of the decoder.

[0098] In some examples, motion estimation unit 204 may not output a full set of motion information for the current picture. Rather, motion estimation unit 204 may signal motion information of the current video block by reference to motion information of another video block. For example, motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.

[0099] In one example, motion estimator 204 may indicate, in a syntax structure associated with the current video block, a value that indicates to video decoder 300 that the current video block has the same motion information as other video blocks.

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

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

[0102] Intra prediction unit 206 may perform intra prediction on the current video block. If intra prediction unit 206 intra predicts the current video block, intra prediction unit 206 may generate predictive data for the current video block based on decoded samples of other video blocks in the same picture. The predictive data for the current video block may include a predicted video block and various syntax elements.

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

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

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

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

[0107] Inverse quantization unit 210 and inverse transform unit 211 may apply inverse quantization and inverse transform, respectively, to the transform coefficient image block to reconstruct a residual video block from the transform coefficient image block. Reconstructor 212 may add the reconstructed residual video block to corresponding samples from one or more prediction video blocks generated by predictor 202 to generate a reconstructed video block associated with the current block for storing in buffer 213.

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

[0109] Entropy encoding unit 214 may receive data from other functional components of video encoder 200. If entropy encoder 214 receives data, entropy encoder 214 may perform one or more entropy encoding operations to generate entropy coded data, and output a bitstream that includes the entropy coded data.

[0110] Some embodiments of the disclosed technology include determining or determining to enable a video processing tool or mode. In one example, when a video processing tool or mode is enabled, an encoder uses or implements the tool or mode when processing one video block, but may not necessarily modify the resulting bitstream based on the use of the tool or mode. That is, the conversion from a block of video to a bitstream (or bitstream representation) of video uses the video processing tool or mode when the video processing tool or mode is enabled based on the decision or determination. In another example, when a video processing tool or mode is enabled, a decoder processes the bitstream knowing that the bitstream has been modified based on the video processing tool or mode. That is, the conversion from the video bitstream to a block of video is performed using the video processing tool or mode enabled based on the decision or determination.

[0111] FIG. 6 is a block diagram of an example video decoder 300, which may be the video decoder 114 in the system 100 shown in FIG.

[0112] The video decoder 300 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 6, the video decoder 300 includes multiple functional components. The techniques described in this disclosure may be shared among various components of the video decoder 300. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0113] 6, video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, and a reconstruction unit 306, as well as a buffer 307. Video decoder 300 may, in some examples, perform a decoding path that is generally the reverse of the encoding path described with respect to video encoder 200 (FIG. 5).

[0114] The entropy decoding unit 301 retrieves an encoded bitstream. The encoded bitstream may include entropy encoded video data (e.g., encoded blocks of video data). The entropy decoding unit 301 decodes the entropy encoded video data, and from the entropy decoded video data, the motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list index, and other motion information. The motion compensation unit 302 may determine such information by, for example, implementing AMVP and merge mode.

[0115] The motion compensation unit 302 may generate motion compensated blocks and, in some cases, perform interpolation based on an interpolation filter. The syntax element may include an identifier for the interpolation filter to be used with sub-pixel precision.

[0116] Motion compensation unit 302 may calculate interpolated values ​​for sub-integer pixels of the reference block using an interpolation filter as used by video encoder 200 during encoding of the video block. Motion compensation unit 302 may determine the interpolation filter used by video encoder 200 based on the received syntax information and generate a prediction block using the interpolation filter.

[0117] The motion compensation unit 302 may use a portion of the syntax information to determine the size of the blocks used to code the frames and / or slices of the coded video sequence, partitioning information describing how each macroblock of a picture of the coded video sequence is divided, a mode indicating how each partition is coded, one or more reference frames (and reference frame lists) for each inter-coded block, and other information for decoding the coded video sequence.

[0118] The intra prediction unit 303 may form a prediction block from spatially neighboring blocks, for example, using an intra prediction mode received in the bitstream. The inverse quantization unit 303 inverse quantizes (i.e., dequantizes) the quantized video block coefficients provided in the bitstream and decoded by the entropy decoding unit 301. The inverse transform unit 303 applies an inverse transform.

[0119] The reconstruction unit 306 may sum the residual blocks with corresponding prediction blocks generated by the motion compensation unit 202 or intra prediction unit 303 to form decoded blocks. If desired, a deblocking filter may be applied to filter the decoded blocks to remove block artifacts. The decoded video blocks are stored in a buffer 307, which provides reference blocks for subsequent motion compensation / intra prediction to generate decoded video for display on a display device.

[0120] Next, preferred solutions are listed in some embodiments.

[0121] The following solutions represent exemplary implementations of the techniques discussed in the previous section (eg, item 1).

[0122] 1. An image processing method of the present invention (e.g., method 3000 shown in FIG. 3) includes performing a conversion (3002) between a current block of an image and a coded representation of the image, where the coded representation complies with a format rule that specifies that a context index offset used to code a sign flag of the current block in the coded representation is within a certain range, where the range is a function of the range of the coding mode used to represent the current block in the coded representation.

[0123] 2. The method according to solution 1, wherein the rule specifies that if the coding mode is a particular mode, then the range is [N0, N1], and if not, then [N2, N3].

[0124] 3. The method according to solution 2, wherein the particular mode is a chroma or luma block differential pulse code modulation mode.

[0125] The following solutions represent exemplary implementations of the techniques discussed in the previous section (eg, item 2).

[0126] 4. A method of processing video, comprising: performing a conversion between a current block of video and a coded representation of the video, the coded representation conforming to a format rule that specifies that a sign flag of the current block is coded in the coded representation using one of the context coded bins or a bypass mode depending on the number of remaining context coded bins.

[0127] 5. The method according to solution 4, wherein the bypass mode is used for coding if and only if the number of remaining context-coded bins is smaller than N, where N is a positive integer.

[0128] 6. The method according to solution 5, wherein the bypass mode is used for coding if and only if the number of remaining context-coded bins is equal to N, where N is a positive integer.

[0129] The following solutions represent exemplary implementations of the techniques discussed in the previous section (eg, item 2).

[0130] 7. A method of processing video, comprising: performing a conversion between a current block of a video and a coded representation of the video, the conversion using a block-based delta pulse code modulation (BDPCM) mode, the coded representation conforming to a format rule that specifies context coding in the coded representation a code flag from the BDPCM such that a context index offset for coding the code flag is a function of a coding condition of the current block.

[0131] 8. The method described in Solution 7, wherein the coding conditions correspond to syntax elements included in the coded representation at a sequence parameter set or a video parameter set or a picture parameter set or a picture header or a slice header or a tile group header or a logical coding unit level or a LCU group or a coding unit level.

[0132] 9. The method according to solution 7, wherein the coding condition corresponds to a block dimension of the current block and / or neighboring blocks.

[0133] The following solutions represent exemplary implementations of the techniques discussed in the previous section (eg, item 4).

[0134] 10. A method of processing video, comprising: performing a conversion between a current block of a video and a coded representation of the video, the coded representation being in sequential decoding order and conforming to a format rule specifying that a slice unit in the coded representation corresponding to a set of network abstraction layer units including a single coded slice is permitted to include at least a portion of supplemental enhancement information (SEI) at most once.

[0135] 11. The method according to solution 10, wherein said portion of the SEI corresponds to the entire SEI.

[0136] 12. The method according to solution 10, wherein the portion of the SEI corresponds to a particular type of SEI information field.

[0137] The following solutions represent exemplary implementations of the techniques discussed in the previous section (eg, item 5).

[0138] 13. A method of video processing comprising: performing a conversion between a current block of a video and a coded representation of the video, the coded representation conforming to a format rule specifying that a slice unit in the coded representation, which is in consecutive decoding order and corresponds to a set of network abstraction layer units comprising a single coded slice, includes one or more video coding layer network abstraction layer (VCL NAL) units, the format rule further specifying a first type of unit that is permitted to be repeated and a second type of unit that is not permitted to be repeated in the slice unit.

[0139] 14. The method according to solution 13, wherein the second type of units comprises units having a range of types.

[0140] The following solutions represent exemplary implementations of the techniques discussed in the previous sections (eg, items 6 and 7).

[0141] 15. A method of video processing comprising: performing a transformation between video comprising one or more video layers and a coded representation of said video based on rules, said coded representation including one or more adaptation parameter sets (APS), said rules specifying applicability of some of said one or more video layers of said one or more APS to said transformation.

[0142] 16. The method of solution 15, wherein the rules specify that all of the one or more APSs are not allowed to be shared across the one or more video layers.

[0143] The following solutions represent exemplary implementations of the techniques discussed in the previous chapters (eg, items 8 and 9).

[0144] 17. A method of video processing comprising: transforming, in accordance with rules, between video comprising one or more video layers and a coded representation of said video, said coded representation being structured in one or more network abstraction layer (NAL) units, said coded representation including one or more adaptation parameter sets for controlling characteristics of said transformation.

[0145] 18. The method according to solution 17, wherein the rule specifies that all adaptive parameter sets having a particular type also share the same spatial value for each identifier value.

[0146] 19. The method of solution 17, wherein the rules specify that the one or more video layers are not permitted to share a particular adaptation parameter set network abstraction layer unit.

[0147] 20. A method according to any one of solutions 1 to 19, wherein the conversion includes encoding the video into a coding representation.

[0148] 21. A method according to any of solutions 1 to 19, wherein the conversion includes decoding the coding representation to generate pixel values ​​of the image.

[0149] 22. A video decoding device comprising a processing device configured to implement the methods described in one or more of solutions 1 to 21.

[0150] 23. A video encoding device comprising a processing device configured to implement the methods described in one or more of solutions 1 to 21.

[0151] 24. A computer program product having computer code stored thereon, the code causing the processor to implement a method according to any one of solutions 1 to 21 when executed by the processor.

[0152] 25. Any method, apparatus or system described herein.

[0153] 9 is a flow chart illustrating an example of a method 900 of video processing. Operation 902 includes converting between a current block of video and a bitstream of the video, the bitstream conforming to a rule that specifies using a context index offset to include a first sign flag of a first coefficient in the bitstream, the rule specifying that a value of the context index offset is based on whether a first coding mode is applied to the current block in the bitstream.

[0154] In some embodiments of the method 900, the rules specify that the value of the context index offset is in a first range from N0 to N1 when the first coding mode is not applied, and that the value of the context index offset is in a second range from N2 to N3 when the first coding mode is applied. In some embodiments of the method 900, in the first coding mode, a pulse coding modulation representation is used to represent in the bitstream the difference between a quantized residual and a prediction of the quantized residual. In some embodiments of the method 900, N0, N1, N2, and N3 are 0, 2, 3, and 5, respectively. In some embodiments of method 900, the value of the context index offset is equal to 0 or 3 in response to a first adjacent code value and a second adjacent code value satisfying a first condition, the first condition being (1) the first adjacent code value is equal to 0 and the second adjacent code value is equal to 0, or (2) the first adjacent code value is equal to the negative of the second adjacent code value, where the first adjacent code value is equal to 0 in response to a horizontal coordinate of the first coefficient being 0 and is equal to a code value of a left adjacent coefficient in response to the horizontal coordinate of the first coefficient being non-zero, and the second adjacent code value is equal to 0 in response to a vertical coordinate of the first coefficient being 0 and is equal to a code value of an upper adjacent coefficient in response to the vertical coordinate of the first coefficient being non-zero.

[0155] In some embodiments of method 900, in response to the first coding mode not being applied to the current block, a value of the context index offset is equal to 0, and in response to the first coding mode being applied to the current block, a value of the context index offset is equal to 3. In some embodiments of method 900, in response to the first adjacent code value and the second adjacent code value not satisfying the first condition and in response to the first adjacent code value and the second adjacent code value satisfying a second condition, the second condition being: (1) the first adjacent code value is greater than or equal to 0 and the second adjacent code value is greater than or equal to 0. In some embodiments of method 900, in response to the first coding mode not being applied to the current block, the value of the context index offset is equal to 1, and in response to the first coding mode being applied to the current block, the value of the context index offset is equal to 4. In some embodiments of method 900, the value of the context index offset is equal to 2 or 5 depending on whether the first adjacent code value and the second adjacent code value do not satisfy the first condition and the second condition.

[0156] In some embodiments of method 900, in response to the first coding mode not being applied to the current block, the value of the context index offset is equal to 2, and in response to the first coding mode being applied to the current block, the value of the context index offset is equal to 5. In some embodiments of method 900, a transform skip operation is applied to the current block. In some embodiments of method 900, the rules specify that N0, N1, N3, and N3 are determined based on any one or more of: (1) a sequence parameter set, a picture parameter set, a picture header, a slice header, a tile group header, a largest coding unit row, a largest coding unit group, a largest coding unit, or an indication contained in a coding unit; (2) block dimensions of the current block and / or block dimensions of the block's neighboring blocks; (3) a block shape of the block and / or block shapes of the current block's neighboring blocks; (4) an indication of a color format of the picture; (5) whether to apply a separate or dual coding tree structure to the current block; (6) a slice type and / or picture type to which the current block belongs; and (7) the number of color components of the current block.

[0157] 10 is a flow chart illustrating an example of a method 1000 of video processing. Operation 1002 includes converting a current block of video to a bitstream of the video, the bitstream conforming to a rule that specifies that a sign flag of the current block is included in the bitstream using one of a context mode or a bypass mode based on the number of remaining context coded bins.

[0158] In some embodiments of the method 1000, the rules specify using the bypass mode for including the sign flag in the bitstream in response to the number of remaining context coded bins being less than N, where N is an integer. In some embodiments of the method 1000, the rules specify using the context mode for including the sign flag in the bitstream in response to the number of remaining context coded bins being greater than or equal to N, where N is an integer. In some embodiments of the method 1000, the rules specify using the bypass mode for including the sign flag in the bitstream in response to the number of remaining context coded bins being equal to N, where N is an integer. In some embodiments of the method 1000, the rules specify using the bypass mode for including the sign flag in the bitstream in response to the number of remaining context coded bins being greater than N, where N is an integer. In some embodiments of the method 1000, N is equal to 4. In some embodiments of the method 1000, N is equal to 0.

[0159] In some embodiments of the method 1000, the rule specifies that N is determined based on any one or more of: (1) an indication included in a sequence parameter set, a picture parameter set, a picture parameter set, a picture header, a slice header, a tile group header, a largest coding unit row, a largest coding unit group, a largest coding unit, or a coding unit; (2) a block dimension of the current block and / or a block dimension of a neighboring block of the block; (3) a block shape of the block and / or a block shape of a neighboring block of the current block; (4) an indication of a color format of the picture; (5) whether to apply a separate or dual coding tree structure to the current block; (6) a slice type and / or a picture type to which the current block belongs; and (7) a number of color components of the current block. In some embodiments of the method 1000, the rule specifies that the current block is a transform block or a transform skip block. In some embodiments of the method 1000, the rule specifies that a block differential pulse coded modulation mode is applied to the current block. In some embodiments of the method 1000, the rule specifies that a block differential pulse coded modulation mode is not applied to the current block.

[0160] 11 is a flow chart illustrating an example of a method 1100 of video processing. Operation 1102 includes converting between a current block of video and a bitstream of the video, the bitstream conforming to a rule specifying the use of a context index offset to include a sign flag of the current block in the bitstream, the rule specifying the context index offset being determined based on information of the current block.

[0161] In some embodiments of the method 1100, the information comprises a sequence parameter set, a video parameter set, a picture parameter set, a picture header, a slice header, a tile group header, a largest coding unit row, a largest coding unit group, a largest coding unit, or an indication in a coding unit. In some embodiments of the method 1100, the information comprises a block dimension of the current block and / or a block dimension of a neighboring block of the current block. In some embodiments of the method 1100, the information comprises a block shape of the current block and / or a block shape of a neighboring block of the current block. In some embodiments of the method 1100, the context value of the sign flag is distinct for different block shapes. In some embodiments of the method 1100, the information comprises one or more prediction modes of one or more neighboring blocks of the current block. In some embodiments of the method 1100, the one or more prediction modes comprise an intra prediction mode. In some embodiments of the method 1100, the one or more prediction modes comprise an inter prediction mode.

[0162] In some embodiments of the method 1100, the sign flag context value is separate for one or more inter-coded blocks and one or more intra-coded blocks. In some embodiments of the method 1100, the information includes an indication of a block-based delta pulse code modulation mode of neighboring blocks of the current block. In some embodiments of the method 1100, the information includes an indication of a color format of the image. In some embodiments of the method 1100, the information includes whether to apply a separate or dual coding tree structure for the current block. In some embodiments of the method 1100, the information includes a slice type and / or a picture type to which the current block belongs. In some embodiments of the method 1100, the information includes a number of color components of the current block. In some embodiments of the method 1100, the sign flag context value is separate for a luma color component of the current block and a chroma color component of the current block. In some embodiments of the method(s) 900-1100, the current block is represented in the bitstream using a binary delta pulse code modulation mode.

[0163] 12 is a flow chart illustrating an example of a method 1200 of video processing. Operation 1202 includes converting between a video including one or more video layers and a bitstream of the video according to a rule, the rule specifying the use of a plurality of adaptation parameter set network abstraction layer units for the video, each adaptation parameter set network abstraction layer unit having a corresponding adaptation parameter type value, each adaptation parameter set network abstraction layer unit being associated with a corresponding video layer identifier, each adaptation parameter set network abstraction layer unit being a prefix unit or a suffix unit, and the rule specifying that in response to the plurality of adaptation parameter set network abstraction layer units sharing the same adaptation parameter type value, adaptation parameter set identifier values ​​of the plurality of adaptation parameter set network abstraction layer units belong to the same identifier space.

[0164] In some embodiments of method 1200, the rules specify that a plurality of adaptation parameter set network abstraction layer units share the same adaptation parameter type value independent of a plurality of video layer identifiers of the plurality of adaptation parameter set network abstraction layer units. In some embodiments of method 1200, the rules specify that the plurality of adaptation parameter set network abstraction layer units share the same adaptation parameter type value regardless of whether the plurality of adaptation parameter set network abstraction layer units are prefix units or suffix units. In some embodiments of method 1200, the plurality of adaptation parameter set network abstraction layer units are a plurality of first mode adaptation parameter set network abstraction layer units, which in a first mode are used to derive mapped luma prediction samples based on a linear model, further derive luma reconstruction samples, and scale chroma residual values ​​based on the luma reconstruction samples. In some embodiments of method 1200, the plurality of adaptive parameter set network abstraction layer units are a plurality of second mode adaptive parameter set network abstraction layer units, which in the second mode filter the luma reconstruction samples using a classification operation that generates filter indices based on differences between luma reconstruction samples in different directions, and filter the chroma reconstruction samples without performing the classification operation.

[0165] 13 is a flow chart of an example method (1300) of video processing. Operation 1302 includes performing a conversion between a current block of video and a bitstream of the video, the bitstream conforming to a rule specifying that a first supplemental enhancement information message having a particular characteristic is not allowed to (1) be repeated within a slice unit of the bitstream in response to a second supplemental enhancement information message having the particular characteristic being included in the slice unit, or (2) be updated in response to the first supplemental enhancement message being included in the slice unit of the bitstream, the slice unit including a set of consecutive network abstraction layer units in decoding order, the network abstraction layer set including a single coded slice and one or more non-video coding layer network abstraction layer units associated with the single coded slice.

[0166] In some embodiments of the method 1300, the rule specifies that in response to the first supplemental extension information message having the same value of a particular payload type as for a second supplemental extension information message included in the slice unit, the first supplemental extension information message is not allowed to be repeated within the slice unit. In some embodiments of the method 1300, the rule specifies that a number of identical syntax structures for the particular payload type within the slice unit is not greater than one. In some embodiments of the method 1300, the rule specifies that in response to the first supplemental extension information message having a particular payload type, the first supplemental extension information message is not allowed to be repeated within the slice unit. In some embodiments of the method 1300, the rule specifies that a number of syntax structures for the particular payload type within the slice unit is not greater than one.

[0167] In some embodiments of method 1300, the rule specifies that the first supplemental extension information message is not allowed to be updated within the slice unit in response to the first supplemental extension information message having a particular payload type. In some embodiments of method 1300, the rule specifies that one or more syntax structures of the particular payload type within the slice unit have the same content.

[0168] 14 is a flow chart illustrating an example of a method 1400 of video processing. Operation 1402 includes converting between a current block of video and a bitstream of the video, where the bitstream complies with a rule that specifies that a slice unit in the bitstream is not allowed to repeat a first non-video coding layer network abstraction layer unit responsive to: (1) the slice unit includes a second non-video coding layer network abstraction layer unit having the same characteristics as a first non-video coding layer network abstraction layer unit; and (2) the first non-video coding layer network abstraction layer unit has a network abstraction layer unit type other than prefix supplemental extension information or suffix supplemental extension information.

[0169] In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is a decoding capability information network abstraction layer unit, and the rule specifies that a number of decoding capability information network abstraction layer units in the slice unit is less than or equal to 1. In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is a video parameter set network abstraction layer unit having a particular identifier, and the rule specifies that a number of video parameter set network abstraction layer units having the particular identifier in the slice unit is less than or equal to 1. In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is a sequence parameter set network abstraction layer unit having a particular identifier, and the rule specifies that a number of sequence parameter set network abstraction layer units having the particular identifier in the slice unit is less than or equal to 1. In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is a picture parameter set network abstraction layer unit having a particular identifier, and the rule specifies that the number of picture parameter set network abstraction layer units having the particular identifier in the slice unit must not exceed one.

[0170] In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is an adaptation parameter set network abstraction layer unit having a particular identifier and a particular parameter type, and the rule specifies that a number of adaptation parameter set network abstraction layer units having the particular identifier and the particular parameter type in the slice unit is less than or equal to 1. In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is an adaptation parameter set network abstraction layer unit having a particular type of network abstraction layer unit, a particular identifier and a particular parameter type, and the rule specifies that a number of adaptation parameter set network abstraction layer units having the particular type of network abstraction layer unit, the particular identifier, and the particular parameter type in the slice unit is less than or equal to 1. In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is a decoding capability information network abstraction layer unit, and the rule specifies that in response to the first non-video coding layer network abstraction layer unit being the decoding capability information network abstraction layer unit, the first non-video coding layer network abstraction layer unit is not allowed to be repeated within the coded layer video sequence or the coded video sequence.

[0171] In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is a video parameter set network abstraction layer unit having a particular identifier, and the rules specify that the first non-video coding layer network abstraction layer unit is not allowed to be repeated within the coded layer video sequence or the coded video sequence in response to the first non-video coding layer network abstraction layer unit being a video parameter set network abstraction layer unit having a particular identifier. In some embodiments of method 1400, the second non-video coding layer network abstraction layer unit is a sequence parameter set network abstraction layer unit having a particular identifier, and the rules specify that the first non-video coding layer network abstraction layer unit is not allowed to be repeated within the coded layer video sequence or the coded video sequence in response to the first non-video coding layer network abstraction layer unit being a sequence parameter set network abstraction layer unit having a particular identifier.

[0172] 15 is a flow chart illustrating an example of a method 1500 of video processing. Operation 1502 includes converting between a video including multiple video layers and a bitstream of the video according to rules that specify which of multiple adaptation parameter sets are not allowed to be shared across the multiple video layers.

[0173] In some embodiments of method 1500, the rules specify that all of the plurality of adaptive parameter sets are not allowed to be shared. In some embodiments of method 1500, the rules specify that an adaptive loop filter type of the plurality of adaptive parameter sets is not allowed to be shared.

[0174] 16 is a flow chart illustrating an example of a method 1600 of video processing. Operation 1602 includes converting between a video including one or more video layers and a bitstream of the video, the bitstream including one or more adaptive loop filter adaptation parameter sets, according to rules that specify whether the one or more adaptive loop filter adaptation parameter sets are allowed to be updated within a picture unit.

[0175] In some embodiments of method 1600, the rules specify that the one or more adaptive loop filter adaptation parameter sets are permitted to be updated within the picture unit. In some embodiments of method 1600, the rules specify that no adaptive parameter sets are permitted to be updated within the picture unit.

[0176] 17 is a flow chart illustrating an example of a method 1700 of video processing. Operation 1702 includes converting between video including one or more coded layer video sequences and a bitstream of the video according to rules, the bitstream including an adaptive loop filter adaptation parameter set, the rules specifying that in response to the adaptive loop filter adaptation parameter set having one or more particular characteristics, the adaptive loop filter adaptation parameter set is not allowed to be shared across the one or more coded layer video sequences.

[0177] In some embodiments of method 1700, the particular feature includes the adaptive loop filter adaptation parameter set having a particular network abstraction layer unit type. In some embodiments of method 1700, the one or more particular features include the adaptive loop filter adaptation parameter set having a particular identifier. In some embodiments of method 1700, the one or more particular features include the adaptive loop filter adaptation parameter set having a particular parameter type. In some embodiments of method 1700, the rule specifies that the adaptive loop filter adaptation parameter set referenced by a video coding layer network abstraction layer unit in a first coded layer video sequence is not associated with a non-video coding layer network abstraction layer unit in a second coded layer video sequence, and the first coded layer video sequence is different from the second coded layer video sequence. In some embodiments of method 1700, the rules specify that the adaptive loop filter adaptation parameter set referenced by a video coding layer network abstraction layer unit associated with a first intra random access picture is not associated with a non-video coding layer network abstraction layer unit associated with a second intra random access picture, and the first intra random access picture is different from the second intra random access picture.

[0178] In some embodiments of method 1700, the rules specify that the adaptive loop filter adaptation parameter set referenced by a video coding layer network abstraction layer unit associated with a first intra random access picture or a first gradual decoding update picture is not associated with a non-video coding layer network abstraction layer unit associated with a second intra random access picture or a second gradual decoding update picture, and the first intra random access picture or the first gradual decoding update picture is different from the second intra random access picture or the second gradual decoding update picture. In some embodiments of method 1700, the rules specify that the adaptive loop filter adaptation parameter set is included in one or more adaptation parameter sets of the video that are not shared across one or more coded video sequences of the video. In some embodiments of method 1700, the rules specify that the one or more adaptation parameter sets belonging to a particular type are not allowed to be shared across the one or more coded video sequences. In some embodiments of method 1700, the particular type includes an adaptive loop filter adaptation parameter set. In some embodiments of method 1700, the particular type includes a luma mapping with a chroma scaling adaptation parameter set. In some embodiments of method 1700, the particular type includes a scaling adaptation parameter set.

[0179] In some embodiments of the methods 900-1700, performing the conversion includes encoding the video into a bitstream. In some embodiments of the methods 900-1700, performing the conversion includes generating a bitstream from the video, the method further including storing the bitstream in a non-transitory computer-readable recording medium. In some embodiments of the methods 900-1700, performing the conversion includes decoding the video from the bitstream. In some embodiments, a video decoder includes a processing device configured to implement the operations of the methods 900-1700.

[0180] In some embodiments, a video encoding apparatus includes a processing device configured to implement the operations of methods 900-1700. In some embodiments, a computer program product having computer instructions stored thereon, when executed by a processing device, causes the processing device to implement the operations described in methods 900-1700. In some embodiments, a non-transitory computer readable storage medium storing a bitstream generated according to the operations described in methods 900-1700. In some embodiments, a non-transitory computer readable storage medium storing instructions causing a processing device to implement the operations described in methods 900-1700. In some embodiments, a bitstream generation method includes generating a video bitstream according to the operations described in method(s) 900-1700 and storing the bitstream on a computer readable program medium. In some embodiments, a method, apparatus, generated bitstream according to a method or system disclosed herein is provided.

[0181] In this specification, the term "video processing" may refer to video encoding, video decoding, video compression, or video decompression. For example, a video compression algorithm may be applied during conversion from a pixel representation of a video to a corresponding bitstream representation, or vice versa. The bitstream representation of a current video block may correspond to bits spread to the same or different locations in the bitstream, for example, as specified by a syntax. For example, one macroblock may be coded in terms of transformed and coded error residual values ​​and using bits in a header and other fields in the bitstream. Furthermore, during conversion, the decoder may parse the bitstream with the knowledge that some fields may or may not be present based on a decision, as described in the above solution. Similarly, the encoder may determine whether a particular syntax field should or should not be included in the coding representation and generate the coding representation accordingly by including or excluding the syntax field in the coding representation.

[0182] Implementations of the disclosed and other solutions, examples, embodiments, modules, and functional operations described herein, including the structures disclosed herein and their structural equivalents, may be implemented in digital electronic circuitry, or computer software, firmware, or hardware, or in one or more combinations thereof. The disclosed and other embodiments may be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer-readable medium for implementation by or for controlling the operation of a data processing apparatus. The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter that provides a machine-readable propagated signal, or one or more combinations thereof. The term "data processing apparatus" includes all apparatus, devices, and machines for processing data, including, for example, a programmable processor, a computer, or multiple processors, or computers. In addition to hardware, the apparatus may include code that creates an environment for the execution of the computer program, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof. A propagated signal is an artificially generated signal, for example a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to an appropriate receiving device.

[0183] A computer program (also called a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and 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 may be recorded as part of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), may be stored in a single file dedicated to the program, or may be stored in multiple coordinating files (e.g., files that store one or more modules, subprograms, or code portions). A computer program can be deployed to run on one computer located at one site, or on multiple computers distributed across multiple sites and interconnected by a communications network.

[0184] The processes and logic flows described herein may be performed by one or more programmable processing devices executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by, and devices may be implemented as, special purpose logic circuits, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

[0185] Processing devices suitable for executing computer programs include, for example, both general purpose and special purpose microprocessors, as well as any one or more processors of any kind of digital computer. Typically, a processor receives 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 executing instructions and one or more storage devices for storing instructions and data. Typically, a computer may include one or more mass storage devices, e.g., magnetic, magneto-optical, or optical disks, for storing data, or may be operatively coupled to receive data from or transfer data to these mass storage devices. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, EPROMs, EEPROMs, flash storage devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and semiconductor storage devices such as CD-ROM and DVD-ROM disks. The processing device and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0186] Although this patent specification contains many details, these should not be construed as limiting the scope of any subject matter or the scope of the claims, but rather as descriptions of features that may be specific to particular embodiments of a particular technology. Certain features described in this patent document in the context of separate embodiments may be implemented in combination in one example. Conversely, various features described in the context of one example may be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as acting in a particular combination and initially claimed as such, one or more features from a claimed combination may, in some cases, be extracted from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.

[0187] Similarly, although operations are shown in a particular order in the figures, this should not be understood as requiring that such operations be performed in the particular order or sequential order shown, or that all of the operations shown be performed, to achieve desired results, nor should the separation of various system components in the examples described in this patent specification be understood as requiring such separation in all embodiments.

[0188] Only certain implementations and examples have been described; other embodiments, extensions and variations are possible based on the content described and illustrated in this patent document.

Claims

1. 1. A video processing method, comprising: performing a conversion between a current block of a video and a bitstream of the video; the bitstream complies with a first rule that specifies that a context increment is used to include a first sign flag of a first coefficient in the bitstream; the first rule specifies that a value of the context increment is based on whether a first coding mode is applied to the current block; the bitstream complies with a second rule that specifies the use of a plurality of adaptation parameter set network abstraction layer units for the video; Each adaptation parameter set network abstraction layer unit has a corresponding adaptation parameter set type value; Each adaptation parameter set network abstraction layer unit is associated with a corresponding video layer identifier; Each adaptation parameter set network abstraction layer unit is a prefix unit or a suffix unit; the second rule specifies that in response to the plurality of adaptation parameter set network abstraction layer units having particular adaptation parameter set type values, independent of the plurality of video layer identifiers of the plurality of adaptation parameter set network abstraction layer units and independent of whether the plurality of adaptation parameter set network abstraction layer units are the prefix units or the suffix units, the adaptation parameter set identifier values ​​of the plurality of adaptation parameter set network abstraction layer units belong to the same adaptation parameter set identifier value space. method.

2. the first rule specifies that when the first coding mode is not applied, the value of the context increment is within a first range from N0 to N1; the first rule specifies that when the first coding mode is applied, the value of the context increment is within a second range from N2 to N3; The method of claim 1.

3. representing in the bitstream, in the first coding mode, the difference between a quantized residual and a prediction of the quantized residual using a pulse coding modulation representation. The method of claim 2.

4. the first coding mode is a block-based delta pulse code modulation coding mode; The method according to claim 2 or 3.

5. N0, N1, N2, and N3 are 0, 2, 3, and 5, respectively.

5. The method according to any one of claims 2 to 4.

6. the value of the context increment is equal to 0 or 3 in response to the first adjacent code value and the second adjacent code value satisfying a first condition; The first condition is: (1) the first adjacent code value is equal to 0 and the second adjacent code value is equal to 0; or, (2) the first adjacent code value is equal to the negative of the second adjacent code value; 6. The method according to any one of claims 1 to 5.

7. the first adjacent code value is equal to zero in response to a horizontal coordinate of the current coefficient scan position being zero, and is equal to a value of the left adjacent coefficient in response to a horizontal coordinate of the current coefficient scan position being non-zero; the second adjacent code value is equal to 0 in response to a vertical coordinate of the current coefficient scan position being 0, and is equal to a value of an upper adjacent coefficient in response to a vertical coordinate of the current coefficient scan position being non-zero; The method according to claim 6.

8. the value of the context increment is equal to 0 in response to the first coding mode not being applied to the current block; the value of the context increment is equal to 3 in response to the first coding mode being applied to the current block. The method according to claim 6.

9. the value of the context increment is equal to 1 or 4 in response to the first adjacent code value and the second adjacent code value not satisfying the first condition and the first adjacent code value and the second adjacent code value satisfying a second condition; The second condition is: (1) the first adjacent code value is equal to or greater than 0, and the second adjacent code value is equal to or greater than 0; The method according to claim 6.

10. the value of the context increment is equal to one in response to the first coding mode not being applied to the current block; the value of the context increment is equal to 4 in response to the first coding mode being applied to the current block.

10. The method of claim 9.

11. the value of the context increment is equal to 2 or 5 in response to the first adjacent code value and the second adjacent code value not satisfying the first condition and the second condition; 10. The method of claim 9.

12. the value of the context increment is equal to 2 in response to the first coding mode not being applied to the current block; the value of the context increment is equal to 5 in response to the first coding mode being applied to the current block. The method of claim 11.

13. a transform skip operation is applied to the current block; 13. The method according to any one of claims 1 to 12.

14. performing the conversion includes encoding the video into the bitstream.

14. The method according to any one of claims 1 to 13.

15. performing the conversion includes decoding the video from the bitstream.

14. The method according to any one of claims 1 to 13.

16. 1. An apparatus for processing video data comprising a processor and a non-transitory memory having instructions, the instructions, when executed by the processor, causing the processor to: performing a conversion between a current block of a video and a bitstream of said video; the bitstream complies with a first rule that specifies that a context increment is used to include a first sign flag of a first coefficient in the bitstream; the first rule specifies that a value of the context increment is based on whether a first coding mode is applied to the current block; the bitstream complies with a second rule that specifies the use of a plurality of adaptation parameter set network abstraction layer units for the video; Each adaptation parameter set network abstraction layer unit has a corresponding adaptation parameter set type value; Each adaptation parameter set network abstraction layer unit is associated with a corresponding video layer identifier; Each adaptation parameter set network abstraction layer unit is a prefix unit or a suffix unit; the second rule specifies that in response to the plurality of adaptation parameter set network abstraction layer units having particular adaptation parameter set type values, independent of the plurality of video layer identifiers of the plurality of adaptation parameter set network abstraction layer units and independent of whether the plurality of adaptation parameter set network abstraction layer units are the prefix units or the suffix units, the adaptation parameter set identifier values ​​of the plurality of adaptation parameter set network abstraction layer units belong to the same adaptation parameter set identifier value space. Device.

17. A non-transitory computer-readable storage medium storing instructions that cause a processor to: performing a conversion between a current block of a video and a bitstream of said video; the bitstream complies with a first rule that specifies that a context increment is used to include a first sign flag of a first coefficient in the bitstream; the first rule specifies that a value of the context increment is based on whether a first coding mode is applied to the current block; the bitstream complies with a second rule that specifies the use of a plurality of adaptation parameter set network abstraction layer units for the video; Each adaptation parameter set network abstraction layer unit has a corresponding adaptation parameter set type value; Each adaptation parameter set network abstraction layer unit is associated with a corresponding video layer identifier; Each adaptation parameter set network abstraction layer unit is a prefix unit or a suffix unit; the second rule specifies that in response to the plurality of adaptation parameter set network abstraction layer units having particular adaptation parameter set type values, independent of the plurality of video layer identifiers of the plurality of adaptation parameter set network abstraction layer units and independent of whether the plurality of adaptation parameter set network abstraction layer units are the prefix units or the suffix units, the adaptation parameter set identifier values ​​of the plurality of adaptation parameter set network abstraction layer units belong to the same adaptation parameter set identifier value space. A non-transitory computer-readable storage medium.

18. 1. A method of storing a video bitstream, the method comprising: generating a bitstream for the video including the current block; storing the bitstream in a non-transitory computer readable storage medium; the bitstream complies with a first rule that specifies that a context increment is used to include a first sign flag of a first coefficient in the bitstream; the first rule specifies that a value of the context increment is based on whether a first coding mode is applied to the current block; the bitstream complies with a second rule that specifies the use of a plurality of adaptation parameter set network abstraction layer units for the video; Each adaptation parameter set network abstraction layer unit has a corresponding adaptation parameter set type value; Each adaptation parameter set network abstraction layer unit is associated with a corresponding video layer identifier; Each adaptation parameter set network abstraction layer unit is a prefix unit or a suffix unit; the second rule specifies that in response to the plurality of adaptation parameter set network abstraction layer units having particular adaptation parameter set type values, independent of the plurality of video layer identifiers of the plurality of adaptation parameter set network abstraction layer units and independent of whether the plurality of adaptation parameter set network abstraction layer units are the prefix units or the suffix units, the adaptation parameter set identifier values ​​of the plurality of adaptation parameter set network abstraction layer units belong to the same adaptation parameter set identifier value space. method.

Citation Information

Cited By

  • Coefficients coding in transform skip mode

    US12316834B2