WO2021143698A1 - Subpicture boundary filtering in video coding - Google Patents

Subpicture boundary filtering in video coding Download PDF

Info

Publication number
WO2021143698A1
WO2021143698A1 PCT/CN2021/071360 CN2021071360W WO2021143698A1 WO 2021143698 A1 WO2021143698 A1 WO 2021143698A1 CN 2021071360 W CN2021071360 W CN 2021071360W WO 2021143698 A1 WO2021143698 A1 WO 2021143698A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
sub
equal
video
flag
Prior art date
Application number
PCT/CN2021/071360
Other languages
French (fr)
Inventor
Kai Zhang
Zhipin DENG
Hongbin Liu
Li Zhang
Jizheng Xu
Ye-Kui Wang
Yang Wang
Original Assignee
Beijing Bytedance Network Technology Co., Ltd.
Bytedance Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bytedance Network Technology Co., Ltd., Bytedance Inc. filed Critical Beijing Bytedance Network Technology Co., Ltd.
Priority to CN202180009033.0A priority Critical patent/CN115280768A/en
Publication of WO2021143698A1 publication Critical patent/WO2021143698A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • This document is related to video and image coding and decoding technologies.
  • Digital video accounts for the largest bandwidth use on the internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, it is expected that the bandwidth demand for digital video usage will continue to grow.
  • the disclosed techniques may be used by video or image decoder or encoder embodiments for in which sub-picture based coding or decoding is performed.
  • a method of video processing includes determining, for a conversion between a current video block in a current picture of a video and a bitstream of the video, a manner of modifying a vertical coordinate yColSb of a collocated sub-block within a collocated picture of a current picture based on whether sub-pictures are treated as pictures.
  • the collocated picture is one of one or more reference pictures of the current picture.
  • the method also includes performing the conversion based on the determining.
  • a method of video processing includes determining, for a conversion between a current picture of a video that includes at least two subpictures and a bitstream of the video, a manner of applying a filtering operation on a region covering a boundary between the two sub-pictures based on information of the two subpictures.
  • the method also includes performing the conversion according to the determining.
  • a method of video processing includes determining, for a video block in a first video region of a video, whether a position at which a temporal motion vector predictor is determined for a conversion between the video block and a bitstream representation of the current video block using an affine mode is within a second video region; and performing the conversion based on the determining.
  • another method of video processing includes determining, for a video block in a first video region of a video, whether a position at which an integer sample in a reference picture is fetched for a conversion between the video block and a bitstream representation of the current video block is within a second video region, wherein the reference picture is not used in an interpolation process during the conversion; and performing the conversion based on the determining.
  • another method of video processing includes determining, for a video block in a first video region of a video, whether a position at which a reconstructed luma sample value is fetched for a conversion between the video block and a bitstream representation of the current video block is within a second video region; and performing the conversion based on the determining.
  • another method of video processing includes determining, for a video block in a first video region of a video, whether a position at which a check regarding splitting, depth derivation or split flag signaling for the video block is performed during a conversion between the video block and a bitstream representation of the current video block is within a second video region; and performing the conversion based on the determining.
  • another method of video processing includes performing a conversion between a video comprising one or more video pictures comprising one or more video blocks, and a coded representation of the video, wherein the coded representation complies with a coding syntax requirement that the conversion is not to use sub-picture coding/decoding and a dynamic resolution conversion coding/decoding tool or a reference picture resampling tool within a video unit.
  • another method of video processing includes performing a conversion between a video comprising one or more video pictures comprising one or more video blocks, and a coded representation of the video, wherein the coded representation complies with a coding syntax requirement that a first syntax element subpic_grid_idx [i] [j] is not larger than a second syntax element max_subpics_minus1.
  • another method of video processing includes performing a conversion between a first video region of a video and a coded representation of the video, wherein a set of parameters defining coding characteristics of the first video region is included at the first video region level in the coded representation.
  • the above-described method may be implemented by a video encoder apparatus that comprises a processor.
  • the above-described method may be implemented by a video decoder apparatus that comprises a processor.
  • these methods may be embodied in the form of processor-executable instructions and stored on a computer-readable program medium.
  • FIG. 1 shows an example of region constraint in temporal motion vector prediction (TMVP) and sub-block TMVP.
  • FIG. 2 shows an example of a hierarchical motion estimation scheme.
  • FIG. 3 is a block diagram of an example of a hardware platform used for implementing techniques described in the present document.
  • FIG. 4 is a flowchart for an example method of video processing.
  • FIG. 5 shows an example of a picture with 18 by 12 luma CTUs that is partitioned into 12 tiles and 3 raster-scan slices (informative) .
  • FIG. 6 shows an example of picture with 18 by 12 luma CTUs that is partitioned into 24 tiles and 9 rectangular slices (informative) .
  • FIG. 7 shows an example of a picture that is partitioned into 4 tiles, 11 bricks, and 4 rectangular slices (informative) .
  • FIG. 8 shows example of a block coded in palette mode.
  • FIG. 9 shows an example of using of predictor palette to signal palette entries.
  • FIG. 10 shows an example of horizontal and vertical traverse scans.
  • FIG. 11 shows an example of coding of palette indices.
  • FIG. 12 shows an example of merge estimation region (MER) .
  • FIG. 13 is a block diagram showing an example video processing system in which various techniques disclosed herein may be implemented.
  • FIG. 14 is a block diagram that illustrates an example video coding system.
  • FIG. 15 is a block diagram that illustrates an encoder in accordance with some embodiments of the present disclosure.
  • FIG. 16 is a block diagram that illustrates a decoder in accordance with some embodiments of the present disclosure.
  • FIG. 17 is a flowchart representation of a method for video processing in accordance with the present technology.
  • FIG. 18 is a flowchart representation of another method for video processing in accordance with the present technology.
  • the present document provides various techniques that can be used by a decoder of image or video bitstreams to improve the quality of decompressed or decoded digital video or images.
  • video is used herein to include both a sequence of pictures (traditionally called video) and individual images.
  • a video encoder may also implement these techniques during the process of encoding in order to reconstruct decoded frames used for further encoding.
  • Section headings are used in the present document for ease of understanding and do not limit the embodiments and techniques to the corresponding sections. As such, embodiments from one section can be combined with embodiments from other sections.
  • This document is related to video coding technologies. Specifically, it is related to palette coding with employing base colors based representation in video coding. It may be applied to the existing video coding standard like HEVC, or the standard (Versatile Video Coding) to be finalized. It may be also applicable to future video coding standards or video codec.
  • Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO/IEC standards.
  • the ITU-T produced H. 261 and H. 263, ISO/IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H. 262/MPEG-2 Video and H. 264/MPEG-4 Advanced Video Coding (AVC) and H. 265/HEVC standards [1, 2] .
  • AVC H. 264/MPEG-4 Advanced Video Coding
  • H. 265/HEVC standards [1, 2] .
  • the video coding standards are based on the hybrid video coding structure wherein temporal prediction plus transform coding are utilized.
  • Joint Video Exploration Team JVET was founded by VCEG and MPEG jointly in 2015.
  • JVET Joint Exploration Model
  • FIG. 1 illustrates example region constraint in TMVP and sub-block TMVP.
  • TMVP and sub-block TMVP it is constrained that a temporal MV can only be fetched from the collocated CTU plus a column of 4 ⁇ 4 blocks as shown in FIG. 1.
  • sub-picture-based coding techniques based on flexible tiling approach can be implemented. Summary of the sub-picture-based coding techniques includes the following:
  • Whether in-loop filtering across sub-picture boundaries is disabled can be controlled by the bitstream for each sub-picture.
  • the DBF, SAO, and ALF processes are updated for controlling of in-loop filtering operations across sub-picture boundaries.
  • the sub-picture width, height, horizontal offset, and vertical offset are signalled in units of luma samples in SPS.
  • Sub-picture boundaries are constrained to be slice boundaries.
  • Treating a sub-picture as a picture in the decoding process is specified by slightly updating the coding_tree_unit () syntax, and updates to the following decoding processes:
  • Sub-picture IDs are explicitly specified in the SPS and included in the tile group headers to enable extraction of sub-picture sequences without the need of changing VCL NAL units.
  • OSPS Output sub-picture sets
  • subpics_present_flag 1 indicates that sub-picture parameters are present in the present in the SPS RBSP syntax.
  • subpics_present_flag 0 indicates that sub-picture parameters are not present in the present in the SPS RBSP syntax.
  • subpics_present_flag 1 in the RBSP of the SPSs.
  • max_subpics_minus1 plus 1 specifies the maximum number of sub-pictures that may be present in the CVS.
  • max_subpics_minus1 shall be in the range of 0 to 254. The value of 255 is reserved for future use by ITU-T
  • subpic_grid_col_width_minus1 plus 1 specifies the width of each element of the sub-picture identifier grid in units of 4 samples.
  • the length of the syntax element is
  • NumSubPicGridCols (pic_width_max_in_luma_samples+subpic_grid_col_width_minus1*4+3) / (subpic_grid_col_width_minus1*4+4) (7-5)
  • subpic_grid_row_height_minus1 plus 1 specifies the height of each element of the sub-picture identifier grid in units of 4 samples.
  • the length of the syntax element is
  • NumSubPicGridRows (pic_height_max_in_luma_samples+subpic_grid_row_height_minus1*4+3) / (subpic_grid_row_height_minus1*4+4) (7-6)
  • subpic_grid_idx [i] [j] specifies the sub-picture index of the grid position (i, j) .
  • the length of the syntax element is Ceil (Log2 (max_subpics_minus1+1) ) bits.
  • SubPicTop [subpic_grid_idx [i] [j] ] SubPicLeft [subpic_grid_idx [i] [j] ]
  • SubPicWidth [subpic_grid_idx [i] [j] ] SubPicHeight [subpic_grid_idx [i] [j] ]
  • NumSubPics are derived as follows:
  • subpic_treated_as_pic_flag [i] 1 specifies that the i-th sub-picture of each coded picture in the CVS is treated as a picture in the decoding process excluding in-loop filtering operations.
  • subpic_treated_as_pic_flag [i] 0 specifies that the i-th sub-picture of each coded picture in the CVS is not treated as a picture in the decoding process excluding in-loop filtering operations.
  • the value of subpic_treated_as_pic_flag [i] is inferred to be equal to 0.
  • loop_filter_across_subpic_enabled_flag [i] 1 specifies that in-loop filtering operations may be performed across the boundaries of the i-th sub-picture in each coded picture in the CVS.
  • loop_filter_across_subpic_enabled_flag [i] 0 specifies that in-loop filtering operations are not performed across the boundaries of the i-th sub-picture in each coded picture in the CVS.
  • the value of loop_filter_across_subpic_enabled_pic_flag [i] is inferred to be equal to 1.
  • any coded NAL unit of subPicA shall succeed any coded NAL unit of subPicB in decoding order.
  • each sub-picture when decoded, shall have its entire left boundary and entire top boundary consisting of picture boundaries or consisting of boundaries of previously decoded sub-pictures.
  • CtbToSubPicIdx [ctbAddrRs] for ctbAddrRs ranging from 0 to PicSizeInCtbsY-1, inclusive, specifying the conversion from a CTB address in picture raster scan to a sub-picture index, is derived as follows:
  • num_bricks_in_slice_minus1 when present, specifies the number of bricks in the slice minus 1.
  • the value of num_bricks_in_slice_minus1 shall be in the range of 0 to NumBricksInPic-1, inclusive.
  • SubPicRightBoundaryPos and SubPicBotBoundaryPos are derived as follows:
  • SubPicIdx CtbToSubPicIdx [CtbAddrBsToRs [FirstCtbAddrBs [SliceBrickIdx [0] ] ] ] if (subpic_treated_as_pic_flag [SubPicIdx] ) ⁇
  • SubPicLeftBoundaryPos SubPicLeft [SubPicIdx] * (subpic_grid_col_width_minus1+1) *4
  • SubPicRightBoundaryPos (SubPicLeft [SubPicIdx] +SubPicWidth [SubPicIdx] ) * (subpic_grid_col_width_minus1+1) *4
  • SubPicTopBoundaryPos SubPicTop [SubPicIdx] * (subpic_grid_row_height_minus1+1) *4
  • SubPicBotBoundaryPos (SubPicTop [SubPicIdx] +SubPicHeight [SubPicIdx] ) * (subpic_grid_row_height_minus1+1) *4
  • variable cbWidth specifying the width of the current coding block in luma samples
  • variable cbHeight specifying the height of the current coding block in luma samples
  • variable currCb specifies the current luma coding block at luma location (xCb, yCb) .
  • slice_temporal_mvp_enabled_flag is equal to 0 or (cbWidth*cbHeight) is less than or equal to 32, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0.
  • the bottom right collocated motion vector and the bottom and right boundary sample locations are derived as follows:
  • botBoundaryPos subpic_treated_as_pic_flag [SubPicIdx] ?
  • yCb>>CtbLog2SizeY is equal to yColBr>>CtbLog2SizeY
  • yColBr is less than or equal to botBoundaryPos
  • xColBr is less than or equal to rightBoundaryPos
  • the variable colCb specifies the luma coding block covering the modified location given by ( (xColBr>>3) ⁇ 3, (yColBr>>3) ⁇ 3) inside the collocated picture specified by ColPic.
  • the luma location (xColCb, yColCb) is set equal to the top-left sample of the collocated luma coding block specified by colCb relative to the top-left luma sample of the collocated picture specified by ColPic.
  • both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0.
  • Output of this process is a predicted luma sample value predSampleLX L
  • variable picW is set equal to pic_width_in_luma_samples and the variable picH is set equal to pic_height_in_luma_samples.
  • the luma interpolation filter coefficients fb L [p] for each 1/16 fractional sample position p equal to xFrac L or yFrac L are specified in Table 8-10.
  • subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
  • xInt i Clip3 (SubPicLeftBoundaryPos, SubPicRightBoundaryPos, xInt L +i) (8-460)
  • yInt i Clip3 (SubPicTopBoundaryPos, SubPicBotBoundaryPos, yInt L +i) (8-461)
  • xInt i Clip3 (0, picW-1, sps_ref_wraparound_enabled_flag ?ClipH ( (sps_ref_wraparound_offset_minus1+1) *MinCbSizeY, picW, (xInt L +i) ) : (8-462)
  • variable cbWidth specifying the width of the current coding block in luma samples
  • variable cbHeight specifying the height of the current coding block in luma samples.
  • the availability flag availableFlagSbCol is derived as follows.
  • availableFlagSbCol is set equal to 0.
  • slice_temporal_mvp_enabled_flag is equal to 0.
  • the location (xCtb, yCtb) of the top-left sample of the luma coding tree block that contains the current coding block and the location (xCtr, yCtr) of the below-right center sample of the current luma coding block are derived as follows:
  • xCtr xCb+ (cbWidth/2) (8-544)
  • the luma location (xColCtrCb, yColCtrCb) is set equal to the top-left sample of the collocated luma coding block covering the location given by (xCtr, yCtr) inside ColPic relative to the top-left luma sample of the collocated picture specified by ColPic.
  • the derivation process for subblock-based temporal merging base motion data as specified in clause 8.5.5.4 is invoked with the location (xCtb, yCtb) , the location (xColCtrCb, yColCtrCb) , the availability flag availableFlagA 1 , and the prediction list utilization flag predFlagLXA 1 , and the reference index refIdxLXA 1 , and the motion vector mvLXA 1 , with X being 0 and 1 as inputs and the motion vectors ctrMvLX, and the prediction list utilization flags ctrPredFlagLX of the collocated block, with X being 0 and 1, and the temporal motion vector tempMv as outputs.
  • variable availableFlagSbCol is derived as follows:
  • availableFlagSbCol is set equal to 1.
  • the luma location (xSb, ySb) specifying the top-left sample of the current coding subblock relative to the top-left luma sample of the current picture is derived as follows:
  • xSb xCb+xSbIdx*sbWidth+sbWidth/2 (8-551)
  • the location (xColSb, yColSb) of the collocated subblock inside ColPic is derived as follows.
  • yColSb Clip3 (yCtb, Min (CurPicHeightInSamplesY-1, yCtb+ (1 ⁇ CtbLog2SizeY) -1) , (8-553)
  • subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
  • xColSb Clip3 (xCtb, Min (SubPicRightBoundaryPos, xCtb+ (1 ⁇ CtbLog2SizeY) +3) , (8-554)
  • xColSb Clip3 (xCtb, Min (CurPicWidthInSamplesY-1, xCtb+ (1 ⁇ CtbLog2SizeY) +3) , (8-555)
  • variable tempMv is set as follows:
  • variable currPic specifies the current picture.
  • tempMv is set equal to mvL0A 1 :
  • tempMv is set equal to mvL1A 1 :
  • DiffPicOrderCnt (ColPic, RefPicList [1] [refIdxL1A 1 ] ) is equal to 0.
  • the location (xColCb, yColCb) of the collocated block inside ColPic is derived as follows.
  • yColCb Clip3 (yCtb, Min (CurPicHeightInSamplesY-1, yCtb+ (1 ⁇ CtbLog2SizeY) -1) , (8-560)
  • subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
  • xColCb Clip3 (xCtb, Min (SubPicRightBoundaryPos, xCtb+ (1 ⁇ CtbLog2SizeY) +3) , (8-561)
  • xColCb Clip3 (xCtb, Min (CurPicWidthInSamplesY-1, xCtb+ (1 ⁇ CtbLog2SizeY) +3) , (8-562)
  • xSbInt L , ySbInt L a luma location in full-sample units (xSbInt L , ySbInt L ) specifying the top-left sample of the bounding block for reference sample padding relative to the top-left luma sample of the reference picture
  • a luma location (xSb, ySb) specifying the top-left sample of the current subblock relative to the top-left luma sample of the current picture
  • Output of this process is a predicted luma sample value predSampleLX L
  • variable shift1 is set equal to Min (4, BitDepth Y -8)
  • variable shift2 is set equal to 6
  • variable shift3 is set equal to Max (2, 14-BitDepth Y ) .
  • variable picW is set equal to pic_width_in_luma_samples and the variable picH is set equal to pic_height_in_luma_samples.
  • the luma interpolation filter coefficients f L [p] for each 1/16 fractional sample position p equal to xFrac L or yFrac L are derived as follows:
  • the luma interpolation filter coefficients f L [p] are specified in Table 8-11 depending on hpelIfIdx.
  • subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
  • xInt i Clip3 (SubPicLeftBoundaryPos, SubPicRightBoundaryPos, xInt L +i-3) (8-771)
  • yInt i Clip3 (SubPicTopBoundaryPos, SubPicBotBoundaryPos, yInt L +i-3) (8-772)
  • xInt i Clip3 (0, picW-1, sps_ref_wraparound_enabled_flag ? ClipH ( (sps_ref_wraparound_offset_minus1+1) *MinCbSizeY, picW, xInt L +i-3) : (8-773)
  • chroma location in full-sample units (xSbIntC, ySbIntC) specifying the top-left sample of the bounding block for reference sample padding relative to the top-left chroma sample of the reference picture
  • Output of this process is a predicted chroma sample value predSampleLX C
  • variable shift1 is set equal to Min (4, BitDepth C -8)
  • variable shift2 is set equal to 6
  • variable shift3 is set equal to Max (2, 14-BitDepth C ) .
  • the variable picW C is set equal to pic_width_in_luma_samples/SubWidthC and the variable picH C is set equal to pic_height_in_luma_samples/SubHeightC.
  • chroma interpolation filter coefficients f C [p] for each 1/32 fractional sample position p equal to xFrac C or yFrac C are specified in Table 8-13.
  • variable xOffset is set equal to (sps_ref_wraparound_offset_minus1+1) *MinCbSizeY) /SubWidthC.
  • subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
  • xInt i Clip3 (SubPicLeftBoundaryPos/SubWidthC, SubPicRightBoundaryPos/SubWidt hC, xInt L +i) (8-785)
  • yInt i Clip3 (SubPicTopBoundaryPos/SubHeightC, SubPicBotBoundaryPos/SubHeight C, yInt L +i) (8-786)
  • xInt i Clip3 (0, picW C -1, sps_ref_wraparound_enabled_flag? ClipH (xOffset, picW C , xInt C +i-1) : (8-787)
  • an encoder-only temporal filter can be implemented.
  • the filtering is done at the encoder side as a pre-processing step.
  • Source pictures before and after the selected picture to encode are read and a block based motion compensation method relative to the selected picture is applied on those source pictures.
  • Samples in the selected picture are temporally filtered using sample values after motion compensation.
  • the overall filter strength is set depending on the temporal sub layer of the selected picture as well as the QP. Only pictures at temporal sub layers 0 and 1 are filtered and pictures of layer 0 are filter by a stronger filter than pictures of layer 1.
  • the per sample filter strength is adjusted depending on the difference between the sample value in the selected picture and the co-located samples in motion compensated pictures so that small differences between a motion compensated picture and the selected picture are filtered more strongly than larger differences.
  • a temporal filter is introduced directly after reading picture and before encoding. Below are the steps described in more detail.
  • the overall filter strength, s o is set according to the equation below for RA.
  • n is the number of pictures read.
  • Operation 3 Two pictures before and/or after the selected picture (referred to as original picture further down) are read. In the edge cases e.g. if is the first picture or close to the last picture, only the available pictures are read.
  • Operation 4 Motion of the read pictures before and after, relative to the original picture is estimated per 8x8 picture block.
  • L0, L1 and L2 are illustrated in FIG. 2.
  • Subsampled pictures are generated by averaging each 2x2 block for all read pictures and the original picture, e.g. L1 in FIG. 1.
  • L2 is derived from L1 using the same subsampling method.
  • FIG. 2 shows examples of different layers of the hierarchical motion estimation.
  • L0 is the original resolution.
  • L1 is a subsampled version of L0.
  • L2 is a subsampled version of L1.
  • motion estimation is done for each 16x16 block in L2.
  • the squared difference is calculated for each selected motion vector and the motion vector corresponding to the smallest difference is selected.
  • the selected motion vector is then used as initial value when estimating the motion in L1.
  • the same is done for estimating motion in L0.
  • subpixel motion is estimated for each 8x8 block by using an interpolation filter on L0.
  • VTM 6-tap interpolation filter can used:
  • Operation 5 Motion compensation is applied on the pictures before and after the original picture according to the best matching motion for each block, e.g., so that the sample coordinates of the original picture in each block have the best matching coordinates in the referenced pictures.
  • Operation 6 The samples of the processed one by one for the luma and chroma channels as described in the following steps.
  • Operation 7 The new sample value, I n , is calculated using the following formula.
  • I o is the sample value of the original sample
  • I r (i) is the intensity of the corresponding sample of motion compensated picture i
  • w r (i, a) is the weight of motion compensated picture i when the number of available motion compensated pictures is a.
  • the weights, w r (i, a) is defined as follows:
  • weights, w r (i, a) is defined as follows:
  • Operation 8 The filter is applied for the current sample.
  • the resulting sample value is stored separately.
  • Operation 9 The filtered picture is encoded.
  • a picture is divided into one or more tile rows and one or more tile columns.
  • a tile is a sequence of CTUs that covers a rectangular region of a picture.
  • a tile is divided into one or more bricks, each of which consisting of a number of CTU rows within the tile.
  • a tile that is not partitioned into multiple bricks is also referred to as a brick.
  • a brick that is a true subset of a tile is not referred to as a tile.
  • a slice either contains a number of tiles of a picture or a number of bricks of a tile.
  • a sub-picture contains one or more slices that collectively cover a rectangular region of a picture.
  • a slice contains a sequence of tiles in a tile raster scan of a picture.
  • a slice contains a number of bricks of a picture that collectively form a rectangular region of the picture. The bricks within a rectangular slice are in the order of brick raster scan of the slice.
  • FIG. 5 shows an example of raster-scan slice partitioning of a picture, where the picture is divided into 12 tiles and 3 raster-scan slices.
  • FIG. 6 shows an example of rectangular slice partitioning of a picture, where the picture is divided into 24 tiles (6 tile columns and 4 tile rows) and 9 rectangular slices.
  • FIG. 7 shows an example of a picture partitioned into tiles, bricks, and rectangular slices, where the picture is divided into 4 tiles (2 tile columns and 2 tile rows) , 11 bricks (the top-left tile contains 1 brick, the top-right tile contains 5 bricks, the bottom-left tile contains 2 bricks, and the bottom-right tile contain 3 bricks) , and 4 rectangular slices.
  • single_tile_in_pic_flag 1 specifies that there is only one tile in each picture referring to the PPS.
  • single_tile_in_pic_flag 0 specifies that there is more than one tile in each picture referring to the PPS.
  • uniform_tile_spacing_flag 1 specifies that tile column boundaries and likewise tile row boundaries are distributed uniformly across the picture and signalled using the syntax elements tile_cols_width_minus1 and tile_rows_height_minus1.
  • uniform_tile_spacing_flag 0 specifies that tile column boundaries and likewise tile row boundaries may or may not be distributed uniformly across the picture and signalled using the syntax elements num_tile_columns_minus1 and num_tile_rows_minus1 and a list of syntax element pairs tile_column_width_minus1 [i] and tile_row_height_minus1 [i] .
  • the value of uniform_tile_spacing_flag is inferred to be equal to 1.
  • tile_cols_width_minus1 plus 1 specifies the width of the tile columns excluding the right-most tile column of the picture in units of CTBs when uniform_tile_spacing_flag is equal to 1.
  • the value of tile_cols_width_minus1 shall be in the range of 0 to PicWidthInCtbsY-1, inclusive. When not present, the value of tile_cols_width_minus1 is inferred to be equal to PicWidthInCtbsY-1.
  • tile_rows_height_minus1 plus 1 specifies the height of the tile rows excluding the bottom tile row of the picture in units of CTBs when uniform_tile_spacing_flag is equal to 1.
  • the value of tile_rows_height_minus1 shall be in the range of 0 to PicHeightInCtbsY-1, inclusive. When not present, the value of tile_rows_height_minus1 is inferred to be equal to PicHeightInCtbsY-1.
  • num_tile_columns_minus1 plus 1 specifies the number of tile columns partitioning the picture when uniform_tile_spacing_flag is equal to 0.
  • the value of num_tile_columns_minus1 shall be in the range of 0 to PicWidthInCtbsY -1, inclusive. If single_tile_in_pic_flag is equal to 1, the value of num_tile_columns_minus1 is inferred to be equal to 0. Otherwise, when uniform_tile_spacing_flag is equal to 1, the value of num_tile_columns_minus1 is inferred as specified in clause 6.5.1.
  • num_tile_rows_minus1 plus 1 specifies the number of tile rows partitioning the picture when uniform_tile_spacing_flag is equal to 0.
  • the value of num_tile_rows_minus1 shall be in the range of 0 to PicHeightInCtbsY -1, inclusive. If single_tile_in_pic_flag is equal to 1, the value of num_tile_rows_minus1 is inferred to be equal to 0. Otherwise, when uniform_tile_spacing_flag is equal to 1, the value of num_tile_rows_minus1 is inferred as specified in clause 6.5.1.
  • the variable NumTilesInPic is set equal to (num_tile_columns_minus1+1) * (num_tile_rows_minus1+1) .
  • tile_column_width_minus1 [i] plus 1 specifies the width of the i-th tile column in units of CTBs.
  • tile_row_height_minus1 [i] plus 1 specifies the height of the i-th tile row in units of CTBs.
  • brick_splitting_present_flag 1 specifies that one or more tiles of pictures referring to the PPS may be divided into two or more bricks.
  • brick_splitting_present_flag 0 specifies that no tiles of pictures referring to the PPS are divided into two or more bricks.
  • num_tiles_in_pic_minus1 plus 1 specifies the number of tiles in each picture referring to the PPS.
  • the value of num_tiles_in_pic_minus1 shall be equal to NumTilesInPic–1.
  • the value of num_tiles_in_pic_minus1 is inferred to be equal to NumTilesInPic-1.
  • brick_split_flag [i] 1 specifies that the i-th tile is divided into two or more bricks.
  • brick_split_flag [i] 0 specifies that the i-th tile is not divided into two or more bricks.
  • brick_split_flag [i] When not present, the value of brick_split_flag [i] is inferred to be equal to 0.
  • PPS parsing dependency on SPS is introduced by adding the syntax condition "if (RowHeight [i] > 1) " (e.g., similarly for uniform_brick_spacing_flag [i] ) .
  • uniform_brick_spacing_flag [i] 1 specifies that horizontal brick boundaries are distributed uniformly across the i-th tile and signalled using the syntax element brick_height_minus1 [i] .
  • uniform_brick_spacing_flag [i] 0 specifies that horizontal brick boundaries may or may not be distributed uniformly across i-th tile and signalled using the syntax element num_brick_rows_minus2 [i] and a list of syntax elements brick_row_height_minus1 [i] [j] .
  • the value of uniform_brick_spacing_flag [i] is inferred to be equal to 1.
  • brick_height_minus1 [i] plus 1 specifies the height of the brick rows excluding the bottom brick in the i-th tile in units of CTBs when uniform_brick_spacing_flag [i] is equal to 1.
  • the value of brick_height_minus1 shall be in the range of 0 to RowHeight [i] -2, inclusive.
  • the value of brick_height_minus1 [i] is inferred to be equal to RowHeight [i] -1.
  • num_brick_rows_minus2 [i] plus 2 specifies the number of bricks partitioning the i-th tile when uniform_brick_spacing_flag [i] is equal to 0.
  • the value of num_brick_rows_minus2 [i] shall be in the range of 0 to RowHeight [i] -2, inclusive. If brick_split_flag [i] is equal to 0, the value of num_brick_rows_minus2 [i] is inferred to be equal to -1. Otherwise, when uniform_brick_spacing_flag [i] is equal to 1, the value of num_brick_rows_minus2 [i] is inferred as specified in 6.5.1.
  • brick_row_height_minus1 [i] [j] plus 1 specifies the height of the j-th brick in the i-th tile in units of CTBs when uniform_tile_spacing_flag is equal to 0.
  • single_brick_per_slice_flag 1 specifies that each slice that refers to this PPS includes one brick.
  • single_brick_per_slice_flag 0 specifies that a slice that refers to this PPS may include more than one brick.
  • the value of single_brick_per_slice_flag is inferred to be equal to 1.
  • rect_slice_flag 0 specifies that bricks within each slice are in raster scan order and the slice information is not signalled in PPS.
  • rect_slice_flag 1 specifies that bricks within each slice cover a rectangular region of the picture and the slice information is signalled in the
  • num_slices_in_pic_minus1 plus 1 specifies the number of slices in each picture referring to the PPS.
  • the value of num_slices_in_pic_minus1 shall be in the range of 0 to NumBricksInPic-1, inclusive.
  • single_brick_per_slice_flag is equal to 1
  • the value of num_slices_in_pic_minus1 is inferred to be equal to NumBricksInPic-1.
  • bottom_right_brick_idx_length_minus1 plus 1 specifies the number of bits used to represent the syntax element bottom_right_brick_idx_delta [i] .
  • the value of bottom_right_brick_idx_length_minus1 shall be in the range of 0 to Ceil (Log2 (NumBricksInPic) ) -1, inclusive.
  • bottom_right_brick_idx_delta [i] when i is greater than 0 specifies the difference between the brick index of the brick located at the bottom-right corner of the i-th slice and and the brick index of the bottom-right corner of the (i–1) -th slice.
  • bottom_right_brick_idx_delta [0] specifies the brick index of the bottom right corner of the 0-th slice.
  • the value of the BottomRightBrickIdx [num_slices_in_pic_minus1] is inferred to be equal to NumBricksInPic–1.
  • the length of the bottom_right_brick_idx_delta [i] syntax element is bottom_right_brick_idx_length_minus1+1 bits.
  • brick_idx_delta_sign_flag [i] 1 indicates a positive sign for bottom_right_brick_idx_delta [i] .
  • sign_bottom_right_brick_idx_delta [i] 0 indicates a negative sign for bottom_right_brick_idx_delta [i] .
  • a slice shall include either a number of complete tiles or only a consecutive sequence of complete bricks of one tile.
  • the variable TopLeftBrickIdx [i] , BottomRightBrickIdx [i] , NumBricksInSlice [i] and BricksToSliceMap [j] which specify the brick index of the brick located at the top left corner of the i-th slice, the brick index of the brick located at the bottom right corner of the i-th slice, the number of bricks in the i-th slice and the mapping of bricks to slices, are derived as follows:
  • slice_pic_parameter_set_id the value of each of the slice header syntax elements slice_pic_parameter_set_id, non_reference_picture_flag, colour_plane_id, slice_pic_order_cnt_lsb, recovery_poc_cnt, no_output_of_prior_pics_flag, pic_output_flag, and slice_temporal_mvp_enabled_flag shall be the same in all slice headers of a coded picture.
  • the variable CuQpDeltaVal specifying the difference between a luma quantization parameter for the coding unit containing cu_qp_delta_abs and its prediction.
  • the variables CuQpOffset Cb , CuQpOffset Cr , and CuQpOffset CbCr specifying values to be used when determining the respective values of the Qp′ Cb , Qp′ Cr , and Qp′ CbCr quantization parameters for the coding unit containing cu_chroma_qp_offset_flag, are all set equal to 0.
  • slice_pic_parameter_set_id specifies the value of pps_pic_parameter_set_id for the PPS in use.
  • the value of slice_pic_parameter_set_id shall be in the range of 0 to 63, inclusive.
  • TemporalId of the current picture shall be greater than or equal to the value of TemporalId of the PPS that has pps_pic_parameter_set_id equal to slice_pic_parameter_set_id.
  • slice_address specifies the slice address of the slice. When not present, the value of slice_address is inferred to be equal to 0.
  • the slice address is the brick ID as specified by Equation (7-59) .
  • slice_address is Ceil (Log2 (NumBricksInPic) ) bits.
  • slice_address shall be in the range of 0 to NumBricksInPic-1, inclusive.
  • the slice address is the slice ID of the slice.
  • slice_address is signalled_slice_id_length_minus1+1 bits.
  • slice_address shall be in the range of 0 to num_slices_in_pic_minus1, inclusive. Otherwise, the value of slice_address shall be in the range of 0 to 2 (signalled_slice_id_length_minus1+1) -1, inclusive.
  • slice_address shall not be equal to the value of slice_address of any other coded slice NAL unit of the same coded picture.
  • the shapes of the slices of a picture shall be such that each brick, when decoded, shall have its entire left boundary and entire top boundary consisting of a picture boundary or consisting of boundaries of previously decoded brick (s) .
  • num_bricks_in_slice_minus1 when present, specifies the number of bricks in the slice minus 1.
  • the value of num_bricks_in_slice_minus1 shall be in the range of 0 to NumBricksInPic-1, inclusive.
  • SubPicRightBoundaryPos and SubPicBotBoundaryPos are derived as follows:
  • SubPicBotBoundaryPos (SubPicTop [SubPicIdx] +SubPicHeight [SubPicIdx] ) *
  • subpics_present_flag 1 indicates that sub-picture parameters are present in the present in the SPS RBSP syntax.
  • subpics_present_flag 0 indicates that sub-picture parameters are not present in the present in the SPS RBSP syntax.
  • subpics_present_flag 1 in the RBSP of the SPSs.
  • sps_num_subpics_minus1 plus 1 specifies the number of sub-pictures.
  • sps_num_subpics_minus1 shall be in the range of 0 to 254. When not present, the value of sps_num_subpics_minus1 is inferred to be equal to 0.
  • subpic_ctu_top_left_x [i] specifies horizontal position of top left CTU of i-th sub-picture in unit of CtbSizeY.
  • the length of the syntax element is
  • subpic_ctu_top_left_y [i] specifies vertical position of top left CTU of i-th sub-picture in unit of CtbSizeY.
  • the length of the syntax element is
  • subpic_width_minus1 [i] plus 1 specifies the width of the i-th sub-picture in units of CtbSizeY.
  • the length of the syntax element is
  • subpic_height_minus1 [i] plus 1 specifies the height of the i-th sub-picture in units of CtbSizeY.
  • the length of the syntax element is Ceil (Log2 (pic_height_max_in_luma_samples/CtbSizeY) ) bits.
  • the value of subpic_height_minus1 [i] is inferred to be equal to
  • subpic_treated_as_pic_flag [i] 1 specifies that the i-th sub-picture of each coded picture in the CVS is treated as a picture in the decoding process excluding in-loop filtering operations.
  • subpic_treated_as_pic_flag [i] 0 specifies that the i-th sub-picture of each coded picture in the CVS is not treated as a picture in the decoding process excluding in-loop filtering operations.
  • the value of subpic_treated_as_pic_flag [i] is inferred to be equal to 0.
  • loop_filter_across_subpic_enabled_flag [i] 1 specifies that in-loop filtering operations may be performed across the boundaries of the i-th sub-picture in each coded picture in the CVS.
  • loop_filter_across_subpic_enabled_flag [i] 0 specifies that in-loop filtering operations are not performed across the boundaries of the i-th sub-picture in each coded picture in the CVS.
  • the value of loop_filter_across_subpic_enabled_pic_flag [i] is inferred to be equal to 1.
  • any coded NAL unit of subPicA shall succeed any coded NAL unit of subPicB in decoding order.
  • each sub-picture when decoded, shall have its entire left boundary and entire top boundary consisting of picture boundaries or consisting of boundaries of previously decoded sub-pictures.
  • sps_subpic_id_present_flag 1 specifies that sub-picture Id mapping is present in the SPS.
  • sps_subpic_id_present_flag 0 specifies that sub-picture Id mapping is not present in the SPS.
  • sps_subpic_id_signalling_present_flag 1 specifies that sub-picture Id mapping is signalled in the SPS.
  • sps_subpic_id_signalling_present_flag 0 specifies that sub-picture Id mapping is not signalled in the SPS.
  • the value of sps_subpic_id_signalling_present_flag is inferred to be equal to 0.
  • sps_subpic_id_len_minus1 plus 1 specifies the number of bits used to represent the syntax element sps_subpic_id [i] .
  • the value of sps_subpic_id_len_minus1 shall be in the range of 0 to 15, inclusive.
  • sps_subpic_id [i] specifies that sub-picture Id of the i-th sub-picture.
  • the length of the sps_subpic_id [i] syntax element is sps_subpic_id_len_minus1+1 bits.
  • ph_pic_parameter_set_id specifies the value of pps_pic_parameter_set_id for the PPS in use.
  • the value of ph_pic_parameter_set_id shall be in the range of 0 to 63, inclusive.
  • TemporalId of the picture header shall be greater than or equal to the value of TemporalId of the PPS that has pps_pic_parameter_set_id equal to ph_pic_parameter_set_id.
  • ph_subpic_id_signalling_present_flag 1 specifies that sub-picture Id mapping is signalled in the picture header.
  • ph_subpic_id_signalling_present_flag 0 specifies that sub-picture Id mapping is not signalled in the picture header.
  • ph_subpic_id_len_minus1 plus 1 specifies the number of bits used to represent the syntax element ph_subpic_id [i] .
  • the value of pic_subpic_id_len_minus1 shall be in the range of 0 to 15, inclusive.
  • bitstream conformance It is a requirement of bitstream conformance that the value of ph_subpic_id_len_minus1 shall be the same for all picture headers that are referred to by coded pictures in a CVS.
  • ph_subpic_id [i] specifies that sub-picture Id of the i-th sub-picture.
  • the length of the ph_subpic_id [i] syntax element is ph_subpic_id_len_minus1+1 bits.
  • the list SubpicIdList [i] is derived as follows:
  • SubpicIdList [i] sps_subpic_id_present_flag? (7-39)
  • Inputs to this process are the reconstructed picture prior to deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr .
  • Outputs of this process are the modified reconstructed picture after deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr .
  • the vertical edges in a picture are filtered first. Then the horizontal edges in a picture are filtered with samples modified by the vertical edge filtering process as input.
  • the vertical and horizontal edges in the CTBs of each CTU are processed separately on a coding unit basis.
  • the vertical edges of the coding blocks in a coding unit are filtered starting with the edge on the left-hand side of the coding blocks proceeding through the edges towards the right-hand side of the coding blocks in their geometrical order.
  • the horizontal edges of the coding blocks in a coding unit are filtered starting with the edge on the top of the coding blocks proceeding through the edges towards the bottom of the coding blocks in their geometrical order.
  • the filtering process is specified on a picture basis in this Specification, the filtering process can be implemented on a coding unit basis with an equivalent result, provided the decoder properly accounts for the processing dependency order so as to produce the same output values.
  • the deblocking filter process is applied to all coding subblock edges and transform block edges of a picture, except the following types of edges:
  • variable treeType specifying whether the luma (DUAL_TREE_LUMA) or chroma components (DUAL_TREE_CHROMA) are currently processed
  • ChromaArrayType is not equal to 0 and treeType is equal to DUAL_TREE_CHROMA, the arrays recPicture Cb and recPicture Cr ,
  • variable edgeType specifying whether a vertical (EDGE_VER) or a horizontal (EDGE_HOR) edge is filtered.
  • Outputs of this process are the modified reconstructed picture after deblocking, i.e:
  • ChromaArrayType is not equal to 0 and treeType is equal to DUAL_TREE_CHROMA, the arrays recPicture Cb and recPicture Cr .
  • edges are filtered by the following ordered steps:
  • variable filterEdgeFlag is derived as follows:
  • edgeType is equal to EDGE_VER and one or more of the following conditions are true, filterEdgeFlag is set equal to 0:
  • the left boundary of the current coding block is the left boundary of the picture.
  • the left boundary of the current coding block is the left or right boundary of the sub-picture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0.
  • the left boundary of the current coding block is the left boundary of the tile and loop_filter_across_tiles_enabled_flag is equal to 0.
  • the left boundary of the current coding block is the left boundary of the slice and loop_filter_across_slices_enabled_flag is equal to 0.
  • the left boundary of the current coding block is one of the vertical virtual boundaries of the picture and VirtualBoundariesDisabledFlag is equal to 1.
  • variable filterEdgeFlag is set equal to 0:
  • the top boundary of the current luma coding block is the top boundary of the picture.
  • the top boundary of the current coding block is the top or bottom boundary of the sub-picture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0.
  • the top boundary of the current coding block is the top boundary of the tile and loop_filter_across_tiles_enabled_flag is equal to 0.
  • the top boundary of the current coding block is the top boundary of the slice and loop_filter_across_slices_enabled_flag is equal to 0.
  • the top boundary of the current coding block is one of the horizontal virtual boundaries of the picture and VirtualBoundariesDisabledFlag is equal to 1.
  • filterEdgeFlag is set equal to 1.
  • TPM triangular Prediction Mode
  • HMVP History-based Motion vector Prediction
  • VVC maintains a table of motion information to be used for motion vector prediction.
  • the table is updated after decoding an inter-coded block, but it is not updated if the inter-coded block is TPM-coded.
  • GEO geometric partition mode
  • ALF Adaptive Loop-Filter
  • Virtual Boundary (VB) is adopted in VVC to make ALF friendly to hardware design.
  • VB Virtual Boundary
  • ALF is conducted in an ALF processing unit bounded by two ALF virtual boundaries.
  • CC-ALF cross-component ALF
  • the sub-picture level information SEI message contains information about the level that sub-pictures in the bitstream conform to when testing conformance of extracted bitstreams containing the sub-pictures according to Annex A.
  • a sub-picture level information SEI message When a sub-picture level information SEI message is present for any picture of a CLVS, a sub-picture level information SEI message shall be present for the first picture of the CLVS.
  • the sub-picture level information SEI message persists for the current layer in decoding order from the current picture until the end of the CLVS. All sub-picture level information SEI messages that apply to the same CLVS shall have the same content.
  • sli_seq_parameter_set_id indicates and shall be equal to the sps_seq_parameter_set_id for the SPS that is referred to by the coded picture associated with the sub-picture level information SEI message.
  • the value of sli_seq_parameter_set_id shall be equal to the value of pps_seq_parameter_set_id in the PPS referenced by the ph_pic_parameter_set_id of the PH of the coded picture associated with the sub-picture level information SEI message.
  • subpic_treated_as_pic_flag [i] shall be equal to 1 for each value of i in the range of 0 to sps_num_subpics_minus1, inclusive.
  • num_ref_levels_minus1 plus 1 specifies the number of reference levels signalled for each of the sps_num_subpics_minus1+1 sub-pictures.
  • explicit_fraction_present_flag 1 specifies that the syntax elements ref_level_fraction_minus1 [i] are present.
  • explicit_fraction_present_flag 0 specifies that the syntax elements ref_level_fraction_minus1 [i] are not present.
  • ref_level_idc [i] indicates a level to which each sub-picture conforms as specified in Annex A. Bitstreams shall not contain values of ref_level_idc other than those specified in Annex A. Other values of ref_level_idc [i] are reserved for future use by ITU-T
  • ref_level_fraction_minus1 [i] [j] plus 1 specifies the fraction of the level limits associated with ref_level_idc [i] that the j-th sub-picture conforms to as specified in clause A. 4. 1.
  • SubPicSizeY [j] is set equal to (subpic_width_minus1 [j] +1) * (subpic_height_minus1 [j] +1) .
  • ref_level_fraction_minus1 [i] [j] is inferred to be equal to Ceil (256*SubPicSizeY [j] ⁇ PicSizeInSamplesY*MaxLumaPs (general_level_idc) ⁇ MaxLu maPs (ref_level_idc [i] ) –1.
  • variable RefLevelFraction [i] [j] is set equal to ref_level_fraction_minus1 [i] [j] +1.
  • SubPicNumTileCols [j] and SubPicNumTileRows [j] are derived as follows:
  • SubPicCpbSizeVcl [i] [j] and SubPicCpbSizeNal [i] [j] are derived as follows:
  • the resulting bitstream has a CpbSize (either indicated in the SPS or inferred) that is greater than or equal to SubPicCpbSizeVcl [i] [j] and SubPicCpbSizeNal [i] [j] .
  • bitstream conformance it is a requirement of bitstream conformance that the bitstreams resulting from extracting the j-th sub-picture for j in the range of 0 to sps_num_subpics_minus1, inclusive, and conforming to a profile with general_tier_flag equal to 0 and level equal to ref_level_idc [i] for i in the range of 0 to num_ref_level_minus1, inclusive, shall obey the following constraints for each bitstream conformance test as specified in Annex C:
  • Ceil (256*SubPicSizeY [i] ⁇ RefLevelFraction [i] [j] ) shall be less than or equal to MaxLumaPs, where MaxLumaPs is specified in Table A. 1.
  • Ceil 256* (subpic_width_minus1 [i] +1) ⁇ RefLevelFraction [i] [j] ) shall be less than or equal to Sqrt (MaxLumaPs*8) .
  • Ceil 256* (subpic_height_minus1 [i] +1) ⁇ RefLevelFraction [i] [j] ) shall be less than or equal to Sqrt (MaxLumaPs*8) .
  • SubPicNumTileCols [j] shall be less than or equal to MaxTileCols and of SubPicNumTileRows [j] shall be less than or equal to MaxTileRows, where MaxTileCols and MaxTileRows are specified in Table A. 1.
  • the level information of the sub-picture set is derived.
  • SubPicSetAccLevelFraction [i] for the total level fraction with respect to the reference level ref_level_idc [i] and the variables SubPicSetCpbSizeVcl [i] [j] and SubPicSetCpbSizeNal [i] [j] of the sub-picture set, are derived as follows:
  • SubPicSetLevelIdc The value of the sub-picture set sequence level indicator, SubPicSetLevelIdc, is derived as follows:
  • SubPicSetLevelIdc general_level_idc
  • SubPicSetLevelIdc ref_level_idc [i]
  • MaxTileCols and MaxTileRows are specified in Table A. 1 for ref_level_idc [i] .
  • SubPicSetLevelIdc shall obey the following constraints for each bitstream conformance test as specified in Annex C:
  • SubPicSetCpbSizeVcl [i] shall be less than or equal to CpbVclFactor *MaxCPB, where CpbVclFactor is specified in Table A. 3 and MaxCPB is specified in Table A. 1 in units of CpbVclFactor bits.
  • SubPicSetCpbSizeVcl [i] shall be less than or equal to CpbNalFactor *MaxCPB, where CpbNalFactor is specified in Table A. 3, and MaxCPB is specified in Table A. 1 in units of CpbNalFactor bits. MaxCPB
  • the resulting bitstream has a CpbSize (either indicated in the SPS or inferred) that is greater than or equal to SubPicCpbSizeVcl [i] [j] and SubPicSetCpbSizeNal [i] [j] .
  • palette mode The basic idea behind a palette mode is that the pixels in the CU are represented by a small set of representative colour values. This set is referred to as the palette. And it is also possible to indicate a sample that is outside the palette by signalling an escape symbol followed by (possibly quantized) component values. This kind of pixel is called escape pixel.
  • the palette mode is illustrated in FIG. 10. As depicted in FIG. 10, for each pixel with three coloc components (luma, and two chroma components) , an index to the palette is founded, and the block could be reconstructed based on the founded values in the palette.
  • quantization (at encoder) is applied to samples/pixels and quantized values are signaled; and dequantization (at decoder) is applied
  • a predictor palette is maintained which is updated after decoding a palette coded block.
  • the predictor palette is initialized at the beginning of each slice and each tile.
  • the maximum size of the palette as well as the predictor palette is signalled in the SPS.
  • a palette_predictor_initializer_present_flag is introduced in the PPS. When this flag is 1, entries for initializing the predictor palette are signalled in the bitstream.
  • the size of predictor palette is reset to 0 or initialized using the predictor palette initializer entries signalled in the PPS.
  • a predictor palette initializer of size 0 was enabled to allow explicit disabling of the predictor palette initialization at the PPS level.
  • palette_mode_enabled_flag 1 specifies that the decoding process for palette mode may be used for intra blocks.
  • palette_mode_enabled_flag 0 specifies that the decoding process for palette mode is not applied. When not present, the value of palette_mode_enabled_flag is inferred to be equal to 0.
  • palette_max_size specifies the maximum allowed palette size. When not present, the value of palette_max_size is inferred to be 0.
  • delta_palette_max_predictor_size specifies the difference between the maximum allowed palette predictor size and the maximum allowed palette size. When not present, the value of delta_palette_max_predictor_size is inferred to be 0.
  • the variable PaletteMaxPredictorSize is derived as follows:
  • PaletteMaxPredictorSize palette_max_size + delta_palette_max_predictor_size (0-57) It is a requirement of bitstream conformance that the value of delta_palette_max_predictor_size shall be equal to 0 when palette_max_size is equal to 0.
  • sps_palette_predictor_initializer_present_flag 1 specifies that the sequence palette predictors are initialized using the sps_palette_predictor_initializers.
  • sps_palette_predictor_initializer_flag 0 specifies that the entries in the sequence palette predictor are initialized to 0.
  • the value of sps_palette_predictor_initializer_flag is inferred to be equal to 0.
  • sps_num_palette_predictor_initializer_minus1 plus 1 specifies the number of entries in the sequence palette predictor initializer.
  • bitstream conformance It is a requirement of bitstream conformance that the value of sps_num_palette_predictor_initializer_minus1 plus 1 shall be less than or equal to
  • sps_palette_predictor_initializers [comp] [i] specifies the value of the comp-th component of the i-th palette entry in the SPS that is used to initialize the array PredictorPaletteEntries.
  • the value of the sps_palette_predictor_initializers [0] [i] shall be in the range of 0 to (1 ⁇ BitDepth Y ) -1, inclusive
  • the values of sps_palette_predictor_initializers [1] [i] and sps_palette_predictor_initializers [2] [i] shall be in the range of 0 to (1 ⁇ BitDepth C ) -1, inclusive.
  • pps_palette_predictor_initializer_present_flag 1 specifies that the palette predictor initializers used for the pictures referring to the PPS are derived based on the palette predictor initializers specified by the PPS.
  • pps_palette_predictor_initializer_flag 0 specifies that the palette predictor initializers used for the pictures referring to the PPS are inferred to be equal to those specified by the active SPS.
  • the value of pps_palette_predictor_initializer_present_flag is inferred to be equal to 0.
  • pps_palette_predictor_initializer_present_flag shall be equal to 0 when either palette_max_size is equal to 0 or palette_mode_enabled_flag is equal to 0.
  • pps_num_palette_predictor_initializer specifies the number of entries in the picture palette predictor initializer.
  • pps_num_palette_predictor_initializer shall be less than or equal to PaletteMaxPredictorSize.
  • the palette predictor variables are initialized as follows:
  • the coding tree unit is the first coding tree unit in a tile, the following applies:
  • the location (xNbT, yNbT) of the top-left luma sample of the spatial neighbouring block T is derived using the location (x0, y0) of the top-left luma sample of the current coding tree block as follows:
  • the availability derivation process for a block in z-scan order is invoked with the location (xCurr, yCurr) set equal to (x0, y0) and the neighbouring location (xNbY, yNbY) set equal to (xNbT, yNbT) as inputs, and the output is assigned to availableFlagT.
  • Outputs of this process are the initialized palette predictor variables PredictorPaletteSize and PredictorPaletteEntries.
  • variable numComps is derived as follows:
  • PredictorPaletteSize is set equal to pps_num_palette_predictor_initializer.
  • PredictorPaletteSize is set equal to sps_num_palette_predictor_initializer_minus1 plus 1.
  • PredictorPaletteSize is set equal to 0.
  • a reuse flag is signalled to indicate whether it is part of the current palette. This is illustrated in FIG. 9.
  • the reuse flags are sent using run-length coding of zeros.
  • the number of new palette entries are signalled using Exponential Golomb (EG) code of order 0, i.e., EG-0.
  • EG-0 Exponential Golomb
  • the palette indices are coded using horizontal and vertical traverse scans as shown in FIG. 15.
  • the scan order is explicitly signaled in the bitstream using the palette_transpose_flag. For the rest of the subsection it is assumed that the scan is horizontal.
  • the palette indices are coded using two palette sample modes: 'COPY_LEFT' and 'COPY_ABOVE' .
  • the palette index is assigned to a decoded index.
  • the palette index of the sample in the row above is copied.
  • a run value is signaled which specifies the number of subsequent samples that are also coded using the same mode.
  • the value of an index for the escape sample is the number of palette entries.
  • escape symbol is part of the run in 'COPY_LEFT’ or 'COPY_ABOVE' mode, the escape component values are signaled for each escape symbol.
  • the coding of palette indices is illustrated in FIG. 16.
  • This syntax order is accomplished as follows. First the number of index values for the CU is signaled. This is followed by signaling of the actual index values for the entire CU using truncated binary coding. Both the number of indices as well as the index values are coded in bypass mode. This groups the index-related bypass bins together. Then the palette sample mode (if necessary) and run are signaled in an interleaved manner. Finally, the component escape values corresponding to the escape samples for the entire CU are grouped together and coded in bypass mode. The binarization of escape samples is EG coding with 3 rd order, i.e., EG-3.
  • last_run_type_flag An additional syntax element, last_run_type_flag, is signaled after signaling the index values. This syntax element, in conjunction with the number of indices, eliminates the need to signal the run value corresponding to the last run in the block.
  • each palette entry consists of 3 components.
  • the chroma samples are associated with luma sample indices that are divisible by 2. After reconstructing the palette indices for the CU, if a sample has only a single component associated with it, only the first component of the palette entry is used. The only difference in signaling is for the escape component values. For each escape sample, the number of escape component values signaled may be different depending on the number of components associated with that sample.
  • the index adjustment process in the palette index coding.
  • the left neighboring index or the above neighboring index should be different from the current index. Therefore, the range of the current palette index could be reduced by 1 by removing one possibility. After that, the index is signaled with truncated binary (TB) binarization.
  • TB truncated binary
  • the variable PaletteIndexMap [xC] [yC] specifies a palette index, which is an index to the array represented by CurrentPaletteEntries.
  • the array indices xC, yC specify the location (xC, yC) of the sample relative to the top-left luma sample of the picture.
  • the value of PaletteIndexMap [xC] [yC] shall be in the range of 0 to MaxPaletteIndex, inclusive.
  • variable adjustedRefPaletteIndex is derived as follows:
  • xcPrev x0+TraverseScanOrder [log2CbWidth] [log2bHeight] [PaletteScanPos-1] [0]
  • CurrPaletteIndex is derived as follows:
  • MER is adopted into HEVC.
  • the way the merge candidate list is constructed introduces dependencies between neighboring blocks.
  • the motion estimation stage of neighboring blocks is typically performed in parallel or at least pipelined to increase the throughput.
  • the motion estimation stage for the merge mode would typically just consist of the candidate list construction and the decision which candidate to choose, based on a cost function. Due to the aforementioned dependency between neighboring blocks, merge candidate lists of neighboring blocks cannot be generated in parallel and represent a bottleneck for parallel encoder designs.
  • a parallel merge estimation level was introduced in HEVC that indicates the region in which merge candidate lists can be independently derived by checking whether a candidate block is located in that merge estimation region (MER) .
  • MER merge estimation region
  • a candidate block that is in the same MER is not included in the merge candidate list.
  • this level is e.g. 32
  • all prediction units in a 32x32 area can construct the merge candidate list in parallel since all merge candidates that are in the same 3232 MER, are not inserted in the list.
  • FIG. 12 illustrates that example showing a CTU partitioning with seven CUs and ten PUs. All potential merge candidates for the first PU0 are available because they are outside the first 32x32 MER.
  • merge candidate lists of PUs 2-6 cannot include motion data from these PUs when the merge estimation inside that MER should be independent. Therefore, when looking at a PU5 for example, no merge candidates are available and hence not inserted in the merge candidate list. In that case, the merge list of PU5 consists only of the temporal candidate (if available) and zero MV candidates.
  • the parallel merge estimation level is adaptive and signaled as log2_parallel_merge_level_minus2 in the picture parameter set. The following MER sizes are allowed: 44 (no parallel merge estimation possible) , 8x8, 16x16, 32x32 and 64x64.
  • the merge estimation region is larger than a 4x4 block, another modification of the merge list construction to increase the throughput kicks in.
  • a single merge candidate list is used for all PUs inside that CU.
  • A. TMVP in the affine constructed candidates may fetch a MV in the collocated picture out of the range of the current sub-picture.
  • B When deriving gradients in Bi-Directional Optical Flow (BDOF) and Prediction Refinement Optical Flow (PROF) , two extended rows and two extended columns of integer reference samples are required to be fetched. These reference samples may be out of the range of the current sub-picture.
  • BDOF Bi-Directional Optical Flow
  • PROF Prediction Refinement Optical Flow
  • the accessed reconstructed luma samples may be out of the range of the range of the current sub-picture.
  • the neighboring block may be out of the range of the current sub-picture, when deriving the luma intra prediction mode, reference samples for intra prediction, reference samples for CCLM, neighboring block availability for spatial neighboring candidates for merge/AMVP/CIIP/IBC/LMCS, quantization parameters, CABAC initialization process, ctxInc derivation using left and above syntax elements, and ctxIncfor the syntax element mtt_split_cu_vertical_flag.
  • the representation of sub-picture may lead to sub-picture with incomplete CTUs.
  • the CTU partitions and CU splitting process may need to consider incomplete CTUs.
  • the signaled syntax elements related to sub-picture may be arbitrarily large, which may cause an overflow problem.
  • the sub-picture and sub-picture grid is defined in units of 4 samples. And the length of syntax element is dependent on the picture height divided by 4. However, since the current pic_width_in_luma_samples and pic_height_in_luma_samples shall be an integer multiple of Max (8, MinCbSizeY) , the sub-picture grid may need to be defined in units of 8 samples.
  • the SPS syntax, pic_width_max_in_luma_samples and pic_height_max_in_luma_samples may need to be restricted to be no smaller than 8.
  • the information could be inferred without signaling in some cases.
  • the IDs of two sub-pictures may be identical.
  • pic_width_max_in_luma_samples /CtbSizeY may be equal to 0, resulting in a meaningless Log2 () operation.
  • ID in PH is more preferable than in PPS, but less preferable than in SPS, which is inconsistent.
  • log2_transform_skip_max_size_minus2 in PPS is parsed depending on sps_transform_skip_enabled_flag in SPS, resulting in a parsing dependency.
  • loop_filter_across_subpic_enabled_flag for deblocking only consider the current sub-picture, without considering the neighbouring sub-picture.
  • the range of the vertical coordinator of the collocated subblock inside the collocated picture is not limited when subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, which may refer to the samples outside of the sub-picture.
  • sub-pictures are designed to provide a flexibility that regions at same positions in pictures of a sequences can be decoded or extracted independently.
  • the region may be under some special requirements. For example, it may be a Region of Interest (ROI) , which requires a high quality.
  • ROI Region of Interest
  • it may serve as a trace for fast skimming the video.
  • it may provide a low-resolution, low-complexity and low power-consuming bit-stream, which may be fed to a complexity-sensitive end user. All those applications may require that the region of a sub-picture should be encoded with a configuration different to other parts.
  • temporal filter is used to represent filters that require samples in other pictures.
  • Max (x, y) returns the larger one of x and y.
  • Min (x, y) returns the smaller one of x and y.
  • the position (named position RB) at which a temporal MV predictor is fetched in a picture to generate affine motion candidates must be in a required sub-picture, assuming the top-left corner coordinate of the required sub-picture is (xTL, yTL) and bottom-right coordinate of the required sub-picture is (xBR, yBR) .
  • the required sub-picture is the sub-picture covering the current block.
  • the temporal MV predictor is treated as unavailable.
  • position RB is out of the required sub-picture if x > xBR.
  • position RB is out of the required sub-picture if y > yBR.
  • position RB is out of the required sub-picture if x ⁇ xTL.
  • position RB is out of the required sub-picture if y ⁇ yTL.
  • position RB if outside of the required sub-picture, a replacement of RB is utilized.
  • the replacement position shall be in the required sub-picture.
  • position RB is clipped to be in the required sub-picture.
  • the position RB may be the bottom right position inside the corresponding block of current block in the collocated picture.
  • the proposed method may be utilized in other coding tools which require to access motion information from a picture different than the current picture.
  • whether the above methods are applied may depend on one or more syntax elements signaled in VPS/DPS/SPS/PPS/APS/slice header/tile group header.
  • the syntax element may be subpic_treated_as_pic_flag [SubPicIdx] , where SubPicIdx is the sub-picture index of sub-picture covering the current block.
  • the position (named position S) at which an integer sample is fetched in a reference not used in the interpolation process must be in a required sub-picture, assuming the top-left corner coordinate of the required sub-picture is (xTL, yTL) and the bottom-right coordinate of the required sub-picture is (xBR, yBR) .
  • the required sub-picture is the sub-picture covering the current block.
  • position S is out of the required sub-picture if x > xBR.
  • position S is out of the required sub-picture if y > yBR.
  • position S is out of the required sub-picture if x ⁇ xTL.
  • position S is out of the required sub-picture if y ⁇ yTL.
  • position S is clipped to be in the required sub-picture.
  • whether position S must be in a required sub-picture may depend on one or more syntax elements signaled in VPS/DPS/SPS/PPS/APS/slice header/tile group header.
  • the syntax element may be subpic_treated_as_pic_flag [SubPicIdx] , where SubPicIdx is the sub-picture index of sub-picture covering the current block.
  • the fetched integer sample is used to generate gradients in BDOF and/or PORF.
  • the position (named position R) at which the reconstructed luma sample value is fetched may be in a required sub-picture, assuming the top-left corner coordinate of the required sub-picture is (xTL, yTL) and the bottom-right coordinate of the required sub-picture is (xBR, yBR) .
  • the required sub-picture is the sub-picture covering the current block.
  • position R is out of the required sub-picture if x > xBR.
  • position R is out of the required sub-picture if y > yBR.
  • position R is out of the required sub-picture if x ⁇ xTL.
  • position R is out of the required sub-picture if y ⁇ yTL.
  • position R is clipped to be in the required sub-picture.
  • whether position R must be in a required sub-picture may depend on one or more syntax elements signaled in VPS/DPS/SPS/PPS/APS/slice header/tile group header.
  • the syntax element may be subpic_treated_as_pic_flag [SubPicIdx] , where SubPicIdx is the sub-picture index of sub-picture covering the current block.
  • the fetched luma sample is used to derive the scaling factor for the chroma component (s) in LMCS.
  • the position (named position N) at which the picture boundary check for BT/TT/QT splitting, BT/TT/QT depth derivation, and/or the signaling of CU split flag must be in a required sub-picture, assuming the top-left corner coordinate of the required sub-picture is (xTL, yTL) and the bottom-right coordinate of the required sub-picture is (xBR, yBR) .
  • the required sub-picture is the sub-picture covering the current block.
  • position N is out of the required sub-picture if x > xBR.
  • position N is out of the required sub-picture if y > yBR.
  • position N is out of the required sub-picture if x ⁇ xTL.
  • position N is out of the required sub-picture if y ⁇ yTL.
  • position N is clipped to be in the required sub-picture.
  • whether position N must be in a required sub-picture (e.g. to do as claimed in 5.
  • a and/or 5. b) may depend on one or more syntax elements signaled in VPS/DPS/SPS/PPS/APS/slice header/tile group header.
  • the syntax element may be subpic_treated_as_pic_flag [SubPicIdx] , where SubPicIdx is the sub-picture index of sub-picture covering the current block.
  • History -based Motion Vector Prediction (HMVP) table may be reset before decoding a new sub-picture in one picture.
  • the HMVP table used for IBC coding may be reset
  • the HMVP table used for inter coding may be reset
  • the HMVP table used for intra coding may be reset
  • the width of each element of the sub-picture identifier grid in units of N samples.
  • the height of each element of the sub-picture identifier grid in units of N samples is the height of each element of the sub-picture identifier grid.
  • N is set to the width and/or height of CTU.
  • the picture width may need to be restricted to be no smaller than 8.
  • the picture height may need to be restricted to be no smaller than 8.
  • a conformance bitstream shall satisfy that sub-picture coding and Adaptive resolution conversion (ARC) /Dynamic resolution conversion (DRC) /Reference picture resampling (RPR) are disallowed to be enabled for one video unit (e.g., sequence) .
  • ARC sub-picture coding and Adaptive resolution conversion
  • DRC Dynamic resolution conversion
  • RPR Reference picture resampling
  • signaling of enabling sub-picture coding may be under the conditions of disallowing ARC/DRC/RPR.
  • sub-picture when sub-picture is enabled, such as subpics_present_flag equal to 1, pic_width_in_luma_samples for all pictures for which this SPS is active is equal to max_width_in_luma_samples.
  • sub-picture coding and ARC/DRC/RPR may be both enabled for one video unit (e.g., sequence) .
  • a conformance bitstream shall satisfy that the donwsampled sub-picture due to ARC/DRC/RPR shall still be in the form of K CTUs in width and M CTUs in height wherein K and M are both integers.
  • a conformance bitstream shall satisfy that for sub-pictures not located at picture boundaries (e.g., right boundary and/or bottom boundary) , the donwsampled sub-picture due to ARC/DRC/RPR shall still be in the form of K CTUs in width and M CTUs in height wherein K and M are both integers.
  • CTU sizes may be adaptively changed based on the picture resolution.
  • a max CTU size may be signaled in SPS. For each picture with less resolution, the CTU size may be changed accordingly based on the reduced resolution.
  • CTU size may be signaled in SPS and PPS, and/or sub-picture level.
  • syntax element subpic_grid_col_width_minus1 and subpic_grid_row_height_minus1 may be constrained.
  • subpic_grid_col_width_minus1 must be no larger (or must be smaller) than T1.
  • subpic_grid_row_height_minus1 must be no larger (or must be smaller) than T2.
  • subpic_grid_col_width_minus1 and/or subpic_grid_row_height_minus1 must follow the constraint such as bullet 3. a or 3. b.
  • T1 in 3. a and/or T2 in 3. b may depend on profiles/levels/tiers of a video coding standard.
  • T1 in 3. a may depend on the picture width.
  • T1 is equal to pic_width_max_in_luma_samples/4 or pic_width_max_in_luma_samples/4+Off. Off may be 1, 2, -1, -2, etc.
  • T2 in 3. b may depend on the picture width.
  • T2 is equal to pic_height_max_in_luma_samples/4 or pic_height_max_in_luma_samples /4-1+Off. Off may be 1, 2, -1, -2, etc.
  • a CTU cannot be covered by more than one sub-picture.
  • the unit of subpic_grid_col_width_minus1 may be the CTU width (such as 32, 64, 128) , instead of 4 as in VVC.
  • the sub-picture grid width should be (subpic_grid_col_width_minus1+1) *CTU width.
  • the unit of subpic_grid_col_height_minus1 may be the CTU height (such as 32, 64, 128) , instead of 4 as in VVC.
  • the sub-picture grid height should be (subpic_grid_col_height_minus1+1) *CTU height.
  • the constraint in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
  • the constraint in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
  • Sub-picture may only contain rectangular slices. For example, in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
  • the constraint in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
  • two sub-pictures may be overlapped with each other.
  • the constraint in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
  • one sample may not belong to any sub-picture.
  • one sample may belong to more than one sub-pictures.
  • the width and height of a sub-picture defined in the SPS mapped to a resolution presented in the same sequence should be integer multiple times of N (such as 8, 16, 32) luma samples.
  • sub-pictures may be defined for certain layer and may be mapped to other layers.
  • sub-pictures may be defined for the layer with the highest resolution in the sequence.
  • sub-pictures may be defined for the layer with the lowest resolution in the sequence.
  • Which layer the sub-pictures are defined for may be signaled in SPS/VPS/PPS/slice header.
  • all resolutions may be integer multiple of a given resolution.
  • the width and/or height of a sub-picture defined in the SPS may be integer multiple times (e.g., M) of the CTU size.
  • sub-pictures and different resolutions in a sequence may not be allowed simultaneously.
  • Sub-pictures may only apply to a certain layer (s)
  • sub-pictures defined in a SPS may only apply to the layer with the highest resolution in a sequence.
  • sub-pictures defined in a SPS may only apply to the layer with the lowest temporal id in a sequence.
  • Which layer (s) that sub-pictures may be applied to may be indicated by one or multiple syntax elements in SPS/VPS/PPS.
  • Which layer (s) that sub-picture cannot be applied to may be indicated by one or multiple syntax elements in SPS/VPS/PPS.
  • the position and/or dimensions of a sub-picture may be signaled without using subpic_grid_idx.
  • the top-left position of a sub-picture may be signaled.
  • the bottom-right position of a sub-picture may be signaled.
  • the width of sub-picture may be signaled.
  • the height of a sub-picture may be signaled.
  • temporal filter when performing the temporal filtering of a sample, only samples within the same sub-picture that the current sample belongs to may be used. The required samples may be in the same picture that the current sample belongs to or in other pictures.
  • whether to and/or how to apply a partitioning method may depend on whether the current block (or partition) crosses one or multiple boundary of a sub-picture.
  • the picture boundary handling method for partitioning in VVC may also be applied when a picture boundary is replaced by a sub-picture boundary.
  • whether to parse a syntax element (e.g. a flag) which represents a partitioning method (such as QT, horizontal BT, vertical BT, horizontal TT, vertical TT, or not split, etc. ) may depend on whether the current block (or partition) crosses one or multiple boundary of a sub-picture.
  • a sample in the second set is not in any sub-pictures.
  • the second set may be encoded/decoded based on the information of the first set.
  • a default value may be utilized to mark whether a sample/MxK sub-region belonging to the second set.
  • the default value may be set equal to (max_subpics_minus1 + K) wherein K is an integer greater than 1.
  • the default value may be assigned to subpic_grid_idx [i] [j] to indicate that grid belongs to the second set.
  • subpic_grid_idx [i] [j] cannot be larger than max_subpics_minus1.
  • the codeword to code subpic_grid_idx [i] [j] cannot be larger than max_subpics_minus1.
  • any integer number from 0 to max_subpics_minus1 must be equal to at least one subpic_grid_idx [i] [j] .
  • IBC virtual buffer may be reset before decoding a new sub-picture in one picture.
  • all the samples in the IBC virtual buffer may be reset to -1.
  • Palette entry list may be reset before decoding a new sub-picture in one picture.
  • PredictorPaletteSize may be set equal to 0 before decoding a new sub-picture in one picture.
  • Whether to signal the information of slices may depend on the number of tiles and/or the number of bricks.
  • num_slices_in_pic_minus1 is not signaled and inferred to be 0.
  • the information of slices may not be signaled.
  • the number of slices may be inferred to be one. And the slice covers the whole picture. In one example, if the number of bricks in a picture is one, single_brick_per_slice_flag is not signaled and inferred to be one.
  • single_brick_per_slice_flag must be one.
  • Whether to signal slice_address may be decoupled from whether slices are signaled to be rectangles (e.g. whether rect_slice_flag is equal to 0 or 1) .
  • slice_address may depend on the number of slices when slices are signaled to be rectangles.
  • Whether to signal num_bricks_in_slice_minus1 may depend on the slice_address and/or the number of bricks in the picture.
  • loop_filter_across_bricks_enabled_flag may depend on the number of tiles and/or the number of bricks.
  • loop_filter_across_bricks_enabled_flag is not signaled if the number of bricks is less than 2.
  • a basic unit block (BUB) with dimensions CW ⁇ CH is a rectangle region.
  • a BUB may be a Coding Tree Block (CTB) .
  • the number of sub-pictures (denoted as N) may be signaled.
  • subpics_present_flag is equal to 1
  • N minus d i.e., N-d
  • d is an integer such as 0, 1, or 2.
  • N-d may be coded with fixed length coding e.g. u (x) .
  • x may be a fixed number such as 8.
  • x or x-dx may be signaled before N-d is signaled, where dx is an integer such as 0, 1 or 2.
  • the signaled x may not be larger than a maximum value in a conformance bitstream.
  • x may be derived on-the-fly.
  • x may be derived as a function of the total number (denoted as M) of BUBs in the picture.
  • x Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • N-d may be coded with a unary code or a truncated unary code.
  • the allowed maximum value of N-d may be a fixed number.
  • the allowed maximum value of N-d may be derived as a function of the total number (denoted as M) of BUBs in the picture.
  • x Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • a sub-picture may be signaled by indications of one or multiple its selected positions (e.g., top-left/top-right/bottom-left/bottom-right position) and/or its width and/or its height.
  • the top-left position of a sub-picture may be signaled in the granularity of a basic unit block (BUB) with dimensions CW ⁇ CH.
  • BBU basic unit block
  • the column index (denoted as Col) in terms of BUBs of the top-left BUB of the sub-picture may be signaled.
  • Col -d may be signaled, where d is an integer such as 0, 1, or 2.
  • d may be equal to Col of a sub-picture previously coded, added by d1, where d1 is an integer such as -1, 0, or 1.
  • the row index (denoted as Row) in term of BUBs of the top-left BUB of the sub-picture may be signaled.
  • Row -d may be signaled, where d is an integer such as 0, 1, or 2.
  • d may be equal to Row of a sub-picture previously coded, added by d1, where d1 is an integer such as -1, 0, or 1.
  • the row/column index (denoted as Row) mentioned above may be represented in the Coding Tree Block (CTB) unit, e.g., the x or y coordinate relative to the top-left position of a picture may be divided by CTB size and signaled.
  • CTB Coding Tree Block
  • whether to signal the position of a sub-picture may depend on the sub-picture index.
  • the top-left position may be not signaled.
  • the top-left position may be inferred, e.g., to be (0, 0) .
  • the top-left position may be not signaled.
  • the top-left position may be inferred depending on information of sub-pictures previously signaled.
  • the width of a sub-picture may be signaled in the granularity of a BUB with dimensions CW ⁇ CH.
  • the number of columns of BUBs in the sub-picture (denoted as W) may be signaled.
  • W-d may be signaled, where d is an integer such as 0, 1, or 2.
  • d may be equal to W of a sub-picture previously coded, added by d1, where d1 is an integer such as -1, 0, or 1.
  • the height of a sub-picture may be signaled in the granularity of a BUB with dimensions CW ⁇ CH.
  • the number of rows of BUBs in the sub-picture (denoted as H) may be signaled.
  • H-d may be signaled, where d is an integer such as 0, 1, or 2.
  • d may be equal to H of a sub-picture previously coded, added by d1, where d1 is an integer such as -1, 0, or 1.
  • Col-d may be coded with fixed length coding e.g. u (x) .
  • x may be a fixed number such as 8.
  • x or x-dx may be signaled before Col-d is signaled, where dx is an integer such as 0, 1 or 2.
  • the signaled x may not be larger than a maximum value in a conformance bitstream.
  • x may be derived on-the-fly.
  • x may be derived as a function of the total number (denoted as M) of BUB columns in the picture.
  • x Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • Row-d may be coded with fixed length coding e.g. u (x) .
  • x may be a fixed number such as 8.
  • x or x-dx may be signaled before Row-d is signaled, where dx is an integer such as 0, 1 or 2.
  • the signaled x may not be larger than a maximum value in a conformance bitstream.
  • x may be derived on-the-fly.
  • x may be derived as a function of the total number (denoted as M) of BUB rows in the picture.
  • x Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • W-d may be coded with fixed length coding e.g. u (x) .
  • x may be a fixed number such as 8.
  • x or x-dx may be signaled before W-d is signaled, where dx is an integer such as 0, 1 or 2.
  • the signaled x may not be larger than a maximum value in a conformance bitstream.
  • x may be derived on-the-fly.
  • x may be derived as a function of the total number (denoted as M) of BUB columns in the picture.
  • x Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • H-d may be coded with fixed length coding e.g. u (x) .
  • x may be a fixed number such as 8.
  • x or x-dx may be signaled before H-d is signaled, where dx is an integer such as 0, 1 or 2.
  • the signaled x may not be larger than a maximum value in a conformance bitstream.
  • x may be derived on-the-fly.
  • x may be derived as a function of the total number (denoted as M) of BUB rows in the picture.
  • x Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • Col-d and/or Row-d may be signaled for all sub-pictures.
  • Col-d and/or Row-d may not be signaled for all sub-pictures.
  • Col-d and/or Row-d may not be signaled if the number of sub-pictures are less than 2. (equal to 1) .
  • Col-d and/or Row-d may not be signaled for the first sub-picture (e.g. with the sub-picture index (or sub-picture ID) equal to 0) .
  • Col-d and/or Row-d may not be signaled for the last sub-picture (e.g. with the sub-picture index (or sub-picture ID) equal to NumSubPics-1) .
  • W-d and/or H-d may be signaled for all sub-pictures.
  • W-d and/or H-d may not be signaled for all sub-pictures.
  • W-d and/or H-d may not be signaled if the number of sub-pictures are less than 2. (equal to 1) .
  • W-d and/or H-d may not be signaled for the last sub-picture (e.g. with the sub-picture index (or sub-picture ID) equal to NumSubPics-1) .
  • a BUB may be a Coding Tree Block (CTB) .
  • CTB Coding Tree Block
  • the information of sub-pictures should be signaled after information of the CTB size (e.g. log2_ctu_size_minus5) has already been signaled.
  • subpic_treated_as_pic_flag [i] may not be signaled for each sub-pictures. Instead, one subpic_treated_as_pic_flag is signaled to control whether a sub-picture is treated as a picture for all sub-pictures.
  • loop_filter_across_subpic_enabled_flag [i] may not be signaled for each sub-pictures. Instead, one loop_filter_across_subpic_enabled_flag is signaled to control whether loop filters can be applied across sub-pictures for all sub-pictures.
  • subpic_treated_as_pic_flag [i] subpic_treated_as_pic_flag
  • loop_filter_across_subpic_enabled_flag [i] loop_filter_across_subpic_enabled_flag
  • subpic_treated_as_pic_flag [i] and/or loop_filter_across_subpic_enabled_flag [i] may not be signaled if the number of sub-pictures are less than 2. (equal to 1) .
  • RPR may be applied when sub-pictures are used.
  • the scaling ratio in RPR may be constrained to be a limited set when sub-pictures are used, such as ⁇ 1: 1, 1: 2 and/or 2: 1 ⁇ , or ⁇ 1: 1, 1: 2 and/or 2: 1, 1: 4 and/or 4: 1 ⁇ , ⁇ 1: 1, 1: 2 and/or 2: 1, 1: 4 and/or 4: 1, 1: 8 and/or 8: 1 ⁇ .
  • the CTB size of a picture A and the CTB size of a picture B may be different if the resolution of picture A and picture B are different.
  • SAW/SBW or SBW/SAW should be equal to Rw.
  • a subpiccutre index (or sub-picture ID) may be signaled in the slice header, and the slice address is interrupted as the address in a sub-picture instead of the whole picture.
  • sub-picture ID of a first sub-picture must be different to the sub-picture ID of a second sub-picture, if the first sub-picture and the second sub-picture are not the same sub-picture.
  • sps_subpic_id [i] it is a requirement in a conformance bitstream that sps_subpic_id [i] must be different from sps_subpic_id [j] , if i is not equal to j.
  • pps_subpic_id [i] it is a requirement in a conformance bitstream that pps_subpic_id [i] must be different from pps_subpic_id [j] , if i is not equal to j.
  • ph_subpic_id [i] it is a requirement in a conformance bitstream that ph_subpic_id [i] must be different from ph_subpic_id [j] , if i is not equal to j.
  • SubpicIdList [i] it is a requirement in a conformance bitstream that SubpicIdList [i] must be different from SubpicIdList [j] , if i is not equal to j.
  • a difference denoted as D [i] equal to X_subpic_id [i] -X_subpic_id [i -P] may be signaled.
  • X may be sps, pps or ph.
  • P is equal to 1.
  • iii For example, i> P.
  • D [i] must be larger than 0.
  • D [i] -1 may be signaled.
  • the length of a syntax element specifying the horizontal or vertical position of top left CTU may be derived to be Ceil (Log2 (SS) ) bits, wherein SS must be larger than 0.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • SS (pic_width_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the horizontal position of top left CTU (e.g. subpic_ctu_top_left_x) .
  • SS (pic_height_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the vertical position of top left CTU (e.g. subpic_ctu_top_left_y) .
  • RR is a non-zero integer such as CtbSizeY-1.
  • the length of a syntax element specifying the horizontal or vertical position of top left CTU of a sub-picture may be derived to be Ceil (Log2 (SS) ) bits, wherein SS must be larger than 0.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • SS (pic_width_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the horizontal position of top left CTU of a sub-picture (e.g. subpic_ctu_top_left_x) .
  • SS (pic_height_max_in_luma_samples +RR) /CtbSizeY when the syntax element specifies the vertical position of top left CTU of a sub-picture (e.g. subpic_ctu_top_left_y) .
  • RR is a non-zero integer such as CtbSizeY-1.
  • the default value of the length of a syntax element (which may plus an offset P such as 1) specifying the width or height of a sub-picture (e.g. subpic_width_minus1 or subpic_height_minus1) may be derived to be Ceil (Log2 (SS) ) -P, wherein SS must be larger than 0.
  • Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
  • SS (pic_width_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the default width (which may plus an offset P) of a sub-picture (e.g. subpic_width_minus1) .
  • SS (pic_height_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the default height (which may plus an offset P) of a sub-picture (e.g. subpic_height_minus1) .
  • RR is a non-zero integer such as CtbSizeY-1.
  • the information of IDs of sub-pictures should be signaled at least in one of SPS, PPS, and the picture header if it is determined that the information should be signaled.
  • sps_subpic_id_signalling_present_flag pps_subpic_id_signalling_present_flag and ph_subpic_id_signalling_present_flag should be equal to 1 if sps_subpic_id_present_flag is equal to 1.
  • SubpicIdList [i] should be set equal to i+P, where P is an offset such as 0.
  • SubpicIdList [i] sps_subpic_id_present_flag?
  • the sub-picture IDs are set according to the information of sub-picture IDs signaled in SPS if they are signaled in SPS; Otherwise, the sub-picture IDs are set according to the information of sub-picture IDs signaled in PPS if they are signaled in PPS, Otherwise, the sub-picture IDs are set according to the information of sub-picture IDs signaled in the the picture header if they are signaled in the picture header.
  • An exemplary description is as below,
  • SubpicIdList [i] sps_subpic_id_present_flag?
  • the sub-picture IDs are set according to the information of sub-picture IDs signaled in the picture header if they are signaled in the picture header; Otherwise, the sub-picture IDs are set according to the information of sub-picture IDs signaled in PPS if they are signaled in PPS, Otherwise, the sub-picture IDs are set according to the information of sub-picture IDs signaled in the SPS if they are signaled in SPS.
  • An exemplary description is as below,
  • SubpicIdList [i] sps_subpic_id_present_flag?
  • the deblocking process on an edge E should depend on the determination of whether loop-filtering is allowed across the sub-picture boundaries (e.g. determined by loop_filter_across_subpic_enabled_flag) on both sides (denoted as P-side and Q-side) of the edge.
  • P-side represents the side in the current block
  • Q-side represents the side in the neighbouring block, which may belong to a different sub-picture.
  • P-side and Q-side belongs two different sub-pictures.
  • loop_filter_across_subpic_enabled_flag [P] 0/1 means that loop-filtering is disallowed/allowed across the sub-picture boundaries of the sub-picture containing P-side.
  • loop_filter_across_subpic_enabled_flag [Q] 0/1 means that loop-filtering is disallowed/allowed across the sub-picture boundaries of the sub-picture containing Q-side.
  • E is not filtered if loop_filter_across_subpic_enabled_flag [P] is equal to 0 or loop_filter_across_subpic_enabled_flag [Q] is equal to 0.
  • E is not filtered if loop_filter_across_subpic_enabled_flag [P] is equal to 0 and loop_filter_across_subpic_enabled_flag [Q] is equal to 0.

Landscapes

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

Abstract

An example method of video processing includes determining, for a conversion between a current video block in a current picture of a video and a bitstream of the video, a manner of modifying a vertical coordinate yColSb of a collocated sub-block within a collocated picture of a current picture based on whether sub-pictures are treated as pictures. The collocated picture is one of one or more reference pictures of the current picture. The method also includes performing the conversion based on the determining.

Description

SUBPICTURE BOUNDARY FILTERING IN VIDEO CODING
CROSS REFERENCE TO RELATED APPLICATIONS
Under the applicable patent law and/or rules pursuant to the Paris Convention, this application is made to timely claim the priority to and benefits of International Patent Application No. PCT/CN2020/071863, filed on January 13, 2020. For all purposes under the law, the entire disclosure of the aforementioned application is incorporated by reference as part of the disclosure of this application.
TECHNICAL FIELD
This document is related to video and image coding and decoding technologies.
BACKGROUND
Digital video accounts for the largest bandwidth use on the internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, it is expected that the bandwidth demand for digital video usage will continue to grow.
SUMMARY
The disclosed techniques may be used by video or image decoder or encoder embodiments for in which sub-picture based coding or decoding is performed.
In one example aspect a method of video processing is disclosed. The method includes determining, for a conversion between a current video block in a current picture of a video and a bitstream of the video, a manner of modifying a vertical coordinate yColSb of a collocated sub-block within a collocated picture of a current picture based on whether sub-pictures are treated as pictures. The collocated picture is one of one or more reference pictures of the current picture. The method also includes performing the conversion based on the determining.
In another example aspect a method of video processing is disclosed. The method includes determining, for a conversion between a current picture of a video that includes at least two subpictures and a bitstream of the video, a manner of applying a filtering operation on a region  covering a boundary between the two sub-pictures based on information of the two subpictures. The method also includes performing the conversion according to the determining.
In another example aspect a method of video processing is disclosed. The method includes determining, for a video block in a first video region of a video, whether a position at which a temporal motion vector predictor is determined for a conversion between the video block and a bitstream representation of the current video block using an affine mode is within a second video region; and performing the conversion based on the determining.
In another example aspect, another method of video processing is disclosed. The method includes determining, for a video block in a first video region of a video, whether a position at which an integer sample in a reference picture is fetched for a conversion between the video block and a bitstream representation of the current video block is within a second video region, wherein the reference picture is not used in an interpolation process during the conversion; and performing the conversion based on the determining.
In another example aspect, another method of video processing is disclosed. The method includes determining, for a video block in a first video region of a video, whether a position at which a reconstructed luma sample value is fetched for a conversion between the video block and a bitstream representation of the current video block is within a second video region; and performing the conversion based on the determining.
In another example aspect, another method of video processing is disclosed. The method includes determining, for a video block in a first video region of a video, whether a position at which a check regarding splitting, depth derivation or split flag signaling for the video block is performed during a conversion between the video block and a bitstream representation of the current video block is within a second video region; and performing the conversion based on the determining.
In another example aspect, another method of video processing is disclosed. The method includes performing a conversion between a video comprising one or more video pictures comprising one or more video blocks, and a coded representation of the video, wherein the coded representation complies with a coding syntax requirement that the conversion is not to use sub-picture coding/decoding and a dynamic resolution conversion coding/decoding tool or a reference picture resampling tool within a video unit.
In another example aspect, another method of video processing is disclosed. The method includes performing a conversion between a video comprising one or more video pictures comprising one or more video blocks, and a coded representation of the video, wherein the coded representation complies with a coding syntax requirement that a first syntax element subpic_grid_idx [i] [j] is not larger than a second syntax element max_subpics_minus1.
In another example aspect, another method of video processing is disclosed. The method includes performing a conversion between a first video region of a video and a coded representation of the video, wherein a set of parameters defining coding characteristics of the first video region is included at the first video region level in the coded representation.
In yet another example aspect, the above-described method may be implemented by a video encoder apparatus that comprises a processor.
In yet another example aspect, the above-described method may be implemented by a video decoder apparatus that comprises a processor.
In yet another example aspect, these methods may be embodied in the form of processor-executable instructions and stored on a computer-readable program medium.
These, and other, aspects are further described in the present document.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 shows an example of region constraint in temporal motion vector prediction (TMVP) and sub-block TMVP.
FIG. 2 shows an example of a hierarchical motion estimation scheme.
FIG. 3 is a block diagram of an example of a hardware platform used for implementing techniques described in the present document.
FIG. 4 is a flowchart for an example method of video processing.
FIG. 5 shows an example of a picture with 18 by 12 luma CTUs that is partitioned into 12 tiles and 3 raster-scan slices (informative) .
FIG. 6 shows an example of picture with 18 by 12 luma CTUs that is partitioned into 24 tiles and 9 rectangular slices (informative) .
FIG. 7 shows an example of a picture that is partitioned into 4 tiles, 11 bricks, and 4 rectangular slices (informative) .
FIG. 8 shows example of a block coded in palette mode.
FIG. 9 shows an example of using of predictor palette to signal palette entries.
FIG. 10 shows an example of horizontal and vertical traverse scans.
FIG. 11 shows an example of coding of palette indices.
FIG. 12 shows an example of merge estimation region (MER) .
FIG. 13 is a block diagram showing an example video processing system in which various techniques disclosed herein may be implemented.
FIG. 14 is a block diagram that illustrates an example video coding system.
FIG. 15 is a block diagram that illustrates an encoder in accordance with some embodiments of the present disclosure.
FIG. 16 is a block diagram that illustrates a decoder in accordance with some embodiments of the present disclosure.
FIG. 17 is a flowchart representation of a method for video processing in accordance with the present technology.
FIG. 18 is a flowchart representation of another method for video processing in accordance with the present technology.
DETAILED DESCRIPTION
The present document provides various techniques that can be used by a decoder of image or video bitstreams to improve the quality of decompressed or decoded digital video or images. For brevity, the term “video” is used herein to include both a sequence of pictures (traditionally called video) and individual images. Furthermore, a video encoder may also implement these techniques during the process of encoding in order to reconstruct decoded frames used for further encoding.
Section headings are used in the present document for ease of understanding and do not limit the embodiments and techniques to the corresponding sections. As such, embodiments from one section can be combined with embodiments from other sections.
1. Initial discussion
This document is related to video coding technologies. Specifically, it is related to palette coding with employing base colors based representation in video coding. It may be applied to the existing video coding standard like HEVC, or the standard (Versatile Video Coding) to be finalized. It may be also applicable to future video coding standards or video codec.
2. Video coding introduction
Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO/IEC standards. The ITU-T produced H. 261 and H. 263, ISO/IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H. 262/MPEG-2 Video and H. 264/MPEG-4 Advanced Video Coding (AVC) and H. 265/HEVC standards [1, 2] . Since H. 262, the video coding standards are based on the hybrid video coding structure wherein temporal prediction plus transform coding are utilized. To explore the future video coding technologies beyond HEVC, Joint Video Exploration Team (JVET) was founded by VCEG and MPEG jointly in 2015. Since then, many new methods have been adopted by JVET and put into the reference software named Joint Exploration Model (JEM) . In April 2018, the Joint Video Expert Team (JVET) between VCEG (Q6/16) and ISO/IEC JTC1 SC29/WG11 (MPEG) was created to work on the VVC standard targeting at 50%bitrate reduction compared to HEVC.
2.1 The region constraint in TMVP and sub-block TMVP in VVC
FIG. 1 illustrates example region constraint in TMVP and sub-block TMVP. In TMVP and sub-block TMVP, it is constrained that a temporal MV can only be fetched from the collocated CTU plus a column of 4×4 blocks as shown in FIG. 1.
2.2 Example Sub-picture
In some embodiments, sub-picture-based coding techniques based on flexible tiling approach can be implemented. Summary of the sub-picture-based coding techniques includes the following:
(1) Pictures can be divided into sub-pictures.
(2) The indication of existence of sub-pictures is indicated in the SPS, along with other sequence-level information of sub-pictures.
(3) Whether a sub-picture is treated as a picture in the decoding process (excluding in-loop filtering operations) can be controlled by the bitstream.
(4) Whether in-loop filtering across sub-picture boundaries is disabled can be controlled by the bitstream for each sub-picture. The DBF, SAO, and ALF processes are updated for controlling of in-loop filtering operations across sub-picture boundaries.
(5) For simplicity, as a starting point, the sub-picture width, height, horizontal offset, and vertical offset are signalled in units of luma samples in SPS. Sub-picture boundaries are constrained to be slice boundaries.
(6) Treating a sub-picture as a picture in the decoding process (excluding in-loop filtering operations) is specified by slightly updating the coding_tree_unit () syntax, and updates to the following decoding processes:
- The derivation process for (advanced) temporal luma motion vector prediction
- The luma sample bilinear interpolation process
- The luma sample 8-tap interpolation filtering process
- The chroma sample interpolation process
(7) Sub-picture IDs are explicitly specified in the SPS and included in the tile group headers to enable extraction of sub-picture sequences without the need of changing VCL NAL units.
(8) Output sub-picture sets (OSPS) are proposed to specify normative extraction and conformance points for sub-pictures and sets thereof.
2.3 Example Sub-pictures in Versatile Video Coding
Sequence parameter set RBSP syntax
Figure PCTCN2021071360-appb-000001
Figure PCTCN2021071360-appb-000002
subpics_present_flag equal to 1 indicates that sub-picture parameters are present in the present in the SPS RBSP syntax. subpics_present_flag equal to 0 indicates that sub-picture parameters are not present in the present in the SPS RBSP syntax.
NOTE 2–When a bitstream is the result of a sub-bitstream extraction process and contains only a subset of the sub-pictures of the input bitstream to the sub-bitstream extraction process,
it might be required to set the value of subpics_present_flag equal to 1 in the RBSP of the SPSs.
max_subpics_minus1 plus 1 specifies the maximum number of sub-pictures that may be present in the CVS. max_subpics_minus1 shall be in the range of 0 to 254. The value of 255 is reserved for future use by ITU-T | ISO/IEC.
subpic_grid_col_width_minus1 plus 1 specifies the width of each element of the sub-picture identifier grid in units of 4 samples. The length of the syntax element is
Ceil (Log2 (pic_width_max_in_luma_samples/4) ) bits.
The variable NumSubPicGridCols is derived as follows:
NumSubPicGridCols = (pic_width_max_in_luma_samples+subpic_grid_col_width_minus1*4+3) / (subpic_grid_col_width_minus1*4+4)      (7-5)
subpic_grid_row_height_minus1 plus 1 specifies the height of each element of the sub-picture identifier grid in units of 4 samples. The length of the syntax element is
Ceil (Log2 (pic_height_max_in_luma_samples/4) ) bits.
The variable NumSubPicGridRows is derived as follows:
NumSubPicGridRows = (pic_height_max_in_luma_samples+subpic_grid_row_height_minus1*4+3) / (subpic_grid_row_height_minus1*4+4)       (7-6)
subpic_grid_idx [i] [j] specifies the sub-picture index of the grid position (i, j) . The length of the syntax element is Ceil (Log2 (max_subpics_minus1+1) ) bits.
The variables SubPicTop [subpic_grid_idx [i] [j] ] , SubPicLeft [subpic_grid_idx [i] [j] ] , SubPicWidth [subpic_grid_idx [i] [j] ] , SubPicHeight [subpic_grid_idx [i] [j] ] , and NumSubPics are derived as follows:
NumSubPics = 0
Figure PCTCN2021071360-appb-000003
subpic_treated_as_pic_flag [i] equal to 1 specifies that the i-th sub-picture of each coded picture in the CVS is treated as a picture in the decoding process excluding in-loop filtering operations. subpic_treated_as_pic_flag [i] equal to 0 specifies that the i-th sub-picture of each coded picture in the CVS is not treated as a picture in the decoding process excluding in-loop filtering operations. When not present, the value of subpic_treated_as_pic_flag [i] is inferred to be equal to 0.
loop_filter_across_subpic_enabled_flag [i] equal to 1 specifies that in-loop filtering operations may be performed across the boundaries of the i-th sub-picture in each coded picture in the CVS. loop_filter_across_subpic_enabled_flag [i] equal to 0 specifies that in-loop filtering operations are not performed across the boundaries of the i-th sub-picture in each coded picture in the CVS. When not present, the value of loop_filter_across_subpic_enabled_pic_flag [i] is inferred to be equal to 1.
It is a requirement of bitstream conformance that the following constraints apply:
- For any two sub-pictures subpicA and subpicB, when the index of subpicA is less than the index of subpicB, any coded NAL unit of subPicA shall succeed any coded NAL unit of subPicB in decoding order.
- The shapes of the sub-pictures shall be such that each sub-picture, when decoded, shall have its entire left boundary and entire top boundary consisting of picture boundaries or consisting of boundaries of previously decoded sub-pictures.
The list CtbToSubPicIdx [ctbAddrRs] for ctbAddrRs ranging from 0 to PicSizeInCtbsY-1, inclusive, specifying the conversion from a CTB address in picture raster scan to a sub-picture index, is derived as follows:
Figure PCTCN2021071360-appb-000004
Figure PCTCN2021071360-appb-000005
num_bricks_in_slice_minus1, when present, specifies the number of bricks in the slice minus 1. The value of num_bricks_in_slice_minus1 shall be in the range of 0 to NumBricksInPic-1, inclusive. When rect_slice_flag is equal to 0 and single_brick_per_slice_flag is equal to 1, the value ofnum_bricks_in_slice_minus1 is inferred to be equal to 0. When
single_brick_per_slice_flag is equal to 1, the value of num_bricks_in_slice_minus1 is inferred to be equal to 0.
The variable NumBricksInCurrSlice, which specifies the number of bricks in the current slice, and SliceBrickIdx [i] , which specifies the brick index of the i-th brick in the current slice, are derived as follows:
Figure PCTCN2021071360-appb-000006
Figure PCTCN2021071360-appb-000007
The variables SubPicIdx, SubPicLeftBoundaryPos, SubPicTopBoundaryPos,
SubPicRightBoundaryPos, and SubPicBotBoundaryPos are derived as follows:
SubPicIdx = CtbToSubPicIdx [CtbAddrBsToRs [FirstCtbAddrBs [SliceBrickIdx [0] ] ] ] if (subpic_treated_as_pic_flag [SubPicIdx] ) {
SubPicLeftBoundaryPos = SubPicLeft [SubPicIdx] * (subpic_grid_col_width_minus1+1) *4 SubPicRightBoundaryPos = (SubPicLeft [SubPicIdx] +SubPicWidth [SubPicIdx] ) * (subpic_grid_col_width_minus1+1) *4
SubPicTopBoundaryPos = SubPicTop [SubPicIdx] * (subpic_grid_row_height_minus1+1) *4 SubPicBotBoundaryPos = (SubPicTop [SubPicIdx] +SubPicHeight [SubPicIdx] ) * (subpic_grid_row_height_minus1+1) *4
}
Derivation process for temporal luma motion vector prediction
Inputs to this process are:
– a luma location (xCb, yCb) of the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture,
– a variable cbWidth specifying the width of the current coding block in luma samples,
– a variable cbHeight specifying the height of the current coding block in luma samples,
– a reference index refIdxLX, with X being 0 or 1.
Outputs of this process are:
– the motion vector prediction mvLXCol in 1/16 fractional-sample accuracy,
– the availability flag availableFlagLXCol.
The variable currCb specifies the current luma coding block at luma location (xCb, yCb) .
The variables mvLXCol and availableFlagLXCol are derived as follows:
– If slice_temporal_mvp_enabled_flag is equal to 0 or (cbWidth*cbHeight) is less than or equal to 32, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0.
– Otherwise (slice_temporal_mvp_enabled_flag is equal to 1) , the following ordered steps apply:
1. The bottom right collocated motion vector and the bottom and right boundary sample locations are derived as follows:
xColBr=xCb+cbWidth (8-421)
yColBr=yCb+cbHeight (8-422)
rightBoundaryPos=subpic_treated_as_pic_flag [SubPicIdx] ? SubPicRightBoundaryPos: pic_width_in_luma_samples-1  (8-423)
botBoundaryPos=subpic_treated_as_pic_flag [SubPicIdx] ? SubPicBotBoundaryPos: pic_height_in_luma_samples-1   (8-424)
– If yCb>>CtbLog2SizeY is equal to yColBr>>CtbLog2SizeY, yColBr is less than or equal to botBoundaryPos and xColBr is less than or equal to rightBoundaryPos, the following applies:
– The variable colCb specifies the luma coding block covering the modified location given by ( (xColBr>>3) <<3, (yColBr>>3) <<3) inside the collocated picture specified by ColPic.
– The luma location (xColCb, yColCb) is set equal to the top-left sample of the collocated luma coding block specified by colCb relative to the top-left luma sample of the collocated picture specified by ColPic.
– The derivation process for collocated motion vectors as specified in clause 8.5.2.12 is invoked with currCb, colCb, (xColCb, yColCb) , refIdxLX and sbFlag set equal to 0 as inputs, and the output is assigned to mvLXCol and availableFlagLXCol.
Otherwise, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0.
Luma sample bilinear interpolation process
Inputs to this process are:
– a luma location in full-sample units (xInt L, yInt L) ,
– a luma location in fractional-sample units (xFrac L, yFrac L) ,
– the luma reference sample array refPicLX L.
Output of this process is a predicted luma sample value predSampleLX L
The variables shift1, shift2, shift3, shift4, offset1, offset2 and offset3 are derived as follows:
shift1 = BitDepth Y-6                                                 (8-453)
offset1 = 1 << (shift1 -1)                                             (8-454)
shift2 = 4                                                                      (8-455)
offset2 = 1 << (shift2 -1)                                             (8-456)
shift3 = 10 -BitDepth Y                                                (8-457)
shift4 = BitDepth Y-10                                                (8-458)
offset4 = 1 << (shift4 -1)                                             (8-459)
The variable picW is set equal to pic_width_in_luma_samples and the variable picH is set equal to pic_height_in_luma_samples.
The luma interpolation filter coefficients fb L [p] for each 1/16 fractional sample position p equal to xFrac L or yFrac L are specified in Table 8-10.
The luma locations in full-sample units (xInt i, yInt i) are derived as follows for i=0.. 1:
– If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
xInt i=Clip3 (SubPicLeftBoundaryPos, SubPicRightBoundaryPos, xInt L+i) (8-460)
yInt i=Clip3 (SubPicTopBoundaryPos, SubPicBotBoundaryPos, yInt L+i) (8-461)
– Otherwise (subpic_treated_as_pic_flag [SubPicIdx] is equal to 0) , the following applies:
xInt i = Clip3 (0, picW-1, sps_ref_wraparound_enabled_flag ?ClipH ( (sps_ref_wraparound_offset_minus1+1) *MinCbSizeY, picW, (xInt L+i) ) :     (8-462)
xInt L+i) yInt i=Clip3 (0, picH-1, yInt L+i)                                     (8-463)
Derivation process for subblock-based temporal merging candidates
Inputs to this process are:
– a luma location (xCb, yCb) of the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture,
– a variable cbWidth specifying the width of the current coding block in luma samples,
– a variable cbHeight specifying the height of the current coding block in luma samples.
– the availability flag availableFlagA 1 of the neighbouring coding unit,
– the reference index refIdxLXA 1 of the neighbouring coding unit with X being 0 or 1,
– the prediction list utilization flag predFlagLXA 1 of the neighbouring coding unit with X being 0 or 1,
– the motion vector in 1/16 fractional-sample accuracy mvLXA 1 of the neighbouring coding unit with X being 0 or 1.
Outputs of this process are:
– the availability flag availableFlagSbCol,
– the number of luma coding subblocks in horizontal direction numSbX and in vertical direction numSbY,
– the reference indices refIdxL0SbCol and refIdxL1SbCol,
– the luma motion vectors in 1/16 fractional-sample accuracy mvL0SbCol [xSbIdx] [ySbIdx] and mvL1SbCol [xSbIdx] [ySbIdx] with xSbIdx=0.. numSbX-1, ySbIdx=0.. numSbY-1,
– the prediction list utilization flags predFlagL0SbCol [xSbIdx] [ySbIdx] and predFlagL1SbCol [xSbIdx] [ySbIdx] with xSbIdx=0.. numSbX-1, ySbIdx=0.. numSbY-1.
The availability flag availableFlagSbCol is derived as follows.
– If one or more of the following conditions is true, availableFlagSbCol is set equal to 0.
– slice_temporal_mvp_enabled_flag is equal to 0.
– sps_sbtmvp_enabled_flag is equal to 0.
– cbWidth is less than 8.
– cbHeight is less than 8.
– Otherwise, the following ordered steps apply:
1. The location (xCtb, yCtb) of the top-left sample of the luma coding tree block that contains the current coding block and the location (xCtr, yCtr) of the below-right center sample of the current luma coding block are derived as follows:
xCtb = (xCb>>CtuLog2Size) <<CtuLog2Size       (8-542)
yCtb = (yCb>>CtuLog2Size) <<CtuLog2Size       (8-543)
xCtr = xCb+ (cbWidth/2)         (8-544)
yCtr = yCb+ (cbHeight/2)           (8-545)
2. The luma location (xColCtrCb, yColCtrCb) is set equal to the top-left sample of the collocated luma coding block covering the location given by (xCtr, yCtr) inside ColPic relative to the top-left luma sample of the collocated picture specified by ColPic.
3. The derivation process for subblock-based temporal merging base motion data as specified in clause 8.5.5.4 is invoked with the location (xCtb, yCtb) , the location (xColCtrCb, yColCtrCb) , the availability flag availableFlagA 1, and the prediction list utilization flag predFlagLXA 1, and the reference index refIdxLXA 1, and the motion vector mvLXA 1, with X being 0 and 1 as inputs and the motion vectors ctrMvLX, and the prediction list utilization flags ctrPredFlagLX of the collocated block, with X being 0 and 1, and the temporal motion vector tempMv as outputs.
4. The variable availableFlagSbCol is derived as follows:
– If both ctrPredFlagL0 and ctrPredFlagL1 are equal to 0, availableFlagSbCol is set equal to 0.
– Otherwise, availableFlagSbCol is set equal to 1.
When availableFlagSbCol is equal to 1, the following applies:
– The variables numSbX, numSbY, sbWidth, sbHeight and refIdxLXSbCol are derived as follows:
numSbX=cbWidth>>3        (8-546)
numSbY=cbHeight>>3         (8-547)
sbWidth=cbWidth/numSbX         (8-548)
sbHeight=cbHeight/numSbY        (8-549)
refIdxLXSbCol=0          (8-550)
– For xSbIdx=0.. numSbX-1 and ySbIdx=0.. numSbY-1, the motion vectors mvLXSbCol [xSbIdx] [ySbIdx] and prediction list utilization flags predFlagLXSbCol [xSbIdx] [ySbIdx] are derived as follows:
– The luma location (xSb, ySb) specifying the top-left sample of the current coding subblock relative to the top-left luma sample of the current picture is derived as follows:
xSb=xCb+xSbIdx*sbWidth+sbWidth/2     (8-551)
ySb=yCb+ySbIdx*sbHeight+sbHeight/2             (8-552)
– The location (xColSb, yColSb) of the collocated subblock inside ColPic is derived as follows.
– The following applies:
yColSb = Clip3 (yCtb, Min (CurPicHeightInSamplesY-1, yCtb+ (1<<CtbLog2SizeY) -1) ,   (8-553)
ySb+ (tempMv [1] >>4) )
– If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
xColSb = Clip3 (xCtb, Min (SubPicRightBoundaryPos, xCtb+ (1<<CtbLog2SizeY) +3) ,     (8-554)
xSb+ (tempMv [0] >>4) )
– Otherwise (subpic_treated_as_pic_flag [SubPicIdx] is equal to 0) , the following applies:
xColSb = Clip3 (xCtb, Min (CurPicWidthInSamplesY-1, xCtb+ (1<<CtbLog2SizeY) +3) ,      (8-555)
xSb+ (tempMv [0] >>4) )
Derivation process for subblock-based temporal merging base motion data
Inputs to this process are:
– the location (xCtb, yCtb) of the top-left sample of the luma coding tree block that contains the current coding block,
– the location (xColCtrCb, yColCtrCb) of the top-left sample of the collocated luma coding block that covers the below-right center sample.
– the availability flag availableFlagA 1 of the neighbouring coding unit,
– the reference index refIdxLXA 1 of the neighbouring coding unit,
– the prediction list utilization flag predFlagLXA 1 of the neighbouring coding unit,
– the motion vector in 1/16 fractional-sample accuracy mvLXA 1 of the neighbouring coding unit.
Outputs of this process are:
– the motion vectors ctrMvL0 and ctrMvL1,
– the prediction list utilization flags ctrPredFlagL0 and ctrPredFlagL1,
– the temporal motion vector tempMv.
The variable tempMv is set as follows:
tempMv [0] =0           (8-558)
tempMv [1] =0      (8-559)
The variable currPic specifies the current picture.
When availableFlagA 1 is equal to TRUE, the following applies:
– If all of the following conditions are true, tempMv is set equal to mvL0A 1:
– predFlagL0A 1 is equal to 1,
– DiffPicOrderCnt (ColPic, RefPicList [0] [refIdxL0A 1] ) is equal to 0,
– Otherwise, if all of the following conditions are true, tempMv is set equal to mvL1A 1:
– slice_type is equal to B,
– predFlagL1A 1 is equal to 1,
– DiffPicOrderCnt (ColPic, RefPicList [1] [refIdxL1A 1] ) is equal to 0.
The location (xColCb, yColCb) of the collocated block inside ColPic is derived as follows.
– The following applies:
yColCb = Clip3 (yCtb, Min (CurPicHeightInSamplesY-1, yCtb+ (1<<CtbLog2SizeY) -1) ,    (8-560)
yColCtrCb+ (tempMv [1] >>4) )
– If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
xColCb = Clip3 (xCtb, Min (SubPicRightBoundaryPos, xCtb+ (1<<CtbLog2SizeY) +3) ,      (8-561)
xColCtrCb+ (tempMv [0] >>4) )
– Otherwise (subpic_treated_as_pic_flag [SubPicIdx] is equal to o, the following applies:
xColCb = Clip3 (xCtb, Min (CurPicWidthInSamplesY-1, xCtb+ (1<<CtbLog2SizeY) +3) ,     (8-562)
xColCtrCb+ (tempMv [0] >>4) )
Luma sample interpolation filtering process
Inputs to this process are:
– a luma location in full-sample units (xInt L, yInt L) ,
– a luma location in fractional-sample units (xFrac L, yFrac L) ,
– a luma location in full-sample units (xSbInt L, ySbInt L) specifying the top-left sample of the bounding block for reference sample padding relative to the top-left luma sample of the reference picture,
– the luma reference sample array refPicLX L,
– the half sample interpolation filter index hpelIfIdx,
– a variable sbWidth specifying the width of the current subblock,
– a variable sbHeight specifying the height of the current subblock,
– a luma location (xSb, ySb) specifying the top-left sample of the current subblock relative to the top-left luma sample of the current picture,
Output of this process is a predicted luma sample value predSampleLX L
The variables shift1, shift2 and shift3 are derived as follows:
– The variable shift1 is set equal to Min (4, BitDepth Y-8) , the variable shift2 is set equal to 6 and the variable shift3 is set equal to Max (2, 14-BitDepth Y) .
– The variable picW is set equal to pic_width_in_luma_samples and the variable picH is set equal to pic_height_in_luma_samples.
The luma interpolation filter coefficients f L [p] for each 1/16 fractional sample position p equal to xFrac L or yFrac L are derived as follows:
– If MotionModelIdc [xSb] [ySb] is greater than 0, and sbWidth and sbHeight are both equal to 4, the luma interpolation filter coefficients f L [p] are specified in Table 8-12.
– Otherwise, the luma interpolation filter coefficients f L [p] are specified in Table 8-11 depending on hpelIfIdx.
The luma locations in full-sample units (xInt i, yInt i) are derived as follows for i=0.. 7:
– If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
xInt i=Clip3 (SubPicLeftBoundaryPos, SubPicRightBoundaryPos, xInt L+i-3) (8-771)
yInt i=Clip3 (SubPicTopBoundaryPos, SubPicBotBoundaryPos, yInt L+i-3) (8-772)
– Otherwise (subpic_treated_as_pic_flag [SubPicIdx] is equal to 0) , the following applies:
xInt i = Clip3 (0, picW-1, sps_ref_wraparound_enabled_flag ? ClipH ( (sps_ref_wraparound_offset_minus1+1) *MinCbSizeY, picW, xInt L+i-3) :   (8-773)
xInt L+i-3)
yInt i=Clip3 (0, picH-1, yInt L+i-3)       (8-774)
Chroma sample interpolation process
Inputs to this process are:
– a chroma location in full-sample units (xInt C, yInt C) ,
– a chroma location in 1/32 fractional-sample units (xFrac C, yFrac C) ,
– a chroma location in full-sample units (xSbIntC, ySbIntC) specifying the top-left sample of the bounding block for reference sample padding relative to the top-left chroma sample of the reference picture,
– a variable sbWidth specifying the width of the current subblock,
– a variable sbHeight specifying the height of the current subblock,
– the chroma reference sample array refPicLX C.
Output of this process is a predicted chroma sample value predSampleLX C
The variables shift1, shift2 and shift3 are derived as follows:
– The variable shift1 is set equal to Min (4, BitDepth C-8) , the variable shift2 is set equal to 6 and the variable shift3 is set equal to Max (2, 14-BitDepth C) .
– The variable picW C is set equal to pic_width_in_luma_samples/SubWidthC and the variable picH C is set equal to pic_height_in_luma_samples/SubHeightC.
The chroma interpolation filter coefficients f C [p] for each 1/32 fractional sample position p equal to xFrac C or yFrac C are specified in Table 8-13.
The variable xOffset is set equal to (sps_ref_wraparound_offset_minus1+1) *MinCbSizeY) /SubWidthC.
The chroma locations in full-sample units (xInt i, yInt i) are derived as follows for i=0.. 3:
– If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
xInt i=Clip3 (SubPicLeftBoundaryPos/SubWidthC, SubPicRightBoundaryPos/SubWidt hC, xInt L+i) (8-785)
yInt i=Clip3 (SubPicTopBoundaryPos/SubHeightC, SubPicBotBoundaryPos/SubHeight C, yInt L+i)  (8-786)
– Otherwise (subpic_treated_as_pic_flag [SubPicIdx] is equal to 0) , the following applies:
xInt i=Clip3 (0, picW C-1, sps_ref_wraparound_enabled_flag? ClipH (xOffset, picW C, xInt C+i-1) : (8-787)
xInt C+i-1)
yInt i=Clip3 (0, picH C-1, yInt C+i-1)          (8-788)
2.4 Example Encoder-only GOP-based temporal filter
In some embodiments, an encoder-only temporal filter can be implemented. The filtering is done at the encoder side as a pre-processing step. Source pictures before and after the selected picture to encode are read and a block based motion compensation method relative to the selected picture is applied on those source pictures. Samples in the selected picture are temporally filtered using sample values after motion compensation.
The overall filter strength is set depending on the temporal sub layer of the selected picture as well as the QP. Only pictures at  temporal sub layers  0 and 1 are filtered and pictures of layer 0 are filter by a stronger filter than pictures of layer 1. The per sample filter strength is adjusted depending on the difference between the sample value in the selected picture and the co-located samples in motion compensated pictures so that small differences between a motion compensated picture and the selected picture are filtered more strongly than larger differences.
GOP Based Temporal Filter
A temporal filter is introduced directly after reading picture and before encoding. Below are the steps described in more detail.
Operation 1: Pictures are read by the encoder
Operation 2: If a picture is low enough in the coding hierarchy, it is filtered before encoding. Otherwise the picture is encoded without filtering. RA pictures with POC %8 == 0 are filtered as well as LD pictures with POC %4 == 0. AI pictures are never filtered.
The overall filter strength, s o, is set according to the equation below for RA.
Figure PCTCN2021071360-appb-000008
where n is the number of pictures read.
For the LD case, s o (n) =0.95 is used.
Operation 3: Two pictures before and/or after the selected picture (referred to as original picture further down) are read. In the edge cases e.g. if is the first picture or close to the last picture, only the available pictures are read.
Operation 4: Motion of the read pictures before and after, relative to the original picture is estimated per 8x8 picture block.
A hierarchical motion estimation scheme is used and the layers L0, L1 and L2, are illustrated in FIG. 2. Subsampled pictures are generated by averaging each 2x2 block for all read pictures and the original picture, e.g. L1 in FIG. 1. L2 is derived from L1 using the same subsampling method.
FIG. 2 shows examples of different layers of the hierarchical motion estimation. L0 is the original resolution. L1 is a subsampled version of L0. L2 is a subsampled version of L1.
First, motion estimation is done for each 16x16 block in L2. The squared difference is calculated for each selected motion vector and the motion vector corresponding to the smallest difference is selected. The selected motion vector is then used as initial value when estimating the motion in L1. Then the same is done for estimating motion in L0. As a final step, subpixel motion is estimated for each 8x8 block by using an interpolation filter on L0.
The VTM 6-tap interpolation filter can used:
Figure PCTCN2021071360-appb-000009
Operation 5: Motion compensation is applied on the pictures before and after the original picture according to the best matching motion for each block, e.g., so that the sample coordinates of the original picture in each block have the best matching coordinates in the referenced pictures.
Operation 6: The samples of the processed one by one for the luma and chroma channels as described in the following steps.
Operation 7: The new sample value, I n, is calculated using the following formula.
Figure PCTCN2021071360-appb-000010
Where I o is the sample value of the original sample, I r (i) is the intensity of the corresponding sample of motion compensated picture i and w r (i, a) is the weight of motion compensated picture i when the number of available motion compensated pictures is a.
In the luma channel, the weights, w r (i, a) , is defined as follows:
Figure PCTCN2021071360-appb-000011
Where
s l=0.4
Figure PCTCN2021071360-appb-000012
Figure PCTCN2021071360-appb-000013
For all other cases of i, and a: s r (i, a) =0.3
σ l (QP) =3* (QP-10)
ΔI (i) =I r (i) -I o
For the chroma channels, the weights, w r (i, a) , is defined as follows:
Figure PCTCN2021071360-appb-000014
Where s c=0.55 and σ c=30
Operation 8: The filter is applied for the current sample. The resulting sample value is stored separately.
Operation 9: The filtered picture is encoded.
2.5 Example Picture partitions (tiles, bricks, slices)
In some embodiments, a picture is divided into one or more tile rows and one or more tile columns. A tile is a sequence of CTUs that covers a rectangular region of a picture.
A tile is divided into one or more bricks, each of which consisting of a number of CTU rows within the tile.
A tile that is not partitioned into multiple bricks is also referred to as a brick. However, a brick that is a true subset of a tile is not referred to as a tile.
A slice either contains a number of tiles of a picture or a number of bricks of a tile.
A sub-picture contains one or more slices that collectively cover a rectangular region of a picture.
Two modes of slices are supported, namely the raster-scan slice mode and the rectangular slice mode. In the raster-scan slice mode, a slice contains a sequence of tiles in a tile raster scan of  a picture. In the rectangular slice mode, a slice contains a number of bricks of a picture that collectively form a rectangular region of the picture. The bricks within a rectangular slice are in the order of brick raster scan of the slice.
FIG. 5 shows an example of raster-scan slice partitioning of a picture, where the picture is divided into 12 tiles and 3 raster-scan slices.
FIG. 6 shows an example of rectangular slice partitioning of a picture, where the picture is divided into 24 tiles (6 tile columns and 4 tile rows) and 9 rectangular slices.
FIG. 7 shows an example of a picture partitioned into tiles, bricks, and rectangular slices, where the picture is divided into 4 tiles (2 tile columns and 2 tile rows) , 11 bricks (the top-left tile contains 1 brick, the top-right tile contains 5 bricks, the bottom-left tile contains 2 bricks, and the bottom-right tile contain 3 bricks) , and 4 rectangular slices.
Picture parameter set RBSP syntax
Figure PCTCN2021071360-appb-000015
Figure PCTCN2021071360-appb-000016
Figure PCTCN2021071360-appb-000017
Figure PCTCN2021071360-appb-000018
single_tile_in_pic_flag equal to 1 specifies that there is only one tile in each picture referring to the PPS. single_tile_in_pic_flag equal to 0 specifies that there is more than one tile in each picture referring to the PPS.
NOTE–In absence of further brick splitting within a tile, the whole tile is referred to as a brick.
When a picture contains only a single tile without further brick splitting, it is referred to as a single brick.
It is a requirement of bitstream conformance that the value of single_tile_in_pic_flag shall be the same for all PPSs that are referred to by coded pictures within a CVS.
uniform_tile_spacing_flag equal to 1 specifies that tile column boundaries and likewise tile row boundaries are distributed uniformly across the picture and signalled using the syntax elements tile_cols_width_minus1 and tile_rows_height_minus1. uniform_tile_spacing_flag equal to 0 specifies that tile column boundaries and likewise tile row boundaries may or may not be distributed uniformly across the picture and signalled using the syntax elements num_tile_columns_minus1 and num_tile_rows_minus1 and a list of syntax element pairs tile_column_width_minus1 [i] and tile_row_height_minus1 [i] . When not present, the value of uniform_tile_spacing_flag is inferred to be equal to 1.
tile_cols_width_minus1 plus 1 specifies the width of the tile columns excluding the right-most tile column of the picture in units of CTBs when uniform_tile_spacing_flag is equal to 1. The value of tile_cols_width_minus1 shall be in the range of 0 to PicWidthInCtbsY-1, inclusive. When not present, the value of tile_cols_width_minus1 is inferred to be equal to PicWidthInCtbsY-1.
tile_rows_height_minus1 plus 1 specifies the height of the tile rows excluding the bottom tile row of the picture in units of CTBs when uniform_tile_spacing_flag is equal to 1. The value of tile_rows_height_minus1 shall be in the range of 0 to PicHeightInCtbsY-1, inclusive. When not present, the value of tile_rows_height_minus1 is inferred to be equal to PicHeightInCtbsY-1.
num_tile_columns_minus1 plus 1 specifies the number of tile columns partitioning the picture when uniform_tile_spacing_flag is equal to 0. The value of num_tile_columns_minus1 shall be in the range of 0 to PicWidthInCtbsY -1, inclusive. If single_tile_in_pic_flag is equal to 1, the value of num_tile_columns_minus1 is inferred to be equal to 0. Otherwise, when uniform_tile_spacing_flag is equal to 1, the value of num_tile_columns_minus1 is inferred as specified in clause 6.5.1.
num_tile_rows_minus1 plus 1 specifies the number of tile rows partitioning the picture when uniform_tile_spacing_flag is equal to 0. The value of num_tile_rows_minus1 shall be in the range of 0 to PicHeightInCtbsY -1, inclusive. If single_tile_in_pic_flag is equal to 1, the value of num_tile_rows_minus1 is inferred to be equal to 0. Otherwise, when  uniform_tile_spacing_flag is equal to 1, the value of num_tile_rows_minus1 is inferred as specified in clause 6.5.1.
The variable NumTilesInPic is set equal to (num_tile_columns_minus1+1) * (num_tile_rows_minus1+1) .
When single_tile_in_pic_flag is equal to 0, NumTilesInPic shall be greater than 1.
tile_column_width_minus1 [i] plus 1 specifies the width of the i-th tile column in units of CTBs.
tile_row_height_minus1 [i] plus 1 specifies the height of the i-th tile row in units of CTBs.
brick_splitting_present_flag equal to 1 specifies that one or more tiles of pictures referring to the PPS may be divided into two or more bricks. brick_splitting_present_flag equal to 0 specifies that no tiles of pictures referring to the PPS are divided into two or more bricks.
num_tiles_in_pic_minus1 plus 1 specifies the number of tiles in each picture referring to the PPS. The value of num_tiles_in_pic_minus1 shall be equal to NumTilesInPic–1. When not present, the value of num_tiles_in_pic_minus1 is inferred to be equal to NumTilesInPic-1.
brick_split_flag [i] equal to 1 specifies that the i-th tile is divided into two or more bricks. brick_split_flag [i] equal to 0 specifies that the i-th tile is not divided into two or more bricks.
When not present, the value of brick_split_flag [i] is inferred to be equal to 0. In some embodiments, PPS parsing dependency on SPS is introduced by adding the syntax condition "if (RowHeight [i] > 1) " (e.g., similarly for uniform_brick_spacing_flag [i] ) .
uniform_brick_spacing_flag [i] equal to 1 specifies that horizontal brick boundaries are distributed uniformly across the i-th tile and signalled using the syntax element brick_height_minus1 [i] . uniform_brick_spacing_flag [i] equal to 0 specifies that horizontal brick boundaries may or may not be distributed uniformly across i-th tile and signalled using the syntax element num_brick_rows_minus2 [i] and a list of syntax elements brick_row_height_minus1 [i] [j] . When not present, the value of uniform_brick_spacing_flag [i] is inferred to be equal to 1.
brick_height_minus1 [i] plus 1 specifies the height of the brick rows excluding the bottom brick in the i-th tile in units of CTBs when uniform_brick_spacing_flag [i] is equal to 1. When present, the value of brick_height_minus1 shall be in the range of 0 to RowHeight [i] -2, inclusive. When not present, the value of brick_height_minus1 [i] is inferred to be equal to RowHeight [i] -1.
num_brick_rows_minus2 [i] plus 2 specifies the number of bricks partitioning the i-th tile when uniform_brick_spacing_flag [i] is equal to 0. When present, the value of num_brick_rows_minus2 [i] shall be in the range of 0 to RowHeight [i] -2, inclusive. If brick_split_flag [i] is equal to 0, the value of num_brick_rows_minus2 [i] is inferred to be equal to -1. Otherwise, when uniform_brick_spacing_flag [i] is equal to 1, the value of num_brick_rows_minus2 [i] is inferred as specified in 6.5.1.
brick_row_height_minus1 [i] [j] plus 1 specifies the height of the j-th brick in the i-th tile in units of CTBs when uniform_tile_spacing_flag is equal to 0.
The following variables are derived, and, when uniform_tile_spacing_flag is equal to 1, the values of num_tile_columns_minus1 and num_tile_rows_minus1 are inferred, and, for each i ranging from 0 to NumTilesInPic-1, inclusive, when uniform_brick_spacing_flag [i] is equal to 1, the value of num_brick_rows_minus2 [i] is inferred, by invoking the CTB raster and brick scanning conversion process as specified in clause 6.5.1:
– the list RowHeight [j] for j ranging from 0 to num_tile_rows_minus1, inclusive, specifying the height of the j-th tile row in units of CTBs,
– the list CtbAddrRsToBs [ctbAddrRs] for ctbAddrRs ranging from 0 to PicSizeInCtbsY-1, inclusive, specifying the conversion from a CTB address in the CTB raster scan of a picture to a CTB address in the brick scan,
– the list CtbAddrBsToRs [ctbAddrBs] for ctbAddrBs ranging from 0 to PicSizeInCtbsY-1, inclusive, specifying the conversion from a CTB address in the brick scan to a CTB address in the CTB raster scan of a picture,
– the list BrickId [ctbAddrBs] for ctbAddrBs ranging from 0 to PicSizeInCtbsY-1, inclusive, specifying the conversion from a CTB address in brick scan to a brick ID,
– the list NumCtusInBrick [brickIdx] for brickIdx ranging from 0 to NumBricksInPic-1, inclusive, specifying the conversion from a brick index to the number of CTUs in the brick,
– the list FirstCtbAddrBs [brickIdx] for brickIdx ranging from 0 to NumBricksInPic-1, inclusive, specifying the conversion from a brick ID to the CTB address in brick scan of the first CTB in the brick.
single_brick_per_slice_flag equal to 1 specifies that each slice that refers to this PPS includes one brick. single_brick_per_slice_flag equal to 0 specifies that a slice that refers to this PPS may  include more than one brick. When not present, the value of single_brick_per_slice_flag is inferred to be equal to 1.
rect_slice_flag equal to 0 specifies that bricks within each slice are in raster scan order and the slice information is not signalled in PPS. rect_slice_flag equal to 1 specifies that bricks within each slice cover a rectangular region of the picture and the slice information is signalled in the
PPS. When brick_splitting_present_flag is equal to 1, the value of rect_slice_flag shall be equal to 1. When not present, rect_slice_flag is inferred to be equal to 1.
num_slices_in_pic_minus1 plus 1 specifies the number of slices in each picture referring to the PPS. The value of num_slices_in_pic_minus1 shall be in the range of 0 to NumBricksInPic-1, inclusive. When not present and single_brick_per_slice_flag is equal to 1, the value of num_slices_in_pic_minus1 is inferred to be equal to NumBricksInPic-1.
bottom_right_brick_idx_length_minus1 plus 1 specifies the number of bits used to represent the syntax element bottom_right_brick_idx_delta [i] . The value of bottom_right_brick_idx_length_minus1 shall be in the range of 0 to Ceil (Log2 (NumBricksInPic) ) -1, inclusive.
bottom_right_brick_idx_delta [i] when i is greater than 0 specifies the difference between the brick index of the brick located at the bottom-right corner of the i-th slice and and the brick index of the bottom-right corner of the (i–1) -th slice. bottom_right_brick_idx_delta [0] specifies the brick index of the bottom right corner of the 0-th slice. When single_brick_per_slice_flag is equal to 1, the value of bottom_right_brick_idx_delta [i] is inferred to be equal to 1. The value of the BottomRightBrickIdx [num_slices_in_pic_minus1] is inferred to be equal to NumBricksInPic–1. The length of the bottom_right_brick_idx_delta [i] syntax element is bottom_right_brick_idx_length_minus1+1 bits.
brick_idx_delta_sign_flag [i] equal to 1 indicates a positive sign for bottom_right_brick_idx_delta [i] . sign_bottom_right_brick_idx_delta [i] equal to 0 indicates a negative sign for bottom_right_brick_idx_delta [i] .
It is a requirement of bitstream conformance that a slice shall include either a number of complete tiles or only a consecutive sequence of complete bricks of one tile.
The variable TopLeftBrickIdx [i] , BottomRightBrickIdx [i] , NumBricksInSlice [i] and BricksToSliceMap [j] , which specify the brick index of the brick located at the top left corner of  the i-th slice, the brick index of the brick located at the bottom right corner of the i-th slice, the number of bricks in the i-th slice and the mapping of bricks to slices, are derived as follows:
for (j = 0; i == 0 &&j < NumBricksInPic; j++)
BricksToSliceMap [j] = -1
NumBricksInSlice [i] = 0
BottomRightBrickIdx [i] =bottom_right_brick_idx_delta [i] ] + ( (i == 0) ? 0 : (brick_idx_delta_sign_flag [i] ? BottomRightBrickIdx [i-1] :
-BottomRightBrickIdx [i-1] )
Figure PCTCN2021071360-appb-000019
General slice header semantics
When present, the value of each of the slice header syntax elements slice_pic_parameter_set_id, non_reference_picture_flag, colour_plane_id, slice_pic_order_cnt_lsb, recovery_poc_cnt, no_output_of_prior_pics_flag, pic_output_flag, and slice_temporal_mvp_enabled_flag shall be the same in all slice headers of a coded picture.
The variable CuQpDeltaVal, specifying the difference between a luma quantization parameter for the coding unit containing cu_qp_delta_abs and its prediction, is set equal to 0. The variables CuQpOffset Cb, CuQpOffset Cr, and CuQpOffset CbCr, specifying values to be used when determining the respective values of the Qp′ Cb, Qp′ Cr, and Qp′ CbCr quantization parameters for the coding unit containing cu_chroma_qp_offset_flag, are all set equal to 0.
slice_pic_parameter_set_id specifies the value of pps_pic_parameter_set_id for the PPS in use. The value of slice_pic_parameter_set_id shall be in the range of 0 to 63, inclusive.
It is a requirement of bitstream conformance that the value of TemporalId of the current picture shall be greater than or equal to the value of TemporalId of the PPS that has pps_pic_parameter_set_id equal to slice_pic_parameter_set_id.
slice_address specifies the slice address of the slice. When not present, 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 brick ID as specified by Equation (7-59) .
- The length of slice_address is Ceil (Log2 (NumBricksInPic) ) bits.
- The value of slice_address shall be in the range of 0 to NumBricksInPic-1, inclusive.
Otherwise (rect_slice_flag is equal to 1) , the following applies:
- The slice address is the slice ID of the slice.
- The length of slice_address is signalled_slice_id_length_minus1+1 bits.
- If signalled_slice_id_flag is equal to 0, the value of slice_address shall be in the range of 0 to num_slices_in_pic_minus1, inclusive. Otherwise, the value of slice_address shall be in the range of 0 to 2  (signalled_slice_id_length_minus1+1) -1, inclusive.
It is a requirement of bitstream conformance that the following constraints apply:
- The value of slice_address shall not be equal to the value of slice_address of any other coded slice NAL unit of the same coded picture.
- When rect_slice_flag is equal to 0, the slices of a picture shall be in increasing order of their slice_address values.
- The shapes of the slices of a picture shall be such that each brick, when decoded, shall have its entire left boundary and entire top boundary consisting of a picture boundary or consisting of boundaries of previously decoded brick (s) .
num_bricks_in_slice_minus1, when present, specifies the number of bricks in the slice minus 1. The value of num_bricks_in_slice_minus1 shall be in the range of 0 to NumBricksInPic-1, inclusive. When rect_slice_flag is equal to 0 and single_brick_per_slice_flag is equal to 1, the value ofnum_bricks_in_slice_minus1 is inferred to be equal to 0. When single_brick_per_slice_flag is equal to 1, the value of num_bricks_in_slice_minus1 is inferred to be equal to 0.
The variable NumBricksInCurrSlice, which specifies the number of bricks in the current slice, and SliceBrickIdx [i] , which specifies the brick index of the i-th brick in the current slice, are derived as follows:
Figure PCTCN2021071360-appb-000020
The variables SubPicIdx, SubPicLeftBoundaryPos, SubPicTopBoundaryPos,
SubPicRightBoundaryPos, and SubPicBotBoundaryPos are derived as follows:
SubPicIdx =
CtbToSubPicIdx [CtbAddrBsToRs [FirstCtbAddrBs [SliceBrickIdx [0] ] ] ]
if (subpic_treated_as_pic_flag [SubPicIdx] ) {
SubPicLeftBoundaryPos =
SubPicLeft [SubPicIdx] * (subpic_grid_col_width_minus1+1) *4
SubPicRightBoundaryPos =
(SubPicLeft [SubPicIdx] +SubPicWidth [SubPicIdx] ) *
(subpic_grid_col_width_minus1+1) *4        (7-93)
SubPicTopBoundaryPos =
SubPicTop [SubPicIdx] * (subpic_grid_row_height_minus1+1) *4
SubPicBotBoundaryPos = (SubPicTop [SubPicIdx] +SubPicHeight [SubPicIdx] ) *
(subpic_grid_row_height_minus1+1) *4
}
2.6 Example Syntax and Semantics
Sequence parameter set RBSP syntax
Figure PCTCN2021071360-appb-000021
Figure PCTCN2021071360-appb-000022
Figure PCTCN2021071360-appb-000023
Figure PCTCN2021071360-appb-000024
Figure PCTCN2021071360-appb-000025
Figure PCTCN2021071360-appb-000026
Figure PCTCN2021071360-appb-000027
Picture parameter set RBSP syntax
Figure PCTCN2021071360-appb-000028
Figure PCTCN2021071360-appb-000029
Figure PCTCN2021071360-appb-000030
Figure PCTCN2021071360-appb-000031
Figure PCTCN2021071360-appb-000032
Picture header RBSP syntax
Figure PCTCN2021071360-appb-000033
Figure PCTCN2021071360-appb-000034
Figure PCTCN2021071360-appb-000035
Figure PCTCN2021071360-appb-000036
Figure PCTCN2021071360-appb-000037
Figure PCTCN2021071360-appb-000038
Figure PCTCN2021071360-appb-000039
subpics_present_flag equal to 1 indicates that sub-picture parameters are present in the present in the SPS RBSP syntax. subpics_present_flag equal to 0 indicates that sub-picture parameters are not present in the present in the SPS RBSP syntax.
NOTE 2–When a bitstream is the result of a sub-bitstream extraction process and contains only a subset of the sub-pictures of the input bitstream to the sub-bitstream extraction process,
it might be required to set the value of subpics_present_flag equal to 1 in the RBSP of the SPSs.
sps_num_subpics_minus1 plus 1 specifies the number of sub-pictures.
sps_num_subpics_minus1 shall be in the range of 0 to 254. When not present, the value of sps_num_subpics_minus1 is inferred to be equal to 0.
subpic_ctu_top_left_x [i] specifies horizontal position of top left CTU of i-th sub-picture in unit of CtbSizeY. The length of the syntax element is
Ceil (Log2 (pic_width_max_in_luma_samples/CtbSizeY) ) bits. When not present, the value of subpic_ctu_top_left_x [i] is inferred to be equal to 0.
subpic_ctu_top_left_y [i] specifies vertical position of top left CTU of i-th sub-picture in unit of CtbSizeY. The length of the syntax element is
Ceil (Log2 (pic_height_max_in_luma_samples/CtbSizeY) ) bits. When not present, the value of subpic_ctu_top_left_y [i] is inferred to be equal to 0.
subpic_width_minus1 [i] plus 1 specifies the width of the i-th sub-picture in units of CtbSizeY. The length of the syntax element is
Ceil (Log2 (pic_width_max_in_luma_samples/CtbSizeY) ) bits. When not present, the value of subpic_width_minus1 [i] is inferred to be equal to
Ceil (pic_width_max_in_luma_samples/CtbSizeY) -1.
subpic_height_minus1 [i] plus 1 specifies the height of the i-th sub-picture in units of CtbSizeY. The length of the syntax element is Ceil (Log2 (pic_height_max_in_luma_samples/CtbSizeY) ) bits. When not present, the value of subpic_height_minus1 [i] is inferred to be equal to
Ceil (pic_height_max_in_luma_samples/CtbSizeY) -1.
subpic_treated_as_pic_flag [i] equal to 1 specifies that the i-th sub-picture of each coded picture in the CVS is treated as a picture in the decoding process excluding in-loop filtering operations. subpic_treated_as_pic_flag [i] equal to 0 specifies that the i-th sub-picture of each coded picture in the CVS is not treated as a picture in the decoding process excluding in-loop filtering operations. When not present, the value of subpic_treated_as_pic_flag [i] is inferred to be equal to 0.
loop_filter_across_subpic_enabled_flag [i] equal to 1 specifies that in-loop filtering operations may be performed across the boundaries of the i-th sub-picture in each coded picture in the CVS. loop_filter_across_subpic_enabled_flag [i] equal to 0 specifies that in-loop filtering operations are not performed across the boundaries of the i-th sub-picture in each coded picture in the CVS. When not present, the value of loop_filter_across_subpic_enabled_pic_flag [i] is inferred to be equal to 1.
It is a requirement of bitstream conformance that the following constraints apply:
- For any two sub-pictures subpicA and subpicB, when the index of subpicA is less than the index of subpicB, any coded NAL unit of subPicA shall succeed any coded NAL unit of subPicB in decoding order.
- The shapes of the sub-pictures shall be such that each sub-picture, when decoded, shall have its entire left boundary and entire top boundary consisting of picture boundaries or consisting of boundaries of previously decoded sub-pictures.
sps_subpic_id_present_flag equal to 1 specifies that sub-picture Id mapping is present in the SPS. sps_subpic_id_present_flag equal to 0 specifies that sub-picture Id mapping is not present in the SPS.
sps_subpic_id_signalling_present_flag equal to 1 specifies that sub-picture Id mapping is signalled in the SPS. sps_subpic_id_signalling_present_flag equal to 0 specifies that sub-picture Id mapping is not signalled in the SPS. When not present, the value of sps_subpic_id_signalling_present_flag is inferred to be equal to 0.
sps_subpic_id_len_minus1 plus 1 specifies the number of bits used to represent the syntax element sps_subpic_id [i] . The value of sps_subpic_id_len_minus1 shall be in the range of 0 to 15, inclusive.
sps_subpic_id [i] specifies that sub-picture Id of the i-th sub-picture. The length of the sps_subpic_id [i] syntax element is sps_subpic_id_len_minus1+1 bits. When not present, and when sps_subpic_id_present_flag equal to 0, the value of sps_subpic_id [i] is inferred to be equal to i, for each i in the range of 0 to sps_num_subpics_minus1, inclusive
ph_pic_parameter_set_id specifies the value of pps_pic_parameter_set_id for the PPS in use. The value of ph_pic_parameter_set_id shall be in the range of 0 to 63, inclusive.
It is a requirement of bitstream conformance that the value of TemporalId of the picture header shall be greater than or equal to the value of TemporalId of the PPS that has pps_pic_parameter_set_id equal to ph_pic_parameter_set_id.
ph_subpic_id_signalling_present_flag equal to 1 specifies that sub-picture Id mapping is signalled in the picture header. ph_subpic_id_signalling_present_flag equal to 0 specifies that sub-picture Id mapping is not signalled in the picture header.
ph_subpic_id_len_minus1 plus 1 specifies the number of bits used to represent the syntax element ph_subpic_id [i] . The value of pic_subpic_id_len_minus1 shall be in the range of 0 to 15, inclusive.
It is a requirement of bitstream conformance that the value of ph_subpic_id_len_minus1 shall be the same for all picture headers that are referred to by coded pictures in a CVS.
ph_subpic_id [i] specifies that sub-picture Id of the i-th sub-picture. The length of the ph_subpic_id [i] syntax element is ph_subpic_id_len_minus1+1 bits.
The list SubpicIdList [i] is derived as follows:
for (i = 0; i <= sps_num_subpics_minus1; i++) SubpicIdList [i] = sps_subpic_id_present_flag?        (7-39)
(sps_subpic_id_signalling_present_flag ? sps_subpic_id [i] :
(ph_subpic_id_signalling_present_flag ? ph_subpic_id [i] :
pps_subpic_id [i] ) ) : i
Deblocking filter process
General
Inputs to this process are the reconstructed picture prior to deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr.
Outputs of this process are the modified reconstructed picture after deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr.
The vertical edges in a picture are filtered first. Then the horizontal edges in a picture are filtered with samples modified by the vertical edge filtering process as input. The vertical and horizontal edges in the CTBs of each CTU are processed separately on a coding unit basis. The vertical edges of the coding blocks in a coding unit are filtered starting with the edge on the left-hand side of the coding blocks proceeding through the edges towards the right-hand side of the coding blocks in their geometrical order. The horizontal edges of the coding blocks in a coding unit are filtered starting with the edge on the top of the coding blocks proceeding through the edges towards the bottom of the coding blocks in their geometrical order.
NOTE–Although the filtering process is specified on a picture basis in this Specification, the filtering process can be implemented on a coding unit basis with an equivalent result, provided the decoder properly accounts for the processing dependency order so as to produce the same output values.
The deblocking filter process is applied to all coding subblock edges and transform block edges of a picture, except the following types of edges:
– Edges that are at the boundary of the picture,
–  Edges that coincide with the boundaries of a sub-picture for which  loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0,
– Edges that coincide with the virtual boundaries of the picture when pps_loop_filter_across_virtual_boundaries_disabled_flag is equal to 1,
– Edges that coincide with tile boundaries when loop_filter_across_tiles_enabled_flag is equal to 0,
– Edges that coincide with slice boundaries when loop_filter_across_slices_enabled_flag is equal to 0,
– Edges that coincide with upper or left boundaries of slices with slice_deblocking_filter_disabled_flag equal to 1,
– Edges within slices with slice_deblocking_filter_disabled_flag equal to 1,
– Edges that do not correspond to 4x4 sample grid boundaries of the luma component,
– Edges that do not correspond to 8x8 sample grid boundaries of the chroma component,
– Edges within the luma component for which both sides of the edge have intra_bdpcm_luma_flag equal to 1,
– Edges within the chroma components for which both sides of the edge have intra_bdpcm_chroma_flag equal to 1,
– Edges of chroma subblocks that are not edges of the associated transform unit.
Deblocking filter process for one direction
Inputs to this process are:
– the variable treeType specifying whether the luma (DUAL_TREE_LUMA) or chroma components (DUAL_TREE_CHROMA) are currently processed,
– when treeType is equal to DUAL_TREE_LUMA, the reconstructed picture prior to deblocking, i.e., the array recPicture L,
– when ChromaArrayType is not equal to 0 and treeType is equal to DUAL_TREE_CHROMA, the arrays recPicture Cb and recPicture Cr,
– a variable edgeType specifying whether a vertical (EDGE_VER) or a horizontal (EDGE_HOR) edge is filtered.
Outputs of this process are the modified reconstructed picture after deblocking, i.e:
– when treeType is equal to DUAL_TREE_LUMA, the array recPicture L,
– when ChromaArrayType is not equal to 0 and treeType is equal to DUAL_TREE_CHROMA, the arrays recPicture Cb and recPicture Cr.
The variables firstCompIdx and lastCompIdx are derived as follows:
firstCompIdx = (treeType == DUAL_TREE_CHROMA) ? 1 : 0        (8-1010)
lastCompIdx = (treeType == DUAL_TREE_LUMA || ChromaArrayType == 0) ? 0 : 2    (8-1011)
For each coding unit and each coding block per colour component of a coding unit indicated by the colour component index cIdx ranging from firstCompIdx to lastCompIdx, inclusive, with coding block width nCbW, coding block height nCbH and location of top-left sample of the coding block (xCb, yCb) , when cIdx is equal to 0, or when cIdx is not equal to 0 and edgeType is equal to EDGE_VER and xCb%8 is equal 0, or when cIdx is not equal to 0 and edgeType is equal to EDGE_HOR and yCb%8 is equal to 0, the edges are filtered by the following ordered steps:
1. The variable filterEdgeFlag is derived as follows:
– If edgeType is equal to EDGE_VER and one or more of the following conditions are true, filterEdgeFlag is set equal to 0:
– The left boundary of the current coding block is the left boundary of the picture.
–  The left boundary of the current coding block is the left or right boundary of  the sub-picture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is  equal to 0.
– The left boundary of the current coding block is the left boundary of the tile and loop_filter_across_tiles_enabled_flag is equal to 0.
– The left boundary of the current coding block is the left boundary of the slice and loop_filter_across_slices_enabled_flag is equal to 0.
– The left boundary of the current coding block is one of the vertical virtual boundaries of the picture and VirtualBoundariesDisabledFlag is equal to 1.
– Otherwise, if edgeType is equal to EDGE_HOR and one or more of the following conditions are true, the variable filterEdgeFlag is set equal to 0:
– The top boundary of the current luma coding block is the top boundary of the picture.
–  The top boundary of the current coding block is the top or bottom boundary of  the sub-picture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is  equal to 0.
– The top boundary of the current coding block is the top boundary of the tile and loop_filter_across_tiles_enabled_flag is equal to 0.
– The top boundary of the current coding block is the top boundary of the slice and loop_filter_across_slices_enabled_flag is equal to 0.
– The top boundary of the current coding block is one of the horizontal virtual boundaries of the picture and VirtualBoundariesDisabledFlag is equal to 1.
– Otherwise, filterEdgeFlag is set equal to 1.
2.7 Example TPM, HMVP and GEO
TPM (triangular Prediction Mode) in VVC divides a block into two triangles with different motion information.
HMVP (History-based Motion vector Prediction) in VVC maintains a table of motion information to be used for motion vector prediction. The table is updated after decoding an inter-coded block, but it is not updated if the inter-coded block is TPM-coded.
GEO (geometry partition mode) is an extension of TPM. With GEO, a block can be divided by a straight-line into two partitions, which may be or may not be triangles.
2.8 ALF, CC-ALF and virtual boundary
ALF (Adaptive Loop-Filter) in VVC is applied after a picture has been decoded, to enhance the picture quality.
Virtual Boundary (VB) is adopted in VVC to make ALF friendly to hardware design. With VB, ALF is conducted in an ALF processing unit bounded by two ALF virtual boundaries.
CC-ALF (cross-component ALF) as filters the chroma samples by referring to the information of luma samples.
2.9 Example SEI for sub-pictures
D.2.8 Sub-picture level information SEI message syntax
Figure PCTCN2021071360-appb-000040
D.3.8 Sub-picture level information SEI message semantics
The sub-picture level information SEI message contains information about the level that sub-pictures in the bitstream conform to when testing conformance of extracted bitstreams containing the sub-pictures according to Annex A.
When a sub-picture level information SEI message is present for any picture of a CLVS, a sub-picture level information SEI message shall be present for the first picture of the CLVS. The sub-picture level information SEI message persists for the current layer in decoding order from the current picture until the end of the CLVS. All sub-picture level information SEI messages that apply to the same CLVS shall have the same content.
sli_seq_parameter_set_id indicates and shall be equal to the sps_seq_parameter_set_id for the SPS that is referred to by the coded picture associated with the sub-picture level information SEI message. The value of sli_seq_parameter_set_id shall be equal to the value of pps_seq_parameter_set_id in the PPS referenced by the ph_pic_parameter_set_id of the PH of the coded picture associated with the sub-picture level information SEI message.
It is a requirement of bitstream conformance that, when a sub-picture level information SEI message is present for a CLVS, the value of subpic_treated_as_pic_flag [i] shall be equal to 1 for each value of i in the range of 0 to sps_num_subpics_minus1, inclusive.
num_ref_levels_minus1 plus 1 specifies the number of reference levels signalled for each of the sps_num_subpics_minus1+1 sub-pictures.
explicit_fraction_present_flag equal to 1 specifies that the syntax elements ref_level_fraction_minus1 [i] are present. explicit_fraction_present_flag equal to 0 specifies that the syntax elements ref_level_fraction_minus1 [i] are not present.
ref_level_idc [i] indicates a level to which each sub-picture conforms as specified in Annex A. Bitstreams shall not contain values of ref_level_idc other than those specified in Annex A. Other values of ref_level_idc [i] are reserved for future use by ITU-T | ISO/IEC. It is a requirement of bitstream conformance that the value of ref_level_idc [i] shall be less than or equal to ref_level_idc [k] for any value of k greater than i.
ref_level_fraction_minus1 [i] [j] plus 1 specifies the fraction of the level limits associated with ref_level_idc [i] that the j-th sub-picture conforms to as specified in clause A. 4. 1.
The variable SubPicSizeY [j] is set equal to (subpic_width_minus1 [j] +1) * (subpic_height_minus1 [j] +1) .
When not present, the value of ref_level_fraction_minus1 [i] [j] is inferred to be equal to Ceil (256*SubPicSizeY [j] ÷PicSizeInSamplesY*MaxLumaPs (general_level_idc) ÷MaxLu maPs (ref_level_idc [i] ) –1.
The variable RefLevelFraction [i] [j] is set equal to ref_level_fraction_minus1 [i] [j] +1.
The variables SubPicNumTileCols [j] and SubPicNumTileRows [j] are derived as follows:
for (i = 0; i <= sps_num_subpics_minus1; i++) {
SubPicNumTileCols [i] = 1
SubPicNumTileRows [i] = 1
for (ctbAddrRs = subpic_ctu_top_left_x [i] + 1; ctbAddrRs <=
subpic_ctu_top_left_x [i] + subpic_width_minus1 [i] ; ctbAddrRs++) 
if (CtbToTileColBd [ctbAddrRs] ! = CtbToTileColBd [ctbAddrRs-1] ) 
SubPicNumTileCols [i] ++
(D. 5)
for (ctbAddrRs = (subpic_ctu_top_left_y [i] + 1) *PicWidthInCtbsY;
ctbAddrRs <= (subpic_ctu_top_left_y [i] + subpic_height_minus1 [i] 
) *PicWidthInCtbsY;
ctbAddrRs += PicWidthInCtbsY)
if (CtbToTileRowBd [ctbAddrRs] ! =
CtbToTileRowBd [ctbAddrRs-PicWidthInCtbsY] )
SubPicNumTileRows [i] ++
}
The variables SubPicCpbSizeVcl [i] [j] and SubPicCpbSizeNal [i] [j] are derived as follows:
SubPicCpbSizeVcl [i] [j] =
Floor (CpbVclFactor*MaxCPB*RefLevelFraction [i] [j] ÷256)     (D. 6)
SubPicCpbSizeNal [i] [j] =
Floor (CpbNalFactor*MaxCPB*RefLevelFraction [i] [j] ÷256)      (D. 7)
with MaxCPB derived from ref_level_idc [i] as specified in clause A. 4.2.
NOTE 1–When a sub-picture is extracted, the resulting bitstream has a CpbSize (either indicated in the SPS or inferred) that is greater than or equal to SubPicCpbSizeVcl [i] [j] and SubPicCpbSizeNal [i] [j] .
It is a requirement of bitstream conformance that the bitstreams resulting from extracting the j-th sub-picture for j in the range of 0 to sps_num_subpics_minus1, inclusive, and conforming to a profile with general_tier_flag equal to 0 and level equal to ref_level_idc [i] for i in the range of 0 to num_ref_level_minus1, inclusive, shall obey the following constraints for each bitstream conformance test as specified in Annex C:
– Ceil (256*SubPicSizeY [i] ÷RefLevelFraction [i] [j] ) shall be less than or equal to MaxLumaPs, where MaxLumaPs is specified in Table A. 1.
– The value of Ceil (256* (subpic_width_minus1 [i] +1) ÷RefLevelFraction [i] [j] ) shall be less than or equal to Sqrt (MaxLumaPs*8) .
– The value of Ceil (256* (subpic_height_minus1 [i] +1) ÷RefLevelFraction [i] [j] ) shall be less than or equal to Sqrt (MaxLumaPs*8) .
– The value of SubPicNumTileCols [j] shall be less than or equal to MaxTileCols and of SubPicNumTileRows [j] shall be less than or equal to MaxTileRows, where MaxTileCols and MaxTileRows are specified in Table A. 1.
For any sub-picture set containing one ore more sub-pictures and constisting of a list of sub-picture indices SubPicSetIndices and a number of sub-pictures in the sub-picture set NumSubPicInSet, the level information of the sub-picture set is derived.
The variable SubPicSetAccLevelFraction [i] for the total level fraction with respect to the reference level ref_level_idc [i] , and the variables SubPicSetCpbSizeVcl [i] [j] and SubPicSetCpbSizeNal [i] [j] of the sub-picture set, are derived as follows:
Figure PCTCN2021071360-appb-000041
The value of the sub-picture set sequence level indicator, SubPicSetLevelIdc, is derived as follows:
SubPicSetLevelIdc= general_level_idc
for (i= num_ref_level_minus1; i >= 0; i--)
if (SubPicSetNumTiles [i] <= (MaxTileCols *MaxTileRows) && (D. 9) 
SubPicSetAccLevelFraction [i] <= 256)
SubPicSetLevelIdc = ref_level_idc [i]
where MaxTileCols and MaxTileRows are specified in Table A. 1 for ref_level_idc [i] .
The sub-picture set bitstream conforming to a profile with general_tier_flag equal to 0 and a level equal to SubPicSetLevelIdc shall obey the following constraints for each bitstream conformance test as specified in Annex C:
– For the VCL HRD parameters, SubPicSetCpbSizeVcl [i] shall be less than or equal to CpbVclFactor *MaxCPB, where CpbVclFactor is specified in Table A. 3 and MaxCPB is specified in Table A. 1 in units of CpbVclFactor bits.
– For the NAL HRD parameters, SubPicSetCpbSizeVcl [i] shall be less than or equal to CpbNalFactor *MaxCPB, where CpbNalFactor is specified in Table A. 3, and MaxCPB is specified in Table A. 1 in units of CpbNalFactor bits. MaxCPB
NOTE 2–When a sub-picture set is extracted, the resulting bitstream has a CpbSize (either indicated in the SPS or inferred) that is greater than or equal to SubPicCpbSizeVcl [i] [j] and SubPicSetCpbSizeNal [i] [j] .
2.10. Palette mode
2.10.1 Concept of Palette Mode
The basic idea behind a palette mode is that the pixels in the CU are represented by a small set of representative colour values. This set is referred to as the palette. And it is also possible to indicate a sample that is outside the palette by signalling an escape symbol followed by (possibly quantized) component values. This kind of pixel is called escape pixel. The palette mode is illustrated in FIG. 10. As depicted in FIG. 10, for each pixel with three coloc components (luma, and two chroma components) , an index to the palette is founded, and the block could be reconstructed based on the founded values in the palette.
2.10.2 Coding of the palette entries
For a palette coded blocks, the following key aspects are introduced:
(1) Construct the current palette based on a predictor palette and new entries signaled for current palette, if existing
(2) Classify the current samples/pixels to two categories: one (1 st category) to include samples/pixels in the current palette, and the other (2 nd category) to include samples/pixels beyond the current palette.
A. For the samples/pixels in the 2 nd category, quantization (at encoder) is applied to samples/pixels and quantized values are signaled; and dequantization (at decoder) is applied
2.10.2.1 Predictor palette
For coding of the palette entries, a predictor palette is maintained which is updated after decoding a palette coded block.
2.10.2.1.1 Initialization of predictor palette
The predictor palette is initialized at the beginning of each slice and each tile. The maximum size of the palette as well as the predictor palette is signalled in the SPS. In HEVC-SCC,  a palette_predictor_initializer_present_flag is introduced in the PPS. When this flag is 1, entries for initializing the predictor palette are signalled in the bitstream.
Depending on the value of the palette_predictor_initializer_present_flag, the size of predictor palette is reset to 0 or initialized using the predictor palette initializer entries signalled in the PPS. In HEVC-SCC, a predictor palette initializer of size 0 was enabled to allow explicit disabling of the predictor palette initialization at the PPS level.
Corresponding syntax, semantics and decoding process are defined as follows:
7.3.2.2.3Sequence parameter set screen content coding extension syntax
Figure PCTCN2021071360-appb-000042
palette_mode_enabled_flag equal to 1 specifies that the decoding process for palette mode may be used for intra blocks. palette_mode_enabled_flag equal to 0 specifies that the decoding  process for palette mode is not applied. When not present, the value of palette_mode_enabled_flag is inferred to be equal to 0.
palette_max_size specifies the maximum allowed palette size. When not present, the value of palette_max_size is inferred to be 0.
delta_palette_max_predictor_size specifies the difference between the maximum allowed palette predictor size and the maximum allowed palette size. When not present, the value of delta_palette_max_predictor_size is inferred to be 0. The variable PaletteMaxPredictorSize is derived as follows:
PaletteMaxPredictorSize = palette_max_size + delta_palette_max_predictor_size (0-57) It is a requirement of bitstream conformance that the value of delta_palette_max_predictor_size shall be equal to 0 when palette_max_size is equal to 0.
sps_palette_predictor_initializer_present_flag equal to 1 specifies that the sequence palette predictors are initialized using the sps_palette_predictor_initializers.
sps_palette_predictor_initializer_flag equal to 0 specifies that the entries in the sequence palette predictor are initialized to 0. When not present, the value of sps_palette_predictor_initializer_flag is inferred to be equal to 0.
It is a requirement of bitstream conformance that the value of sps_palette_predictor_initializer_present_flag shall be equal to 0 when palette_max_size is equal to 0.
sps_num_palette_predictor_initializer_minus1 plus 1 specifies the number of entries in the sequence palette predictor initializer.
It is a requirement of bitstream conformance that the value of sps_num_palette_predictor_initializer_minus1 plus 1 shall be less than or equal to
PaletteMaxPredictorSize.
sps_palette_predictor_initializers [comp] [i] specifies the value of the comp-th component of the i-th palette entry in the SPS that is used to initialize the array PredictorPaletteEntries. For values of i in the range of 0 to sps_num_palette_predictor_initializer_minus1, inclusive, the value of the sps_palette_predictor_initializers [0] [i] shall be in the range of 0 to (1<<BitDepth Y) -1, inclusive, and the values of sps_palette_predictor_initializers [1] [i] and sps_palette_predictor_initializers [2] [i] shall be in the range of 0 to (1<<BitDepth C) -1, inclusive.
7.3.2.3.3Picture parameter set screen content coding extension syntax
Figure PCTCN2021071360-appb-000043
pps_palette_predictor_initializer_present_flag equal to 1 specifies that the palette predictor initializers used for the pictures referring to the PPS are derived based on the palette predictor initializers specified by the PPS. pps_palette_predictor_initializer_flag equal to 0 specifies that the palette predictor initializers used for the pictures referring to the PPS are inferred to be equal  to those specified by the active SPS. When not present, the value of pps_palette_predictor_initializer_present_flag is inferred to be equal to 0.
It is a requirement of bitstream conformance that the value of pps_palette_predictor_initializer_present_flag shall be equal to 0 when either palette_max_size is equal to 0 or palette_mode_enabled_flag is equal to 0.
pps_num_palette_predictor_initializer specifies the number of entries in the picture palette predictor initializer.
It is a requirement of bitstream conformance that the value of pps_num_palette_predictor_initializer shall be less than or equal to PaletteMaxPredictorSize.
The palette predictor variables are initialized as follows:
– If the coding tree unit is the first coding tree unit in a tile, the following applies:
– The initialization process for palette predictor variables is invoked
– Otherwise, if entropy_coding_sync_enabled_flag is equal to 1 and either CtbAddrInRs%PicWidthInCtbsY is equal to 0 or TileId [CtbAddrInTs] is not equal to TileId [CtbAddrRsToTs [CtbAddrInRs-1] ] , the following applies:
– The location (xNbT, yNbT) of the top-left luma sample of the spatial neighbouring block T is derived using the location (x0, y0) of the top-left luma sample of the current coding tree block as follows:
(xNbT, yNbT) = (x0+CtbSizeY, y0-CtbSizeY)        (0-58)
– The availability derivation process for a block in z-scan order is invoked with the location (xCurr, yCurr) set equal to (x0, y0) and the neighbouring location (xNbY, yNbY) set equal to (xNbT, yNbT) as inputs, and the output is assigned to availableFlagT.
– The synchronization process for context variables, Rice parameter intialization states, and palette predictor variables is invoked as follows:
– If availableFlagT is equal to 1, the synchronization process for context variables, Rice parameter initialization states, and palette predictor variable is invoked with TableStateIdxWpp, TableMpsValWpp, TableStatCoeffWpp, PredictorPaletteSizeWpp, and TablePredictorPaletteEntriesWpp as inputs.
– Otherwise, the following applies:
– The initialization process for palette predictor variables is invoked.
– Otherwise, if CtbAddrInRs is equal to slice_segment_address and dependent_slice_segment_flag is equal to 1, the synchronization process for context variables and Rice parameter initialization states is invoked with TableStateIdxDs, TableMpsValDs, TableStatCoeffDs, PredictorPaletteSizeDs, and TablePredictorPaletteEntriesDs as inputs.
– Otherwise, the following applies:
– The initialization process for palette predictor variables is invoked.
9.3.2.3 Initialization process for palette predictor entries
Outputs of this process are the initialized palette predictor variables PredictorPaletteSize and PredictorPaletteEntries.
The variable numComps is derived as follows:
numComps = (ChromaArrayType == 0) ? 1 : 3       (0-59)
– If pps_palette_predictor_initializer_present_flag is equal to 1, the following applies:
– PredictorPaletteSize is set equal to pps_num_palette_predictor_initializer.
– The array PredictorPaletteEntries is derived as follows:
for (comp = 0; comp < numComps; comp++)
for (i = 0; i < PredictorPaletteSize; i++)       (0-60)
PredictorPaletteEntries [comp] [i] =
pps_palette_predictor_initializers [comp] [i]
– Otherwise (pps_palette_predictor_initializer_present_flag is equal to 0) , if sps_palette_predictor_initializer_present_flag is equal to 1, the following applies:
– PredictorPaletteSize is set equal to sps_num_palette_predictor_initializer_minus1 plus 1.
– The array PredictorPaletteEntries is derived as follows:
for (comp = 0; comp < numComps; comp++)
for (i = 0; i < PredictorPaletteSize; i++)       (0-61)
PredictorPaletteEntries [comp] [i] =
sps_palette_predictor_initializers [comp] [i]
– Otherwise (pps_palette_predictor_initializer_present_flag is equal to 0 and sps_palette_predictor_initializer_present_flag is equal to 0) , PredictorPaletteSize is set equal to 0.
2.10.2.1.2 Usage of predictor palette
For each entry in the palette predictor, a reuse flag is signalled to indicate whether it is part of the current palette. This is illustrated in FIG. 9. The reuse flags are sent using run-length coding of zeros. After this, the number of new palette entries are signalled using Exponential Golomb (EG) code of order 0, i.e., EG-0. Finally, the component values for the new palette entries are signalled.
2.10.2.2 Updating of predictor palette
Updating of predictor palette is performed with the follow steps:
(1) before decoding current block, there is a predictor palette, denoted by PltPred0
(2) construct current palette table by inserting those from PltPred0 firstly, followed by new entries for current palette.
(3) Constructing PltPred1:
A. first add those in current palette table (which may include those from PltPred0) 
B. if not full, then add un-referenced in PltPred0 according to ascending entry index.
2.10.3 Coding of palette indices
The palette indices are coded using horizontal and vertical traverse scans as shown in FIG. 15. The scan order is explicitly signaled in the bitstream using the palette_transpose_flag. For the rest of the subsection it is assumed that the scan is horizontal.
The palette indices are coded using two palette sample modes: 'COPY_LEFT' and 'COPY_ABOVE' . In the 'COPY_LEFT' mode, the palette index is assigned to a decoded index. In the 'COPY_ABOVE' mode, the palette index of the sample in the row above is copied. For both ”COPY_LEFT' and 'COPY_ABOVE' modes, a run value is signaled which specifies the number of subsequent samples that are also coded using the same mode.
In the palette mode, the value of an index for the escape sample is the number of palette entries. And, when escape symbol is part of the run in 'COPY_LEFT’ or 'COPY_ABOVE' mode, the escape component values are signaled for each escape symbol. The coding of palette indices is illustrated in FIG. 16.
This syntax order is accomplished as follows. First the number of index values for the CU is signaled. This is followed by signaling of the actual index values for the entire CU using truncated binary coding. Both the number of indices as well as the index values are coded in bypass mode. This groups the index-related bypass bins together. Then the palette sample mode (if  necessary) and run are signaled in an interleaved manner. Finally, the component escape values corresponding to the escape samples for the entire CU are grouped together and coded in bypass mode. The binarization of escape samples is EG coding with 3 rd order, i.e., EG-3.
An additional syntax element, last_run_type_flag, is signaled after signaling the index values. This syntax element, in conjunction with the number of indices, eliminates the need to signal the run value corresponding to the last run in the block.
In HEVC-SCC, the palette mode is also enabled for 4: 2: 2, 4: 2: 0, and monochrome chroma formats. The signaling of the palette entries and palette indices is almost identical for all the chroma formats. In case of non-monochrome formats, each palette entry consists of 3 components. For the monochrome format, each palette entry consists of a single component. For subsampled chroma directions, the chroma samples are associated with luma sample indices that are divisible by 2. After reconstructing the palette indices for the CU, if a sample has only a single component associated with it, only the first component of the palette entry is used. The only difference in signaling is for the escape component values. For each escape sample, the number of escape component values signaled may be different depending on the number of components associated with that sample.
In addition, there is an index adjustment process in the palette index coding. When signaling a palette index, the left neighboring index or the above neighboring index should be different from the current index. Therefore, the range of the current palette index could be reduced by 1 by removing one possibility. After that, the index is signaled with truncated binary (TB) binarization.
The texts related to this part is shown as follows, where the CurrPaletteIndex is the current palette index and the adjustedRefPaletteIndex is the prediction index.
The variable PaletteIndexMap [xC] [yC] specifies a palette index, which is an index to the array represented by CurrentPaletteEntries. The array indices xC, yC specify the location (xC, yC) of the sample relative to the top-left luma sample of the picture. The value of PaletteIndexMap [xC] [yC] shall be in the range of 0 to MaxPaletteIndex, inclusive.
The variable adjustedRefPaletteIndex is derived as follows:
adjustedRefPaletteIndex = MaxPaletteIndex+1
if (PaletteScanPos > 0) {
xcPrev = x0+TraverseScanOrder [log2CbWidth] [log2bHeight] [PaletteScanPos-1] [0] 
ycPrev =
y0+TraverseScanOrder [log2CbWidth] [log2bHeight] [PaletteScanPos-1] [1]
Figure PCTCN2021071360-appb-000044
When CopyAboveIndicesFlag [xC] [yC] is equal to 0, the variable CurrPaletteIndex is derived as follows:
if (CurrPaletteIndex >= adjustedRefPaletteIndex)
CurrPaletteIndex++
2.10.3.1 Decoding process of a palette coded block
1) read prediction information to mark which of entries in the predictor palette will be reused; (palette_predictor_run)
2) read new palette entries for the current block
a) num_signalled_palette_entries
b) new_palette_entries
3) construct CurrentPaletteEntries based on a) and b)
4) read escape symbol present flag: palette_escape_val_present_flag to derive the MaxPaletteIndex
5) code how many samples that are not coded with copy mode/run mode
a) num_palette_indices_minus1
b) for each sample that is not coded with copy mode/run mode, code the palette_idx_idc in the current plt table
2.11 Merge Estimation Region (MER)
MER is adopted into HEVC. The way the merge candidate list is constructed introduces dependencies between neighboring blocks. Especially in embedded encoder implementations, the motion estimation stage of neighboring blocks is typically performed in parallel or at least pipelined to increase the throughput. For AMVP, this is not a big issue since the MVP is only used to differentially code the MV found by the motion search. The motion estimation stage for the merge mode, however, would typically just consist of the candidate list construction and the decision which candidate to choose, based on a cost function. Due to the aforementioned dependency between neighboring blocks, merge candidate lists of neighboring blocks cannot be generated in parallel and represent a bottleneck for parallel encoder designs. Therefore, a parallel merge estimation level was introduced in HEVC that indicates the region in which merge candidate lists can be independently derived by checking whether a candidate block is located in that merge estimation region (MER) . A candidate block that is in the same MER is not included in the merge candidate list. Hence, its motion data does not need to be available at the time of the list construction. When this level is e.g. 32, all prediction units in a 32x32 area can construct the merge candidate list in parallel since all merge candidates that are in the same 3232 MER, are not inserted in the list. FIG. 12 illustrates that example showing a CTU partitioning with seven CUs and ten PUs. All potential merge candidates for the first PU0 are available because they are outside the first 32x32 MER.
For the second MER, merge candidate lists of PUs 2-6 cannot include motion data from these PUs when the merge estimation inside that MER should be independent. Therefore, when looking at a PU5 for example, no merge candidates are available and hence not inserted in the merge candidate list. In that case, the merge list of PU5 consists only of the temporal candidate (if available) and zero MV candidates. In order to enable an encoder to trade-off parallelism and coding efficiency, the parallel merge estimation level is adaptive and signaled as log2_parallel_merge_level_minus2 in the picture parameter set. The following MER sizes are allowed: 44 (no parallel merge estimation possible) , 8x8, 16x16, 32x32 and 64x64. A higher degree of parallelization, enabled by a larger MER, excludes more potential candidates from the merge candidate list. That, on the other hand, decreases the coding efficiency. When the merge estimation region is larger than a 4x4 block, another modification of the merge list construction to increase the throughput kicks in. For a CU with an 88 luma CB, only a single merge candidate list is used for all PUs inside that CU.
3. Examples of technical problems solved by disclosed embodiments
(1) There are some designs that can violate the sub-picture constrain.
A. TMVP in the affine constructed candidates may fetch a MV in the collocated picture out of the range of the current sub-picture.
B. When deriving gradients in Bi-Directional Optical Flow (BDOF) and Prediction Refinement Optical Flow (PROF) , two extended rows and two extended columns of integer reference samples are required to be fetched. These reference samples may be out of the range of the current sub-picture.
C. When deriving the chroma residual scaling factor in luma mapping chroma scaling (LMCS) , the accessed reconstructed luma samples may be out of the range of the range of the current sub-picture.
D. The neighboring block may be out of the range of the current sub-picture, when deriving the luma intra prediction mode, reference samples for intra prediction, reference samples for CCLM, neighboring block availability for spatial neighboring candidates for merge/AMVP/CIIP/IBC/LMCS, quantization parameters, CABAC initialization process, ctxInc derivation using left and above syntax elements, and ctxIncfor the syntax element mtt_split_cu_vertical_flag. The representation of sub-picture may lead to sub-picture with incomplete CTUs. The CTU partitions and CU splitting process may need to consider incomplete CTUs.
(2) The signaled syntax elements related to sub-picture may be arbitrarily large, which may cause an overflow problem.
(3) The representation of sub-pictures may lead to non-rectangular sub-pictures.
(4) Currently the sub-picture and sub-picture grid is defined in units of 4 samples. And the length of syntax element is dependent on the picture height divided by 4. However, since the current pic_width_in_luma_samples and pic_height_in_luma_samples shall be an integer multiple of Max (8, MinCbSizeY) , the sub-picture grid may need to be defined in units of 8 samples.
(5) The SPS syntax, pic_width_max_in_luma_samples and pic_height_max_in_luma_samples may need to be restricted to be no smaller than 8.
(6) Interaction between reference picture resampling/scalability and sub-picture is not considered in the current design.
(7) In temporal filtering, samples across different sub-pictures may be required.
(8) When signaling the slices, the information could be inferred without signaling in some cases.
(9) It is possible that all the defined slices cannot cover the whole picture or sub-picture.
(10) The IDs of two sub-pictures may be identical.
(11) pic_width_max_in_luma_samples /CtbSizeY may be equal to 0, resulting in a meaningless Log2 () operation.
(12) ID in PH is more preferable than in PPS, but less preferable than in SPS, which is inconsistent.
(13) log2_transform_skip_max_size_minus2 in PPS is parsed depending on sps_transform_skip_enabled_flag in SPS, resulting in a parsing dependency.
(14) loop_filter_across_subpic_enabled_flag for deblocking only consider the current sub-picture, without considering the neighbouring sub-picture.
(15) In the derivation process of subblock-based temporal merging candidates, the range of the vertical coordinator of the collocated subblock inside the collocated picture is not limited when subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, which may refer to the samples outside of the sub-picture.
(16) In applications, sub-pictures are designed to provide a flexibility that regions at same positions in pictures of a sequences can be decoded or extracted independently. The region may be under some special requirements. For example, it may be a Region of Interest (ROI) , which requires a high quality. In another example, it may serve as a trace for fast skimming the video. In still another example, it may provide a low-resolution, low-complexity and low power-consuming bit-stream, which may be fed to a complexity-sensitive end user. All those applications may require that the region of a sub-picture should be encoded with a configuration different to other parts. However, in the current VVC, there is no mechanisms that can configure sub-pictures independently.
4. Example techniques and embodiments
The detailed listing below should be considered as examples to explain general concepts. These items should not be interpreted in a narrow way. Furthermore, these items can be combined in any manner. Hereinafter, temporal filter is used to represent filters that require samples in other pictures. Max (x, y) returns the larger one of x and y. Min (x, y) returns the smaller one of x and y.
1. The position (named position RB) at which a temporal MV predictor is fetched in a picture to generate affine motion candidates (e.g. a constructed affine merge candidate) must be in a required sub-picture, assuming the top-left corner coordinate of the required sub-picture is (xTL, yTL) and bottom-right coordinate of the required sub-picture is (xBR, yBR) .
a. In one example, the required sub-picture is the sub-picture covering the current block.
b. In one example, if position RB with a coordinate (x, y) is out of the required sub-picture, the temporal MV predictor is treated as unavailable.
i. In one example, position RB is out of the required sub-picture if x > xBR.
ii. In one example, position RB is out of the required sub-picture if y > yBR.
iii. In one example, position RB is out of the required sub-picture if x <xTL.
iv. In one example, position RB is out of the required sub-picture if y <yTL.
c. In one example, position RB, if outside of the required sub-picture, a replacement of RB is utilized.
i. Alternatively, furthermore, the replacement position shall be in the required sub-picture.
d. In one example, position RB is clipped to be in the required sub-picture.
i. In one example, x is clipped as x = Min (x, xBR) .
ii. In one example, y is clipped as y = Min (y, yBR) .
iii. In one example, x is clipped as x = Max (x, xTL) .
iv. In one example, y is clipped as y = Max (y, yTL) .
e. In one example, the position RB may be the bottom right position inside the corresponding block of current block in the collocated picture.
f. The proposed method may be utilized in other coding tools which require to access motion information from a picture different than the current picture.
g. In one example, whether the above methods are applied (e.g., position RB must be in a required sub-picture (e.g. to do as claimed in 1. a and/or 1. b) ) may depend on one or more syntax elements signaled in VPS/DPS/SPS/PPS/APS/slice header/tile group header. For example, the syntax element may be  subpic_treated_as_pic_flag [SubPicIdx] , where SubPicIdx is the sub-picture index of sub-picture covering the current block.
2. The position (named position S) at which an integer sample is fetched in a reference not used in the interpolation process must be in a required sub-picture, assuming the top-left corner coordinate of the required sub-picture is (xTL, yTL) and the bottom-right coordinate of the required sub-picture is (xBR, yBR) .
a. In one example, the required sub-picture is the sub-picture covering the current block.
b. In one example, if position S with a coordinate (x, y) is out of the required sub-picture, the reference sample is treated as unavailable.
i. In one example, position S is out of the required sub-picture if x > xBR.
ii. In one example, position S is out of the required sub-picture if y > yBR.
iii. In one example, position S is out of the required sub-picture if x < xTL.
iv. In one example, position S is out of the required sub-picture if y <yTL.
c. In one example, position S is clipped to be in the required sub-picture.
i. In one example, x is clipped as x = Min (x, xBR) .
ii. In one example, y is clipped as y = Min (y, yBR) .
iii. In one example, x is clipped as x = Max (x, xTL) .
iv. In one example, y is clipped as y = Max (y, yTL) .
d. In one example, whether position S must be in a required sub-picture (e.g. to do as claimed in 2. a and/or 2. b) may depend on one or more syntax elements signaled in VPS/DPS/SPS/PPS/APS/slice header/tile group header. For example, the syntax element may be subpic_treated_as_pic_flag [SubPicIdx] , where SubPicIdx is the sub-picture index of sub-picture covering the current block.
e. In one example, the fetched integer sample is used to generate gradients in BDOF and/or PORF.
3. The position (named position R) at which the reconstructed luma sample value is fetched may be in a required sub-picture, assuming the top-left corner coordinate of the required sub-picture is (xTL, yTL) and the bottom-right coordinate of the required sub-picture is (xBR, yBR) .
a. In one example, the required sub-picture is the sub-picture covering the current block.
b. In one example, if position R with a coordinate (x, y) is out of the required sub-picture, the reference sample is treated as unavailable.
i. In one example, position R is out of the required sub-picture if x > xBR.
ii. In one example, position R is out of the required sub-picture if y > yBR.
iii. In one example, position R is out of the required sub-picture if x <xTL.
iv. In one example, position R is out of the required sub-picture if y < yTL.
c. In one example, position R is clipped to be in the required sub-picture.
i. In one example, x is clipped as x = Min (x, xBR) .
ii. In one example, y is clipped as y = Min (y, yBR) .
iii. In one example, x is clipped as x = Max (x, xTL) .
iv. In one example, y is clipped as y = Max (y, yTL) .
d. In one example, whether position R must be in a required sub-picture (e.g. to do as claimed in 4. a and/or 4. b) may depend on one or more syntax elements signaled in VPS/DPS/SPS/PPS/APS/slice header/tile group header. For example, the syntax element may be subpic_treated_as_pic_flag [SubPicIdx] , where SubPicIdx is the sub-picture index of sub-picture covering the current block.
e. In one example, the fetched luma sample is used to derive the scaling factor for the chroma component (s) in LMCS.
4. The position (named position N) at which the picture boundary check for BT/TT/QT splitting, BT/TT/QT depth derivation, and/or the signaling of CU split flag must be in a required sub-picture, assuming the top-left corner coordinate of the required sub-picture is (xTL, yTL) and the bottom-right coordinate of the required sub-picture is (xBR, yBR) .
a. In one example, the required sub-picture is the sub-picture covering the current block.
b. In one example, if position N with a coordinate (x, y) is out of the required sub-picture, the reference sample is treated as unavailable.
i. In one example, position N is out of the required sub-picture if x > xBR.
ii. In one example, position N is out of the required sub-picture if y > yBR.
iii. In one example, position N is out of the required sub-picture if x < xTL.
iv. In one example, position N is out of the required sub-picture if y < yTL.
c. In one example, position N is clipped to be in the required sub-picture.
i. In one example, x is clipped as x = Min (x, xBR) .
ii. In one example, y is clipped as y = Min (y, yBR) .
iii. In one example, x is clipped as x = Max (x, xTL) .
d. In one example, y is clipped as y = Max (y, yTL) . In one example, whether position N must be in a required sub-picture (e.g. to do as claimed in 5. a and/or 5. b) may depend on one or more syntax elements signaled in VPS/DPS/SPS/PPS/APS/slice header/tile group header. For example, the syntax element may be subpic_treated_as_pic_flag [SubPicIdx] , where SubPicIdx is the sub-picture index of sub-picture covering the current block.
5. History -based Motion Vector Prediction (HMVP) table may be reset before decoding a new sub-picture in one picture.
a. In one example, the HMVP table used for IBC coding may be reset
b. In one example, the HMVP table used for inter coding may be reset
c. In one example, the HMVP table used for intra coding may be reset
6. The sub-picture syntax elements may be defined in units of N (such as N = 8, 32, and etc) samples.
a. In one example, the width of each element of the sub-picture identifier grid in units of N samples.
b. In one example, the height of each element of the sub-picture identifier grid in units of N samples.
c. In one example, N is set to the width and/or height of CTU.
7. The syntax element of picture width and picture height may be restricted to be no smaller than K (K>=8) .
a. In one example, the picture width may need to be restricted to be no smaller than 8.
b. In one example, the picture height may need to be restricted to be no smaller than 8.
8. A conformance bitstream shall satisfy that sub-picture coding and Adaptive resolution conversion (ARC) /Dynamic resolution conversion (DRC) /Reference picture resampling (RPR) are disallowed to be enabled for one video unit (e.g., sequence) .
a. In one example, signaling of enabling sub-picture coding may be under the conditions of disallowing ARC/DRC/RPR.
i. In one example, when sub-picture is enabled, such as subpics_present_flag equal to 1, pic_width_in_luma_samples for all pictures for which this SPS is active is equal to max_width_in_luma_samples.
b. Alternatively, sub-picture coding and ARC/DRC/RPR may be both enabled for one video unit (e.g., sequence) .
i. In one example, a conformance bitstream shall satisfy that the donwsampled sub-picture due to ARC/DRC/RPR shall still be in the form of K CTUs in width and M CTUs in height wherein K and M are both integers.
ii. In one example, a conformance bitstream shall satisfy that for sub-pictures not located at picture boundaries (e.g., right boundary and/or bottom boundary) , the donwsampled sub-picture due to ARC/DRC/RPR shall still be in the form of K CTUs in width and M CTUs in height wherein K and M are both integers.
iii. In one example, CTU sizes may be adaptively changed based on the picture resolution.
1) In one example, a max CTU size may be signaled in SPS. For each picture with less resolution, the CTU size may be changed accordingly based on the reduced resolution.
2) In one example, CTU size may be signaled in SPS and PPS, and/or sub-picture level.
9. The syntax element subpic_grid_col_width_minus1 and subpic_grid_row_height_minus1 may be constrained.
a. In one example, subpic_grid_col_width_minus1 must be no larger (or must be smaller) than T1.
b. In one example, subpic_grid_row_height_minus1 must be no larger (or must be smaller) than T2.
c. In one example, in a conformance bit-stream, subpic_grid_col_width_minus1 and/or subpic_grid_row_height_minus1 must follow the constraint such as bullet 3. a or 3. b.
d. In one example, T1 in 3. a and/or T2 in 3. b may depend on profiles/levels/tiers of a video coding standard.
e. In one example, T1 in 3. a may depend on the picture width.
i. For example, T1 is equal to pic_width_max_in_luma_samples/4 or pic_width_max_in_luma_samples/4+Off. Off may be 1, 2, -1, -2, etc.
f. In one example, T2 in 3. b may depend on the picture width.
i. For example, T2 is equal to pic_height_max_in_luma_samples/4 or pic_height_max_in_luma_samples /4-1+Off. Off may be 1, 2, -1, -2, etc.
10. It is constrained that a boundary between two sub-pictures must be a boundary between two CTUs.
a. In other words, a CTU cannot be covered by more than one sub-picture.
b. In one example, the unit of subpic_grid_col_width_minus1 may be the CTU width (such as 32, 64, 128) , instead of 4 as in VVC. The sub-picture grid width should be (subpic_grid_col_width_minus1+1) *CTU width.
c. In one example, the unit of subpic_grid_col_height_minus1 may be the CTU height (such as 32, 64, 128) , instead of 4 as in VVC. The sub-picture grid height should be (subpic_grid_col_height_minus1+1) *CTU height.
d. In one example, in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
11. It is constrained that the shape of a sub-picture must be rectangular.
a. In one example, in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
b. Sub-picture may only contain rectangular slices. For example, in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
12. It is constrained that two sub-pictures cannot be overlapped.
a. In one example, in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
b. Alternatively, two sub-pictures may be overlapped with each other.
13. It is constrained that any position in the picture must be covered by one and only one sub-picture.
a. In one example, in a conformance bit-stream, the constraint must be satisfied if the sub-picture approach is applied.
b. Alternatively, one sample may not belong to any sub-picture.
c. Alternatively, one sample may belong to more than one sub-pictures.
14. It may be constrained that sub-pictures defined in a SPS mapped to every resolution presented in the same sequence should obey the location and/or size constrained mentioned above.
a. In one example, the width and height of a sub-picture defined in the SPS mapped to a resolution presented in the same sequence, should be integer multiple times of N (such as 8, 16, 32) luma samples.
b. In one example, sub-pictures may be defined for certain layer and may be mapped to other layers.
i. For example, sub-pictures may be defined for the layer with the highest resolution in the sequence.
ii. For example, sub-pictures may be defined for the layer with the lowest resolution in the sequence.
iii. Which layer the sub-pictures are defined for may be signaled in SPS/VPS/PPS/slice header.
c. In one example, when sub-pictures and different resolutions are both applied, all resolutions (e.g., width or/and height) may be integer multiple of a given resolution.
d. In one example, the width and/or height of a sub-picture defined in the SPS may be integer multiple times (e.g., M) of the CTU size.
e. Alternatively, sub-pictures and different resolutions in a sequence may not be allowed simultaneously.
15. Sub-pictures may only apply to a certain layer (s)
a. In one example, sub-pictures defined in a SPS may only apply to the layer with the highest resolution in a sequence.
b. In one example, sub-pictures defined in a SPS may only apply to the layer with the lowest temporal id in a sequence.
c. Which layer (s) that sub-pictures may be applied to may be indicated by one or multiple syntax elements in SPS/VPS/PPS.
d. Which layer (s) that sub-picture cannot be applied to may be indicated by one or multiple syntax elements in SPS/VPS/PPS.
16. In one example, the position and/or dimensions of a sub-picture may be signaled without using subpic_grid_idx.
a. In one example, the top-left position of a sub-picture may be signaled.
b. In one example, the bottom-right position of a sub-picture may be signaled.
c. In one example, the width of sub-picture may be signaled.
d. In one example, the height of a sub-picture may be signaled.
17. For temporal filter, when performing the temporal filtering of a sample, only samples within the same sub-picture that the current sample belongs to may be used. The required samples may be in the same picture that the current sample belongs to or in other pictures.
18. In one example, whether to and/or how to apply a partitioning method (such as QT, horizontal BT, vertical BT, horizontal TT, vertical TT, or not split, etc. ) may depend on whether the current block (or partition) crosses one or multiple boundary of a sub-picture.
a. In one example, the picture boundary handling method for partitioning in VVC may also be applied when a picture boundary is replaced by a sub-picture boundary.
b. In one example, whether to parse a syntax element (e.g. a flag) which represents a partitioning method (such as QT, horizontal BT, vertical BT, horizontal TT, vertical TT, or not split, etc. ) may depend on whether the current block (or partition) crosses one or multiple boundary of a sub-picture.
19. Instead of splitting one picture into multiple sub-pictures with independent coding of each sub-picture, it is proposed to split a picture into at least two sets of sub-regions,  with the first set including multiple sub-pictures and the second set including all the remaining samples.
a. In one example, a sample in the second set is not in any sub-pictures.
b. Alternatively, furthermore, the second set may be encoded/decoded based on the information of the first set.
c. In one example, a default value may be utilized to mark whether a sample/MxK sub-region belonging to the second set.
i. In one example, the default value may be set equal to (max_subpics_minus1 + K) wherein K is an integer greater than 1.
ii. The default value may be assigned to subpic_grid_idx [i] [j] to indicate that grid belongs to the second set.
20.  It is proposed that the syntax element subpic_grid_idx [i] [j] cannot be larger than max_subpics_minus1.
a. For example, it is constrained that in a conformance bit-stream, subpic_grid_idx [i] [j] cannot be larger than max_subpics_minus1.
b. For example, the codeword to code subpic_grid_idx [i] [j] cannot be larger than max_subpics_minus1.
21. It is proposed that, any integer number from 0 to max_subpics_minus1 must be equal to at least one subpic_grid_idx [i] [j] .
22. IBC virtual buffer may be reset before decoding a new sub-picture in one picture.
a. In one example, all the samples in the IBC virtual buffer may be reset to -1.
23. Palette entry list may be reset before decoding a new sub-picture in one picture.
a. In one example, PredictorPaletteSize may be set equal to 0 before decoding a new sub-picture in one picture.
24. Whether to signal the information of slices (e.g. number of slices and/or ranges of slices) may depend on the number of tiles and/or the number of bricks.
a. In one example, if the number of bricks in a picture is one, num_slices_in_pic_minus1 is not signaled and inferred to be 0.
b. In one example, if the number of bricks in a picture is one, the information of slices (e.g. number of slices and/or ranges of slices) may not be signaled.
c. In one example, if the number of bricks in a picture is one, the number of slices may be inferred to be one. And the slice covers the whole picture. In one example, if the number of bricks in a picture is one, single_brick_per_slice_flag is not signaled and inferred to be one.
i. Alternatively, if the number of bricks in a picture is one, single_brick_per_slice_flag must be one.
d. An exemplary syntax design is as below:
Figure PCTCN2021071360-appb-000045
25. Whether to signal slice_address may be decoupled from whether slices are signaled to be rectangles (e.g. whether rect_slice_flag is equal to 0 or 1) .
a. An exemplary syntax design is as below:
if ( [ [rect_slice_flag ||] ] NumBricksInPic > 1)  
slice_address u (v)
26. Whether to signal slice_address may depend on the number of slices when slices are signaled to be rectangles.
Figure PCTCN2021071360-appb-000046
27. Whether to signal num_bricks_in_slice_minus1 may depend on the slice_address and/or the number of bricks in the picture.
a. An exemplary syntax design is as below:
Figure PCTCN2021071360-appb-000047
28. Whether to signal loop_filter_across_bricks_enabled_flag may depend on the number of tiles and/or the number of bricks.
a. In one example, loop_filter_across_bricks_enabled_flag is not signaled if the number of bricks is less than 2.
b. An exemplary syntax design is as below:
Figure PCTCN2021071360-appb-000048
29. It is a requirement of bitstream conformance that all the slices of a picture must cover the whole picture.
a. The requirement must be satisfied when slices are signaled to be rectangles (e.g. rect_slice_flag is equal to 1) .
30. It is a requirement of bitstream conformance that all the slices of a sub-picture must cover the whole sub-picture.
a. The requirement must be satisfied when slices are signaled to be rectangles (e.g. rect_slice_flag is equal to 1) .
31. It is a requirement of bitstream conformance that a slice cannot be overlapped with more than one sub-picture.
32. It is a requirement of bitstream conformance that a tile cannot be overlapped with more than one sub-picture.
33. It is a requirement of bitstream conformance that a brick cannot be overlapped with more than one sub-picture.
In the following discussion, a basic unit block (BUB) with dimensions CW × CH is a rectangle region. For example, a BUB may be a Coding Tree Block (CTB) .
34. In one example, the number of sub-pictures (denoted as N) may be signaled.
a. It may be required on a conformance bit-stream that there are at least two sub-pictures in a picture if sub-pictures are used (e.g. subpics_present_flag is equal to 1) .
b. Alternatively, N minus d (i.e., N-d) may be signaled, where d is an integer such as 0, 1, or 2.
c. For example, N-d may be coded with fixed length coding e.g. u (x) .
i. In one example, x may be a fixed number such as 8.
ii. In one example, x or x-dx may be signaled before N-d is signaled, where dx is an integer such as 0, 1 or 2. The signaled x may not be larger than a maximum value in a conformance bitstream.
iii. In one example, x may be derived on-the-fly.
1) For example, x may be derived as a function of the total number (denoted as M) of BUBs in the picture. E.g., x =Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
2) M may be derived as M = Ceiling (W/CW) × Ceiling (H/CH) , where W and H represent the width and height of the picture, and CW and CH represent the width and height of a BUB.
d. For example, N-d may be coded with a unary code or a truncated unary code.
e. In one example, the allowed maximum value of N-d may be a fixed number.
i. Alternatively, the allowed maximum value of N-d may be derived as a function of the total number (denoted as M) of BUBs in the picture. E.g., x = Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
35. In one example, a sub-picture may be signaled by indications of one or multiple its selected positions (e.g., top-left/top-right/bottom-left/bottom-right position) and/or its width and/or its height.
a. In one example, the top-left position of a sub-picture may be signaled in the granularity of a basic unit block (BUB) with dimensions CW × CH.
i. For example, the column index (denoted as Col) in terms of BUBs of the top-left BUB of the sub-picture may be signaled.
1) For example, Col -d may be signaled, where d is an integer such as 0, 1, or 2.
a) Alternatively, d may be equal to Col of a sub-picture previously coded, added by d1, where d1 is an integer such as -1, 0, or 1.
b) The sign of Col -d may be signaled.
ii. For example, the row index (denoted as Row) in term of BUBs of the top-left BUB of the sub-picture may be signaled.
1) For example, Row -d may be signaled, where d is an integer such as 0, 1, or 2.
a) Alternatively, d may be equal to Row of a sub-picture previously coded, added by d1, where d1 is an integer such as -1, 0, or 1.
b) The sign of Row -d may be signaled.
iii. The row/column index (denoted as Row) mentioned above may be represented in the Coding Tree Block (CTB) unit, e.g., the x or y coordinate relative to the top-left position of a picture may be divided by CTB size and signaled.
iv. In one example, whether to signal the position of a sub-picture may depend on the sub-picture index.
1) In one example, for the first sub-picture within a picture, the top-left position may be not signaled.
a) Alternatively, furthermore, the top-left position may be inferred, e.g., to be (0, 0) .
2) In one example, for the last sub-picture within a picture, the top-left position may be not signaled.
a) The top-left position may be inferred depending on information of sub-pictures previously signaled.
b. In one example, indications of the width/height/a selected position of a sub-picture may be signaled with truncated unary/truncated binary/unary/fixed length/K-th EG coding (e.g., K=0, 1, 2, 3) .
c. In one example, the width of a sub-picture may be signaled in the granularity of a BUB with dimensions CW × CH.
i. For example, the number of columns of BUBs in the sub-picture (denoted as W) may be signaled.
ii. For example, W-d may be signaled, where d is an integer such as 0, 1, or 2.
1) Alternatively, d may be equal to W of a sub-picture previously coded, added by d1, where d1 is an integer such as -1, 0, or 1.
2) The sign of W-d may be signaled.
d. In one example, the height of a sub-picture may be signaled in the granularity of a BUB with dimensions CW × CH.
i. For example, the number of rows of BUBs in the sub-picture (denoted as H) may be signaled.
ii. For example, H-d may be signaled, where d is an integer such as 0, 1, or 2.
1) Alternatively, d may be equal to H of a sub-picture previously coded, added by d1, where d1 is an integer such as -1, 0, or 1.
2) The sign of H-d may be signaled.
e. In one example, Col-d may be coded with fixed length coding e.g. u (x) .
i. In one example, x may be a fixed number such as 8.
ii. In on example, x or x-dx may be signaled before Col-d is signaled, where dx is an integer such as 0, 1 or 2. The signaled x may not be larger than a maximum value in a conformance bitstream.
iii. In one example, x may be derived on-the-fly.
1) For example, x may be derived as a function of the total number (denoted as M) of BUB columns in the picture. E.g., x =Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
2) M may be derived as M = Ceiling (W/CW) , where W represents the width of the picture, and CW represents the width of a BUB.
f. In one example, Row-d may be coded with fixed length coding e.g. u (x) .
i. In one example, x may be a fixed number such as 8.
ii. In one example, x or x-dx may be signaled before Row-d is signaled, where dx is an integer such as 0, 1 or 2. The signaled x may not be larger than a maximum value in a conformance bitstream.
iii. In one example, x may be derived on-the-fly.
1) For example, x may be derived as a function of the total number (denoted as M) of BUB rows in the picture. E.g., x =Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
2) M may be derived as M = Ceiling (H/CH) , where H represents the height of the picture, and CH represents the height of a BUB.
g. In one example, W-d may be coded with fixed length coding e.g. u (x) .
i. In one example, x may be a fixed number such as 8.
ii. In on example, x or x-dx may be signaled before W-d is signaled, where dx is an integer such as 0, 1 or 2. The signaled x may not be larger than a maximum value in a conformance bitstream.
iii. In one example, x may be derived on-the-fly.
1) For example, x may be derived as a function of the total number (denoted as M) of BUB columns in the picture. E.g., x =Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
2) M may be derived as M = Ceiling (W/CW) , where W represents the width of the picture, and CW represents the width of a BUB.
h. In one example, H-d may be coded with fixed length coding e.g. u (x) .
i. In one example, x may be a fixed number such as 8.
ii. In one example, x or x-dx may be signaled before H-d is signaled, where dx is an integer such as 0, 1 or 2. The signaled x may not be larger than a maximum value in a conformance bitstream.
iii. In one example, x may be derived on-the-fly.
1) For example, x may be derived as a function of the total number (denoted as M) of BUB rows in the picture. E.g., x =Ceil (log2 (M+d0) ) +d1, where d0 and d1 are two integers, such as -2, -1, 0, 1, 2, etc. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
2) M may be derived as M = Ceiling (H/CH) , where H represents the height of the picture, and CH represents the height of a BUB.
i. Col-d and/or Row-d may be signaled for all sub-pictures.
i. Alternatively, Col-d and/or Row-d may not be signaled for all sub-pictures.
1) Col-d and/or Row-d may not be signaled if the number of sub-pictures are less than 2. (equal to 1) .
2) For example, Col-d and/or Row-d may not be signaled for the first sub-picture (e.g. with the sub-picture index (or sub-picture ID) equal to 0) .
a) When they are not signaled, they may be inferred to be 0.
3) For example, Col-d and/or Row-d may not be signaled for the last sub-picture (e.g. with the sub-picture index (or sub-picture ID) equal to NumSubPics-1) .
a) When they are not signaled, they may be inferred depending on the positions and dimensions of sub-pictures already signaled.
j. W-d and/or H-d may be signaled for all sub-pictures.
i. Alternatively, W-d and/or H-d may not be signaled for all sub-pictures.
1) W-d and/or H-d may not be signaled if the number of sub-pictures are less than 2. (equal to 1) .
2) For example, W-d and/or H-d may not be signaled for the last sub-picture (e.g. with the sub-picture index (or sub-picture ID) equal to NumSubPics-1) .
a) When they are not signaled, they may be inferred depending on the positions and dimensions of sub-pictures already signaled.
k. In the above bullets, a BUB may be a Coding Tree Block (CTB) .
36. In one example, the information of sub-pictures should be signaled after information of the CTB size (e.g. log2_ctu_size_minus5) has already been signaled.
37. subpic_treated_as_pic_flag [i] may not be signaled for each sub-pictures. Instead, one subpic_treated_as_pic_flag is signaled to control whether a sub-picture is treated as a picture for all sub-pictures.
38. loop_filter_across_subpic_enabled_flag [i] may not be signaled for each sub-pictures. Instead, one loop_filter_across_subpic_enabled_flag is signaled to control whether loop filters can be applied across sub-pictures for all sub-pictures.
39. subpic_treated_as_pic_flag [i] (subpic_treated_as_pic_flag) and/or loop_filter_across_subpic_enabled_flag [i] (loop_filter_across_subpic_enabled_flag) may be signaled conditionally.
a. In one example, subpic_treated_as_pic_flag [i] and/or loop_filter_across_subpic_enabled_flag [i] may not be signaled if the number of sub-pictures are less than 2. (equal to 1) .
40. RPR may be applied when sub-pictures are used.
a. In one example, the scaling ratio in RPR may be constrained to be a limited set when sub-pictures are used, such as {1: 1, 1: 2 and/or 2: 1} , or {1: 1, 1: 2 and/or 2: 1, 1: 4 and/or 4: 1} , {1: 1, 1: 2 and/or 2: 1, 1: 4 and/or 4: 1, 1: 8 and/or 8: 1} .
b. In one example, the CTB size of a picture A and the CTB size of a picture B may be different if the resolution of picture A and picture B are different.
c. In one example, suppose a sub-picture SA with dimensions SAW×SAH is in picture A and a sub-picture SB with dimensions SBW×SBH is in picture B, SA corresponds to SB, and the scaling ratios between picture A and picture B are Rw and Rh along the horizontal and vertical directions, then
i. SAW/SBW or SBW/SAW should be equal to Rw.
ii. SAH/SBH or SBH/SAH should be equal to Rh.
41. When sub-pictures are used (e.g. sub_pics_present_flag is true) , a subpiccutre index (or sub-picture ID) may be signaled in the slice header, and the slice address is interrupted as the address in a sub-picture instead of the whole picture.
42. It is required that the sub-picture ID of a first sub-picture must be different to the sub-picture ID of a second sub-picture, if the first sub-picture and the second sub-picture are not the same sub-picture.
a. In one example, it is a requirement in a conformance bitstream that sps_subpic_id [i] must be different from sps_subpic_id [j] , if i is not equal to j.
b. In one example, it is a requirement in a conformance bitstream that pps_subpic_id [i] must be different from pps_subpic_id [j] , if i is not equal to j.
c. In one example, it is a requirement in a conformance bitstream that ph_subpic_id [i] must be different from ph_subpic_id [j] , if i is not equal to j.
d. In one example, it is a requirement in a conformance bitstream that SubpicIdList [i] must be different from SubpicIdList [j] , if i is not equal to j.
e. In one example, a difference denoted as D [i] equal to X_subpic_id [i] -X_subpic_id [i -P] may be signaled.
i. For example, X may be sps, pps or ph.
ii. For example, P is equal to 1.
iii. For example, i> P.
iv. For example, D [i] must be larger than 0.
v. For example, D [i] -1 may be signaled.
43. It is proposed that the length of a syntax element specifying the horizontal or vertical position of top left CTU (e.g. subpic_ctu_top_left_x or subpic_ctu_top_left_y) may be derived to be Ceil (Log2 (SS) ) bits, wherein SS must be larger than 0. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
a. In one example, SS = (pic_width_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the horizontal position of top left CTU (e.g. subpic_ctu_top_left_x) .
b. In one example, SS = (pic_height_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the vertical position of top left CTU (e.g. subpic_ctu_top_left_y) .
c. In one example, RR is a non-zero integer such as CtbSizeY-1.
44. It is proposed that the length of a syntax element specifying the horizontal or vertical position of top left CTU of a sub-picture (e.g. subpic_ctu_top_left_x or subpic_ctu_top_left_y) may be derived to be Ceil (Log2 (SS) ) bits, wherein SS must be larger than 0. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
a. In one example, SS = (pic_width_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the horizontal position of top left CTU of a sub-picture (e.g. subpic_ctu_top_left_x) .
b. In one example, SS = (pic_height_max_in_luma_samples +RR) /CtbSizeY when the syntax element specifies the vertical position of top left CTU of a sub-picture (e.g. subpic_ctu_top_left_y) .
c. In one example, RR is a non-zero integer such as CtbSizeY-1.
45. It is proposed that the default value of the length of a syntax element (which may plus an offset P such as 1) specifying the width or height of a sub-picture (e.g. subpic_width_minus1 or subpic_height_minus1) may be derived to be Ceil (Log2 (SS) ) -P, wherein SS must be larger than 0. Here, Ceil () function returns the smallest integer value that is bigger than or equal to the input value.
a. In one example, SS = (pic_width_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the default width (which may plus an offset P) of a sub-picture (e.g. subpic_width_minus1) .
b. In one example, SS = (pic_height_max_in_luma_samples + RR) /CtbSizeY when the syntax element specifies the default height (which may plus an offset P) of a sub-picture (e.g. subpic_height_minus1) .
c. In one example, RR is a non-zero integer such as CtbSizeY-1.
46. It is proposed that, the information of IDs of sub-pictures should be signaled at least in one of SPS, PPS, and the picture header if it is determined that the information should be signaled.
a. In one example, it is a requirement in a conformance bitstream that at least one of sps_subpic_id_signalling_present_flag, pps_subpic_id_signalling_present_flag and ph_subpic_id_signalling_present_flag should be equal to 1 if sps_subpic_id_present_flag is equal to 1.
47. It is proposed that, if the information of IDs of sub-pictures is not signaled in any one of SPS, PPS, and the picture header, but it is determined that the information should be signaled. default IDs should be assigned.
a. In one example, if sps_subpic_id_signalling_present_flag, pps_subpic_id_signalling_present_flag and ph_subpic_id_signalling_present_flag are all equal to 0 and sps_subpic_id_present_flag is equal to 1, SubpicIdList [i] should be set equal to i+P, where P is an offset such as 0. An exemplary description is as below:
for (i = 0; i <= sps_num_subpics_minus1; i++)
SubpicIdList [i] = sps_subpic_id_present_flag?
(sps_subpic_id_signalling_present_flag ? sps_subpic_id [i] :
(ph_subpic_id_signalling_present_flag ? ph_subpic_id [i] :
(pps_subpic_id_signalling_present_flag ? pps_subpic_id [i] : i) ) ) : i
48. It is proposed that the information of sub-picture IDs are not signaled in a picture header if they are signaled in the corresponding PPS.
a. An exemplary syntax design is as below,
Figure PCTCN2021071360-appb-000049
b. In one example, the sub-picture IDs are set according to the information of sub-picture IDs signaled in SPS if they are signaled in SPS; Otherwise, the sub-picture IDs are set according to the information of sub-picture IDs signaled in PPS if they are signaled in PPS, Otherwise, the sub-picture IDs are set according  to the information of sub-picture IDs signaled in the the picture header if they are signaled in the picture header. An exemplary description is as below,
for (i = 0; i <= sps_num_subpics_minus1; i++)
SubpicIdList [i] = sps_subpic_id_present_flag?
(sps_subpic_id_signalling_present_flag ? sps_subpic_id [i] :
(pps_subpic_id_signalling_present_flag? pps_subpic_id [i] :
(ph_subpic_id_signalling_present_flag? ph_subpic_id [i] : i) ) ) : i
c. In one example, the sub-picture IDs are set according to the information of sub-picture IDs signaled in the picture header if they are signaled in the picture header; Otherwise, the sub-picture IDs are set according to the information of sub-picture IDs signaled in PPS if they are signaled in PPS, Otherwise, the sub-picture IDs are set according to the information of sub-picture IDs signaled in the SPS if they are signaled in SPS. An exemplary description is as below,
for (i = 0; i <= sps_num_subpics_minus1; i++)
SubpicIdList [i] = sps_subpic_id_present_flag?
(ph_subpic_id_signalling_present_flag ? ph_subpic_id [i] :
(pps_subpic_id_signalling_present_flag? pps_subpic_id [i] :
(sps_subpic_id_signalling_present_flag? sps_subpic_id [i] : i) ) ) : i
49. It is proposed that the deblocking process on an edge E should depend on the determination of whether loop-filtering is allowed across the sub-picture boundaries (e.g. determined by loop_filter_across_subpic_enabled_flag) on both sides (denoted as P-side and Q-side) of the edge. P-side represents the side in the current block, and Q-side represents the side in the neighbouring block, which may belong to a different sub-picture. In the following discussion, it is assumed that P-side and Q-side belongs two different sub-pictures. loop_filter_across_subpic_enabled_flag [P] =0/1 means that loop-filtering is disallowed/allowed across the sub-picture boundaries of the sub-picture containing P-side. loop_filter_across_subpic_enabled_flag [Q] =0/1 means that loop-filtering is disallowed/allowed across the sub-picture boundaries of the sub-picture containing Q-side.
a. In one example, E is not filtered if loop_filter_across_subpic_enabled_flag [P] is equal to 0 or loop_filter_across_subpic_enabled_flag [Q] is equal to 0.
b. In one example, E is not filtered if loop_filter_across_subpic_enabled_flag [P] is equal to 0 and loop_filter_across_subpic_enabled_flag [Q] is equal to 0.
c. In one example, whether to filter the two sides of E are controlled separately.
i. For example, P-side of E is filtered if and only if loop_filter_across_subpic_enabled_flag [P] is equal 1.
ii. For example, Q-side of E is filtered if and only if loop_filter_across_subpic_enabled_flag [Q] is equal 1.
50. It is proposed that, the signaling/parsing of a syntax element SE in PPS specifying the maximum block size used for transform skip (such as log2_transform_skip_max_size_minus2) should be decoupled from any syntax element in SPS (such as sps_transform_skip_enabled_flag) .
a. An exemplary syntax change is as below:
Figure PCTCN2021071360-appb-000050
b. Alternatively, SE may be signaled in SPS, such as:
Figure PCTCN2021071360-appb-000051
c. Alternatively, SE may be signaled in the picture header, such as:
Figure PCTCN2021071360-appb-000052
51. Whether to and/or how to update the HMVP table (or named as list/storage/map etc. ) after decoding a first block may depend on whether the first block is coded with GEO.
a. In one example, the HMVP table may not be updated after decoding the first block if the first block is coded with GEO.
b. In one example, the HMVP table may be updated after decoding the first block if the first block is coded with GEO.
i. In one example, the HMVP table may be updated with the motion information of one partition divided by GEO.
ii. In one example, the HMVP table may be updated with the motion information of multiple partitions divided by GEO
52. In CC-ALF, luma samples out of the current processing unit (e.g., ALF processing unit bounded by two ALF virtual boundaries) is excluded from filtering on chroma samples in the corresponding processing unit.
a. Padded luma samples out of the current processing unit may be used to filter the chroma samples in the corresponding processing unit.
i. Any padding method disclosed in this document may be used to pad the luma samples.
b. Alternatively, luma samples out of the current processing unit may be used to filter chroma samples in the corresponding processing unit.
Signaling of parameters in sub-picture level
53. It is proposed that a set of parameters controlling the coding behavior of a sub-picture may be signaled associated with the sub-picture. That is, for each sub-picture, a set of parameters may be signalled. The set of parameters may comprise:
a. Quantization Parameter (QP) or delta QP for the luma component in the sub-picture for inter and/or intra slices/picture.
b. Quantization Parameter (QP) or delta QP for chroma components in the sub-picture for inter and/or intra slices/picture.
c. The reference picture list management information.
d. CTU size for inter and/or intra slices/picture.
e. Minimum CU size for inter and/or intra slices/picture.
f. Maximum TU size for inter and/or intra slices/picture.
g. Maximum/Minimum Qual-Tree (QT) split size for inter and/or intra slices/picture.
h. Maximum/Minimum Qual-Tree (QT) split depth for inter and/or intra slices/picture.
i. Maximum/Minimum Binary-Tree (BT) split size for inter and/or intra slices/picture.
j. Maximum/Minimum Binary-Tree (BT) split depth for inter and/or intra slices/picture.
k. Maximum/Minimum Ternary-Tree (TT) split size for inter and/or intra slices/picture.
l. Maximum/Minimum Ternary-Tree (TT) split depth for inter and/or intra slices/picture.
m. Maximum/Minimum Multi-Tree (MTT) split size for inter and/or intra slices/picture.
n. Maximum/Minimum Multi-Tree (MTT) split depth for inter and/or intra slices/picture.
o. Controls (including on/off control and/or setting control) for coding tools, comprising: (The abbreviations can be found in JVET-P2001-v14) .
i. Weighted Prediction
ii. SAO
iii. ALF
iv. Transform Skip
v. BDPCM
vi. Joint Cb-Cr Residual coding (JCCR)
vii. Reference wrap-around
viii. TMVP
ix. sbTMVP
x. AMVR
xi. BDOF
xii. SMVD
xiii. DMVR
xiv. MMVD
xv. ISP
xvi. MRL
xvii. MIP
xviii. CCLM
xix. CCLM collocated chroma control
xx. MTS for intra and/or inter
xxi. MTS for inter
xxii. SBT
xxiii. SBT maximum size
xxiv. Affine
xxv. Affine type
xxvi. Palette
xxvii. BCW
xxviii. IBC
xxix. CIIP
xxx. Triangular shape based motion compensation
xxxi. LMCS
p. Any other parameter with the same meaning to a parameter in VPS/SPS/PPS/picture header/slice header, but controlling a sub-picture.
54. One flag may be firstly signaled to indicate whether all sub-pictures share the same parameters.
q. Alternatively, furthermore, if parameters are shared, then there is no need to signal multiple sets of parameters for different sub-pictures.
r. Alternatively, furthermore, if parameters are NOT shared, then multiple sets of parameters for different sub-pictures may need to be further signaled.
55. Predictive coding of parameters among different sub-pictures may be applied.
s. In one example, the differences of two values of the same syntax element for two sub-pictures may be coded.
56. A default set of parameters may be firstly signaled. Then the differences compared to the default values may be further signalled.
t. Alternatively, furthermore, one flag may be firstly signaled to indicate whether the set of parameters of all sub-pictures are identical to those in the default set.
57. In one example, the set of parameters controlling the coding behavior of a sub-picture may be signaled in SPS or PPS or picture header.
u. Alternatively, the set of parameters controlling the coding behavior of a sub-picture may be signaled in a SEI message (such as the sub-picture level information SEI message defined in JVET-P2001-v14) or a VUI message.
58. In the example, the set of parameters controlling the coding behavior of a sub-picture may be signaled associated with the sub-picture ID.
59. In one example, a video unit (named SPPS, Sub-Picture Parameter Set) , different to VPS/SPS/PPS/picture header/slice header, comprising the set of parameters controlling the coding behavior of a sub-picture, may be signaled.
v. In one example, a SPPS_index is signaled associated with a SPPS.
w. In one example, a SPPS_index is signaled for a sub-picture to indicate the SPPS associated with sub-picture.
60. In one example, a first control parameter in the set of parameters controlling a coding behavior of a sub-picture may overwrite or be overwritten by a second control parameter out of the set of parameters but controlling the same coding behavior. For example, the on/off control flag for a coding tool such as BDOF in the set of parameters of a sub-picture may overwrite or be overwritten by the on/off control flag for the coding tool out of the set of parameters.
x. The second control parameter out of the set of parameters may be in VPS/SPS/PPS/picture header/slice header.
61. When any of above examples is applied, the syntax elements associated with a slice/tile/brick/sub-picture are dependent on the parameters associated with a sub-picture containing the current slice, instead of being dependent on the parameters associated with a picture/sequence.
62. It is constrained that in a conformance bit-stream, a first control parameter in the set of parameters controlling a coding behavior of a sub-picture must be the same to a second control parameter out of the set of parameters but controlling the same coding behavior.
63. In one example, a first flag is signalled in the SPS, one per each sub-picture, and the first flag specifies whether a general_constraint_info () syntax structure is signalled for the sub-picture associated with the first flag. When present for a sub-picture, the general_constraint_info () syntax structure indicates tools that are not applied for the sub-picture across the CLVS.
y. Alternatively, a general_constraint_info () syntax structure is signalled for each sub-picture.
z. Alternatively, a second flag is signalled in the SPS, just once, and the second flag specifies whether the first flag is present or absent in the SPS for each sub-picture.
64. In one example, an SEI message or some VUI parameter are specified to indicate that certain coding tools are not applied or applied in a specific way for a set of one or more sub-pictures (i.e., for the coded slices of the set of sub-pictures) in the CLVS, such that when the set of sub-pictures are extracted and decoded, e.g., decoded by a mobile device, the decoding complexity is relatively low and consequently power consumption for the decoding is relatively low.
a. Alternatively, the same information is sginalled in the DPS, VPS, SPS, or a standalone NAL unit.
Palette coding
65. The maximum number of palette size and/or plt predictor size may be restricted to be equal to m*N, e.g., N = 8, wherein m is an integer.
a. The value of m or m+offset may be signaled as a first syntax element, wherein offset is an integer such as 0.
i. The first syntax element may be binarized by unary coding, exponential Golomb coding, rice coding, fixed length coding.
Merge Estimation Region (MER)
66. The size of MER which may be signaled may depend on the maximum or minimum CU or CTU size. The term “size” herein may refer to width, height, both width and height, or width × height.
a. In one example, S-Delta or M-S may be signaled, wherein S is the size ofMER. Delta and S are integers which depend on the maximum or minimum CU or CTU size. For example:
i. Delta may be the minimum CU or CTU size.
ii. M may be the maximum CU or CTU size.
iii. Delta may be minimum CU or CTU size + offset, wherein offset is an integer such as 1 or -1.
iv. M may be maximum CU or CTU size + offset, wherein offset is an integer such as 1 or -1.
67. In a conformance bitstream, the size of MER which may be constrained, depending on the maximum or minimum CU or CTU size. The term “size” herein may refer to width, height, both width and height, or width × height.
a. For example, the size of MER is not allowed to be larger than or equal to the size of the size of maiximum CU or CTU size.
b. For example, the size of MER is not allowed to be larger than the size of the size of maiximum CU or CTU size.
c. For example, the size of MER is not allowed to be smaller than or equal to the size of the size of minimum CU or CTU size.
d. For example, the size of MER is not allowed to be smaller than the size of the size of minimum CU or CTU size.
68. The size of MER may be signaled by an index.
a. The size of MER can be mapped to the index by a 1-1 mapping.
69. The size of MER or its index may be coded by a unary code, an exponential Golomb code, a rice code or a fixed length code.
Sample coordinator adjustment considering sub-pictures
70. Whether to and/or how to clip the vertical coordinator (denoted by yColSb) of the collocated subblock inside the collocated picture may depend on subpic_treated_as_pic_flag [SubPicIdx] of the current sub picture..
a. The vertical coordinator (denoted by yColSb) of a collocated subblock inside the collocated picture is clipped when subpic_treated_as_pic_flag [SubPicIdx] of the current subpicture is equal to 1.
b. In one example, the vertical coordinator of the collocated subblock is modified using Clip3 (T 1, T 2, yColSb) .
i. In one example, yColSb maybe derived using ySb + tempMv [1] , where ySb denotes the vertical coordinator of a base position, which may be the below-right center sample or the top-left position of the current coding subblock, and tempMv [1] is an offset, which may be derived from the spatial neighbouring coding unit.
ii. In one example, T 1 is eqaul to yCtb and T 2 is equal to Min (SubPicBotBoundaryPos, yCtb+ (1<<CtbLog2SizeY) -1) ) , where SubPicBotBoundaryPos denotes the vertical coordinate of the bottom boundary of the current subpicture, which may be equal to Min (pic_height_max_in_luma_samples-1, (subpic_ctu_top_left_y [SubPicIdx] +subpic_height_minus1 [SubPicI dx] +1) *CtbSizeY-1) .
ALF and SAO on the boundary between subpictures
71. Whether to and/or how to apply ALF and/or SAO on samples in a region covering a boundary between two subpictures may depend on the information of the two subpictures.
c. Whether to and/or how to apply ALF and/or SAO on samples in a first subpicture and also in a region covering a boundary between the first subpicture and a second subpicture may depend on the information of the second subpicture.
d. In one example, ALF and/or SAO on samples in a region covering a boundary between two subpictures is not applied if loop filter is disabled across subpicture boundaries (e.g. loop_filter_across_subpic_enabled_flag is equal to 0) in at least one of the two subpictures.
e. In one example, ALF and/or SAO on samples in a region covering a boundary between two subpictures is not applied only if loop filter is disabled across subpicture boundaries (e.g. loop_filter_across_subpic_enabled_flag is equal to 0) in both of the two subpictures.
f. If the boundary is a horizontal boundary between an upper subpicture A, with the bottom row coordinate equal to y0, and a lower subpicture B, with the top row coordinate equal to y0+1, then the region comprises samples in the two  subpictures between row y0-M and row y0+1+N, inclusively, wherein M and N are integers.
g. If the boundary is a horizontal boundary between a left subpicture A, with the rightmost column coordinate equal to x0, and a right subpicture B, with the leftmost column coordinate equal to x0+1, then the region comprises samples in the two subpictures between column x0-M and row x0+1+N, inclusively, wherein M and N are integers.
h. M and N in the above bullets may be decided as below:
i. M and/or N may depend on color formats and/or color components
ii. M and/or N may be fixed numbers, such as 1, 2, 3, or 4
iii. M and N may be the same.
iv. M and N may be different.
v. M and/or N may be set differently for SAO and ALF.
vi. M and/or N may be signaled, such as in VPS/SPS/DPS/PPS/APS/sequence header/picture header/slice header/CTU/CU.
vii. M may be set to the number of rows (or columns) of samples in subpicture A used in ALF or SAO to filter the samples in subpicture B.
viii. N may be set to the number of rows (or columns) of samples in subpicture B used in ALF or SAO to filter the samples in subpicture A.
5. Embodiments
In the following embodiments, the newly added texts are bold italicized and the deleted texts are marked by “ [ [] ] ” .
5.1 Embodiment 1: sub-picture constraint on affine constructed merge candidates 8.5.5.6 Derivation process for constructed affine control point motion vector merging candidates
Inputs to this process are:
– a luma location (xCb, yCb) specifying the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture,
– two variables cbWidth and cbHeight specifying the width and the height of the current luma coding block,
– the availability flags availableA 0, availableA 1, availableA 2, availableB 0, availableB 1, availableB 2, availableB 3,
– the sample locations (xNbA 0, yNbA 0) , (xNbA 1, yNbA 1) , (xNbA 2, yNbA 2) , (xNbB 0, yNbB 0) , (xNbB 1, yNbB 1) , (xNbB 2, yNbB 2) and (xNbB 3, yNbB 3) .
Output of this process are:
– the availability flag of the constructed affine control point motion vector merging candidiates availableFlagConstK, with K=1.. 6,
– the reference indices refIdxLXConstK, with K=1.. 6, X being 0 or 1,
– the prediction list utilization flags predFlagLXConstK, with K=1.. 6, X being 0 or 1,
– the affine motion model indices motionModelIdcConstK, with K=1.. 6,
– the bi-prediction weight indices bcwIdxConstK, with K=1.. 6,
– the constructed affine control point motion vectors cpMvLXConstK [cpIdx] with cpIdx=0.. 2, K=1.. 6 and X being 0 or 1.
The fourth (collocated bottom-right) control point motion vector cpMvLXCorner [3] , reference index refIdxLXCorner [3] , prediction list utilization flag predFlagLXCorner [3] and the availability flag availableFlagCorner [3] with X being 0 and 1 are derived as follows:
– The reference indices for the temporal merging candidate, refIdxLXCorner [3] , with X being 0 or 1, are set equal to 0.
– The variables mvLXCol and availableFlagLXCol, with X being 0 or 1, are derived as follows:
– If slice_temporal_mvp_enabled_flag is equal to 0, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0.
– Otherwise (slice_temporal_mvp_enabled_flag is equal to 1) , the following applies:
xColBr=xCb+cbWidth  (8-601)
yColBr=yCb+cbHeight  (8-602)
rightBoundaryPos =subpic_treated_as_pic_flag [SubPicIdx] ?
SubPicRightBoundaryPos : pic_width_in_luma_samples -1
botBoundaryPos =subpic_treated_as_pic_flag [SubPicIdx] ?
SubPicBotBoundaryPos : pic_height_in_luma_samples -1
– If yCb>>CtbLog2SizeY is equal to yColBr>>CtbLog2SizeY,  yColBr is less than  or equal to botBoundaryPos and xColBr is less than or equal to rightBoundaryPos,  the following applies:
– The variable colCb specifies the luma coding block covering the modified location given by ( (xColBr>>3) <<3, (yColBr>>3) <<3) inside the collocated picture specified by ColPic.
– The luma location (xColCb, yColCb) is set equal to the top-left sample of the collocated luma coding block specified by colCb relative to the top-left luma sample of the collocated picture specified by ColPic.
– The derivation process for collocated motion vectors as specified in clause 8.5.2.12 is invoked with currCb, colCb, (xColCb, yColCb) , refIdxLXCorner [3] and sbFlag set equal to 0 as inputs, and the output is assigned to mvLXCol and availableFlagLXCol.
– Otherwise, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0.
5.2 Embodiment 2: sub-picture constraint on affine constructed merge candidates 8.5.5.6 Derivation process for constructed affine control point motion vector merging candidates
Inputs to this process are:
– a luma location (xCb, yCb) specifying the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture,
– two variables cbWidth and cbHeight specifying the width and the height of the current luma coding block,
– the availability flags availableA 0, availableA 1, availableA 2, availableB 0, availableB 1, availableB 2, availableB 3,
– the sample locations (xNbA 0, yNbA 0) , (xNbA 1, yNbA 1) , (xNbA 2, yNbA 2) , (xNbB 0, yNbB 0) , (xNbB 1, yNbB 1) , (xNbB 2, yNbB 2) and (xNbB 3, yNbB 3) .
Output of this process are:
– the availability flag of the constructed affine control point motion vector merging candidiates availableFlagConstK, with K=1.. 6,
– the reference indices refIdxLXConstK, with K=1.. 6, X being 0 or 1,
– the prediction list utilization flags predFlagLXConstK, with K=1.. 6, X being 0 or 1,
– the affine motion model indices motionModelIdcConstK, with K=1.. 6,
– the bi-prediction weight indices bcwIdxConstK, with K=1.. 6,
– the constructed affine control point motion vectors cpMvLXConstK [cpIdx] with cpIdx=0.. 2, K=1.. 6 and X being 0 or 1.
The fourth (collocated bottom-right) control point motion vector cpMvLXCorner [3] , reference index refIdxLXCorner [3] , prediction list utilization flag predFlagLXCorner [3] and the availability flag availableFlagCorner [3] with X being 0 and 1 are derived as follows:
– The reference indices for the temporal merging candidate, refIdxLXCorner [3] , with X being 0 or 1, are set equal to 0.
– The variables mvLXCol and availableFlagLXCol, with X being 0 or 1, are derived as follows:
– If slice_temporal_mvp_enabled_flag is equal to 0, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0.
– Otherwise (slice_temporal_mvp_enabled_flag is equal to 1) , the following applies:
xColBr=xCb+cbWidth  (8-601)
yColBr=yCb+cbHeight  (8-602)
rightBoundaryPos =subpic_treated_as_pic_flag [SubPicIdx] ?
SubPicRightBoundaryPos : pic_width_in_luma_samples-1
botBoundaryPos =subpic_treated_as_pic_flag [SubPicIdx] ?
SubPicBotBoundaryPos: pic_height_in_luma_samples–1
xColBr = Min (rightBoundaryPos, xColBr)
yColBr = Min (botBoundaryPos, yColBr)
– If yCb>>CtbLog2SizeY is equal to yColBr>>CtbLog2SizeY, [ [yColBr is less than pic_height_in_luma_samples and xColBr is less than pic_width_in_luma_samples, the following applies] ] :
– The variable colCb specifies the luma coding block covering the modified location given by ( (xColBr>>3) <<3, (yColBr>>3) <<3) inside the collocated picture specified by ColPic.
– The luma location (xColCb, yColCb) is set equal to the top-left sample of the collocated luma coding block specified by colCb relative to the top-left luma sample of the collocated picture specified by ColPic.
– The derivation process for collocated motion vectors as specified in clause 8.5.2.12 is invoked with currCb, colCb, (xColCb, yColCb) , refIdxLXCorner [3] and sbFlag set equal to 0 as inputs, and the output is assigned to mvLXCol and availableFlagLXCol.
– Otherwise, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0.
5.3 Embodiment 3: Fetching integer samples under the sub-picture constraint
8.5.6.3.3 Luma integer sample fetching process
Inputs to this process are:
– a luma location in full-sample units (xInt L, yInt L) ,
– the luma reference sample array refPicLX L,
Output of this process is a predicted luma sample value predSampleLX L
The variable shift is set equal to Max (2, 14-BitDepth Y) .
The variable picW is set equal to pic_width_in_luma_samples and the variable picH is set equal to pic_height_in_luma_samples.
The luma locations in full-sample units (xInt, yInt) are derived as follows:
– If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
xInt=Clip3 (SubPicLeftBoundaryPos, SubPicRightBoundaryPos, xInt)
yInt=Clip3 (SubPicTopBoundaryPos, SubPicBotBoundaryPos, yInt)
– Otherwise:
xInt= Clip3 (0, picW-1, sps_ref_wraparound_enabled_flag ?     (8-782)
ClipH ( (sps_ref_wraparound_offset_minus1+1) *MinCbSizeY, picW, xInt L) :xInt L)
yInt=Clip3 (0, picH-1, yInt L)      (8-783)
The predicted luma sample value predSampleLX is derived as follows:
predSampleLX L= refPicLX L [xInt] [yInt] << shift3      (8-784)
5.4 Embodiment 4: deriving the variable invAvgLuma in chroma residual scaling of LMCS
8.7.5.3 Picture reconstruction with luma dependent chroma residual scaling process for chroma samples
Inputs to this process are:
– a chroma location (xCurr, yCurr) of the top-left chroma sample of the current chroma transform block relative to the top-left chroma sample of the current picture,
– a variable nCurrSw specifying the chroma transform block width,
– a variable nCurrSh specifying the chroma transform block height,
– a variable tuCbfChroma specifying the coded block flag of the current chroma transform block,
– an (nCurrSw) x (nCurrSh) array predSamples specifying the chroma prediction samples of the current block,
– an (nCurrSw) x (nCurrSh) array resSamples specifying the chroma residual samples of the current block,
Output of this process is a reconstructed chroma picture sample array recSamples.
The variable sizeY is set equal to Min (CtbSizeY, 64) .
The reconstructed chroma picture sample recSamples is derived as follows for i=0.. nCurrSw-1, j=0.. nCurrSh-1:
- …
– Otherwise, the following applies:
- …
– The variable currPic specifies the array of reconstructed luma samples in the current picture.
– For the derivation of the variable varScale the following ordered steps apply:
1. The variable invAvgLuma is derived as follows:
– The array recLuma [i] with i=0.. (2*sizeY-1) and the variable cnt are derived as follows:
– The variable cnt is set equal to 0.
– The variablerightBoundaryPos and botBoundaryPos are derived as follows:
rightBoundaryPos=subpic_treated_as_pic_flag [SubPicIdx] ?
SubPicRightBoundaryPos: pic_width_in_luma_samples-1
botBoundaryPos=subpic_treated_as_pic_flag [SubPicIdx] ?
SubPicBotBoundaryPos: pic_height_in_luma_samples–1
– When availL is equal to TRUE, the array recLuma [i] with i=0.. sizeY-1 is set equal to
currPic [xCuCb-1] [Min (yCuCb+i, [ [pic_height_in_luma_samples–1] ]  botBoundaryPos) ] with i=0.. sizeY-1, and cnt is set equal to sizeY
– When availT is equal to TRUE, the array recLuma [cnt+i] with i =0.. sizeY–1 is set equal to
currPic [Min (xCuCb+i, [ [pic_width_in_luma_samples-1] ]  rightBoundary  Pos) ] [yCuCb-1] with i=0.. sizeY-1, and cnt is set equal to (cnt+sizeY)
– The variable invAvgLuma is derived as follows:
– If cnt is greater than 0, the following applies:
Figure PCTCN2021071360-appb-000053
– Otherwise (cnt is equal to 0) , the following applies:
invAvgLuma = 1<< (BitDepthY–1)       (8-1014)
5.5 Embodiment 5: an example of defining the sub-picture element in unit of N (such as N=8 or 32) other than 4 samples
7.4.3.3 Sequence parameter set RBSP semantics
subpic_grid_col_width_minus1 plus 1 specifies the width of each element of the sub-picture identifier grid in units of  4-N samples. The length of the syntax element is
Ceil (Log2 (pic_width_max_in_luma_samples/ 4-N) ) ) bits.
The variable NumSubPicGridCols is derived as follows:
NumSubPicGridCols = (pic_width_max_in_luma_samples+subpic_grid_col_width_minus1* [ [4+3] ]  N +N-1) / (subpic_grid_col_width_minus1* [ [4+3] ]  N + N-1)     (7-5)
subpic_grid_row_height_minus1 plus 1 specifies the height of each element of the sub-picture identifier grid in units of 4 samples. The length of the syntax element is
Ceil (Log2 (pic_height_max_in_luma_samples/ 4-N) ) bits.
The variable NumSubPicGridRows is derived as follows:
NumSubPicGridRows = (pic_height_max_in_luma_samples+subpic_grid_row_height_minus1* 4N+N-1) / (subpic_grid_row_height_minus1* [ [4+3]  N + N-1)
7.4.7.1 General slice header semantics
The variables SubPicIdx, SubPicLeftBoundaryPos, SubPicTopBoundaryPos,
SubPicRightBoundaryPos, and SubPicBotBoundaryPos are derived as follows:
SubPicIdx = CtbToSubPicIdx [CtbAddrBsToRs [FirstCtbAddrBs [SliceBrickIdx [0] ] ] ]
if (subpic_treated_as_pic_flag [SubPicIdx] ) {
SubPicLeftBoundaryPos =
SubPicLeft [SubPicIdx] * (subpic_grid_col_width_minus1+1) * 4 N
SubPicRightBoundaryPos =
(SubPicLeft [SubPicIdx] +SubPicWidth [SubPicIdx] ) *
(subpic_grid_col_width_minus1+1) * 4N       (7-93)
SubPicTopBoundaryPos =
SubPicTop [SubPicIdx] * (subpic_grid_row_height_minus1+1) * 4 N 
SubPicBotBoundaryPos = (SubPicTop [SubPicIdx] +SubPicHeight [SubPicIdx] ) *
(subpic_grid_row_height_minus1+1) * 4N
}
5.6 Embodiment 6: restrict the picture width and the picture height to be equal or larger than 8
7.4.3.3 Sequence parameter set RBSP semantics
pic_width_max_in_luma_samples specifies the maximum width, in units of luma samples, of each decoded picture referring to the SPS. pic_width_max_in_luma_samples shall not be equal to 0 and shall be an integer multiple of [ [MinCbSizeY] ]  Max (8, MinCbSizeY) .
pic_height_max_in_luma_samples specifies the maximum height, in units of luma samples, of each decoded picture referring to the SPS. pic_height_max_in_luma_samples shall not be equal to 0 and shall be an integer multiple of [ [MinCbSizeY] ]  Max (8, MinCbSizeY) .
5.7 Embodiment 7: sub-picture boundary check for BT/TT/QT splitting, BT/TT/QT depth derivation, and/or the signaling of CU split flag
6.4.2 Allowed binary split process
The variable allowBtSplit is derived as follows:
- …
– Otherwise, if all of the following conditions are true, allowBtSplit is set equal to FALSE
– btSplit is equal to SPLIT_BT_VER
– y0+cbHeight is greater than [ [pic_height_in_luma_samples ] ] subpic_treated_as_pic_flag [SubPicIdx] ?  SubPicBotBoundaryPos + 1: pic_height_in_luma_samples.
– Otherwise, if all of the following conditions are true, allowBtSplit is set equal to FALSE
– btSplit is equal to SPLIT_BT_VER
– cbHeight is greater than MaxTbSizeY
– x0+cbWidth is greater than [ [pic_width_in_luma_samples] ]  subpic_treated_as_pic_flag [SubPicIdx] ? SubPicRightBoundaryPos + 1 : pic_width_in_luma_samples
– Otherwise, if all of the following conditions are true, allowBtSplit is set equal to FALSE
– btSplit is equal to SPLIT_BT_HOR
– cbWidth is greater than MaxTbSizeY
– y0+cbHeight is greater than [ [pic_height_in_luma_samples] ]  subpic_treated_as_pic_flag [SubPicIdx] ? SubPicBotBoundaryPos + 1: pic_height_in_luma_samples.
– Otherwise, if all of the following conditions are true, allowBtSplit is set equal to FALSE
– x0 + cbWidth is greater than [ [pic_width_in_luma_samples] ]  subpic_treated_as_pic_flag [SubPicIdx] ? SubPicRightBoundaryPos + 1 : pic_width_in_luma_samples
– y0+cbHeight is greater than [ [pic_height_in_luma_samples] ]  subpic_treated_as_pic_flag [SubPicIdx] ? SubPicBotBoundaryPos+ 1: pic_height_in_luma_samples.
– cbWidth is greater than minQtSize
– Otherwise, if all of the following conditions are true, allowBtSplit is set equal to FALSE
– btSplit is equal to SPLIT_BT_HOR
– x0+cbWidth is greater than [ [pic_width_in_luma_samples] ]  subpic_treated_as_pic_flag [SubPicIdx] ? SubPicRightBoundaryPos + 1 :  pic_width_in_luma_samples
– y0+cbHeight is less than or equal to [ [pic_height_in_luma_samples] ]  subpic_treated_as_pic_flag [SubPicIdx] ? SubPicBotBoundaryPos+ 1: pic_height_in_luma_samples.
6.4.2 Allowed ternary split process
The variable allowTtSplit is derived as follows:
– If one or more of the following conditions are true, allowTtSplit is set equal to FALSE:
– cbSize is less than or equal to 2*MinTtSizeY
– cbWidth is greater than Min (MaxTbSizeY, maxTtSize)
– cbHeight is greater than Min (MaxTbSizeY, maxTtSize)
– mttDepth is greater than or equal to maxMttDepth
– x0+cbWidth is greater than [ [pic_width_in_luma_samples] ]  subpic_treated_as_pic_flag [SubPicIdx] ? SubPicRightBoundaryPos + 1 :  pic_width_in_luma_samples
– y0+cbHeight is greater than [ [pic_height_in_luma_samples] ]  subpic_treated_as_pic_flag [SubPicIdx] ? SubPicBotBoundaryPos + 1: pic_height_in_luma_samples.
– treeType is equal to DUAL_TREE_CHROMA and (cbWidth/SubWidthC) * (cbHeight/SubHeightC) is less than or equal to 32
– treeType is equal to DUAL_TREE_CHROMA and modeType is equal to MODE_TYPE_INTRA
– Otherwise, allowTtSplit is set equal to TRUE.
7.3.8.2 Coding tree unit syntax
Figure PCTCN2021071360-appb-000054
7.3.8.4 Coding tree syntax
Figure PCTCN2021071360-appb-000055
Figure PCTCN2021071360-appb-000056
5.8 Embodiment 8: an example of defining the sub-pictures
Figure PCTCN2021071360-appb-000057
Figure PCTCN2021071360-appb-000058
5.9 Embodiment 9: an example of defining the sub-pictures
Figure PCTCN2021071360-appb-000059
Figure PCTCN2021071360-appb-000060
5.10 Embodiment 10: an example of defining the sub-pictures
Figure PCTCN2021071360-appb-000061
Figure PCTCN2021071360-appb-000062
5.11 Embodiment 11: an example of defining the sub-pictures
Figure PCTCN2021071360-appb-000063
Figure PCTCN2021071360-appb-000064
NumSubPics=num_subpics_minus2+2.
5.12 Embodiment: deblocking considering sub-pictures
8.8.3 Deblocking filter process
8.8.3.1 General
Inputs to this process are the reconstructed picture prior to deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr.
Outputs of this process are the modified reconstructed picture after deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr.
The vertical edges in a picture are filtered first. Then the horizontal edges in a picture are filtered with samples modified by the vertical edge filtering process as input. The vertical and horizontal edges in the CTBs of each CTU are processed separately on a coding unit basis. The vertical edges of the coding blocks in a coding unit are filtered starting with the edge on the left-hand side of the coding blocks proceeding through the edges towards the right-hand side of the coding blocks in their geometrical order. The horizontal edges of the coding blocks in a coding unit are filtered starting with the edge on the top of the coding blocks proceeding through the edges towards the bottom of the coding blocks in their geometrical order.
NOTE–Although the filtering process is specified on a picture basis in this Specification, the filtering process can be implemented on a coding unit basis with an equivalent result, provided the decoder properly accounts for the processing dependency order so as to produce the same output values.
The deblocking filter process is applied to all coding subblock edges and transform block edges of a picture, except the following types of edges:
– Edges that are at the boundary of the picture,
– [ [Edges that coincide with the boundaries of a sub-picture for which loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0, ] ]
– Edges that coincide with the virtual boundaries of the picture when pps_loop_filter_across_virtual_boundaries_disabled_flag is equal to 1,
– Edges that coincide with tile boundaries when loop_filter_across_tiles_enabled_flag is equal to 0,
– Edges that coincide with slice boundaries when loop_filter_across_slices_enabled_flag is equal to 0,
– Edges that coincide with upper or left boundaries of slices with slice_deblocking_filter_disabled_flag equal to 1,
– Edges within slices with slice_deblocking_filter_disabled_flag equal to 1,
– Edges that do not correspond to 4x4 sample grid boundaries of the luma component,
– Edges that do not correspond to 8x8 sample grid boundaries of the chroma component,
– Edges within the luma component for which both sides of the edge have intra_bdpcm_luma_flag equal to 1,
– Edges within the chroma components for which both sides of the edge have intra_bdpcm_chroma_flag equal to 1,
– Edges of chroma subblocks that are not edges of the associated transform unit.
Deblocking filter process for one direction
Inputs to this process are:
– the variable treeType specifying whether the luma (DUAL_TREE_LUMA) or chroma components (DUAL_TREE_CHROMA) are currently processed,
– when treeType is equal to DUAL_TREE_LUMA, the reconstructed picture prior to deblocking, i.e., the array recPicture L,
– when ChromaArrayType is not equal to 0 and treeType is equal to DUAL_TREE_CHROMA, the arrays recPicture Cb and recPicture Cr,
– a variable edgeType specifying whether a vertical (EDGE_VER) or a horizontal (EDGE_HOR) edge is filtered.
Outputs of this process are the modified reconstructed picture after deblocking, i.e:
– when treeType is equal to DUAL_TREE_LUMA, the array recPicture L,
– when ChromaArrayType is not equal to 0 and treeType is equal to DUAL_TREE_CHROMA, the arrays recPicture Cb and recPicture Cr.
The variables firstCompIdx and lastCompIdx are derived as follows:
firstCompIdx = (treeType == DUAL_TREE_CHROMA) ? 1 : 0      (8-1010)
lastCompIdx = (treeType == DUAL_TREE_LUMA || ChromaArrayType == 0) ? 0 : 2     (8-1011)
For each coding unit and each coding block per colour component of a coding unit indicated by the colour component index cIdx ranging from firstCompIdx to lastCompIdx, inclusive, with coding block width nCbW, coding block height nCbH and location of top-left sample of the coding block (xCb, yCb) , when cIdx is equal to 0, or when cIdx is not equal to 0 and edgeType is equal to EDGE_VER and xCb%8 is equal 0, or when cIdx is not equal to 0 and edgeType is equal to EDGE_HOR and yCb%8 is equal to 0, the edges are filtered by the following ordered steps:
2. The variable filterEdgeFlag is derived as follows:
– If edgeType is equal to EDGE_VER and one or more of the following conditions are true, filterEdgeFlag is set equal to 0:
– The left boundary of the current coding block is the left boundary of the picture.
– [ [The left boundary of the current coding block is the left or right boundary of the sub-picture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0. ] ] 
– The left boundary of the current coding block is the left boundary of the tile and loop_filter_across_tiles_enabled_flag is equal to 0.
– The left boundary of the current coding block is the left boundary of the slice and loop_filter_across_slices_enabled_flag is equal to 0.
– The left boundary of the current coding block is one of the vertical virtual boundaries of the picture and VirtualBoundariesDisabledFlag is equal to 1.
– Otherwise, if edgeType is equal to EDGE_HOR and one or more of the following conditions are true, the variable filterEdgeFlag is set equal to 0:
– The top boundary of the current luma coding block is the top boundary of the picture.
– [ [The top boundary of the current coding block is the top or bottom boundary of the sub-picture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0. ] ]
– The top boundary of the current coding block is the top boundary of the tile and loop_filter_across_tiles_enabled_flag is equal to 0.
– The top boundary of the current coding block is the top boundary of the slice and loop_filter_across_slices_enabled_flag is equal to 0.
– The top boundary of the current coding block is one of the horizontal virtual boundaries of the picture and VirtualBoundariesDisabledFlag is equal to 1.
– Otherwise, filterEdgeFlag is set equal to 1.
Filtering process for a luma sample using short filters
Inputs to this process are:
– the sample values p i and q i with i=0.. 3,
– the locations of p i and q i, (xP i, yP i) and (xQ i, yQ i) with i=0.. 2,
– a variable dE,
– the variables dEp and dEq containing decisions to filter samples p1 and q1, respectively,
– a variable t C.
Outputs of this process are:
– the number of filtered samples nDp and nDq,
– the filtered sample values p i′ and q j′ with i=0.. nDp-1, j=0.. nDq-1.
Depending on the value of dE, the following applies:
– If the variable dE is equal to 2, nDp and nDq are both set equal to 3 and the following strong filtering applies:
p 0′= Clip3 (p 0-3*t C, p 0+3*t C, (p 2+2*p 1+2*p 0+2*q 0+q 1+4) >>3) (8-1150)
p 1′= Clip3 (p 1-2*t C, p 1+2*t C, (p 2+p 1+p 0+q 0+2) >>2)     (8-1151)
p 2′= Clip3 (p 2-1*t C, p 2+1*t C, (2*p 3+3*p 2+p 1+p 0+q 0+4) >>3) (8-1152)
q 0′= Clip3 (q 0-3*t C, q 0+3*t C, (p 1+2*p 0+2*q 0+2*q 1+q 2+4) >>3) (8-1153)
q 1′= Clip3 (q 1-2*t C, q 1+2*t C, (p 0+q 0+q 1+q 2+2) >>2)   (8-1154)
q 2′= Clip3 (q 2-1*t C, q 2+1*t C, (p 0+q 0+q 1+3*q 2+2*q 3+4) >>3) (8-1155)
– Otherwise, nDp and nDq are set both equal to 0 and the following weak filtering applies:
– The following applies:
Δ= (9* (q 0-p 0) -3* (q 1-p 1) +8) >>4     (8-1156)
– When Abs (Δ) is less than t C*10, the following ordered steps apply:
– The filtered sample values p 0′ and q 0′ are specified as follows:
Δ= Clip3 (-t C, t C, Δ)      (8-1157)
p 0′= Clip1 (p 0+Δ)     (8-1158)
q 0′= Clip1 (q 0-Δ)    (8-1159)
– When dEp is equal to 1, the filtered sample value p 1′ is specified as follows:
Δp = Clip3 (- (t C>>1) , t C>>1, ( ( (p 2+p 0+1) >>1) -p 1+Δ) >>1)       (8-1160)
p 1′= Clip1 (p 1+Δp)       (8-1161)
– When dEq is equal to 1, the filtered sample value q 1′ is specified as follows:
Δq = Clip3 (- (t C>>1) , t C>>1, ( ( (q 2+q 0+1) >>1) -q 1-Δ) >>1)     (8-1162)
q 1′= Clip1 (q 1+Δq)      (8-1163)
– nDp is set equal to dEp+1 and nDq is set equal to dEq+1.
When nDp is greater than 0 and pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p 0 is equal to 1, nDp is set equal to 0
When nDq is greater than 0 and pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q 0 is equal to 1, nDq is set equal to 0
When nDp is greater than 0 and loop_filter_across_subpic_enabled_flag [subPicIdxP] is  equal to 0, nDp is set equal to 0, wherein subPicIdxP is the sub-picture index of the sub- picture containing the sample p 0.
When nDq is greater than 0 and loop_filter_across_subpic_enabled_flag [subPicIdxQ] is  equal to 0, nDq is set equal to 0, wherein subPicIdxQ is the sub-picture index of the sub- picture containing the sample q 0.
Filteringprocess for a luma sample using long filters
Inputs to this process are:
– the variables maxFilterLengthP and maxFilterLengthQ,
– the sample values p i and q j with i=0.. maxFilterLengthP and j=0.. maxFilterLengthQ,
– the locations of p i and q j, (xP i, yP i) and (xQ j, yQ j) with i=0.. maxFilterLengthP-1 and j=0.. maxFilterLengthQ-1,
– a variable t C.
Outputs of this process are:
– the filtered sample values p i′ and q j′ with i=0.. maxFilterLengthP-1, j=0.. maxFilterLenghtQ-1.
The variable refMiddle is derived as follows:
– If maxFilterLengthP is equal to maxFilterLengthQ and maxFilterLengthP is equal to 5, the following applies:
refMiddle = (p 4+p 3+2* (p 2+p 1+p 0+q 0+q 1+q 2) +q 3+q 4+8) >>4 (8-1164)
– Otherwise, if maxFilterLengthP is equal to maxFilterLengthQ and maxFilterLengthP is not equal to 5, the following applies:
refMiddle = (p 6+p 5+p 4+p 3+p 2+p 1+2* (p 0+q 0) +q 1+q 2+q 3+q 4+q 5+q 6+8) >>4   (8-1165)
– Otherwise, if one of the following conditions are true,
– maxFilterLengthQ is equal to 7 and maxFilterLengthP is equal to 5,
– maxFilterLengthQ is equal to 5 and maxFilterLengthP is equal to 7, the following applies:
refMiddle = (p 5+p 4+p 3+p 2+2* (p 1+p 0+q 0+q 1) +q 2+q 3+q 4+q 5+8) >>4      (8-1166)
– Otherwise, if one of the following conditions are true,
– maxFilterLengthQ is equal to 5 and maxFilterLengthP is equal to 3,
– maxFilterLengthQ is equal to 3 and maxFilterLengthP is equal to 5, the following applies:
refMiddle = (p 3+p 2+p 1+p 0+q 0+q 1+q 2+q 3+4) >>3     (8-1167)
– Otherwise, if maxFilterLengthQ is equal to 7 and maxFilterLengthP is equal to 3, the following applies:
refMiddle = (2* (p 2+p 1+p 0+q 0) +p 0+p 1+q 1+q 2+q 3+q 4+q 5+q 6+8) >>4       (8-1168)
– Otherwise, the following applies:
refMiddle = (p 6+p 5+p 4+p 3+p 2+p 1+2* (q 2+q 1+q 0+p 0) +q 0+q 1+8) >>4     (8-1169)
The variables refP and refQ are derived as follows:
refP = (p maxFilterLengtP+p maxFilterLengthP-1+1) >>1     (8-1170)
refQ = (q maxFilterLengtQ+q maxFilterLengthQ-1+1) >>1       (8-1171)
The variables f i and t CPD i are defined as follows:
– If maxFilterLengthP is equal to 7, the following applies:
f 0..  6= {59, 50, 41, 32, 23, 14, 5}      (8-1172)
t CPD 0..  6 = {6, 5, 4, 3, 2, 1, 1}     (8-1173)
– Otherwise, if maxFilterLengthP is equal to 5, the following applies:
f 0..  4 = {58, 45, 32, 19, 6}      (8-1174)
t CPD 0..  4 = {6, 5, 4, 3, 2}      (8-1175)
– Otherwise, the following applies:
f 0.. 2 = {53, 32, 11}       (8-1176)
t CPD 0..  2 = {6, 4, 2}           (8-1177)
The variables g j and t CQD j are defined as follows:
– If maxFilterLengthQ is equal to 7, the following applies:
g 0.. 6 = {59, 50, 41, 32, 23, 14, 5}          (8-1178)
t CQD 0.. 6 = {6, 5, 4, 3, 2, 1, 1}         (8-1179)
– Otherwise, if maxFilterLengthQ is equal to 5, the following applies:
g 0.. 4 = {58, 45, 32, 19, 6}         (8-1180)
t CQD 0.. 4 = {6, 5, 4, 3, 2}       (8-1181)
– Otherwise, the following applies:
g 0.. 2 = {53, 32, 11}    (8-1182)
t CQD 0.. 2 = {6, 4, 2}           (8-1183)
The filtered sample values p i′ and q j′ with i=0.. maxFilterLengthP-1 and j=0.. maxFilterLengthQ-1 are derived as follows:
p i′=Clip3 (p i- (t C*t CPD i) >>1, p i+ (t C*t CPD i) >>1, (refMiddle*f i+refP* (64-f i) +32) >>6) (8-1184)
q j′=Clip3 (q j- (t C*t CQD j) >>1, q j+ (t C*t CQD j) >>1, (refMiddle*g j+refQ* (64-g j) +32) >>6) (8-1185)
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p i is equal to 1, the filtered sample value, p i′ is substituted by the corresponding input sample value p i with i=0.. maxFilterLengthP-1.
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q i is equal to 1, the filtered sample value, q i′ is substituted by the corresponding input sample value q j with j=0.. maxFilterLengthQ-1.
When loop_filter_across_subpic_enabled_flag [subPicIdxP] is equal to 0, wherein  subPicIdxP is the sub-picture index of the sub-picture containing the sample p 0, the filtered  sample value, p i′ is substituted by the corresponding input sample value p i   with  i= 0.. maxFilterLengthP-1.
When loop_filter_across_subpic_enabled_flag [subPicIdxQ] is equal to 0, wherein  subPicIdxQ is the sub-picture index of the sub-picture containing the sample q 0, the filtered  sample value, q i′ is substituted by the corresponding input sample value q j with  j= 0.. maxFilterLengthQ-1.
Filtering processfor a chroma sample
This process is only invoked when ChromaArrayType is not equal to 0.
Inputs to this process are:
– the variable maxFilterLength,
– the chroma sample values p i and q i with i=0.. maxFilterLengthCbCr,
– the chroma locations of p i and q i, (xP i, yP i) and (xQ i, yQ i) with i=0.. maxFilterLengthCbCr-1,
– a variable t C.
Outputs of this process are the filtered sample values p i′ and q i′ with
i=0.. maxFilterLengthCbCr-1.
The filtered sample values p i′ and q i′ with i=0.. maxFilterLengthCbCr-1 are derived as follows:
– If maxFilterLengthCbCr is equal to 3, the following strong filtering applies:
p 0′= Clip3 (p 0-t C, p 0+t C, (p 3+p 2+p 1+2*p 0+q 0+q 1+q 2+4) >>3)    (8-1186)
p 1′= Clip3 (p 1-t C, p 1+t C, (2*p 3+p 2+2*p 1+p 0+q 0+q 1+4) >>3)    (8-1187)
p 2′= Clip3 (p 2-t C, p 2+t C, (3*p 3+2*p 2+p 1+p 0+q 0+4) >>3)    (8-1188)
q 0′= Clip3 (q 0-t C, q 0+t C, (p 2+p 1+p 0+2*q 0+q 1+q 2+q 3+4) >>3)  (8-1189)
q 1′= Clip3 (q 1-t C, q 1+t C, (p 1+p 0+q 0+2*q 1+q 2+2*q 3+4) >>3)    (8-1190)
q 2′= Clip3 (q 2-t C, q 2+t C, (p 0+q 0+q 1+2*q 2+3*q 3+4) >>3)    (8-1191)
– Otherwise, the following weak filtering applies:
Δ= Clip3 (-t C, t C, ( ( ( (q 0-p 0) <<2) +p 1-q 1+4) >>3) )    (8-1192)
p 0′= Clip1 (p 0+Δ)     (8-1193)
q 0′= Clip1 (q 0-Δ)        (8-1194)
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p i is equal to 1, the filtered sample value, p i′ is substituted by the corresponding input sample value p i with i=0.. maxFilterLengthCbCr-1.
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q i is equal to 1, the filtered sample value, q i′ is substituted by the corresponding input sample value q i with i=0.. maxFilterLengthCbCr-1:
When loop_filter_across_subpic_enabled_flag [subPicIdxP] is equal to 0, wherein  subPicIdxP is the sub-picture index of the sub-picture containing the sample p 0, the filtered  sample value, p i′ is substituted by the corresponding input sample value p i with  i= 0.. maxFilterLengthCbCr-1.
When loop_filter_across_subpic_enabled_flag [subPicIdxQ] is equal to 0, wherein  subPicIdxQ is the sub-picture index of the sub-picture containing the sample q 0, the filtered  sample value, q i′ is substituted by the corresponding input sample value q i with  i= 0.. maxFilterLengthCbCr-1:
5.13 Embodiment: deblocking considering sub-pictures (solution #2)
8.8.3 Deblocking filter process
8.8.3.1 General
Inputs to this process are the reconstructed picture prior to deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr.
Outputs of this process are the modified reconstructed picture after deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr.
The deblocking filter process is applied to all coding subblock edges and transform block edges of a picture, except the following types of edges:
– Edges that are at the boundary of the picture,
– [ [Edges that coincide with the boundaries of a sub-picture for which loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0, ] ]
–  Edges that coincide with the boundaries of a sub-picture X and  loop_filter_across_subpic_enabled_flag [SubPicXIdx] is equal to 0, wherein SubPicXidx is  the sub-picture index of the sub-picture X.
– Edges that coincide with the virtual boundaries of the picture when VirtualBoundariesDisabledFlag is equal to 1,
- …
8.8.3.2 Deblocking filter process for one direction
Inputs to this process are:
– the variable treeType specifying whether the luma (DUAL_TREE_LUMA) or chroma components (DUAL_TREE_CHROMA) are currently processed,
3. The variable filterEdgeFlag is derived as follows:
– If edgeType is equal to EDGE_VER and one or more of the following conditions are true, filterEdgeFlag is set equal to 0:
– The left boundary of the current coding block is the left boundary of the picture.
– [ [The left boundary of the current coding block is the left or right boundary of the sub-picture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0. ] ]
–  The left boundary of the current coding block concides with a left or a right  boundary of a sub-picture X and  loop_filter_across_subpic_enabled_flag [SubPicXIdx] is equal to 0, wherein  SubPicXidx is the sub-picture index of the sub-picture X.
- …
– Otherwise, if edgeType is equal to EDGE_HOR and one or more of the following conditions are true, the variable filterEdgeFlag is set equal to 0:
– The top boundary of the current luma coding block is the top boundary of the picture.
– [ [The top boundary of the current coding block is the top or bottom boundary of the sub-picture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0. ] ]
–  The top boundary of the current coding block concides with a top or a bottom  boundary of a sub-picture X and  loop_filter_across_subpic_enabled_flag [SubPicXIdx] is equal to 0, wherein  SubPicXidx is the sub-picture index of the sub-picture X.
5.14 Embodiment: deblocking considering sub-pictures (solution #3)
8.8.3 Deblocking filter process
8.8.3.1 General
Inputs to this process are the reconstructed picture prior to deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr.
Outputs of this process are the modified reconstructed picture after deblocking, i.e., the array recPicture L and, when ChromaArrayType is not equal to 0, the arrays recPicture Cb and recPicture Cr.
The deblocking filter process is applied to all coding subblock edges and transform block edges of a picture, except the following types of edges:
– Edges that are at the boundary of the picture,
– [ [Edges that coincide with the boundaries of a subpicture for which loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0, ] ]
– Edges that coincide with the virtual boundaries of the picture when VirtualBoundariesDisabledFlag is equal to 1,
- …
8.8.3.2 Deblocking filter process for one direction
Inputs to this process are:
– the variable treeType specifying whether the luma (DUAL_TREE_LUMA) or chroma components (DUAL_TREE_CHROMA) are currently processed,
4. The variable filterEdgeFlag is derived as follows:
– If edgeType is equal to EDGE_VER and one or more of the following conditions are true, filterEdgeFlag is set equal to 0:
– The left boundary of the current coding block is the left boundary of the picture.
– [ [The left boundary of the current coding block is the left or right boundary of the subpicture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0. ] ]
- …
– Otherwise, if edgeType is equal to EDGE_HOR and one or more of the following conditions are true, the variable filterEdgeFlag is set equal to 0:
– The top boundary of the current luma coding block is the top boundary of the picture.
– [ [The top boundary of the current coding block is the top or bottom boundary of the subpicture and loop_filter_across_subpic_enabled_flag [SubPicIdx] is equal to 0. ] ]
- …
8.8.3.6.6 Filtering process for a luma sample using short filters
When nDp is greater than 0 and pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p 0 is equal to 1, nDp is set equal to 0
When nDq is greater than 0 and pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q 0 is equal to 1, nDq is set equal to 0:
When all the conditions below are satisfied:
nDp is greater than 0
subPicIdxP is not equal to subPicIdxQ
loop_filter_across_subpic_enabled_flag [subPicIdxP] is equal to 0  nDp is set equal to 0, wherein subPicIdxP is the subpicture index of the subpicture containing  the sample p 0and subPicIdxQ is the subpicture index of the subpicture containing the sample  q 0.
When all the conditions below are satisfied:
nDq is greater than 0
subPicIdxP is not equal to subPicIdxQ
loop_filter_across_subpic_enabled_flag [subPicIdxQ] is equal to 0  nDq is set equal to 0, wherein subPicIdxP is the subpicture index of the subpicture containing  the sample p 0and subPicIdxQ is the subpicture index of the subpicture containing the sample  q 0.
8.8.3.6.7 Filtering process for a luma sample using long filters
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p i is equal to 1, the filtered sample value, p i′ is substituted by the corresponding input sample value p i with i=0.. maxFilterLengthP-1.
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q i is equal to 1, the filtered sample value, q i′ is substituted by the corresponding input sample value q j with j=0.. maxFilterLengthQ-1.
When subPicIdxP is not equal to subPicIdxQ and  loop_filter_across_subpic_enabled_flag [subPicIdxP] is equal to 0, wherein subPicIdxP is the  subpicture index of the subpicture containing the sample p 0 and subPicIdxQ is the subpicture  index of the subpicture containing the sample q 0, the filtered sample value, p i′ is substituted by  the corresponding input sample value p i with i= 0.. maxFilterLengthP-1.
When subPicIdxP is not equal to subPicIdxQ and  loop_filter_across_subpic_enabled_flag [subPicIdxQ] is equal to 0, wherein subPicIdxP is the  subpicture index of the subpicture containing the sample p 0and subPicIdxQ is the subpicture  index of the subpicture containing the sample q 0, the filtered sample value, q i′ is substituted by  the corresponding input sample value q j with j= 0.. maxFilterLengthQ-1.
8.8.3.6.9 Filtering process for a chroma sample
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p i is equal to 1, the filtered sample value, p i′ is substituted by the corresponding input sample value p i with i=0.. maxFilterLengthP-1.
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q i is equal to 1, the filtered sample value, q i′ is substituted by the corresponding input sample value q i with i=0.. maxFilterLengthQ-1:
When subPicIdxP is not equal to subPicIdxQ and  loop_filter_across_subpic_enabled_flag [subPicIdxP] is equal to 0, wherein subPicIdxP is the  subpicture index of the subpicture containing the sample p 0and subPicIdxQ is the subpicture  index of the subpicture containing the sample q 0, , the filtered sample value, p i′ is substituted  by the corresponding input sample value p i with i= 0.. maxFilterLengthP-1.
When subPicIdxP is not equal to subPicIdxQ and  loop_filter_across_subpic_enabled_flag [subPicIdxQ] is equal to 0, wherein subPicIdxP is the  subpicture index of the subpicture containing the sample p 0and subPicIdxQ is the subpicture  index of the subpicture containing the sample q 0, the filtered sample value, q i′ is substituted by  the corresponding input sample value q i with i= 0.. maxFilterLengthQ-1:
5.15 Embodiment: deblocking considering sub-pictures (solution #4)
8.8.3.6.6 Filtering process for a luma sample using short filters
When nDp is greater than 0 and pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p 0 is equal to 1, nDp is set equal to 0
When nDq is greater than 0 and pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q 0 is equal to 1, nDq is set equal to 0:
When nDp is greater than 0 and the sample p and the sample q belong to two different  subpictures and loop_filter_across_subpic_enabled_flag [subPicIdxP] is equal to 0, wherein  subPicIdxP is the subpicture index containing the sample p 0, nDp is set equal to 0
When nDq is greater than 0 and the sample q 0and the sample p 0belong to two different  subpictures and loop_filter_across_subpic_enabled_flag [subPicIdxQ] is equal to 0, wherein  subPicIdxQ is the subpicture index containing the sample q 0, nDq is set equal to 0
8.8.3.6.7 Filtering process for a luma sample using long filters
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p i is equal to 1, the filtered sample value, p i′ is substituted by the corresponding input sample value p i with i=0.. maxFilterLengthP-1.
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q i is equal to 1, the filtered sample value, q i′ is substituted by the corresponding input sample value q j with j=0.. maxFilterLengthQ-1.
When the sample p i and the sample q 0belong to two different subpictures and  loop_filter_across_subpic_enabled_flag [subPicIdxP] is equal to 0, wherein subPicIdxP is the  subpicture index containing the sample p i, the filtered sample value, p i′ is substituted by the  corresponding input sample value p i with i= 0.. maxFilterLengthP-1.
When the sample q i and p 0belong to two different subpictures and  loop_filter_across_subpic_enabled_flag [subPicIdxQ] is equal to 0, wherein subPicIdxQ is  the subpicture index containing the sample q i, . the filtered sample value, q i′ is substituted by  the corresponding input sample value q i   with i= 0.. maxFilterLengthQ-1.
8.8.3.6.9 Filtering process for a chroma sample
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample p i is equal to 1, the filtered sample value, p i′ is substituted by the corresponding input sample value p i with i=0.. maxFilterLengthP-1.
When pred_mode_plt_flag of the coding unit that includes the coding block containing the sample q i is equal to 1, the filtered sample value, q i′ is substituted by the corresponding input sample value q i with i=0.. maxFilterLengthQ-1:
When the sample p i and q 0belong to two different subpictures and  loop_filter_across_subpic_enabled_flag [subPicIdxP] is equal to 0, wherein subPicIdxP is the  subpicture index containing the sample p i. the filtered sample value, p i′ is substituted by the  corresponding input sample value p i with i= 0.. maxFilterLengthP-1.
When the sample q i and p 0belong to two different subpictures and  loop_filter_across_subpic_enabled_flag [subPicIdxQ] is equal to 0, wherein subPicIdxQ is  the subpicture index containing the sample q i. the filtered sample value, q i′ is substituted by  the corresponding input sample value q i with i= 0.. maxFilterLengthQ-1.
5.16 Embodiment: Derivation process for subblock-based temporal merging candidates
8.5.5.3 Derivation process for subblock-based temporal merging candidates
– The location (xColSb, yColSb) of the collocated subblock inside ColPic is derived as follows.
– [ [The following applies: ] ]
–  If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
yColSb = Clip3 (yCtb,  Min (SubPicBotBoundaryPos, yCtb+ (1 << CtbLog2SizeY) -1) ,  (xxx) ySb +tempMv [1] )
–  Otherwise ( subpic_treated_as_pic_flag [ SubPicIdx] is equal to 0) , the following  applies:
yColSb = Clip3 (yCtb, Min (pic_height_in_luma_samples-1, yCtb+ (1<<CtbLog2SizeY) -1 ) , (735) ySb+tempMv [1] )
– If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
xColSb = Clip3 (xCtb, Min (SubPicRightBoundaryPos, xCtb+ (1<<CtbLog2SizeY) +3) , (736) xSb+tempMv [0] )
– Otherwise (subpic_treated_as_pic_flag [SubPicIdx] is equal to 0) , the following applies:
xColSb = Clip3 (xCtb, Min (pic_width_in_luma_samples-1, xCtb+ (1<<CtbLog2SizeY) +3) , (737) xSb+tempMv [0] )
8.5.5.4 Derivation process for subblock-based temporal merging base motion data
The location (xColCb, yColCb) of the collocated block inside ColPic is derived as follows.
– [ [The following applies: ] ]
–  If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
yColCb = Clip3 (yCtb,  Min (SubPicBotBoundaryPos, yCtb + (1 << CtbLog2SizeY) -1) ,  (xxx)  yColCtrCb +tempMv [1] )
–  Otherwise ( subpic_treated_as_pic_flag [ SubPicIdx] is equal to 0) , the following  applies:
yColCb = Clip3 (yCtb, Min (pic_height_in_luma_samples-1, yCtb+ (1<<CtbLog2SizeY) -1) ,   (742)
yColCtrCb+tempMv [1] )
– If subpic_treated_as_pic_flag [SubPicIdx] is equal to 1, the following applies:
xColCb = Clip3 (xCtb, Min (SubPicRightBoundaryPos, xCtb+ (1<<CtbLog2SizeY) +3) , (743)
xColCtrCb+tempMv [0] )
– Otherwise (subpic_treated_as_pic_flag [SubPicIdx] is equal to o, the following applies:
xColCb = Clip3 (xCtb, Min (pic_width_in_luma_samples-1, xCtb+ (1<<CtbLog2SizeY) +3) ,     (744)
xColCtrCb+tempMv [0] )
FIG. 3 is a block diagram of a video processing apparatus 300. The apparatus 300 may be used to implement one or more of the methods described herein. The apparatus 300 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, and so on. The apparatus 300 may include one or more processors 312, one or more memories 314 and video processing hardware 316. The processor (s) 312 may be configured to implement one or more methods described in the present document. The memory (memories) 314 may be used for storing data and code used for implementing the methods and techniques described herein. The video processing hardware 316 may be used to implement, in hardware circuitry, some techniques described in the present document.
FIG. 4 is a flowchart for a method 400 of processing a video. The method 400 includes determining (402) , for a video block in a first video region of a video, whether a position at which a temporal motion vector predictor is determined for a conversion between the video block and a bitstream representation of the current video block using an affine mode is within a second video region, and performing (404) the conversion based on the determining.
The following solutions may be implemented as preferred solutions in some embodiments.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 1) .
1. A method of video processing, comprising: determining, for a video block in a first video region of a video, whether a position at which a temporal motion vector predictor is determined for a conversion between the video block and a bitstream representation of the current video block using an affine mode is within a second video region; and performing the conversion based on the determining.
2. The method of solution 1, wherein the video block is covered by the first region and the second region.
3. The method of any of solutions 1-2, wherein, in case that the position of the temporal motion vector predictor is outside of the second video region, then the temporal motion vector predictor is marked as unavailable and is unused in the conversion.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 2) .
4. A method of video processing, comprising: determining, for a video block in a first video region of a video, whether a position at which an integer sample in a reference picture is fetched for a conversion between the video block and a bitstream representation of the current video block is within a second video region, wherein the reference picture is not used in an interpolation process during the conversion; and performing the conversion based on the determining.
5. The method of solution 4, wherein the video block is covered by the first region and the second region.
6. The method of any of solutions 4-5, wherein, in case that the position of the sample is outside of the second video region, then the sample is marked as unavailable and is unused in the conversion.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 3) .
7. A method of video processing, comprising: determining, for a video block in a first video region of a video, whether a position at which a reconstructed luma sample value is fetched for a conversion between the video block and a bitstream representation of the current video block is within a second video region; and performing the conversion based on the determining.
8. The method of solution 7, wherein the luma sample is covered by the first region and the second region.
9. The method of any of solutions 7-8, wherein, in case that the position of the luma sample is outside of the second video region, then the luma sample is marked as unavailable and is unused in the conversion.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 4) .
10. A method of video processing, comprising: determining, for a video block in a first video region of a video, whether a position at which a check regarding splitting, depth derivation or split flag signaling for the video block is performed during a conversion between the video block and a bitstream representation of the current video block is within a second video region; and performing the conversion based on the determining.
11. The method of solution 10, wherein the position is covered by the first region and the second region.
12. The method of any of solutions 10-11, wherein, in case that the position is outside of the second video region, then the luma sample is marked as unavailable and is unused in the conversion.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 8) .
13. A method of video processing, comprising: performing a conversion between a video comprising one or more video pictures comprising one or more video blocks, and a coded representation of the video, wherein the coded representation complies with a coding syntax requirement that the conversion is not to use sub-picture coding/decoding and a dynamic resolution conversion coding/decoding tool or a reference picture resampling tool within a video unit.
14. The method of solution 13, wherein the video unit corresponds to a sequence of the one or more video pictures.
15. The method of any of solutions 13-14, wherein the dynamic resolution conversion coding/decoding tool comprises an adaptive resolution conversion coding/decoding tool.
16. The method of any of solutions 13-14, wherein the dynamic resolution conversion coding/decoding tool comprises a dynamic resolution conversion coding/decoding tool.
17. The method of any of solutions 13-16, wherein the coded representation indicates that the video unit complies with the coding syntax requirement.
18. The method of solution 17, wherein the coded representation indicates that the video unit uses sub-picture coding.
19. The method of solution 17, wherein the coded representation indicates that the video unit uses the dynamic resolution conversion coding/decoding tool or the reference picture resampling tool.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 10) .
20. The method of any of solutions 1-19, wherein the second video region comprises a video sub-picture and wherein boundaries of the second video region and another video region is also a boundary between two coding tree units.
21. The method of any of solutions 1-19, wherein the second video region comprises a video sub-picture and wherein boundaries of the second video region and another video region is also a boundary between two coding tree units.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 11) .
22. The method of any of solutions 1-21, wherein the first video region and the second video region have rectangular shapes.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 12) .
23. The method of any of solutions 1-22, wherein the first video region and the second video region are non-overlapping.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 13) .
24. The method of any of solutions 1-23, wherein the video picture is divided into video regions such that a pixel in the video picture is covered by one and only one video region.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 15) .
25. The method of any of solutions 1-24, wherein the video picture is split into the first video region and the second video region due to the video picture being in a specific layer of the video sequence.
The following solutions may be implemented together with additional techniques described in items listed in the previous section (e.g., item 10) .
26. A method of video processing, comprising: performing a conversion between a video comprising one or more video pictures comprising one or more video blocks, and a coded representation of the video, wherein the coded representation complies with a coding syntax  requirement that a first syntax element subpic_grid_idx [i] [j] is not larger than a second syntax element max_subpics_minus1.
27. The method of solution 26, wherein a codeword representing the first syntax element is not larger than a codeword representing the second syntax element.
28. The method of any of solutions 1-27, wherein the first video region comprises a video sub-picture.
29. The method of any of solutions 1-28, wherein the second video region comprises a video sub-picture.
30. The method of any of solutions 1 to 29, wherein the conversion comprises encoding the video into the coded representation.
31. The method of any of solutions 1 to 29, wherein the conversion comprises decoding the coded representation to generate pixel values of the video.
32. A video decoding apparatus comprising a processor configured to implement a method recited in one or more of solutions 1 to 31.
33. A video encoding apparatus comprising a processor configured to implement a method recited in one or more of solutions 1 to 31.
34. A computer program product having computer code stored thereon, the code, when executed by a processor, causes the processor to implement a method recited in any of solutions 1 to 31.
35. A method, apparatus or system described in the present document.
FIG. 13 is a block diagram showing an example video processing system 1300 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of the system 1300. The system 1300 may include input 1302 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10 bit multi-component pixel values, or may be in a compressed or encoded format. The input 1302 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interface include wired interfaces such as Ethernet, passive optical network (PON) , etc. and wireless interfaces such as Wi-Fi or cellular interfaces.
The system 1300 may include a coding component 1304 that may implement the various coding or encoding methods described in the present document. The coding component 1304 may reduce the average bitrate of video from the input 1302 to the output of the coding  component 1304 to produce a coded representation of the video. The coding techniques are therefore sometimes called video compression or video transcoding techniques. The output of the coding component 1304 may be either stored, or transmitted via a communication connected, as represented by the component 1306. The stored or communicated bitstream (or coded) representation of the video received at the input 1302 may be used by the component 1308 for generating pixel values or displayable video that is sent to a display interface 1310. The process of generating user-viewable video from the bitstream representation is sometimes called video decompression. Furthermore, while certain video processing operations are referred to as “coding” operations or tools, it will be appreciated that the coding tools or operations are used at an encoder and corresponding decoding tools or operations that reverse the results of the coding will be performed by a decoder.
Examples of a peripheral bus interface or a display interface may include universal serial bus (USB) or high definition multimedia interface (HDMI) or Displayport, and so on. Examples of storage interfaces include SATA (serial advanced technology attachment) , PCI, IDE interface, and the like. The techniques described in the present document may be embodied in various electronic devices such as mobile phones, laptops, smartphones or other devices that are capable of performing digital data processing and/or video display.
FIG. 14 is a block diagram that illustrates an example video coding system 100 that may utilize the techniques of this disclosure.
As shown in FIG. 14, video coding system 100 may include a source device 110 and a destination device 120. Source device 110 generates encoded video data which may be referred to as a video encoding device. Destination device 120 may decode the encoded video data generated by source device 110 which may be referred to as a video decoding device.
Source device 110 may include a video source 112, a video encoder 114, and an input/output (I/O) interface 116.
Video source 112 may include a source such as a video capture device, an interface to receive video data from a video content provider, and/or a computer graphics system for generating video data, or a combination of such sources. The video data may comprise one or more pictures. Video encoder 114 encodes the video data from video source 112 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded picture is a coded  representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. I/O interface 116 may include a modulator/demodulator (modem) and/or a transmitter. The encoded video data may be transmitted directly to destination device 120 via I/O interface 116 through network 130a. The encoded video data may also be stored onto a storage medium/server 130b for access by destination device 120.
Destination device 120 may include an I/O interface 126, a video decoder 124, and a display device 122.
I/O interface 126 may include a receiver and/or a modem. I/O interface 126 may acquire encoded video data from the source device 110 or the storage medium/server 130b. Video decoder 124 may decode the encoded video data. Display device 122 may display the decoded video data to a user. Display device 122 may be integrated with the destination device 120, or may be external to destination device 120 which be configured to interface with an external display device.
Video encoder 114 and video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVC) standard and other current and/or further standards.
FIG. 15 is a block diagram illustrating an example of video encoder 200, which may be video encoder 114 in the system 100 illustrated in FIG. 14.
Video encoder 200 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 15, video encoder 200 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of video encoder 200. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.
The functional components of video encoder 200 may include a partition unit 201, a predication unit 202 which may include a mode select unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.
In other examples, video encoder 200 may include more, fewer, or different functional components. In an example, predication unit 202 may include an intra block copy (IBC) unit. The IBC unit may perform predication in an IBC mode in which at least one reference picture is a picture where the current video block is located.
Furthermore, some components, such as motion estimation unit 204 and motion compensation unit 205 may be highly integrated, but are represented in the example of FIG. 5 separately for purposes of explanation.
Partition unit 201 may partition a picture into one or more video blocks. Video encoder 200 and video decoder 300 may support various video block sizes.
Mode select unit 203 may select one of the coding modes, intra or inter, e.g., based on error results, and provide the resulting intra-or inter-coded block to a residual generation unit 207 to generate residual block data and to a reconstruction unit 212 to reconstruct the encoded block for use as a reference picture. In some example, Mode select unit 203 may select a combination of intra and inter predication (CIIP) mode in which the predication is based on an inter predication signal and an intra predication signal. Mode select unit 203 may also select a resolution for a motion vector (e.g., a sub-pixel or integer pixel precision) for the block in the case of inter-predication.
To perform inter prediction on a current video block, motion estimation unit 204 may generate motion information for the current video block by comparing one or more reference frames from buffer 213 to the current video block. Motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from buffer 213 other than the picture associated with the current video block.
Motion estimation unit 204 and motion compensation unit 205 may perform different operations for a current video block, for example, depending on whether the current video block is in an I slice, a P slice, or a B slice.
In some examples, motion estimation unit 204 may perform uni-directional prediction for the current video block, and motion estimation unit 204 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. Motion estimation unit 204 may then generate a reference index that indicates the reference picture in list 0 or list 1 that contains the reference video block and a motion vector that indicates a spatial displacement between the current video block and the reference video block. Motion estimation unit 204 may output the reference index, a prediction direction indicator, and the motion vector as the motion information of the current video block. Motion compensation unit 205 may generate the predicted video block of the current block based on the reference video block indicated by the motion information of the current video block.
In other examples, motion estimation unit 204 may perform bi-directional prediction for the current video block, motion estimation unit 204 may search the reference pictures in list 0 for a reference video block for the current video block and may also search the reference pictures in list 1 for another reference video block for the current video block. Motion estimation unit 204 may then generate reference indexes that indicate the reference pictures in list 0 and list 1 containing the reference video blocks and motion vectors that indicate spatial displacements between the reference video blocks and the current video block. Motion estimation unit 204 may output the reference indexes and the motion vectors of the current video block as the motion information of the current video block. Motion compensation unit 205 may generate the predicted video block of the current video block based on the reference video blocks indicated by the motion information of the current video block.
In some examples, motion estimation unit 204 may output a full set of motion information for decoding processing of a decoder.
In some examples, motion estimation unit 204 may do not output a full set of motion information for the current video. Rather, motion estimation unit 204 may signal the motion information of the current video block with reference to the motion information of another video block. For example, motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.
In one example, motion estimation unit 204 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 300 that the current video block has the same motion information as the another video block.
In another example, motion estimation unit 204 may identify, in a syntax structure associated with the current video block, another video block and a motion vector difference (MVD) . The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 300 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.
As discussed above, video encoder 200 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 200 include advanced motion vector predication (AMVP) and merge mode signaling.
Intra prediction unit 206 may perform intra prediction on the current video block. When  intra prediction unit 206 performs intra prediction on the current video block, intra prediction unit 206 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a predicted video block and various syntax elements.
Residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by the minus sign) the predicted video block (s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks that correspond to different sample components of the samples in the current video block.
In other examples, there may be no residual data for the current video block for the current video block, for example in a skip mode, and residual generation unit 207 may not perform the subtracting operation.
Transform processing unit 208 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to a residual video block associated with the current video block.
After transform processing unit 208 generates a transform coefficient video block associated with the current video block, quantization unit 209 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values associated with the current video block.
Inverse quantization unit 210 and inverse transform unit 211 may apply inverse quantization and inverse transforms to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. Reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the predication unit 202 to produce a reconstructed video block associated with the current block for storage in the buffer 213.
After reconstruction unit 212 reconstructs the video block, loop filtering operation may be performed reduce video blocking artifacts in the video block.
Entropy encoding unit 214 may receive data from other functional components of the video encoder 200. When entropy encoding unit 214 receives the data, entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.
FIG. 16 is a block diagram illustrating an example of video decoder 300 which may be video decoder 114 in the system 100 illustrated in FIG. 14.
The video decoder 300 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 16, the video decoder 300 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of the video decoder 300. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.
In the example of FIG. 16, video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transformation unit 305, and a reconstruction unit 306 and a buffer 307. Video decoder 300 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 200 (e.g., FIG. 15) .
Entropy decoding unit 301 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data) . Entropy decoding unit 301 may decode the entropy coded video data, and from the entropy decoded video data, motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. Motion compensation unit 302 may, for example, determine such information by performing the AMVP and merge mode.
Motion compensation unit 302 may produce motion compensated blocks, possibly performing interpolation based on interpolation filters. Identifiers for interpolation filters to be used with sub-pixel precision may be included in the syntax elements.
Motion compensation unit 302 may use interpolation filters as used by video encoder 20 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. Motion compensation unit 302 may determine the interpolation filters used by video encoder 200 according to received syntax information and use the interpolation filters to produce predictive blocks.
Motion compensation unit 302 may uses some of the syntax information to determine sizes of blocks used to encode frame (s) and/or slice (s) of the encoded video sequence, partition information that describes how each macroblock of a picture of the encoded video sequence is partitioned, modes indicating how each partition is encoded, one or more reference frames (and  reference frame lists) for each inter-encoded block, and other information to decode the encoded video sequence.
Intra prediction unit 303 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. Inverse quantization unit 303 inverse quantizes, i.e., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 301. Inverse transform unit 303 applies an inverse transform.
Reconstruction unit 306 may sum the residual blocks with the corresponding prediction blocks generated by motion compensation unit 202 or intra-prediction unit 303 to form decoded blocks. If desired, a deblocking filter may also be applied to filter the decoded blocks in order to remove blockiness artifacts. The decoded video blocks are then stored in buffer 307, which provides reference blocks for subsequent motion compensation/intra predication and also produces decoded video for presentation on a display device.
FIG. 17 is a flowchart representation of a method for video processing in accordance with the present technology. The method 1700 includes, at operation 1710, determining, for a conversion between a current video block in a current picture of a video and a bitstream of the video, a manner of modifying a vertical coordinate yColSb of a collocated sub-block within a collocated picture of a current picture based on whether sub-pictures are treated as pictures. The collocated picture is one of one or more reference pictures of the current picture. The method 1700 also includes, at operation 1720, performing the conversion based on the determining.
In some embodiments, the bitstream includes a syntax element that includes a flag indicating whether subpictures are treated as pictures for the conversion. In some embodiments, in case the flag indicates that subpictures are treated as pictures for the conversion, the manner comprises clipping the vertical coordinate of the collocated sub-block for the conversion. In some embodiments, the vertical coordinate of the collocated sub-block yColSb is modified by a function Clip3 (T1, T2, yColSb) , where T1 and T2 are real numbers. In some embodiments, yColSb is determined based on ySb + tempMv [1] . ySb denotes a vertical coordinate of a base position that is either a below-right or a top-left position of a current sub-block corresponding to the collocated sub-block, and tempMv [1] is an offset determined based on a spatial neighbouring coding unit of the current video block. In some embodiments, T1 is equal to yCtb and T2 is equal to Min (SubPicBotBoundaryPos, yCtb + (1 << CtbLog2SizeY) -1) ) . yCtb denotes a vertical  coordinate of a coding tree block, SubPicBotBoundaryPos denotes a vertical coordinate of a bottom boundary of the current subpicture, and CtbLog2SizeY indicates a vertical dimension of the coding tree block. In some embodiments, SubPicBotBoundaryPos is equal to Min (pic_height_max_in_luma_samples -1, (subpic_ctu_top_left_y [SubPicIdx] +subpic_height_minus1 [SubPicIdx] + 1) *CtbSizeY -1) , where pic_height_max_in_luma_samples indicates a maximum height of the current picture, subpic_ctu_top_left_y indicates a top-left vertical position of the current sub-picture, subpic_height_minus1 indicates a height of the current sub-picture, and CtbSizeY indicates a vertical dimension of a coding tree block.
FIG. 18 is a flowchart representation of a method for video processing in accordance with the present technology. The method 1800 includes, at operation 1810, determining, for a conversion between a current picture of a video that includes at least two subpictures and a bitstream of the video, a manner of applying a filtering operation on a region covering a boundary between the two sub-pictures based on information of the two subpictures. The method 1800 also includes, at operation 1820, performing the conversion according to the determining.
In some embodiments, the filtering operation comprises an adaptive loop filtering operation or a sample adaptive offset (SAO) filtering operation. In some embodiments, the manner of applying the filtering operation on the region and a first sub-picture of the two sub-pictures is determined based on information of a second sub-picture of the two sub-pictures. In some embodiments, the filtering operation is not applied to the region in case the filtering operation is disabled across subpicture boundaries in at least one of the two subpictures. In some embodiments, the boundary is a horizontal boundary. A first subpicture is located above a second subpicture with a bottom row coordinate y0, the second subpicture has a top row coordinate y0+1, and the region comprises samples located between rows y0-M and y0+1+N, M and N being integers. In some embodiments, the boundary is a vertical boundary. A first subpicture is located to the left of a second picture with a rightmost column x0, the second subpicture has a leftmost column x0+1, and the region comprises samples located between columns x0-M and x0+1+N, M and N being integers. In some embodiments, at least M or N is determined based on a color format or a color component of the video. In some embodiments, at least M or N is a fixed number. In some embodiments, M is same as N. In some embodiments, M is different than N. In some embodiments, M and N are different for the filtering operation. In some embodiments, at least M or N is signaled in the  bitstream. In some embodiments, M is equal to a number of row or columns of samples in the first subpicture that is used to filter samples in the second subpicture. In some embodiments, N is equal to a number of row or columns of samples in the second subpicture that is used to filter samples in the first subpicture.
In some embodiments, the conversion generates the video from the bitstream. In some embodiments, the conversion generates the bitstream from the video.
In one example aspect, a method for storing bitstream of a video includes determining, for a conversion between a current video block in a current picture of a video and a bitstream of the video, a manner of modifying a vertical coordinate yColSb of a collocated sub-block within a collocated picture of a current picture based on whether sub-pictures are treated as pictures. The collocated picture is one of one or more reference pictures of the current picture. The method also includes generating the bitstream of the video from the current video block based on the determining and storing the bitstream in a non-transitory computer-readable recording medium.
In another example aspect, a method for storing bitstream of a video includes determining, for a conversion between a current picture of a video that includes at least two subpictures and a bitstream of the video, a manner of applying a filtering operation on a region covering a boundary between the two sub-pictures based on information of the two subpictures. The method also includes generating the bitstream of the video based on the determining and storing the bitstream in a non-transitory computer-readable recording medium.
Some embodiments of the disclosed technology include making a decision or determination to enable a video processing tool or mode. In an example, when the video processing tool or mode is enabled, the encoder will use or implement the tool or mode in the processing of a block of video, but may not necessarily modify the resulting bitstream based on the usage of the tool or mode. That is, a conversion from the block of video to the bitstream representation of the video will use the video processing tool or mode when it is enabled based on the decision or determination. In another example, when the video processing tool or mode is enabled, the decoder will process the bitstream with the knowledge that the bitstream has been modified based on the video processing tool or mode. That is, a conversion from the bitstream representation of the video to the block of video will be performed using the video processing tool or mode that was enabled based on the decision or determination.
Some embodiments of the disclosed technology include making a decision or  determination to disable a video processing tool or mode. In an example, when the video processing tool or mode is disabled, the encoder will not use the tool or mode in the conversion of the block of video to the bitstream representation of the video. In another example, when the video processing tool or mode is disabled, the decoder will process the bitstream with the knowledge that the bitstream has not been modified using the video processing tool or mode that was enabled based on the decision or determination.
The disclosed and other solutions, examples, embodiments, modules and the functional operations described in this document can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this document and their structural equivalents, or in combinations of one or more of them. The disclosed and other embodiments can be implemented as one or more computer program products, e.g., one or more modules of computer program instructions encoded on a computer readable medium for execution by, or to control the operation of, data processing apparatus. The computer readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter effecting a machine-readable propagated signal, or a combination of one or more them. The term “data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. A propagated signal is an artificially generated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus.
A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document) , in a single file dedicated to the program in question, or in multiple  coordinated files (e.g., files that store one or more modules, sub programs, or portions of code) . A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.
The processes and logic flows described in this document can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit) .
Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read only memory or a random-access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and CD ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
While this patent document contains many specifics, these should not be construed as limitations on the scope of any subject matter or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular techniques. Certain features that are described in this patent document in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially  claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Moreover, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.
Only a few implementations and examples are described and other implementations, enhancements and variations can be made based on what is described and illustrated in this patent document.

