Video processing method, device, and storage medium

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

Patent Information

Application Number
JP2023105749
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-12-30
Filing Date
2023-06-28
Publication Date
2024-10-02
Estimated Expiration
2040-08-24

Smart Images

  • Figure 0007560225000027
    Figure 0007560225000027
  • Figure 0007560225000028
    Figure 0007560225000028
  • Figure 0007560225000029
    Figure 0007560225000029
Patent Text Reader

Abstract

To provide a video processing method in which current pictures and reference pictures have different sizes or resolutions.SOLUTION: A method of video processing includes: making a first determination about whether a decoder-side motion vector refinement (DMVR) tool is enabled for conversion between a current block of a current picture of video and a coded representation of the video; making a second determination, on the basis of the first determination, about whether or how to clip a motion vector according to a bounding block for reference sample padding in a reference picture used for determining a prediction block for the current block according to a rule; and performing the conversion on the basis of, the first determination and the second determination. By using the DMVR tool, an encoded motion vector from the coded representation is refined prior to being used for determining the prediction block.SELECTED DRAWING: Figure 10A
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is a divisional application of Japanese Patent Application No. 2022-510080, which is a national phase application of International Patent Application No. PCT / CN2020 / 110768 filed on August 24, 2020, and claims priority to and the benefit of International Patent Application No. PCT / CN2019 / 102289 filed on August 23, 2019, International Patent Application No. PCT / CN2019 / 112820 filed on October 23, 2019, and International Patent Application No. PCT / CN2019 / 129959 filed on December 30, 2019. The entire disclosures of the aforementioned applications are incorporated by reference as part of the disclosure of this application.

[0002] Technical Field

[0002] This patent document relates to video coding and decoding.

[0003] background

[0003] Despite advances in video compression, digital video represents the largest bandwidth utilization in the Internet and other digital communications networks. It is expected that the bandwidth demands for digital video utilization will continue to increase as the number of connected user devices capable of receiving and displaying video increases. Summary of the Invention

[0004]

[0004] The devices, systems and methods relate to digital video coding, and in particular to video and image coding and decoding where the current picture and the reference pictures have different sizes or resolutions.

[0005]

[0005] In one embodiment, a video processing method is disclosed, the method comprising the steps of: making a first determination as to whether a decoder-side motion vector refinement (DMVR) tool is enabled for a conversion between a current block of a current picture of the video and a coded representation of the video; making a second determination based on the first determination as to whether or how to clip a motion vector according to a border block of a reference sample padding in a reference picture used to determine a predictive block of the current block according to a rule; and performing the conversion based on the first and second determinations, wherein an encoded motion vector from the coded representation is refined using the DMVR tool before being used to determine the predictive block.

[0006]

[0006] In another embodiment of the present invention, another video processing method is disclosed, the method including the steps of: making a first determination regarding whether reference picture wrapping is enabled for a conversion between a current block of a current picture of the video and a coded representation of the video; making a second determination based on the first determination regarding whether or how to clip a motion vector according to a border block of reference sample padding in a reference picture used to determine a predictive block for the current block according to a rule; and performing the conversion based on the first and second determinations.

[0007]

[0007] In another embodiment of the present invention, another video processing method is disclosed, the method including the steps of: making a first determination regarding whether a coding tool is enabled for converting between a current block of a current picture of a video and a coded representation of the video; making a second determination based on the first determination regarding whether or how to clip chroma or luma samples to integer positions in a reference picture used to determine a predictive block of the current block according to a rule; and performing the conversion based on the first and second determinations.

[0008]

[0008] In another embodiment of the present invention, another video processing method is disclosed, the method comprising: determining whether an integer sample clipping operation should be performed when generating a predictive block of the current block from one or more reference pictures from two reference picture lists; and performing the conversion based on the determination, the rule being based on a first size associated with the current picture and / or a second size associated with one or more reference pictures in the two reference picture lists, or whether use of decoder-side motion vector refinement (DMVR) is enabled, in which a coded motion vector in the coded representation is refined prior to generation of the predictive block.

[0009] In an embodiment of another aspect, another video processing method is disclosed, the method comprising: deriving, according to a rule, a top-left coordinate of a bounding box of a reference signal padding in a reference picture used to determine a predictive block of the current block; and performing the transformation based on the derivation, for a transformation between a video including a current picture including a current block and a coded representation of the video, the rule being based on a dimension of the current picture and a dimension of the reference picture.

[0009]

[0010] In another embodiment of the present invention, another video processing method is disclosed, the method comprising: determining whether an integer sample clipping operation should be performed when generating a prediction block of the current block from a reference picture; and performing the conversion based on the determination, the rule being based on a first size associated with the current picture and / or a second size associated with the reference picture, for conversion between a video including a current picture including a current block and a coded representation of the video.

[0010]

[0011] In yet another exemplary aspect, the methods described above are embodied in the form of code executable by a processor and stored on a computer readable program medium.

[0011]

[0012] In yet another representative aspect, a device configured or operable to perform the above-described method is disclosed. The device may include a processor programmed to implement the method.

[0012]

[0013] In yet another exemplary aspect, a video decoder device may implement the methods described herein.

[0013]

[0014] In an embodiment of another aspect, a computer-readable storage medium is disclosed, the medium including a coded representation of a video generated according to the methods described herein.

[0014]

[0015] These and other aspects and features of the disclosed technology are described in more detail in the drawings, specification and claims. [Brief description of the drawings]

[0015]

[0016] [Figure 1]The 16x16 block is divided into 16 4x4 regions.

[0017] [Figure 2A] Examples of specific locations within a video block are shown below. [Figure 2B] Examples of specific locations within a video block are shown below. [Figure 2C] Examples of specific locations within a video block are shown below.

[0018] [Diagram 3] FIG. 1 is a block diagram of an example implementation of a hardware platform for video processing.

[0019] [Figure 4] 1 is a flow chart of an example method for video processing.

[0020] [Diagram 5] Here is an example of wrap-around clipping in VVC.

[0021] [Figure 6] 1 is a block diagram of an example implementation of a video coding system.

[0022] [Figure 7] FIG. 1 is a block diagram of an example implementation of a video encoder.

[0023] [Figure 8] FIG. 1 is a block diagram of an example implementation of a video decoder.

[0024] [Figure 9A] 1 shows various tables illustrating embodiments of the disclosed technology; [Figure 9B] 1 shows various tables illustrating embodiments of the disclosed technology; [Figure 9C] 1 shows various tables illustrating embodiments of the disclosed technology; [Figure 9D] 1 shows various tables illustrating embodiments of the disclosed technology; [Figure 9E] 1 shows various tables illustrating embodiments of the disclosed technology; [Figure 9F] 1 shows various tables illustrating embodiments of the disclosed technology; [Figure 9G] 1 shows various tables illustrating embodiments of the disclosed technology; [Figure 9H] 1 shows various tables illustrating embodiments of the disclosed technology;

[0025] [Figure 10A] 1 is a flow chart of an example method for video processing. [Figure 10B] 1 is a flow chart of an example method for video processing. [Figure 10C] 1 is a flow chart of an example method for video processing. [Figure 10D] 1 is a flow chart of an example method for video processing. [Figure 10E] 1 is a flow chart of an example method for video processing. [Figure 10F] 1 is a flow chart of an example method for video processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016]

[0026] Embodiments of the disclosed technology may be applied to existing video coding standards (e.g., HEVC, H.265) and future standards to improve compression performance. Section headings are used herein to improve readability of the description, but do not in any way limit the description or embodiments (and / or implementations) to only the respective sections. Furthermore, some embodiments described herein in the context of H.265 use the corresponding section number of the current VVC Public Specification. Furthermore, the use of "..." indicates that the remainder of the current VVC Public Specification continues without further modification. 1. Introduction

[0027] This case relates to video coding technologies. Specifically, this case relates to adaptive resolution conversion in video coding, which may apply to existing video / image coding standards such as HEVC or to a standard to be finalized (Versatile Video Coding, VVC). 2. Introduction

[0028] Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T created H.261 and H.263, ISO / IEC created MPEG-1 and MPEG-4 Visual, and the two organizations jointly created H.262 / MPEG-2 Video, H.264 / MPEG-4 Advanced Video Coding (AVC), and H.265 / HEVC standards. Since H.262, video coding standards have been based on a hybrid video coding structure, in which temporal prediction and transform coding are used. In 2015, the Joint Video Exploration Team (JVET) was jointly established by VCEG and MPEG to explore future video coding technologies beyond HEVC. Since then, many new methods have been adopted by JVET and put into reference software named the Joint Exploration Model (JEM). In April 2018, the VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) jointly established the Video Experts A team (JVET) was formed and is working on the VVC standard, which aims to achieve a 50% bitrate reduction compared to HEVC.

[0017]

[0029] AVC and HEVC do not have the ability to change resolution without the need to introduce IDR or Intra Random Access Point (IRAP) pictures; such a capability can be referred to as adaptive resolution change (ARC). There are use cases and application scenarios that benefit from the ARC feature, including: - Rate adaptation in video telephony and conferencing: to adapt the coded video to changing network conditions, when network conditions worsen and the available bandwidth becomes smaller, the encoder can adapt by encoding pictures with a smaller resolution. Currently, changing the resolution of a picture can only be done after an IRAP picture; this has some problems. A reasonable quality IRAP picture will be much larger than an inter-coded picture and will be correspondingly more complex to decode: this takes time and resources. It is problematic if the resolution change is requested by the decoder for loading reasons. It may also violate the low latency buffer requirement, forcing audio resynchronization and increasing the end-to-end delay of the stream, at least temporarily. This may result in a poor user experience.

[0018] - Active speaker change in multi-party video conference: In case of multi-party video conference, it is common for the active speaker to be shown with a larger video size than the videos of the remaining conference participants. When the active speaker changes, it may require that the picture resolution of each participant be adjusted as well. The need to have ARC functionality becomes more important when such changes in active speakers are made frequently.

[0019] - Faster start of streaming: In streaming applications, it is common for the application to buffer a certain length of decoded pictures before starting to display them. Starting the bitstream at a smaller resolution allows the application to have enough pictures in the buffer to start displaying sooner.

[0020]

[0030] Adaptive Stream Switching in Streaming: The Dynamic Adaptive Streaming over HTTP (DASH) standard includes a feature named @mediaStreamStructureId, which allows switching between different representations at open GOP random access points with non-decodable leading pictures, e.g. CRA pictures with associated RASL pictures in HEVC. If two different representations of the same video have different bitrates but spatial resolutions, while they have the same value of @mediaStreamStructureId, it is possible to switch between the two representations at a CRA picture with associated RASL picture, where the switching at the CRA picture is associated with a RASL picture that can be decoded with acceptable quality, thus allowing seamless switching. With ARC, the @mediaStreamStructureId feature is also available for switching between DASH representations with different spatial resolutions.

[0021]

[0031] ARC is also known as dynamic resolution conversion.

[0022]

[0032] ARC can also be considered as a special case of Reference Picture Resampling (RPR) like H.263 Annex P. 2.1 Reference Picture Resampling in H.263 Annex P

[0033] This mode describes an algorithm to warp a reference picture before using it for prediction. This can be useful to resample a reference picture that has a different source format than the picture to be predicted. It can also be used for global motion estimation or rotational motion estimation by warping the shape, size, and position of the reference picture. The syntax includes the warping parameters that are also used for the resampling algorithm. The simplest level of operation for the reference picture resampling mode is an implicit factor of 4 resampling, since it only requires that an FIR filter be applied to the upsampling and downsampling process. In this case, no additional signaling overhead is required, since its use is understood to be the case when the size of the new picture (indicated in the picture header) is different from the size of the previous picture. 2.2 ARC's contribution to VVC

[0034] Several contributions have been proposed to address ARC, as listed below:

[0035] JVET-M0135, JVET-M0259, JVET-N0048, JVET-N0052, JVET-N0118, JVET-N0279. 2.3 ARC in JVET-O2001-v14

[0036] ARC is also known as Reference Picture Resampling (RPR), which was introduced in JVET-O2001-v14.

[0023]

[0037] In JVET-O2001-v14 RPR, TMVP is disabled if the colocated or collocated picture has a different resolution than the current picture, and BDOF and DMVR are disabled if the reference picture has a different resolution than the current picture.

[0024]

[0038] To handle normal MC when the reference picture has a different resolution than the current picture, the Interpolation section is defined as follows (section numbers refer to the current VVC standard, and italicized text indicates differences from previous versions): 8.5.6.3.1 Overview The inputs to this process are: - a luma position ( xSb, ySb ) that specifies the top-left sample of the current coding sub-block relative to the top-left luma sample of the current picture, - variable sbWidth, which specifies the width of the current coding subblock, - variable sbHeight, which specifies the height of the current coding subblock, - motion vector offset mvOffset, - refined motion vector refMvLX, - the selected reference picture sample array refPicLX, - half sample interpolation filter index hpelIfIdx, - bidirectional optical flow flag bdofFlag, - A variable cIdx that specifies the color component index of the current block The output of this process is: - predSamplesLX, a (sbWidth + brdExtSize)x(sbHeight + brdExtSize) array of predicted sample values The prediction block boundary extension size brdExtSize is derived as follows: brdExtSize = ( bdofFlag | | ( inter_affine_flag[ xSb ][ ySb ] && sps_affine_prof_enabled_flag ) ) ? 2 : 0 (8-752) The variable fRefWidth is set equal to the PicOutputWidthL of the reference picture for luma samples.

