Prediction fine-tuning for affine merge and affine motion vector prediction modes

By applying deblocking filters and managing quantization parameters based on syntax elements at multiple levels, the method addresses inefficiencies in video coding standards, enhancing compression and decoding performance through optimized filter application and quantization management.

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

Patent Information

Application Number
JP2022557167
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-03-23
Filing Date
2021-03-23
Publication Date
2024-10-29
Estimated Expiration
2041-03-23

AI Technical Summary

Technical Problem

Existing video coding standards face challenges in efficiently applying deblocking filters and managing quantization parameters across different levels of video coding, leading to suboptimal compression and decoding performance.

Method used

The proposed method involves applying deblocking filters and managing quantization parameters based on syntax elements at various levels, including picture, slice, and sequence levels, using rules that determine the applicability and parameters of deblocking filters and quantization offsets, and incorporating prediction fine-tuning techniques like affine merge and affine motion vector prediction modes.

Benefits of technology

This approach enhances video coding efficiency by optimizing deblocking filter application and quantization parameter management, resulting in improved compression and decoding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007575475000071
    Figure 0007575475000071
  • Figure 0007575475000072
    Figure 0007575475000072
  • Figure 0007575475000073
    Figure 0007575475000073
Patent Text Reader

Abstract

A method and apparatus for video processing are disclosed. The processing may include video encoding, video decoding, or video transcoding. One example of the method includes determining a size of a prediction block corresponding to a video block according to rules for converting between a video block of a video and a video bitstream of the video, and performing the conversion based on the determination, wherein the rules specify that a first size of the prediction block is determined in response to whether prediction refinement using optical flow techniques is used to code the video block, and the video block has a second size and is coded using an affine merge mode or an affine advanced motion vector prediction mode.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application is based on International Patent Application No. PCT / CN2021 / 082243, filed March 23, 2021, which claims priority to and the benefit of International Patent Application No. PCT / CN2020 / 080602, filed March 23, 2020. All of the aforementioned patent applications are incorporated herein by reference in their entireties.