Claims (29)

  1. A method of video processing, comprising:
    determining, for a conversion between a current video block in a current picture of a video and a bitstream of the video, a manner of modifying a vertical coordinate yColSb of a collocated sub-block within a collocated picture of a current picture based on whether sub-pictures are treated as pictures, wherein the collocated picture is one ofone or more reference pictures of the current picture; and
    performing the conversion based on the determining.
  2. The method of claim 1, wherein the bitstream includes a syntax element that includes a flag indicating whether subpictures are treated as pictures for the conversion.
  3. The method of claim 2, wherein, in case the flag indicates that subpictures are treated as pictures for the conversion, the manner comprises clipping the vertical coordinate of the collocated sub-block for the conversion.
  4. The method of any of claims 1 to 3, wherein the vertical coordinate of the collocated sub-block yColSb is modified by a function Clip3 (T1, T2, yColSb) , where T1 and T2 are real numbers.
  5. The method of claim 4, wherein yColSb is determined based on ySb + tempMv [1] , wherein ySb denotes a vertical coordinate of a base position that is either a below-right or a top-left position of a current sub-block corresponding to the collocated sub-block, and wherein tempMv [1] is an offset determined based on a spatial neighbouring coding unit of the current video block.
  6. The method of claim 4, wherein T1 is equal to yCtb and T2 is equal to Min (SubPicBotBoundaryPos, yCtb + (1 << CtbLog2SizeY ) -1 ) ) , wherein yCtb denotes a vertical coordinate of a coding tree block, wherein SubPicBotBoundaryPos denotes a vertical  coordinate of a bottom boundary of the current subpicture, and wherein CtbLog2SizeY indicates a vertical dimension of the coding tree block.
  7. The method of claim 6, wherein SubPicBotBoundaryPos is equal to Min (pic_height_max_in_luma_samples -1, (subpic_ctu_top_left_y [SubPicIdx ] + subpic_height_minus1 [SubPicIdx ] + 1 ) *CtbSizeY -1) , wherein pic_height_max_in_luma_samples indicates a maximum height of the current picture, subpic_ctu_top_left_y indicates a top-left vertical position of the current sub-picture, subpic_height_minus1 indicates a height of the current sub-picture, and CtbSizeY indicates a vertical dimension of a coding tree block.
  8. A method of video processing, comprising:
    determining, for a conversion between a current picture of a video that includes at least two subpictures and a bitstream of the video, amanner of applying a filtering operation on a region covering a boundary between the two sub-pictures based on information of the two subpictures; and
    performing the conversion according to the determining.
  9. The method of claim 8, wherein the filtering operation comprises an adaptive loop filtering operation or a sample adaptive offset (SAO) filtering operation.
  10. The method of claim 8 or 9, wherein the manner of applying the filtering operation on the region and a first sub-picture of the two sub-pictures is determined based on information of a second sub-picture of the two sub-pictures.
  11. The method of any of claims 8 to 10, wherein the filtering operation is not applied to the region in case the filtering operation is disabled across subpicture boundaries in at least one of the two subpictures.
  12. The method of any of claims 8 to 11, wherein the boundary is a horizontal boundary, wherein a first subpicture is located above a second subpicture with a bottom row coordinate y0,  wherein the second subpicture has a top row coordinate y0+1, and wherein the region comprises samples located between rows y0-M and y0+1+N, M and N being integers.
  13. The method of any of claims 8 to 11, wherein the boundary is a vertical boundary, wherein a first subpicture is located to the left of a second picture with a rightmost column x0, wherein the second subpicture has a leftmost column x0+1, and wherein the region comprises samples located between columns x0-M and x0+1+N, M and N being integers.
  14. The method of claim 12 or 13, wherein at least M or N is determined based on a color format or a color component of the video.
  15. The method of claim 12 or 13, wherein at least M or N is a fixed number.
  16. The method of claim 12 or 13, wherein M is same as N.
  17. The method of claim 12 or 13, wherein M is different than N.
  18. The method of claim 12 or 13, wherein M and N are different for the filtering operation.
  19. The method of claim 12 or 13, wherein at least M or N is signaled in the bitstream.
  20. The method of claim 12 or 13, wherein M is equal to a number of row or columns of samples in the first subpicture that is used to filter samples in the second subpicture.
  21. The method of claim 12 or 13, wherein N is equal to a number of row or columns of samples in the second subpicture that is used to filter samples in the first subpicture.
  22. The method of any of claims 1 to 21, wherein the conversion generates the video from the bitstream.
  23. The method of any of claims 1 to 21, wherein the conversion generates the bitstream from the video.
  24. A method for storing bitstream of a video, comprising:
    determining, for a conversion between a current video block in a current picture of a video and a bitstream of the video, a manner of modifying a vertical coordinate yColSb of a collocated sub-block within a collocated picture of a current picture based on whether sub-pictures are treated as pictures, wherein the collocated picture is one of one or more reference pictures of the current picture;
    generating the bitstream of the video from the current video block based on the determining; and
    storing the bitstream in a non-transitory computer-readable recording medium.
  25. A method for storing bitstream of a video, comprising:
    determining, for a conversion between a current picture of a video that includes at least two subpictures and a bitstream of the video, a manner of applying a filtering operation on a region covering a boundary between the two sub-pictures based on information of the two subpictures;
    generating the bitstream of the video based on the determining; and
    storing the bitstream in a non-transitory computer-readable recording medium.
  26. A video processing apparatus comprising a processor configured to implement a method recited in any one or more of claims 1 to 25.
  27. A computer-readable medium having code stored thereon, the code, when executed, causing a processor to implement a method recited in any one or more of claims 1 to 25.
  28. A computer readable medium that stores a bitstream generated according to any of claims 1 to 25.
  29. A method, an apparatus, a system, or a bitstream generated according to a method described in the present document.