[0025] The variable fRefHeight is set equal to the PicOutputHeightL of the reference picture for luma samples.

[0026] The motion vector mvLX is set equal to (refMvLX - mvOffset).

[0027]

number

[0028] - The variable shift1 is Min(4, BitDepth Y The variable shift2 is set equal to 6, and the variable shift3 is set equal to Max( 2, 14 - BitDepth Y ).

[0029] - 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. xFrac L or yFrac L For each 1 / 16 fractional sample position p, which is equal to L [ p ] is derived as follows: - If MotionModelIdc[ xSb ][ ySb ] is greater than 0 and sbWidth and sbHeight are both equal to 4, the luma interpolation filter coefficient f L [ p ] is specified in Table 8-12.

[0030] - otherwise, the luma interpolation filter coefficient f L [ p ] depends on hpelIfIdx and is specified in Table 8-11. Luma position in full sample units (xInt i , yInt i ) for i = 0..7 is derived as follows: - 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)

[0031]

number

[0032]

number

[0039] Wrap-around clipping was proposed by JVET-L0231 to accommodate the ERP or PERP picture formats, as shown in Figure 5. This is often called reference picture wrapping.

[0033]

[0040] In JVET-P2001-v9, wrap-around clipping is specified as follows:

[0034]

number

[0041] Also, the horizontal position will be clipped depending on whether wrap-around clipping is applied. JVET-P2001-v9 specifies the following: Luma position in full sample units (xInt i , yInt i ) is 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-754) yInt i = Clip3( SubPicTopBoundaryPos, SubPicBotBoundaryPos, yInt L + i - 3 ) (8-755) - 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-756) xInt L + i - 3 ) yInt i = Clip3( 0, picH - 1, yInt L + i - 3 ) (8-757) 2.5 CCLM in VVC

[0042] As specified in JVET-P2001-v9, parameters are derived for the cross-component linear model (CCLM) prediction in VVC: 8.4.5.2.13 INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM intra prediction mode specification ... 7. The variables a, b, and k are derived as follows: - if numSampL is equal to 0 and numSampT is equal to 0, the following applies: k = 0 (8-211) a = 0 (8-212) b = 1 << ( BitDepth - 1 ) (8-213) - Otherwise the following applies: diff = maxY - minY (8-214) - If diff is not equal to 0, the following applies: diffC = maxC - minC (8-215) x = Floor( Log2( diff ) ) (8-216) normDiff = ( ( diff << 4 ) >> x ) & 15 (8-217) x += ( normDiff != 0 ) ? 1 : 0 (8-218) y = Floor( Log2( Abs ( diffC ) ) ) + 1 (8-219) a = ( diffC * ( divSigTable[ normDiff ] | 8 ) + 2 y - 1 ) >> y (8-220) k = ( ( 3 + x - y ) < 1 ) ? 1 : 3 + x - y (8-221) a = ( ( 3 + x - y ) < 1 ) ? Sign( a ) * 15 : a (8-222) b = minC - ( ( a * minY ) >> k ) (8-223) where divSigTable[ ] is defined as follows: divSigTable[ ] = { 0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0} (8-224) - Otherwise (diff is equal to 0), the following applies: k = 0 (8-225) a = 0 (8-226) b = minC (8-227) ... 2.6 Angle Prediction in VVC

[0043] Angle prediction in VVC is specified in JVET-P2001-v9 as follows: 8.4.5.2.12 INTRA_ANGULAR2..INTRA_ANGULAR66 Intra Prediction Mode Specifications The inputs to this process are: - Intra prediction mode predModeIntra, - variable refIdx that specifies the intra prediction reference line index, - Variable nTbW, which specifies the conversion block width. - variable nTbH specifying the transformation block height, - variable refW, which specifies the reference sample width - variable refH, which specifies the reference sample height, - variable nCbW, which specifies the coding block width, - variable nCbH, which specifies the coding block height, - A variable refFilterFlag that specifies the value of the reference filter flag, - variable cIdx that specifies the color components of the current block, - adjacent sample p[ x ][ y ], (x = -1- refIdx, y = -1- refIdx..refH - 1 and x = -refIdx..refW - 1, y = -1- refIdx) The output of this process is the predicted samples predSamples[x][y], where x = 0..nTbW - 1, y = 0..nTbH - 1. The variable nTbS is set equal to ( Log2 ( nTbW ) + Log2 ( nTbH ) ) >> 1. The variable filterFlag is derived as follows: - filterFlag is set equal to 0 if one or more of the following conditions are true:

[0035] - refFilterFlag is equal to 1.

[0036] - refIdx is not equal to 0.

[0037] - IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT. - Otherwise the following applies: - The variable minDistVerHor is set equal to Min(Abs(predModeIntra - 50), Abs(predModeIntra - 18)).

[0038] - The variable intraHorVerDistThres[ nTbS ] is specified in Table 8-7.

[0039] - The variable filterFlag is derived as follows: - if minDistVerHor is greater than intraHorVerDistThres[ nTbS ] and refFilterFlag is equal to 0, then filterFlag is set equal to 1.

[0040] - Otherwise, filterFlag is set equal to 0.

[0041]

number

[0042]

number

[0044] 2.8 Subpicture VVC introduces the concept of sub-pictures. A sub-picture is a rectangular region of one or more slices in a picture. A video sequence can have multiple sub-pictures. And every picture is divided into the same number of sub-pictures defined in the SPS.

[0043]

[0045]

[0044]

number

[0046] When RPR is applied to VVC, RPR (ARC) may have the following problems: 1. In RPR, the interpolation filters can be different for adjacent samples in a block, which is undesirable in Single Instruction Multiple Data (SIMD) implementations.

[0045] 2. Boundary regions do not take RPR into account.

[0046] 3. The wrap-around offset (sps_ref_wrapaund_offset_minus1) is signaled at the sequence level, but the dimensions of a picture may vary due to the RPR in the sequence.

[0047] 4. To derive the parameters of CCLM, Abs(diffC) can be equal to 0 in Log2(Abs(diffC)).

[0048] 5. intraPredAngle may be equal to 0, making invAngle meaningless.

[0049] 6. The highlighten clipping operation described in Section 2.7 (denoted as the “integer sample clipping operation”) can impair RPR motion compensation.

[0050] 7. In the current VVC, an intra (I) slice is defined as a slice that is decoded using intra prediction only. However, due to the recent trend of adopting IBC and palette mode coding in addition to intra and inter prediction, IBC / palette mode could also be applied to I slices in addition to intra prediction. Such definition needs to be revised accordingly.

[0051] 8. Subpicture specification is defined in VVC, where subpics_present_flag is signaled first, followed by sps_num_subpics_minus1. However, even if the subpicture present flag is true, the signaled sps_num_subpics_minus1 is still equal to 0, which means only one subpicture in a picture, i.e., subpicture equals picture; note that if the subpicture present flag is false, sps_num_subpics_minus1 is inferred to 0. Therefore, it is not valid to define the range of sps_num_subpics_minus1 as 0 to 254 inclusive when it is signaled.

[0047] 4. List of embodiments and technologies The following list should be considered as examples to illustrate the general concept. These items should not be interpreted in a narrow sense. Moreover, these items can be combined in any way.

[0052]

[0048] A motion vector is represented as (mv_x, mv_y), where mv_x is the horizontal component and mv_y is the vertical component. RPR Related 1. If the resolution of the reference picture is different from that of the current picture, predictions for a group of samples (at least two samples) of the current block may be generated using the same horizontal and / or vertical interpolation filter.

[0053] In one example, a group may include all samples within a region of a block.

[0054] For example, a block may be divided into S non-overlapping MxN rectangles, each of which is a group. In the example shown in Figure 1, a 16x16 block can be divided into 16 4x4 rectangles, each of which is a group.

[0055] ii. For example, a row with N samples is a group. N is an integer not greater than the width of a block. In one example, N is 4 or 8, or the block width.

[0056] iii. For example, a column with N samples is a group, where N is an integer not greater than the block height. In one example, N is 4 or 8, or the block height.

[0057] iv. M and / or N may be predetermined or may be derived on-the-fly based on block size / coded information or may be signaled.

[0058] b. In one example, samples within a group may have the same MV (denoted as shared MV).

[0059] c. In one example, samples in a group may have MVs that have the same horizontal component (denoted as a shared horizontal component).

[0060] d. In one example, samples in a group may have MVs that have the same vertical component (denoted as a shared vertical component).

[0061] e. In one example, samples within a group may have MVs that have the same fractional portion of the horizontal component (denoted as a shared fractional horizontal component).

[0062] i. For example, suppose the MV of the first sample is (MV1x, MV1y) and the MV of the second sample is (MV2x, MV2y). MV1x & (2 M -1) is MV2x & (2 M -1), where M represents the MV precision. For example, M=4.

[0063] f. In one example, samples within a group may have MVs that have the same fractional portion of a vertical component (denoted as a shared fractional vertical component).

[0064] i. For example, suppose the MV of the first sample is (MV1x, MV1y) and the MV of the second sample is (MV2x, MV2y). Then, MV1y & (2 M -1) is MV2y & (2 M -1), where M represents the MV precision. For example, M=4.

[0065] g. In one example, for samples in the predicted group, MV b The motion vector denoted by , may first be derived according to the resolutions of the current picture and the reference picture (e.g., (refxL, refyL)) derived in 8.5.6.3.1 of JVET-O2001-v14). Then, MV b may be further modified (e.g., rounded / truncate / clipped) to meet requirements such as those in the above bullets to yield MV', which is then used to derive a prediction sample for the sample.

[0066] i. In one example, MV' is MV b and the fractional part of MV' is set to be the shared horizontal and / or vertical component.

[0067] ii. In one example, MV′ has a shared horizontal and / or vertical component, and MV b is set to the closest

[0068] h. The shared motion vector (and / or shared horizontal component and / or shared vertical component and / or shared fractional horizontal component and / or shared fractional vertical component) may be set to the motion vector (and / or horizontal component and / or vertical component and / or fractional horizontal component and / or fractional vertical component) of a particular sample in the group.

[0069] i. For example, a particular sample may be at the corner of a rectangular group such as "A", "B", "C" and "D" as shown in FIG. 2A.

[0070] ii. For example, a particular sample may be at the center of a group of rectangles such as "E", "F", "G" and "H" as shown in FIG. 2A.

[0071] iii. For example, a particular sample may be at the end of a row-shaped or column-shaped group, such as "A" and "D" as shown in Figures 2B and 2C.

[0072] iv. For example, a particular sample may be in the center of a row-shaped or column-shaped group, such as "B" and "C" shown in Figures 2B and 2C.

[0073] v. In one example, the motion vector for a particular sample is the MV b may be also possible.

[0074] i. The shared motion vector (and / or shared horizontal component and / or shared vertical component and / or shared fractional horizontal component and / or shared fractional vertical component) may be set to be the motion vector (and / or horizontal component and / or vertical component and / or fractional horizontal component and / or fractional vertical component) of a virtual sample that is located at a different position compared to all samples in this group.

[0075] i. In one example, the virtual sample is not in the group, but is located in a region that covers all samples in the group.

[0076] 1) Alternatively, the virtual sample is located outside the region covering all samples in the group, for example next to the bottom right position of that region.

[0077] ii. In one example, the MVs of the virtual samples are derived in the same way as the real samples, but at different positions.

[0078] iii. "V" in Figures 2A-2C shows three examples of hypothetical samples.

[0079] j. The shared MV (and / or shared horizontal component and / or shared vertical component and / or shared fractional horizontal component and / or shared fractional vertical component) may be set to be a function of the MV (and / or horizontal component and / or vertical component and / or fractional horizontal component and / or fractional vertical component) of multiple samples and / or virtual samples.

[0080] i. For example, the shared MV (and / or shared horizontal component and / or shared vertical component and / or shared fractional horizontal component and / or shared fractional vertical component) may be set to the average of the MV (and / or horizontal component and / or vertical component and / or fractional horizontal component and / or fractional vertical component) of all or some of the samples in the group, or samples "E", "F", "G", "H" in FIG. 2A, or samples "E", "H" in FIG. 2A, or samples "A", "B", "C", "D" in FIG. 2A, or samples "A", "D" in FIG. 2A, or samples "B" and "C" in FIG. 2B, or samples "A", "D" in FIG. 2B, or samples "B" and "C" in FIG. 2C, or samples "A" and "D" in FIG. 2C.

[0081] 2. We propose that if the resolution of the reference picture is different from that of the current picture, only integer MVs are allowed to perform the motion compensation process to derive the prediction block for the current block.

[0082] In one example, the decoded motion vector for the predicted sample is rounded to an integer MV before being used.

[0083] 3. The motion vectors used in the motion compensation process for samples in the current block (e.g. shared MV / shared horizontal or vertical or fractional component / MV' mentioned in the bullet points above) are stored in the decoded picture buffer and may be used for motion vector prediction of subsequent blocks in the current / different picture.

[0084] a. Alternatively, the motion vectors (e.g., the shared MV / shared horizontal or vertical or fractional components / MV' mentioned in the bullets above) used in the motion compensation process for samples in the current block may not be allowed to be used for motion vector prediction of a subsequent block in the current / different picture.

[0085] i. In one example, the decoded motion vector (e.g., MV in the above bullet point) b ) may be utilized for motion vector prediction of subsequent blocks in the current / different picture.

[0086] b. In one example, the motion vectors used in the motion compensation process for the samples in the current block may be used in a filtering process (eg, deblocking filter / SAO / ALF).

[0087] i. Alternatively, the decoded motion vectors (e.g., MV in the above bullet point) b ) may be used in the filtering process.