[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 performing a conversion between a video including a picture with one or more slices and a bitstream of the video, the conversion complying with a rule that specifies whether to apply a deblocking filter to one or more slices that reference a picture parameter set based at least on a first syntax element included in the picture parameter set, the first syntax element indicating whether the deblocking filter is disabled for the picture.

[0006] In another exemplary aspect, a video processing method is disclosed, comprising: converting a video including a picture with one or more slices to a bitstream of the video, the conversion complying with a rule specifying that whether to apply a deblocking filter to one or more slices that reference a picture parameter set is based solely on a syntax element included in the picture parameter set that indicates whether to disable the deblocking filter.

[0007] In another exemplary aspect, a video processing method is disclosed, the method including converting a video including one or more pictures with one or more slices to a bitstream of the video, the bitstream conforming to a rule that specifies determining whether to override a deblocking operation for a slice or a picture based on a first value of a first syntax element at a slice level or a second value of a second syntax element at a picture level, the rule specifying that in response to an absence of the first syntax element in the slice header, the first value of the first syntax element is determined independently of the second value of the second syntax element at the picture level.

[0008] In another exemplary aspect, a video processing method is disclosed, the method including converting between a video including one or more pictures with one or more slices and a bitstream of the video, the bitstream conforming to a rule that specifies whether to include a deblocking parameter in a slice header or a picture header based on a first value of a first syntax element at a slice level or a second value of a second syntax element at a picture level, and the rule specifies that in response to an absence of the first syntax element in the slice header, the first value of the first syntax element is determined independently of the second value of the second syntax element at the picture level.

[0009] In another exemplary aspect, a video processing method is disclosed, the method including converting a video including one or more pictures with one or more slices to a bitstream of the video, the bitstream conforming to a format rule that specifies whether a first syntax element and a second syntax element are included or inferred in a picture header and a slice header, respectively, based on a value of a third syntax element of a picture parameter set, the first syntax element indicating whether a deblocking filter is disabled at a picture level of the video, the second syntax element indicating whether a deblocking filter is disabled at a slice level of the video, and the third syntax element indicating whether a deblocking filter is enabled for one or more pictures that reference the picture parameter set.

[0010] In another exemplary aspect, a video processing method is disclosed, comprising: converting a video including one or more pictures with one or more slices to a bitstream of the video, the conversion complying with a rule specifying whether to apply a deblocking filter to a slice based on a syntax element included in a slice header and / or a picture header and / or a picture parameter set referenced by the slice, the syntax element indicating whether the deblocking filter is enabled at a picture parameter set level and / or a slice level and / or a picture level.

[0011] In another exemplary aspect, a video processing method is disclosed, comprising: converting a video including one or more pictures with one or more slices to a bitstream of the video, the conversion conforming to a rule specifying whether to apply a deblocking filter to a slice based on syntax elements included in a sequence parameter set referenced by the slice, the syntax elements including a first syntax element indicating whether the deblocking filter is enabled and / or a set of syntax elements indicating a first set of parameters for the deblocking filter.

[0012] In another exemplary aspect, a video processing method is disclosed that includes converting a video including one or more pictures with one or more slices to a bitstream of the video, the conversion conforming to a rule specifying that whether to apply a deblocking filter to the slices is based on a non-binary syntax element included at a video unit level, the non-binary syntax element indicating whether and / or how to apply the deblocking filter to the one or more slices.

[0013] In another exemplary aspect, a video processing method is disclosed that includes converting a video including one or more pictures with one or more slices to a bitstream of the video, where the conversion complies with rules that specify that (1) a deblocking filter is enabled at a picture level of the video or a slice level of the video, and (2) zero-value deblocking parameter offsets of beta and tC are used for the parameters of the deblocking filter.

[0014] In another exemplary aspect, a video processing method is disclosed. The method includes: for converting a video block of a video and a bitstream of the video, determining a size of a prediction block corresponding to the video block according to a rule, and performing the conversion based on the determination, the rule specifies that a first size of the prediction block is determined corresponding to whether a prediction refinement using an optical flow technique is used to code the video block, and the video block has a second size and is coded using an affine merge mode or an affine advanced motion vector prediction mode.

[0015] In another exemplary aspect, a video processing method is disclosed, the method includes converting between a video including one or more pictures with one or more slices and a bitstream of the video, and a rule specifies that a first syntax element is indicated at a video level higher than a picture level or a slice level, and specifies that the first syntax element indicates whether the picture level or the slice level includes a quantization parameter delta.

[0016] In another exemplary aspect, a video processing method is disclosed, the method includes converting a video including one or more pictures with one or more slices to a bitstream of the video, a first rule specifies that a first flag of a first video level indicates whether one or more chroma quantization parameter offsets are included in the first video level, the first video level being higher than a slice level, and a second rule specifies that a second flag of a second video level indicates whether one or more chroma quantization parameter offsets are included in a picture header or a slice header, the second video level being higher than a picture level.

[0017] In another exemplary aspect, a video processing method is disclosed that includes converting between a video including one or more pictures with one or more slices and a bitstream of the video, the bitstream including a first syntax element indicating a coding block subdivision value, the coding block subdivision value having a regular range.

[0018] In another example aspect, a video processing method is disclosed that includes performing a transformation of a video including one or more video pictures with one or more video slices, where the transformation complies with a first rule that specifies that a decision regarding applicability of a deblocking filter to one or more video slices that reference a video picture parameter set is made based on a deblocking syntax field included in a picture header of a corresponding video picture.

[0019] In another exemplary aspect, another video processing method is disclosed that includes transforming video including one or more video pictures with one or more video slices, where the transformation complies with rules that specify constraints on the applicability of a deblocking filter to the video slices based on fields included at a slice header level and / or a picture header level and / or a picture parameter set level of the video slices.

[0020] In another exemplary aspect, another video processing method is disclosed that includes determining applicability of prediction refinement according to an affine advanced motion vector predictor coding based on a first rule or an optical flow (PROF) coding including an affine merge mode based on a second rule, and performing a transformation between a video block of a video and a coded representation of the video according to the determination.

[0021] In another exemplary aspect, another video processing method is disclosed that includes converting between a video including one or more pictures with one or more slices and a coded representation of the video, where a first syntax element at a picture level or a slice level and / or a second syntax element at another level indicating a quantization parameter delta or offset signaling is conditionally included in the coded representation according to a rule.

[0022] In another exemplary aspect, another video processing method is disclosed that includes converting between a video including one or more pictures including one or more slices and a coded representation of the video, the coded representation including a syntax element indicating a regular range of coding block subdivision values ​​(cbSubDiv).

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

[0024] In yet another exemplary aspect, a video decoder apparatus is disclosed, the video decoder comprising a processor configured to implement the above-described method.

[0025] 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.

[0026] These and other features are described throughout this document. [Brief description of the drawings]

[0027] [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 disclosure. [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] 1 is a flow chart illustrating an example of a method for video processing. [Figure 8] 1 is a flow chart illustrating an example of a method for video processing. [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. [Figure 18] 1 is a flow chart illustrating an example of a method for video processing. [Figure 19] 1 is a flow chart illustrating an example of a method for video processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0028] 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.

[0029] 1. Introduction This specification relates to video coding techniques, and in particular to support of deblocking signaling, QP delta / offset signaling, cbSubdiv values ​​defining quantization groups, and PROF processing in video coding. The ideas may be applied individually or in various combinations to any video coding standard or non-standard video codec that supports multi-layer video coding, such as the currently developed Versatile Video Coding (VVC). 2. Abbreviation 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 DPB Decoded Picture Buffer DPS Decoding Parameter Set 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 MCTS Motion-Constrained Tile Sets NAL Network Abstraction Layer OLS Output Layer Set PH Picture Header PPS Picture Parameter Set PROF Prediction Refinement with Optical Flow PTL Profile, Tier and Level PU Picture Unit RBSP Raw Byte Sequence Payload SEI Supplemental Enhancement Information SH Slice Header SPS Sequence Parameter Set SVC Scalable Video Coding VCL Video Coding Layer VPS Video Parameter Set VTM VVC Test Model VUI Video Usability Information VVC Versatile Video Coding

[0030] 3. Initial consultations 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-2 Video, H.264 / MPEG-4 AVC (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 order to explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, many new methods have been adopted by JVET and incorporated into reference software called the Joint Exploration Model (JEM). JVET meets quarterly, and the new coding standard aims for 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.

[0031] 3.1. PPS Syntax and Semantics In the recent VVC draft text, the PPS syntax and semantics are as follows: [Table 1] [Table 2] [Table 3] [Table 4] [Table 5] [Table 6] A PPS RBSP MUST be available to the decoding process before it is referenced, or it MUST be contained within at least one AU with a TemporalId less than or equal to the TemporalId of the PPS NAL unit that references it, or it MUST be provided through external means. All PPS NAL units with a particular value of pps_pic_parameter_set_id within one PU shall have the same content. pps_pic_parameter_set_id indicates the PPS to which other syntax elements refer. The value of pps_pic_parameter_set_id is in the range of 0 to 63. PPS NAL units share the same value space for pps_pic_parameter_set_id regardless of the nuh_layer_id value. Let ppsLayerId be the value of nuh_layer_id for a particular PPS 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 PPS NAL unit unless its ppsLayerId is less than or equal to vclLayerId and the layer whose nuh_layer_id is ppsLayerId is included in at least one OLS that contains a layer with nuh_layer_id that is vclLayerId. pps_seq_parameter_set_id specifies the value of sps_seq_parameter_set_id of the SPS. The value of pps_seq_parameter_set_id is within the range of 0 to 15. The value of pps_seq_parameter_set_id shall be the same in all PPSs referenced by coded pictures in one CLVS. mixed_nalu_types_nalu_pic_flag equal to 1 specifies that each picture that references the PPS has two or more VCL NAL units, no VCL NAL units have the same value of nal_unit_type, and the picture is not an IRAP picture. mixed_nalu_types_in_pic_flag equal to 0 specifies that each picture that references the PPS has one or more VCL NAL units, and the VCL NALs of each picture that references the PPS have the same value of nal__unit_type. If no_mixed_nalu_types_in_pic_constraint_flag is equal to 1, the value of mixed_nalu_types_in_pic_flag shall be equal to 0. For each slice with nal_unit_type value nalUnitTypeA in the range IDR_W_RADL to CRA_NUT that also contains one or more slices with another value of nal_unit_type (i.e., the value of mixed_nalu_types_in_pic_flag of picture picA is equal to 1), the following applies: - This slice shall belong to subpicA with the corresponding subpic_treated_as_pic_flag[i] value equal to 1. - This slice shall not belong to a subpicture of picA that contains a VCL NAL unit whose nal_unit_type is not equal to nalUnitTypeA. - If nalUnitTypeA is equal to CRA, then for all PUs that follow the current picture in the CLVS in decoding order and output order, RefPicList[0] and RefPicList[1] of slices in subpicA in those PUs shall not contain any pictures that precede picA in decoding order in the active entry. - Otherwise (i.e., nalUnitTypeA is IDR_W_RADL or IDR_N_LP), for all PUs in the CLVS that follow the current picture in decoding order, neither RefPicList[0] nor RefPicList[1] of slices in subpicA in these PUs shall contain any pictures that precede picA in decoding order in the active entries. NOTE 1 - mixed_nalu_types_in_pic_flag equal to 1 indicates that the picture referencing the PPS contains slices with different NAL unit types, e.g. a coded picture resulting from a sub-picture bitstream merging operation, and must ensure the matching of the bitstream structure and further the alignment of the parameters of the original bitstreams. An example of such an alignment is the following: If the value of sps_idr_rpl_flag is equal to 0 and mixed_nalu_types_in_pic_flag is equal to 1, the picture referencing the PPS cannot have slices with nal_unit_type equal to IDR_W_RADL or IDR_N_LP. pic_width_in_luma_samples specifies the width, in units of luma samples, of each picture decoded with reference to the PPS. pic_width_in_luma_samples shall not be equal to 0, shall be an integer multiple of Max(8,MinCbSizeY), and shall be less than or equal to pic_width_max_in_luma_samples. If res_change_in_clvs_allowed_flag is equal to 0, the value of pic_width_in_luma_samples shall be equal to pic_width_max_in_luma_samples. pic_height_in_luma_samples specifies the height, in units of luma samples, of each picture decoded with reference to the PPS. pic_height_in_luma_samples shall not be equal to 0, shall be an integer multiple of Max(8,MinCbSizeY), and shall be less than or equal to pic_height_max_in_luma_samples. If res_change_in_clvs_allowed_flag is equal to 0, the value of pic_height_in_luma_samples shall be equal to pic_height_max_in_luma_samples. The variables PicWidthInCtbsY, PicHeightInCtbsY, PicSizeInCtbsY, PicWidthInMinCbsY, PicHeightInMinCbsY, PicSizeInMinCbsY, PicSizeInSamplesY, PicWidthInSamplesC, and PicHeightInSamplesC are derived as follows: PicWidthInCtbsY=Ceil(pic_width_in_luma_samples÷CtbSizeY) (69) PicHeightInCtbsY=Ceil(pic_height_in_luma_samples÷CtbSizeY) (70) PicSizeInCtbsY=PicWidthInCtbsY*PicHeightInCtbsY (71) PicWidthInMinCbsY=pic_width_in_luma_samples / MinCbSizeY (72) PicHeightInMinCbsY=pic_height_in_luma_samples / MinCbSizeY (73) PicSizeInMinCbsY=PicWidthInMinCbsY*PicHeightInMinCbsY (74) PicSizeInSamplesY=pic_width_in_luma_samples*pic_height_in_luma_samples (75) PicWidthInSamplesC=pic_width_in_luma_samples / SubWidthC (76) PicHeightInSamplesC=pic_height_in_luma_samples / SubHeightC (77) A pps_conformance_window_flag equal to 1 indicates that the next conformance cropping window offset parameters in the SPS follow next in the PPS. A pps_conformance_window_flag equal to 0 indicates that no conformance cropping window offset parameters are present in the PPS. pps_conf_win_left_offset, pps_conf_win_right_offset, pps_conf_win_top_offset, and pps_conf_win_bottom_offset specify the samples of the CLVS picture output from the decoding process with respect to a rectangular area set in the output picture coordinates. If pps_conformance_window_flag is equal to 0, the values ​​of pps_conf_win_left_offset, pps_conf_win_right_offset, pps_conf_win_top_offset, and pps_conf_win_bottom_offset are inferred to be equal to 0. The adaptive cropping window includes luma samples having horizontal picture coordinates from SubWidthC*pps_conf_win_left_offset to pic_width_in_luma_samples-(SubWidthC*pps_conf_win_right_offset+1) and vertical picture coordinates from SubHeightC*pps_conf_win_top_offset to pic_height_in_luma_samples-(SubHeightC*pps_conf_win_bottom_offset+1). The value of SubWidthC*(pps_conf_win_left_offset+pps_conf_win_right_offset) is smaller than pic_width_in_luma_samples, and the value of SubHeightC*(pps_conf_win_top_offset+pps_conf_win_bottom_offset) is smaller than pic_height_in_luma_samples. If ChromaArrayType is not equal to 0, then corresponding specified samples of the two chroma arrays are samples with picture coordinates (x / SubWidthC, y / SubHeightC), where (x, y) are the picture coordinates of the specified luma sample. NOTE 2 – The conformance cropping window offset parameters are applied only at the output side. All internal decoding processes are applied to the uncropped picture size. Let ppsA and ppsB be any two PPSs that refer to the same SPS. It is a bitstream conformance requirement that if ppsA and ppsB have the same values ​​of pic_width_in_luma_samples and pic_height_in_luma_samples, respectively, then ppsA and ppsB shall have the same values ​​of pps_conf_win_left_offset, pps_conf_win_right_offset, pps_conf_win_top_offset, and pps_conf_win_bottom_offset, respectively. It is a bitstream conformance requirement that when pic_width_in_luma_samples is equal to pic_width_max_in_luma_samples, and pic_height_in_luma_samples is equal to pic_height_max_in_luma_samples, pps_conf_win_left_offset, pps_conf_win_right_offset, pps_conf_win_top_offset, and pps_conf_win_bottom_offset are equal to sps_conf_win_left_offset, sps_conf_win_right_offset, sps_conf_win_top_offset, and sps_conf_win_bottom_offset, respectively. scaling_window_explicit_signalling_flag equal to 1 specifies that the scaling window offset parameter is present in the PPS. scaling_window_explicit_signalling_flag equal to 0 specifies that the scaling window offset parameter is not present in the PPS. If res_change_in_clvs_allowed_flag is equal to 0, the value of scaling_window_explicit_signalling_flag shall be equal to 0. scaling_win_left_offset, scaling_win_right_offset, scaling_win_top_offset, and scaling_win_bottom_offset specify offsets applied to the picture size for the calculation of the scaling ratio. If not present, the values ​​of scaling_win_left_offset, scaling_win_right_offset, scaling_win_top_offset, and scaling_win_bottom_offset are inferred to be equal to pps_conf_win_left_offset, pps_conf_win_right_offset, pps_conf_win_top_offset, and pps_conf_win_bottom_offset, respectively. The value of SubWidthC*(scaling_win_left_offset+scaling_win_right_offset) shall be smaller than pic_width_in_luma_samples, and the value of SubHeightC*(scaling_win_top_offset+scaling_win_bottom_offset) shall be smaller than pic_height_in_luma_samples. The PicOutputWidthL and PicOutputHeightL variables are derived as follows: PicOutputWidthL=pic_width_in_luma_samples- (78) SubWidthC*(scaling_win_right_offset+scaling_win_left_offset) PicOutputHeightL=pic_height_in_luma_samples- (79) SubWidthC*(scaling_win_bottom_offset+scaling_win_top_offset) Let PicOutputWidthL and refPicOutputHeightL of the reference picture of the current picture that refers to this PPS be PicOutputWidthL and PicOutputHeightL, respectively. The requirement for bitstream conformance is that all of the following conditions are satisfied. - PicOutputWidthL*2 shall be greater than or equal to refPicWidthInLumaSamples. - PicOutputHeightL*2 shall be greater than or equal to refPicHeightInLumaSamples. - PicOutputWidthL shall be less than or equal to refPicWidthInLumaSamples*8. - PicOutputHeightL shall be less than or equal to refPicHeightInLumaSamples*8. - PicOutputWidthL*pic_width_max_in_luma_samples shall be greater than or equal to refPicOutputWidthL*(pic_width_in_luma_samples-Max(8,MinCbSizeY). - PicOutputHeightL*pic_height_max_in_luma_samples shall be greater than or equal to refPicOutputHeightL*(pic_height_in_luma_samples-Max(8,MinCbSizeY)). output_flag_present_flag equal to 1 indicates the presence of the pic_output_flag syntax element in the slice header that references the PPS. output_flag_present_flag equal to 0 indicates the absence of the pic_output_flag syntax element in the slice header that references the PPS. subpic_id_mapping_in_pps_flag equal to 1 specifies that subpicture ID mapping is signaled in the PPS. subpic_id_mapping_in_pps_flag equal to 0 specifies that subpicture ID mapping is not signaled in the PPS. If subpic_id_mapping_explicitly_signalled_flag is 0 or subpic_id_mapping_in_sps_flag is 1, then the value of subpic_id_mapping_in_pps_flag shall be 0. Otherwise (subpic_id_mapping_explicitly_signalled_flag is equal to 1 and subpic_id_mapping_in_sps_flag is equal to 0), the value of subpic_id_mapping_in_pps_flag shall be equal to 1. pps_num_subpics_minus1 shall be equal to sps_num_subpics_minus1. pps_subpic_id_len_minus1 shall be equal to sps_subpic_id_len_minus1. pps_subpic_id[i] specifies the subpicture ID of the i-th subpicture. The length of the pps_subpic_id[i] syntax element is pps_subpic_id_len_minus1+1 bits. The variable SubpicIdVal[i] is derived as follows for each value of i in the range from 0 to sps_num_subpics_minus1: for(i=0;i<=sps_num_subpics_minus1;i++) if(subpic_id_mapping_explicitly_signalled_flag) SubpicIdVal[i]=subpic_id_mapping_in_pps_flag?pps_subpic_id[i]:sps_subpic_id[i] (80) else SubpicIdVal[i]=i A requirement for bitstream conformance is that both of the following constraints apply: For any two distinct values ​​of i and j in the range from -0 to sps_num_subpics_minus1 (inclusive), SubpicIdVal[i] shall not be equal to SubpicIdVal[j]. - If the current picture is not the first picture in the CLVS, for each value of i in the range from 0 to sps_num_subpics_minus1 (inclusive), if the value of SubpicIdVal[i] is not equal to the value of SubpicIdVal[i] of the previous picture in decoding order in the same layer, then the nal_unit_type of all coded slice NAL units of subpictures in the current picture with subpicture index i must be equal to a specific value in the range from IDR_W_RADL to CRA_NUT (inclusive). no_pic_partition_flag equal to 1 specifies that no picture partitioning is applied to each picture that references a PPS. no_pic_partition_flag equal to 0 specifies that each picture that references a PPS may be partitioned into two or more tiles or slices. It is a bitstream conformance requirement that the value of no_pic_partition_flag shall be the same for all PPSs referenced by coded pictures within one CLVS. If the value of sps_num_subpics_minus1+1 is greater than 1, it is a bitstream conformance requirement that the value of no_pic_partition_flag shall not be 1. pps_log2_ctu_size_minus5+5 specifies the block size of the luma coding tree block of each CTU. pps_log2_ctu_size_minus5 shall be equal to sps_log2_ctu_size_minus5. num_exp_tile_columns_minus1+1 explicitly specifies the number of tile column widths provided. The value of num_exp_tile_columns_minus1 shall be in the range from 0 to PicWidthInCtbsY-1. If no_pic_partition_flag is equal to 1, the value of num_exp_tile_columns_minus1 is inferred to be equal to 0. num_exp_tile_rows_minus1+1 specifies the number of tile row heights explicitly provided. The value of num_exp_tile_rows_minus1 shall be in the range of 0 to PicHeightInCtbsY-1. If no_pic_partition_flag is equal to 1, the value of num_tile_rows_minus1 is inferred to be equal to 0. tile_column_width_minus1[i]+1 specifies the width of the ith tile column in CTB units of the ith tile column, in the range 0 to num_exp_tile_columns_minus1-1. tile_column_width_minus1[num_exp_tile_columns_minus1] is used to derive the width of tile columns with indices greater than or equal to num_exp_tile_columns_minus1 as specified in Section 6.5.1. The value of tile_column_width_minus1[i] shall be in the range 0 to PicWidthInCtbsY-1. If not present, the value of tile_column_width_minus1[0] is inferred to be equal to PicWidthInCtbsY-1. tile_row_height_minus1[i]+1 specifies the height of the ith tile column, in CTB units, of the ith tile row, in the range 0 to num_exp_tile_rows_minus1-1. tile_row_height_minus1[num_exp_tile_rows_minus1] is used to derive the height of tile rows with indices greater than or equal to num_exp_tile_rows_minus1 as specified in Section 6.5.1. The value of tile_row_height_minus1[i] shall be in the range 0 to PicHeightInCtbsY-1. If not present, the value of tile_row_height_minus1[0] is inferred to be equal to PicHeightInCtbsY-1. rect_slice_flag equal to 0 specifies that the tiles in each slice are arranged in raster scan order and slice information is not signaled in the PPS. rect_slice_flag equal to 1 specifies that the tiles in each slice cover a rectangular region of the picture and slice information is signaled in the PPS. If not present, rect_slice_flag is inferred to be equal to 1. When subpic_info_present_flag is equal to 1, the value of rect_slice_flag shall be equal to 1. single_slice_per_subpic_flag equal to 1 specifies that each subpicture consists of one and only one rectangular slice. single_slice_per_subpic_flag equal to 0 specifies that each subpicture may consist of one or more rectangular slices. If single_slice_per_subpic_flag is equal to 1, then num_slices_in_pic_minus1 is inferred to be equal to sps_num_subpics_minus1. If not present, the value of single_slice_per_subpic_flag is inferred to be equal to 0. num_slices_in_pic_minus1+1 specifies the number of rectangular slices in each picture that references the PPS. The value of num_slices_in_pic_minus1 shall range from 0 to MaxSlicesPerPicture-1 (inclusive), where MaxSlicesPerPicture is as specified in Annex A. If no_pic_partition_flag is 1, the value of num_slices_in_pic_minus1 is inferred to be equal to 0. idx_delta_present_flag equal to 0 specifies that there are no tile_idx_delta values ​​in the PPS and all rectangular slices of pictures that reference the PPS are provided in raster order according to the processing in Section 6.5.1. tile_idx_delta_present_flag equal to 1 specifies that there are tile_idx_delta values ​​in the PPS and all rectangular slices of pictures that reference the PPS are provided in the order indicated by the tile_idx_delta values. If not present, the value of tile_idx_delta_present_flag is inferred to be 0. slice_width_in_tiles_minus1[i]+1 specifies the width of the i-th rectangular slice in tile columns. The value of slice_width_in_tiles_minus1[i] must be in the range from 0 to NumTileColumns-1. If slice_width_in_tiles_minus1[i] is not present, the following applies: - If NumTileColumns is equal to 1, the value of slice_width_in_tiles_minus1[i] is inferred to be equal to 0. - Otherwise, infer the value of slice_width_in_tiles_minus1[i] as specified in Section 6.5.1. slice_height_in_tiles_minus1[i]+1 specifies the height of the i-th rectangular slice in tile rows. The value of slice_height_in_tiles_minus1[i] must be in the range from 0 to NumTileRows-1. If slice_height_in_tiles_minus1[i] is not present, the following applies: - If NumTileRows is equal to 1, or tile_idx_delta_present_flag is equal to 0 and tileIdx%NumTileColumns is greater than 0, the value of slice_height_in_tiles_minus1[i] is equal to 0. - Otherwise (NumTileRows is not equal to 1 and tile_idx_delta_present_flag is equal to 1 or tileIdx%NumTileColumns is equal to 0), the value of slice_height_in_tiles_minus1[i]i is inferred to be equal to slice_height_in_tiles_minus1[i-1] if tile_idx_delta_present_flag is equal to 1 or tileIdx%NumTileColumns is equal to 0. num_exp_slices_in_tile[i] specifies the number of distinct slice heights in the current tile that contain two or more rectangular slices. The value of num_exp_slices_in_tile[i] shall be in the range of 0 to RowHeight[tileY]-1, where tileY is the tile row index containing the i-th slice. If not present, the value of num_exp_slices_in_tile[i] is inferred to be equal to 0. If num_exp_slices_in_tile[i] is equal to 0, the value of the variable NumSlicesInTile[i] is derived to be equal to 1. exp_slice_height_in_CTUs_minus1[j]+1 specifies the height of the jth rectangular slice in the current tile, in CTU rows. The value of exp_slice_height_in_CTUs_minus1[j] shall be in the range of 0 to RowHeight[tileY]-1, where tileY is the tile row index of the current tile. When num_exp_slices_in_tile[i] is greater than 0, the variables NumSliceSInTile[i] and SliceHeightInCtusMinus1[i+k] for k in the range 0 to NumSliceSinTile[i]-1 are derived as follows: remainingHeightInCtbsY=RowHeight[SliceTopLeftTileIdx[i] / NumTileColumns] numExpSliceInTile=num_exp_slices_in_tile[i] for(j=0;j <numExpSliceInTile-1;j++) { SliceHeightInCtusMinus1[i++]=exp_slice_height_in_ctu_minus1[j] remainingHeightInCtbsY-=SliceHeightInCtusMinus1[j] } uniformSliceHeightMinus1=SliceHeightInCtusMinus1[i-1] (81) while(remainingHeightInCtbsY>=(uniformSliceHeightMinus1+1)){ SliceHeightInCtusMinus1[i++]=uniformSliceHeightMinus1 remainingHeightInCtbsY-=(uniformSliceHeightMinus1+1) j++ } if(remainingHeightInCtbsY>0) { SliceHeightInCtusMinus1[i++]=remainingHeightInCtbsY j++ } NumSlicesInTile[i]=j tile_idx_delta[i] specifies the difference between the tile index of the first tile in the i-th rectangular slice and the tile index of the first tile in the (i+1)-th rectangular slice. The value of tile_idx_delta[i] shall be in the range -NumTilesInPic+1 to NumTilesInPic-1. If not present, the value of tile_idx_delta[i] is inferred to be equal to 0. If present, the value of tile_idx_delta[i] is inferred to be equal to 0. loop_filter_across_tiles_enabled_flag equal to 1 specifies that in-loop filtering operations can occur across tile boundaries in pictures referencing the PPS. loop_filter_across_tiles_enabled_flag equal to 0 specifies that in-loop filtering operations cannot occur across tile boundaries in pictures referencing the PPS. In-loop filtering operations include deblocking filter, sample adaptive offset filter, and adaptive loop filter operations. If not present, the value of loop_filter_across_tiles_enabled_flag is inferred to be equal to 1. loop_filter_across_slices_enabled_flag equal to 1 specifies that in-loop filtering operations may occur across slice boundaries in pictures referencing the PPS. loop_filter_across_slice_enabled_flag equal to 0 specifies that in-loop filtering operations may not occur across slice boundaries in pictures referencing the PPS. In-loop filtering operations include deblocking filter, sample adaptive offset filter, and adaptive loop filter operations. If not present, the value of loop_filter_across_slices_enabled_flag is inferred to be equal to 0. cabac_init_present_flag equal to 1 specifies that cabac_init_flag is present in the slice header that references the PPS. cabac_init_present_flag equal to 0 specifies that cabac_init_flag is not present in the slice header that references the PPS. num_ref_idx_active_minus1[i] plus 1 equal to 0 specifies the inferred value of the variable NumRefIdxActive[0] of the P or B slice by num_ref_idx_active_override_flag=0 when i is equal to 0, and num_ref_idx_active_override_flag equal to 0 specifies the inferred value of the variable NumRefIdxActive[1] of the B slice by num_ref_idx_active_override_flag=0 when i is equal to 1. The value of num_ref_idx_default_active_minus1[i] shall be in the range of 0 to 14. rpl1_idx_present_flag equal to 0 specifies that ref_pic_list_sps_flag[1] and ref_pic_list_idx[1] are not present in the PH syntax structure or slice header of a picture that references the PPS. rpl1_idx_present_flag equal to 1 specifies that ref_pic_list_sps_flag[1] and ref_pic_list_idx[1] may be present in the PH syntax structure or slice header of a picture that references the PPS. SliceQp for each slice that references init_qp_minus26+26PPS Y Specifies the initial value of SliceQp Y The initial value of init_qp_minus26 shall be modified at the picture level when a non-zero value of ph_qp_delta is decoded, or at the slice level when a non-zero value of slice_qp_delta is decoded. The value of init_qp_minus26 shall be in the range of -(26+QpBdOffset) to +37. cu_qp_delta_enabled_flag equal to 1 specifies that the ph_cu_qp_delta_subdiv_intra_slice and ph_cu_qp_delta_subdiv_inter_slice syntax elements may be present in the PH that references the PPS, and cu_qp_delta_abs may be present in the transform unit syntax. cu_qp_delta_flag equal to 0 specifies that the ph_cu_qp_subdiv_intra_slice and ph_cu_qp_subdiv_inter_slice syntax elements are not present in the PH that references the PPS, and cu_qp_delta_abs is not present in the transform unit syntax. pps_chroma_tool_offsets_present_flag equal to 1 specifies that chroma tool offset related syntax elements are present in the PPS RBSP syntax structure. pps_chroma_tool_offsets_present_flag equal to 0 specifies that chroma tool offset related syntax elements are present in the PPS RBSP syntax structure. If ChromaArrayType is equal to 0, the value of ph_qp_deltas_present_flag is equal to 0. pps_cb_qp_offset and pps_cr_qp_offset are the Qp' Cb , Qp' Cr The luminance quantization parameter Qp' used to derive Y pps_cb_qp_offset and pps_cr_qp_offset shall specify the offset to the PPSC_QP_OFFSET and PPSC_QP_OFFSET, respectively. The values ​​of pps_cb_qp_offset and pps_cr_qp_offset shall be in the range of -12 to +12. If ChromaArrayType is equal to 0, pps_cb_qp_offset and pps_cr_qp_offset shall not be used in the decoding process and the decoder shall ignore their values. If not present, the values ​​of pps_cb_qp_offset and pps_cr_qp_offset shall be inferred to be equal to 0. pps_joint_cbcr_qp_offset_present_flag equal to 1 specifies that pps_joint_cbcr_qp_offset_value and joint_cbcr_qp_offset_list[i] are included in the PPS RBSP syntax structure. pps_joint_cbcr_qp_offset_present_flag equal to 0 specifies that pps_joint_cbcr_qp_offset_value and joint_cbcr_qp_offset_list[i] are not included in the PPS RBSP syntax structure. If ChromaArrayType is 0 or sps_joint_cbcr_enabled_flag is equal to 0, the value of pps_joint_cbcr_qp_offset_present_flag shall be equal to 0. If not present, the value of pps_joint_cbcr_qp_offset_present_flag is inferred to be equal to 0. pps_joint_cbcr_qp_offset_value is the Qp' CbCr The luminance quantization parameter Qp' used to derive Y The value of pps_joint_cbcr_qp_offset_value shall be in the range of -12 to 12. If ChromaArrayType is equal to 0 or sps_joint_cbcr_enabled_flag is equal to 0, pps_joint_cbcr_qp_offset_value shall not be used in the decoding process and its value shall be ignored by the decoding module. If pps_joint_cbcr_qp_offset_present_flag is equal to 0, pps_joint_cbcr_qp_offset_value is not present and is inferred to be equal to 0. When pps_slice_chroma_qp_offsets_present_flag is equal to 1, it specifies that the slice_cb_qp_offset and slice_cr_qp_offset syntax elements are present in the associated slice header. When pps_slice_slice_chroma_qp_offsets_present_flag is equal to 0, it specifies that the slice_cb_qp_offset and slice_cr_qp_offset syntax elements are not present in the associated slice header. If not present, the value of pps_slice_chroma_qp_offsets_present_flag is inferred to be equal to 0. pps_cu_chroma_qp_offset_list_enabled_flag equal to 1 specifies that the ph_cu_chroma_qp_offset_subdiv_intra_slice and ph_cu_chroma_qp_offset_subdiv_inter_slice syntax elements are present in the PH that references the PPS, and cu_chroma_qp_offset_flag may also be present in the transform unit syntax and palette coding syntax. pps_cu_chroma_qp_list_enabled_flag equal to 0 specifies that the ph_cu_chroma_qp_offset_subdiv_intra_slice and ph_cu_chroma_qp_offset_subdiv_inter_slice syntax elements are not present in the PH that references the PPS, and cu_chroma_qp_offset_flag is not present in the transform unit syntax and palette coding syntax. If not present, the value of pps_cu_chroma_qp_offset_list_enabled_flag is inferred to be equal to 0. chroma_qp_offset_list_len_minus1+1 specifies the number of cb_qp_offset_list[i], cr_qp_offset_list[i], and joint_cbcr_qp_offset_list[i] syntax elements included in the PPS RBSP syntax structure. The value of chroma_qp_offset_list_len_minus1 shall be in the range of 0 to 5. cb_qp_offset_list[i], cr_qp_offset_list[i], and joint_cbcr_qp_offset_list[i] are Qp' Cb、 Qp' Cr、 Qp' CbCr Specifies the offsets used in the derivation of cb_qp_offset_list[i], cr_qp_offset_list[i], and joint_cbcr_qp_offset_list[i] shall be in the range of -12 to +12. If pps_joint_cbcr_qp_offset_present_flag is equal to 0, then joint_cbcr_qp_offset_list[i] is not present and is inferred to be equal to 0. pps_weighted_pred_flag equal to 0 specifies that weighted prediction is not applied to the P slices referencing the PPS. sps_weighted_pred_flag equal to 1 specifies that weighted prediction is applied to the P slices referencing the PPS. If sps_weighted_pred_flag is equal to 0, the value of pps_weighted_pred_flag shall be equal to 0. pps_weighted_bipred_flag equal to 0 specifies that explicit weighted prediction is not applied to the B slices referencing the PPS. sps_weighted_bipred_flag equal to 1 specifies that explicit weighted prediction is applied to the B slices referencing the PPS. If sps_weighted_bipred_flag is equal to 0, the value of pps_weighted_bipred_flag shall be equal to 0. A deblocking_filter_control_present_flag equal to 1 specifies the presence of a deblocking filter control syntax element in the PPS. A deblocking_filter_control_present_flag equal to 0 specifies the absence of a deblocking filter control syntax element in the PPS. A deblocking_filter_override_enabled_flag equal to 1 specifies the presence of ph_deblocking_filter_override_flag in the PH that references the PPS and specifies the presence of slice_deblocking_filter_override_flag in the slice header that references the PPS. A deblocking_filter_override_enabled_flag equal to 0 specifies the absence of ph_deblocking_filter_override_flag in the PH that references the PPS and specifies the absence of slice_deblocking_filter_override_flag in the slice header that references the PPS. If not present, the value of deblocking_filter_override_enabled_flag is inferred to be equal to 0. A pps_deblocking_filter_disabled_flag equal to 1 specifies that the operation of the deblocking filter is not applied to slices that refer to PPSs for which slice_deblocking_filter_disabled_flag is not present. A pps_deblocking_filter_disabled_flag equal to 0 specifies that the operation of the deblocking filter is applied to slices that refer to PPSs for which slice_deblocking_filter_disabled_flag is not present. If not present, the value of pps_deblocking_filter_disabled_flag is inferred to be equal to 0. pps_beta_offset_div2 and pps_tc_offset_div2 specify the default deblocking parameter offsets (divided by 2) for β and tC to be applied to the luma component of a slice that references the PPS, unless the default deblocking parameter offset is overridden by a deblocking parameter offset present in the picture header or slice header of the slice that references the PPS. The values ​​of pps_beta_offset_div2 and pps_tc_offset_div2 shall both be in the range of -12 to 12. If not present, the values ​​of pps_beta_offset_div2 and pps_tc_offset_div2 are both inferred to be equal to 0. pps_cb_beta_offset_div2 and pps_cb_tc_offset_div2 specify the default deblocking parameter offsets (divided by 2) for β and tC applied to the Cb component of a slice that references the PPS, unless the default deblocking parameter offsets are overridden by a deblocking parameter offset present in the picture header or slice header of the slice that references the PPS. The values ​​of pps_cb_beta_offset_div2 and pps_cb_tc_offset_div2 shall both be in the range of -12 to +12. If not present, the values ​​of pps_cb_offset_div2 and pps_cb_offset_div2 are both inferred to be equal to 0. pps_cr_beta_offset_div2 and pps_cr_tc_offset_div2 specify the default deblocking parameter offsets (divided by 2) for β and tC applied to the Cr component of a slice that references the PPS, unless the default deblocking parameter offsets are overridden by a deblocking parameter offset present in the picture header or slice header of the slice that references the PPS. The values ​​of pps_cr_beta_offset_div2 and pps_cr_tc_offset_div2 shall both be in the range of -12 to +12. If not present, the values ​​of pps_cr_offset_div2 and pps_cr_offset_div2 are both inferred to be equal to 0. rpl_info_in_ph_flag equal to 1 specifies that reference picture list information is included in the PH syntax structure and is not included in slice headers that reference PPSs that do not contain a PH syntax structure. rpl_info_in_ph_flag equal to 0 specifies that reference picture list information is not included in the PH syntax structure and may be present in slice headers that reference PPSs that do not contain a PH syntax structure. dbf_info_in_ph_flag equal to 1 specifies that deblocking filter information is present in the PH syntax structure and is not present in slice headers that reference PPSs that do not contain a PH syntax structure. dbf_info_in_ph_flag equal to 0 specifies that deblocking filter information is not present in the PH syntax structure and may be present in slice headers that reference PPSs that do not contain a PH syntax structure. If not present, the value of dbf_info_in_ph_flag is inferred to be equal to 0. sao_info_in_ph_flag equal to 1 specifies that SAO filter information is present in the PH syntax structure and is not present in slice headers that reference PPSs that do not contain a PH syntax structure. sao_info_in_ph_flag equal to 0 specifies that SAO filter information is not present in the PH syntax structure and may be present in slice headers that reference PPSs that do not contain a PH syntax structure. alf_info_in_ph_flag equal to 1 specifies that ALF information is present in the PH syntax structure and is not present in slice headers that reference PPSs that do not contain a PH syntax structure. alf_info_in_ph_flag equal to 0 specifies that ALF information is not present in the PH syntax structure and may be present in slice headers that reference PPSs that do not contain a PH syntax structure. wp_info_in_ph_flag equal to 1 specifies that weighted prediction information may be present in the PH syntax structure and may not be present in slice headers that reference PPSs that do not contain a PH syntax structure. wp_info_in_ph_flag equal to 0 specifies that weighted prediction information is not present in the PH syntax structure and may be present in slice headers that reference PPSs that do not contain a PH syntax structure. If not present, the value of wp_info_in_ph_flag is inferred to be equal to 0. qp_delta_info_in_ph_flag equal to 1 specifies that QP delta information is present in the PH syntax structure and is not present in slice headers that reference PPSs that do not contain a PH syntax structure. qp_delta_info_in_ph_flag equal to 0 specifies that QP delta information is not present in the PH syntax structure and may be present in slice headers that reference PPSs that do not contain a PH syntax structure. pps_ref_wraparound_enabled_flag equal to 1 specifies that horizontal wraparound motion compensation is applied in inter prediction. pps_ref_wraparound_enabled_flag equal to 0 specifies that horizontal wraparound motion compensation is applied. If the value of CtbSizeY / MinCbSizeY+1 is greater than pic_width_in_luma_samples / MinCbSizeY-1, the value of pps_ref_wraparound_enabled_flag shall be equal to 0. If sps_ref_wraparound_enabled_flag is equal to 0, the value of pps_ref_wraparound_enabled_flag shall be equal to 0. pps_ref_wraparound_offset+(CtbSizeY / MinCbSizeY)+2 specifies the offset, in units of MinCbSizeY luma samples, used to calculate the horizontal wraparound position. The value of pps_ref_wraparound_offset shall be in the range 0 to (pic_width_in_luma_samples / MinCbSizeY)-(CtbSizeY / MinCbSizeY)-2. The variable PpsRefWraparoundOffset is set equal to pps_ref_wraparound_offset+(CtbSizeY / MinCbSizeY)+2. picture_header_extension_present_flag equal to 0 specifies that no PH extension syntax elements are present in the PH that references the PPS. picture_header_extension_present_flag equal to 1 specifies that a PH extension syntax element is present in the PH that references the PPS. picture_header_extension_present_flag shall be equal to 0 in bitstreams conforming to this version of this specification. slice_header_extension_present_flag equal to 0 specifies that no slice header extension syntax element is present in the slice header of the coded picture that references the PPS. slice_header_extension_flag equal to 1 specifies that a slice header extension syntax element is present in the slice header of the coded picture that references the PPS. slice_header_extension_present_flag shall be equal to 0 in bitstreams conforming to this version of this specification. A pps_extension_flag equal to 0 specifies that the PPS RBSP syntax structure does not include a pps_extension_data_flag syntax element. A pps_extension_flag equal to 1 specifies that the pps_extension_data_flag syntax element is present in the PPS RBSP syntax structure. pps_extension_data_flag can have any value. Its presence and value do not affect a decoder's conformance to the features specified in this specification version. Decoders conforming to this specification version MUST ignore all pps_extension_data_flag syntax elements.

[0032] 3.2. PH Syntax and Semantics In the recent VVC draft text, the PH syntax and semantics are as follows: [Table 7]

[0033] The PH RBSP contains the PH syntax structure, namely, picture_header_structure(). [Table 8] [Table 9] [Table 10] [Table 11] [Table 12] [Table 13] [Table 14] A PH syntax structure contains information that is common to all slices of the coded picture associated with the PH syntax structure. gdr_or_irap_pic_flag equal to 1 specifies that the current picture is a GDR or IRAP picture. gdr_or_irap_pic_flag equal to 0 specifies that the current picture may or may not be a GDR or IRAP picture. gdr_pic_flag equal to 1 specifies that the picture associated with PH is a GDR picture. gdr_pic_flag equal to 0 specifies that the picture associated with PH is not a GDR picture. If not present, the value of gdr_pic_flag is inferred to be equal to 0. If gdr_enabled_flag is equal to 0, the value of gdr_pic_flag shall be equal to 0. ph_inter_slice_allowed_flag equal to 0 specifies that all coded slices of a picture have slice_type 2. ph_inter_slice_allowed_flag equal to 1 specifies that a picture with slice_type equal to 0 or 1 may have one or more coded slices. ph_intra_slice_allowed_flag equal to 0 specifies that all coded slices of the picture have slice_type equal to 0 or 1. ph_intra_slice_allowed_flag equal to 1 specifies that the picture may have one or more coded slices with slice_type equal to 2. If not present, a value of ph_intra_slice_allowed_flag equal to 1 is inferred. NOTE 1 - For bitstreams intended to perform sub-picture based bitstream merging without modifying the PH NAL unit, the encoder is expected to set the values ​​of both ph_inter_slice_allowed_flag and ph_intra_slice_allowed_flag equal to 1. non_reference_picture_flag equal to 1 specifies that the picture associated with the PH may not be used as a reference picture. non_reference_picture_flag equal to 0 specifies that the picture associated with the PH may or may not be used as a reference picture. The ph_pic_parameter_set_id specifies the value of the pps_pic_parameter_set_id of the PPS in use. The value of ph_pic_parameter_set_id is in the range of 0 to 63. It is a bitstream conformance requirement that the value of TemporalId of a PH shall be greater than or equal to the value of TemporalId of the PPS whose pps_pic_parameter_set_id is ph_pic_parameter_set_id. ph_pic_order_cnt_lsb specifies the picture order count modulo MaxPicOrderCntLsb of the current picture. The length of the ph_pic_order_cnt_lsb syntax element is log2_max_pic_order_cnt_lsb_minus4+4 bits. The value of ph_pic_order_cnt_lsb shall be in the range of 0 to MaxPicOrderCntLsb-1. As specified in Annex C, no_output_of_prior_pics_flag affects the output of the previously decoded picture in the DPB after decoding of a CLVSS picture that is not the first picture in the bitstream. recovery_poc_cnt specifies the recovery point in output order of the decoded picture. If the current picture is a GDR picture associated with PH, and there is a picture following the current GDR picture in decoding order in a CLVS with PicOrderCntVal that is the current GDR picture's PicOrderCntVal plus the value of recovery_poc_cnt, then this picture picA is called the recovery point picture. Otherwise, the first picture in output order with PicOrderCntVal larger than the current picture's PicOrderCntVal plus the value of recovery_poc_cnt is called the recovery point picture. A recovery point picture shall not precede the current GDR picture in decoding order. The value of recovery_poc_cnt shall be in the range of 0 to MaxPicOrderCntLsb-1. If the current picture is a GDR picture, the variable RpPicOrderCntVal is derived as follows: RpPicOrderCntVal=PicOrderCntVal+recovery_poc_cnt (82) NOTE 2 - if gdr_enabled_flag is equal to 1 and the PicOrderCntVal of the current picture is greater than or equal to the RpPicOrderCntVal of the associated GDR picture, then the current and subsequent decoded pictures in output order exactly match the corresponding pictures produced by starting the decoding process from the previous IRAP picture (if there is one) that precedes the associated GDR picture in decoding order. ph_extra_bit[i] may be equal to 1 or 0. Decoders conforming to this specification version must ignore the value of ph_extra_bit[i]. The value does not affect the decoder's conformance to the features specified in this specification version. ph_poc_msb_present_flag equal to 1 specifies that the syntax element poc_msb_val is present in PH. ph_poc_msb_present_flag equal to 0 specifies that the syntax element ph_msb_val is not present in PH. If vps_independent_layer_flag[GeneralLayerIdx[nuh_layer_id]] is equal to 0 and there is a picture in the current AU of the current layer's reference layer, the value of ph_poc_msb_present_flag shall be equal to 0. poc_msb_val specifies the POC MSB value of the current picture. The length of the syntax element poc_msb_val is poc_msb_len_minus1+1 bits. ph_alf_enabled_flag equal to 1 specifies that the adaptive loop filter may be enabled for all slices associated with the PH and applied to the Y, Cb, or Cr color components in the slice. ph_alf_enabled_flag equal to 0 specifies that the adaptive loop filter may be disabled for one or more or all slices associated with the PH. If not present, ph_alf_enabled_flag is inferred to be equal to 0. ph_num_alf_aps_ids_luma specifies the number of ALF APSs referenced by the slice associated with the PH. ph_alf_aps_id_luma[i] specifies the adaptation_parameter_set_id of the i-th ALF APS referenced by the luminance component of the slice associated with PH. The value of alf_luma_filter_signal_flag for APS NAL units with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to ph_alf_aps_id_luma[i] shall be equal to 1. The TemporalId of an APS NAL unit with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to ph_alf_aps_id_luma[i] shall be less than or equal to the TemporalId of the picture associated with the PH. ph_alf_chroma_idc equal to 0 indicates that no adaptive loop filter is applied to the Cb and Cr color components. ph__alf_chroma_idc=1 indicates that the adaptive loop filter is applied to the Cb color component. ph_alf_chroma_idc=2 indicates that the adaptive loop filter is applied to the Cr color component. ph_alf_chroma_idc=3 indicates that the adaptive loop filter is applied to Cb and chrominance components. If ph_alf_chroma_idc is not present, it is inferred to be equal to 0. ph_alf_aps_id_chroma specifies the adaptation_parameter_set_id of the ALF APS to which the chroma components of the slice associated with the PH refer. The value of alf_chroma_filter_signal_flag for APS NAL units with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to ph_alf_aps_id_chroma[i] shall be equal to 1. The TemporalId of an APS NAL unit with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to ph_alf_aps_id_chroma[i] shall be less than or equal to the TemporalId of the picture associated with the PH. ph_cc_alf_cb_enabled_flag equal to 1 specifies that the cross-component filter for the Cb color component is enabled for all slices associated with the PH and may be applied to the Cb color component in the slice. ph_cc_alf_cb_enabled_flag equal to 0 specifies that the cross-component filter for the Cb color component may be disabled for one or more or all slices associated with the PH. If not present, ph_cc_alf_cb_enabled_flag is inferred to be equal to 0. ph_cc_alf_cb_aps_id specifies the adaptation_parameter_set_id of the ALF APS referenced by the Cb color component of the slice associated with the PH. The value of alf_cc_cb_filter_signal_flag shall be equal to 1 for APS NAL units with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to ph_cc_alf_cb_aps_id. The TemporalId of an APS NAL unit with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to ph_cc_alf_cb_aps_id shall be less than or equal to the TemporalId of the picture associated with the PH. ph_cc_alf_cr_enabled_flag equal to 1 specifies that the cross-component filter for the Cb color component is enabled for all slices associated with the PH and may be applied to the Cr color component in the slice. ph_cc_alf_cr_enabled_flag equal to 0 specifies that the cross-component filter for the Cr color component may be disabled for one or more or all slices associated with the PH. If not present, ph_cc_alf_cr_enabled_flag is inferred to be equal to 0. ph_cc_alf_cr_aps_id specifies the adaptation_parameter_set_id of the ALF APS referenced by the Cr color component of the slice associated with the PH. The value of alf_cc_cr_filter_signal_flag shall be equal to 1 for APS NAL units with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to ph_cc_alf_cr_aps_id. The TemporalId of an APS NAL unit with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to ph_cc_alf_cr_aps_id shall be less than or equal to the TemporalId of the picture associated with the PH. ph_lmcs_enabled_flag equal to 1 specifies that luma mapping with chroma scaling is enabled for all slices associated with PH. ph_lmcs_enabled_flag equal to 0 specifies that luma mapping with chroma scaling is disabled for one or more or all slices associated with PH. If not present, the value of ph_lmcs_enabled_flag is inferred to be equal to 0. ph_lmcs_aps_id specifies the adaptation_parameter_set_id of the LMCS APS referenced by the slice associated with PH. The TemporalId of an APS NAL unit whose aps_params_type is equal to LMCS_APS and whose adaptation_parameter_set_id is ph_lmcs_aps_id shall be less than or equal to the TemporalId of the picture associated with PH. ph_chroma_residual_scale_flag equal to 1 specifies that chroma residual scaling is enabled for all slices associated with the PH. ph_chroma_residual_scale_flag equal to 0 specifies that chroma residual scaling is disabled for one or more or all slices associated with the PH. If ph_chroma_residual_scale_flag is not present, it is inferred to be equal to 0. ph_scaling_list_present_flag equal to 1 specifies that the scaling list data used for the slice associated with the PH is derived based on the scaling list data contained in the reference scaling list APS. ph_scaling_list_present_flag equal to 0 specifies that the scaling list used for the slice associated with the PH is set to 16. If not present, the value of ph_scaling_list_present_flag is inferred to be 0. ph_scaling_list_aps_id specifies the adaptation_parameter_set_id of the scaling list APS. The TemporalId of an APS NAL unit with aps_params_type equal to SCALING_APS and adaptation_parameter_set_id equal to ph_scaling_list_aps_id shall be less than or equal to the TemporalId of the picture associated with the PH. ph_virtual_boundaries_present_flag equal to 1 specifies signaling virtual boundary information in PH. ph_virtual_boundaries_present_flag equal to 0 specifies not signaling virtual boundary information in PH. If there are one or more virtual boundaries signaled in PH, in-loop filtering operations across virtual boundaries are disabled for the picture. In-loop filtering operations include deblocking filter, sample adaptive offset filter, and adaptive loop filter operations. If not present, the value of ph_virtual_boundaries_present_flag is inferred to be 0. It is a bitstream conformance requirement that if subpic_info_present_flag is equal to 1, the value of ph_virtual_boundaries_present_flag shall be equal to 0. The variable VirtualBoundariesPresentFlag is derived as follows. VirtualBoundariesPresentFlag=0 if(sps_virtual_boundaries_enabled_flag) VirtualBoundariesPresentFlag=sps_virtual_boundaries_present_flag|| ph_virtual_boundaries_present_flag (83) ph_num_ver_virtual_boundaries specifies the number of ph_virtual_boundaries_pos_x[i] syntax elements present in PH. If ph_num_ver_virtual_boundaries is not present, it is inferred to be equal to 0. The variable NumVerVirtualBoundaries is derived as follows: NumVerVirtualBoundaries=0 if(sps_virtual_boundaries_enabled_flag) NumVerVirtualBoundaries=sps_virtual_boundaries_present_flag? sps_num_ver_virtual_boundaries:ph_num_ver_virtual_boundaries (84) ph_virtual_boundaries_pos_x[i] Specifies the position of the i-th vertical virtual boundary, in units of 8 luma samples. The value of ph_virtual_boundaries_pos_x[i] shall be in the range of 1 to Ceil(pic_width_in_luma_samples÷8)-1. Derive a list VirtualBoundariesPosX[i], for i from 0 to NumVerVirtualBoundaries-1, specifying the positions, in luma samples, of the vertical virtual boundaries as follows: for(i=0;i <NumVerVirtualBoundaries;i++) VirtualBoundariesPosX[i]=(sps_virtual_boundaries_present_flag? sps_virtual_boundaries_pos_x[i]:ph_virtual_boundaries_pos_x[i])*8 (85) The distance between any two vertical virtual borders shall be at least CtbSizeY luma samples. ph_num_hor_virtual_boundaries specifies the number of ph_virtual_boundaries_pos_y[i] syntax elements present in PH. If ph_num_hor_virtual_boundaries is not present, it is inferred to be equal to 0. The parameter NumHorVirtualBoundaries is derived as follows: NumHorVirtualBoundaries=0 if(sps_virtual_boundaries_enabled_flag) NumHorVirtualBoundaries=sps_virtual_boundaries_present_flag? sps_num_hor_virtual_boundaries:ph_num_hor_virtual_boundaries (86) If sps_virtual_boundaries_enabled_flag is equal to 1 and ph_virtual_boundaries_present_flag is equal to 1, the sum of ph_num_ver_virtual_boundaries and ph_num_hor_virtual_boundaries shall be greater than 0. ph_virtual_boundaries_pos_y[i] specifies the position of the i-th horizontal virtual boundary in units of luminance samples divided by 8. The value of ph_virtual_boundaries_pos_y[i] shall be in the range of 1 to Ceil(pic_height_in_luma_samples÷8)-1. Derive a list VirtualBoundariesPosY[i], for i from 0 to NumHorVirtualBoundaries-1, specifying the positions, in luma samples, of the horizontal virtual boundaries as follows: for(i=0;i <NumHorVirtualBoundaries;i++) VirtualBoundariesPosY[i]=(sps_virtual_boundaries_present_flag? sps_virtual_boundaries_pos_y[i]:ph_virtual_boundaries_pos_y[i])*8 (87) The distance between any two horizontal virtual borders shall be at least CtbSizeY luma samples. pic_output_flag affects the output and deletion processing of decoded pictures as specified in Annex C. If pic_output_flag is not present, it is inferred to be equal to 1. partition_constraints_override_flag equal to 1 specifies that the partition constraint parameter is present in PH. partition_constraints_override_flag equal to 0 specifies that the partition constraint parameter is not present in PH. If not present, the value of partition_constraints_override_flag is inferred to be equal to 0. ph_log2_diff_min_qt_min_cb_intra_slice_luma specifies the difference between the base 2 logarithm of the minimum size of luma samples of luma leaf blocks resulting from the quadtree partitioning of CTUs and the base 2 logarithm of the minimum coding block size of luma samples of luma CUs in slices with slice_type of 2(I) associated with PH. The value of ph_log2_diff_min_qt_min_cb_intra_slice_luma shall be in the range of 0 to CtbLog2SizeY-MinCbLog2SizeY. If not present, the value of ph_log2_diff_min_qt_min_cb_luma is inferred to be equal to sps_log2_diff_min_qt_min_cb_luma. ph_max_mtt_hierarchy_depth_intra_slice_luma specifies the maximum hierarchical depth of a coding unit resulting from a quad-tree multi-type tree partitioning in slices where the slice_type associated with PH is 2(I). The value of ph_max_mtt_hierarchy_depth_intra_slice_luma shall be in the range of 0 to 2*(CtbLog2SizeY-MinCbLog2SizeY). If not present, the value of ph_max_mtt_hierarchy_depth_intra_slice_luma is inferred to be equal to sps_max_mtt_hierarchy_depth__intra_slice_luma. ph_log2_diff_max_bt_min_qt_intra_slice_luma specifies the difference between the base 2 logarithm of the maximum size (width or height) of luma samples of a luma coding block that can be split using binary splitting and the minimum size (width or height) of luma samples of a luma leaf block that results from a quadtree split of a CTU for a slice with slice_type that is 2(I) associated with PH. The value of ph_log2_diff_max_bt_min_qt_intra_slice_luma shall be in the range of 0 to CtbLog2SizeY-MinQtLog2SizeIntraY. If not present, the value of ph_log2_diff_max_bt_min_qt_intra_slice_luma is inferred to be equal to sps_log2_diff_max_bt_min_qt_intra_slice_luma. ph_log2_diff_max_tt_min_qt_intra_slice_luma specifies the difference between the base 2 logarithm of the maximum size (width or height) of luma samples of a luma coding block that can be divided using ternary division and the minimum size (width or height) of luma samples of a luma leaf block that results from a quadtree division of a CTU for a slice with slice_type being 2(I) associated with PH. The value of ph_log2_diff_max_tt_min_qt_intra_slice_luma shall be in the range of 0 to CtbLog2SizeY-MinQtLog2SizeIntraY. If not present, the value of ph_log2_diff_max_tt_min_qt_intra_slice_luma is inferred to be equal to sps_log2_diff_max_tt_min_qt_intra_slice_luma. ph_log2_diff_min_qt_min_cb_intra_slice_chroma specifies the difference between the base 2 logarithm of the minimum size of luma samples of a chroma leaf block by quadtree decomposition of a chroma CTU with treeType equal to DUAL_TREE_CHROMA and the base 2 logarithm of the minimum coding block size of luma samples of a chroma CU with treeType equal to DUAL_TREE_CHROMA in a slice with slice_type equal to 2(I) associated with PH. The value of ph_log2_diff_min_qt_min_cb_intra_slice_chroma shall be in the range of 0 to CtbLog2SizeY-MinCbLog2SizeY. If not present, the value of ph_log2_diff_min_qt_min_cb_intra_slice_chroma is inferred to be equal to sps_log2_diff_min_qt_min_cb_chroma. ph_max_mtt_hierarchy_depth_intra_slice_chroma specifies the maximum hierarchical depth of a chroma coding unit resulting from a multi-type tree partition of a chroma quadtree with treeType=DUAL_TREE_CHROMA with slice_type associated with PH being 2(I). The value of ph_max_mtt_hierarchy_depth_intra_slice_chroma shall be in the range of 0 to 2*(CtbLog2SizeY-MinCbLog2SizeY). If not present, the value of ph_max_mtt_hierarchy_depth_intra_slice_chroma is inferred to be equal to sps_max_mtt_hierarchy_depth_intra_slice_chroma. ph_log2_diff_max_bt_min_qt_intra_slice_chroma specifies the difference between the base 2 logarithm of the maximum size (width or height) of luma samples of a chroma coding block that can be divided using binary division and the minimum size (width or height) of luma samples of a chroma coding block that results from a quadtree division of a chroma CTU with treeType equal to DUAL_TREE_CHROMA in a slice where the slice_type associated with PH is 2(I). The value of ph_log2_diff_max_bt_min_qt_intra_slice_chroma shall be in the range of 0 to CtbLog2SizeY-MinQtLog2SizeIntraC. If not present, the value of ph_log2_diff_max_bt_min_qt_intra_slice_chroma is inferred to be equal to sps_log2_diff_max_bt_min_qt_intra_slice_chroma. ph_log2_diff_max_tt_min_qt_intra_slice_chroma specifies the difference between the base 2 logarithm of the maximum size (width or height) of a luma sample of a chroma coding block that can be divided using ternary division and the minimum size (width or height) of a luma sample of a chroma coding block that results from a quadtree division of a chroma CTU with treeType equal to DUAL_TREE_CHROMA in a slice where the slice_type associated with PH is 2(I). The value of ph_log2_diff_max_tt_min_qt_intra_slice_chroma shall be in the range of 0 to CtbLog2SizeY-MinQtLog2SizeIntraC. If not present, the value of ph_log2_diff_max_tt_min_qt_intra_slice_chroma is inferred to be equal to sps_log2_diff_max_tt_min_qt_intra_slice_chroma. ph_cu_qp_delta_subdiv_intra_slice specifies the maximum cbSubdiv value of the coding unit in the intra slice that conveys cu_qp_delta_abs and cu_qp_delta_sign_flag. The value of ph_cu_qp_delta_subdiv_intra_slice shall be within the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY+ph_max_mtt_hierarchy_depth_intra_slice_luma). If not present, the value of ph_cu_qp_delta_subdiv_intra_slice is inferred to be equal to 0. ph_cu_chroma_qp_offset_subdiv_intra_slice specifies the maximum cbSubdiv value of the coding unit in the intra slice that conveys cu_chroma_qp_offset_flag. The value of ph_cu_qp_offset_subdiv_intra_slice shall be within the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY+ph_max_mtt_hierarchy_depth_intra_slice_luma). If not present, the value of ph_cu_chroma_qp_offset_subdiv_intra_slice is inferred to be equal to 0. ph_log2_diff_min_qt_min_cb_inter_slice specifies the difference between the base 2 logarithm of the minimum size of luma samples of a luma leaf block resulting from the quadtree decomposition of a CTU and the base 2 logarithm of the minimum luma coding block size of luma samples for a luma CU in a slice with slice_type associated with PH equal to 0 (B) or 1 (P). The value of ph_log2_diff_min_qt_min_cb_inter_slice shall be in the range of 0 to CtbLog2SizeY-MinCbLog2SizeY. If not present, the value of ph_log2_diff_min_qt_min_cb_luma is inferred to be equal to sps_log2_diff_min_qt_min_cb_inter_slice. ph_max_mtt_hierarchy_depth_inter_slice specifies the maximum hierarchical depth of a coding unit due to multi-type tree partitioning of quadtree leaves in slices with slice_type associated with PH of 0 (B) or 1 (P). The value of ph_max_mtt_hierarchy_depth_inter_slice shall be in the range of 0 to 2*(CtbLog2SizeY-MinCbLog2SizeY). If not present, the value of ph_max_mtt_hierarchy_depth_inter_slice is inferred to be equal to sps_max_mtt_hierarchy_depth_inter_slice. ph_log2_diff_max_bt_min_qt_inter_slice specifies the difference between the base 2 logarithm of the maximum size (width or height) of luma samples of a luma coding block that can be split using binary splitting and the minimum size (width or height) of luma samples of a luma leaf block that results from a quadtree split of a CTU in a slice that is 0 (B) or 1 (P) associated with PH. The value of ph_log2_diff_max_bt_min_qt_inter_slice shall be in the range of 0 to CtbLog2SizeY-MinQtLog2SizeInterY. If not present, the value of ph_log2_diff_max_bt_min_qt_inter_slice is inferred to be equal to sps_log2_diff_max_bt_min_qt_inter_slice. ph_log2_diff_max_tt_min_qt_inter_slice specifies the difference between the base 2 logarithm of the maximum size (width or height) of a luma sample of a luma coding block that can be divided using ternary division and the minimum size (width or height) of a luma sample of a luma leaf block that results from a quadtree division of a CTU in a slice that is 0 (B) or 1 (P) associated with PH. The value of ph_log2_diff_max_tt_min_qt_inter_slice shall be in the range of 0 to CtbLog2SizeY-MinQtLog2SizeInterY. If not present, the value of ph_log2_diff_max_tt_min_qt_inter_slice is inferred to be equal to sps_log2_diff_max_tt_min_qt_inter_slice. ph_cu_qp_delta_subdiv_inter_slice specifies the maximum cbSubdiv value of coding units in an inter slice that conveys cu_qp_delta_abs and cu_qp_delta_sign_flag. The value of ph_cu_qp_delta_subdiv_inter_slice shall be within the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeInterY+ph_max_mtt_hierarchy_depth_inter_slice). If not present, the value of ph_cu_qp_delta_subdiv_inter_slice is inferred to be equal to 0. ph_cu_chroma_qp_offset_subdiv_inter_slice specifies the maximum cbSubdiv value of the coding unit in the inter slice that conveys cu_chroma_qp_offset_flag. The value of ph_cu_chroma_qp_offset_subdiv_inter_slice shall be within the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeInterY+ph_max_mtt_hierarchy_depth_inter_slice). If not present, the value of ph_cu_chroma_qp_offset_subdiv_inter_slice is inferred to be equal to 0. ph_temporal_mvp_enabled_flag specifies whether a temporal motion vector predictor may be used for inter prediction of the slice associated with the PH. If ph_temporal_mvp_enabled_flag is equal to 0, the syntax elements of the slice associated with the PH shall be constrained such that a temporal motion vector predictor is not used for decoding the slice. Otherwise (ph_temporal_mvp_enabled_flag is equal to 1), a temporal motion vector predictor may be used for decoding the slice associated with the PH. If not present, the value of ph_temporal_mvp_enabled_flag is inferred to be equal to 0. If the spatial resolution of the reference picture in the DPB is not the same as the current picture, the value of ph_temporal_mvp_enabled_flag shall be equal to 0. The maximum number of subblock-based merge MVP candidates, MaxNumSubblockMergeCand, is derived as follows: if(sps_affine_enabled_flag) MaxNumSubblockMergeCand=5-five_minus_max_num_subblock_merge_cand (88) else MaxNumSubblockMergeCand=sps_sbtmvp_enabled_flag&&ph_temporal_mvp_enable_flag The value of MaxNumSubblockMergeCand is in the range of 0 to 5. ph_collocated_from_l0_flag equal to 1 specifies that the co-located pictures used for temporal motion vector prediction are derived from reference picture list 0. ph_collocated_from_l0_flag equal to 0 specifies that the co-located pictures used for temporal motion vector prediction are derived from reference picture list 1. ph_collocated_ref_idx specifies the reference index of the co-located picture used for temporal motion vector prediction. If ph_collocated_from_l0_flag is equal to 1, ph_collocated_ref_idx refers to an entry in reference picture list 0, and the value of ph_collocated_ref_idx shall be in the range from 0 to num_ref_entries[0][RplsIdx[0]]-1. If ph_collocated_from_l0_flag is equal to 0, ph_collocated_ref_idx refers to an entry in reference picture list 1, and the value of ph_collocated_ref_idx shall be in the range of 0 to num_ref_entries[1][RplsIdx[1]]-1. If not present, the value of ph_collocated_ref_idx is inferred to be equal to 0. mvd_l1_zero_flag equal to 1 indicates that the mvd_coding(x0,y0,1) syntax structure was not parsed and MvdL1[x0][y0][compIdx] and MvdCpL1[x0][y0][cpIdx][compIdx] are set to 0 for compIdx=0..1 and cpIdx=0..2. mvd_l1_zero_flag equal to 0 indicates that the mvd_coding(x0,y0,1) syntax structure was parsed. ph_fpel_mmvd_enabled_flag equal to 1 specifies that merge modes with motion vector differences use integer sample precision of the slice associated with PH. ph_fpel_mmvd_enabled_flag equal to 0 specifies that merge modes with motion vector differences use fractional sample precision of the slice associated with PH. If not present, the value of ph_fpel_mmvd_enabled_flag is inferred to be 0. ph_disable_bdof_flag equal to 1 specifies that inter bi-prediction based on bi-directional optical flow inter prediction is disabled in the slice associated with PH. ph_disable_bdof_flag equal to 0 specifies that inter bi-prediction based on bi-directional optical flow inter prediction may or may not be enabled in the slice associated with PH. If ph_disable_bdof_flag is not present, the following applies: - If sps_bdof_enabled_flag is equal to 1, the value of ph_disable_bdof_flag is inferred to be equal to 0. - Otherwise (if sps_bdof_enabled_flag is equal to 0), the value of ph_disable_bdof_flag is inferred to be equal to 1. ph_disable_dmvr_flag equal to 1 specifies that inter bi-prediction based on decoder motion vector refinement is disabled in the slice associated with PH. ph_disable_dmvr_flag equal to 0 specifies that inter bi-prediction based on decoder motion vector refinement may or may not be enabled in the slice associated with PH. If ph_disable_dmvr_flag is not present, the following applies: - If sps_dmvr_enabled_flag is equal to 1, the value of ph_disable_dmvr_flag is inferred to be equal to 0. - Otherwise (if sps_dmvr_enable_flag is equal to 0), the value of ph_disable_dmvr_flag is inferred to be equal to 1. ph_disable_prof_flag equal to 1 specifies that optical flow prediction refinement is disabled for slices associated with PH. ph_disable_prof_flag equal to 0 specifies that optical flow prediction refinement may or may not be enabled for slices associated with PH. If ph_disable_prof_flag is not present, the following applies: - If sps_affine_prof_enabled_flag is equal to 1, the value of ph_disable_prof_flag is inferred to be equal to 0. - Otherwise (sps_affine_prof_enabled_flag is equal to 0), the value of ph_disable_prof_flag is inferred to be equal to 1. ph_qp_delta is the Qp used for coding blocks in a picture until it is modified by the value of CuQpDeltaVal in the coding unit layer. Y Specifies the initial value of . If qp_delta_info_in_ph_flag is equal to 1, the Qp Y SliceQp is the quantization parameter Y The first value of is derived as follows: SliceQp Y =26+init_qp_minus26+ph_qp_delta (89) SliceQp Y The value is in the range of -QpBdOffset to 63. ph_joint_cbcr_sign_flag specifies whether the co-located residual samples of both chroma components have opposite signs in transform units for which tu_joint_cbcr_residual_flag[x0][y0] is equal to 1. When tu_joint_cbcr_residual_flag[x0][y0] is equal to 1 for a transform unit, ph_joint_cbcr_sign_flag equal to 0 specifies that the sign of each residual sample of the Cr (or Cb) component is the same as the sign of the co-located Cb (or Cr) residual sample, and ph_joint_cbcr_sign_flag equal to 1 specifies that the sign of each residual sample of the Cr (or Cb) component is represented with the opposite sign of the co-located Cb (or Cr) residual sample. ph_sao_luma_enabled_flag equal to 1 specifies that SAO is enabled for the luma component in all slices associated with the PH, and ph_sao_luma_enabled_flag equal to 0 specifies that SAO for the luma component may be disabled for one or more or all slices associated with the PH. If ph_sao_luma_enabled_flag is not present, it is inferred to be equal to 0. ph_sao_chroma_enabled_flag equal to 1 specifies that SAO is enabled for chroma components in all slices associated with the PH, and ph_sao_chroma_enabled_flag equal to 0 specifies that SAO of the luma component may be disabled for one or more or all slices associated with the PH. If ph_sao_chroma_enabled_flag is not present, it is inferred to be equal to 0. ph_dep_quant_enabled_flag equal to 0 specifies that dependent quantization is disabled for the current picture. ph_dep_quant_enabled_flag equal to 1 specifies that dependent quantization is enabled for the current picture. If ph_dep_quant_enabled_flag is not present, it is inferred to be equal to 0. pic_sign_data_hiding_enabled_flag equal to 0 specifies that sign bit hiding is disabled for the current picture. pic_sign_data_hiding_enabled_flag equal to 1 specifies that sign bit hiding is enabled for the current picture. If pic_sign_data_hiding_enabled_flag is not present, it is inferred to be equal to 0. ph_deblocking_filter_override_flag equal to 1 specifies that deblocking parameters are present in PH. ph_deblocking_filter_override_flag equal to 0 specifies that deblocking parameters are not present in PH. If not present, the value of ph_deblocking_filter_override_flag is inferred to be equal to 0. ph_deblocking_filter_disabled_flag equal to 1 specifies not to apply a deblocking filter operation to the slice associated with PH. ph_deblocking_filter_disabled_flag equal to 0 specifies to apply a deblocking filter operation to the slice associated with PH. If ph_deblocking_filter_disabled_flag is not present, it is inferred to be equal to pps_deblocking_filter_disabled_flag. ph_beta_offset_div2 and ph_tc_offset_div2 specify the offset (divided by 2) of the β and tC deblocking parameters applied to the luma component of the slice associated with PH. The values ​​of ph_beta_offset_div2 and ph_tc_offset_div2 shall both be in the range of -12 to 12. If not present, the values ​​of ph_beta_offset_div2 and ph_tc_offset_div2 are inferred to be equal to pps_beta_offset_div2 and pps_tc_offset_div2, respectively. ph_cb_beta_offset_div2 and ph_cb_tc_offset_div2 specify the offset (divided by 2) of the β and tC deblocking parameters applied to the Cb component of the slice associated with PH. The values ​​of ph_cb_beta_offset_div2 and ph_cb_tc_offset_div2 shall both be in the range of -12 to 12. If not present, the values ​​of ph_cb_beta_offset_div2 and ph_cb_tc_offset_div2 are inferred to be equal to pps_cb_beta_offset_div2 and pps_cb_tc_offset_div2, respectively. ph_cr_beta_offset_div2 and ph_cr_tc_offset_div2 specify the offset (divided by 2) of the β and tC deblocking parameters applied to the Cr component of the slice associated with PH. The values ​​of ph_cr_beta_offset_div2 and ph_cr_tc_offset_div2 shall both be in the range of -12 to 12. If not present, the values ​​of ph_cr_beta_offset_div2 and ph_cr_tc_offset_div2 are inferred to be equal to pps_cr_beta_offset_div2 and pps_cr_tc_offset_div2, respectively. ph_extension_length specifies the length of the PH extension data in bytes, not including the bits used for signaling the ph_extension_length itself. The value of ph_extension_length is in the range 0 to 256. If not present, the value of ph_extension_length is inferred to be equal to 0. ph_extension_data_byte can have any value. Decoders conforming to this specification version must ignore the value of ph_extension_data_byte. The value does not affect the decoder's conformance to the features specified in this specification version.