PCT/CN2021/071360 2020-01-13 2021-01-13 Subpicture boundary filtering in video coding WO2021143698A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202180009033.0A CN115280768A (en) 2020-01-13 2021-01-13 Sub-picture boundary filtering in video coding and decoding

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2020071863 2020-01-13
CNPCT/CN2020/071863 2020-01-13

Publications (1)

Publication Number Publication Date
WO2021143698A1 true WO2021143698A1 (en) 2021-07-22

Family

ID=76863570

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071360 WO2021143698A1 (en) 2020-01-13 2021-01-13 Subpicture boundary filtering in video coding

Country Status (2)

Country Link
CN (1) CN115280768A (en)
WO (1) WO2021143698A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105144720A (en) * 2013-01-04 2015-12-09 Ge视频压缩有限责任公司 Efficient scalable coding concept
CN105393536A (en) * 2013-06-21 2016-03-09 高通股份有限公司 Intra prediction from a predictive block using displacement vectors
CN109076218A (en) * 2016-05-16 2018-12-21 高通股份有限公司 Multiple filters in video coding in adaptive loop filter are obscured
US20190158865A1 (en) * 2008-10-06 2019-05-23 Lg Electronics Inc. Method and an apparatus for processing a video signal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190158865A1 (en) * 2008-10-06 2019-05-23 Lg Electronics Inc. Method and an apparatus for processing a video signal
CN105144720A (en) * 2013-01-04 2015-12-09 Ge视频压缩有限责任公司 Efficient scalable coding concept
CN105393536A (en) * 2013-06-21 2016-03-09 高通股份有限公司 Intra prediction from a predictive block using displacement vectors
CN109076218A (en) * 2016-05-16 2018-12-21 高通股份有限公司 Multiple filters in video coding in adaptive loop filter are obscured

Also Published As

Publication number Publication date
CN115280768A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
WO2021073630A1 (en) Syntax constraints in parameter set signaling of subpictures
WO2021027767A1 (en) Position restriction for inter coding mode
WO2021139806A1 (en) Constraints for video coding and decoding
WO2021063420A1 (en) Slice level signaling in video bitstreams that include sub-pictures
CN113841402A (en) Transform design for large blocks in video coding and decoding
WO2021052495A1 (en) Adaptive resolution change and scalable coding for screen contents
WO2021143698A1 (en) Subpicture boundary filtering in video coding
WO2021129805A1 (en) Signaling of parameters at sub-picture level in a video bitstream
CN114747217A (en) Palette encoding/decoding mode

Legal Events

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

Ref document number: 21740728

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21740728

Country of ref document: EP

Kind code of ref document: A1

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

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