[0088] 4. We propose that the interpolation filter used in the motion compensation process to derive a prediction block for the current block may be selected depending on whether the resolution of the reference picture is different from that of the current picture.

[0089] In one example, if the resolution of the reference picture is different from the current picture, the interpolation filter has fewer taps.

[0090] i. In one example, if the resolution of the reference picture is different from the current picture, bi-linear filters are applied.

[0091] ii. In one example, if the resolution of the reference picture is different from the current picture, a 4-tap filter or a 6-tap filter is applied.

[0092] 5. We propose that if the resolution of the reference picture is different from the current picture, a two-stage process for prediction block generation is applied.

[0093] a. In the first stage, depending on the width and / or height of the current picture and the reference picture, a virtual reference block is generated by up-sampling or down-sampling an area in the reference picture.

[0094] b. In the second stage, predicted samples are generated from the virtual reference block by applying interpolation filtering, independent of the width and / or height of the current picture and the reference picture.

[0095] 6. The top-left coordinate (xSbInt L , ySbInt L We propose that the calculation of ) may be derived depending on the width and / or height of the current picture and the reference picture.

[0096] In one example, the luma position in full samples is modified as follows: xInt i = Clip3( xSbInt L - Dx, xSbInt L + sbWidth + Ux, xInt i ), yInt i = Clip3( ySbInt L - Dy, ySbInt L + sbHeight + Uy, yInt i ), Here, Dx and / or Dy and / or Ux and / or Uy may depend on the width and / or height of the current picture and the reference pictures.

[0097] b. In one example, the chroma position in full samples is modified as follows: xInti = Clip3( xSbInt C - Dx, xSbInt C + sbWidth + Ux, xInti ) yInti = Clip3( ySbInt C - Dy, ySbInt C + sbHeight + Uy, yInti ) Here, Dx and / or Dy and / or Ux and / or Uy may depend on the width and / or height of the current picture and the reference pictures.

[0098] 7. (( xSbInt L , ySbInt L We propose that whether and / or how to clip the MV according to the boundary blocks for reference sample padding) may depend on the usage of DMVR.

[0099] In one example, MV is applied only if DMVR applies (e.g., xSbInt L , ySbInt L ) The MV is clipped according to the boundary blocks for reference sample padding.

[0100] i. For example, operations 8-775 and 8-776 in the luma sample interpolation filtering process as defined in JVET-O2001-v14 are applied only if DMVR is used for the current block.

[0101] ii. For example, operations 8-789 and 8-790 in the chroma sample interpolation filtering process as defined in JVET-O2001-v14 are applied only if a DMVR is used for the current block.

[0102] b. Alternatively, the above method may also be applicable to clipping of chroma samples.

[0103] 8. As specified in 8.5.6.3.1 of JVET-O2001-v14, (e.g., ( xSbInt L , ySbInt L We propose that whether and / or how to clip MVs according to border blocks for reference sample padding (such as in

[0104] In one example, MV is not used unless picture wrapping is used (e.g., xSbInt defined in 8.5.6.3.1). L , ySbInt L ) are clipped according to the boundary block for reference sample padding.

[0105] i. For example, operations 8-775 and 8-776 in the luma sample interpolation filtering process as defined in JVET-O2001-v14 are only applicable if picture wrapping is not used.

[0106] ii. For example, operations 8-789 and 8-790 in the chroma sample interpolation filtering process as defined in JVET-O2001-v14 are only applicable if picture wrapping is not used.

[0107] b. Alternatively, the above method may also be applicable to clipping of chroma samples.

[0108] c. In one example, the luma position in full sample units is modified as follows: xInt i = Clip3( xSbInt L - Dx, xSbInt L + sbWidth + Ux, xInt i ), yInt i = Clip3( ySbInt L - Dy, ySbInt L + sbHeight + Uy, yInt i ), where Dx and / or Dy and / or Ux and / or Uy may depend on whether picture wrapping is used.

[0109] d. In one example, the chroma position in full sample units is changed as follows: xInti = Clip3( xSbInt C - Dx, xSbInt C + sbWidth + Ux, xInti ) yInti = Clip3( ySbInt C - Dy, ySbInt C + sbHeight + Uy, yInti ) where Dx and / or Dy and / or Ux and / or Uy may depend on whether picture wrapping is used.

[0110] 9. Whether / how to apply a filtering process (e.g., a deblocking filter) may depend on whether the reference pictures involve different resolutions.

[0111] In one example, the deblocking filter boundary strength setting can take into account resolution differences in addition to motion vector differences.

[0112] b. In one example, the deblocking filter boundary strength setting can take into account scaled motion vector differences based on the resolution difference.

[0113] c. In one example, if the resolution of at least one reference picture for block A is different (or smaller or larger) than the resolution of at least one reference picture for block B, the strength of the deblocking filter is increased.

[0114] d. In one example, if the resolution of at least one reference picture for block A is different (or smaller or larger) than the resolution of at least one reference picture for block B, the strength of the deblocking filter is reduced.

[0115] e. In one example, if the resolution of at least one of the reference pictures for block A and / or block B is different (or smaller or larger) than the resolution of the current block, the strength of the deblocking filter is increased.

[0116] f. In one example, if the resolution of at least one of the reference pictures for block A and / or block B is different (or smaller or larger) than the resolution of the current block, the strength of the deblocking filter is reduced.

[0117] 10. Instead of storing / using motion vectors for blocks based on the same reference picture resolution as the current picture, we propose to use actual motion vectors that take into account the difference in resolution.

[0118] a. Alternatively, in the case where a motion vector is further used to generate a prediction block (e.g., derived in 8.5.6.3.1 of JVET-O2001-v14 (refx L , refy L ) according to the resolutions of the current picture and the reference pictures, there is no need to further modify the motion vectors.

[0119] 11. In one example, if a sub-picture is present, the reference picture must have the same resolution as the current picture. Alternatively, if the reference picture has a different resolution than the current picture, there need not be any sub-pictures in the current picture.

[0120] 12. In one example, sub-pictures may be defined separately for pictures having different resolutions.

[0121] 13. In one example, if a reference picture has a different resolution than the current picture, the corresponding sub-picture in the reference picture can be derived by scaling and / or offsetting the sub-picture of the current picture.

[0122] 14. Proposes that all or part of the information related to wrap-around clipping may be signaled at video units other than the sequence level, such as at the picture / view / slice / tile / brick / subpicture / CTU row level, etc.

[0123] In one example, the information may be signaled in a PPS, APS, picture header, slice header, etc.

[0124] b. For example, a syntax element (e.g., named pps_ref_wraparound_offset_minus1) may be signaled in the first PPS to indicate the offset used to calculate the horizontal wrap-around position.

[0125] i. In one example, pps_ref_wraparound_offset_minus1 may be signaled, where pps_ref_wraparound_offset_minus1 plus 1 specifies the offset used to calculate the horizontal wrap-around position, in units of MinCbSizeY luma samples, where MinCbSizeY indicates the minimum Cb size of the luma block.

[0126] ii. The range of pps_ref_wraparound_offset_minus1 may depend on which pic_width_in_luma_samples is in the first PPS. For example, the value of pps_ref_wraparound_offset_minus1 shall be in the range of (CtbSizeY / MinCbSizeY) + 1 to (pic_width_in_luma_samples / MinCbSizeY) - 1, inclusive, where pic_width_in_luma_samples is in the first PPS.

[0127] iii. In one example, the syntax element may be coded in fixed-length / truncated-unary / unary / truncated-binary / K-th EG (e.g., K=0) binarization scheme.

[0128] c. For example, a syntax element (eg, named pps_ref_wraparound_enabled_flag) may be signaled in the first PPS to indicate whether horizontal wraparound motion compensation is applied to inter prediction.

[0129] In one example, pps_ref_wraparound_enabled_flag equal to 1 specifies that horizontal wraparound motion compensation is applied to inter prediction, and pps_ref_wraparound_enabled_flag equal to 0 specifies that horizontal wraparound motion compensation is not applied.

[0130] ii. Alternatively, in addition, the syntax element may be conditionally signaled.

[0131] 1) In one example, whether to signal pps_ref_wraparound_offset_minus1 may depend on pps_ref_wraparound_enabled_flag.

[0132] a) For example, pps_ref_wraparound_offset_minus1 is signaled only if pps_ref_wraparound_enabled_flag is equal to 1.

[0133] d. In one example, the first syntax element may be signaled in a first video unit, such as at a sequence level (e.g., signaled in an SPS), and the second syntax element may be signaled in a second video unit, such as at a picture / slice level (e.g., signaled in a PPS, APS, picture header, slice header, etc.). The first syntax element and the second syntax element may have the same functionality in wrap-around clipping, but at different levels.

[0134] i. A secondary video unit may reference a primary video unit.

[0135] ii. For example, sps_ref_wraparound_offset_minus1 may be signaled in SPS and pps_ref_wraparound_offset_minus1 may be signaled in PPS.

[0136] iii. For example, sps_ref_wraparound_enabled_flag may be signaled in SPS, and pps_ref_wraparound_enabled_flag may be signaled in PPS.

[0137] iv. In one example, in a conformance bit-stream, a first syntax element should match a second syntax element.

[0138] 1) For example, in a conforming bitstream, sps_ref_wraparound_enabled_flag should be the same as pps_ref_wraparound_enabled_flag.

[0139] v. In one example, the second syntax element may depend on the first syntax element.

[0140] 1) For example, if sps_ref_wraparound_enabled_flag is equal to 0, then pps_ref_wraparound_enabled_flag shall be equal to 0.

[0141] 2) For example, if sps_ref_wraparound_enabled_flag is 1, pps_ref_wraparound_enabled_flag can be 0 or 1.

[0142] vi. In one example, the first syntax element is ignored and the second syntax element performs its function if the two syntax elements both appear.

[0143] vii. In one example, the second syntax element is ignored and the first syntax element performs its function if the two syntax elements both appear.

[0144] e. In one example, if the value of (CtbSizeY / MinCbSizeY + Offset1) is not less than or equal to (pic_width_in_luma_samples / MinCbSizeY - Offset2), the value of sps_ref_wraparound_enabled_flag shall be equal to 0, where pic_width_in_luma_samples is the value of pic_width_in_luma_samples in any PPS that references the SPS. For example, Offset1 = Offset2 = 1.

[0145] f. In one example, if the value of (CtbSizeY / MinCbSizeY + Offset1) is not less than (pic_width_in_luma_samples / MinCbSizeY - Offset2), the value of sps_ref_wraparound_enabled_flag shall be equal to 0, where pic_width_in_luma_samples is the value of pic_width_in_luma_samples in any PPS that references the SPS. For example, Offset1 = Offset2 = 1.

[0146] g. In one example, if the value of (CtbSizeY / MinCbSizeY + Offset1) is greater than or equal to (pic_width_in_luma_samples / MinCbSizeY - Offset2), the value of sps_ref_wraparound_enabled_flag shall be equal to 0, where pic_width_in_luma_samples is the value of pic_width_in_luma_sample in any PPS that references the SPS. For example, Offset1 = Offset2 = 1.

[0147] h. In one example, if the value of (CtbSizeY / MinCbSizeY + Offset1) is greater than (pic_width_in_luma_samples / MinCbSizeY - Offset2), the value of sps_ref_wraparound_enabled_flag shall be equal to 0, where pic_width_in_luma_samples is the value of pic_width_in_luma_samples in any PPS that references the SPS. For example, Offset1 = Offset2 = 1.

[0148] i. In one example, if the value of (CtbSizeY / MinCbSizeY + Offset1) is not less than or equal to (pic_width_in_luma_samples / MinCbSizeY - Offset2), where pic_width_in_luma_samples is in PPS. For example, Offset1 = Offset2 = 1.

[0149] j In one example, if the value of (CtbSizeY / MinCbSizeY + Offset1) is not less than (pic_width_in_luma_samples / MinCbSizeY - Offset2), where pic_width_in_luma_samples is in PPS. For example, Offset1 = Offset2 = 1.

[0150] k. In one example, if the value of (CtbSizeY / MinCbSizeY + Offset1) is greater than or equal to (pic_width_in_luma_samples / MinCbSizeY - Offset2), then the value of pps_ref_wraparound_enabled_flag shall be equal to 0, where pic_width_in_luma_samples is in PPS, e.g., Offset1 = Offset2 = 1.

[0151] l. In one example, if the value of (CtbSizeY / MinCbSizeY + Offset1) is greater than (pic_width_in_luma_samples / MinCbSizeY - Offset2), then pps_ref_wraparound_enabled_flag shall be equal to 0, where pic_width_in_luma_samples is in PPS, e.g., Offset1 = Offset2 = 1.

[0152] 15. We suggest that equations in Log2(X) where X is less than or equal to 0 should be avoided for deriving affine merging candidates.

[0153] For example, the procedure may be conditional on whether X is greater than 0.

[0154] b. For example, the procedure may be conditioned on whether X is equal to 0.

[0155] c. For example, instead of Log2(Height / Width), Log2(Height) - Log2(Width) is calculated.

[0156] d. Example specification changes based on JVET-P2001-v9 are as follows: 8.5.5.6 Derivation process for constructed affine control point motion vector merging candidates ...

[0157]

number

[0158] For example, a procedure may be conditional on whether X is greater than 0.

[0159] b. For example, the procedure may be conditional on whether X is equal to 0.