[0034] 3.3 SH Syntax and Semantics In the recent VVC draft text, the SH syntax and semantics are as follows: [Table 15] [Table 16] [Table 17] [Table 18] [Table 19] The variable CuQpDeltaVal, which specifies the difference between the luma quantization parameter of the coding unit containing cu_qp_delta_abs and its prediction, is set to 0. The quantization parameter Qp' of the coding unit containing cu_chroma_qp_offset_flag is set to 0. Cb ,Qp' Cr and Qp' CbCr The variable CuQpOffset specifies the value to be used when determining each of the values. Cb,CuQpOffset Cr and CuQpOffset CbCr are all set equal to 0. picture_header_in_slice_header_flag equal to 1 indicates that a PH syntax structure is present in the slice header. If picture_header_in_slice_header_flag is 0, a PH syntax structure is not present in the slice header. It is a bitstream conformance requirement that the value of picture_header_in_slice_header_flag shall be the same in all coded slices within a CLVS. It is a bitstream conformance requirement that if picture_header_in_slice_header_flag is equal to 1 for one coded slice, then no VCL NAL units with nal_unit_type equal to PH_NUT shall be present in the CLVS. If picture_header_in_slice_header_flag is equal to 0, all coded slices in the current picture shall have picture_header_in_slice_header_flag equal to 0 and the current PU shall have a PH NAL unit. slice_subpic_id specifies the subpicture ID of the subpicture that contains the slice. If slice_subpic_id is present, the value of the variable CurrSubpicIdx is derived such that SubpicIdVal[CurrSubpicIdx] is equal to slice_subpic_id. Otherwise (slice_subpic_id is not present), CurrSubpicIdx is derived to be equal to 0. The length of slice_subpic_id is sps_subpic_id_len_minus1+1 bits. slice_address specifies the slice address of the slice. If not present, the value of slice_address is inferred to be equal to 0. If rect_slice_flag is equal to 1 and NumSlicesInSubpic[CurrSubpicIdx] is equal to 1, the value of slice_address is inferred to be equal to 0. If rect_slice_flag is equal to 0, the following applies: - The slice address is the raster scan tile index. - slice_address is Ceil(Log2(NumTilesInPic)) bits long. - The value of slice_address should be in the range from 0 to NumTilesInPic-1. Otherwise (rect_slice_flag is equal to 1), the following applies: - The slice address is the sub-picture level slice index of the slice. - The length of slice_address is Ceil(Log2(NumSlicesInSubpic[CurrSubpicIdx])) bits. - The value of slice_address must be in the range of 0 to NumSlicesInSubpic[CurrSubpicIdx]-1. The requirements for bitstream conformance are that the following constraints apply: - If rect_slice_flag is equal to 0 or subpic_info_present_flag is equal to 0, the value of slice_address shall not be equal to the value of slice_address of any other coded slice NAL unit in the same coded picture. - Otherwise, the slice_subpic_id and slice_address value pair must not be equal to the slice_subpic_id and slice_address value pair of any other coded slice NAL unit in the same coded picture. - The shape of a slice of a picture must be such that each CTU, when decoded, has its entire left and topmost boundary that contains the boundary of one picture or the boundary of a previously decoded CTU. sh_extra_bit[i] may be equal to 1 or 0. Decoders conforming to this specification version must ignore the value of sh_extra_bit[i]. The value does not affect the decoder's conformance to the features specified in this specification version. num_tiles_in_slice_minus1+1 (if present) specifies the number of tiles in a slice. The value of num_tiles_in_slice_minus1 should be in the range from 0 to NumTilesInPic-1. The variable NumCtusInCurrSlice, which specifies the number of CTUs in the current slice, and the list CtbAddrInCurrSlice[i], which specifies the picture raster scan address of the ith CTB in the slice, where i ranges from 0 to NumCTUsInCurrSlice-1, are derived as follows: if(rect_slice_flag) { picLevelSliceIdx=slice_address for(j=0;j <CurrSubpicIdx;j++) picLevelSliceIdx+=NumSlicesInSubpic[j] NumCtusInCurrSlice=NumCtusInSlice[picLevelSliceIdx] for(i=0;i <NumCtusInCurrSlice;i++) CtbAddrInCurrSlice[i] = CtbAddrInSlice[picLevelSliceIdx][i] (117) } else { NumCtusInCurrSlice = 0 for (tileIdx = slice_address; tileIdx <= slice_address + num_tiles_in_slice_minus1; tileIdx++) { tileX = tileIdx % NumTileColumns tileY = tileIdx / NumTileColumns for (ctbY = tileRowBd[tileY]; ctbY < tileRowBd[tileY + 1]; ctbY++) { for (ctbX = tileColBd[tileX]; ctbX < tileColBd[tileX + 1]; ctbX++) { CtbAddrInCurrSlice[NumCtusInCurrSlice] = ctbY * PicWidthInCtb + ctbX NumCtusInCurrSlice++ } } } } The variables SubpicLeftBoundaryPos, SubpicTopBoundaryPos, SubpicRightBoundaryPos, and SubpicBotBoundaryPos are derived as follows. if (subpic_treated_as_pic_flag[CurrSubpicIdx]) { SubpicLeftBoundaryPos = subpic_ctu_top_left_x[CurrSubpicIdx] * CtbSizeY SubpicRightBoundaryPos = Min(pic_width_max_in_luma_samples - 1, (subpic_ctu_top_left_x[CurrSubpicIdx] + subpic_width_minus1[CurrSubpicIdx]+1)*CtbSizeY-1) SubpicTopBoundaryPos=subpic_ctu_top_left_y[CurrSubpicIdx]*CtbSizeY (118) SubpicBotBoundaryPos=Min(pic_height_max_in_luma_samples-1, (subpic_ctu_top_left_y[CurrSubpicIdx]+ subpic_height_minus1[CurrSubpicIdx]+1)*CtbSizeY-1) } slice_type specifies the coding type of the slice according to Table 9. Associating a name with a slice_type [Table 20] If not present, the value of slice_type is inferred to be equal to 2. If ph_intra_slice_allowed_flag is equal to 0, the value of slice_type shall be equal to 0 or 1. If nal_unit_type is in the range IDR_W_RADL~CRA_NUT and vps_independent_layer_flag[GeneralLayerIdx[nuh_layer_id]] is equal to 1, slice_type shall be equal to 2. The variables MinQtLog2SizeY, MinQtLog2SizeC, MinQtSizeY, MinQtSizeC, MaxBtSizeY, MaxBtSizeC, MinBtSizeY, MaxTtSizeY, MaxTtSizeC, MinTtSizeY, MaxMttDepthY, and MaxMttDepthC are derived as follows: - If slice_type is equal to 2(I), the following applies: MinQtLog2SizeY=MinCbLog2SizeY+ph_log2_diff_min_qt_min_cb_intra_slice_luma (119) MinQtLog2SizeC=MinCbLog2SizeY+ph_log2_diff_min_qt_min_cb_intra_slice_chroma (120) MaxBtSizeY=1<<(MinQtLog2SizeY+ph_log2_diff_max_bt_min_qt_intra_slice_luma) (121) MaxBtSizeC=1<<(MinQtLog2SizeC+ph_log2_diff_max_bt_min_qt_intra_slice_chroma) (122) MaxTtSizeY=1<<(MinQtLog2SizeY+ph_log2_diff_max_tt_min_qt_intra_slice_luma) (123) MaxTtSizeC=1<<(MinQtLog2SizeC+ph_log2_diff_max_tt_min_qt_intra_slice_chroma) (124) MaxMttDepthY=ph_max_mtt_hierarchy_depth_intra_slice_luma (125) MaxMttDepthC=ph_max_mtt_hierarchy_depth_intra_slice_chroma (126) CuQpDeltaSubdiv=ph_cu_qp_delta_subdiv_intra_slice (127) CuChromaQpOffsetSubdiv=ph_cu_chroma_qp_offset_subdiv_intra_slice (128) - Otherwise(slice_type equal to 0 (B) or 1(P)),the following applies: MinQtLog2SizeY=MinCbLog2SizeY+ph_log2_diff_min_qt_min_cb_inter_slice (129) MinQtLog2SizeC=MinCbLog2SizeY+ph_log2_diff_min_qt_min_cb_inter_slice (130) MaxBtSizeY=1<<(MinQtLog2SizeY+ph_log2_diff_max_bt_min_qt_inter_slice) (131) MaxBtSizeC=1<<(MinQtLog2SizeC+ph_log2_diff_max_bt_min_qt_inter_slice) (132) MaxTtSizeY=1<<(MinQtLog2SizeY+ph_log2_diff_max_tt_min_qt_inter_slice) (133) MaxTtSizeC=1<<(MinQtLog2SizeC+ph_log2_diff_max_tt_min_qt_inter_slice) (134) MaxMttDepthY=ph_max_mtt_hierarchy_depth_inter_slice (135) MaxMttDepthC=ph_max_mtt_hierarchy_depth_inter_slice (136) CuQpDeltaSubdiv=ph_cu_qp_delta_subdiv_inter_slice (137) CuChromaQpOffsetSubdiv=ph_cu_chroma_qp_offset_subdiv_inter_slice (138) - The following applies: MinQtSizeY=1<<MinQtLog2SizeY (139) MinQtSizeC=1<<MinQtLog2SizeC (140) MinBtSizeY=1<<MinCbLog2SizeY (141) MinTtSizeY=1< <MinCbLog2SizeY (142) slice_alf_enabled_flag equal to 1 specifies that the adaptive loop filter is enabled and may be applied to the Y, Cb, or Cr color components in a slice. slice_alf_enabled_flag equal to 0 specifies that all color components in the slice are disabled. If not present, the value of slice_alf_enabled_flag is inferred to be ph_alf_enabled_flag. slice_num_alf_aps_ids_luma specifies the number of ALF APS that the slice references. If slice_alf_enabled_flag is equal to 1 and slice_num_alf_aps_ids_luma is not present, the value of slice_num_alf_aps_ids_luma is inferred to be equal to the value of ph_num_alf_aps_ids_luma. slice_alf_aps_id_luma[i] specifies the adaptation_parameter_set_id of the i-th ALF APS to which the luma component of the slice refers. The TemporalId of an APS NAL unit with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to slice_alf_aps_id_luma[i] shall be less than or equal to the TemporalId of the coded slice NAL unit. If slice_alf_enabled_flag is equal to 1 and slice_alf_aps_id_luma[i] is not present, the value of slice_alf_aps_id_luma[i] is inferred to be equal to the value of ph_alf_aps_id_luma[i]. The value of alf_luma_filter_signal_flag shall be equal to 1 for APS NAL units with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to slice_alf_aps_id_luma[i]. slice_alf_chroma_idc equal to 0 indicates that the adaptive loop filter is not applied to the Cb and Cr color components. slice_alf_chroma_idc=1 indicates that the adaptive loop filter is applied to the Cb color component. slice_alf_chroma_idc=2 indicates that the adaptive loop filter is applied to the Cr color component. slice_alf_chroma_idc=3 indicates that the adaptive loop filter is applied to the Cb and Cr color components. If slice_alf_chroma_idc is not present, it is inferred to be equal to ph_alf_chroma_idc. slice_alf_aps_id_chroma specifies the adaptation_parameter_set_id of the ALF APS to which the slice chroma components refer. The TemporalId of an APS NAL unit with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to slice_alf_aps_id_chroma shall be less than or equal to the TemporalId of the coded slice NAL unit. If slice_alf_enabled_flag is equal to 1 and slice_alf_aps_id_chroma is not present, the value of slice_alf_aps_id_chroma is inferred to be equal to the value of ph_alf_aps_id_chroma. The value of alf_chroma_filter_signal_flag for APS NAL units with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to slice_alf_aps_id_chroma[i] shall be equal to 1. slice_cc_alf_cb_enabled_flag equal to 0 specifies that the cross-component filter is not applied to the Cb color components. slice_cc_alf_cb_enabled_flag equal to 1 specifies that the cross-component filter is enabled and may or may not be applied to the Cb color components. If slice_cc_alf_cb_enabled_flag is not present, it is inferred to be equal to ph_cc_alf_cb_enabled_flag. slice_cc_alf_cb_aps_id specifies the adaptation_parameter_set_id referenced by the Cb color component of the slice. The TemporalId of an APS NAL unit with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to slice_cc_alf_cb_aps_id shall be less than or equal to the TemporalId of the coded slice NAL unit. If slice_cc_alf_cb_enabled_flag is equal to 1 and slice_cc_alf_cb_aps_id is not present, the value of slice_cc_alf_cb_aps_id is inferred to be equal to the value of ph_cc_alf_cb_aps_id. The value of alf_cc_cb_filter_signal_flag for APS NAL units with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to slice_cc_alf_cb_aps_id shall be equal to 1. slice_cc_alf_cr_enabled_flag equal to 0 specifies that the cross-component filter is not applied to the Cr color component. slice_cc_alf_cb_enabled_flag equal to 1 specifies that the cross-component adaptive loop filter is enabled and may or may not be applied to the Cr color component. If slice_cc_alf_cr_enabled_flag is not present, it is inferred to be equal to ph_cc_alf_cr_enabled_flag. slice_cc_alf_cr_aps_id specifies the adaptation_parameter_set_id to which the Cr color component of the slice refers. The TemporalId of an APS NAL unit with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to slice_cc_alf_cr_aps_id shall be less than or equal to the TemporalId of the coded slice NAL unit. If slice_cc_alf_cr_enabled_flag is equal to 1 and slice_cc_alf_cr_aps_id is not present, the value of slice_cc_alf_cr_aps_id is inferred to be equal to the value of ph_cc_alf_cr_aps_id. The value of alf_cc_cr_filter_signal_flag for APS NAL units with aps_params_type equal to ALF_APS and adaptation_parameter_set_id equal to slice_cc_alf_cr_aps_id shall be equal to 1. colour_plane_id identifies the colour plane associated with the current slice if separate_colour_plane_flag is equal to 1. Values ​​of colour_plane_id shall be in the range 0 to 2, where colour_plane_id values ​​0, 1 and 2 correspond to the Y, Cb and Cr planes respectively. Value 3 for colour_plane_id is reserved for future use by ITU-T|ISO / IEC. NOTE 1 – There are no dependencies between the decoding processes of different color planes of one picture. num_idx_active_override_flag equal to 1 specifies that the syntax element num_ref_idx_active_minus1[0] is present in P slices and B slices, and the syntax element num_ref_idx_active_minus1[1] is present in B slices. num_ref_idx_active_override_flag equal to 0 specifies that the syntax elements num_ref_idx_active_minus1[0] and num_ref_idx_active_minus1[1] are not present. If not present, the value of num_ref_idx_active_override_flag is inferred to be equal to 1. num_ref_idx_active_minus1[i] is used to derive the variable NumRefIdxActive[i], as defined in Equation 143. The value of num_ref_idx_active_minus1[i] shall be in the range of 0 to 14, inclusive. If i is equal to 0 or 1, when the current slice is a B slice, if num_ref_idx_active_override_flag is equal to 1 and num_ref_idx_active_minus1[i] is not present, then it is inferred that num_ref_idx_active_minus1[i] is not 0. When the current slice is a P slice, if num_ref_idx_active_override_flag is equal to 1 and num_ref_idx_active_minus1[0] is not present, it is inferred that num_ref_idx_active_minus1[0] is not 0. The variable NumRefIdxActive[i] is derived as follows: for(i=0;i<2;i++) if(slice_type ==B|| (slice_type ==P && i==0)){ if(num_ref_idx_active_override_flag) NumRefIdxActive[i]=num_ref_idx_active_minus1[i]+1 (143) else { if(num_ref_entries[i][RplsIdx[i]]>=num_ref_idx_default_active_minus1[i]+1) NumRefIdxActive[i]=num_ref_idx_default_active_minus1[i]+1 else NumRefIdxActive[i]=num_ref_entries[i][RplsIdx[i]] } }else / *slice_type==I||(slice_type==P&&i==1)* / NumRefIdxActive[i]=0 } The value of NumRefIdxActive[i]-1 specifies the maximum reference index of reference picture list i that can be used to decode a slice. If the value of NumRefIdxActive[i] is equal to 0, the slice can be decoded without using any reference index of reference picture list i. When the current slice is a P slice, the value of NumRefIdxActive[0] shall be greater than 0. If the current slice is a B slice, then both NumRefIdxActive[0] and NumRefIdxActive[1] shall be greater than 0. cabac_init_flag specifies how to determine which initialization table is used during the context variable initialization process. If cabac_init_flag is not present, it is inferred to be equal to 0. slice_collocated_from_l0_flag equal to 1 specifies that the co-located pictures used for temporal motion vector prediction are derived from reference picture list 0. slice_collocated_from_l0_flag equal to 0 specifies that the co-located pictures used for temporal motion vector prediction are derived from reference picture list 1. If slice_type is B or P, ph_temporal_mvp_enabled_flag is equal to 1, and slice_collocated_from_l0_flag is not present, the following applies: - if rpl_info_in_ph_flag is equal to 1, slice_collocated_from_l0_flag is inferred to be equal to ph_collocated_from_l0_flag. - Otherwise (if rpl_info_in_ph_flag is equal to 0 and slice_type is equal to P), the value of slice_collocated_from_l0_flag is inferred to be equal to 1. slice_collocated_ref_idx specifies the reference index of the co-located picture used for temporal motion vector prediction. slice_type is P or slice_type is equal to B, slice_ If collocated_from_l0_flag is equal to 1, slice_collocated_ref_idx refers to an entry in reference picture list 0, and the numeric value of slice_collocated_ref_idx shall be in the range of 0 to NumRefIdxActive[0]-1. If slice_type is equal to B and slice_collocated_from_l0_flag is equal to 0, the value of slice_collocated_ref_idx refers to an entry in reference picture list 1, and slice_collocated_ref_idx shall be in the range of 0 to NumRefIdxActive[1]-1. If slice_collocated_ref_idx is not present, the following applies: - if rpl_info_in_ph_flag is equal to 1, the value of slice_collocated_ref_idx is inferred to be equal to ph_collocated_ref_idx. - Otherwise (rpl_info_in_ph_flag is equal to 0), the value of slice_collocated_ref_idx is inferred to be equal to 0. It is a bitstream compatibility requirement that the picture referenced by slice_collocated_ref_idx shall be the same for all slices of a coded picture. It is a bitstream conformance requirement that the values ​​of pic_width_in_luma_samples and pic_height_in_luma_samples of the reference picture referenced by slice_collocated_ref_idx shall be the same as pic_width_in_luma_samples and pic_height_in_luma_samples of the current picture, respectively, and RprConstraintsActive[slice_collocated_from_l0_flag?0:1][slice_collocated_ref_idx] shall be equal to 0. slice_qp_delta is the Qp delta used for coding blocks in a slice. Y Specifies the initial value of CuQpDeltaVal at the coding unit layer until it is modified by the value of CuQpDeltaVal at the coding unit layer. If qp_delta_info_in_ph_flag is equal to 0, the Qp Y Quantization parameter SliceQp Y The initial value of is derived as follows. SliceQp Y =26+init_qp_minus26+slice_qp_delta (144) SliceQp YThe value is in the range of -QpBdOffset to 63. When any of the following conditions is true: - the value of wp_info_in_ph_flag is equal to 1, pps_weighted_pred_flag is equal to 1, and slice_type is P. - the value of wp_info_in_ph_flag is equal to 1, pps_weighted_bipred_flag is equal to 1, and slice_type is B. The following applies: - The value of NumRefIdxActive[0] shall be less than or equal to the value of NumWeightsL0. - For each reference picture index RefPicList[0][i], i in the range from 0 to NumRefIdxActive[0]-1, the luma weight, Cb weight, and Cr weight applied to the reference picture index are applied in LumaWeightL0[i], ChromaWeightL0[0][i], and ChromaWeightL0[1][i], respectively. If wp_info_in_ph_flag is equal to 1, pps_weighted_bipred_flag is equal to 1, and slice_type is equal to B, the following applies: - The value of NumRefIdxActive[1] shall be less than or equal to the value of NumWeightsL1. - For each reference picture index RefPicList[1][i], i in the range from 0 to NumRefIdxActive[1] - 1, the luma weight, Cb weight, and Cr weight applied to the reference picture index are applied in LumaWeightL1[i], ChromaWeightL1[0][i], and ChromaWeightL1[1][i], respectively. slice_cb_qp_offset is Qp' cbSpecifies the difference to be added to the value of pps_cb_qp_offset when determining the value of the quantization parameter. The value of slice_cb_qp_offset shall be between -12 and +12 inclusive. If slice_cb_qp_offset is not present, it is inferred to be equal to 0. The value of pps_cb_qp_offset+slice_cb_qp_offset shall be in the range of -12 to +12. slice_cr_qp_offset is Qp' cr Specifies the difference to be added to the value of pps_cr_qp_offset when determining the value of the quantization parameter. The value of slice_cr_qp_offset shall be between -12 and +12 inclusive. If slice_cr_qp_offset is not present, it is inferred to be equal to 0. The value of pps_cr_qp_offset+slice_cr_qp_offset shall be in the range of -12 to +12. slice_joint_cbcr_qp_offset is Qp' CbCr This specifies the difference to be added to the value of pps_joint_cbcr_qp_offset when determining the value of slice_joint_cbcr_qp_offset. The value of slice_joint_cbcr_qp_offset shall be between -12 and +12 inclusive. If slice_joint_cbcr_qp_offset is not present, it is inferred to be equal to 0. The value of pps_joint_cbcr_qp_offset_value+slice_joint_cbcr_qp_offset shall be between -12 and +12 inclusive. cu_chroma_qp_offset_enabled_flag equal to 1 specifies that cu_chroma_qp_offset_flag may be present in transform units and palette coding syntaxes. cu_chroma_qp_offset_enabled_flag equal to 0 specifies that cu_chroma_qp_offset_flag is not present in transform units or palette coding syntaxes. If not present, the value of cu_chroma_qp_offset_enabled_flag is inferred to be equal to 0. slice_sao_luma_flag equal to 1 specifies that SAO is enabled for the luma component in the current slice. slice_sao_luma_flag equal to 0 specifies that SAO is disabled for the luma component in the current slice. If slice_sao_luma_flag is not present, it is inferred to be equal to ph_sao_luma_enabled_flag. slice_sao_chroma_flag equal to 1 specifies that SAO is enabled for chroma components in the current slice. slice_sao_chroma_flag equal to 0 specifies that SAO is disabled for chroma components in the current slice. If slice_sao_chroma_flag is not present, it is inferred to be equal to ph_sao_chroma_enabled_flag. slice_deblocking_filter_override_flag equal to 1 specifies that deblocking parameters are present in the slice header. slice_deblocking_filter_override_flag equal to 0 specifies that deblocking parameters are not present in the slice header. If not present, the value of slice_deblocking_filter_override_flag is inferred to be equal to ph_deblocking_filter_override_flag. slice_deblocking_filter_disabled_flag equal to 1 specifies that a deblocking filter operation is not applied to the current slice. slice_deblocking_filter_disabled_flag equal to 0 specifies that a deblocking filter operation is applied to the current slice. If slice_deblocking_filter_disabled_flag is not present, it is inferred to be equal to ph_deblocking_filter_disabled_flag. slice_beta_offset_div2 and slice_tc_offset_div2 specify the β and tC deblocking parameter offsets (divided by 2) applied to the luma component of the current slice. The values ​​of slice_cr_beta_offset_div2 and slice_tc_offset_div2 shall both be in the range of -12 to 12. If not present, the values ​​of slice_beta_offset_div2 and slice_tc_offset_div2 are inferred to be equal to ph_beta_offset_div2 and ph_tc_offset_div2, respectively. slice_cb_beta_offset_div2 and slice_cb_tc_offset_div2 specify the beta and tC deblocking parameter offsets (divided by 2) applied to the Cb component of the current slice. The values ​​of slice_cb_beta_offset_div2 and slice_cb_tc_offset_div2 shall both be in the range of -12 to 12. If not present, the values ​​of slice_cb_beta_offset_div2 and slice_cb_tc_offset_div2 are inferred to be equal to ph_cb_beta_offset_div2 and ph_cb_tc_offset_div2, respectively. slice_cb_beta_offset_div2 and slice_cb_tc_offset_div2 specify the beta and tC deblocking parameter offsets (divided by 2) applied to the Cr component of the current slice. The values ​​of slice_cr_beta_offset_div2 and slice_cr_tc_offset_div2 shall both be in the range of -12 to 12. If not present, the values ​​of slice_cr_beta_offset_div2 and slice_cr_tc_offset_div2 are inferred to be equal to ph_cr_beta_offset_div2 and ph_cr_tc_offset_div2, respectively. slice_ts_residual_coding_disabled_flag equal to 1 specifies that the residual_coding() syntax structure is used to parse the residual samples of the transform skip block for the current slice. slice_ts_residual_coding_disabled_flag equal to 0 specifies that the residual_ts_coding() syntax structure is used to parse the residual samples of the transform skip block for the current slice. If slice_ts_residual_coding_disabled_flag is not present, it is inferred to be equal to 0. slice_lmcs_enabled_flag equal to 1 specifies that luma mapping with chroma scaling pins are enabled for the current slice. slice_lmcs_enabled_flag equal to 0 specifies that luma mapping with chroma scaling is not enabled for the current slice. If slice_lmcs_enabled_flag is not present, it is inferred to be equal to 0. slice_scaling_list_present_flag equal to 1 specifies that the scaling list data used for the current slice is derived based on the scaling list data contained in the reference scaling list APS with aps_params_type equal to SCALING_APS and adaptation_parameter_set_id equal to ph_scaling_list_aps_id. slice_scaling_list_present_flag equal to 0 specifies that the scaling list data used for the current picture is the derived default scaling list data as specified in clause 7.4.3.21. If not present, the value of slice_scaling_list_present_flag is inferred to be 0. The variable NumEntryPoints, which defines the number of entry points in the current slice, is derived as follows: NumEntryPoints=0 for(i=1;i <NumCtusInCurrSlice;i++){ ctbAddrX=CtbAddrInCurrSlice[i]%PicWidthInCtbsY ctbAddrY=CtbAddrInCurrSlice[i] / PicWidthInCtbsY (145) prevCtbAddrX=CtbAddrInCurrSlice[i-1]%PicWidthInCtbsY prevCtbAddrY=CtbAddrInCurrSlice[i-1] / PicWidthInCtbsY if(CtbToTileRowBd[ctbAddrY]!=CtbToTileRowBd[prevCtbAddrY]|| CtbToTileColBd[ctbAddrX]!=CtbToTileColBd[prevCtbAddrX]|| (ctbAddrY!=prevCtbAddrY&&sps_wpp_entry_point_offsets_present_flag)) NumEntryPoints++ } offset_len_minus1+1 specifies the length, in bits, of the entry_point_offset_minus1[i] syntax element. The value of offset_len_minus1 shall be in the range 0 to 31. entry_point_offset_minus1[i]+1 specifies the offset of the ith entry point in bytes, expressed as offset_len_minus1 plus 1 bit. The slice data following the slice header consists of NumEntryPoints+1 subsets, with subset index values ​​in the range from 0 to NumEntryPoints. The first byte of slice data is byte 0. If present, an emulation prevention byte that appears in the slice data portion of a coded slice NAL unit is counted as part of the slice data for the purposes of subset identification. Subset 0 consists of bytes 0 to entry_point_offset_minus1[0] (inclusive) of the coded slice data, and subset k (ranging from 1 to NumEntryPoints-1 (inclusive)) consists of bytes firstByte[k] to lastByte[k] (inclusive) of the coded slice data, where firstByte[k] and lastByte[k] are defined below.

number

[0035] 3.4 Interblock Decoding Process - Fractional Sample Interpolation Process In the recent VVC draft text, the decoding process for fractional sample interpolation is as follows: The inputs to this process are: - a luminance position (xSb, ySb) that defines the top-left sample of the current coding sub-block relative to the top-left luminance sample of the current picture, a variable sbWidth that defines the width of the current coding sub-block, - the variable sbHeight, which defines the height of the current coding sub-block, - Motion vector offset mvOffset - Fine-tune motion vector refMvLX - The selected reference picture sample array refPicLX. - 1 / 2 sample interpolation filter index hpelIfIdx, - Decoder side motion vector fine adjustment flag dmvrFlag. - Bidirectional optical flow flag bdofFlag. - The variable refPicIsScaled, which indicates whether the selected reference picture requires scaling. - A variable cIdx that specifies the color component index of the current block. - A list of two scaling ratios, horizontal and vertical, scalingRatio. The output of this process is: - predSamplesLX, a (sbWidth+brdExtSize)x(sbHeight+brdExtSize) array of predicted sample values. The boundary extension size brdExtSize of the prediction block is derived as follows: brdExtSize=(bdofFlag||(inter_affine_flag[xSb][ySb]&&!ph_disable_prof_flag))?2:0 (934) The variable refWraparoundEnabledFlag is set equal to (pps_ref_wraparound_enabled_flag && !refPicIsScaled). The variable fRefLeftOffset is set equal to ((SubWidthC*scaling_win_left_offset)<<10), where scaling_win_left_offset is the scaling_win_left_offset relative to the reference picture. The variable fRefTopOffset is set equal to ((SubWidthC*scaling_win_top_offset)<<10), where scaling_win_top_offset is the scaling_win_top_offset relative to the reference picture. The (sbWidth+brdExtSize)×(sbHeight+brdExtSize) array predSamplesLX of predicted sample values ​​is derived as follows: - The motion vector mvLX is set equal to (refMvLX-mvOffset). - If cIdx is equal to 0, the following applies: - (xInt L ,yInt L ) be the luminance position given in full sample units, and (xFrac L ,yFrac L ) be the offset in 1 / 16 sample units. These variables are used in this section only to specify fractional sample positions within the reference sample array refPicLX. - Bounding block for reference sample padding (xSbInt L ,ySbInt L ) is set equal to (xSb + (mvLX[0]>4), ySb + (mvLX[1]>>4). - For each luminance sample position (x L =0..sbWidth-1+brdExtSize,y L For each sbHeight-1+brdExtSize), the corresponding predicted luminance sample value predSamplesLX[x L ][y L ] is derived as follows: - (refxSbL ,refySb L ) and (refx L ,refy L ) is the luminance position indicated by the motion vector (refMvLX[0], refMvLX[1]) given in 1 / 16 sample units. L , refx L , refySb L , and refy L is derived as follows: refxSb L =(((xSb-(SubWidthC*scaling_win_left_offset))<<4)+ refMvLX[0])*scalingRatio[0] (935) refx L =((Sign(refxSb L )*((Abs(refxSb L )+128)>>8)+ x L *((scalingRatio[0]+8)>>4))+fRefLeftOffset+32)>>6 (936) refySb L =(((ySb-(SubWidthC*scaling_win_top_offset))<<4)+ refMvLX[1])*scalingRatio[1] (937) Refy L =((Sign(refySb L )*((Abs(refySb L )+128)>>8)+yL* ((scalingRatio[1]+8)>>4))+fRefTopOffset+32)>>6 (938) - Variable xInt L , yInt L , xFrac L and yFrac L is derived as follows: xInt L =refx L >>4 (939) yIntL =refy L >>4 (940) xFrac L =refx L &15 (941) yFrac L =refy L &15 (942) - Predicted luminance sample value predSamplesLX[x L ][y L ] is derived as follows: [ka] -x L is equal to 0 -x L is equal to sbWidth+1 -y L is equal to 0 -y L is equal to sbHeight+1 - or (xIntL-(brdExtSize>0?1:0), yIntL-(brdExtSize>0?1:0)), (xFracL, yFracL), (xSbInt L ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight, dmvrFlag, refWraparoundEnabledFlag, scalingRatio[0], scalingRatio[1], and (xSb, ySb) are used as inputs to derive the predicted luma sample values ​​predSamplesLX[xL][yL] by invoking the luma sample 8-tap interpolation filtering process specified in Section 8.5.6.3.2. - Otherwise (cIdx is not equal to 0), the following applies: - Let (xIntC,yIntC) be the chroma position given in full sample units, and (xFracC,yFracC) be the offset in 1 / 32 sample units. These variables are used in this section only to specify a general fractional sample position within the reference sample array refPicLX. - The top-left coordinate of the bounding block (xSbIntC, ySbIntC) for the reference sample padding is set equal to ((xSb / SubWidthC)+(mvLX[0]>>5), (ySb / SubHeightC)+(mvLX[1]>>5)). For each chroma sample position (xC=0..sbWidth-1, yC=0..sbHeight-1) in the predicted chroma sample array predSamplesLX, the corresponding predicted luma sample value predSamplesLX[xC][yC] is derived as follows: - (refxSb C , refySb C ) and (refx C ,refy C ) is the chroma position indicated by the motion vector (refMvLX[0], refMvLX[1]) calculated in 1 / 32 sample units. C , refySb C , refx C and refy C is derived as follows: addX=sps_chroma_horizontal_collocated_flag?0:8*(scalingRatio[0]-(1<<14)) (943) addY=sps_chroma_vertical_collocated_flag?0:8*(scalingRatio[1]-(1<<14)) (944) refxSb C =(((xSb-(SubWidthC*scaling_win_left_offset)) / SubWidthC<<5)+ refMvLX[0])*scalingRatio[0]+addX (945) refx C =((Sign(refxSb C )*((Abs(refxSb C )+256)>>9) +xC*((scalingRatio[0]+8)>>4))+fRefLeftOffset / SubWidthC+16)>>5 (946) refySb C =(((ySb-(SubWidthC*scaling_win_top_offset)) / SubHeightC<<5)+ refMvLX[1])*scalingRatio[1]+addY (947) Refy C =((Sign(refySb C )*((Abs(refySb C )+256)>>9) +yC*((scalingRatio[1]+8)>>4))+fRefTopOffset / SubHeightC+16)>>5 (948) - Variable xInt C , yInt C , xFrac C , and yFrac C is derived as follows: xInt C =refx C >>5 (949) yInt C =refy C >>5 (950) xFrac C =refx C &31 (951) yFrac C =refy C &31 (952) - The predicted sample values ​​predSamplesLX[xC][yC] are derived by invoking the procedure specified in 8.5.6.3.4 with (xIntC,yIntC), (xFracC,yFracC), (xSbIntC,ySbIntC), sbWidth, sbHeight, refPicLX, dmvrFlag, refWraparoundEnabledFlag, scalingRatio[0], and scalingRatio[1]. NOTE – Unlike the process specified in 8.4.5.2.13, this process uses both sps_chroma_vertical_collocated_flag and sps_chroma_horizontal_collocated_flag.

[0036] 4. Technical Problem Solved by the Technical Solution and the Embodiments Existing designs for deblocking, scaling, and PROF have the following problems. 1) Currently, there are some problems in the design logic of deblocking (DB) control in PPS, PH, and SH syntax elements. a. First, check the SH syntax element slice_deblocking_filter_disabled_flag according to the current semantics of the PPS syntax element pps_deblocking_filter_disabled_flag used to specify whether to apply a deblocking filter to a slice that references the PPS. However, in addition to slice_deblocking_filter_disabled_flag, the PH syntax element ph_deblocking_filter_disabled_flag should also be checked together with pps_deblocking_filter_disabled_flag. Therefore, the current semantics of pps_deblocking_filter_disabled_flag is incorrect. b. Second, according to the current draft text, if the SH syntax element slice_deblocking_filter_override_flag is not present, it is inferred to be equal to ph_deblocking_filter_override_flag. However, besides the implicit or explicit signaling in the PPS, the deblocking parameters can only be signaled in either PH or SH according to dbf_info_in_ph_flag, but not both. So, it is intended to allow the override deblocking filter parameters in PH to be signaled when dbf_info_in_ph_flag is true. In this case, if the PH override flag is true and the SH override flag is not signaled but is inferred to be equal to the PH override flag, an additional deblocking filter parameter is still signaled in SH, which contradicts the intention. c. Third, according to the current draft text, if the PPS syntax element deblocking_filter_override_enabled_flag is equal to 1 while pps_deblocking_filter_disabled_flag is equal to 1, then ph_deblocking_filter_disabled_flag or slice_deblocking_filter_disabled_flag may be explicitly signaled as also being equal to 1. However, in such a case, it means that deblocking is disabled in the PPS and it is to be overridden, but the override process does not change anything (e.g. deblocking remains disabled in the PH / SH) and wastes bits for signaling. d. Fourth, the current design logic for deblocking allows the possibility that deblocking can be enabled in PH / SH even if deblocking is disabled in PPS. Such design logic is quite different from the design logic of most other coding tools such as ALF, SAO, LMCS, TMVP, WP, etc. e. The PPS DB disabled flag (i.e., pps_deblocking_filter_disabled_flag) is signaled only when deblocking_filter_control_present_flag is equal to 1, and if the flag is not present, it is inferred to be equal to 0, i.e., the intention is to enable DB by default. The two syntax elements (i.e., PPS DB disabled flag and deblocking_filter_control_present_flag) are somewhat redundant. A better design is needed. 2) According to the recent VVC draft text, the size of the prediction block generated for PROF depends on whether it is affine AMVP mode or affine MERGE mode. If the width and height of the subblock of the affine coded block are sbWidthand sbHeight, in the current text, according to the condition "inter_affine_flag[xSb][ySb]&&!ph_disable_prof_flag", when PROF is applied to an affine AMVP block, a prediction block containing extended samples such as (sbWidth+2)x(sbHeight+2) is used for PROF, but when PROF is applied to an affine MERGE block, a prediction block of sbWidthx sbHeight is used for PROF. Such a design causes different processing mechanisms between PROF with affine AMVP and PROF with affine MERGE. Also, an 8-tap interpolation filter is used to generate intra prediction samples within a sub-block of PROF, and integer samples other than the 8-tap filter are used to generate extended prediction samples outside a sub-block of PROF. However, according to the current text, there are no extended samples for PROF with affine MERGE, which causes a mismatch between PROF with affine AMVP and PROF with affine MERGE. 3) Currently, picture-level or slice-level luma qp delta is always signaled in either PH or SH, but never both, while slice-level chroma qp offset is selectably signaled in SH, and there is no PH signaling for picture-level chroma qp offset. Such a design may lack consistency / efficiency / flexibility. 4) In recent VVC draft text, the definition of the range of values ​​allowed for PH syntax elements related to delta QP signaling (e.g., ph_cu_qp_delta_subdiv_intra_slice, ph_cu_qp_delta_subdiv_inter_slice, ph_cu_chroma_qp_offset_subdiv_intra_slice, and ph_cu_chroma_qp_offset_subdiv_inter_slice) is not precise.