[0160] c. Example specification changes based on JVET-P2001-v9 are as follows: 8.4.5.2.13 Specification of the INTRA_LT_CCLM, INTRA_L_CCLM, and INTRA_T_CCLM intra prediction modes ...

[0161]

number

[0162] e. For example, the derivation of invAngle may be conditioned on whether intraPredAngle is equal to 0.

[0163] f. Example specification changes based on JVET-P2001-v9 are as follows: 8.4.5.2.12 INTRA_ANGULAR2..INTRA_ANGULAR66 Intra Prediction Mode Specifications The inputs to this process are: - Intra prediction mode predModeIntra, - variable refIdx that specifies the intra prediction reference line index, - Variable nTbW, which specifies the conversion block width. - variable nTbH, which specifies the height of the transformation block, - variable refW, which specifies the reference sample width - variable refH, which specifies the height of the reference sample, - variable nCbW, which specifies the coding block width, - variable nCbH, which specifies the height of the coding block, - A variable refFilterFlag that specifies the value of the reference filter flag, - variable cIdx that specifies the color components of the current block, - adjacent samples p[ x ][ y ], x = -1- refIdx, y = -1- refIdx..refH - 1 and x = -refIdx..refW - 1, y = -1- refIdx. The output of this process are the predicted samples predSamples[ x ][ y ], x = 0..nTbW - 1, y = 0..nTbH - 1. The variable nTbS is set equal to ( Log2 ( nTbW ) + Log2 ( nTbH ) ) >> 1. The variable filterFlag is derived as follows: - filterFlag is set equal to 0 if one or more of the following conditions are true:

[0164] - refFilterFlag is equal to 1.

[0165] - refIdx is not equal to 0.

[0166] - IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT. - Otherwise the following applies: - The variable minDistVerHor is set equal to Min(Abs(predModeIntra - 50), Abs(predModeIntra - 18)).

[0167] - The variable intraHorVerDistThres[ nTbS ] is specified in Table 8-7.

[0168] - The variable filterFlag is derived as follows: - if minDistVerHor is greater than intraHorVerDistThres[nTbS] and refFilterFlag is equal to 0, then filterFlag is set equal to 1.

[0169] Otherwise, filterFlag is set equal to 0.

[0170]

number

[0171] a. In one example, the integer sample clipping process is applied only if the width and / or height of the reference picture (or its matching window, or its scaling window) is equal to the width and / or height of the current picture (or its matching window, or its scaling window).

[0172] i. Alternatively, further, if either the width or height of the reference picture (or its adaptation window, or its scaling window) is not equal to that of the current picture (or its adaptation window, or its scaling window), the integer sample clipping process is skipped.

[0173] b. Alternatively, whether and / or how to apply integer sample clipping to the luma and / or chroma samples may depend on the horizontal and / or vertical scaling factor between the reference picture (or its adaptation window, or its scaling window) and the current picture (or its adaptation window, or its scaling window).

[0174] i. In one example, the integer sample clipping process is applied only if the horizontal and / or vertical scaling factor between the reference picture (or its adaptation window, or its scaling window) and the current picture (or its adaptation window, or its scaling window) is equal to 1.

[0175] ii. Alternatively, if the horizontal or vertical scaling factor is not equal to 1, the integer sample clipping process is skipped.

[0176] c. In one example, the horizontal integer sample clipping process is conditioned on the width of the reference picture (or its matching window, or its scaling window) and the width of the current picture (or its matching window, or its scaling window).

[0177] i. In one example, the horizontal integer sample clipping process is conditioned by a horizontal scaling factor between the reference picture (or its matching window, or its scaling window) and the current picture (or its matching window, or its scaling window).

[0178] d. In one example, the vertical integer sample clipping operation is conditioned on the height of the reference picture (or its matching window, or its scaling window) and the height of the current picture (or its matching window, or its scaling window).

[0179] i. In one example, the vertical integer sample clipping process is conditioned by a vertical scaling factor between the reference picture (or its matching window, or its scaling window) and the current picture (or its matching window, or its scaling window).

[0180] e. Example specification changes based on JVET-P2001-v9 are as follows: 8.5.6.3.2 Luma Sample Interpolation Filtering Process ... Luma position in full sample units (xInt i , yInt i ) for i = 0..7 is derived as follows: - If subpic_treated_as_pic_flag[ SubPicIdx ] is equal to 1, the following applies: xInt i = Clip3( SubPicLeftBoundaryPos, SubPicRightBoundaryPos, xInt L + i - 3 ) (8-754) yInt i = Clip3( SubPicTopBoundaryPos, SubPicBotBoundaryPos, yInt L + i - 3 ) (8-755) - 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 ) : xInt L + i - 3 ) yInt i = Clip3( 0, picH - 1, yInt L + i - 3 ) If hori_scale_fp is equal to (1<<14) and vert_scale_fp is equal to (1<<14), the luma position in full sample units is further modified as follows for i=0..7: xInt i = Clip3( xSbInt L - 3, xSbInt L + sbWidth + 4, xInt i ) yInt i = Clip3( ySbInt L - 3, ySbInt L + sbHeight + 4, yInt i ) Predicted luma sample value predSampleLX L is derived as follows: - xFrac L and yFrac L If both are equal to 0 and both hori_scale_fp and vert_scale_fp are less than 20481, predSampleLX L The value of is derived as follows: predSampleLX L =refPicLX L [ xInt3][ yInt3] << shift3 ... 8.5.6.3.4 Chroma Sample Interpolation Process ... If hori_scale_fp is equal to (1<<14) and vert_scale_fp is equal to (1<<14), the chroma position in full sample units ( xInt i , yInt i ) is further modified for i=0..3 as follows: xInt i= Clip3( xSbIntC - 1, xSbIntC + sbWidth + 2, xInt i ) (8-774) yInt i = Clip3( ySbIntC - 1, ySbIntC + sbHeight + 2, yInt i ) (8-775) ... f. Example specification changes based on JVET-P2001-v9 are as follows: 8.5.6.3.2 Luma Sample Interpolation Filtering Process ... Luma position in full sample units (xInt i , yInt i ) is 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-754) yInt i = Clip3( SubPicTopBoundaryPos, SubPicBotBoundaryPos, yInt L + i - 3 ) (8-755) - 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 ): xInt L + i - 3 ) yInt i = Clip3( 0, picH - 1, yInt L + i - 3 ) The luma position in full sample units is further modified for i=0..7 as follows: If hori_scale_fp is equal to (1<<14) and vert_scale_fp is equal to (1<<14): xInt i = Clip3( xSbInt L - 3, xSbInt L + sbWidth + 4, xInt i ) If hori_scale_fp is equal to (1<<14) and vert_scale_fp is equal to (1<<14): yInt i = Clip3( ySbInt L - 3, ySbInt L + sbHeight + 4, yInt i ) Predicted luma sample value predSampleLX L is derived as follows: - xFrac L and yFrac L If both are equal to 0 and both hori_scale_fp and vert_scale_fp are less than 20481, predSampleLX L The value of is derived as follows: predSampleLX L =refPicLX L [ xInt3][ yInt3] << shift3 ... 8.5.6.3.4 Chroma Sample Interpolation Process ... Chroma position in full samples (xInt i , yInt i) is further modified for i=0..3 as follows: If hori_scale_fp is equal to (1<<14) and vert_scale_fp is equal to (1<<14): xInt i = Clip3( xSbIntC - 1, xSbIntC + sbWidth + 2, xInt i ) (8-774) If hori_scale_fp is equal to (1<<14) and vert_scale_fp is equal to (1<<14): yInt i = Clip3( ySbIntC - 1, ySbIntC + sbHeight + 2, yInt i ) (8-775) ... g. In one example, whether to apply integer sample clipping operations may depend on the widths and / or heights of the reference pictures (or their adaptation windows, or their scaling windows) of the two reference lists and the width and / or height of the current picture (or their adaptation windows, or their scaling windows).

[0181] i. In one example, the integer sample clipping process is applied only if the width and / or height of all reference pictures (e.g., from reference list 0, or from reference list 1, or both) used by the current block (or its adaptation window, or its scaling window) are equal to the width and / or height of the current picture (or its adaptation window, or its scaling window).

[0182] 1) Alternatively, furthermore, if either the width or height of the reference picture (e.g. from Reference List 0 or from Reference List 1) used by the current block (or its adaptation window, or its scaling window) is not equal to that of the current picture (or its adaptation window, or its scaling window), the integer sample clipping operation is skipped.

[0183] h. Example specification changes based on JVET-P2001-v14 are as follows: 8.5.6.3.2 Luma Sample Interpolation Filtering Process The inputs to this process are: - Luma position in full sample units (xInt L , yInt L ), ... If RefPicIsScaled

[0000] [ refIdxL0 ] is equal to 0 and RefPicIsScaled

[0001] [ refIdxL1 ] is equal to 0, The luma position in full sample units is further modified for i=0..7 as follows: xInt i = Clip3( xSbInt L - 3, xSbInt L + sbWidth + 4, xInt i ) (959) yInt i = Clip3( ySbInt L - 3, ySbInt L + sbHeight + 4, yInt i ) (960) Predicted luma sample value predSampleLX L is derived as follows: ... 8.5.6.3.4 Chroma Sample Interpolation The inputs to this process are: - Chroma position in full samples (xInt C , yInt C ), ... If RefPicIsScaled

[0000]

refIdxL0

[0001]

refIdxL1

[0184] j. Example specification changes based on JVET-P2001-v14 are as follows: 8.5.6.3.2 Luma Sample Interpolation Filtering Process The inputs to this process are: - Luma position in full sample units (xInt L , yInt L ), ... If dmvrFlag is 1, the luma position in full sample units is further modified as follows for i=0..7: xInt i = Clip3( xSbInt L - 3, xSbInt L + sbWidth + 4, xInt i ) (959) yInt i = Clip3( ySbInt L - 3, ySbInt L + sbHeight + 4, yInti ) (960) Predicted luma sample value predSampleLX L is derived as follows: ... 8.5.6.3.4 Chroma Sample Interpolation The inputs to this process are: - Chroma position in full samples (xInt C , yInt C ), ... If dmvrFlag is 1, the chroma position in full sample units ( xInt i , yInt i ) is further modified for i=0..3 as follows: xInt i = Clip3( xSbIntC - 1, xSbIntC + sbWidth + 2, xInt i ) (975) yInt i = Clip3( ySbIntC - 1, ySbIntC + sbHeight + 2, yInt i ) (976) Predicted luma sample value predSampleLX C is derived as follows: ... 19. Whether and / or how integer sample clipping operations are applied to luma and / or chroma samples may depend on whether coding tool X is applied (e.g., X is decoder-side motion vector refinement (DMVR)).

[0185] In one example, integer sample clipping is applied only if coding tool X is applied.

[0186] b. In one example, integer sample clipping is applied only if coding tool X is not applied. GEO Related 20. Which angles / distances are acceptable for use in GEO may depend on the decoded information (e.g. syntax elements, block dimensions).

[0187] In one example, what angles / distances can be used in GEO may depend on the block dimensions.

[0188] i. In one example, one set of angles / distances may be used for block dimension A (e.g., A may indicate a block that has a height that is greater than its width), while another set of angles / distances may be used for block dimension B (e.g., B may indicate a block that has a height that is not greater than its width).

[0189] b. In one example, how to map a GEO mode index to an angle / distance index may depend on the decoded information (e.g., associated syntax elements, block dimensions).

[0190] c. In one example, how to map a decoded / signaled GEO mode index to a GEO mode index used to derive a GEO angle / distance index may depend on the decoded information (e.g., associated syntax elements, block dimensions).

[0191] d. In one example, how to map the decoded / signaled GEO mode index to a GEO angle / distance index may depend on the decoded information (e.g., associated syntax elements, block dimensions).

[0192] An example specification change based on JVET-Q0160_CE4_1_CommonBaseWD_w_fixes is as follows, where newly added text is shown in underlined bold font, and deleted text is marked by surrounding it with square brackets [[ ]]: 8.5.7 Decoding process for geo inter-block 8.5.7.1 Overview This process is invoked when decoding a coding unit that has MergeGeoFlag[xCb][yCb] equal to 1.

[0193] The inputs to this process are: - a luma position ( xCb, yCb ) that specifies the top-left sample of the current coding block relative to the top-left luma sample of the current picture. - variable cbWidth, which specifies the width of the current coding block of luma samples, - variable cbHeigh, which specifies the height of the current coding block in luma samples, - luma motion vectors mvA and mvB at 1 / 16 fractional-sample accuracy, - Chroma and motion vectors mvCA and mvCB, - reference indices refIdxA and refIdxB, - Prediction list flags predListFlagA and predListFlagB. The output of this process is: - predSamples, a (cbWidth)x(cbHeight) array of luma prediction samples L , - predSamples, a (cbWidth / SubWidthC) x (cbHeight / SubHeightC) array of chroma prediction samples for component Cb Cb , - A (cbWidth / SubWidthC)x(cbHeight / SubHeightC) array predSamples of chroma prediction samples for component Cr. Cr . predSamplesLA L and predSamplesLB L Let predSamplesLA be a (cbWidth)x(cbHeight) array of predicted luma sample values. Cb , predSamplesLB Cb , predSamplesLA Cr and predSamplesLB Cr Let be a (cbWidth / SubWidthC)x(cbHeight / SubHeightC) array of predicted chroma sample values.