[0037] 5. List of Solutions and Examples In order to solve the above problems and other problems, the following methods are disclosed. These items are examples for explaining general concepts and should not be interpreted in a narrow sense. Furthermore, these items may be applied individually or may be combined in any manner.

[0038] In the following description, DBF parameters may include DBF on / off control parameters and DBF filter parameters (eg, beta / Tc offset indications such as pps_beta_offset_div2).

[0039] In the following description, an SH may be associated with one PH, i.e., an SH is associated with one slice in a picture associated with the PH. An SH may be associated with one PPS, i.e., an SH is associated with one slice in a picture associated with the PPS. A PH may be associated with a PPS, i.e., a PH is associated with a picture associated with the PPS.

[0040] In the following description, an SPS may be associated with a PPS, i.e., a PPS may refer to an SPS. 1. Regarding the design of deblocking control in PPS, PH and SH to solve the first problem, the following approach is disclosed, for example, as the first set of embodiments. In one example, whether a deblocking filter operation is applied to a slice that references a PPS may depend on a deblocking on / off flag (eg, ph_deblocking_filter_disabled_flag) of the associated PH. i. For example, whether to apply a deblocking filter operation to a slice that references a PPS may depend on whether deblocking is disabled in the PPS (e.g., pps_deblocking_filter_disabled_flag is equal to 1), and whether deblocking is disabled at the picture level (e.g., ph_deblocking_filter_disabled_flag is equal to 1), and whether deblocking is disabled at the slice level (e.g., slice_deblocking_filter_disabled_flag is equal to 1). ii. Alternatively, whether to apply the deblocking filter operation to a slice that references a PPS may depend on whether deblocking is disabled in the PPS (e.g., pps_deblocking_filter_disabled_flag is equal to 1) and whether deblocking overrides are disabled at the picture level and slice level (e.g., slice_deblocking_filter_disabled_flag is equal to 0). iii. Alternatively, whether to apply a deblocking filter operation to a slice that references a PPS may depend solely on whether deblocking is disabled in the PPS (eg, pps_deblocking_filter_disabled_flag is equal to 1). b. Furthermore, if slice_deblocking_filter_override_flag is not present, the value of slice_deblocking_filter_override_flag may be independent of ph_deblocking_filter_override_flag (it may be assumed to be a constant value, such as 0). c. Additionally, alternatively, whether the PH syntax element ph_deblocking_filter_disabled_flag and / or the SH syntax element slice_deblocking_filter_disabled_flag are explicitly signaled or implicitly inferred may depend on the value of a PPS deblocking on / off flag, such as pps_deblocking_filter_disabled_flag. d. If DBF is disabled at a first level (e.g., PPS), it is required that enabling DBF at lower levels (e.g., PH / SH) is not allowed. i. For example, the presence of picture / slice level DBF on / off control parameters in the PH / SH may depend directly on the value of the DBF on / off flag signaled in the PPS (e.g., pps_deblocking_filter_disabled_flag) in addition to the value of the DBF override flag signaled in the PH / SH. 1) For example, if the PPS DBF on / off control parameter specifies that deblocking is disabled for the slice that references the PPS (pps_deblocking_filter_disabled_flag is equal to 1), then the PH / SH DBF on / off control parameter may not be signaled. ii. Furthermore, the presence of DBF on / off control parameters in the PPS / PH / SH may be directly coordinated based on a DBF global control flag (e.g., deblocking_filter_control_present_flag in the PPS) that specifies the presence of both DBF on / off control parameters and DBF filter parameters in the PPS, PH, and SH. 1) For example, if the DBF global control flag specifies that neither DBF on / off configuration parameters nor DBF filter parameters are signaled (deblocking_filter_control_present_flag is equal to 0), then the PPS / PH / SH DBF on / off control parameters may not be signaled. iii. Furthermore, if the PPS deblocking on / off flag is not present, it can be inferred to be equal to a constant value, such as 0 or 1. iv. Furthermore, if the PH deblocking on / off flag is not present, it can be inferred to be equal to the value of the PPS deblocking on / off flag. v. Additionally, if the PH deblocking on / off flag is not present, it can be inferred to be equal to the value of the PPS / PH deblocking on / off flag. e. If DBF is enabled at a first level (eg, PH), it is required that DBF can be disabled at a lower level (eg, SH). i. For example, for multiple slices in a picture, it is allowed that some slices use a deblocking filter and some slices do not use a deblocking filter. ii. For example, the signaling of the DBF on / off control flag in the SH may depend on when the PH DBF on / off control flag is. 1) For example, when DBF is enabled for the current picture, a slice-level DBF on / off control flag may be further signaled to specify whether the current slice is using a deblocking filter. f. The signaling of the PPS syntax element "dbf_info_in_ph_flag" that specifies whether DBF on / off control parameters and / or DBF filter parameters are present in the PH or SH may be independent of other syntax elements such as deblocking_filter_override_enabled_flag. i. Additionally, alternatively, signaling of picture / slice level DBF on / off flag in PH / SH may be conditioned directly based on dbf_info_in_ph_flag and / or pps_deblocking_filter_enabled_flag other than the PH / SH DBF override flag. g. The DBF override flag in PPS / PH / SH is required to be used only to override DBF filter parameters other than the DBF on / off control parameters. i. For example, signal the DBF on / off control flag first, then signal the DBF override flag conditionally based on the DBF on / off control flag at the same level (eg, PPS / PH / SH). 1) For example, picture / slice level DBF on / off control parameters may be signaled in the PH / SH regardless of whether the PH / SH DBF override flag is equal to true. 2) For example, picture / slice level DBF on / off control parameters may be signaled in PH / SH regardless of whether the PPS DBF override flag is equal to true or not. 3) For example, the DBF override flag is conditionally signaled based on the DBF on / off control flag at the same level (eg, PPS / PH / SH). For example, the signaling of a PPS deblocking override enabled flag (eg, deblocking_filter_override_enabled_flag) may depend on whether deblocking is enabled in the PPS (eg, pps_deblocking_filter_disabled_flag in the PPS is equal to 0). i. For example, if deblocking is disabled in the PPS, then the PPS syntax element deblocking_filter_override_enabled_flag is not signaled. b. For example, the signaling of a PH deblocking override flag (eg, ph_deblocking_filter_override_flag) may depend on whether deblocking is enabled in the PH (eg, ph_deblocking_filter_disabled_flag is equal to 0). i. For example, if deblocking is disabled in the PH, then the PH syntax element ph_deblocking_filter_override_flag is not signaled. c. For example, the signaling of the SH deblocking override flag (eg, slice_deblocking_filter_override_flag) may depend on whether deblocking is enabled in the SH (eg, slice_deblocking_filter_disabled_flag is equal to 0). i. For example, if deblocking is disabled in SH, then the SH syntax element slice_deblocking_filter_override_flag is not signaled. d. Additionally, if the PPS / PH / SH deblocking override flags are not present, they may be inferred to be equal to a constant value (e.g., 0). 4) For example, signaling of DBF filter parameters may be conditioned directly on DBF override flags other than the DBF on / off control flag. For example, the presence of DBF filter parameters in the PH (e.g., ph_beta_offset_div2, ph_tc_offset_div2, ph_cb_beta_offset_div2, ph_cb_tc_offset_div2, ph_cr_beta_offset_div2, ph_cr_tc_offset_div2) may be directly conditioned based on a DBF override flag in the PH (e.g., ph_deblocking_filter_override_flag) other than the DBF on / off flag in the PH (e.g., ph_deblocking_filter_disabled_flag). b. For example, the presence of DBF filter parameters in SH (e.g., slice_beta_offset_div2, slice_tc_offset_div2, slice_cb_beta_offset_div2, slice_cb_tc_offset_div2, slice_cr_beta_offset_div2, slice_cr_tc_offset_div2) may be directly conditioned based on a DBF override flag in SH (e.g., slice_deblocking_filter_override_flag) other than a DBF on / off flag in SH (e.g., slice_deblocking_filter_disabled_flag). h. It is required that the on / off control of DBFs in PPS / PH / SH may depend on the "enable" flag of the DBF other than the "disable" flag of the DBF. i. For example, a DBF enable flag (eg, called pps_deblocking_filter_enabled_flag) may be signaled in the PPS to specify whether deblocking is enabled for the slice that references the PPS. ii. For example, the PPS DBF enable flag may be signaled independently of other syntax elements such as the DBF global control flag (eg, deblocking_filter_control_present_flag in the PPS). iii. For example, if DBF is disabled at a higher level (e.g., PPS or PH), then signaling of the DBF enable flag at the lower level (e.g., PH and / or SH) is absent and is inferred to be equal to the value of the on / off control flag at the higher level (e.g., PPS / PH). iv. For example, the DBF global control flag (eg, deblocking_filter_control_present_flag in the PPS) can only be used to control the presence of DBF override flags in the PPS / PH / SH and DBF filter parameters in the PPS / PH / SH. 1) For example, the DBF global control flag (eg, deblocking_filter_control_present_flag in the PPS) is not used to control the presence of the DBF on / off control parameter in the PPS / PH / SH. 2) For example, the DBF global control flag is signaled only if DBF is enabled in the PPS (eg, pps_deblocking_filter_enabled_flag is equal to 1). For example, if DBF is disabled in the PPS (eg, pps_deblocking_filter_enabled_flag is equal to 0), then the DBF global control flag is not signaled. b. Additionally, if deblocking is disabled in the PPS, then deblocking_filter_control_present_flag is inferred to be equal to 0. 3) For example, the signaling of the DBF override enable / disable flag in the PPS (eg, deblocking_filter_override_enabled_flag in the PPS) may be adjusted directly based on a DBF global control flag other than the DBF on / off flag in the PPS. 4) Signaling of PPS DBF parameters, such as beta and tc values, may be conditioned directly on DBF global control flags other than the DBF on / off flag in the PPS. i. It is desired to allow either DBF on / off control parameters or DBF filter parameters to be overrides, but not both. i. In one example, an override mechanism may be allowed in the PPS / PH / SH. ii. In one example, if only the DBF on / off control parameters can be overridden at different levels (e.g., PPS / PH / SH), the following may further apply: 1) DBF filter parameters may be signaled only at the first level (e.g., PPS), and when the DBF is enabled by a smaller video unit, all smaller video units (e.g., pictures / slices) are subordinate to the parameters associated with the first level. iii. In one example, if only DBF filter parameters can be overridden at different levels (e.g., PPS / PH / SH), the following may further apply: 1) The DBF on / off control parameters may be signaled only at the first level (e.g., PPS), and when DBF is enabled by smaller video units, all smaller video units (e.g., pictures / slices) are subordinate to the parameters associated with the first level. j. If DBF is disabled at a higher level (eg, PPS), it is required to disable overriding the DBF on / off control parameters in the smaller picture units (eg, PH / SH). i. Additionally, alternatively, the signaling of the DBF on / off control parameter at a smaller picture unit level (e.g., PH / SH) may be subject to a condition check that the DBF on / off control parameter at a higher level (e.g., PPS) is on. 1) Additionally, alternatively, if not present at the smaller video unit level, the DBF is inferred to be disabled or enabled or equal to the on / off state at the higher video unit level. In k.PPS, the "deblocking_filter_control_present_flag" may be removed, and the first syntax element indicating enabling / disabling of DBF may be directly signaled instead of the control by "deblocking_filter_control_present_flag". i. Alternatively, a second syntax element may be further signaled in accordance with the first syntax element corresponding to enabling the DBF, indicating whether to allow overriding of DBF filter parameters. 1) Additionally, alternatively, the DBF filter parameters may be signaled according to a second syntax element indicating that overriding is allowed. In l.PPS, the "deblocking_filter_control_present_flag" may be removed and instead of the control by "deblocking_filter_control_present_flag", the first syntax element indicating whether the DBF parameter override is allowed may be directly signaled. i. Additionally, alternatively, a second syntax element indicating enabling / disabling DBF may be further signaled according to a corresponding first syntax element allowing override. 1) Additionally, alternatively, the DBF filter parameters may be signaled according to a second syntax element indicating that the DBF is enabled. Instead of m.PPS, a syntax element (eg, dbf_info_in_ph_flag) may be signaled in PH indicating whether DBF on / off control flag and / or DBF parameters are signaled in PH or SH. n. In one example, DBF on / off control flags and / or DBF parameters may be signaled in both PH and SH. i. For example, DBF on / off control flags and / or DBF parameters signaled in SH may override parameters signaled in PH. o. It is required that DBF on / off control flag and / or DBF parameters may be signaled in the SPS. The DBF on / off control flag signaled in the i.SPS may be overridden by a DBF on / off control flag signaled in a lower level video unit such as PPS, PH or SH. ii. DBF parameters signaled in the SPS may be overridden by DBF parameters signaled in a lower level video unit such as PPS, PH or SH. p. For example, as in a first set of embodiments such as those in Section 6.1.4 herein, a syntax having a non-binary value (e.g., an indicator other than a flag) may be signaled at the video unit level (e.g., PPS / SPS) to specify the deblocking mode. In one example, an N-bit mode indicator may be signaled in the PPS to specify the deblocking filter mode. i. For example, N=2. ii. For example, a 2-bit mode indicator (e.g., called deblocking_filter_mode_idc) is added to the PPS, whose semantics are as follows: When deblocking_filter_mode_idc is equal to 0, it specifies that no deblocking filter is applied to all slices that reference the PPS. When deblocking_filter_mode_idc is equal to 1, it specifies that a deblocking filter is applied to all slices that reference the PPS, with zero-value deblocking parameter offsets for β and tC. When deblocking_filter_mode_idc is equal to 2, it specifies that a deblocking filter is applied to all slices that reference the PPS, with the deblocking parameter offsets for β and tC being explicitly signaled in the PPS. When deblocking_filter_mode_idc is equal to 3, it specifies that whether a deblocking filter is applied to slices that reference the PPS is controlled by parameters present in the slice header of the PH or slice. iii. Furthermore, the signaling of the DBF filter parameters in the PPS depends on the value of the mode index. For example, if the mode index meets a certain condition (e.g., greater than a certain value X, e.g., X=1), then the DBF filter parameters are signaled in the PPS. Otherwise, the PPS DBF filter parameters are inferred to be 0. iv. Furthermore, the signaling of the PPS syntax element "dbf_info_in_ph_flag", which specifies whether DBF on / off control parameters and / or DBF filter parameters are present in PH or SH, may depend on the value of the mode index. For example, if the mode indicator meets a certain condition (eg, equals a certain value Y, eg, Y=3), the PPS syntax element "dbf_info_in_ph_flag" is signaled. i. Furthermore, if the PPS syntax element "dbf_info_in_ph_flag" is not signaled, it is inferred to be equal to a value (eg, 0 or 1). v. Additionally, signaling of DBF on / off control parameters and / or DBF filter parameters in the PH or SH may depend on the value of the mode index. For example, if the mode index meets a certain condition (eg, equal to a certain value Y, eg, Y=3), a picture level DBF on / off control flag may be signaled in the PH. b. For example, if the mode index meets a certain condition (eg, equals a certain value Y, eg, Y=3), a slice-level DBF on / off control flag may be signaled at SH. q.DBF can be enabled at the pico / slice level and use 0 value beta / tc offsets for DBF parameters. i. In one example, one or more syntax elements (e.g., called explicit_default_deblocking_params_flag) may be signaled in the PPS and may specify whether the default DBF parameters have a zero-value beta / tc offset or an explicitly signaled beta / tc offset, and only in the latter case, the beta / tc offset is explicitly signaled. The PPS-determined DBF parameters and the default DBF parameters may or may not be overridden at the picture or slice level. ii. In one example, one or more syntax elements (e.g., called explicit_default_deblocking_params_flag) may be signaled at the picture unit level (e.g., SPS / PPS / PH / SH) to specify whether to use a zero value beta / tc offset or an explicitly signaled beta / tc offset, and only in the latter case may a beta / tc offset be explicitly signaled. 2. Regarding the processing mechanism of PROF with affine AMVP and PROF with affine MERGE to solve the second problem, for example, as the second embodiment, one or more of the following approaches are disclosed. a. For affine MERGE coded blocks, PROF can still be applied, and the prediction block size corresponding to M*N sub-blocks (or blocks) may be greater than M*N, i.e., expressed as (M+M0)*(N+N0), where M0 and N0 are not both equal to 0. i. In one example, M0 and N0 are set to 2. b. Whether to use enhanced samples to generate a PROF prediction block (sub-block) and / or how many enhanced samples to generate for a PROF prediction block (sub-block) may depend on a prediction fine-tuning utility flag, for example, cbProfFlagLX and X is 0 or 1. i. Whether for a PROF sub-block with affine AMVP or for a PROF sub-block with affine MERGE, a constant value of prediction block boundary extension size (e.g., extension width and / or extension height and / or number of extension samples) may be used. a) For example, for an M×N sub-block to which PROF is applied, if the width of the sub-block is M and the height of the sub-block is N, then a width of X (e.g., X=2) extended samples and a height of Y (e.g., Y=2) extended samples may be used to construct (M+X)×(N+Y) predicted samples for the PROF sub-block, whether the PROF sub-block is a PROF sub-block with affine AMVP or a PROF sub-block with affine MERGE. ii. Whether it is a PROF sub-block with affine AMVP or a PROF sub-block with affine MERGE, integer samples may be used to generate extension samples for PROF prediction. 3. Regarding PH and SH qp delta / offset signaling to solve the third problem, one or more of the following approaches are disclosed. In one example, a first syntax element may be signaled at a higher level compared to PH / SH (eg, SPS / PPS) to indicate whether luma / chroma delta QP signaling is enabled. i. In one example, the presence of luma qp delta in PH and / or SH may depend on the SPS / PPS luma qp delta present flag (eg, pps_pic_slice_luma_qp_delta_present_flag), such as in the third embodiment. a) For example, if the SPS / PPS brightness qp delta present flag specifies that neither PH brightness qp delta nor SH brightness qp delta is signaled, then brightness qp delta needs to be not signaled in PH and not signaled in SH. Alternatively, if the SPS / PPS luma qp delta present flag specifies that PH / SH luma qp delta is not present, then no luma qp delta needs to be signaled in PH / SH. b. Additionally, if the PH brightness qp delta is not present, it can be inferred to a value (eg, 0). c. Additionally, if the SH luminance qp delta is not present, it can be inferred to be a value (eg, 0 or equal to the PH luminance qp delta). b) Additionally, the presence of a PPS switch flag (eg, qp_delta_info_in_ph_flag) specifying whether the luma qp delta is signaled in PH or SH may depend on the SPS / PPS luma qp delta present flag above. a. For example, if the SPS / PPS brightness qp delta present flag specifies that neither PH brightness qp delta nor SH brightness qp delta is signaled, then the PPS switch flag needs to be not signaled in PH and not signaled in SH. i. Furthermore, if the PPS switch flag is not present, it can be inferred to be equal to a constant value (eg, 0). b. In one example, chroma (eg, Cb, Cr, joint CbCr) qp offsets may be signaled at a higher level compared to SH (eg, in PH, as in, for example, the third embodiment). i. For example, whether to signal chroma qp offset in PH or SH may depend on the PPS switch flag (eg, qp_offset_info_in_ph_flag). a) For example, if the PPS switch flag specifies that the chroma qp offset is signaled in PH, then the chroma qp offset is not signaled in SH. a. Alternatively, if the PPS switch flag specifies that the chroma qp offset is not signaled in PH, then the chroma qp offset may be signaled in SH. b. Additionally, if the PH saturation qp offset is not present, it can be inferred to a value (eg, 0). c. Additionally, if the SH chroma qp offset is not present, it can be inferred to be a value (eg, 0 or equal to the PH chroma qp offset). b) In one example, this flag is the same as the flag for controlling whether the luminance delta qp is signaled in PH or SH. ii. Additionally, alternatively, the presence of a chroma qp offset in PH and / or SH may depend on an SPS / PPS chroma qp offset present flag (eg, pps_pic_slice_chroma_qp_offset_present_flag). a) For example, if the SPS / PPS chroma qp offset present flag specifies not to signal either PH or SH chroma qp offset, then it is required that the chroma qp offset is not signaled in the PH and is not signaled in the SH. b) Additionally, the presence of a PPS switch flag (eg, qp_offset_info_in_ph_flag) specifying whether the chroma qp offset is signaled in PH or SH may depend on the SPS / PPS chroma qp offset present flag described above. If the SPS / PPS chroma qp offset present flag specifies not to signal either the PH or SH chroma qp offsets, then the PPS switch flag needs to be not signaled. i. Furthermore, if the PPS switch flag is not present, it can be inferred to be equal to a constant value (eg, 0). iii.qp_delta and chroma qp offset signaling may always be included in the same header. a) For example, if qp_delta is signaled in PH, then chroma qp offset should not be signaled in SH. b) For example, if qp_delta is signaled in SH, then the chroma qp offset should not be signaled in PH. 4. Regarding the scope of the PH syntax elements ph_cu_qp_delta_subdiv_intra_slice, ph_cu_qp_delta_subdiv_inter_slice, ph_cu_chroma_qp_offset_subdiv_intra_slice, and ph_cu_chroma_qp_offset_subdiv_inter_slice to solve the second problem, one or more of the following approaches are disclosed, for example, similar to the fourth embodiment. a. The range of maximum cbSubdiv values ​​for coding units in intra slices that convey cu_qp_delta_abs and cu_qp_delta_sign_flag (e.g., ph_cu_qp_delta_subdiv_intra_slice) may be independent of ph_max_mtt_hierarchy_depth_intra_slice_luma and may be, for example, within the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*(CtbLog2SizeY-MinCbLog2SizeY). i. Alternatively, it may be in the range from 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*min(ph_max_mtt_hierarchy_depth_intra_slice_luma, CtbLog2SizeY-MinCbLog2SizeY). b. The range of maximum cbSubdiv values ​​for coding units in intra slices that convey cu_chroma_qp_offset_flag (e.g., ph_cu_chroma_qp_offset_subdiv_intra_slice) may be independent of ph_max_mtt_hierarchy_depth_intra_slice_luma and may be, for example, within the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*(CtbLog2SizeY-MinCbLog2SizeY). i. Alternatively, it may be in the range from 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*min(ph_max_mtt_hierarchy_depth_intra_slice_luma, CtbLog2SizeY-MinCbLog2SizeY). c. The range of maximum cbSubdiv values ​​for coding units in inter slices that convey cu_qp_delta_abs and cu_qp_delta_sign_flag (e.g., ph_cu_qp_delta_subdiv_inter_slice) may be independent of ph_max_mtt_hierarchy_depth_inter_slice and may be, for example, within the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeInterY)+2*(CtbLog2SizeY-MinCbLog2SizeY). i. Alternatively, it may be in the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*min(ph_max_mtt_hierarchy_depth_inter_slice,CtbLog2SizeY-MinCbLog2SizeY). d. The range of maximum cbSubdiv values ​​for coding units in inter slices that convey cu_chroma_qp_offset_flag (e.g., ph_cu_chroma_qp_offset_subdiv_inter_slice) may be independent of ph_max_mtt_hierarchy_depth_inter_slice and may be, for example, within the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeInterY)+2*(CtbLog2SizeY-MinCbLog2SizeY). i. Alternatively, it may be in the range of 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*min(ph_max_mtt_hierarchy_depth_inter_slice,CtbLog2SizeY-MinCbLog2SizeY). 6. Embodiment Below are some example embodiments for some of the inventive aspects summarized in Chapter 5 above, as applicable to the VVC specification. The modified text is based on the latest VVC text in JVET-Q2001-vD. The most relevant parts that have been added or modified are highlighted in bold italics, and some parts that have been deleted are highlighted with opening and closing double brackets (e.g., [[]]) to indicate the deleted text between the double brackets. 6.1. First Example This is a collection of embodiments of item 1 (1.a to 1.o) summarized in Chapter 5 above. 6.1.1. Example of Item 1.a In one example, the semantics of pps_deblocking_filter_disabled_flag is changed to: [ka] 6.1.2. Example of implementation of item 1.b In one example, the semantics of slice_deblocking_filter_override_flag is changed as follows: slice_deblocking_filter_override_flag equal to 1 specifies that deblocking parameters are present in the slice header. slice_deblocking_filter_override_flag equal to 0 specifies that deblocking parameters are not present in the slice header. If not present, the value of slice_deblocking_filter_override_flag is inferred to be equal to [[ph_deblocking_filter_override_flag]]0. 6.1.3. Example of Item 1.c In one example, the syntax structure picture_header_structure() is modified as follows: [Table 21] ph_deblocking_filter_disabled_flag equal to 1 specifies that the deblocking filter operation is not applied to the slice associated with the PH. ph_deblocking_filter_disabled_flag equal to 0 specifies that the deblocking filter operation is not applied to the slice associated with the PH. [ka] And the syntax structure slice_header() is changed as follows: [Table 22] slice_deblocking_filter_override_flag equal to 1 specifies that deblocking parameters are present in the slice header. slice_deblocking_filter_override_flag equal to 0 specifies that deblocking parameters are not present in the slice header. If not present, the value of slice_deblocking_filter_override_flag is inferred to be equal to [[ph_deblocking_filter_override_flag]]0. slice_deblocking_filter_disabled_flag equal to 1 specifies that the deblocking filter operation is not applied to the current slice. slice_deblocking_filter_disabled_flag equal to 0 specifies that the deblocking filter operation is not applied to the current slice. [ka] 6.1.4. Example of item 1.p In one example, the syntax structure pic_parameter_set_rbsp() is modified as follows: [Table 23] ... [ka] [[deblocking_filter_control_present_flag equal to 1 specifies the presence of a deblocking filter control syntax element in the PPS. deblocking_filter_control_present_flag equal to 0 specifies the absence of a deblocking filter control syntax element in the PPS. ]] [[deblocking_filter_override_enabled_flag equal to 1 specifies the presence of ph_deblocking_filter_override_flag in the PH that references the PPS and specifies the presence of slice_deblocking_filter_override_flag in the slice header that references the PPS. deblocking_filter_override_enabled_flag equal to 0 specifies the absence of ph_deblocking_filter_override_flag in the PH that references the PPS and specifies the absence of slice_deblocking_filter_override_flag in the slice header that references the PPS. If not present, the value of deblocking_filter_override_enabled_flag is inferred to be equal to 0. ]] [[pps_deblocking_filter_disabled_flag equal to 1 specifies that the operation of the deblocking filter is not applied to slices that refer to PPSs for which slice_deblocking_filter_disabled_flag is not present. pps_deblocking_filter_disabled_flag equal to 0 specifies that the operation of the deblocking filter is applied to slices that refer to PPSs for which slice_deblocking_filter_disabled_flag is not present. If not present, the value of pps_deblocking_filter_disabled_flag is inferred to be equal to 0. ]] dbf_info_in_ph_flag equal to 1 specifies that deblocking filter information is present in the PH syntax structure and is not present in slice headers that reference PPSs that do not contain a PH syntax structure. dbf_info_in_ph_flag equal to 0 specifies that deblocking filter information is not present in the PH syntax structure and may be present in slice headers that reference PPSs that do not contain a PH syntax structure. [[If not present, the value of dbf_info_in_ph_flag is inferred to be equal to 0. ]] ... And the syntax structure picture_header_structure() is modified as follows: [Table 24] ... [ka] [[ph_deblocking_filter_disabled_flag equal to 1 specifies that a deblocking filter operation is not applied to the slice associated with PH. ph_deblocking_filter_disabled_flag equal to 0 specifies that a deblocking filter operation is applied to the slice associated with PH. If ph_deblocking_filter_disabled_flag is not present, it is inferred to be equal to pps_deblocking_filter_disabled_flag. ]] ... And the syntax structure slice_header() is changed as follows: [Table 25] ... [ka] [[slice_deblocking_filter_disabled_flag equal to 1 specifies that a deblocking filter operation is not applied to the current slice. slice_deblocking_filter_disabled_flag equal to 0 specifies that a deblocking filter operation is applied to the current slice. If slice_deblocking_filter_disabled_flag is not present, it is inferred to be equal to ph_deblocking_filter_disabled_flag. ]] ... Then, the decoding process of the deblocking filter is modified as follows. 8.8.3 Deblocking Filter Processing 8.8.3.1 General The deblocking filtering is applied to all coding sub-block edges and transform block edges of a picture, except for the following types of edges: - edges on the picture border, - edges that coincide with the boundary of the subpicture with subpicture index subpicIdx and loop_filter_across_subpic_enabled_flag[subpicIdx] are equal to 0. - If VirtualBoundariesPresentFlag is 1, the edges that meet the virtual boundaries of the picture - Edges that meet tile boundaries if loop_filter_across_tiles_enabled_flag is 0 - Edges that meet slice boundaries if loop_filter_across_slices_enabled_flag is 0 - If slice_deblocking_filter_used[[disabled]]_flag is [[1]]0, edges that match the top or left border of a slice - Edges in slices where slice_deblocking_filter_used[[disabled]]_flag is [[1]]0 - Edges that do not correspond to the 4x4 sample grid boundaries of the luminance component - Edges that do not correspond to the 8x8 sample grid boundaries of the chroma component - An edge in the luma component, if both sides of the edge have intra_bdpcm_luma_flag equal to 1, - An edge within the chroma component, if both sides of the edge have intra_bdpcm_chroma_flag equal to 1, - The edges of a chroma block that are not edges of the associated transform unit The type of edge is either vertical or horizontal and is represented by the variable edgeType, as specified in Table 42. -Name of association with edgeType [Table 26] [ka] - The variable treeType is set equal to DUAL_TREE_LUMA. - the variable treeType, as specified in subclause 8.8.3.2, and the array recPicture set equal to the reconstructed picture before deblocking, i.e., EDGE_VER. L Using the inputs of the edgeType and edgeType, we perform a unidirectional deblocking filter and obtain the corrected reconstructed picture after deblocking, i.e., the array recPicture. L The output is used to filter vertical edges. - the array recPicture set equal to the variable treeType, the modified reconstructed picture after deblocking, i.e., EDGE_HOR, as specified in subclause 8.8.3.2 L and the variable edgeType as input, perform unidirectional deblocking filtering, and obtain the modified reconstructed picture after deblocking, i.e., the array recPicture. L The horizontal edges are filtered using the output. - If ChromaArrayType is not equal to 0, the following applies: - Set the variable treeType equal to DUAL_TREE_CHROMA. - the variable treeType, the reconstructed picture before deblocking, i.e. the array recPicture, as specified in subclause 8.8.3.2 cb ,recPicture cr, and a variable edgeType set equal to EDGE_VER, to filter the vertical edges and return the modified reconstructed picture after deblocking, i.e., the array recPicture. cb ,recPicture cr Reconstruct as output. - the variable treeType, the modified reconstructed picture before deblocking, i.e., the array recPicture, as specified in subclause 8.8.3.2 cb ,recPicture cr , and the variable edgeType set equal to EDGE_HOR to filter the horizontal edges, and return the modified reconstructed picture after deblocking, i.e., the array recPicture. cb ,recPicture cr Reconstruct as output. 6.1.5. Examples of items 1.d, 1.g, 1.j, and 1.f In one example, the syntax structure pic_parameter_set_rbsp() is modified as follows: [Table 27] deblocking_filter_override_enabled_flag equal to 1 specifies the presence of ph_deblocking_filter_override_flag in the PH referencing the PPS or specifies the presence of slice_deblocking_filter_override_flag in the slice header referencing the PPS. deblocking_filter_override_enabled_flag equal to 0 specifies the absence of ph_deblocking_filter_override_flag in the PH referencing the PPS or specifies the absence of slice_deblocking_filter_override_flag in the slice header referencing the PPS. If not present, the value of deblocking_filter_override_enabled_flag equal to 0 is inferred. pps_deblocking_filter_disabled_flag equal to 1 specifies that the operation of the deblocking filter is not applied to slices that reference the [[slice_deblocking_filter_disabled_flag is not present]] PPS. pps_deblocking_filter_disabled_flag equal to 0 specifies that the operation of the deblocking filter is applied to slices that reference the [[slice_deblocking_filter_disabled_flag is not present]] PPS. If not present, the value of pps_deblocking_filter_disabled_flag is inferred to be equal to 0. And the syntax structure picture_header_structure() is modified as follows: [Table 28] And the syntax structure slice_header() is modified as follows: [Table 29] [ka] 6.1.6. Alternative embodiments of items 1.d, 1.g, 1.j, 1.e, and 1.n In one example, the syntax structure pic_parameter_set_rbsp() is modified as follows: [Table 30] deblocking_filter_override_enabled_flag equal to 1 specifies the presence of ph_deblocking_filter_override_flag in the PH referencing the PPS or specifies the presence of slice_deblocking_filter_override_flag in the slice header referencing the PPS. deblocking_filter_override_enabled_flag equal to 0 specifies the absence of ph_deblocking_filter_override_flag in the PH referencing the PPS or specifies the absence of slice_deblocking_filter_override_flag in the slice header referencing the PPS. If not present, the value of deblocking_filter_override_enabled_flag equal to 0 is inferred. pps_deblocking_filter_disabled_flag equal to 1 specifies that the operation of the deblocking filter is not applied to slices that reference the [[slice_deblocking_filter_disabled_flag is not present]] PPS. pps_deblocking_filter_disabled_flag equal to 0 specifies that the operation of the deblocking filter is applied to slices that reference the [[slice_deblocking_filter_disabled_flag is not present]] PPS. If not present, the value of pps_deblocking_filter_disabled_flag is inferred to be equal to 0. And the syntax structure picture_header_structure() is modified as follows: [Table 31] And the syntax structure slice_header() is modified as follows: [Table 32] [ka] 6.1.7. Alternative embodiments of items 1.d, 1.g, 1.j, 1.f, 1.h and 1.k In one example, the syntax structure pic_parameter_set_rbsp() is modified as follows: [Table 33] [ka] [[pps_deblocking_filter_disabled_flag equal to 1 specifies that the operation of the deblocking filter is not applied to slices that refer to PPSs for which slice_deblocking_filter_disabled_flag is not present. pps_deblocking_filter_disabled_flag equal to 0 specifies that the operation of the deblocking filter is applied to slices that refer to PPSs for which slice_deblocking_filter_disabled_flag is not present. If not present, the value of pps_deblocking_filter_disabled_flag is inferred to be equal to 0. ]] And the syntax structure picture_header_structure() is modified as follows: [Table 34] [ka] And the syntax structure slice_header() is modified as follows: [Table 35] [ka] [ka] [ka] 6.2. Second Example This is an example of items 2, 2.a, and 2.b summarized in Section 5 above. 8.5.6.3 Fractional Sample Interpolation 8.5.6.3.1 General The inputs to this process are: - a luminance position (xSb, ySb) that defines the top-left sample of the current coding sub-block relative to the top-left luminance sample of the current picture, a variable sbWidth that defines the width of the current coding sub-block, - the variable sbHeight, which defines the height of the current coding sub-block, - the motion vector offset mvOffset, - fine-tune motion vector refMvLX, - the selected reference picture sample array refPicLX, - 1 / 2 sample interpolation filter index hpelIfIdx, [ka] - decoder-side motion vector fine-tuning flag dmvrFlag, - the bidirectional optical flow flag bdofFlag, - a variable refPicIsScaled, which indicates whether the selected reference picture requires scaling; - a variable cIdx that specifies the color component index of the current block, - A list of two scaling ratios, horizontal and vertical, scalingRatio. The output of this process is: - predSamplesLX, a (sbWidth+brdExtSize)x(sbHeight+brdExtSize) array of predicted sample values. The boundary extension size brdExtSize of the prediction block is derived as follows: [ka] The variable refWraparoundEnabledFlag is set equal to (pps_ref_wraparound_enabled_flag && !refPicIsScaled). The variable fRefLeftOffset is set equal to ((SubWidthC*scaling_win_left_offset)<<10), where scaling_win_left_offset is the scaling_win_left_offset relative to the reference picture. The variable fRefTopOffset is set equal to ((SubWidthC*scaling_win_top_offset)<<10), where scaling_win_top_offset is the scaling_win_top_offset relative to the reference picture. The (sbWidth+brdExtSize)×(sbHeight+brdExtSize) array predSamplesLX of predicted sample values ​​is derived as follows: - The motion vector mvLX is set equal to (refMvLX-mvOffset). - If cIdx is equal to 0, the following applies: - (xInt L ,yInt L ) be the luminance position given in full sample units, and (xFrac L ,yFrac L ) be the offset in 1 / 16 sample units. These variables are used in this section only to specify fractional sample positions within the reference sample array refPicLX. - Bounding block for reference sample padding (xSbInt L ,ySbInt L ) is set equal to (xSb + (mvLX[0]>4), ySb + (mvLX[1]>>4). - For each luminance sample position (x L =0..sbWidth-1+brdExtSize,y L For each sbHeight-1+brdExtSize), the corresponding predicted luminance sample value predSamplesLX[x L ][y L ] is derived as follows: - (refxSbL ,refySb L ) and (refx L ,refy L ) is the luminance position indicated by the motion vector (refMvLX[0], refMvLX[1]) given in 1 / 16 sample units. L , refx L , refySb L , and refy L is derived as follows: refxSb L =(((xSb-(SubWidthC*scaling_win_left_offset))<<4)+ refMvLX[0])*scalingRatio[0] (935) refx L =((Sign(refxSb L )*((Abs(refxSb L )+128)>>8)+ x L *((scalingRatio[0]+8)>>4))+fRefLeftOffset+32)>>6 (936) refySb L =(((ySb-(SubWidthC*scaling_win_top_offset))<<4)+ refMvLX[1])*scalingRatio[1] (937) Refy L =((Sign(refySb L )*((Abs(refySb L )+128)>>8)+yL* ((scalingRatio[1]+8)>>4))+fRefTopOffset+32)>>6 (938) The variables xIntL, yIntL, xFracL and yFracL are derived as follows: xInt L =refx L >>4 (939) yInt L =refy L >>4 (940) xFrac L =refx L &15 (941) yFrac L =refy L &15 (942) - Predicted luminance sample value predSamplesLX[x L ][y L ] is derived as follows: [ka] -x L is equal to 0 -x L is equal to sbWidth+1 -y L is equal to 0 -y L is equal to sbHeight+1 - or (xIntL-(brdExtSize>0?1:0), yIntL-(brdExtSize>0?1:0)), (xFracL, yFracL), (xSbInt L ,ySbInt L ), refPicLX, hpelIfIdx, sbWidth, sbHeight, dmvrFlag, refWraparoundEnabledFlag, scalingRatio[0], scalingRatio[1], and (xSb, ySb) are used as inputs to derive the predicted luma sample values ​​predSamplesLX[xL][yL] by invoking the luma sample 8-tap interpolation filtering process specified in Section 8.5.6.3.2. - Otherwise (cIdx is not equal to 0), the following applies: … 6.3. Third Example This is an example of items 3, 3.a, 3.b, and 3.c. summarized in Section 5 above. 6.3.1. Example of Item 3.a In one example, the syntax structure pic_parameter_set_rbsp() is modified as follows: [Table 36] [ka] And the syntax structure picture_header_structure() is modified as follows: [Table 37] And the syntax structure slice_header() is changed as follows: [Table 38] 6.3.2. Example of Item 3.b In one example, the syntax structure pic_parameter_set_rbsp() is modified as follows: [Table 39] [ka] And the syntax structure picture_header_structure() is modified as follows: [Table 40] [ka] And the syntax structure slice_header() is changed as follows: [Table 41] [ka] 6.3.3. Example of Item 3.c Changes noted in bold italic text are based on JVET-Q2001-vE. [Table 42] [Table 43] [ka] [ka] 6.4. Fourth Example This is an example of items 4, 4.a, 4.b, 4.c, and 4.d summarized in Section 5 above. ph_cu_qp_delta_subdiv_intra_slice specifies the maximum cbSubdiv value of coding units within an intra slice that conveys cu_qp_delta_abs and cu_qp_delta_sign_flag. [ka] [ka] If not present, the value of ph_cu_chroma_qp_offset_subdiv_inter_slice is inferred to be equal to 0.

[0041] 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, PON (Passive Optical Network), and wireless interfaces such as Wi-Fi or cellular interfaces.

[0042] The system 1900 may include a coding component 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 transmitted 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 performed by an encoder and corresponding decoding tools or operations that reverse the results of the coding are performed by a decoder.

[0043] 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 various electronic devices such as mobile phones, laptops, smartphones, or other devices capable of digital data processing and / or video display.

[0044] 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, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 3600 may include one or more processors 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.

[0045] FIG. 4 is a block diagram illustrating an example video coding system 100 that may utilize techniques of this disclosure.

[0046] 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 encoding device. Destination device 120 may decode the encoded video data generated by source device 110, which may also be referred to as a video decoding device.

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

[0048] The video source 112 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.

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

[0050] 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.

[0051] Video encoder 114 and video decoder 124 may operate according to video compression standards, such as the High Efficiency Video Coding (HEVC) standard, the Universal Video Coding (VVC) standard, and other current and / or future standards.

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

[0053] 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 modules. 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.

[0054] Functional components of the video encoder 200 may include a splitting 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 transformation unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transformation unit 211, a reconstruction unit 212, a buffer 213, and an entropy coding unit 214.

[0055] 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 may perform prediction in an IBC mode where at least one reference picture is the picture in which the current video block is located.

[0056] Furthermore, some modules, such as the motion estimation unit 204 and the motion compensation unit 205, may be highly integrated, but are depicted separately in the example of FIG. 5 for purposes of illustration.

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

[0058] The mode selection unit 203 may, for example, select one of intra or inter coding modes based on the error result, provide the resulting intra or inter coded block to the residual generation unit 207, generate and provide residual block data to the reconstruction unit 212, and reconstruct the coded 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 that performs prediction based on an inter prediction signal and an intra prediction signal. The mode selection unit 203 may also select a resolution (e.g., sub-pixel or integer pixel accuracy) of the motion vector of the block in the case of inter prediction.

[0059] 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.

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

[0061] 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 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.

[0062] In another example, motion estimation unit 204 may bidirectionally predict 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 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.

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

[0064] In some examples, the motion estimation unit 204 may not output a full set of motion information for the current picture. Rather, the motion estimation unit 204 may signal the motion information of the current video block by reference to the motion information of another video block. For example, the 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.

[0065] 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 another video block.

[0066] In another example, 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. 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.

[0067] 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.

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

[0069] Residual generator 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.

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

[0071] Transform processor 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.

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

[0073] The inverse quantization unit 210 and the 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. The reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more prediction image blocks generated by the prediction unit 202 to generate a reconstructed video block associated with the current block, which is stored in the buffer 213.

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

[0075] The entropy encoder 214 may receive data from other functional components of the video encoder 200. Once the entropy encoder 214 receives the data, the 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.

[0076] 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.

[0077] 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.

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

[0079] 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).

[0080] The entropy decoding unit 301 retrieves an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., coded blocks of video data). The entropy decoding unit 301 decodes the entropy coded 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.

[0081] The motion compensation unit 302 may generate motion compensated blocks, possibly performing interpolation based on an interpolation filter. An identifier for the interpolation filter to be used with sub-pixel accuracy may be included in the syntax element.

[0082] 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.

[0083] The motion compensation unit 302 may use the syntax information to determine the size of blocks used to code 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 division is coded, one or more reference frames (and reference frame lists) for each inter-coded block, and some other information to decode the coded video sequence.

[0084] The intra predictor 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.

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

[0086] The following sections describe an exemplary PROF technique, an exemplary affine merging technique, and an exemplary affine AMVP technique.

[0087] PROF: Prediction Refinement Optical Flow (PROF) is used to refine sub-block based affine motion compensation prediction. After performing sub-block based affine motion compensation, luma prediction samples are refined by adding differences derived from the optical flow equation. Thus, for example, the PROF technique involves refining the sub-block based affine motion compensation prediction of a video block, followed by refining the luma prediction samples of the video block by adding differences derived from the optical flow equation.

[0088] Affine merge: In this mode, a CPMV (control point motion vector) of the current CU is generated based on the motion information of spatially neighboring CUs. Several CPMVP (control point motion vector predictor) candidates are constructed from the motion information of spatially neighboring CUs. An index is signaled to indicate the one to be used for the current CU. Thus, for example, in affine merge mode, a control point motion vector of a current coding unit of a video block is generated based on the motion information of the coding units of spatial neighbors of the current coding unit and an index indicating that the bitstream contains an affine merge candidate from the sub-block merge candidate list to be used for the current coding unit.