[0194] predSamples L , predSamples Cb and predSamples Cr is derived in the following ordered steps: 1. For N, each of A and B, the following applies: - refPicLN, an ordered 2D array of luma samples L and two ordered 2D arrays of chroma samples, refPicLN Cb and refPicLN Cr A reference picture consisting of X and refIdxN is derived by invoking the process specified in clause 8.5.6.2 with X set equal to predListFlagN and refIdxX set equal to refIdxN as input.

[0195] - Array predSamplesLN Lperforms the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), luma coding block width sbWidth set equal to cbWidth, luma coding block height sbHeight set equal to cbHeight, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvN, and motion vector refPicLN L The reference sequence refPicLX, which was set equal to L The input is derived by invoking the following: RefPicScale[ predListFlagN ][ refIdxN ] with the variable bdofFlag set equal to FALSE, the variable cIdx set equal to 0, and RefPicScale[ predListFlagN ][ refIdxN ].

[0196] - Array predSamplesLN Cb performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), coding block width sbWidth set equal to cbWidth / SubWidthC, coding block height sbHeight set equal to cbHeight / SubHeightC, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvN, and refPicLN Cb The reference sequence refPicLX, which was set equal to Cb It is derived by invoking as input the following: a variable bdofFlag set equal to FALSE, a variable cIdx set equal to 1, and RefPicScale[ predListFlagN ][ refIdxN ].

[0197] - Array predSamplesLN Crperforms the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), coding block width sbWidth set equal to cbWidth / SubWidthC, coding block height sbHeight set equal to cbHeight / SubHeightC, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvCN, and refPicLN Cr The reference sequence refPicLX, which was set equal to Cr The input is derived by invoking the following: RefPicScale[ predListFlagN ][ refIdxN ]; a variable bdofFlag set equal to FALSE; a variable cIdx set equal to 2; and RefPicScale[ predListFlagN ][ refIdxN ].

[0198] 2. The partition angle and distance in the merge geo mode variables angleIdx and distanceIdx are set according to Table 36 using the value of merge_geo_partition_idx[xCb][yCb] and the variable isNarrowBlk set equal to cbHeight > cbWidth as input.

[0199]

number

[0200] 5. Prediction samples predSamples in the current chroma component Cb coding block Cb [ x C ][ y C ](x C = 0..cbWidth / SubWidthC - 1 and y C cbHeight / SubHeightC - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with the coding block width nCbW set equal to cbWidth / SubWidthC, the coding block height nCbH set equal to cbHeight / SubHeightC, and the sample array predSamplesLA Cb and predSamplesLB Cb It is derived by invoking the variables angleIdx and distanceIdx, and cIdx equal to 1, as input.

[0201] 6. Prediction samples predSamples in the coding block of the current chroma component Cr Cr [ x C ][ y C ](x C = 0..cbWidth / SubWidthC - 1 and y C cbHeight / SubHeightC - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with coding block width nCbW set equal to cbWidth / SubWidthC, coding block height nCbH set equal to cbHeight / SubHeightC, and sample array predSamplesLA Cr and predSamplesLB CrIt is derived by invoking as input the variables angleIdx and distanceIdx, and cIdx equal to 2.

[0202] 7. The motion vector storage process for geo merge mode as specified in clause 8.5.7.3 is invoked with the luma coding block position (xCb, yCb), luma coding block width cbWidth, luma coding block height cbHeight, partition orientation angleIdx and distanceIdx, luma motion vectors mvA and mvB, reference indices refIdxA and refIdxB, and prediction list flags predListFlagA and predListFlagB as inputs.

[0203] Table 36 - Specification of angleIdx and distanceIdx values ​​based on merge_geo_partition_idx values

[0049] 9A and 9B show an exemplary embodiment of table 36. FIG.

[0204] i. Another exemplary specification change based on JVET-Q0160_CE4_1_CommonBaseWD_w_fixes is as follows: 8.5.6 Geo Inter-Block Decoding Process 8.5.7.1 Overview This process is invoked when decoding a coding unit that has MergeGeoFlag[xCb][yCb] equal to 1.

[0205] The inputs to this process are: - a luma position ( xCb, yCb ) that specifies the top-left sample of the current coding block relative to the top-left luma sample of the current picture. - variable cbWidth, which specifies the width of the current coding block of luma samples, - variable cbHeigh, which specifies the height of the current coding block in luma samples, - luma motion vectors mvA and mvB at 1 / 16 fractional-sample accuracy, - Chroma motion vectors mvCA and mvCB, - reference indices refIdxA and refIdxB, - Prediction list flags predListFlagA and predListFlagB. The output of this process is: - predSamples, a (cbWidth)x(cbHeight) array of luma prediction samples L , - predSamples, a (cbWidth / SubWidthC) x (cbHeight / SubHeightC) array of chroma prediction samples for component Cb Cb , - predSamples, a (cbWidth / SubWidthC) x (cbHeight / SubHeightC) array of chroma prediction samples for component Cr Cr . predSamplesLA L and predSamplesLB L Let predSamplesLA be a (cbWidth)x(cbHeight) array of predicted luma sample values. Cb , predSamplesLB Cb , predSamplesLA Cr and predSamplesLB Cr Let be a (cbWidth / SubWidthC)x(cbHeight / SubHeightC) array of predicted chroma sample values.

[0206] predSamples L , predSamples Cb and predSamples Cr is derived in the following ordered steps: 1. For N, each of A and B, the following applies: - refPicLN, an ordered 2D array of luma samples L and two ordered 2D arrays of chroma samples, refPicLN Cb and refPicLN Cr A reference picture consisting of X and refIdxN is derived by invoking the process specified in clause 8.5.6.2 with X set equal to predListFlagN and refIdxX set equal to refIdxN as input.

[0207] - Array predSamplesLN L performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), luma coding block width sbWidth set equal to cbWidth, luma coding block height sbHeight set equal to cbHeight, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvN, and motion vector refPicLN L The reference sequence refPicLX, which was set equal to L The input is derived by invoking the following: RefPicScale[ predListFlagN ][ refIdxN ] with the variable bdofFlag set equal to FALSE, the variable cIdx set equal to 0, and RefPicScale[ predListFlagN ][ refIdxN ].

[0208] - Array predSamplesLN Cb performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), coding block width sbWidth set equal to cbWidth / SubWidthC, coding block height sbHeight set equal to cbHeight / SubHeightC, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvCN, and refPicLNCb The reference sequence refPicLX, which was set equal to Cb It is derived by invoking as input the following: a variable bdofFlag set equal to FALSE, a variable cIdx set equal to 1, and RefPicScale[ predListFlagN ][ refIdxN ].

[0209] - Array predSamplesLN Cr performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), coding block width sbWidth set equal to cbWidth / SubWidthC, coding block height sbHeight set equal to cbHeight / SubHeightC, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvCN, and refPicLN Cr The reference sequence refPicLX, which was set equal to Cr The input is derived by invoking the following: RefPicScale[ predListFlagN ][ refIdxN ]; a variable bdofFlag set equal to FALSE; a variable cIdx set equal to 2; and RefPicScale[ predListFlagN ][ refIdxN ].

[0210] 2. The partition angle and distance in the merge geo mode variables angleIdx and distanceIdx are set according to Table 36 using the value of merge_geo_partition_idx[xCb][yCb] and the variable isNarrowBlk set equal to cbHeight > cbWidth as input.

[0211]

number

[0212] 5. Prediction samples predSamples in the current chroma component Cb coding block Cb [ x C ][ y C ](x C = 0..cbWidth / SubWidthC - 1 and y C cbHeight / SubHeightC - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with the coding block width nCbW set equal to cbWidth / SubWidthC, the coding block height nCbH set equal to cbHeight / SubHeightC, and the sample array predSamplesLA Cb and predSamplesLB Cb It is derived by invoking the variables angleIdx and distanceIdx, and cIdx equal to 1, as input.

[0213] 6. Prediction samples predSamples in the coding block of the current chroma component Cr Cr [ x C ][ y C ](x C = 0..cbWidth / SubWidthC - 1 and y CcbHeight / SubHeightC - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with coding block width nCbW set equal to cbWidth / SubWidthC, coding block height nCbH set equal to cbHeight / SubHeightC, and sample array predSamplesLA Cr and predSamplesLB Cr It is derived by invoking as input the variables angleIdx and distanceIdx, and cIdx equal to 2.

[0214] 7. The merge geo mode motion vector storage process as specified in clause 8.5.7.3 is invoked with the luma coding block position (xCb, yCb), luma coding block width cbWidth, luma coding block height cbHeight, partition orientation angleIdx and distanceIdx, luma motion vectors mvA and mvB, reference indices refIdxA and refIdxB, and prediction list flags predListFlagA and predListFlagB as inputs. Table 36 - Specification of angleIdx and distanceIdx values ​​based on merge_geo_partition_idx values

[0050] 9C and 9D show an exemplary embodiment of table 36. FIG.

[0215] f. Another exemplary specification change based on JVET-Q0160_CE4_1_CommonBaseWD_w_fixes is as follows: 8.5.7 Geo inter-block decoding process 8.5.7.1 Overview This process is invoked when decoding a coding unit that has MergeGeoFlag[xCb][yCb] equal to 1.

[0216] The inputs to this process are: - a luma position ( xCb, yCb ) that specifies the top-left sample of the current coding block relative to the top-left luma sample of the current picture. - variable cbWidth, which specifies the width of the current coding block of luma samples, - variable cbHeigh, which specifies the height of the current coding block in luma samples, - luma motion vectors mvA and mvB at 1 / 16 fractional-sample accuracy, - Chroma motion vectors mvCA and mvCB, - reference indices refIdxA and refIdxB, - Prediction list flags predListFlagA and predListFlagB. The output of this process is: - predSamples, a (cbWidth)x(cbHeight) array of luma prediction samples L , - predSamples, a (cbWidth / SubWidthC) x (cbHeight / SubHeightC) array of chroma prediction samples for component Cb Cb , - predSamples, a (cbWidth / SubWidthC) x (cbHeight / SubHeightC) array of chroma prediction samples for component Cr Cr . predSamplesLA L and predSamplesLB L Let predSamplesLA be a (cbWidth)x(cbHeight) array of predicted luma sample values. Cb , predSamplesLB Cb , predSamplesLA Cr and predSamplesLB CrLet be a (cbWidth / SubWidthC)x(cbHeight / SubHeightC) array of predicted chroma sample values. predSamples L , predSamples Cb and predSamples Cr is derived in the following ordered steps: 1. For N, each of A and B, the following applies: - refPicLN, an ordered 2D array of luma samples L and two ordered 2D arrays of chroma samples, refPicLN Cb and refPicLN Cr A reference picture consisting of X and refIdxN is derived by invoking the process specified in clause 8.5.6.2 with X set equal to predListFlagN and refIdxX set equal to refIdxN as input.

[0217] - Array predSamplesLN L performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), luma coding block width sbWidth set equal to cbWidth, luma coding block height sbHeight set equal to cbHeight, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvN, and motion vector refPicLN L The reference sequence refPicLX, which was set equal to L The input is derived by invoking the following: RefPicScale[ predListFlagN ][ refIdxN ] with the variable bdofFlag set equal to FALSE, the variable cIdx set equal to 0, and RefPicScale[ predListFlagN ][ refIdxN ].

[0218] - Array predSamplesLN Cbperforms the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), coding block width sbWidth set equal to cbWidth / SubWidthC, coding block height sbHeight set equal to cbHeight / SubHeightC, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvCN, and refPicLN Cb The reference sequence refPicLX, which was set equal to Cb It is derived by invoking as input the following: a variable bdofFlag set equal to FALSE, a variable cIdx set equal to 1, and RefPicScale[ predListFlagN ][ refIdxN ].

[0219] - Array predSamplesLN Cr performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), coding block width sbWidth set equal to cbWidth / SubWidthC, coding block height sbHeight set equal to cbHeight / SubHeightC, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvCN, and refPicLN Cr The reference sequence refPicLX, which was set equal to Cr The input is derived by invoking the following: RefPicScale[ predListFlagN ][ refIdxN ]; a variable bdofFlag set equal to FALSE; a variable cIdx set equal to 2; and RefPicScale[ predListFlagN ][ refIdxN ].

[0220] 2. The partition angle and distance in the merge geo mode variables angleIdx and distanceIdx are set according to Table 36 using the value of merge_geo_partition_idx[xCb][yCb] and the variable isNarrowBlk set equal to cbHeight > cbWidth as input.

[0221]

number