[0089] Affine AMVP: A CU-level affine flag is signaled in the bitstream to indicate whether affine AMVP mode is used, and then another flag is signaled to indicate whether it is 4-parameter affine or 6-parameter affine. In this mode, the difference between the CPMV of the current CU and its predictor CPMVP is signaled in the bitstream. Thus, for example, an affine AMVP mode involves including in the bitstream: (1) an affine flag at the coding unit level of the video block indicating whether an affine advanced motion vector prediction mode is used, (2) a second flag indicating whether 4-parameter affine or 6-parameter affine is used, (3) a control point motion vector predictor index at the coding unit level, and (4) a difference between the control point motion vector of the current coding unit of the video block and the predictor control point motion vector corresponding to the control point motion vector.

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

[0091] The following solutions represent exemplary embodiments of the techniques discussed in the previous chapter (eg, items 1.1-1.c.).

[0092] 1. A video processing method (e.g., method 3000 shown in FIG. 4), comprising: performing (3002) a transformation of a video including one or more video pictures having one or more video slices, the transformation being in compliance with a first rule specifying that a decision regarding the applicability of a deblocking filter to one or more video slices that reference a video picture parameter set is made based on a deblocking syntax field included in a picture header of the corresponding video picture.

[0093] 2. The method according to solution 1, wherein the decision is based on whether the applicability is disabled in the video picture parameter set and the picture header, and further based on a slice level indication of the disabling of the deblocking filter.

[0094] 3. The method according to any of Solutions 1 to 2, wherein the transformation is signaled at a higher level of the coded representation or further complies with a second rule allowing overriding of the signaled applicability of a deblocking filter at a higher level of the coded representation based on a flag derived at a finer level.

[0095] 4. The method according to solution 1, wherein whether the flag is signaled or derived depends on another field included in the coded representation.

[0096] The following solutions represent exemplary embodiments of the techniques discussed in the previous chapter (eg, items 1.d-1.q.).

[0097] 5. A video processing method comprising: transforming a video including one or more video pictures having one or more video slices, the transformation conforming to rules specifying constraints on the applicability of a deblocking filter to the video slices based on fields included at a slice header level and / or a picture header level and / or a picture parameter set level of the video slices.

[0098] 6. The method according to solution 5, wherein the regulation specifies the constraint that if the deblocking filter is disabled according to a picture parameter set level signal, then the deblocking filter cannot be enabled by a slice header level signal or a picture header level signal.

[0099] 7. The method according to solution 5, wherein the rules specify a constraint that allows a slice header level or picture header level signal to disable the deblocking filter for a video slice if the deblocking filter is enabled according to a picture parameter set level signal.

[0100] 8. The method according to solution 5, wherein the rule specifies that the value of a first field at the picture parameter set level that controls the activation of the deblocking filter is independent of the value of a second field that indicates whether the deblocking filter is overridden.

[0101] 9. The method according to Solution 5, wherein the rule specifies that the signaling of the syntax element "dbf_info_in_ph_flag" specifying whether the deblocking filter on / off control parameter and / or the deblocking filter parameter is present in one picture header or one sequence header includes a picture parameter set independent of other syntax elements including the deblocking_filter_override_enabled_flag.

[0102] 10. The method according to solution 5, wherein the rules specify that override flags at the picture parameter set level or the picture level or the slice level do not control the override of the deblocking on / off control parameter.

[0103] 11. The method according to solution 5, wherein the rules specify that override flags at the picture parameter set level or the picture level or the slice level are for overriding the deblocking filter on / off control parameters or the filter parameters, but not for overriding both.

[0104] 12. The method according to solution 5, wherein the rules provide that enabling a deblocking filter at the picture level or slice level is allowed even if the deblocking filter is disabled at the picture parameter set level.

[0105] 13. The method according to solution 5, wherein the rules specify that a field for controlling deblocking filter on / off and a field indicating parameters of the deblocking filter are included at both the picture level and the slice level.

[0106] 14. The method according to solution 5, wherein the rules specify that a field for controlling on / off of a deblocking filter and a field indicating parameters of the deblocking filter are included in the sequence parameter set.

[0107] 15. The method of solution 5, wherein the applicability of the deblocking filter to a video slice is signaled in a syntax field signaled at a video unit level, the syntax field being not a binary flag, and the video unit level includes a picture parameter set or a sequence parameter set.

[0108] 16. The method according to solution 15, wherein the syntax field comprises N bits, where N is an integer greater than 1.

[0109] 17. The method of solution 16, wherein N=2 and the syntax field indicates four options including one or more of: (a) not applying a deblocking filter to all slices that reference a picture parameter set (PPS); (b) applying a deblocking filter to all slices that reference the PPS using a first offset parameter signaled in the PPS; (c) applying a deblocking filter to all slices that reference the PPS using a second offset parameter signaled in the PPS; or (d) applying a deblocking filter to slices that reference the PPS via parameters signaled outside the PPS.

[0110] 18. The method of solution 5, wherein the rules specify enabling a deblocking filter for a video slice using a zero value for the deblocking filter parameter.

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

[0112] 19. A method of processing video, comprising: determining the applicability of prediction refinement according to optical flow (PROF) coding in affine advanced motion vector predictor coding based on a first rule or in affine merge mode based on a second rule; and performing a transformation between video blocks of the video and a coded representation of the video in accordance with the determination.

[0113] 20. The method of solution 1, wherein the second rule specifies that PROF coding is applied to the video block such that a prediction block corresponding to a portion of M*N is greater than M*N, where M and N are positive integers.

[0114] 21. A method according to any of solutions 19 to 20, wherein a flag in the coded representation is included to indicate the number of enhancement samples generated by the predicted block generated by PROF coding.

[0115] 22. The method according to solution 21, wherein the number of extension samples is the same for the first rule and the second rule.

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

[0117] 23. A method of processing video, comprising: converting between a video including one or more pictures with one or more slices and a coded representation of the video, wherein a first syntax element at picture level or slice level and / or a second syntax element at another level indicating quantization parameter delta or offset signaling is conditionally included in the coded representation according to a rule.

[0118] 24. The method according to solution 23, wherein the rules specify that the other level is the sequence parameter set level or the picture parameter set level, and the second syntax element indicates whether chroma or luma delta QP signaling is enabled.

[0119] 25. The method according to solution 23, wherein the rules specify that the other level is the sequence parameter set level or the picture parameter set level, and the second syntax element indicates whether chroma QP offset signaling is enabled.

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

[0121] 26. A method for processing video, comprising: converting between video, the video including one or more pictures having one or more slices, and a coded representation of the video, the coded representation including a syntax element indicating a regular range of coding block subdivision values ​​(cbSubDiv).

[0122] 27. The method according to solution 26, wherein the rule specifies that the range does not depend on the syntax field ph_max_mtt_hierarchy_depth_intra_slice_luma contained in the coded expression.

[0123] 28. The method according to any of Solutions 26 to 27, wherein the rule specifies that the range is 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY) + 2*(CtbLog2SizeY-MinCbLog2SizeY).

[0124] 29. The method according to solution 26, wherein the rules specify that the range is independent of the ph_max_mtt_hierarchy_depth_intra_slice_luma field.

[0125] 30. The method according to solution 26, wherein the rules specify that the range is independent of the ph_max_mtt_hierarchy_depth_inter_slice field.

[0126] 31. The method according to any one of solutions 1 to 30, wherein the conversion includes encoding the video into a coded representation.

[0127] 32. A method according to any of solutions 1 to 30, wherein the conversion includes decoding the coded representation to generate pixel values ​​of the image.

[0128] 33. A video decoding device comprising a processor configured to implement the methods described in one or more of solutions 1 to 32.

[0129] 34. A video encoding device comprising a processor configured to implement the methods described in one or more of solutions 1 to 32.

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

[0131] 36. Any method, apparatus or system described herein.

[0132] 7 is a flow chart of an example method 700 for video processing. Operation 702 includes converting between a video including a picture with one or more slices and a bitstream of the video, the conversion conforming to a rule that specifies whether to apply a deblocking filter to one or more slices that reference a picture parameter set based at least on a first syntax element included in the picture parameter set, the first syntax element indicating whether the deblocking filter is disabled for the picture.

[0133] In some embodiments of method 700, the rule specifies that, while referring to a picture parameter set, whether to apply a deblocking filter to one or more slices is further based on at least one of the following: (1) whether the deblocking filter is disabled for the picture by a second syntax element of the picture header, (2) whether the deblocking filter is indicated as disabled by a third syntax element at the slice level, or (3) whether a fourth syntax element of the picture parameter set indicates whether an override of the applicability of the deblocking filter is disabled at the picture level and at the slice level. In some embodiments of method 700, the rule specifies that, while referring to a picture parameter set, whether to apply a deblocking filter to one or more slices is further based on: (1) whether the deblocking filter is disabled for the picture by a second syntax element of the picture header, and (2) whether the deblocking filter is indicated as disabled by a third syntax element at the slice level. In some embodiments of the method 700, the first syntax element, the second syntax element, and the third syntax element having a value of 1 indicates that the deblocking filter is disabled.

[0134] In some embodiments of the method 700, the rule specifies that applying a deblocking filter to one or more slices while referencing a picture parameter set is further based on at least one of whether a fourth syntax element of the picture parameter set indicates whether an override of the applicability of the deblocking filter is disabled at the picture level and the slice level. In some embodiments of the method 700, a first value of the first syntax element equal to 1 indicates that the deblocking filter is disabled for the picture referencing the picture parameter set, and a second value of the fourth syntax element equal to 0 indicates that an override of the applicability of the deblocking filter is disabled at the picture level and the slice level. In some embodiments of the method 700, a value of 1 for the first syntax element and a value of 0 for the fourth syntax element indicate that the deblocking filter is disabled.

[0135] 8 is a flow chart of an example method 800 for video processing. Operation 802 includes converting a video including a picture with one or more slices to a bitstream of the video, the conversion conforming to a rule specifying that whether to apply a deblocking filter to one or more slices that reference a picture parameter set is based solely on a syntax element included in the picture parameter set that indicates whether the deblocking filter is disabled.

[0136] In some embodiments of the method 800, a syntax element value of 1 indicates that the deblocking filter is disabled for the picture.

[0137] 9 is a flow chart of an example method 900 for video processing. Operation 902 includes converting a video including one or more pictures with one or more slices to a bitstream of the video, where the bitstream complies with a rule that specifies determining whether to override a deblocking operation for a slice or picture based on a first value of a first syntax element at a slice level or a second value of a second syntax element at a picture level, where the rule specifies that in response to an absence of the first syntax element in a slice header, the first value of the first syntax element is determined independently of the second value of the second syntax element at the picture level.

[0138] In some embodiments of method 900, the first value of the first syntax element is determined to be 0, indicating that the deblocking operation has not been overridden at the slice level. In some embodiments of method 800, the second value of the second syntax element is determined to be 0, indicating that the deblocking operation has not been overridden at the picture level.

[0139] 10 is a flow chart of an example method 1000 for video processing. Operation 1002 includes converting between a video including one or more pictures with one or more slices and a bitstream of the video, the bitstream conforming to a rule that specifies whether to include a deblocking parameter in a slice or picture header based on a first value of a first syntax element at a slice level or a second value of a second syntax element at a picture level, and the rule specifies that in response to an absence of the first syntax element in the slice header, the first value of the first syntax element is determined independently of the second value of the second syntax element at the picture level.

[0140] In some embodiments of method 1000, the first value of the first syntax element is determined to be 0, indicating that deblocking parameters are not included at the slice level. In some embodiments of method 1000, the second value of the second syntax element is determined to be 0, indicating that deblocking parameters are not included at the picture level.

[0141] 11 is a flow chart of an example method 1100 for processing video. An operation 1102 includes converting between a video including one or more pictures with one or more slices and a bitstream of the video, the bitstream conforming to a format rule that specifies whether a first syntax element and a second syntax element are included or inferred in a picture header and a slice header, respectively, based on a value of a third syntax element of a picture parameter set, the first syntax element indicating whether a deblocking filter is disabled at a picture level of the video, the second syntax element indicating whether a deblocking filter is disabled at a slice level of the video, and the third syntax element indicating whether a deblocking filter is enabled for one or more pictures that reference the picture parameter set.

[0142] 12 is a flow chart of an example method 1200 for video processing. Operation 1202 includes converting a video including one or more pictures with one or more slices to a bitstream of the video, the conversion conforming to a rule specifying whether to apply a deblocking filter to a slice based on a syntax element included in a slice header and / or a picture header and / or a picture parameter set referenced by the slice, the syntax element indicating whether the deblocking filter is enabled at the picture parameter set level and / or the slice level and / or the picture level.

[0143] In some embodiments of the method 1200, the rule specifies that if the deblocking filter is disabled according to a first syntax element in the picture parameter set, enabling the deblocking filter by a second syntax element in the slice header or a third syntax element in the picture header is not permitted. In some embodiments of the method 1200, the rule further specifies that the presence of the second syntax element in the slice header and / or the third syntax element in the picture header is based on a first value of the first syntax element and is independent of a second value of a flag indicating whether an override of the applicability of the deblocking filter is enabled at the picture level or slice level. In some embodiments of the method 1200, the rule specifies that in response to the first syntax element indicating disabling the deblocking filter for a slice that references the picture parameter set, the second syntax element and / or the third syntax element are excluded from the slice header and / or the picture header, respectively. In some embodiments of the method 1200, the rule specifies that a flag in the picture parameter set indicates: (1) whether the first syntax element is indicated in the picture parameter set, the second syntax element is indicated in the slice header, and / or the third syntax element is indicated in the picture, and (2) whether parameters for a deblocking filter are indicated in the picture parameter set, the picture header, and the slice header. In some embodiments of method 1200, the flag indicates: (1) the exclusion of the first syntax element from the picture parameter set, the exclusion of the second syntax element from the slice header, and / or the exclusion of the third syntax element from the picture, and (2) the exclusion of parameters for a deblocking filter from the picture parameter set, the picture header, and the slice header.

[0144] In some embodiments of method 1200, the rule specifies that if a deblocking filter is disabled according to a first syntax element not present in a picture parameter set, then enabling a deblocking filter by a second syntax element in a slice header or a third syntax element in the picture header is not allowed, and the first syntax element is inferred to be equal to a constant value. In some embodiments of method 1200, the rule specifies that if a deblocking filter is disabled according to a first syntax element in a picture parameter set, then enabling a deblocking filter by a second syntax element in a slice header or a third syntax element not present in the picture header is not allowed, and the third syntax element is inferred to have the same value as the first syntax element. In some embodiments of method 1200, the rule specifies that if a deblocking filter is disabled according to a first syntax element in a picture parameter set, then enabling a deblocking filter by a second syntax element not present in the slice header or a third syntax element in the picture header is not allowed, and the second syntax element is inferred to have the same value as the first syntax element or the third syntax element. In some embodiments of method 1200, the rule specifies that if a deblocking filter is enabled at a first video unit level of a video, then disabling a deblocking filter at a second video unit level of a video is allowed, and the second video unit level is lower than the first video unit level.

[0145] In some embodiments of method 1200, the first video unit level includes a picture header and the second video unit level includes a slice header. In some embodiments of method 1200, the one or more pictures include a plurality of slices including a first set of one or more slices and a second set of one or more slices, and the rule specifies enabling a deblocking filter for the first set of one or more slices and the rule specifies disabling a deblocking filter for the second set of one or more slices. In some embodiments of method 1200, a first syntax element included in the slice header indicates whether a deblocking filter is enabled for the second video unit level, and a second syntax element in the picture header indicates whether a deblocking filter is enabled for the first video unit level, and the rule specifies that the first syntax element is based on the second syntax element. In some embodiments of method 1200, the rule specifies that if the first syntax element indicates that a deblocking filter is enabled for the current picture, then the second syntax element indicates whether a deblocking filter is enabled for the current slice of the current picture. In some embodiments of method 1200, the rule further specifies whether the picture parameter set includes a first flag indicating whether the inclusion of a deblocking filter syntax element and / or parameter in the slice header or picture header is independent of other syntax elements. In some embodiments of method 1200, the one or more other syntax elements include a second flag indicating whether an override of the applicability of the deblocking filter is enabled at the picture level and slice level.

[0146] In some embodiments of method 1200, the rule provides that whether the second syntax element is included in the slice header or the third syntax element is included in the picture header is based on a first flag and / or a first syntax element in the picture parameter set and is independent of the second flag, where the first syntax element indicates whether a deblocking filter is enabled for a slice that references the picture parameter set, the second syntax element indicates whether a deblocking filter is enabled for a slice level, and the third syntax element indicates whether a deblocking filter is enabled for a picture level. In some embodiments of method 1200, the first flag in the picture parameter set, or the second flag in the slice header, or the third flag in the picture header indicates whether an override of the applicability of the deblocking filter is enabled at the picture parameter set level, or the picture level, or the slice level, respectively, and the rule provides that: Except for (1) a first syntax element in a picture parameter set indicating whether the deblocking filter is enabled at the picture parameter set level, or (2) a second syntax element in a slice header indicating whether the deblocking filter is enabled at the slice level, or (3) a third syntax element in a picture header indicating whether the deblocking filter is enabled at the picture level, the first flag or the second flag or the third flag is only configured to override parameters of the deblocking filter. In some embodiments of the method 1200, the first syntax element is selectively included in a picture parameter set preceding the first flag according to a rule, the slice header preceding the second flag according to a rule, or the third syntax element is selectively included in a picture header preceding the third flag according to a rule, and the rule specifies that whether the first flag, the second flag, or the third flag is included in a picture parameter set, a slice header, or a picture header, respectively, is based on the first syntax element, the second syntax element, or the third syntax element, respectively.

[0147] In some embodiments of method 1200, the syntax element includes a first syntax element, and the rule further specifies that a picture parameter set includes a first syntax element indicating whether to enable a deblocking filter for one or more slices that reference the picture parameter set. In some embodiments of method 1200, the rule further specifies that whether a picture parameter set includes a first syntax element indicating whether to enable a deblocking filter for one or more slices that reference the picture parameter set is independent of other syntax elements in the picture parameter set. In some embodiments of method 1200, the rule further specifies that if a deblocking filter is disabled at a first video unit level of a video, then one or more syntax elements at a second video unit level of the video are inferred to be absent and equal to a value of the first syntax element at the first video unit level indicating that the deblocking filter is disabled and the first video unit level is higher than the second video unit level. In some embodiments of method 1200, the rules further prescribe a syntax element in a picture parameter set indicating whether global control for a deblocking filter is present, which syntax element consists only of: (1) one or more flags in a picture parameter set or a picture header or a slice header indicating whether an override of the applicability of the deblocking filter is enabled at the picture parameter set level or the picture level or the slice level, and (2) a flag controlling the presence of parameters of the deblocking filter in the picture parameter set, the picture header or the slice header.

[0148] In some embodiments of method 1200, the rule further specifies that the flag indicates whether an override is enabled for either the applicability of the deblocking filter or the first set of parameters of the deblocking filter. In some embodiments of method 1200, the flag is included in a picture parameter set or a picture header or a slice header. In some embodiments of method 1200, the rule further specifies that if the flag indicates whether an override is enabled for the applicability of the deblocking filter, (1) the first set of parameters of the deblocking filter are included only at a first video unit level of the video, and (2) in response to enabling the deblocking filter for a second video unit level, a second set of parameters of the deblocking filter for the second video unit level is inferred from the first set of parameters of the deblocking filter at the first video unit level, the first video unit level being higher than the second video unit level. In some embodiments of method 1200, the rule further provides that if the flag indicates whether the override is enabled for a first set of parameters of the deblocking filter included at a first video unit level of the video: (1) the applicability of the deblocking filter is included only at the first video unit level, and (2) in response to enabling the deblocking filter for a second video unit level, a second set of parameters of the deblocking filter for the second video unit level is inferred from the first set of parameters of the deblocking filter at the first video unit level, where the first video unit level is higher than the second video unit level.

[0149] In some embodiments of the method 1200, the first video unit level includes a picture parameter set and the second video unit level includes a picture header or a slice header. In some embodiments of the method 1200, the syntax elements include a first syntax element at a first video unit level of the video and a second syntax element at a second video unit level of the video, the first syntax element and the second syntax element indicating whether a deblocking filter is enabled at the first video unit level and the second video unit level, respectively, the first video unit level being higher than the second video unit level, the rule further specifying that in response to the first syntax element indicating disabling the deblocking filter at the first video unit level, an override of the second syntax element is not allowed. In some embodiments of the method 1200, the first video unit level includes a picture parameter set and the second video unit level includes a picture header or a slice header. In some embodiments of method 1200, the rule specifies that whether to include the second syntax at the second video unit level is based on whether the first syntax element indicates that control of a deblocking filter is allowed at the first video unit level.

[0150] In some embodiments of the method 1200, the syntax element includes a first syntax element at a first video unit level of the video and a second syntax element at a second video unit level of the video, the first syntax element and the second syntax element indicating whether a deblocking filter is enabled at the first video unit level and the second video unit level, respectively, and the rule specifies that the deblocking filter is inferred to have a particular state for the second video unit level in response to the second syntax element not being present at the second video unit level. In some embodiments of the method 1200, the particular state includes disabling, enabling, or making the state of the deblocking filter indicated by the first syntax element the same. In some embodiments of the method 1200, the rule specifies that the picture parameter set excludes a syntax element indicating whether a global control for a deblocking filter exists, the rule specifies that the picture parameter set includes a first syntax element indicating whether the deblocking filter is enabled, and the first syntax element is independent of the syntax element. In some embodiments of method 1200, the second syntax element indicates whether an override of the applicability of the deblocking filter is allowed, and the rules specify that the inclusion of the second syntax element in the picture parameter set is based on the first syntax element indicating that the deblocking filter is enabled. In some embodiments of method 1200, the rules specify that the inclusion of parameters for the deblocking filter in the picture parameter set is based on the second syntax element indicating that an override of the applicability of the deblocking filter is allowed.

[0151] In some embodiments of the method 1200, the rule specifies that the picture parameter set excludes a syntax element indicating whether there is a global control for a deblocking filter, the rule specifies that the picture parameter set includes a first syntax element indicating whether an override of the applicability of the deblocking filter is allowed, and the first syntax element is independent of the syntax element. In some embodiments of the method 1200, a second syntax element indicates whether a deblocking filter is enabled, and the rule specifies that the inclusion of the second syntax element in the picture parameter set is based on the first syntax element indicating that an override of the applicability of the deblocking filter is allowed. In some embodiments of the method 1200, the rule specifies that the inclusion of parameters for a deblocking filter in the picture parameter set is based on the second syntax element indicating that a deblocking filter is enabled. In some embodiments of method 1200, the rules provide that a picture header includes a syntax element that indicates whether the picture header or slice header includes one or more syntax elements that indicate whether a deblocking filter is enabled and / or parameters of the deblocking filter.

[0152] In some embodiments of method 1200, the rule specifies that syntax elements are excluded from a picture parameter set. In some embodiments of method 1200, the rule specifies that each of the picture header and slice header includes one or more syntax elements that indicate whether a deblocking filter is enabled and / or parameters of the deblocking filter.

[0153] 13 is a flow chart of an example method 1300 for processing video. Operation 1302 includes converting between a video including one or more pictures with one or more slices and a bitstream of the video, the conversion conforming to rules specifying that whether to apply a deblocking filter to a slice is based on syntax elements included in a sequence parameter set referenced by the slice, the syntax elements including a first syntax element indicating whether a deblocking filter is enabled and / or a set of syntax elements indicating a first set of parameters for the deblocking filter.

[0154] In some embodiments of method 1300, the rule further specifies that a first syntax element in a sequence parameter set at a first video unit level of the video is overridden by a second syntax element indicating whether a deblocking filter is enabled at a second video unit level of the video and whether the first video unit level is higher than the second video unit level.

[0155] In some embodiments of method 1300, the rule further specifies that a first set of parameters of a deblocking filter indicated in a sequence parameter set of a first video unit level of the video is overridden by a second set of parameters of a deblocking filter indicated in a second video unit level of the video, the first video unit level being higher than the second video unit level. In some embodiments of method 1300, the second video unit level includes a picture parameter set, a picture header, or a slice header.

[0156] 14 is a flow chart of an example method 1400 for video processing. Operation 1402 includes converting between a video including one or more pictures with one or more slices and a bitstream of the video, the conversion conforming to rules specifying that whether to apply a deblocking filter to a slice is based on a non-binary syntax element included at a video unit level, the non-binary syntax element indicating whether and / or how to apply a deblocking filter to the one or more slices.

[0157] In some embodiments of method 1400, the video unit level includes a picture parameter set or a sequence parameter set. In some embodiments of method 1400, the rule specifies that a non-binary syntax element indicates a deblocking mode, the non-binary syntax element including N bits. In some embodiments of method 1400, N=2. In some embodiments of method 1400, the rule specifies that a first value of the non-binary syntax element specifies that a deblocking filter is not applied to all slices that reference this picture parameter set, the rule specifies that a second value of the non-binary syntax element specifies that a deblocking filter is applied to all slices that reference this picture parameter set using deblocking parameter offsets of zero values ​​for beta and tC, the rule specifies that a third value of the non-binary syntax element specifies that a deblocking filter is applied to all slices that reference this picture parameter set using deblocking parameter offsets for beta and tC that are explicitly included in the picture parameter set, and the rule specifies that the first value of the non-binary syntax element specifies that whether a deblocking filter is applied to a slice that references a picture parameter set is controlled by parameters present in a picture header or slice header of the slice. In some embodiments of method 1400, the rule specifies that whether parameters of the deblocking filter are included in the picture parameter set is based on the value of the non-binary syntax element.

[0158] In some embodiments of the method 1400, the rule specifies that in response to the value satisfying a particular condition, the parameter of the deblocking filter is included in the picture parameter set, and in response to the value not satisfying the particular condition, the parameter of the deblocking filter is inferred to be 0. In some embodiments of the method 1400, the particular condition includes whether the value is greater than an integer. In some embodiments of the method 1400, the rule specifies that a value of a non-binary syntax element controls whether a syntax element is included in the picture parameter set, the syntax element specifying whether a picture header or slice header includes a syntax element that enables a deblocking filter and / or indicates a parameter of the deblocking filter. In some embodiments of the method 1400, the rule specifies that in response to the value of a non-binary syntax element satisfying a particular condition, the syntax element is included in the picture parameter set. In some embodiments of the method 1400, the particular condition includes whether the value is equal to an integer. In some embodiments of method 1400, the rule specifies that in response to excluding a syntax element from a picture parameter set, the syntax element is inferred to have a constant value. In some embodiments of method 1400, the rule specifies that a value of a non-binary syntax element controls whether the syntax element is included in a picture header or a slice header, and that the syntax element indicates whether to enable a deblocking filter and / or parameters of the deblocking filter.

[0159] In some embodiments of method 1400, the rule provides for indicating in the picture header a syntax element indicating whether to enable a deblocking filter at a picture level of the video in response to the value of the non-binary syntax element satisfying a particular condition. In some embodiments of method 1400, the rule provides for indicating in the slice header a syntax element indicating whether to enable a deblocking filter at a slice level of the video in response to the value of the non-binary syntax element satisfying a particular condition. In some embodiments of method 1400, the particular condition includes whether the value is equal to an integer.

[0160] 15 is a flow chart of an example method 1500 for processing video. Operation 1502 includes converting a video including one or more pictures including one or more slices to a bitstream of the video, the conversion specifying that (1) a deblocking filter is enabled at the picture level of the video or at the slice level of the video, and (2) zero-value deblocking parameter offsets for beta and tC are used for the parameters of the deblocking filter.

[0161] In some embodiments of method 1500, the rule specifies that the picture parameter set includes one or more syntax elements indicating whether the default parameters of the deblocking filter are associated with zero-value deblocking parameter offsets for beta and tC or user-defined beta and tC offsets. In some embodiments of method 1500, the picture parameter set includes user-defined beta and tC offsets in response to one or more syntax elements indicating that the default parameters for the deblocking filter are associated with user-defined beta and tC offsets. In some embodiments of method 1500, the parameters of the deblocking filter and the default parameters of the deblocking filter are selectively overridden at a picture level of the video or a slice level of the video. In some embodiments of method 1500, the rule specifies that the video unit level of the video includes one or more syntax elements indicating whether zero-value deblocking parameter offsets for beta and tC or user-defined beta and tC offsets are used. In some embodiments of method 1500, the video unit level includes a user-defined beta and tC offset in response to one or more syntax elements indicating the use of the user-defined beta and tC offset. In some embodiments of method 1500, the video unit level includes a sequence parameter set, a picture parameter set, a picture header, or a slice header.

[0162] 16 is a flow chart of an example method 1600 of video processing. Operation 1602 includes determining a size of a prediction block corresponding to the video block according to a rule for conversion between a video block of a video and a bitstream of the video. Operation 1604 includes performing the conversion based on the determination, where the rule specifies that a first size of the prediction block is determined in response to whether prediction refinement using optical flow techniques is used to code the video block, and the video block has a second size and is coded using an affine merge mode or an affine advanced motion vector prediction mode.

[0163] In some embodiments of the method 1600, a first width and a first height of the first size of the prediction block are denoted by (M+M0) and (N+N0), respectively, and a second width and a second height of the second size of the video block are denoted by M and N, respectively, where M0 is equal to or greater than 0 and N0 is equal to or greater than 0. In some embodiments of the method 1600, M0 and N0 are not both equal to 0. In some embodiments of the method 1600, M0 and N0 are equal to 2. In some embodiments of the method 1600, a flag indicating whether prediction refinement using optical flow techniques is utilized controls whether and / or how many extension samples are included in the first size of the prediction block. In some embodiments of the method 1600, the first size of the prediction block is based on a number of extension samples, and the number of extension samples is independent of whether the first video block is coded using an affine merge mode or from an affine advanced motion vector prediction mode. In some embodiments of method 1600, a first width and a first height of a first size of a prediction block are denoted by (M+X) and (N+Y), respectively, and a second width and a second height of a second size of a video block are denoted by M and N, respectively, where X is the number of enhancement samples for a width and Y is the number of enhancement samples for a height. In some embodiments of method 1600, X and Y are equal to 0. In some embodiments of method 1600, X and Y are equal to 2.

[0164] In some embodiments of the method 1600, X and Y are equal to 2 in response to the value of the flag indicating the utilization of prediction refinement using optical flow techniques. In some embodiments of the method 1600, the value of the flag is equal to 1. In some embodiments of the method 1600, the first size of the prediction block is based on a boundary extension size based on a value of the flag indicating whether prediction refinement using optical flow techniques is utilized, the boundary extension size indicating a number of extension samples to increase the second size of the video block to obtain the first size of the prediction block. In some embodiments of the method 1600, the number of extension samples is 0. In some embodiments of the method 1600, the number of extension samples is 2. In some embodiments of the method 1600, the prediction refinement using optical flow techniques includes fine-tuning an affine motion compensation prediction based on a sub-block of the video block, followed by fine-tuning luma prediction samples of the video block by adding a difference derived by an optical flow equation. In some embodiments of method 1600, the affine merge mode includes generating a control point motion vector of a current coding unit for the video block based on motion information of coding units in spatial neighborhood of the current coding unit and including in the bitstream an index indicating an affine merge candidate from the subblock merging candidate list to be used for the current coding unit. In some embodiments of method 1600, the affine advanced motion vector prediction mode includes including in the bitstream: (1) an affine flag at the coding unit level for the video block indicating whether an affine advanced motion vector prediction mode is used, (2) a second flag indicating whether a four-parameter affine or six-parameter affine is used, (3) a coding unit level control point motion vector predictor index, and (4) a difference between a control point motion vector of the current coding unit for the video block and a predictor control point motion vector corresponding to the control point motion vector.

[0165] 17 is a flow chart of an example method 1700 for video processing. Operation 1702 includes converting between a video including one or more pictures with one or more slices and a bitstream of the video, where rules specify that a first syntax element is indicated at a video level higher than a picture level or a slice level, and the first syntax element specifies whether the picture level or the slice level includes a quantization parameter delta.

[0166] In some embodiments of the method 1700, the video level is a sequence parameter set level or a picture parameter set level, and the first syntax element indicates whether the picture level or the slice level enables inclusion of a luma quantization parameter delta or a chroma quantization parameter delta. In some embodiments of the method 1700, the rule specifies whether the luma quantization parameter delta is included in the picture header and / or slice header based on the first syntax element indicating whether the luma quantization parameter delta is present. In some embodiments of the method 1700, the rule specifies that inclusion of the luma quantization parameter delta is not permitted in the picture header and slice header in response to the first syntax element indicating that the luma quantization parameter delta is not present at the picture level or slice level. In some embodiments of the method 1700, the rule specifies that inclusion of the luma quantization parameter delta is not permitted in the picture header or slice header in response to the first syntax element indicating that the luma quantization parameter delta is not present at the picture level or slice level. In some embodiments of method 1700, the rule specifies that when the luma quantization parameter delta is not present in the picture header, the luma quantization parameter delta is inferred to have a constant value. In some embodiments of method 1700, the rule specifies that in response to the luma quantization parameter delta not being present in the slice header, the luma quantization parameter delta is inferred to be a constant value. In some embodiments of method 1700, the rule specifies that the first syntax element controls whether a flag that specifies whether the luma quantization parameter delta is included in the picture header or the slice header is included in the picture parameter set. In some embodiments of method 1700, the rule specifies that in response to the first syntax element indicating that the luma quantization parameter delta is not present at the picture level or the slice level, the flag is excluded from the picture parameter set.In some embodiments of the method 1700, the rule provides that, in response to a flag not being present in a picture parameter set, the flag is inferred to have a certain value.

[0167] 18 is a flow chart of an example method 1800 for video processing. An operation 1802 includes converting between a video including one or more pictures including one or more slices and a bitstream of the video, where a first rule specifies that a first flag of a first video level indicates whether one or more chroma quantization parameter offsets are included in the first video level, the first video level being higher than a slice level, and a second rule specifies that a second flag of a second video level indicates whether one or more chroma quantization parameter offsets are included in a picture header or a slice header, the second video level being higher than a picture level.

[0168] In some embodiments of the method 1800, the second rule specifies that a second flag in the picture parameter set indicates whether the one or more chroma quantization parameter offsets are included in the picture header or the slice header. In some embodiments of the method 1800, the second rule specifies that in response to the second flag indicating that the one or more chroma quantization parameter offsets are included in the picture header, the one or more chroma quantization parameter offsets are excluded from the slice header. In some embodiments of the method 1800, the second rule specifies that in response to the second flag indicating that the one or more chroma quantization parameter offsets are excluded from the picture header, the one or more chroma quantization parameter offsets are selectively included in the slice header. In some embodiments of the method 1800, the one or more chroma quantization parameter offsets for the picture header are inferred to be a constant value in response to the one or more chroma quantization parameter offsets being excluded from the picture header. In some embodiments of method 1800, the one or more chroma quantization parameter offsets for the slice header are inferred to be constant values ​​in response to excluding the one or more chroma quantization parameter offsets from the slice header. In some embodiments of method 1800, the second rule provides that the second flag further indicates whether a luma quantization parameter delta is included in the picture header or in the slice header.

[0169] In some embodiments of the method 1800, the second rule specifies that a second flag in the sequence parameter set and / or the picture parameter set indicates whether one or more chroma quantization parameter offsets are included in the picture header and / or the slice header. In some embodiments of the method 1800, the second rule specifies that in response to the second flag indicating that the one or more chroma quantization parameter offsets are not present at the picture level and the slice level, the second rule specifies that the one or more chroma quantization parameter offsets are not allowed to be included in the picture header and the slice header. In some embodiments of the method 1800, the second rule specifies that the second flag controls whether the picture parameter set includes another flag, the other flag indicating whether the one or more chroma quantization parameter offsets are included at the picture level or the slice level. In some embodiments of the method 1800, the second rule specifies that in response to the second flag indicating that the one or more chroma quantization parameter offsets are excluded from the picture header or the slice header, the picture parameter set excludes another flag. In some embodiments of the method 1800, the second rule specifies that in response to the absence of the other flag in the picture parameter set, the other flag is inferred to have a constant value. In some embodiments of the method 1800, the second rule specifies that the quantization parameter delta and the chroma quantization parameter offset are included in the same header. In some embodiments of the method 1800, the second rule specifies that in response to the inclusion of the quantization parameter delta in the picture header, the one or more chroma quantization parameter offsets are not allowed to be included in the slice header. In some embodiments of the method 1800, the second rule specifies that in response to the inclusion of the quantization parameter delta in the slice header, the one or more chroma quantization parameter offsets are not allowed to be included in the picture header.

[0170] 19 is a flow chart of an example method 1900A for processing video. Operation 1902A includes converting between a video including one or more pictures with one or more slices and a bitstream of the video, the bitstream including a first syntax element indicating a coding block subdivision value, the coding block subdivision value having a regular range.

[0171] In some embodiments of method 1900A, the rule specifies that the range of coding block subdivision values ​​for coding units in intra slices that convey cu_qp_delta_abs and cu_qp_delta_sign_flag is independent of a second syntax element in the bitstream that specifies the maximum hierarchical depth of the coding units resulting from a multi-type tree partitioning of quadtree leaves into slices. In some embodiments of method 1900A, the rule specifies that the range is 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*(CtbLog2SizeY-MinCbLog2SizeY). In some embodiments of method 1900A, the rule specifies that the range is 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*min(ph_max_mtt_hierarchy_depth_intra_slice_luma,CtbLog2SizeY-MinCbLog2SizeY), where ph_max_mtt_hierarchy_depth_intra_slice_luma is the second syntax element.

[0172] In some embodiments of method 1900A, the rule specifies that the range of coding block subdivision values ​​for coding units in intra slices that convey cu_chroma_qp_offset_flag is independent of a second syntax element in the bitstream that specifies the maximum hierarchical depth of the coding units resulting from a multi-type tree partitioning of quadtree leaves into slices. In some embodiments of method 1900A, the rule specifies that the range is 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*(CtbLog2SizeY-MinCbLog2SizeY). In some embodiments of method 1900A, the rule specifies that the range is 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*min(ph_max_mtt_hierarchy_depth_intra_slice_luma,CtbLog2SizeY-MinCbLog2SizeY), where ph_max_mtt_hierarchy_depth_intra_slice_luma is a second syntax element. In some embodiments of method 1900A, the rule specifies that the range of coding block subdivision values ​​for a coding unit that conveys cu_qp_delta_abs and cu_qp_delta_sign_flag in an intra slice is independent of a second syntax element in the bitstream that specifies a maximum hierarchical depth of the coding unit resulting from a multi-type tree partitioning of quadtree leaves into slices. In some embodiments of method 1900A, the rules specify that the range is from 0 to 2*(CtbLog2SizeY-MinQtLog2SizeInterY)+2*(CtbLog2SizeY-MinCbLog2SizeY).In some embodiments of method 1900A, the rule specifies that the range is 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*min(ph_max_mtt_hierarchy_depth_inter_slice,CtbLog2SizeY-MinCbLog2SizeY), where ph_max_mtt_hierarchy_depth_inter_slice is the second syntax element.

[0173] In some embodiments of method 1900A, the rule specifies that the range of coding block subdivision values ​​for coding units that convey cu_chroma_qp_offset_flag in inter slices is independent of a second syntax element in the bitstream that specifies the maximum hierarchical depth of the coding unit resulting from a multi-type tree partitioning of quadtree leaves into slices. In some embodiments of method 1900A, the rule specifies that the range is 0 to 2*(CtbLog2SizeY-MinQtLog2SizeInterY)+2*(CtbLog2SizeY-MinCbLog2SizeY). In some embodiments of method 1900A, the rule specifies that the range is 0 to 2*(CtbLog2SizeY-MinQtLog2SizeIntraY)+2*min(ph_max_mtt_hierarchy_depth_inter_slice,CtbLog2SizeY-MinCbLog2SizeY), where ph_max_mtt_hierarchy_depth_inter_slice is the second syntax element.

[0174] In some embodiments of the methods 700-1900A, performing the conversion includes encoding the video into a bitstream. In some embodiments of the methods 700-1900A, performing the conversion includes generating a bitstream from the video, the method further including storing the bitstream in a non-transitory computer-readable storage medium. In some embodiments of the methods 700-1900A, performing the conversion includes decoding the video from the bitstream. In some embodiments, the video decoder includes a processing device configured to implement operations of the methods 700-1900A. In some embodiments, the video encoder includes a processing device configured to implement operations of the methods 700-1900A. In some embodiments, a computer program product having computer instructions stored thereon, when executed by a processing device, causes the processing device to implement operations of the methods 700-1900A. In some embodiments, a non-transitory computer-readable storage medium storing a bitstream generated according to operations of the methods 700-1900A. In some embodiments, a non-transitory computer-readable storage medium storing instructions causing a processing device to implement operations of the methods 700-1900A. In some embodiments, a bitstream generation method includes generating a video bitstream according to the operations of method(s) 700-1900A and storing the bitstream on a computer readable program medium. In some embodiments, a method, apparatus, or generated bitstream according to the methods or systems disclosed herein is provided.

[0175] 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 the determination, as described in the above solution. Similarly, the encoder may determine whether a particular syntax field should or should not be included and generate the coded representation accordingly by including or excluding the syntax field in the coded representation.

[0176] 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.

[0177] 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 it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program 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., a file that stores 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 communication network.

[0178] The processing and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processing and logic flows may also be performed by, and an apparatus may be implemented as, special purpose logic circuitry, such as a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC).

[0179] Processors 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 memory devices for storing instructions and data. Typically, a computer may include one or more mass storage devices, such as 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, such as internal hard disks or removable disks, magneto-optical disks, and semiconductor storage devices such as CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0180] 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.

[0181] 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.

[0182] 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. determining a size of a prediction block corresponding to a current video block of a video according to a rule for conversion between the current video block and a bitstream of the video; performing said converting based on said determining; A video data processing method comprising: an affine merging mode is enabled for the current image block; The rules provide for determining a first size of the prediction block in response to whether prediction refinement using optical flow techniques is enabled for the current video block, the current video block having a second size; a first width and a first height of the first size of the prediction block denoted by (M+M0) and (N+N0), respectively, and a second width and a second height of the second size of the current video block denoted by M and N, respectively, where M, M0, N, and N0 are integers equal to or greater than 0; A prediction refinement usefulness flag, which indicates whether to utilize the prediction refinement using optical flow techniques, controls the values ​​of M0 and N0; the values ​​of M0 and N0 are determined independently of the affine flag; Video data processing method.

2. if the prediction refinement using optical flow techniques is enabled for the current video block, then at least one of M0 and N0 is not equal to 0; 2. The video data processing method according to claim 1.

3. M0 and N0 are both equal to 2, The video data processing method according to claim 2 .

4. The affine flag is an inter_affine_flag used to indicate whether to apply an affine motion vector prediction mode; 2. The video data processing method according to claim 1.

5. For a video block to which the affine motion vector prediction mode is applied, a size of a prediction block of the video block is equal to the first size.

5. The video data processing method according to claim 4.

6. The prediction samples of the prediction block are present as predSamplesLX[xL][yL], where xL ranges from 0 to M+1 and yL ranges from 0 to N+1; The predicted samples predSamplesLX[xL][yL] are derived by invoking a luma integer sample fetch process because one or more of the following conditions are true: xL is equal to 0, xL is equal to M+1, yL is equal to 0, and yL is equal to N+1; The predicted samples predSamplesLX[xL][yL] are derived by invoking an 8-tap interpolation filtering process on luma samples since all conditions are false. The video data processing method according to claim 3.

7. the affine merge mode includes generating a control point motion vector by using an index to select an affine merge candidate from a sub-block merging candidate list constructed based on motion information of spatially neighboring coding units; The video data processing method according to any one of claims 1 to 6.

8. performing the conversion includes encoding the video into the bitstream; The video data processing method according to any one of claims 1 to 7.

9. performing the conversion includes decoding the video from the bitstream. The video data processing method according to any one of claims 1 to 7.

10. 1. An apparatus for processing video data comprising a processor and a non-transitory memory having instructions, The instructions, when executed by the processor, cause the processor to: determining a size of a prediction block corresponding to a current video block of a video according to a rule for conversion between the current video block and a bitstream of the video; performing a conversion based on said determining; an affine merge mode is enabled for the current video block, and the rules specify determining a first size of the prediction block in response to whether prediction refinement using optical flow techniques is enabled for the current video block, the current video block having a second size; a first width and a first height of the first size of the prediction block denoted by (M+M0) and (N+N0), respectively, and a second width and a second height of the second size of the current video block denoted by M and N, respectively, where M, M0, N, and N0 are integers equal to or greater than 0; A prediction refinement usefulness flag, which indicates whether to utilize the prediction refinement using optical flow techniques, controls the values ​​of M0 and N0; the values ​​of M0 and N0 are determined independently of the affine flag; Video data processing device.

11. A non-transitory computer-readable storage medium storing instructions, comprising: The instructions cause a processor to: determining a size of a prediction block corresponding to a current video block of a video according to a rule for conversion between the current video block and a bitstream of the video; performing the conversion based on the determining; an affine merge mode is enabled for the current video block, and the rules specify determining a first size of the prediction block in response to whether prediction refinement using optical flow techniques is enabled for the current video block, the current video block having a second size; a first width and a first height of the first size of the prediction block denoted by (M+M0) and (N+N0), respectively, and a second width and a second height of the second size of the current video block denoted by M and N, respectively, where M, M0, N, and N0 are integers equal to or greater than 0; A prediction refinement usefulness flag, which indicates whether to utilize the prediction refinement using optical flow techniques, controls the values ​​of M0 and N0; the values ​​of M0 and N0 are determined independently of the affine flag; A non-transitory computer-readable storage medium.

12. 1. A method of storing a video bitstream, the method comprising: For a current video block of the video, determining a size of a prediction block corresponding to the current video block according to a rule; generating the bitstream based on said determining; and storing the bitstream on a non-transitory computer-readable recording medium; an affine merge mode is enabled for the current video block, and the rules specify determining a first size of the prediction block in response to whether prediction refinement using optical flow techniques is enabled for the current video block, the current video block having a second size; a first width and a first height of the first size of the prediction block denoted by (M+M0) and (N+N0), respectively, and a second width and a second height of the second size of the current video block denoted by M and N, respectively, where M, M0, N, and N0 are integers equal to or greater than 0; A prediction refinement usefulness flag, which indicates whether to utilize the prediction refinement using optical flow techniques, controls the values ​​of M0 and N0; the values ​​of M0 and N0 are determined independently of the affine flag; method.

Citation Information

Cited By

  • Prediction fine-tuning for affine merge and affine motion vector prediction mode

    JP2025023924A

  • Controlling deblocking filtering at different levels in coded video

    US12301799B2

  • Merge with motion vector differencing in affine mode

    US12348761B2

  • Prediction refinement for affine merge and affine motion vector prediction mode

    US12388989B2

  • Syntax signaling in sub-block merge mode

    US12413714B2