[0222] 5. Prediction samples in the current luma coding block, predSamples L [ x L ][ y L ](x L = 0..cbWidth - 1 and y L cbHeight - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with coding block width nCbW set equal to cbWidth, coding block height nCbH set equal to cbHeight, and sample array predSamplesLA L and predSamplesLB L It is derived by invoking as input the variables angleIdx and distanceIdx, and cIdx equal to 0.

[0223] 6. Prediction samples predSamples in the current chroma component Cb coding block Cb [ x C ][ y C ](x C = 0..cbWidth / SubWidthC - 1 and y CcbHeight / SubHeightC - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with the coding block width nCbW set equal to cbWidth / SubWidthC, the coding block height nCbH set equal to cbHeight / SubHeightC, and the sample array predSamplesLA Cb and predSamplesLB Cb It is derived by invoking the variables angleIdx and distanceIdx, and cIdx equal to 1, as input.

[0224] 7. Prediction samples predSamples in the coding block of the current chroma component Cr Cr [ x C ][ y C ](x C = 0..cbWidth / SubWidthC - 1 and y C cbHeight / SubHeightC - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with coding block width nCbW set equal to cbWidth / SubWidthC, coding block height nCbH set equal to cbHeight / SubHeightC, and sample array predSamplesLA Cr and predSamplesLB Cr It is derived by invoking as input the variables angleIdx and distanceIdx, and cIdx equal to 2.

[0225] 8. The merge geo mode motion vector storage process as specified in clause 8.5.7.3 is invoked with the luma coding block position (xCb, yCb), luma coding block width cbWidth, luma coding block height cbHeight, partition orientation angleIdx and distanceIdx, luma motion vectors mvA and mvB, reference indices refIdxA and refIdxB, and prediction list flags predListFlagA and predListFlagB as inputs.

[0226]

[0051] FIG. 9E shows this embodiment of table xx - a mapping table of values ​​of geo_partition_idx' based on values ​​of geo_partition_idx.

[0227]

[0052] FIG. 9F illustrates this embodiment of Table 36—specification of the values ​​of angleIdx and distanceIdx based on the value of merge_geo_partition_idx.

[0228] g. Another exemplary specification change based on JVET-Q0160_CE4_1_CommonBaseWD_w_fixes is as follows: 8.5.7 Geo inter-block decoding process 8.5.7.1 Overview This process is invoked when decoding a coding unit that has MergeGeoFlag[xCb][yCb] equal to 1.

[0229] The inputs to this process are: - a luma position ( xCb, yCb ) that specifies the top-left sample of the current coding block relative to the top-left luma sample of the current picture. - variable cbWidth, which specifies the width of the current coding block of luma samples, - variable cbHeigh, which specifies the height of the current coding block in luma samples, - luma motion vectors mvA and mvB at 1 / 16 fractional-sample accuracy, - Chroma motion vectors mvCA and mvCB, - reference indices refIdxA and refIdxB, - Prediction list flags predListFlagA and predListFlagB. The output of this process is: - predSamples, a (cbWidth)x(cbHeight) array of luma prediction samples L , - predSamples, a (cbWidth / SubWidthC) x (cbHeight / SubHeightC) array of chroma prediction samples for component Cb Cb , - predSamples, a (cbWidth / SubWidthC) x (cbHeight / SubHeightC) array of chroma prediction samples for component Cr Cr . predSamplesLA L and predSamplesLB L Let predSamplesLA be a (cbWidth)x(cbHeight) array of predicted luma sample values. Cb , predSamplesLB Cb , predSamplesLA Cr and predSamplesLB Cr Let be a (cbWidth / SubWidthC)x(cbHeight / SubHeightC) array of predicted chroma sample values. predSamples L , predSamples Cb and predSamples Cr is derived in the following ordered steps: 1. For N, each of A and B, the following applies: - refPicLN, an ordered 2D array of luma samples L and two ordered 2D arrays of chroma samples, refPicLN Cb and refPicLN Cr A reference picture consisting of X and refIdxN is derived by invoking the process specified in clause 8.5.6.2 with X set equal to predListFlagN and refIdxX set equal to refIdxN as input.

[0230] - Array predSamplesLN L performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), luma coding block width sbWidth set equal to cbWidth, luma coding block height sbHeight set equal to cbHeight, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvN, and motion vector refPicLN L The reference sequence refPicLX, which was set equal to L The input is derived by invoking the following: RefPicScale[ predListFlagN ][ refIdxN ] with the variable bdofFlag set equal to FALSE, the variable cIdx set equal to 0, and RefPicScale[ predListFlagN ][ refIdxN ].

[0231] - Array predSamplesLN Cb performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), coding block width sbWidth set equal to cbWidth / SubWidthC, coding block height sbHeight set equal to cbHeight / SubHeightC, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvCN, and refPicLN CbThe reference sequence refPicLX, which was set equal to Cb It is derived by invoking as input the following: a variable bdofFlag set equal to FALSE, a variable cIdx set equal to 1, and RefPicScale[ predListFlagN ][ refIdxN ].

[0232] - Array predSamplesLN Cr performs the fractional sample interpolation process as specified in Clause 8.5.6.3 on luma position ( xCb, yCb ), coding block width sbWidth set equal to cbWidth / SubWidthC, coding block height sbHeight set equal to cbHeight / SubHeightC, motion vector offset mvOffset set equal to (0, 0), motion vector mvLX set equal to mvCN, and refPicLN Cr The reference sequence refPicLX, which was set equal to Cr The input is derived by invoking the following: RefPicScale[ predListFlagN ][ refIdxN ]; a variable bdofFlag set equal to FALSE; a variable cIdx set equal to 2; and RefPicScale[ predListFlagN ][ refIdxN ].

[0233] 2. The partition angle and distance in the merge geo mode variables angleIdx and distanceIdx are set according to Table 36 using the value of merge_geo_partition_idx[xCb][yCb] and the variable isNarrowBlk set equal to cbHeight > cbWidth as input.

[0234]

number

[0235] 5. Prediction samples in the current luma coding block, predSamples L [ x L ][ y L ](x L = 0..cbWidth - 1 and y L cbHeight - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with coding block width nCbW set equal to cbWidth, coding block height nCbH set equal to cbHeight, and sample array predSamplesLA L and predSamplesLB L It is derived by invoking as input the variables angleIdx and distanceIdx, and cIdx equal to 0.

[0236] 6. Prediction samples predSamples in the current chroma component Cb coding block Cb [ x C ][ y C ](x C = 0..cbWidth / SubWidthC - 1 and y C cbHeight / SubHeightC - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with the coding block width nCbW set equal to cbWidth / SubWidthC, the coding block height nCbH set equal to cbHeight / SubHeightC, and the sample array predSamplesLA Cb and predSamplesLB Cb It is derived by invoking the variables angleIdx and distanceIdx, and cIdx equal to 1, as input.

[0237] 7. Prediction samples predSamples in the coding block of the current chroma component Cr Cr [ xC ][ y C ](x C = 0..cbWidth / SubWidthC - 1 and y C cbHeight / SubHeightC - 1) performs the weighted sample prediction process for the geo-merge mode specified in Clause 8.5.7.2 with coding block width nCbW set equal to cbWidth / SubWidthC, coding block height nCbH set equal to cbHeight / SubHeightC, and sample array predSamplesLA Cr and predSamplesLB Cr It is derived by invoking as input the variables angleIdx and distanceIdx, and cIdx equal to 2.

[0238] 8. The merge geo mode motion vector storage process as specified in clause 8.5.7.3 is invoked with the luma coding block position (xCb, yCb), luma coding block width cbWidth, luma coding block height cbHeight, partition orientation angleIdx and distanceIdx, luma motion vectors mvA and mvB, reference indices refIdxA and refIdxB, and prediction list flags predListFlagA and predListFlagB as inputs.

[0239]

[0053] FIG. 9G shows an example of this table xx - a mapping table of values ​​of geo_partition_idx' based on values ​​of geo_partition_idx.

[0240]

[0054] FIG. 9H shows the specification of the values ​​of angleIdx and distanceIdx based on the values ​​of table 36-merge_geo_partition_idx. High Level Syntax Definition of Intra Slice / Picture 21. Instead of defining an intra (I) slice (or picture) as a slice that is decoded using only intra prediction, we propose to define an intra slice as a slice (or picture) that is decoded without inter prediction.

[0241] a. Alternatively, we propose to define an intra slice as a slice that is decoded without reference to any picture other than the picture that contains the slice.

[0242] b. Alternatively, we propose to define an intra slice as a slice that is decoded using intra prediction or intra block copy (IBC) prediction or palette prediction mode.

[0243] 22. We propose to define an intra picture as a slice that is decoded without using inter prediction.

[0244] c. Alternatively, we propose to define a picture slice as a picture that is decoded without reference to any picture other than the picture that contains the slice.

[0245] d. Alternatively, we propose to define an intra picture as a picture that is decoded using intra prediction or intra block copy (IBC) prediction or palette prediction mode.

[0246]

number

[0055] FIG. 3 is a block diagram of a video processing device 300. The device 300 may be used to implement one or more of the methods described herein. The device 300 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 300 may include one or more processors 302, one or more memories 304, and video processing hardware 306. The processor 302 may be configured to implement one or more of the methods described herein. The memories 304 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 306 may be used to implement some of the techniques described herein in a hardware circuit. In some embodiments, the hardware 306 may be at least partially included in the processor 302, such as a graphics co-processor.

[0247]

[0056] FIG. 4 is a block diagram illustrating an example video coding system 100 that can employ the techniques of this disclosure.

[0248]

[0057] 6, video coding system 100 may include a source device 110 and a destination device 120. Source device 110 may generate encoded video data and may be referred to as a video encoding device. Destination device 120 may decode the encoded video data generated by source device 110 and may be referred to as a video decoding device.

[0249]

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

[0250]

[0059] The video source 112 may include a source such as a video capture device, an interface for receiving video data from a video content provider, and / or a computer graphics system for generating video data, or a combination of such sources. The video data may include one or more pictures. The video encoder 114 encodes the video data from the 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 a coded picture and associated data. A coded picture is a coded representation of a picture. The associated data may include a sequence parameter set, a picture parameter set, and other syntax structures. The I / O interface 116 may include a modulator / demodulator (modem) and / or a transmitter. The coded video data may be transmitted directly to the destination device 120 via the I / O interface 116 over the network 130a. The coded video data may also be stored on a storage medium / server 130b for access by the destination device 120.

[0251]

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

[0252]

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

[0253]

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

[0254]

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

[0255]

[0064] Video encoder 200 may be configured to perform any or all of the techniques described in this disclosure. In the example of FIG. 7, video encoder 200 includes multiple functional components. The techniques described in this disclosure may be shared among 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.

[0256]

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

[0257]

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

[0258]

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

[0259]

[0068] The partition unit 201 can partition the current picture into one or more video blocks. The video encoder 200 and the video decoder 300 can support a variety of video block sizes.

[0260]

[0069] The mode selection unit 203 selects one of the coding modes, inter or intra, based on, for example, an error result, and provides the resulting intra-coded or inter-coded block to the residual generation unit 207 for residual block data generation and to the reconstruction unit 212 for reconstruction of the coded block to be used as a reference picture. In some examples, the mode selection unit 203 may select a combination of intra and inter predication (CIIP) mode, in which prediction is based on an inter prediction signal and an intra prediction signal. The mode selection unit 203 may also select the resolution of the motion vector for the block (e.g., sub-pixel or integer pixel accuracy) in the case of inter prediction.

[0261]

[0070] To perform inter prediction with respect to the 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 with 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 (i.e., reference pictures) from buffer 213 other than the picture associated with the current video block.

[0262]

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

[0263]

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

[0264]

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

[0265]

[0074] In some examples, motion estimation unit 204 does not output a complete set of motion information for the current video, such as to entropy encoding unit 214. Rather, motion estimation unit 204 may signal the motion information of the current video block by reference to motion information of other video blocks. 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.

[0266]

[0075] In one example, motion estimation unit 204 may specify a value in a syntax structure associated with a current video block that indicates to video decoder 300 that the current video block has the same motion information as another video block.

[0267]

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

[0268]

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

[0269]

[0078] Intra prediction unit 206 may perform intra prediction on the current video block. If 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 the video block to be predicted and various syntax elements.

[0270]

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

[0271]

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

[0272]

[0081] 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 related to the current video block.

[0273]

[0082] 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 a quantization parameter (QP) value associated with the current video block.

[0274]

[0083] Inverse quantization unit 210 and inverse transform unit 211 may apply inverse quantization and inverse transform, respectively, to the transform coefficient video block 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 prediction unit to generate a reconstructed video block related to the current block, which may be stored in buffer 213.

[0275]

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

[0276]

[0085] The entropy encoding unit 214 may receive data from other functional components of the video encoder 200. Once the entropy encoding unit 214 receives the data, the entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream including the entropy encoded data.

[0277]

[0086] FIG. 8 is a block diagram illustrating an example of a video decoder 300, which may be the video decoder 114 in the system 100 shown in FIG. 6. The video decoder 300 may be configured to perform any or all of the techniques of this disclosure. In the example of FIG. 8, the video decoder 300 includes multiple functional components. The techniques described in this disclosure may be shared among various components of the video decoder 300. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0278]

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

[0279]

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

[0280]

[0089] Motion compensation unit 302 may use the motion vectors and / or MVD received in the bitstream to identify a prediction video block in a reference picture in buffer 307.

[0281]

[0090] The motion compensation unit 302 performs interpolation, possibly based on an interpolation filter, to generate a motion compensated block. An identifier of the interpolation filter used for motion estimation with sub-pixel accuracy may be included in the syntax element.

[0282]

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

[0283]

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

[0284]

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

[0285]

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

[0286]

[0095] The following solution may be implemented as a preferred solution in some embodiments.

[0287]

[0096] The following solutions may be implemented in conjunction with additional techniques described in items listed in the sections above (e.g., item 1).

[0288]

[0097] 1. A video processing method (e.g., method 400 shown in FIG. 4): determining (402) for a conversion between a current block of a video and a coded representation of said video that a current picture containing the current block and a reference picture used for said conversion have different resolutions; and performing (404) the transformation based on the determination such that predicted values ​​of the group of samples of the current block are generated using horizontal and vertical interpolation filters; The method includes:

[0289]

[0098] 2. In the method of Solution 1, the group of samples corresponds to all samples of the current block.

[0290]

[0099] 3. In the method of Solution 1, the group of samples corresponds to a portion of samples of the current block.

[0291]

[0100] 4. In the method of Solution 3, the group of samples corresponds to all samples of a region of the current block.

[0292]

[0101] 5. In any of solutions 1-4, the groups of samples are selected such that the same motion vector (MV) is used during transformation.

[0293]

[0102] 6. In any of Solutions 1-4, the groups of samples have the same horizontal motion vector component.

[0294]

[0103] 7. In any of solutions 1-4, the groups of samples have the same vertical motion vector component.

[0295]

[0104] 8. In any of Solutions 1-4, the groups of samples have the same fractional horizontal motion vector component portions.

[0296]

[0105] 9. In any of Solutions 1-4, the groups of samples have the same fractional vertical motion vector component portions.

[0297]

[0106] 10. In any of the methods of Solutions 1-9, a motion vector for a particular sample is derived during transformation by modifying the value of a motion vector derived based on the resolution of the current picture and the resolution of the reference picture through a modification step including truncation, clipping, or rounding.

[0298]

[0107] 11. In any of Solutions 1-7, during the transformation the motion vector of a particular sample is set to the value of a shared motion vector that is shared by all samples in the group of samples.

[0299]

[0108] 12. Any of Solutions 1-9, wherein the group of samples share a shared motion vector during the transformation, the shared motion vector being derived from a motion vector of one or more samples within the group of samples.

[0300]

[0109] 13. In the method of solution 11, the shared motion vector is further derived from virtual samples.

[0301]

[0110] The following solutions may be implemented in conjunction with additional techniques described in items listed in the sections above (e.g., item 5).

[0302]

[0111] 14. A video processing method comprising: For conversion between a current block of a video and a coded representation of the video, determining that a current picture containing the current block and a reference picture used for the conversion have different resolutions; and performing the transform based on the determination such that predicted values ​​of a group of samples of the current block are generated as an interpolated version of a virtual reference block generated by sample-rate changing a region in the reference picture; wherein the sample rate change depends on a height or a width of the current picture or the reference picture.

[0303]

[0112] 15. A method according to solution 14, wherein the interpolated version is generated using an interpolation filter, the coefficients of which do not depend on the height or width of the current picture or the reference picture.

[0304]

[0113] The following solutions may be implemented in conjunction with additional techniques described in items listed in the sections above (e.g., item 6).

[0305]

[0114] 16. A video processing method comprising: For conversion between a current block of a video and a coded representation of the video, determining that a current picture containing the current block and a reference picture used for the conversion have different resolutions; and deriving a top-left coordinate of a border block of a reference sample padding based on the determination based on a scheme that depends on a height or width of the current picture and the reference picture; and performing said transformation using the derived top-left coordinate of the bounding box; The method includes:

[0306]

[0115] 17. The method of solution 16, wherein the scheme includes calculating luma samples at integer sample positions as follows: xInt i = Clip3( xSbInt L - Dx, xSbInt L + sbWidth + Ux, xInt i ), yInt i = Clip3( ySbInt L - Dy, ySbInt L + sbHeight + Uy, yInt i ),

[0116] where Dx and / or Dy and / or Ux and / or Uy depend on the width and / or height of the current picture or the reference picture, (xSbInt L , ySbInt L ) is the top left coordinate.

[0307]

[0117] 18. In the method of solution 3, the scheme includes calculating chroma samples at integer sample positions as follows: xInti = Clip3( xSbInt C - Dx, xSbInt C + sbWidth + Ux, xInti ) yInti = Clip3( ySbInt C - Dy, ySbInt C + sbHeight + Uy, yInti )

[0118] where Dx and / or Dy and / or Ux and / or Uy depend on the width and / or height of the current picture or the reference picture, (xSbInt L , ySbInt L ) is the top left coordinate.

[0308]

[0119] The following solutions may be implemented in conjunction with additional techniques described in items listed in the sections above (e.g., item 7).

[0309]

[0120] 19. A video processing method comprising: determining, during conversion of the current block, a clipping operation to be applied to a motion vector calculation according to a border block of a reference sample padding based on the use of a decoder-side motion vector refinement (DMVR); performing the conversion based on the clipping operation; The method includes:

[0310]

[0121] 20. The method of solution 19, wherein the determining step enables legacy clipping processing due to the DMVR being used for the current block.

[0311]

[0122] 21. In any of the methods of solutions 19-20, the current block is a chroma block.

[0312]

[0123] The following solutions may be implemented in conjunction with additional techniques described in items listed in the sections above (e.g., item 8).

[0313]

[0124] 22. A video processing method comprising: determining, for a transformation between a current block of a current picture of a video and a coded representation of said video, a clipping operation to be used for motion vector calculation according to a border block of a reference sample padding based on the use of picture wrapping in said transformation; and performing the conversion based on the clipping operation; The method includes:

[0314]

[0125] 23. In the method of solution 22, the determining step enables legacy clipping processing only if the picture wrapping is disabled for the current block.

[0315]

[0126] 24. In any of the methods of solutions 22-23, the current block is a chroma block.

[0316]

[0127] 25. In any of the methods of Solutions 22-23, the clipping process is used to calculate luma samples as follows: xInt i = Clip3( xSbInt L - Dx, xSbInt L + sbWidth + Ux, xInt i ), yInt i = Clip3( ySbInt L - Dy, ySbInt L + sbHeight + Uy, yInt i ),

[0128] where Dx and / or Dy and / or Ux and / or Uy depend on the picture wrapping used, (xSbInt L , ySbInt L ) indicates a border block.

[0317]

[0129] 26. In any of the methods of solutions 1-25, the converting includes encoding the video into the coded representation.

[0318]

[0130] 27. Any of Solutions 1-25, wherein the converting comprises decoding the coded representation to generate pixel values ​​of the video.

[0319]

[0131] 28. A video decoding device including a processor configured to perform the methods described in one or more of Solutions 1-27.

[0320]

[0132] 29. A video encoding device including a processor configured to perform the methods described in one or more of Solutions 1-27.

[0321]

[0133] 30. A computer program product storing computer code which, when executed by a processor, causes the processor to perform a method as described in any of Solutions 1-27.

[0322]

[0134] 31. Any method, apparatus, or system described herein.

[0323]

[0135] Various examples of preferred embodiments according to the disclosed technology are described below. In these examples, video encoding or decoding based on various rules is described. These rules relate, for example, to certain conditions under which (and only under) clipping operations may be used to ensure that motion vectors point to actual samples within a reference frame, rather than pointing outside the reference frame.

[0324]

[0136] The following solutions may be implemented in conjunction with additional techniques described in items listed in the sections above (e.g., item 7).

[0325]

[0137] 1. A video processing method (e.g., method 1000 shown in FIG. 10A ): making a first determination as to whether a decoder-side motion vector refinement (DMVR) tool is enabled for transforming between a current block of a current picture of a video and a coded representation of the video (1002); making a second decision based on the first decision as to whether or how to clip a motion vector according to a border block of a reference sample padding in a reference picture used to determine a prediction block of the current block according to a rule (1004); and performing the conversion based on the first determination and the second determination (1006); wherein an encoded motion vector from the coded representation is refined using the DMVR tool before being used to determine the predictive block.

[0326]

[0138] 2. In the method of Example 1, the rule specifies that the motion vector is clipped according to the boundary blocks if the DMVR tool is enabled for the current block, and otherwise, the motion vector is not clipped according to the boundary blocks if the DMVR tool is disabled for the current block.

[0327]

[0139] 3. In any of the methods of embodiments 1-2, if the DMVR tool is enabled for the current block, (xInt i ,yInt i ), luma samples at integer sample positions denoted as xInt i = Clip3 (xSbInt L - 3, xSbInt L + sbWidth + 4, xInt i ) yInt i = Clip3( ySbInt L - 3, ySbInt L + sbHeight + 4, yInt i ) Here, (xSbInt L, ySbInt L ) is the top-left coordinate, sbWidth and sbHeight are the width and height of the current block, and the function Clip3() is defined as follows:

[0328]

number

[0140] 4. In any of the methods of embodiments 1-2, if the DMVR tool is enabled for the current block, (xInt i ,yInt i ) are clipped using clipping as follows: xInt i = Clip3 (xSbInt C - 3, xSbInt L + sbWidth + 4, xInt i ) yInt i = Clip3( ySbInt C - 3, ySbInt L + sbHeight + 4, yInt i ) Here, (xSbInt C, ySbInt C ) is the top-left coordinate, sbWidth and sbHeight are the width and height of the current block, and the function Clip3() is defined as follows:

[0329]

number

[0141] 5. In any of the methods of embodiments 1-4, a syntax element indicating whether the DMVR is enabled is included in the coded expression.

[0330]

[0142] The following embodiments may be implemented in conjunction with additional techniques described in the items listed in the sections above (eg, item 8).

[0143] 6. A video processing method (e.g., the method shown in FIG. 10B ): making a first determination as to whether reference picture wrapping is enabled for transforming between a current block of a current picture of a video and a coded representation of the video (1012); making a second decision based on the first decision as to whether or how to clip a motion vector according to a border block of a reference sample padding in a reference picture used to determine a prediction block of the current block according to a rule (1014); and performing the conversion based on the first determination and the second determination (1016); The method includes:

[0331]

[0144] 7. In the method of Example 6, the rule specifies that the motion vector is clipped according to the boundary blocks if reference picture wrapping is enabled for the current block, and otherwise is not clipped according to the boundary blocks if reference picture wrapping is not available for the current block.

[0332]

[0145] 8. In any of the methods of Examples 6-7, (xInt i ,yInt i ), luma samples at integer sample positions denoted as xInt i = Clip3 (xSbInt L - 3, xSbInt L + sbWidth + 4, xInt i ) yInt i = Clip3( ySbInt L - 3, ySbInt L + sbHeight + 4, yInt i ) Here, (xSbInt L, ySbIntL ) is the top-left coordinate, sbWidth and sbHeight are the width and height of the current block, and the function Clip3() is defined as follows:

[0333]

number

[0146] 9. In any of the methods of Examples 6-7, (xInt i ,yInt i ) are clipped using clipping as follows: xInt i = Clip3 (xSbInt C - 3, xSbInt L + sbWidth + 4, xInt i ) yInt i = Clip3( ySbInt C - 3, ySbInt L + sbHeight + 4, yInt i ) Here, (xSbInt C, ySbInt C ) is the top-left coordinate, sbWidth and sbHeight are the width and height of the current block, and the function Clip3() is defined as follows:

[0334]

number

[0147] 10. In any of the methods of embodiments 6-9, a syntax element indicating whether the reference picture wrapping is enabled for the current block is included in the coded representation.

[0335]

[0148] 11. In any of the methods of embodiments 6-10, a motion vector pointing outside the boundary block is wrapped to point to a reference sample inside the boundary block using reference picture wrapping.

[0336]

[0149] The following embodiments may be implemented in conjunction with additional techniques described in the items listed in the sections above (eg, item 19).

[0337]

[0150] 12. A video processing method (e.g., method 1020 shown in FIG. 10C ): making a first determination as to whether a coding tool is enabled for converting between a current block of a current picture of a video and a coded representation of the video (1022); making a second decision based on the first decision as to whether or how to clip chroma or luma samples to integer positions in a reference picture used to determine a prediction block of the current block according to a rule (1024); and performing the conversion based on the first determination and the second determination (1026); The method includes:

[0338]

[0151] 13. In the method of example 12, the coding tool includes a decoder-side motion vector refinement tool, in which a coded motion vector in the coded representation is refined before determining a predictive block for the current block.

[0339]

[0152] 14. In any of the methods of Examples 12-13, the rule specifies that the luma or chroma sample positions are clipped if the coding tool is enabled for the current block, and are not clipped otherwise if the coding tool is disabled for the current block.

[0340]

[0153] 15. In any of the methods of Examples 12-13, the rule specifies that the luma or chroma sample positions are clipped if the coding tool is disabled for the current block, and are not clipped otherwise if the coding tool is enabled for the current block.

[0341]

[0154] The following embodiments may be implemented in conjunction with additional techniques described in the items listed in the section above (eg, item 18(g)).

[0342]

[0155] 16. A video processing method (e.g., method 1030 shown in FIG. 10D ): determining whether an integer sample clipping operation should be performed when generating a prediction block of the current block from one or more reference pictures from two reference picture lists for conversion between a video including a current picture including the current block and a coded representation of the video (1032); and performing the conversion based on the determination (1034); wherein rules are based on a first size associated with the current picture and / or a second size associated with the one or more reference pictures in the two reference picture lists, or whether use of decoder-side motion vector refinement (DMVR) is enabled, in which coded motion vectors in the coded representation are refined prior to generation of the predictive block.

[0343]

[0156] 17. The method of example 16, wherein the first size corresponds to a size of the current picture, or a size of a conformance window of the current picture, or a size of a scaling window of the current picture.

[0344]

[0157] 18. In any of the methods of Examples 16-17, the second size corresponds to a size of one or more reference pictures in the two reference picture lists, or a size of a conformance window of the one or more reference pictures in the two reference picture lists, or a size of a scaling window of the one or more reference pictures in the two reference picture lists.

[0345]

[0158] 19. The method of any one of Examples 16-18, wherein the integer sample clipping process is performed when the first size and the second size are equal; and The rule specifies that if the first size and the second size are not equal, then the integer sample clipping process is disabled.

[0346]

[0159] 20. The method of any of Examples 16-18, wherein the integer sample clipping process is performed if the first size and the second size are not equal; and The rule specifies that if the first size and the second size are equal, then the integer sample clipping operation is disabled.

[0347]

[0160] 21. In any of the methods of embodiments 16-18, the first size and the second size are related by a scaling factor, and a syntax field indicating the scaling factor is included in the coded representation.

[0348]

[0161] 22. In the method of example 16, a syntax field indicating that the DMVR is enabled is included in the coded representation.

[0349]

[0162] 23. The method of example 22, wherein the syntax field is a flag.

[0350]

[0163] The following embodiments may be implemented in conjunction with additional techniques described in the items listed in the sections above (eg, item 6).

[0351]

[0164] 24. A video processing method (e.g., method 1040 shown in FIG. 10E), comprising: deriving (1042) a top-left coordinate of a bounding box of a reference signal padding in a reference picture used to determine a predictive block of the current block according to a rule for conversion between a video including a current picture that includes the current block and a coded representation of the video; and performing the transformation based on the derivation (1044); wherein the rule is based on a dimension of the current picture and a dimension of the reference picture.

[0352]

[0165] 25. The method of example 24, wherein the rule is i , yInt i ) specifies the values ​​Dx, Dy, Ux or Uy used to determine the luma sample at integer sample positions denoted as: xInt i = Clip3( xSbInt L - Dx, xSbInt L + sbWidth + Ux, xInt i ), yInt i = Clip3( ySbInt L - Dy, ySbInt L + sbHeight + Uy, yInt i ), Here, (xSbInt L, ySbInt L ) are the top-left coordinates, sbWidth and sbHeight are the width and height of the current block, and the function Clip3() is defined as follows:

[0353]

number

[0166] 26. The method of example 24, wherein the rule is i , yInt i ) specifies the values ​​Dx, Dy, Ux, or Uy used to determine the chroma samples at integer sample positions denoted as: xInt i = Clip3( xSbInt C - Dx, xSbInt C + sbWidth + Ux, xInt i ) yInt i = Clip3( ySbInt C - Dy, ySbInt C + sbHeight + Uy, yInt i ) Here, (xSbInt L, ySbIntL ) are the top-left coordinates, sbWidth and sbHeight are the width and height of the current block, and the function Clip3() is defined as follows:

[0354]

number

[0167] The following embodiments may be implemented in conjunction with additional techniques described in the items listed in the sections above (eg, item 18).

[0355]

[0168] 27. A video processing method (e.g., method 1050 shown in FIG. 10F), comprising: determining whether an integer sample clipping operation should be performed when generating a prediction block of the current block from a reference picture for conversion between a video including a current picture including the current block and a coded representation of the video (1052); and performing the conversion based on the determination (1054); wherein the rule is based on a first size associated with the current picture and / or a second size associated with the reference picture.

[0356]

[0169] 28. The method of example 27, wherein the first size corresponds to a size of the current picture, or a size of a conformance window of the current picture, or a size of a scaling window of the current picture.

[0357]

[0170] 29. In any of the methods of embodiments 27-29, the second size associated with the reference picture corresponds to the size of the reference picture, or the size of a conformance window of the reference picture, or the size of a scaling window of the reference picture.

[0358]

[0171] 30. The method of any of Examples 27-29, wherein the integer sample clipping process is performed when the first size and the second size are equal; and The rule specifies that if the first size and the second size are not equal, then the integer sample clipping process is disabled.

[0359]

[0172] 31. The method of any of Examples 27-29, wherein the integer sample clipping process is performed when the first size and the second size are not equal; and The rule specifies that if the first size and the second size are equal, then the integer sample clipping operation is disabled.

[0360]

[0173] 32. A method according to any of Examples 27-29, wherein the first size and the second size are related by a scaling factor between the current picture and the reference picture.

[0361]

[0174] 33. The method of Example 32, wherein the rule specifies that the integer sample clipping process is used if and only if the scaling factor is equal to one.

[0362]

[0175] 34. In the method of Example 32, the rule specifies that the integer sample clipping process is used if and only if the scaling factor is not equal to one.

[0363]

[0176] 35. In any of the methods of Examples 27-29, the first size relative to the current picture and the second size relative to the reference picture are widths, and the rule specifies that integer sample clipping operations are used horizontally.

[0364]

[0177] 36. In the method of example 35, the first size associated with the current picture and the second size associated with the reference picture are related by a horizontal scaling factor, and the rule specifies that an integer sample clipping operation is used in the horizontal direction.

[0365]

[0178] 37. In any of the methods of Examples 27-29, the first size relative to the current picture and the second size relative to the reference picture are heights, and the rule specifies that integer sample clipping operations are used in the vertical direction.

[0366]

[0179] 38. In the method of example 37, the first size associated with the current picture and the second size associated with the reference picture are related by a vertical scaling factor, and the rule specifies that an integer sample clipping operation is used in the vertical direction.

[0367]

[0180] 39. The method of any of Examples 35-38, wherein syntax fields included in the coded representation indicate floating point representations of the horizontal scaling factor and the vertical scaling factor.

[0368]

[0181] 40. The method of example 39, wherein the horizontal scaling factor and the vertical scaling factor are equal to (1<<14), where << is a left bit shift operation.

[0369]

[0182] 41. The method of any of Examples 1-40, wherein the converting includes encoding the video into the coded representation.

[0370]

[0183] 42. A method according to any of Examples 1-40, wherein the converting includes decoding the coded representation to generate pixel values ​​for the video.

[0371]

[0184] 43. A video decoding device including a processor configured to perform the method recited in one or more of Examples 1-42.

[0372]

[0185] 44. A video encoding device including a processor configured to perform the method described in one or more of Examples 1-42.

[0373]

[0186] 45. A computer program product having computer code stored thereon, the code, when executed by a processor, causing the processor to perform a method as recited in any of Examples 1-42.

[0374]

[0187] 46. ​​A non-transitory computer-readable storage medium storing instructions that cause a processor to perform the method described in any of Examples 1-42.

[0188] 47. A non-transitory computer-readable storage medium storing a bitstream corresponding to the coded representation generated by the method described in any of Examples 1-42.

[0189] 48. Any method, apparatus, or system described herein.

[0375]

[0190] In the above solutions, performing a transformation involves utilizing the results of a previous decision step during the encoding or decoding process to arrive at a transformation result.

[0376]

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

[0377]

[0192] Some embodiments of the disclosed technology, such as the above solutions and examples, include making a judgment or decision to enable a video processing tool or mode. In one example, when a video processing tool or mode is enabled, the encoder will use or execute the tool or mode in processing blocks of video, but may not necessarily modify the resulting bitstream based on the use of the tool or mode. That is, the conversion of blocks of video to a bitstream representation of video will use the video processing tool or mode if it is enabled based on the judgment or decision. In another example, when a video processing tool or mode is enabled, the decoder will process the bitstream with information that the bitstream has been modified based on the video processing tool or mode. That is, the conversion of a bitstream representation of video to blocks of video will be performed using the video processing tool or mode that is enabled based on the judgment or decision.

[0378]

[0193] Some embodiments of the disclosed techniques include making a judgment or decision to disable a video processing tool or mode. In one example, when a video processing tool or mode is disabled, an encoder will not use the tool or mode in converting blocks of video to a bitstream representation of the video. In another example, when a video processing tool or mode is disabled, a decoder will process the bitstream with information that the bitstream has not been modified using the video processing tool or mode that was disabled based on the judgment or decision.

[0379]

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

[0380]

[0195] A computer program (also known as a program, software, software application, script, 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 several coordinated files (e.g., a file that stores one or more modules, subprograms, or portions of code). A computer program can be deployed to run on one computer or on several computers, which can be located at one site or distributed across several sites and interconnected by a communication network.

[0381]

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

[0382]

[0197] Processors suitable for executing computer programs include, for example, both general purpose and special purpose microprocessors, and any one or more processors of any kind of digital computer. Typically, 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 executing instructions and one or more memory devices for storing instructions and data. Typically, a computer also includes one or more mass storage devices for storing data, such as magnetic, magnetic-optical, or optical disks, or is operatively coupled to receive data from them, transfer data to them, or both. However, it is not required that a computer have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as 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.

[0383]

[0198] While this patent document contains many details, these should not be construed as limitations on any subject matter or the scope of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of a particular technology. Certain features described in this patent document in the context of separate embodiments may also be implemented in a single embodiment in combination. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as acting in a particular combination, or even initially claimed as such, one or more features in a claimed combination may, in some cases, be carved out of the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.

[0384]

[0199] Similarly, although acts are described in a particular order in the figures, this should not be understood as requiring that such acts be performed in the particular order or sequence shown, or that all of the acts illustrated be performed, to achieve desired results.Furthermore, the division of various system components in the embodiments described in this patent document should not be understood as requiring such division in all embodiments.

[0385]

[0200] Only a few implementations and examples have been described; other implementations, extensions and variations are possible based on what is described and illustrated in this patent document.

Claims

1. 13. A method of video processing comprising: making a first determination as to whether a decoder-side motion vector refinement tool is enabled for conversion between a current block of a current picture of a video and a bitstream of the video; making a second decision based on the first decision on whether to clip samples at integer sample positions according to a boundary block of a reference sample padding in a reference picture used to determine a prediction block of the current block, the samples at the integer sample positions being in the reference picture and obtained according to a first motion vector of the current block; and performing the conversion based on the second determination; if the decoder-side motion vector refinement tool is enabled for the current block, then luma samples at the integer sample positions denoted as (xInti, yInti) are clipped according to xSbIntL-3 and ySbIntL-3; A method according to claim 1, wherein (xSbIntL, ySbIntL) specifies a top-left sample of the border block relative to a top-left luma sample of the reference picture.

2. 2. The method of claim 1, wherein the samples at the integer sample positions are clipped according to the boundary blocks if the decoder-side motion vector refinement tool is enabled for the current block.

3. 3. The method of claim 1, wherein if the decoder-side motion vector refinement tool is enabled for the current block, then chroma samples at the integer sample position denoted as (xInti, yInti) are clipped according to xSbIntC-1 and ySbIntC-1; A method according to claim 1, wherein (xSbIntC, ySbIntC) specifies a top-left sample of the border block relative to a top-left chroma sample of the reference picture.

4. The method of any one of claims 1-3, wherein the first motion vector is refined by the decoder-side motion vector refinement tool.

5. The method of claim 1 , wherein (xSbIntL, ySbIntL) is determined based on a second motion vector that is not refined by the decoder-side motion vector refinement tool.

6. The method according to any one of claims 1 to 5, further comprising: making a third determination as to whether reference picture wrapping is enabled for the transform; performing the conversion based on the third determination; wherein the manner in which the samples are clipped at the integer sample positions is based on whether reference picture wrapping is enabled for the transform.

7. 7. The method of claim 6, wherein a syntax element is included in the bitstream that indicates whether the reference picture wrapping is enabled.

8. 8. The method according to claim 6 or 7, wherein the second decision is used for a first clipping of the samples at integer sample positions, The method of claim 1, wherein the third decision is used for a second clipping of the samples at integer sample positions.

9. The method according to any one of claims 1 to 8, further comprising: The method, wherein the transforming includes encoding the current block into the bitstream.

10. The method according to any one of claims 1 to 8, further comprising: The method, wherein the converting includes decoding the current block from the bitstream.

11. 1. A video data processing apparatus comprising a processor and a non-transitory memory having instructions that, when executed by the processor, cause the processor to: making a first determination as to whether a decoder-side motion vector refinement tool is enabled for conversion between a current block of a current picture of a video and a bitstream of the video; making a second decision based on the first decision on whether to clip samples at integer sample positions according to a boundary block of a reference sample padding in a reference picture used to determine a prediction block of the current block, the samples at the integer sample positions being in the reference picture and obtained according to a first motion vector of the current block; and performing the conversion based on the second determination; wherein, if the decoder-side motion vector refinement tool is enabled for the current block, then the luma sample at the integer sample position denoted as (xInti, yInti) is clipped according to xSbIntL-3 and ySbIntL-3; wherein (xSbIntL, ySbIntL) specifies a top-left sample of the border block relative to a top-left luma sample of the reference picture.

12. A non-transitory computer-readable storage medium storing instructions that cause a processor to: making a first determination as to whether a decoder-side motion vector refinement tool is enabled for conversion between a current block of a current picture of a video and a bitstream of the video; making a second decision based on the first decision on whether to clip samples at integer sample positions according to a boundary block of a reference sample padding in a reference picture used to determine a prediction block of the current block, the samples at the integer sample positions being in the reference picture and obtained according to a first motion vector of the current block; and performing the conversion based on the second determination; wherein, if the decoder-side motion vector refinement tool is enabled for the current block, then the luma sample at the integer sample position denoted as (xInti, yInti) is clipped according to xSbIntL-3 and ySbIntL-3; (xSbIntL, ySbIntL) specifies a top-left sample of the border block relative to a top-left luma sample of the reference picture.

13. A method for storing a bitstream of video, comprising: making a first determination as to whether a decoder-side motion vector refinement tool is enabled; making a second decision based on the first decision on whether to clip a sample at an integer sample position according to a boundary block of a reference sample padding in a reference picture used to determine a prediction block of a current block, the sample at the integer sample position being in the reference picture and obtained according to a first motion vector of the current block; and generating the bitstream based on the second determination; and storing the bitstream in a non-transitory computer readable storage medium; if the decoder-side motion vector refinement tool is enabled for the current block, then luma samples at the integer sample positions denoted as (xInti, yInti) are clipped according to xSbIntL-3 and ySbIntL-3; A method according to claim 1, wherein (xSbIntL, ySbIntL) specifies a top-left sample of the border block relative to a top-left luma sample of the reference picture.