Method and device for video processing and medium
By introducing DMVR and ADMVR modes into video encoding and decoding, as well as reference picture resampling technology, the problem of insufficient encoding and decoding efficiency and performance in the existing technology is solved, and a more efficient and flexible video processing solution is achieved.
Patent Information
- Application Number
- CN202380016432.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-05
- Filing Date
- 2023-01-05
- Publication Date
- 2024-10-11
AI Technical Summary
Existing video coding and decoding technology still has room for improvement in coding and decoding efficiency, performance and flexibility, especially in the processing of motion vector refinement and reference sample resampling.
A method is proposed to determine the search range of the decoder-side motion vector refinement (DMVR) process based on the codec information associated with the video unit during the conversion process between the video unit and the code stream, and iteratively Refine motion candidates and improve encoding and decoding efficiency and performance. In addition, the adaptive decoder side motion vector refinement (ADMVR) mode and reference picture resampling technology are introduced to enhance the flexibility of encoding and decoding.
Significantly improves the encoding and decoding efficiency, gain, performance and flexibility of video encoding and decoding, is suitable for different prediction modes and video standards, and improves the quality and storage efficiency of the code stream.
Smart Images

Figure CN118765502A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to video coding techniques, and more particularly, to decoder-side motion vector refinement (DMVR) and reference sample resampling in image / video codecs. Background Art
[0002] Nowadays, digital video functions are being applied to all aspects of people's lives. For video encoding / decoding, various types of video compression technologies have been proposed, such as MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4 Part 10 Advanced Video Codec (AVC), ITU-T H.265 High Efficiency Video Codec (HEVC) standard, and Versatile Video Codec (VVC) standard. However, the encoding and decoding efficiency of video encoding and decoding technology is expected to be further improved. Summary of the invention
[0003] Embodiments of the present disclosure provide solutions for video processing.
[0004] In a first aspect, a method for video processing is proposed. The method includes: during conversion between a video unit of a video and a bitstream of the video unit, determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with the video unit; determining a set of motion candidates based on an initial motion candidate and a search range; and performing conversion based on the set of motion candidates. In this way, different DMVR search ranges can be used for different prediction modes. Compared with conventional solutions, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance, and codec flexibility.
[0005] In a second aspect, another method for video processing is proposed. The method includes: determining a motion candidate for an adaptive decoder-side motion vector refinement (ADMVR) mode during conversion between a video unit of a video and a bitstream of the video unit; refining the motion candidate by iteratively applying a refinement process; and performing conversion based on the refined motion candidate. In this way, a unidirectional refined motion vector can be further refined by an iterative / cascaded method. In addition, the ADMVR mode can perform a full pixel search during the PU-level DMVR refinement stage. Compared with traditional solutions, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance, and codec flexibility.
[0006] In a third aspect, another method for video processing is proposed. The method includes: during the conversion between a video unit of a video and a bitstream of the video unit, based on the prediction mode of the video unit, determining whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit; and performing the conversion based on the determination. In this way, the manner of DMVR refinement for different prediction modes can be improved. Compared with traditional solutions, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance, and codec flexibility.
[0007] In a fourth aspect, another method for video processing is provided. The method includes: during conversion between a video unit of a video and a bitstream of the video unit, applying reference picture resampling to a color component of the video unit; and performing conversion based on the reference picture resampling. In this way, reference picture resampling (RPR) has been improved. Compared with conventional solutions, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance, and codec flexibility.
[0008] In a fifth aspect, a device for processing video data is provided. The device for processing video data comprises a processor and a non-volatile memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform a method according to any one of the first aspect, the second aspect, the third aspect or the fourth aspect.
[0009] In a sixth aspect, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores instructions for causing a processor to execute a method according to any one of the first, second, third or fourth methods.
[0010] In a seventh aspect, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a code stream of a video generated by a method performed by a video processing device. The method includes: determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with a video unit of the video; determining a set of motion candidates based on an initial motion candidate and the search range; and generating a code stream of the video unit based on the set of motion candidates.
[0011] In an eighth aspect, a method for storing a bitstream of a video comprises: determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with a video unit of the video; determining a set of motion candidates based on an initial motion candidate and the search range; generating a bitstream of the video unit based on the set of motion candidates; and storing the bitstream in a non-transitory computer-readable recording medium.
[0012] In a ninth aspect, another non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. The method includes: determining motion candidates for an adaptive decoder-side motion vector refinement (ADMVR) mode of a video unit of the video; refining the motion candidates by iteratively applying a refinement process; and generating a bitstream of the video unit based on the refined motion candidates.
[0013] In a tenth aspect, a method for storing a bitstream of a video comprises: determining motion candidates for an adaptive decoder side motion vector refinement (ADMVR) mode of a video unit of the video; refining the motion candidates by iteratively applying a refinement process; generating a bitstream of the video unit based on the refined motion candidates; and storing the bitstream in a non-transitory computer-readable recording medium.
[0014] In an eleventh aspect, another non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. The method includes: determining whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to a video unit of the video based on a prediction mode of the video unit; and generating a bitstream of the video unit based on the determination.
[0015] In a twelfth aspect, a method for storing a bitstream of a video comprises: determining, based on a prediction mode of the video unit, whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit of the video; generating a bitstream of the video unit based on the determination; and storing the bitstream in a non-transitory computer-readable recording medium.
[0016] In a thirteenth aspect, another non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a code stream of a video generated by a method performed by a video processing device. The method includes: applying reference picture resampling to a color component of a video unit of the video; and generating a code stream of the video unit based on the reference picture resampling.
[0017] In a fourteenth aspect, a method for storing a bitstream of a video comprises: applying reference picture resampling to a color component of a video unit of the video; generating a bitstream of the video unit based on the reference picture resampling; and storing the bitstream in a non-transitory computer-readable recording medium.
[0018] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become more apparent through the following detailed description with reference to the accompanying drawings. In the exemplary embodiments of the present disclosure, the same reference numerals generally refer to the same components.
[0020] Figure 1 A block diagram illustrating an example video encoding and decoding system is shown according to some embodiments of the present disclosure;
[0021] Figure 2 shows a block diagram illustrating a first example video encoder according to some embodiments of the present disclosure;
[0022] Figure 3 shows a block diagram illustrating an example video decoder according to some embodiments of the present disclosure;
[0023] Figure 4 The positions of spatial merging candidates are shown;
[0024] Figure 5 shows candidate pairs considered for redundancy check of spatial merging candidates;
[0025] Figure 6 is an illustration of motion vector scaling for temporal merging candidates;
[0026] Figure 7 Candidate positions, C0 and C1, for temporal merging candidates are shown;
[0027] Figure 8 The MMVD search point is shown;
[0028] Fig. 9 shows the extended CU area used in BDOF;
[0029] Fig.10 It is used for the description of symmetric MVD mode;
[0030] Fig.11 An affine motion model based on control points is shown;
[0031] Fig.12 The affine MVF of each sub-block is shown;
[0032] Fig.13 The positions of the inherited affine motion predictors are shown;
[0033] Fig.14 Control point motion vector inheritance is shown;
[0034] Fig.15 The positions of candidate positions for constructing an affine merge pattern are shown;
[0035] Fig.16 is an illustration of the use of motion vectors for the proposed combined method;
[0036] Fig.17 Sub-block MV VSB and pixel Δv(i, j) are shown;
[0037] Fig.18a and Fig.18b The SbTMVP process in VVC is shown, where Fig.18a shows the spatially neighboring blocks used by SbTMVP, and Fig.18b shows the derivation of a sub-CU motion field by applying motion offsets from spatial neighbors and scaling motion information from corresponding co-located sub-CUs;
[0038] Fig.19 shows the extended CU area used in BDOF;
[0039] Fig. 20 Decoding side motion vector refinement is shown;
[0040] Fig.21 The top and left neighboring blocks used in the derivation of CIIP weights are shown;
[0041] Fig. 22 An example of GPM segmentation grouped at the same angle is shown;
[0042] Fig.23 Unidirectional prediction MV selection for geometric partitioning mode is shown;
[0043] Fig.24 An exemplary generation of warp weights w0 using a geometric partitioning pattern is shown;
[0044] Fig.25 shows spatial neighboring blocks used to derive spatial merging candidates;
[0045] Fig.26 It shows that template matching is performed on the search area around the initial MV;
[0046] Fig. 27 A diamond-shaped area in the search area is shown;
[0047] Fig.28 shows the frequency response of the interpolation filter and the VVC interpolation filter at half-pixel phase;
[0048] Fig.29 The template in the reference picture and the reference sample of the template are shown;
[0049] Fig.30A template of a block with sub-block motion using motion information of a sub-block of a current block and a reference sample of the template are shown;
[0050] Fig.31 A flowchart of a method according to an embodiment of the present disclosure is shown;
[0051] Fig.32 A flowchart of a method according to an embodiment of the present disclosure is shown;
[0052] Fig.33 A flowchart of a method according to an embodiment of the present disclosure is shown;
[0053] Fig.34 A flowchart showing a method according to an embodiment of the present disclosure; and
[0054] Fig.35 A block diagram of a computing device is shown in which various embodiments of the present disclosure may be implemented.
[0055] Throughout the drawings, same or similar reference numbers generally refer to same or similar elements. DETAILED DESCRIPTION
[0056] The principle of the present disclosure will now be described with reference to some embodiments. It should be understood that these embodiments are described only for the purpose of illustrating and helping those skilled in the art to understand and implement the present disclosure, without implying any limitation on the scope of the present disclosure. In addition to the methods described below, the disclosure described herein can also be implemented in various ways.
[0057] In the following description and claims, unless defined otherwise, all scientific and technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs.
[0058] References in this disclosure to "one embodiment," "an embodiment," "an example embodiment," etc. indicate that the described embodiment may include a particular feature, structure, or characteristic, but not every embodiment must include the particular feature, structure, or characteristic. Furthermore, these phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in conjunction with an example embodiment, whether or not explicitly described, it is considered to be within the knowledge of those skilled in the art to affect such feature, structure, or characteristic in relation to other embodiments.
[0059] It should be understood that although the terms "first" and "second" etc. can be used to describe various elements, these elements should not be limited to these terms. These terms are only used to distinguish one element from another element. For example, a first element can be referred to as a second element, and similarly, a second element can be referred to as a first element without departing from the scope of the exemplary embodiments. As used herein, the term "and / or" includes any and all combinations of one or more of the listed terms.
[0060] The terms used herein are only used for the purpose of describing specific embodiments and are not intended to limit the exemplary embodiments. As used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms "including", "comprising", and / or "having" when used herein indicate the presence of the features, elements, and / or components, etc., but do not exclude the presence or addition of one or more other features, elements, components, and / or combinations thereof. Example Environment
[0061] Figure 1 1 is a block diagram illustrating an example video codec system 100 that may utilize the techniques of the present disclosure. As shown, the video codec system 100 may include a source device 110 and a destination device 120. The source device 110 may also be referred to as a video encoding device, and the destination device 120 may also be referred to as a video decoding device. In operation, the source device 110 may be configured to generate encoded video data, and the destination device 120 may be configured to decode the encoded video data generated by the source device 110. The source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.
[0062] Video source 112 may include a source such as a video capture device. Examples of a video capture device include, but are not limited to, an interface that receives video data from a video content provider, a computer graphics system for generating video data, and / or combinations thereof.
[0063] 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 code stream. The code stream may include a bit sequence that forms a coded representation of the video data. The code stream may include coded pictures and associated data. The coded picture is a coded representation of the picture. The associated data may include a sequence parameter set, a picture parameter set, and other grammatical structures. The I / O interface 116 may include a modulator / demodulator and / or a transmitter. The coded video data may be directly transmitted to the destination device 120 via the network 130A via the I / O interface 116. The coded video data may also be stored on a storage medium / server 130B for access by the destination device 120.
[0064] The destination device 120 may include an I / O interface 126, a video decoder 124, and a display device 122. 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 the user. The display device 122 may be integrated with the destination device 120, or may be outside the destination device 120, which is configured to be connected to an external display device interface.
[0065] The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Codec (HEVC) standard, the Versatile Video Codec (VVC) standard, and other existing and / or future standards.
[0066] Figure 2 is a block diagram showing an example of a video encoder 200 according to some embodiments of the present disclosure, which may be Figure 1 An example of a video encoder 114 in the system 100 is shown.
[0067] Video encoder 200 may be configured to implement any or all of the techniques of this disclosure. Figure 2 In the example of , video encoder 200 includes multiple functional components. The techniques described in this disclosure can be shared between the various components of video encoder 200. In some examples, a processor can be configured to perform any or all of the techniques described in this disclosure.
[0068] In some embodiments, the video encoder 200 may include a partitioning unit 201, a prediction unit 202, a residual generation unit 207, a transformation unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transformation unit 211, a reconstruction unit 212, a buffer 213 and an entropy coding and decoding unit 214, and the prediction unit 202 may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra-frame prediction unit 206.
[0069] In other examples, the video encoder 200 may include more, fewer, or different functional components. In one example, the prediction unit 202 may include an intra-block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode, where at least one reference picture is a picture where the current video block is located.
[0070] Furthermore, although some components (such as the motion estimation unit 204 and the motion compensation unit 205) may be integrated, for the purpose of explanation, these components are described in detail below. Figure 2are shown separately in the example.
[0071] The partitioning unit 201 may partition a picture into one or more video blocks. The video encoder 200 and the video decoder 300 (which will be discussed in detail below) may support various video block sizes.
[0072] The mode selection unit 203 may select one of a plurality of codec modes (intra-frame coding or inter-frame coding), for example, based on the error result, and provide the generated intra-frame codec block or inter-frame codec block to the residual generation unit 207 to generate residual block data, and to the reconstruction unit 212 to reconstruct the codec block for use as a reference picture. In some examples, the mode selection unit 203 may select a combination of intra-frame and inter-frame prediction (CIIP) modes, where the prediction is based on an inter-frame prediction signal and an intra-frame prediction signal. In the case of inter-frame prediction, the mode selection unit 203 may also select a resolution for the motion vector (e.g., sub-pixel precision or integer pixel precision) for the block.
[0073] To perform inter-frame prediction on the current video block, the motion estimation unit 204 may generate motion information for the current video block by comparing the current video block with one or more reference frames from the buffer 213. The motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from the buffer 213 other than the picture associated with the current video block.
[0074] The motion estimation unit 204 and the motion compensation unit 205 may perform different operations on the current video block, for example, depending on whether the current video block is in an I slice, a P slice, or a B slice. As used herein, an "I slice" may refer to a portion of a picture consisting of macroblocks, all of which are based on macroblocks within the same picture. Furthermore, as used herein, in some aspects, a "P slice" and a "B slice" may refer to a portion of a picture consisting of macroblocks that are independent of macroblocks in the same picture.
[0075] In some examples, the motion estimation unit 204 may perform unidirectional prediction on the current video block, and the motion estimation unit 204 may search the reference pictures of list 0 or list 1 to find the reference video block for the current video block. The motion estimation unit 204 may then generate a reference index and a motion vector, the reference index indicating the reference picture in list 0 or list 1 containing the reference video block, and the motion vector indicating the spatial displacement between the current video block and the reference video block. The motion estimation unit 204 may output the reference index, the prediction direction indicator, and the motion vector as the motion information of the current video block. The motion compensation unit 205 may generate a predicted video block for the current video block based on the reference video block indicated by the motion information of the current video block.
[0076] Alternatively, in other examples, the motion estimation unit 204 may perform bidirectional prediction on the current video block. The motion estimation unit 204 may search the reference pictures in list 0 for a reference video block for the current video block, and may also search the reference pictures in list 1 for another reference video block for the current video block. The motion estimation unit 204 may then generate a plurality of reference indexes and a plurality of motion vectors, the plurality of reference indexes indicating a plurality of reference pictures in list 0 and list 1 containing a plurality of reference video blocks, and the plurality of motion vectors indicating a plurality of spatial displacements between the plurality of reference video blocks and the current video block. The motion estimation unit 204 may output the plurality of reference indexes and the plurality of motion vectors of the current video block as motion information of the current video block. The motion compensation unit 205 may generate a predicted video block for the current video block based on the plurality of reference video blocks indicated by the motion information of the current video block.
[0077] In some examples, motion estimation unit 204 may output a complete set of motion information for use in a decoding process by a decoder. Alternatively, in some embodiments, motion estimation unit 204 may signal motion information of a current video block with reference to motion information of another video block. For example, motion estimation unit 204 may determine that motion information of a current video block is sufficiently similar to motion information of a neighboring video block.
[0078] In one example, motion estimation unit 204 may indicate to video decoder 300 a value in a syntax structure associated with the current video block that indicates that the current video block has the same motion information as another video block.
[0079] In another example, the motion estimation unit 204 may identify another video block and a motion vector difference (MVD) in a syntax structure associated with the current video block. The motion vector difference indicates the difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 300 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.
[0080] As discussed above, the video encoder 200 may signal motion vectors in a predictive manner.Two examples of prediction signaling techniques that may be implemented by the video encoder 200 include Advanced Motion Vector Prediction (AMVP) and merge mode signaling.
[0081] The intra prediction unit 206 may perform intra prediction on the current video block. When performing intra prediction on the current video block, the intra prediction unit 206 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a prediction video block and various syntax elements.
[0082] The residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by a minus sign) the prediction video block(s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks corresponding to different sample portions of samples in the current video block.
[0083] In other examples, such as in skip mode, there may be no residual data for the current video block, and the residual generation unit 207 may not perform a subtraction operation.
[0084] Transform unit 208 may generate one or more transform coefficient video blocks for a current video block by applying one or more transforms to the residual video block associated with the current video block.
[0085] After transform unit 208 generates a transform coefficient video block associated with the current video block, quantization unit 209 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values associated with the current video block.
[0086] The inverse quantization unit 210 and the inverse transform unit 211 may apply inverse quantization and inverse transform to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. The reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more prediction video blocks generated by the prediction unit 202 to generate a reconstructed video block associated with the current video block for storage in the buffer 213.
[0087] After reconstruction unit 212 reconstructs the video block, a loop filtering operation may be performed to reduce video blocking artifacts in the video block.
[0088] The entropy coding unit 214 may receive data from other functional components of the video encoder 200. When the data is received, the entropy coding unit 214 may perform one or more entropy coding operations to generate entropy coded data and output a code stream including the entropy coded data.
[0089] Figure 3 is a block diagram showing an example of a video decoder 300 according to some embodiments of the present disclosure, which may be Figure 1 An example of a video decoder 124 in the system 100 is shown.
[0090] Video decoder 300 may be configured to perform any or all of the techniques of this disclosure. Figure 3In the example of , video decoder 300 includes multiple functional components. The techniques described in this disclosure can be shared between the various components of video decoder 300. In some examples, a processor can be configured to perform any or all of the techniques described in this disclosure.
[0091] exist Figure 3 In the example of , 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, and a reconstruction unit 306 and a buffer 307. In some examples, the video decoder 300 can perform a decoding process that is generally opposite to the encoding process described with respect to the video encoder 200.
[0092] The entropy decoding unit 301 can retrieve the encoded code stream. The encoded code stream may include entropy encoded video data (e.g., encoded video data blocks). The entropy decoding unit 301 can decode the entropy encoded video data, and the motion compensation unit 302 can determine motion information from the entropy decoded video data, the motion information including motion vectors, motion vector resolution, reference picture list indexes, and other motion information. The motion compensation unit 302 can determine the information, for example, by performing AMVP and merge mode. AMVP is used, including deriving several most likely candidates based on data and reference pictures of neighboring PBs. The motion information typically includes horizontal and vertical motion vector displacement values, one or two reference picture indexes, and in the case of prediction areas in B stripes, also includes an identification of which reference picture list is associated with each index. As used herein, in some aspects, "merge mode" may refer to deriving motion information from blocks that are adjacent in space or time.
[0093] The motion compensation unit 302 may generate motion compensated blocks, possibly performing interpolation based on interpolation filters.Identifiers for the interpolation filters used with sub-pixel precision may be included in the syntax elements.
[0094] The motion compensation unit 302 may calculate interpolated values for sub-integer pixels of a reference block using interpolation filters used by the video encoder 200 during encoding of the video block. The motion compensation unit 302 may determine the interpolation filters used by the video encoder 200 based on received syntax information, and the motion compensation unit 302 may use the interpolation filters to generate a prediction block.
[0095] The motion compensation unit 302 may use at least part of the syntax information to determine the size of blocks used to encode (multiple) frames and / or (multiple) slices of the encoded video sequence, partition information describing how each macroblock of a picture of the encoded video sequence is partitioned, a mode indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter-frame coding block, and other information for decoding the encoded video sequence. As used herein, in some aspects, a "slice" may refer to a data structure that can be decoded independently of other slices of the same picture in terms of entropy coding, signal prediction, and residual signal reconstruction. A slice may be an entire picture, or it may be a region of a picture.
[0096] The intra prediction unit 303 may use, for example, an intra prediction mode received in a bitstream to form a prediction block from spatially neighboring blocks. The inverse quantization unit 304 inversely 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 305 applies an inverse transform.
[0097] The reconstruction unit 306 may obtain the decoded block, for example, by adding the residual block to the corresponding prediction block generated by the motion compensation unit 302 or the intra prediction unit 303. If necessary, a deblocking filter may also be applied to filter the decoded block to remove blocking artifacts. The decoded video block is then stored in a buffer 307, which provides reference blocks for subsequent motion compensation / intra prediction, and the buffer 307 also generates the decoded video for presentation on a display device.
[0098] Some example embodiments of the present disclosure will be described in detail below. It should be noted that the section titles used in this document are for ease of understanding, rather than limiting the embodiments disclosed in the section to that section. In addition, although some embodiments are described with reference to general video codecs or other specific video codecs, the disclosed technology is also applicable to other video codec technologies. In addition, although some embodiments describe the video encoding steps in detail, it should be understood that the corresponding decoding steps of the unencoding will be implemented by the decoder. In addition, the term video processing includes video encoding or compression, video decoding or decompression, and video transcoding, in which video pixels are represented from one compression format to another compression format or at different compression bit rates. 1. Overview The present disclosure relates to video coding technology. Specifically, it is about DMVR / BDOF-based enhancement in image / video coding. It can be applicable to existing video coding standards, such as HEVC, VVC, etc. It can also be applicable to future video coding standards or video codecs. 2. Background Video codec standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, ISO / IEC developed MPEG-1 and MPEG-4 Visual, and the two organizations jointly developed H.262 / MPEG-2 Video and H.264 / MPEG-4 Advanced Video Codec (AVC) and H.265 / HEVC standards. Since H.262, video codec standards have been based on a hybrid video codec structure, in which temporal prediction plus transform codec is used. In order to explore future video codec technologies beyond HEVC, VCEG and MPEG jointly founded the Joint Video Exploration Team (JVET) in 2015. JVET meetings are held simultaneously every quarter, and the new video codec standard was officially named Versatile Video Codec (VVC) at the JVET meeting in April 2018, when the first version of the VVC Test Model (VTM) was released. The VVC working draft and the test model VTM are updated after each meeting. The VVC project achieved technical completion (FDIS) at the July 2020 meeting. 2.1. Existing inter-frame prediction codec tools For each inter-predicted CU, the motion parameters include motion vectors, reference picture indices, and reference picture list usage indices, as well as additional information required by the new codec features of VVC for sample generation for inter-prediction. The motion parameters can be transmitted by signal in an explicit or implicit manner. When a CU is encoded and decoded in skip mode, the CU is associated with one PU and has no significant residual coefficients, no coded motion vector increments or reference picture indices. A merge mode is specified, whereby the motion parameters of the current CU are obtained from neighboring CUs, including spatial candidates and temporal candidates, as well as additional arrangements introduced in VVC. Merge mode can be applied to any inter-predicted CU, not just skip mode. An alternative to merge mode is explicit transmission of motion parameters, where motion vectors, corresponding reference picture indices for each reference picture list, and reference picture list usage flags, as well as other required information, are explicitly signaled for each CU. In addition to the inter-frame coding features in HEVC, VVC includes several new and refined inter-frame prediction coding tools listed below: – Extended consolidated forecast; – Merge mode with MVD (MMVD); – Symmetric MVD (SMVD) signaling; – Affine motion compensated prediction; – Sub-block based temporal motion vector prediction (SbTMVP); – Adaptive Motion Vector Resolution (AMVR); – Sports Field Storage: 1 / 16 th Luminance sample MV storage and 8x8 motion field compression; – Bidirectional prediction with CU level weights (BCW); – Bidirectional Optical Flow (BDOF); – Decoder-side motion vector refinement (DMVR); – Geometric Partitioning Mode (GPM); – Combined Inter and Intra Prediction (CIIP). Details on those inter prediction methods specified in VVC are provided below. 2.1.1. Extended Merge Prediction In VVC, the merge candidate list is constructed by including the following five types of candidates in order: 1) Spatial MVP from spatially neighboring CUs; 2) Time MVP from the same CU; 3) History-based MVP from FIFO table; 4) Paired average MVP; 5) Zero MV. The size of the merge list is signaled in the sequence parameter set header, and the maximum allowed size of the merge list is 6. For each CU code in merge mode, the index of the best merge candidate is encoded and decoded using truncated unary binarization (TU). The first bin of the merge index is encoded and decoded using context, while bypass encoding and decoding is used for other bins. The derivation process of merge candidates for each category is provided in this section. As in HEVC, VVC also supports parallel derivation of merge candidate lists for all CUs within a certain size region. 2.1.1.1. Spatial candidate export The derivation of spatial merge candidates in VVC is the same as that in HEVC, except that the positions of the first two merge candidates are swapped. Figure 4 4 is a schematic diagram showing the location of displaying spatial merging candidates. Figure 4 Among the candidates at the positions shown, up to four merge candidates are selected. The derivation order is B0, A0, B1, A1 and B2. Position B2 is considered only when one or more CUs at positions B0, A0, B1 and A1 are not available (for example, because it belongs to another slice or tile) or is intra-coded. After the candidate at position A1 is added, a redundancy check is performed on the addition of the remaining candidates, which ensures that candidates with the same motion information are excluded from the list, thereby improving the coding efficiency. In order to reduce computational complexity, not all possible candidate pairs are considered in the mentioned redundancy check. Figure 5 is a diagram 500 illustrating candidate pairs considered for redundancy checking of spatial merging candidates. Figure 5 The pairs are linked by arrows in , and candidates are added to the list only if the corresponding candidates used for redundancy checking do not have the same motion information. 2.1.1.2. Time candidate export In this step, only one candidate is added to the list. In particular, in the derivation of this temporal merge candidate, the scaled motion vector is derived based on the co-located CU belonging to the co-located reference picture. The reference picture list to be used for deriving the co-located CU is explicitly signaled in the slice header. Figure 6 As shown by the dashed line in the schematic diagram 600 of , a scaled motion vector for the temporal merge candidate is obtained, which is scaled from the motion vector of the co-located CU using the POC distances tb and td, where tb is defined as the POC difference between the reference picture of the current picture and the current picture, and td is defined as the POC difference between the reference picture of the co-located picture and the co-located picture. The reference picture index of the temporal merge candidate is set equal to zero. Figure 7 7 is a schematic diagram showing candidate positions for temporal merging candidates C0 and C1. Figure 7 As shown, the position of the temporal candidate is selected between candidates C0 and C1. If the CU at position C0 is not available, intra-coded, or outside the current row of the CTU, position C1 is used. Otherwise, position C0 is used in the derivation of the temporal merge candidate. 2.1.1.3. History-based Merge Candidate Derivation History-based MVP (HMVP) merge candidates are added to the merge list after spatial MVP and TMVP. In this method, the motion information of the previous codec block is stored in a table and used as the MVP of the current CU. A table with multiple HMVP candidates is maintained during the encoding / decoding process. The table is reset (cleared) when a new CTU row is encountered. Whenever there is a non-sub-block inter-coded CU, the associated motion information is added as a new HMVP candidate to the last entry of the table. The HMVP table size S is set to 6, which indicates that up to 6 history-based MVP (HMVP) candidates can be added to the table. When a new motion candidate is inserted into the table, a constrained first-in-first-out (FIFO) rule is used, where a redundancy check is first applied to find if there is an identical HMVP in the table. If found, the identical HMVP is removed from the table, and then all HMVP candidates are moved forward. HMVP candidates can be used in the merge candidate list construction process. Check the nearest few HMVP candidates in the table in order and insert them into the candidate list after the TMVP candidate. Apply redundancy check to HMVP candidates for spatial or temporal merge candidates. To reduce the number of redundant checking operations, the following simplifications are introduced: 1. Is the number of HMPV candidates for merge list generation set to (N<=4)? M: (8-N), where N indicates the number of existing candidates in the merged list, and M indicates the number of available HMVP candidates in the table. 2. Once the total number of available merge candidates reaches the maximum allowed merge candidates minus 1, the merge candidate list construction process from HMVP is terminated. 2.1.1.4. Pairwise average merge candidate derivation The pairwise average candidate is generated by averaging the predefined candidate pairs in the existing merge candidate list, and the predefined pairs are defined as {(0, 1), (0, 2), (1, 2), (0, 3), (1, 3), (2, 3)}, where the number represents the merge index of the merge candidate list. The average motion vector is calculated separately for each reference list. If two motion vectors are available in one list, they are averaged even if they point to different reference pictures; if only one motion vector is available, it is used directly; if no motion vector is available, this list is kept invalid. When the merge list is not full after adding pairwise average merge candidates, zero MVPs will be inserted at the end until the maximum number of merge candidates is encountered. 2.1.1.5. Merge estimated regions The merge estimation region (MER) allows the merge candidate list to be derived independently for a CU in the same merge estimation region (MER). For generating the merge candidate list for the current CU, candidate blocks in the same MER as the current CU are not included. In addition, the update process for the history-based motion vector prediction candidate list is updated only when (xCb+cbWidth)>>Log2ParMrgLevel is greater than xCb>>Log2ParMrgLevel and (yCb+cbHeight)>>Log2parMrglevel is greater than (yCb>>Log2ParMrgLevel), and where (xCb, yCb) is the top left luma sample position of the current CU in the picture, and (cbWidth, cbHeight) is the CU size. The MER size is selected at the encoder end and signaled in the sequence parameter set as log2_parallel_merge_level_minus2. 2.1.2. Merge Mode with MVD (MMVD) In addition to the merge mode that uses implicitly derived motion information directly for prediction sample generation of the current CU, a merge mode with motion vector difference (MMVD) is introduced in VVC. The MMVD flag is signaled immediately after the skip flag and merge flag are sent to specify whether the MMVD mode is used for the CU. In MMVD, after a merge candidate is selected, it is further refined by the MVD information transmitted by the signal. Further information includes a merge candidate flag, an index specifying the magnitude of motion, and an index indicating the direction of motion. In MMVD mode, one of the first two candidates in the merge list is selected to be used as the MV basis. The merge candidate flag is transmitted by the signal to specify which one to use. The distance index specifies the motion magnitude information and indicates a predefined offset from the starting point. Figure 8 As shown in Table 1, the offset is added to the horizontal component or the vertical component of the starting MV. Table 1 - Relationship between distance index and predefined offsets The direction index indicates the direction of the MVD relative to the starting point. The direction index can represent four directions as shown in Table 2. Note that the meaning of the MVD symbol can change depending on the information of the starting MV. When the starting MV is a unidirectional prediction MV or a bidirectional prediction MV, where both lists point to the same side of the current picture (i.e., both referenced POCs are greater than the POC of the current picture or are less than the POC of the current picture), the symbol in Table 1 specifies the sign of the MV offset added to the starting MV. When the starting MV is a bidirectional prediction MV, where the two MVs point to different sides of the current picture (i.e., one referenced POC is greater than the POC of the current picture and the other referenced POC is less than the POC of the current picture), the symbol in Table 2 specifies the sign of the MV offset added to the list0MV component of the starting MV, and the sign of the list1 MV has the opposite value. Table 2: Sign of MV offset specified by direction index Direction Index 00 01 10 11 x-axis + – N / A N / A y-axis N / A N / A + – 2.1.2.1. Bidirectional Prediction with CU-Level Weights (BCW) In HEVC, a bidirectional prediction signal is generated by averaging two prediction signals obtained from two different reference pictures and / or using two different motion vectors. In VVC, the bidirectional prediction mode is extended beyond simple averaging to allow a weighted average of the two prediction signals: P bi-pred =((8-w)*P0+w*P1+4)>>3 (2-1) Five weights, w∈{-2,3,4,5,10}, are allowed in weighted average bidirectional prediction. For each bidirectionally predicted CU, the weight w is determined in one of two ways: 1) For non-merged CUs, the weight index is signaled after the motion vector difference; 2) For merged CUs, the weight index is inferred from neighboring blocks based on the merge candidate index. BCW is only applied to CUs with 256 or more luma samples (i.e., the CU width multiplied by the CU height is greater than or equal to 256). For low-latency pictures, all 5 weights will be used. For non-low-latency pictures, only 3 weights (w∈{3,4,5}) are used. – At the encoder, a fast search algorithm is applied to find the weight index without significantly increasing the encoder complexity. These algorithms are summarized below. When combined with AMVR, unequal weights for 1-pixel and 4-pixel motion vector precision are only conditionally checked if the current picture is a low-latency picture. - When combined with affine, affine ME will be performed for unequal weights if and only if the affine mode is selected as the current best mode. – When the two reference pictures in bidirectional prediction are the same, unequal weights are only checked conditionally. – Do not search for unequal weights when certain conditions are met, which depend on the POC distance between the current picture and its reference pictures, the codec QP, and the temporal level. The BCW weight index is encoded using one context encoded bit followed by a bypass encoded bit. The first context encoded bit indicates whether equal weights are used; and if unequal weights are used, an additional bit is signaled using the bypass codec to indicate which unequal weights are used. Weighted prediction (WP) is a codec tool supported by the H.264 / AVC and HEVC standards for efficient encoding and decoding of video content in fading conditions. Support for WP has also been added to the VVC standard. WP allows weighting parameters (weights and offsets) to be transmitted by signal for each reference picture list L0 and each reference picture in list L1. Then, during motion compensation, the weights and offsets of the corresponding reference pictures are applied. WP and BCW are designed for different types of video content. In order to avoid interaction between WP and BCW (which will complicate the VVC decoder design), if the CU uses WP, the BCW weight index is not transmitted by signal, and w is inferred to be 4 (ie, equal weights are applied). For the merged CU, the weight index is inferred from the neighboring blocks based on the merge candidate index. This can be applied to the normal merge mode and the inherited affine merge mode. For the constructed affine merge mode, affine motion information is constructed based on the motion information of up to 3 blocks. The BCW index of the CU using the constructed affine merge mode is simply set equal to the BCW index of the first control point MV. In VVC, CIIP and BCW cannot be applied jointly to a CU. When a CU is encoded and decoded using CIIP mode, the BCW index of the current CU is set to 2, for example, equal weight. 2.1.2.2. Bidirectional Optical Flow (BDOF) The Bidirectional Optical Flow (BDOF) tool is included in VVC. BDOF, formerly known as BIO, is included in JEM. Compared to the JEM version, BDOF in VVC is a simpler version that requires much less computation, especially in terms of the number of multiplications and the size of the multipliers. BDOF is used to refine the bidirectional prediction signal of a CU at the 4×4 sub-block level. BDOF is applied to a CU if all of the following conditions are met: – The CU is encoded using “true” bi-prediction mode, i.e., one of the two reference pictures precedes the current picture in display order, and the other of the two reference pictures follows the current picture in display order; – The distances from the two reference pictures to the current picture (i.e., POC difference) are the same; – Both reference images are short-term reference images; –CU is not encoded or decoded using affine mode or ATMVP merge mode; – CU has more than 64 luminance samples; – CU height and CU width are both greater than or equal to 8 luma samples; – BCW weight index indicates equal weight; – WP is not enabled for the current CU; –CIIP mode is not used for the current CU. BDOF is applied only to the luminance component. As its name suggests, BDOF mode is based on the concept of optical flow, which assumes that the motion of objects is smooth. For each 4×4 sub-block, motion refinement (v x ,v y ) is calculated by minimizing the difference between L0 prediction samples and L1 prediction samples. Then motion refinement is used to adjust the sample values of bidirectional prediction in 4x4 sub-blocks. The following steps are applied in the BDOF process. First, by directly calculating the difference between two adjacent samples, the horizontal and vertical gradients of the two prediction signals, and k=0,1,is calculated, that is, Among them I (k) (i, j) is the sample value at the prediction signal coordinate (i, j) in list k, k=0,1, and shift1 is calculated based on the luma bit depth bitDepth as shift1=max(6, bitDepth-6). Then, the autocorrelations and cross-correlations of the gradients S1, S2, S3, S5, and S6 are calculated as follows: in, where Ω is a 6×6 window around a 4×4 sub-block, and n a and n b The values of are set equal to min(1, bitDepth-11) and min(4, bitDepth-8) respectively. Then, using the cross-correlation and autocorrelation terms, motion refinement (v x ,v y ) is exported using: in th′ BIO =2 max(5,BD-7) . is the round-down (floor) function, and Based on the motion refinement and gradients, the following adjustments are computed for each sample in the 4×4 sub-block: Finally, the BDOF samples of the CU are calculated by adjusting the bidirectional prediction samples as shown below: pred BDOF (x,y)=(I (0) (x,y)+I (1) (x,y)+b(x,y)+o offset )>>shift (2-7) These values are chosen so that the multipliers in the BDOF process do not exceed 15 bits and the maximum bit width of the intermediate parameters in the BDOF process is kept within 32 bits. In order to derive the gradient value, some prediction samples I in the list k (k = 0, 1) outside the current CU boundary are (k) (i,j) needs to be generated. Fig. 9 FIG. 4 is a schematic diagram showing an extended CU region used in BDOF. Fig. 9 As depicted in the schematic diagram 900 of FIG. 1 , the BDOF in VVC uses an extended row / column around the boundary of the CU. In order to control the computational complexity of generating prediction samples outside the boundary, the prediction samples in the extended area ( Fig. 9 910) is generated by directly taking reference samples at nearby integer positions (using floor() operation on coordinates) without interpolation, and a conventional 8-tap motion compensation interpolation filter is used to generate prediction samples within the CU ( Fig. 9 920). These extended sample values are only used for gradient calculation. For the remaining steps in the BDOF process, if any sample values and gradient values outside the CU boundary are needed, these sample values and gradient values are filled (i.e., repeated) from their nearest neighbors. When the width and / or height of a CU is greater than 16 luma samples, it will be split into sub-blocks with width and / or height equal to 16 luma samples, and the sub-block boundaries are regarded as CU boundaries in the BDOF process. The maximum unit size of the BDOF process is limited to 16x16. For each sub-block, the BDOF process can be skipped. When the SAD between the initial L0 prediction sample and the L1 prediction sample is less than a threshold, the BDOF process is not applied to the sub-block. The threshold is set equal to (8*W*(H>>1), where W represents the sub-block width and H represents the sub-block height. In order to avoid the additional complexity of SAD calculation, the SAD between the initial L0 prediction sample and the L1 prediction sample calculated in the DVMR process is reused here. If BCW is enabled for the current block, i.e., the BCW weight index indicates unequal weights, bidirectional optical flow is disabled. Similarly, if WP is enabled for the current block, i.e., luma_weight_lx_flag is 1 for either of the two reference pictures, BDOF is also disabled. BDOF is also disabled when the CU is encoded or decoded using symmetric MVD mode or CIIP mode. 2.1.2.3. Symmetric MVD Codec (SMVD) In VVC, in addition to conventional unidirectional prediction mode MVD signaling and bidirectional prediction mode MVD signaling, symmetric MVD mode is applied for bidirectional prediction MVD signaling. In symmetric MVD mode, motion information including reference picture indices of both list 0 and list 1 and MVD of list 1 is not transmitted by signal but derived. The decoding process of the symmetric MVD mode is as follows: 1) At the stripe level, the variables BiDirPredFlag, RefIdxSymL0, and RefIdxSymL1 are derived as follows: – If mvd_l1_zero_flag is 1, BiDirPredFlag is set equal to 0. – Otherwise, if the nearest reference picture in list 0 and the nearest reference picture in list 1 form a forward and backward reference picture pair or a backward and forward reference picture pair, then BiDirPredFlag is set to 1, and both the list 0 reference picture and the list 1 reference picture are short-term reference pictures. Otherwise, BiDirPredFlag is set to 0. 2) At the CU level, if the CU is bidirectionally predicted and BiDirPredFlag is equal to 1, the symmetric mode flag indicating whether the symmetric mode is used is explicitly signaled. When the symmetric mode flag is true, only mvp_l0_flag, mvp_l1_flag, and MVD0 are explicitly signaled. The reference indexes of list 0 and list 1 are set equal to the reference picture pair, respectively. MVD1 is set equal to (-MVD0). The final motion vector is given by the following formula: Fig.10 is a schematic diagram of the symmetric MVD mode. In the encoder, symmetric MVD motion estimation starts with initial MV evaluation. A set of initial MV candidates includes MVs obtained from unidirectional prediction search, MVs obtained from bidirectional prediction search, and MVs from the AMVP list. The one with the lowest distortion cost is selected as the initial MV for symmetric MVD motion search. 2.1.3. Affine Motion Compensated Prediction In HEVC, only the translational motion model is applied to motion compensation prediction (MCP). In the real world, there are many kinds of motion, such as zooming in / out, rotation, perspective motion, and other irregular motions. In VVC, block-based affine transformation motion compensation prediction is applied. Fig.11As shown, the affine motion field of a block is described by the motion information of two control points (4 parameters) or three control point motion vectors (6 parameters). for Fig.11 Using the 4-parameter affine motion model 1110 in , the motion vector at the sample position (x, y) in the block is derived as: for Fig.11 Using the 6-parameter affine motion model 1120 in , the motion vector at the sample position (x, y) in the block is derived as: Where (mv 0x ,mv 0y ) is the motion vector of the upper left control point, (mv 1x ,mv 1y ) is the motion vector of the upper right control point, and (mv 2x ,mv 2y ) is the motion vector of the lower left control point. To simplify motion compensated prediction, block-based affine transform prediction is applied. Fig.12 A schematic diagram 1200 is shown showing the affine MVF of each sub-block. To derive the motion vector of each 4×4 luminance sub-block, the motion vector of the center sample of each sub-block is calculated according to the above equation (e.g. Fig.12 The MV of a 4×4 chroma subblock is calculated as the average of the MVs of the 4 corresponding 4×4 luminance subblocks. Like translational motion inter prediction, there are two affine motion inter prediction modes: affine merge mode and affine AMVP mode. 2.1.3.1. Affine Merge Prediction AF_MERGE mode can be applied to CUs with width and height greater than or equal to 8. In this mode, the CPMV of the current CU is generated based on the motion information of spatially neighboring CUs. There can be up to five CPMVP candidates, and the one to be used for the current CU is indicated by a signal transmission index. The following three types of CPVM candidates are used to form the affine merge candidate list: – Inherited affine merge candidates inferred from the CPMV of neighboring CUs; – The constructed affine merged candidate CPMVP derived using the translation MV of the neighboring CU; – Zero MV. In VVC, there are at most two inherited affine candidates, which are derived from the affine motion models of neighboring blocks, one from the left neighboring CU and one from the above neighboring CU. Fig.13 Schematic diagram 1300 showing the positions of the inherited affine motion predictors. The candidate blocks are as follows Fig.13 As shown. For the predictor on the left, the scan order is A0->A1, and for the predictor above, the scan order is B0->B1->B2. Only the first inherited candidate from each side is selected. No pruning check is performed between two inherited candidates. When a neighboring affine CU is identified, its control point motion vectors are used to derive the CPMVP candidate in the affine merge list of the current CU. Fig.14 Schematic diagram 1400 of control point motion vector inheritance is shown. Fig.14 As shown, if the adjacent lower left block A 1410 is encoded and decoded in affine mode, motion vectors v2, v3 and v4 of the upper left corner, upper right corner and lower left corner of the CU 1420 containing the block A 1410 are obtained. When the block A 1410 is encoded and decoded using the 4-parameter affine model, two CPMVs of the current CU are calculated based on v2 and v3. When the block A is encoded and decoded using the 6-parameter affine model, three CPMVs of the current CU are calculated based on v2, v3 and v4. The constructed affine candidate is constructed by combining the neighboring translation motion information of each control point. The motion information of the control point is obtained from Fig.15 The specified spatial and temporal neighbors shown in are derived, Fig.15 A schematic diagram 1500 showing the locations of candidate locations of constructed affine merge patterns. k (k=1,2,3,4) indicates the kth control point. For CPMV1, B2->B3->A2 blocks are checked and the MV of the first available block is used. For CPMV2, B1->B0 blocks are checked, and for CPMV3, A1->A0 blocks are checked. TMVP is used as CPMV4 (if available). After getting the MVs of the four control points, an affine merge candidate is constructed based on the motion information. The following combinations of control point MVs are used to construct in order: {CPMV1, CPMV2, CPMV3}, {CPMV1, CPMV2, CPMV4}, {CPMV1, CPMV3, CPMV4}, {CPMV2, CPMV3, CPMV4}, {CPMV1, CPMV2}, {CPMV1, CPMV3}. The combination of 3 CPMVs constructs a 6-parameter affine merge candidate, and the combination of 2 CPMVs constructs a 4-parameter affine merge candidate. To avoid the motion scaling process, the relevant combination of control point MVs is discarded if the reference indexes of the control points are different. After checking inherited affine merge candidates and constructed affine merge candidates, if the list is still not full, a zero MV is inserted at the end of the list. 2.1.3.2. Affine AMVP prediction Affine AMVP mode can be applied to CUs with width and height greater than or equal to 16. A CU-level affine flag is signaled in the bitstream to indicate whether the affine AMVP mode is used, and then another flag is signaled to indicate whether it is 4-parameter affine or 6-parameter affine. In this mode, the difference between the CPMV of the current CU and its predicted sub-CPMVP is signaled in the bitstream. The affine AVMP candidate list size is 2 and is generated by using the following four types of CPVM candidates in order: – Inherited affine AMVP candidates inferred from the CPMV of neighboring CUs; – The constructed affine AMVP candidate CPMVP derived using the translation MV of the neighboring CU; – Translational MV from neighboring CU; – Zero MV. The order in which inherited affine AMVP candidates are checked is the same as that of inherited affine merge candidates. The only difference is that for AVMP candidates, only affine CUs with the same reference picture as in the current block are considered. When an inherited affine motion predictor is inserted into the candidate list, the pruning process is not applied. The AMVP candidates constructed from Fig.15 The specified spatial neighbors shown are derived. The same check order as in the affine merge candidate construction is used. In addition, the reference picture index of the neighboring blocks is also checked. The first block in the check order is used, which is inter-coded and has the same reference picture as in the current CU. There is only one. When the current CU is encoded and decoded using a 4-parameter affine mode and both mv0 and mv1 are available, they are added as a candidate in the affine AMVP list. When the current CU is encoded and decoded using a 6-parameter affine mode and all three CPMVs are available, they are added as a candidate in the affine AMVP list. Otherwise, the constructed AMVP candidate is set to unavailable. If the affine AMVP list candidate is still less than 2 after inserting the valid inherited affine AMVP candidate and the constructed AMVP candidate, mv0, mv1 and mv2 will be added as translation MVs in order to predict all control point MVs of the current CU when available. Finally, if the affine AMVP list is still not full, the list is filled with zero MVs. 2.1.3.3. Affine motion information storage In VVC, the CPMV of an affine CU is stored in a separate buffer. The stored CPMV is only used to generate the inherited CPMV in affine merge mode and the inherited CPMV in affine AMVP mode for the most recently encoded CU. The sub-block MV derived from the CPMV is used for motion compensation, merging of translation MVs / MV derivation of AMVP lists, and deblocking. To avoid picture line buffering for additional CPMV, the affine motion data inheritance from the CU above the CTU is handled differently from the inheritance from the normal neighboring CU. If the candidate CU for affine motion data inheritance is in the row above the CTU, the bottom left and bottom right sub-block MVs in the line buffer are used for affine MVP derivation instead of CPMV. In this way, CPMV is only stored in the local buffer. If the candidate CU is 6-parameter affine coded, the affine model is downgraded to a 4-parameter model. Fig.16 As shown, along the top CTU boundary, the bottom left and bottom right sub-block motion vectors of the CU are used for affine inheritance of the CU in the bottom of the CTU. 2.1.3.4. Prediction refinement using optical flow for affine mode (PROF) Compared with pixel-based motion compensation, sub-block based affine motion compensation can save memory access bandwidth and reduce computational complexity, but at the expense of prediction accuracy. In order to achieve finer motion compensation granularity, prediction refinement using optical flow (PROF) is used to refine sub-block based affine motion compensation predictions without increasing the memory access bandwidth for motion compensation. In VVC, after sub-block based affine motion compensation is performed, the brightness prediction samples are refined by adding the differences derived from the optical flow equation. PROF is described as the following four steps: Step 1) Sub-block based affine motion compensation is performed to generate a sub-block prediction I(i,j). Step 2) Using a 3-tap filter [-1, 0, 1], the spatial gradient g of the sub-block prediction x (i,j) and g y (i,j) is calculated at each sample position. The gradient calculation is exactly the same as the gradient calculation in BDOF. g x (i,j)=(I(i+1,j)>>shift1)-(I(i-1,j)>>shift1) (2-11) g y (i,j)=(I(i,j+1)>>shift1)-(I(i,j-1)>>shift1) (2-12) Shift1 is used to control the precision of the gradient. The sub-block (i.e. 4x4) prediction is extended by one sample on each side of the gradient calculation. To avoid extra memory bandwidth and extra interpolation calculations, those extended samples on the extended boundary are copied from the nearest integer pixel position in the reference picture. Step 3) The brightness prediction refinement is calculated by following the optical flow equation. ΔI(i,j)=g x (i,j)*Δv x (i,j)+g y (i,j)*Δv y (i,j) (2-13) Among them Fig.17 As shown, Δv(i,j) is the difference between the sample MV calculated for the sample position (i,j), denoted as v(i,j), and the sub-block MV of the sub-block to which the sample (i,j) belongs. Δv(i,j) (as shown by arrow 1710) is quantized in units of 1 / 32 luma sample precision. Since the affine model parameters and the sample positions relative to the sub-block center do not change from sub-block to sub-block, Δv(i,j) can be calculated for the first sub-block and reused for other sub-blocks in the same CU. Let dx(i,j) and dy(i,j) be the distance from the sample position (i,j) to the sub-block center (x SB ,y SB )’s horizontal and vertical offsets, Δv(x,y) can be derived from the following equations: To maintain accuracy, the sub-block (x SB ,y SB ) is calculated as ((W SB -1) / 2,(H SB -1) / 2), where W SB and H SB are the width and height of the sub-block respectively. For the 4-parameter affine model, For the 6-parameter affine model, Where (v 0x ,v 0y ), (v 1x ,v 1y ), (v 2x ,v 2y ) are the control point motion vectors of the upper left, upper right and lower left, and w and h are the width and height of the CU. Step 4) Finally, the luma prediction refinement ΔI(i,j) is added to the sub-block prediction I(i,j). The final prediction I' is generated as follows. I′(i,j)=I(i,j)+ΔI(i,j) PROF is not applicable to affine codec CUs in two cases: 1) all control point MVs are the same, which indicates that the CU has only translational motion; 2) the affine motion parameters are larger than the specified limit, because the sub-block based affine MC is downgraded to CU based MC to avoid large memory access bandwidth requirements. A fast codec method is applied to reduce the codec complexity of affine motion estimation using PROF. PROF is not applied to the affine motion estimation stage in the following two cases: a) If the CU is not a root block and the parent block of the CU does not select the affine mode as its best mode, PROF is not applied because the possibility that the current CU selects the affine mode as the best mode is low; b) If the magnitudes of the four affine parameters (C, D, E, F) are all less than a predefined threshold and the current picture is not a low-latency picture, PROF is not applied because the improvement introduced by PROF for this case is small. In this way, affine motion estimation using PROF can be accelerated. 2.1.4. Sub-block based temporal motion vector prediction (SbTMVP) VVC supports the sub-block-based temporal motion vector prediction (SbTMVP) method. Similar to the temporal motion vector prediction (TMVP) in HEVC, SbTMVP uses the motion field in the co-located picture to improve the motion vector prediction and merge mode of the CU in the current picture. The same co-located picture used by TMVP is used for SbTMVP. SbTMVP differs from TMVP in the following two main aspects: –TMVP predicts motion at CU level, but SbTMVP predicts motion at sub-CU level; –While TMVP pre-fetches the temporal motion vector from the co-located block in the co-located picture (the co-located block is the bottom-right block or the center block relative to the current CU), SbTMVP applies motion offset before pre-fetching temporal motion information from the co-located picture, where the motion offset is obtained from the motion vector from one of the spatial neighboring blocks of the current CU. The SbTVMP process Fig.18a and Fig.18b is shown in . Fig.18a Schematic diagram 1810 of spatial neighboring blocks used by SbTMVP is shown. SbTMVP predicts the motion vector of a sub-CU within the current CU in two steps. In the first step, check Fig.18aThe spatial neighbor A1 in . If A1 has a motion vector that uses the co-located picture as its reference picture, then that motion vector is selected as the motion offset to be applied. If no such motion is identified, then the motion offset is set to (0, 0). Fig.18b A schematic diagram of driving the sub-CU motion field by applying motion offsets from spatial neighbors and scaling motion information from corresponding co-located sub-CUs is shown. In the second step, the motion offset identified in step 1 is applied (i.e., added to the coordinates of the current picture) to Fig.18b The co-located picture shown obtains sub-CU level motion information (motion vector and reference index). Fig.18b The example in assumes that the motion offset is set to the motion of block A1. Then, for each sub-CU, the motion information of its corresponding block in the co-located picture (the minimum motion grid covering the center sample) is used to derive the motion information of the sub-CU. After the motion information of the co-located sub-CU is identified, it is converted into the motion vector and reference index of the current sub-CU in a manner similar to the TMVP process of HEVC, where temporal motion scaling is applied to align the reference picture of the temporal motion vector with the reference picture of the current CU. In VVC, a combined sub-block based merge list containing both SbTMVP candidates and affine merge candidates is used for signaling of sub-block based merge mode. The SbTMVP mode is enabled / disabled by a sequence parameter set (SPS) flag. If the SbTMVP mode is enabled, the SbTMVP predictor is added as the first entry in the list of sub-block based merge candidates, followed by the affine merge candidates. The size of the sub-block based merge list is signaled in the SPS, and the maximum allowed size of the sub-block based merge list in VVC is 5. The sub-CU size used in SbTMVP is fixed to 8x8, and like the affine merge mode, the SbTMVP mode is only applicable to CUs whose width and height are both greater than or equal to 8. The encoding and decoding logic of the additional SbTMVP merge candidate is the same as that of other merge candidates, that is, for each CU in a P or B slice, an additional RD check is performed to decide whether to use the SbTMVP candidate. 2.1.5. Adaptive Motion Vector Resolution (AMVR) In HEVC, when use_integer_mv_flag in the slice header is equal to 0, the motion vector difference (MVD) (between the CU's motion vector and the predicted motion vector) is transmitted by signal in units of quarter-luminance samples. In VVC, the CU-level adaptive motion vector resolution (AMVR) scheme is introduced. AMVR allows the CU's MVD to be encoded and decoded with different precisions. Depending on the current CU mode (normal AMVP mode or affine AVMP mode), the current CU's MVD can be adaptively selected as follows: – Normal AMVP mode: quarter brightness samples, half brightness samples, full brightness samples, or quad brightness samples. – Affine AMVP mode: quarter brightness samples, full brightness samples, or 1 / 16 brightness samples. If the current CU has at least one non-zero MVD component, the CU-level MVD resolution indication is conditionally signaled.If all MVD components (i.e. both horizontal and vertical MVD for reference list L0 and reference list L1) are zero, then quarter luma sample MVD resolution is inferred. For a CU with at least one non-zero MVD component, a first flag is transmitted by a signal to indicate whether quarter luma sample MVD precision is used for the CU. If the first flag is 0, no further signal is required, and quarter luma sample MVD precision is used for the current CU. Otherwise, a second flag is transmitted by a signal to indicate that half luma samples or other MVD precision (integer or four luma samples) are used for normal AMVP CUs. In the case of half luma samples, a 6-tap interpolation filter is used for the half luma sample position instead of the default 8-tap interpolation filter. Otherwise, a third flag is transmitted by a signal to indicate whether whole luma samples or four luma sample MVD precision is used for normal AMVP CUs. In the case of an affine AMVP CU, the second flag is used to indicate whether whole luma sample MVD precision or 1 / 16 luma sample MVD precision is used. To ensure that the reconstructed MV has the expected precision (quarter luma sample, half luma sample, whole luma sample, or four luma samples), the motion vector predictor of the CU is rounded to the same precision as the MVD before being added to the MVD. The motion vector predictor is rounded towards zero (that is, a negative motion vector predictor is rounded towards positive infinity and a positive motion vector predictor is rounded towards negative infinity). The encoder uses RD check to determine the motion vector resolution of the current CU. In order to avoid always performing four CU-level RD checks for each MVD resolution, in VTM13, only the RD check of MVD precision other than quarter brightness samples is conditionally called. For normal AVMP mode, the RD cost of quarter brightness sample MVD precision and the RD cost of full brightness sample MV precision are first calculated. Then, the RD cost of full brightness sample MVD precision is compared with the RD cost of quarter brightness sample MVD precision to determine whether it is necessary to further check the RD cost of four brightness sample MVD precision. When the RD cost of quarter brightness sample MVD precision is much smaller than the RD cost of full brightness sample MVD precision, the RD check of four brightness sample MVD precision is skipped. Then, if the RD cost of full brightness sample MVD precision is significantly greater than the best RD cost of the previously tested MVD precision, the check of half brightness sample MVD precision is skipped. For the affine AMVP mode, if the affine inter mode is not selected after checking the rate-distortion cost of the affine merge / skip mode, merge / skip mode, quarter luma sample MVD accuracy normal AMVP mode, and quarter luma sample MVD accuracy affine AMVP mode, the 1 / 16 luma sample MV accuracy and 1 pixel MV accuracy affine inter modes are not checked. In addition, in the 1 / 16 luma sample and quarter luma sample MV accuracy affine inter modes, the affine parameters obtained in the quarter luma sample MV accuracy affine inter mode are used as the starting search point. 2.1.6. Bidirectional Prediction with CU-Level Weights (BCW) In HEVC, a bidirectional prediction signal is generated by averaging two prediction signals obtained from two different reference pictures and / or using two different motion vectors. In VVC, the bidirectional prediction mode is extended beyond simple averaging to allow a weighted average of the two prediction signals: P bi-pred =((8-w)*P0+w*P1+4)>>3 (2-18) Five weights are allowed in weighted average bidirectional prediction, w∈{-2,3,4,5,10}. For each bidirectional prediction CU, the weight w is determined in one of two ways: 1) For non-merged CUs, the weight index is signaled after the motion vector difference; 2) For merged CUs, the weight index is inferred from neighboring blocks based on the merge candidate index. BCW is only applied to CUs with 256 or more luma samples (i.e., the CU width multiplied by the CU height is greater than or equal to 256). For low-latency pictures, all 5 weights will be used. For non-low-latency pictures, only 3 weights (w∈{3,4,5}) are used. – At the encoder, a fast search algorithm is applied to find the weight index without significantly increasing the encoder complexity. These algorithms are summarized below. When combined with AMVR, unequal weights for 1-pixel and 4-pixel motion vector precision are only conditionally checked if the current picture is a low-latency picture. - When combined with affine, affine ME will be performed for unequal weights if and only if the affine mode is selected as the current best mode. – When the two reference pictures in bidirectional prediction are the same, unequal weights are only checked conditionally. – Do not search for unequal weights when certain conditions are met, which depend on the POC distance between the current picture and its reference pictures, the codec QP, and the temporal level. The BCW weight index is encoded using one context encoded bit followed by a bypass encoded bit. The first context encoded bit indicates whether equal weights are used; and if unequal weights are used, an additional bit is signaled using the bypass codec to indicate which unequal weights are used. Weighted prediction (WP) is a codec tool supported by the H.264 / AVC and HEVC standards for efficient encoding and decoding of video content in fading conditions. Support for WP has also been added to the VVC standard. WP allows weighting parameters (weights and offsets) to be transmitted by signal for each reference picture list L0 and each reference picture in list L1. Then, during motion compensation, the weights and offsets of the corresponding reference pictures are applied. WP and BCW are designed for different types of video content. In order to avoid interaction between WP and BCW (which will complicate the VVC decoder design), if the CU uses WP, the BCW weight index is not transmitted by signal, and w is inferred to be 4 (ie, equal weights are applied). For the merged CU, the weight index is inferred from the neighboring blocks based on the merge candidate index. This can be applied to the normal merge mode and the inherited affine merge mode. For the constructed affine merge mode, affine motion information is constructed based on the motion information of up to 3 blocks. The BCW index of the CU using the constructed affine merge mode is simply set equal to the BCW index of the first control point MV. In VVC, CIIP and BCW cannot be applied jointly to a CU. When a CU is encoded and decoded using CIIP mode, the BCW index of the current CU is set to 2, for example, equal weight. 2.1.7. Bidirectional Optical Flow (BDOF) The Bidirectional Optical Flow (BDOF) tool is included in VVC. BDOF, formerly known as BIO, is included in JEM. Compared to the JEM version, BDOF in VVC is a simpler version that requires much less computation, especially in terms of the number of multiplications and the size of the multipliers. BDOF is used to refine the bidirectional prediction signal of a CU at the 4×4 sub-block level. BDOF is applied to a CU if all of the following conditions are met: – The CU is encoded using “true” bi-prediction mode, i.e., one of the two reference pictures precedes the current picture in display order, and the other of the two reference pictures follows the current picture in display order; – The distances from the two reference pictures to the current picture (i.e., POC difference) are the same; – Both reference images are short-term reference images; –CU is not encoded or decoded using affine mode or ATMVP merge mode; – CU has more than 64 luminance samples; – CU height and CU width are both greater than or equal to 8 luma samples; – BCW weight index indicates equal weight; – WP is not enabled for the current CU; –CIIP mode is not used for the current CU. BDOF is applied only to the luminance component. As its name suggests, BDOF mode is based on the concept of optical flow, which assumes that the motion of objects is smooth. For each 4×4 sub-block, motion refinement (v x ,v y ) is calculated by minimizing the difference between L0 prediction samples and L1 prediction samples. Then motion refinement is used to adjust the sample values of bidirectional prediction in 4x4 sub-blocks. The following steps are applied in the BDOF process. First, by directly calculating the difference between two adjacent samples, the horizontal and vertical gradients of the two prediction signals, and k=0,1,is calculated, that is, Among them I (k) (i, j) is the sample value at the prediction signal coordinate (i, j) in list k, k=0,1, and shift1 is calculated based on the luma bit depth bitDepth as shift1=max(6, bitDepth-6). Then, the autocorrelations and cross-correlations of the gradients S1, S2, S3, S5, and S6 are calculated as follows: in, where Ω is a 6×6 window around a 4×4 sub-block, and n a and n b The values of are set equal to min(1, bitDepth-11) and min(4, bitDepth-8) respectively. Then, using the cross-correlation and autocorrelation terms, motion refinement (v x ,v y ) is exported using: in th′ BIO =2 max(5,BD-7) . is the round-down (floor) function, and Based on the motion refinement and gradients, the following adjustments are computed for each sample in the 4×4 sub-block: Finally, the BDOF samples of the CU are calculated by adjusting the bidirectional prediction samples as shown below: pred BDOF (x,y)=(I (0) (x,y)+I (1) (x,y)+b(x,y)+o offset )>>shift (2-24) These values are chosen so that the multipliers in the BDOF process do not exceed 15 bits and the maximum bit width of the intermediate parameters in the BDOF process is kept within 32 bits. In order to derive the gradient value, some prediction samples I in the list k (k = 0, 1) outside the current CU boundary are (k) (i,j) needs to be generated. Fig.19 FIG. 4 is a schematic diagram showing an extended CU region used in BDOF. Fig.19 As depicted in the schematic diagram 1900 of FIG. 1 , the BDOF in VVC uses an extended row / column around the boundary of the CU. In order to control the computational complexity of generating prediction samples outside the boundary, the prediction samples in the extended area ( Fig.19 1910) is generated by directly taking reference samples at nearby integer positions (using floor() operations on coordinates) without interpolation, and a conventional 8-tap motion compensated interpolation filter is used to generate prediction samples within the CU ( Fig.191920). These extended sample values are only used for gradient calculations. For the remaining steps in the BDOF process, if any sample values and gradient values outside the CU boundary are needed, these sample values and gradient values are filled (i.e., repeated) from their nearest neighbors. When the width and / or height of a CU is greater than 16 luma samples, it will be split into sub-blocks with width and / or height equal to 16 luma samples, and the sub-block boundaries are regarded as CU boundaries in the BDOF process. The maximum unit size of the BDOF process is limited to 16x16. For each sub-block, the BDOF process can be skipped. When the SAD between the initial L0 prediction sample and the L1 prediction sample is less than a threshold, the BDOF process is not applied to the sub-block. The threshold is set equal to (8*W*(H>>1), where W represents the sub-block width and H represents the sub-block height. In order to avoid the additional complexity of SAD calculation, the SAD between the initial L0 prediction sample and the L1 prediction sample calculated in the DVMR process is reused here. If BCW is enabled for the current block, i.e., the BCW weight index indicates unequal weights, bidirectional optical flow is disabled. Similarly, if WP is enabled for the current block, i.e., luma_weight_lx_flag is 1 for either of the two reference pictures, BDOF is also disabled. BDOF is also disabled when the CU is encoded or decoded using symmetric MVD mode or CIIP mode. 2.1.8. Decoder-side Motion Vector Refinement (DMVR) To improve the accuracy of merge mode MV, decoder-side motion vector refinement based on bilateral matching (BM) is applied in VVC. In bidirectional prediction operation, the refined MV is searched around the initial MV in reference picture list L0 and reference picture list L1. The BM method calculates the distortion between two candidate blocks in reference picture list L0 and reference picture list L1. Fig. 20 is a schematic diagram showing the refinement of motion vectors on the decoding side. Fig. 20 As shown, based on each MV candidate around the initial MV, the SAD between block 2010 and block 2012 is calculated, where for the current picture 2002, block 2010 is in the reference picture 2001 in list L0, and block 2012 is in the reference picture 2003 in list L1. The MV candidate with the lowest SAD becomes the refined MV and is used to generate a bidirectional prediction signal. In VVC, the application of DMVR is limited and only applies to CUs that are encoded and decoded using the following modes and functions: – CU level merge mode with bi-predictive MV; – Relative to the current picture, one reference picture is in the past and the other reference picture is in the future; – The distances from the two reference pictures to the current picture (i.e., POC difference) are the same; – Both reference images are short-term reference images; – CU has more than 64 luminance samples; – CU height and CU width are both greater than or equal to 8 luma samples; – BCW weight index indicates equal weight; – The current block is not WP enabled; – CIIP mode is not used for the current block. The refined MV derived from the DMVR process is used to generate inter-frame prediction samples and is also used for temporal motion vector prediction for future picture encoding and decoding, while the original MV is used in the deblocking process and is also used for spatial motion vector prediction for future CU encoding and decoding. Additional features of DMVR are mentioned in the following sub-clauses. 2.1.8.1. Search scheme In DVMR, the search point is around the initial MV, and the MV offset obeys the MV difference mirror rule. In other words, any point examined by DMVR represented by the candidate MV pair (MV0, MV1) follows the following two equations: MV0′=MV0+MV_offset (2-25) MV1′=MV1-MV_offset (2-26) Where MV_offset represents the refinement offset between the initial MV and the refined MV in one of the reference pictures. The refinement search range is two integer brightness samples starting from the initial MV. The search includes an integer sample offset search phase and a fractional sample refinement phase. The whole sample offset search applies a 25-point full search. The SAD of the initial MV pair is first calculated. If the SAD of the initial MV pair is less than the threshold, the whole sample stage of DMVR is terminated. Otherwise, the SAD of the remaining 24 points is calculated and checked in raster scan order. The point with the smallest SAD is selected as the output of the whole sample offset search stage. In order to reduce the impact of the uncertainty of DMVR refinement, it is proposed to support the original MV in the DMVR process. The SAD between the reference blocks referenced by the initial MV candidates is reduced by 1 / 4 of the SAD value. The whole sample search is followed by fractional sample refinement. To save computational complexity, fractional sample refinement is derived using the parametric error surface equation instead of performing an additional search using SAD comparison. Fractional sample refinement is conditionally called based on the output of the whole sample search phase. When the whole sample search phase ends with the center with the minimum SAD in the first or second iteration search, fractional sample refinement is further applied. In the sub-pixel offset estimation based on the parameter error surface, the center position cost and the costs of the four neighboring positions from the center are used to fit a two-dimensional parabolic error surface equation of the following form E(x,y)=A(x min ) 2 +B(yy min ) 2 +C (2-27) Where (x min ,y min ) corresponds to the fractional position with the minimum cost, and C corresponds to the minimum cost value. By solving the above equation using the cost values of the five search points, (x min ,y min ) is calculated as: x min =(E(-1,0)-E(1,0)) / (2(E(-1,0)+E(1,0)-2E(0,0))) (2-28) y min =(E(0,-1)-E(0,1)) / (2((E(0,-1)+E(0,1)-2E(0,0))) (2-29) x min and min The value of is automatically clamped between -8 and 8, since all cost values are positive, and the minimum value is E(0,0). This corresponds to a half-pixel offset with 1 / 16-pixel MV precision in VVC. The calculated fraction (x min ,y min ) is added to the integer distance refinement MV to obtain a sub-pixel accurate refinement delta MV. 2.1.8.2. Bilinear interpolation and sample padding In VVC, the resolution of MV is 1 / 16 luma sample. Samples at fractional positions are interpolated using an 8-tap interpolation filter. In DMVR, the search points are around the initial fractional pixel MV with an integer sample offset, so the samples at these fractional positions need to be interpolated for the DMVR search process. In order to reduce the computational complexity, a bilinear interpolation filter is used to generate fractional samples for the search process in DMVR. Another important effect is that by using a bilinear filter, DVMR does not access more reference samples than the normal motion compensation process within the 2-sample search range. After the refined MV is obtained through the DMVR search process, an ordinary 8-tap interpolation filter is applied to generate the final prediction. In order for the normal MC process not to access more reference samples, samples (which are not needed for the interpolation process based on the original MV, but are needed for the interpolation process based on the refined MV) will be filled from those available samples. 2.1.8.3. Maximum DMVR processing unit When the width and / or height of a CU is greater than 16 luma samples, it will be further split into sub-blocks with width and / or height equal to 16 luma samples. The maximum unit size of the DMVR search process is limited to 16x16. 2.1.9. Combined Inter and Intra Prediction (CIIP) In VVC, when a CU is encoded and decoded in merge mode, if the CU contains at least 64 luma samples (i.e., the CU width multiplied by the CU height is equal to or greater than 64), and if both the CU width and the CU height are less than 128 luma samples, an additional flag is signaled to indicate whether the combined inter / intra prediction (CIIP) mode is applied to the current CU. As its name suggests, CIIP prediction combines the inter prediction signal with the intra prediction signal. The inter prediction signal P in CIIP mode inter is derived using the same inter prediction process applied to the normal merge mode; and the intra prediction signal P intra Derived after the regular intra prediction process using planar mode. Fig.21 The top and left neighboring blocks used for CIIP weight derivation are shown. The intra prediction signal and the inter prediction signal are then combined using a weighted average, where the weight values are calculated depending on the coding mode of the top and left neighboring blocks (e.g. Fig.21 Described in) as follows: - If the top neighbor is available and has been intra-coded, set isIntraTop to 1, otherwise set isIntraTop to 0; - If the left neighbor is available and has been intra-coded, set isIntraLeft to 1, otherwise set isIntralLeft to 0; - If (isIntraLeft + isIntraTop) is equal to 2, then wt is set to 3; - Otherwise, if (isIntraLeft+isIntraTop) is equal to 1, wt is set to 2; - Otherwise, set wt to 1. The CIIP forecast is constructed as follows: P CIIP =((4-wt)*P inter +wt*P intra +2)>>2 (2-30) 2.1.10. Geometric Partitioning Model (GPM) In VVC, geometric partitioning mode is supported for inter prediction. The CU level flag is used as a merge mode to signal the geometric partitioning mode. Other merge modes include normal merge mode, MMVD mode, CIIP mode, and sub-block merge mode. For each possible CU size w×h=2 m ×2 n , where m,n∈{3…6} does not include 8x64 and 64x8, and the geometric partitioning mode supports a total of 64 partitions. Fig. 22 An example of GPM segmentation grouped by the same angle is shown. When this mode is used, the CU is divided into two parts by a geometrically positioned straight line ( Fig. 22 ). The position of the partition line is mathematically derived from the angle and offset parameters of the specific partition. Each part of the geometric partition in the CU is inter-predicted using its own motion; only unidirectional prediction is allowed for each partition, i.e. each part has a motion vector and a reference index. Unidirectional prediction motion constraints are applied to ensure that only two motion compensated predictions are required per CU, which is the same as traditional bidirectional prediction. If a geometric partitioning mode is used for the current CU, a geometric partitioning index (angle and offset) indicating the partitioning mode of the geometric partitioning and two merge indexes (one for each partition) are further transmitted through a signal. The maximum number of GPM candidate sizes is explicitly transmitted through a signal in the SPS, and the syntax binarization for the GPM merge index is specified. After predicting each part of the geometric partitioning, a hybrid process with adaptive weights is used to adjust the sample values along the edges of the geometric partitioning. This is the prediction signal for the entire CU, and the transformation process and quantization process will be applied to the entire CU as in other prediction modes. Finally, the motion field of the CU predicted using the geometric partitioning mode is stored. 2.1.10.1. One-way prediction candidate list construction The unidirectional prediction candidate list is derived directly from the merge candidate list constructed according to the extended merge prediction process. Denote n as the index of the unidirectional prediction motion in the geometric unidirectional prediction candidate list. The LX motion vector (x equals parity of n) of the nth extended merge candidate is used as the nth unidirectional prediction motion vector of the geometric partitioning mode. Fig.23 The unidirectional prediction MV selection for the geometric partitioning mode is shown. These motion vectors are Fig.23 If the corresponding LX motion vector of the n-th extended merge candidate does not exist, the L(1-X) motion vector of the same candidate is used as the unidirectional prediction motion vector of the geometric partitioning mode. 2.1.10.2. Blending Along Geometric Partition Edges After predicting each part of the geometric partition using its own motion, blending is applied to the two prediction signals to derive samples around the geometric partition edges. The blending weights for each position of the CU are derived based on the distance between the independent position and the partition edge. The distance from position (x,y) to the partition edge is derived as: where i,j are the angle and offset indices of the geometric partition, which depend on the geometric partition index transmitted by the signal. x,j and ρ y,j The sign of depends on the angle index i. The weights of each part of the geometric partition are derived as follows: wIdxL(x,y)=partIdx? 32+d(x,y):32-d(x,y) w1(x,y)=1-w0(x,y). partIdx depends on the angle index i. Fig.24 An exemplary generation of warp weights w0 using a geometric partitioning pattern is shown. An example of weight w0 is Fig.24 is shown in . 2.1.10.3 Motion Field Storage for Geometry Partitioning Mode Mv1 from the first part of the geometric partitioning, Mv2 from the second part of the geometric partitioning, and a combination Mv of Mv1 and Mv2 are stored in the motion field of the CU coded in the geometric partitioning mode. The type of motion vector stored for each individual position in the motion field is determined as: sType=abs(motionIdx)<32?2:(motionIdx≤0?(1-partIdx):partIdx) where motionIdx is equal to d(4x+2,4y+2). partIdx depends on the angle index i. If sType is equal to 0 or 1, then Mv0 or Mv1 is stored in the corresponding motion field, otherwise, if sType is equal to 2, the combined Mv from Mv0 and Mv2 is stored. The combined Mv is generated using the following process: 1) If Mv1 and Mv2 are from different reference picture lists (one from L0 and the other from L1), then Mv1 and Mv2 are simply combined to form a bidirectional prediction motion vector. 2) Otherwise, if Mv1 and Mv2 are from the same list, only the unidirectional prediction motion Mv2 is stored. 2.1.11. Local Illumination Compensation (LIC) LIC is an inter-prediction technique that models the local illumination variation between the current block and its prediction block as a function of the local illumination variation between the current block template and the reference block template. The parameters of this function can be expressed by a scaling α and an offset β, which form a linear equation, i.e., α*p[x]+β to compensate for illumination variation, where p[x] is the reference sample pointed to by MV at position x on the reference picture. Since α and β can be derived based on the current block template and the reference block template, no signaling overhead is required for them, except for signaling a LIC flag for AMVP mode to indicate the use of LIC. The local illumination compensation proposed in JVET-O0066 is used for unidirectionally predicted inter CUs with the following modifications. Intra-frame neighbor samples can be used to derive LIC parameters; LIC is disabled for blocks with less than 32 luma samples; For both non-sub-block and affine modes, LIC parameter derivation is performed based on the template block samples corresponding to the current CU instead of the partial template block samples corresponding to the first top-left 16x16 unit; Generate samples of the reference block template by using MC with the block MV without rounding it to integer pixel precision. 2.1.12. Non-adjacent spatial candidates In JVET-L0399, non-adjacent spatial merging candidates are inserted after the TMVP in the regular merging candidate list. Fig.25 The spatial neighboring blocks used to derive the spatial merge candidates are shown in FIG. Fig.25 As shown in Figure 2. The distance between non-adjacent spatial candidates and the current codec block is based on the width and height of the current codec block. The line buffer limit is not applied. 2.1.13. Template Matching (TM) Template Matching (TM) is a decoder-side MV derivation method used to refine the motion information of the current CU by finding the closest match between a template in the current picture (i.e., the top and / or left neighboring blocks of the current CU) and a block in a reference picture (i.e., the same size as the template). Fig.26 2600 is a schematic diagram showing template matching performed on a search area around an initial MV. Fig.26As shown, in the [-8, +8] pixel search range, a better MV is searched around the initial motion of the current CU. This paper adopts the template matching previously proposed in JVET-J0021 and makes two modifications: the search step size is determined based on the adaptive motion vector resolution (AMVR) mode, and the TM can be cascaded using the bilateral matching process in the merge mode. In AMVP mode, the MVP candidate is determined based on the template matching error by selecting the one that achieves the minimum difference between the current block template and the reference block template, and then TM performs MV refinement only on this specific MVP candidate. TM refines the MVP candidate by using an iterative diamond search, starting with full-pixel MVD accuracy (or 4 pixels for 4-pixel AMVR mode) within the [-8, +8] pixel search range. The AMVP candidate can be further refined by using a cross search with full-pixel MVD accuracy (or 4 pixels for 4-pixel AMVR mode), and then using half-pixels and quarter-pixels in turn according to the AMVR mode specified in Table 3. This search process ensures that the MVP candidate still maintains the same MV accuracy as indicated by the AMVR mode after the TM process. Table 3. Search patterns of AMVR and merging patterns using AMVR In merge mode, a similar search method is applied to the merge candidates indicated by the merge index. As shown in Table 3, TM can be performed all the way to 1 / 8 pixel MVD accuracy, or skip those accuracies exceeding half-pixel MVD accuracy, depending on whether an alternative interpolation filter is used according to the merged motion information (i.e., used when AMVR is in half-pixel mode). In addition, when TM mode is enabled, template matching can work as an independent process between a block-based bilateral matching (BM) method and a sub-block-based bilateral matching method, or as an additional MV refinement process, depending on whether BM can be enabled according to its enabling condition check. 2.1.14. Multi-pass decoder-side motion vector refinement (mpDMVR) Multiple passes of decoder side motion vector refinement are applied. In the first pass, bilateral matching (BM) is applied to the codec block. In the second pass, BM is applied to each 16x16 sub-block within the codec block. In the third pass, the MV in each 8x8 sub-block is refined by applying bidirectional optical flow (BDOF). The refined MVs are stored for spatial and temporal motion vector prediction. 2.1.14.1. First pass - Block-based bilateral matching MV refinement In the first pass, refined MVs are derived by applying BM to the codec blocks. Similar to decoder side motion vector refinement (DMVR), in bidirectional prediction operation, refined MVs are searched around two initial MVs (MV0 and MV1) in reference picture lists L0 and L1. Refined MVs (MV0_pass1 and MV1_pass1) are derived around the initial MVs based on the minimum bilateral matching cost between the two reference blocks in L0 and L1. BM performs a local search to derive the integer sample precision intDeltaMV. The local search applies a 3×3 square search pattern to loop in the search range [–sHor, sHor] in the horizontal direction and the search range [–sVer, sVer] in the vertical direction, where the values of sHor and sVer are determined by the block size and the maximum values of sHor and sVer are 8. The bilateral matching cost is calculated as: bilCost = mvDistanceCost + sadCost. When the block size cbW*cbH is greater than 64, the MRSAD cost function is applied to remove the DC effect of the distortion between the reference blocks. When the bilCost of the center point of the 3×3 search pattern has the minimum cost, the intDeltaMV local search terminates. Otherwise, the current minimum cost search point becomes the new center point of the 3×3 search pattern and continues to search for the minimum cost until it reaches the end of the search range. The current fractional sample refinement is further applied to derive the final deltaMV. Then, the refined MV after the first pass is derived as: MV0_pass1 = MV0 + deltaMV; ·MV1_pass1=MV1–deltaMV. 2.1.14.2. Second pass - sub-block based bilateral matching MV refinement In the second pass, refined MVs are derived by applying BM to 16×16 grid sub-blocks. For each sub-block, the refined MVs are searched around the two MVs (MV0_pass1 and MV1_pass1) obtained in the first pass in the reference picture lists L0 and L1. Refined MVs (MV0_pass2(sbIdx2) and MV1_pass2(sbIdx2)) are derived based on the minimum bilateral matching cost between the two reference sub-blocks in L0 and L1. For each sub-block, BM performs a full search to derive the integer sample precision intDeltaMV. The full search has a search range of [–sHor, sHor] in the horizontal direction and a search range of [–sVer, sVer] in the vertical direction, where the values of sHor and sVer are determined by the block size and the maximum values of sHor and sVer are 8. The bilateral matching cost is calculated by applying the cost factor to the SATD cost between the two reference sub-blocks, such as: bilCost = satdCost * costFactor. The search area (2*sHor+1)*(2*sVer+1) is divided into 5 diamond search areas, such as Fig. 27 As shown in diagram 2700 in . Each search region is assigned a costFactor, which is determined by the distance (intDeltaMV) between each search point and the starting MV, and each diamond region is processed in order starting from the center of the search region. In each region, the search points are processed in raster scan order starting from the upper left corner of the region to the lower right corner. When the minimum bilCost in the current search region is less than or equal to the threshold of sbW*sbH, the integer pixel full search is terminated, otherwise, the integer pixel full search continues to the next search region until all search points are checked. The existing VVC DMVR fractional sample refinement is further applied to derive the final deltaMV (sbIdx2). Then, the refined MV of the second pass is derived as: ·MV0_pass2(sbIdx2)=MV0_pass 1+deltaMV(sbIdx2), ·MV1_pass2(sbIdx2)=MV1_pass1-deltaMV(sbIdx2). 2.1.14.3. Third pass - sub-block based bidirectional optical flow MV refinement In the third pass, refined MVs are derived by applying BDOF to 8×8 grid sub-blocks. For each 8×8 sub-block, BDOF refinement is applied to derive scaled Vx and Vy without clipping from the refined MV of the parent sub-block of the second pass. The derived bioMv(Vx, Vy) is rounded to 1 / 16 sample precision and clipped between -32 and 32. The refined MVs of the third pass (MV0_pass3(sbIdx3) and MV1_pass3(sbIdx3)) are derived as: ·MV0_pass3(sbIdx3)=MV0_pass 2(sbIdx2)+bioMv, ·MV1_pass3(sbIdx3)=MV0_pass2(sbIdx2)–bioMv. 2.1.15.OBMC When OBMC is applied, the top and left boundary pixels of the CU are refined using motion information of neighboring blocks with weighted prediction as described in JVET-L0101. The conditions under which OBMC should not be applied are as follows: When OBMC is disabled at SPS level; When the current block has intra mode or IBC mode; When the current block applies LIC; When the current luminance block area is less than or equal to 32. Sub-block boundary OBMC is performed by applying the same blending to top sub-block boundary pixels, left sub-block boundary pixels, bottom sub-block boundary pixels, and right sub-block boundary pixels using the motion information of neighboring sub-blocks. It is enabled for the following sub-block based codecs: Affine AMVP mode; Affine merge mode and sub-block based temporal motion vector prediction (SbTMVP); Sub-block based bilateral matching. 2.1.16. Sample-based BDOF In sample-based BDOF, instead of deriving motion refinement (Vx, Vy) on a block basis, it is performed for each sample. The codec block is divided into 8×8 sub-blocks. For each sub-block, whether to apply BDOF is determined by checking the SAD between two reference sub-blocks against a threshold. If it is decided to apply BDOF to a sub-block, for each sample in the sub-block, Vx and Vy are derived using a sliding 5×5 window and applying the existing BDOF process for each sliding window. The derived motion refinement (Vx, Vy) is applied to adjust the sample value of the bidirectional prediction of the center sample of the window. 2.1.17. Interpolation The 8-tap interpolation filter used in VVC is replaced by a 12-tap filter. The interpolation filter is derived from a sinc function in which the frequency response is truncated at the Nyquist frequency and clipped by a cosine window function. Table 4 gives the filter coefficients for all 16 phases. Fig.28 The frequency response of the interpolation filter and the VVC interpolation filter at half-pixel phase is shown. It compares the frequency response of the interpolation filter with the VVC interpolation filter (both at half-pixel phase). Table 4. Filter coefficients for 12-tap interpolation filter 2.1.18. Multiple Hypothesis Prediction (MHP) In the multi-hypothesis inter prediction mode (JVET-M0425), in addition to the conventional bidirectional prediction signal, one or more additional motion compensated prediction signals are transmitted by signaling. The resulting overall prediction signal is obtained by weighted superposition on a sample-by-sample basis. bi and the first additional inter-frame prediction signal / hypothesis h3, the resulting prediction signal p3 is obtained as follows: p3=(1-a)p bi +ah3. The weighting factor a is specified by a new syntax element add_hyp_weight_idx according to the following mapping. add_hyp_weight_idx a 0 1 / 4 1 -1 / 8 Similarly, more than one additional prediction signal may be used. The overall prediction signal obtained using each additional prediction signal is iteratively accumulated. p n+1 =(1-a n+1 ) n +a n+1 h n+1 The resulting overall prediction signal is obtained as the final p n (i.e. p n With maximum index n). Within this EE, up to two additional prediction signals may be used (ie n is limited to 2). The motion parameters for each additional prediction hypothesis can be signaled explicitly by specifying the reference index, motion vector predictor index and motion vector difference, or implicitly by specifying the merge index.A separate multi-hypothesis merge flag distinguishes these two signaling modes. For inter-AMVP mode, MHP is only applied if unequal weights in BCW are selected in bi-prediction mode. A combination of MHP and BDOF is possible, however BDOF is only applied to the bidirectional prediction signal part of the prediction signal (ie the ordinary first two hypotheses). 2.1.19. Adaptive Re-ranking of Merge Candidates with Template Matching (ARMC-TM) The merge candidates are adaptively reordered using template matching (TM). The reordering method is applied to the normal merge mode, template matching (TM) merge mode and affine merge mode (excluding SbTMVP candidates). For the TM merge mode, the merge candidates are reordered before the refinement process. After the merge candidate list is constructed, the merge candidates are divided into several subgroups. The subgroup size is set to 5 for the normal merge mode and TM merge mode. The subgroup size is set to 3 for the affine merge mode. The merge candidates in each subgroup are reordered in ascending order according to the cost value based on template matching. For simplicity, the merge candidates in the last subgroup instead of the first subgroup are not reordered. The template matching cost of the merge candidate is measured by the sum of absolute differences (SAD) between the samples of the template of the current block and its corresponding reference samples. The template includes a set of reconstructed samples adjacent to the current block. The reference samples of the template are located by the motion information of the merge candidate. Fig.29 Schematic diagram 2900 showing templates in reference list 0 and reference list 1 and reference samples of the templates. Fig.29 As shown, when the merge candidate utilizes bidirectional prediction, the reference sample of the template of the merge candidate is also generated by bidirectional prediction. When the merge candidate utilizes bidirectional prediction, the reference sample of the template of the merge candidate is represented by RT, and RT can be generated according to RT0 derived from the reference picture 2920 in the reference picture list 0 and RT1 derived from the reference picture 2930 in the reference picture list 1. In one example, RT0 includes a set of reference samples on the reference picture 2920 of the current block in the current picture 2910 indicated by the reference index of the merge candidate that references the reference picture in the reference list 0, wherein the MV of the merge candidate references the reference list 0. In one example, RT1 includes a set of reference samples on the reference picture 2930 of the current block indicated by the reference index of the merge candidate that references the reference picture in the reference list 1, wherein the MV of the merge candidate references the reference list 1. For a sub-block based merge candidate with a sub-block size equal to Wsub×Hsub, the above template includes several sub-templates with a size of Wsub×1, and the left template includes several sub-templates with a size of 1×Hsub. Fig.30 A template of a block with sub-block motion using motion information of a sub-block of a current block and a reference sample of the template are shown. Fig.30 As shown, the reference samples of each sub-template are derived using the motion information of the sub-blocks in the first row and the first column of the current block. 2.1.20. Geometric Partitioning Mode (GPM) with Merged Motion Vector Difference (MMVD) GPM in VVC is extended by applying motion vector refinement on top of the existing GPM unidirectional MV. A flag for the GPM CU is first signaled to specify whether this mode is used. If this mode is used, each geometric partition of the GPM CU can further decide whether to signal MVD. If MVD is signaled for the geometric partition, then after selecting the GPM merge candidate, the motion of the partition is further refined by utilizing the signaled MVD information. All other procedures remain the same as in GPM. The MVD is transmitted as a pair of distance and direction through the signal, similar to in MMVD. There are nine candidate distances (1 / 4-pixel, 1 / 2-pixel, 1-pixel, 2-pixel, 3-pixel, 4-pixel, 6-pixel, 8-pixel, 16-pixel), and eight candidate directions (four horizontal / vertical directions and four diagonal directions) involved in GPM with MMVD (GPM-MMVD). In addition, when pic_fpel_mmvd_enabled_flag is equal to 1, the MVD is left shifted by 2 bits as in MMVD. 2.1.21. Geometric Partitioning Pattern (GPM) with Template Matching (TM) Template matching is applied to GPM. When GPM mode is enabled for a CU, a CU level flag is signaled to indicate whether TM is applied to two geometric partitions. The motion information for each geometric partition is refined using TM. As shown in Table 5, when TM is selected, the template is constructed using neighboring samples on the left, above, or on the left and above depending on the partition angle. The motion is then refined by minimizing the difference between the current template and the template in the reference picture using the same search pattern with the merge mode of the half-pixel interpolation filter disabled. Table 5. Templates for the first and second geometric partitions, where A means using the top samples, L means using the left samples, and L+A means using both the left and top samples. The GPM candidate list is constructed as follows: 1. Interleaved list-0 MV candidates and list-1 MV candidates are directly derived from the regular merge candidate list, where list-0 MV candidates have higher priority than list-1 MV candidates. A pruning method with adaptive threshold based on current CU size is applied to remove redundant MV candidates. 2. Interleaved list-1 MV candidates and list-0 MV candidates are further derived directly from the regular merge candidate list, where list-1 MV candidates have higher priority than list-0 MV candidates. The same pruning method with adaptive threshold is also applied to remove redundant MV candidates. 3. Zero MV candidates are filled until the GPM candidate list is full. GPM-MMVD and GPM-TM are enabled specifically for one GPM CU. This is accomplished by first signaling the GPM-MMVD syntax. When both GPM-MMVD control flags are equal to false (i.e., GPM-MMVD is disabled for both GPM partitions), the GPM-TM flag is signaled to indicate whether template matching is applied to both GPM partitions. Otherwise (at least one GPM-MMVD flag is equal to true), the value of the GPM-TM flag is inferred to be false. 2.1.22. GPM with Inter and Intra Prediction (GPM Inter-Intra) With GPM Inter-Intra, in addition to the merge candidates for each non-rectangular partitioned area in the CU to which GPM is applied, a predefined intra prediction mode for the geometric dividing line can be selected. In the proposed method, whether it is intra or inter prediction mode is determined for each GPM separation area with a flag from the encoder. When in inter prediction mode, a unidirectional prediction signal is generated by the MV from the merge candidate list. On the other hand, when in intra prediction mode, a unidirectional prediction signal is generated from neighboring pixels for the intra prediction mode specified by the index from the encoder. The variants of possible intra prediction modes are limited by the geometry. Finally, the two unidirectional prediction signals are mixed in the same way as ordinary GPM. 2.1.23. Adaptive decoder-side motion vector refinement (Adaptive DMVR) The adaptive decoder-side motion vector refinement method consists of two new merge modes that are introduced to refine the MV in only one direction (L0 or L1) of the bidirectional prediction of the merge candidate that meets the DMVR conditions. A multi-pass DMVR process is applied to refine the motion vector for the selected merge candidate, however in the first pass (i.e. PU level) DMVR, MVD0 or MVD1 is set to zero. Similar to the conventional merge mode, the merge candidates for the proposed merge mode are derived from spatially adjacent coded blocks, TMVP, non-adjacent blocks, HMVP and paired candidates. The difference is that only those that satisfy the DMVR condition are added to the candidate list. The same merge candidate list is used by both proposed merge modes, and the merge index is encoded in the conventional merge mode. 2.1.24. Bilateral Matching AMVP-Merge Mode (AMVP-Merge) In AMVP-Merge mode, the bidirectional predictor consists of the AMVP predictor in one direction and the merged predictor in the other direction. The AMVP part of the proposed mode is signaled as regular unidirectional AMVP, i.e. the reference index and MVD are signaled, and it has a derived MVP index if template matching is used (TM_AMVP), or the MVP index is signaled when template matching is disabled. The merge index is not signaled, and the merged predictor is selected from a candidate list with the minimum template or bilateral matching cost. When the selected merged predictor and AMVP predictor meet the DMVR condition (i.e., there is at least one reference picture from the past relative to the current picture and one reference picture from the future relative to the current picture, and the distances from the two reference pictures to the current picture are the same), bilateral matching MV refinement is applied to the merged MV candidate and AMVP MVP as a starting point. Otherwise, if the template matching function is enabled, template matching MV refinement is applied to the merged predictor or the AMVP predictor with a higher template matching cost. The third pass of 8x8 sub-PU BDOF refinement of multi-pass DMVR is enabled for blocks encoded in AMVP-merge mode. 2.2. Reference Picture Resampling (RPR) In HEVC, the spatial resolution of a picture cannot be changed unless a new sequence using a new SPS starts with an IRAP picture. VVC enables picture resolution changes within a sequence at locations where no IRAP pictures are encoded (always intra-coded). This feature is sometimes called reference picture resampling (RPR) because it requires resampling the reference pictures used for inter-prediction when the reference picture has a different resolution than the current picture being decoded. To avoid additional processing steps, the RPR process in VVC is designed to be embedded in the motion compensation process and performed at the block level. In the motion compensation stage, the scaling is used together with the motion information to locate the reference samples in the reference picture to be used in the interpolation process. In VVC, the scaling ratio is limited to be greater than or equal to 1 / 2 (2 times the downsampling from the reference picture to the current picture) and less than or equal to 8 (8 times the upsampling). Three groups of resampling filters with different frequency cutoffs are specified to handle various scaling ratios between the reference picture and the current picture. The three groups of resampling filters are applied to scaling ratio ranges from 1 / 2 to 1 / 1.75, from 1 / 1.75 to 1 / 1.25, and from 1 / 1.25 to 8, respectively. Each group of resampling filters has 16 phases for luminance and 32 phases for chrominance, which is the same as the case of motion compensation interpolation filters. It is worth noting that in the case of a scaling ratio range from 1 / 1.25 to 8, a filter set of normal MC interpolation is used. In fact, the normal MC interpolation process is a special case of a resampling process with a scaling ratio range from 1 / 1.25 to 8. In addition to conventional translation block motion, the affine mode has three groups of 6-tap interpolation filters used for the luminance component to cover different scaling ratios in RPR. The horizontal and vertical scale ratios are exported based on the image width and height, and the left, right, top, and bottom scale offsets specified for the reference and current images. To support this feature, the picture resolution and the corresponding consistency window are signaled in the PPS instead of in the SPS, where the maximum picture resolution is signaled. 3. Question There are several problems in the existing video coding technology, which will be further improved for higher coding gain. 1. In ECM-3.0, DMVR is applied to several modes, such as normal merge mode, TM mode, adaptive DMVR (ADMVR) mode, AMVP-merge mode, MHP mode. The search range of the DMVR process is the same in different modes. However, the DMVR search range can be different for different prediction modes. 2. In ECM-3.0, a new merge list containing only bidirectional prediction candidates is generated for ADMVR mode. ADMVR mode performs unidirectional DMVR refinement on PU-level motion vectors, and the unidirectionally refined motion vectors are regarded as the starting point of the next stage (e.g., 16x16 sub-block-based) bidirectional DMVR refinement process. a. However, the unidirectionally refined motion vectors can be further refined by an iterative / cascaded approach at the PU level. b. Furthermore, existing ADMVR modes do not perform full-pixel search during the PU-level DMVR refinement stage. 3. In ECM-3.0, the normal merge mode, TM merge mode, and amvp-merge mode use DMVR based on bidirectional refinement, while the ADMVR mode uses unidirectional refinement with a mode index that specifies which direction to refine. However, the DMVR refinement methods for different prediction modes can be further designed. b. In addition, DMVR is currently not used in AMVP and MMVD modes, which can be redesigned for higher efficiency. 4. In the VVC standard, VTM software and ECM-3.0, reference picture resampling (ie, RPR) is allowed for all color components of a video unit. However, existing RPR is only allowed to be applied to all color components at the same time. Reference sample resampling (and / or resolution change) is applied to one color component but not others, which is not allowed. 4. Examples The following detailed embodiments should be considered as examples to explain the general concept. These embodiments should not be interpreted in a narrow manner. In addition, these embodiments can be combined in any way. The term “video unit” or “codec unit” or “block” may refer to a codec tree block (CTB), a codec tree unit (CTU), a codec block (CB), CU, PU, TU, PB, TB. In the present disclosure, regarding “blocks encoded and decoded using mode N”, “mode N” here can be a prediction mode (for example, MODE_INTRA, MODE_INTER, MODE_PLT, MODE_IBC, etc.) or a coding and decoding technology (for example, AMVP, merge, SMVD, BDOF, PROF, DMVR, AMVR, TM, affine, CIIP, GPM, GEO, TPM, MMVD, BCW, HMVP, SbTMVP, etc.). In this disclosure, the term "DMVR" may refer to conventional DMVR, adaptive DMVR, multi-stage DMVR, or any other variant related to bilateral matching based motion vector refinement. In this disclosure, "bidirectional refinement" may refer to conventional DMVR that refines both L0 motion vectors and L1 motion vectors, as detailed in Section 2.1.14. In addition, "unidirectional refinement" may refer to a DMVR process that refines only L0 motion vectors or L1 motion vectors, such as the adaptive DMVR detailed in Section 2.1.23. In the present disclosure, "Fixed-LX-Refine-L(1-X)" (where X=0 or 1) may indicate that the LX direction motion vector is fixed and the motion vector in the L(1-X) direction is refined using unidirectional refinement. In this case, for the motion vector (mv0, mv1) of bidirectional prediction, after "Fixed-L0-Refine-L1" refinement, the refined motion vector is (mv0, mv1+deltaMV1), where deltaMV1 specifies the incremental motion vector obtained during the unidirectional refinement process. Similarly, for the motion vector (mv0, mv1) of bidirectional prediction, after "Fixed-L1-Refine-L0" refinement, the refined motion vector is (mv0+deltaMV0, mv1), where deltaMV0 specifies the incremental motion vector obtained during the unidirectional refinement process. In the following discussion, the AMVP mode may be a regular AMVP mode, an affine AMVP mode, and / or an SMVD mode, and / or an AMVP-merge mode. Note that the terms mentioned below are not limited to the specific terms defined in existing standards. Any variants of the codec tool are also applicable. 4.1. Regarding the DMVR search range (for example, as shown in the first question), the following method is proposed: a. For example, the search range of a particular DMVR stage / process may be based on codec information (eg, prediction mode, block size, motion vector difference, AMVR / IMV accuracy, etc.). a. For example, the specific DMVR stage / process may be a PU / CU based DMVR process. i. For example, it may refer to a full-pixel DMVR search of a PU / CU based DMVR process. ii. For example, it may refer to a K-pixel (where K equals 1 / 2, 1 / 4 or 1 / 8 or 1 / 16, etc.) DMVR search of a PU / CU based DMVR process. b. For example, the specific DMVR stage / process may be an MxN sub-block based DMVR process. i. For example, M = N = 16 ii. For example, M=N=8. iii. For example, it may refer to a full-pixel DMVR search of an MxN sub-block based DMVR process. iv. For example, it may refer to a K-pixel (where K equals 1 / 2, 1 / 4 or 1 / 8 or 1 / 16 etc.) DMVR search of an MxN sub-block based DMVR process. c. In one example, with respect to a particular stage of DMVR (eg, 16x16 sub-block based, and / or PU / CU based), based on the prediction mode of the video unit, the maximum allowed search range for DMVR full pixels may be different. i. For example, the maximum allowed search range for full-pixel DMVR may be T1 for merge-coded blocks, while the maximum allowed search range for full-pixel DMVR may be T2 for AMVP-coded blocks. 1. For example, T1 and / or T2 are constants or variables. 2. For example, T1 is not equal to T2. 3. For example, T1 is greater than T2. 4. For example, T1 is less than T2. d. In one example, with respect to a particular stage of DMVR (e.g., 16x16 sub-block based, and / or PU / CU based), the maximum allowed search range for full-pixel DMVR may be different based on the motion vector difference (and / or motion vector) of the video unit. i. For example, if the MVD magnitude is greater than a threshold, the maximum allowed search range for full-pixel DMVR may be T1, and if the MVD magnitude is not greater than the threshold, the maximum allowed search range for full-pixel DMVR may be T2. 1. For example, T1 and / or T2 are constants or variables. 2. For example, T1 is not equal to T2. 3. For example, T1 is greater than T2. 4. For example, T1 is less than T2. e. In one example, with respect to a particular stage DMVR (e.g., 16x16 sub-block based, and / or PU / CU based), based on the precision of the motion vector difference (and / or AMVR precision, IMV precision) of the video unit, the maximum allowed search range for full-pixel DMVR may be different. i. For example, if the AMVR / IMV accuracy is X1, the maximum allowed search range for full-pixel DMVR may be T1, and if the AMVR / IMV accuracy is X2, the maximum allowed search range for full-pixel DMVR may be T2. 1. For example, X1 and X2 may refer to different AMVR / IMV precisions allowed in the codec (e.g., 1 / 16 pixel, 1 / 4 pixel, 1 / 2 pixel, 1 pixel, 4 pixel MVD precision). 2. For example, T1 and / or T2 are constants or variables. 3. For example, T1 is not equal to T2. 4. For example, T1 is greater than T2. 5. For example, T1 is less than T2. f. In one example, with respect to a particular stage of DMVR (eg, 16x16 sub-block based, and / or PU / CU based), the maximum allowed search range for full-pixel DMVR may be different based on the resolution of the current picture or reference picture. g. In one example, with respect to a particular stage of DMVR (eg, 16x16 sub-block based, and / or PU / CU based), a maximum allowed search range may be signaled from the encoder to the decoder. 4.2. Regarding ADMVR improvements (e.g., as shown in the second question), the following methods are proposed: a. For example, the PU-level motion vector of ADMVR mode can be refined by an iterative / cascaded unidirectional refinement method. a. For example, assuming that the PU-level motion vector is (mv0, mv1), a first unidirectional refinement method is applied to refine the LX motion (e.g., the refined motion vector obtained after the first unidirectional refinement is represented by (mv0+deltaA, mv1)). A second unidirectional refinement method is further applied to refine the L(1-X) motion using the motion vector refined in the first step as a starting point (e.g., the refined motion vector after the second unidirectional refinement is represented by (mv0+deltaA, mv1+deltaB)). i. Furthermore, for example, whether the second unidirectional refinement method is used may depend on the cost / error (two-sided cost) derived by the motion vectors of the first refinement. ii. For example, if the bilateral cost derived from the motion vector of the first refinement is not greater than a threshold (eg, variable or constant), then the second unidirectional refinement method is not applied. iii. Furthermore, additionally, the value of deltaB is not allowed to be equal to -deltaA, where deltaA and deltaB are vectors. iv. In addition, using the derived deltaB, deltaA can be further refined. And the refinement of deltaB and deltaA can be performed iteratively. b. For example, in ADMVR mode both single-step unidirectional refinement methods (without iterative refinement) and iterative / cascaded unidirectional refinement methods are allowed. a. For example, in addition to a single-step unidirectional refinement method (without iterative refinement), an iterative / cascaded unidirectional refinement method is additionally applied. b. Alternatively, only iterative / cascaded unidirectional refinement methods are allowed in ADMVR mode, and single-step unidirectional refinement methods (without iterative refinement) are not allowed. i. For example, an iterative / cascaded unidirectional refinement method is mandatory to apply instead of a single-step unidirectional refinement method (without iterative refinement). c. For example, whether an iterative / cascaded unidirectional refinement method is used for a video unit may be explicitly signaled in the bitstream. a. For example, for ADMVR coded video units, syntax elements (eg, mode index) are signaled, specifying whether an iterative / cascaded unidirectional refinement approach is used, and which direction is refined first. b. Alternatively, whether an iterative / cascaded unidirectional refinement method is used can be derived implicitly based on the decoder-derived cost (eg, bilateral cost). d. In one example, the DMVR model can also be refined through an iterative / cascading approach. a. Assuming that the MV refined by DMVR is (mv0+deltaA, mv1+delatB), where deltaB=-deltaA, then deltaA can be fixed to further refine delatB. In addition, deltaB can be fixed to further refine delatA, and the refinement can be performed in an iterative manner. 4.3. Regarding the application and signaling of DMVR refinement (e.g., as shown in the third question), the following method is proposed: a. For example, both bidirectional refinement and unidirectional refinement may be allowed for a certain prediction mode. a. For example, the specific prediction mode is the normal merge mode. b. For example, the specific prediction mode is TM merge mode. c. For example, the specific prediction mode is a merge mode of AMVP-Merge. d. For example, the specific prediction mode is ADMVR merge mode. e. For example, the specific prediction mode is the conventional AMVP mode. f. For example, bidirectional refinement and unidirectional refinement are both DMVR-based methods. i. Additionally, unidirectional refinement means that the PU-level DMVR process is based on adding delta MVs in either L0 or L1 motion (not both). g. For example, which DMVR refinement type (eg, bidirectional refinement, and / or L0 directional refinement, and / or L1 directional refinement) is used for the prediction mode may be explicitly signaled. i. For example, a video unit level syntax element (eg, mode index) is signaled in association with a prediction mode. ii. Alternatively, which DMVR refinement type (eg, bidirectional refinement, L0-directional refinement, or L1-directional refinement) is used for a prediction mode can be derived implicitly based on a decoder-derived cost (eg, bilateral cost). 1. For example, the DMVR refinement type with the smallest bilateral cost may be determined as the final DMVR refinement type for the prediction mode. 2. For example, which ADMVR refinement type (eg, L0-directional refinement or L1-directional refinement) is used for a prediction mode can be derived implicitly based on a decoder-derived cost (eg, bilateral cost). b. For example, PU / CU level full pixel DMVR search can be applied to ADMVR mode. c. For example, how to apply DMVR and / or ADMVR can be based on motion vector differences. a. In one example, whether to use DMVR for an AMVP-coded block may depend on the magnitude of the motion vector difference (MVD). i. For example, an AMVP-coded block is bidirectionally coded. b. In one example, whether to use DMVR for a merge-coded block may depend on the magnitude / step size / distance / direction of the motion vector difference (MVD). i. For example, the merge-coded block is bidirectionally coded. ii. For example, the merge-coded block is coded by the conventional MMVD mode. iii. For example, the merge-coded block is coded by an MMVD variant mode (such as CIIP MMVD mode, GPM MMVD mode). c. For example, DMVR may be applied to this video unit only when the indication of MVD (i.e., MVD-L0 and / or MVD-L1 values, MVD step index, MVD direction index, etc.) specifies that the MVD magnitude is greater than a certain value (e.g., DMVR may be applied under the condition of MVD and without additional flag signaling). d. For example, DMVR is allowed to be applied to this video unit only when the indication of MVD (i.e., MVD-L0 and / or MVD-L1 values, MVD step index, MVD direction index, etc.) specifies that the MVD magnitude is greater than a certain value (e.g., the DMVR flag is transmitted via the signal under MVD conditions). 4.4. Regarding RPR-related improvements (e.g., as shown in the fourth question), the following methods are proposed: a. For example, reference picture resampling may be applied to one color component of a video unit. a. For example, reference picture resampling may refer to a resolution change within the same CLVS. b. For example, reference picture resampling may refer to a resolution change across different CLVS. c. For example, reference picture resampling is applied to luma / Y components but not to chroma / U / V / Cb / Cr / Co / Cg components. d. For example, reference picture resampling is applied to chroma / U / V / Cb / Cr / Co / Cg components but not to luma / Y components. e. For example, reference picture resampling is applied to the green channel of an RGB / GBR video unit but not to the red / blue components, and vice versa. b. For example, more than one syntax element may be signaled at the video unit level (eg, SPS level), specifying separately the permission of reference picture resampling for each color component. a. For example, three syntax elements at the SPS level may be transmitted by signaling, respectively specifying whether reference picture resampling is allowed for the Y, U, and V components. i. Alternatively, two syntax elements at the SPS level may be signaled, specifying whether reference picture resampling is allowed for luma and chroma components, respectively. ii. Additionally, a general constraint flag may be signaled accordingly to impose constraints on reference picture resampling for specific color components. b. For example, three syntax elements at the SPS level may be transmitted by signaling, respectively specifying whether reference picture resampling within the same CLVS is allowed for the Y, U, and V components. i. Alternatively, two syntax elements at the SPS level may be transmitted by signaling, respectively specifying whether reference picture resampling within the same CLVS is allowed for the luma component and chroma component in the codestream. ii. Additionally, a general constraint flag may be signaled accordingly to impose constraints on reference picture resampling for specific color components. c. In addition, if there is a syntax element specifying that reference picture resampling is allowed (it does not matter for which color component), then sub-picture information may not be allowed to be present in the codestream. i. For example, in this case, the value of sps_subpic_info_present_flag should be equal to 0. d. In addition, if there is a syntax element specifying that reference picture resampling is allowed (it does not matter for which color component), then virtual boundary information may not be allowed to be present in the codestream. i. In addition, in this case, the value of sps_virtual_boundaries_present_flag shall be equal to 0. c. For example, syntax elements may be signaled at the video unit level (eg, PPS level) specifying picture width and picture height for chroma components. a. For example, pps_pic_width_in_chroma_samples and pps_pic_height_in_chroma_samples may be signaled at the PPS level, specifying the size of the picture width and the size of the picture height for the chroma components. i. For example, if reference sample resampling is applied to chroma components instead of luma components, the value of pps_pic_width_in_chroma_samples may not be equal to pps_pic_width_in_luma_samples / SubWidthC (eg, SubHeightC is a chroma resampling factor that depends on the chroma format sampling structure). ii. For example, if reference sample resampling is applied to chroma components instead of luma components, the value of pps_pic_height_in_chroma_samples may not be equal to pps_pic_height_in_luma_samples / SubHeightC (eg, SubHeightC is a chroma resampling factor that depends on the chroma format sampling structure). b. In addition, the value of pps_pic_width_in_luma_samples shall be equal to sps_pic_width_max_in_luma_samples only when the syntax element indicates that reference picture resampling is not allowed for all luma components and chroma components. i. Additionally, in this case, the value of pps_pic_height_in_luma_samples shall be equal to sps_pic_height_max_in_luma_samples. ii. In addition, in this case, the value of pps_pic_width_in_chroma_samples shall be equal to sps_pic_width_max_in_luma_samples / SubWidthC. iii. In addition, in this case, the value of pps_pic_height_in_chroma_samples shall be equal to sps_pic_width_max_in_luma_samples / SubHeightC. General 4.5. Whether and / or how to apply the method disclosed above can be transmitted by a signal at the sequence level / picture group level / picture level / slice level / tile group level, for example in the sequence header / picture header / SPS / VPS / DPS / DCI / PPS / PPS / slice header / tile group header. 4.6. Whether and / or how the above disclosed methods can be applied to PB / TB / CB / PU / TU / CU / VPDU / CTU / CTU row / slice / tile / sub-picture / other types of regions containing more than one sample or pixel. 4.7. Whether and / or how to apply the above disclosed method may depend on codec information, such as block size, color format, single / dual tree partitioning, color component, slice / picture type.
[0099] Embodiments of the present disclosure are directed to processing samples outside of boundaries.
[0100] As used in the present disclosure, the term "video unit" or "codec unit" or "block" used in the present disclosure may refer to one or more of the following: a color component, a sub-picture, a slice, a tile, a codec tree unit (CTU), a CTU row, a CTU group, a codec unit (CU), a prediction unit (PU), a transform unit (TU), a codec tree block (CTB), a codec block (CB), a prediction block (PB), a transform block (TB), a block, a sub-block of a block, a sub-region within a block, or an area including more than one sample or pixel.
[0101] In the present disclosure, regarding “blocks encoded and decoded using mode N”, “mode N” here can be a prediction mode (for example, MODE_INTRA, MODE_INTER, MODE_PLT, MODE_IBC, etc.) or a coding and decoding technology (for example, AMVP, merge, SMVD, BDOF, PROF, DMVR, AMVR, TM, affine, CIIP, GPM, GEO, TPM, MMVD, BCW, HMVP, SbTMVP, etc.).
[0102] In this disclosure, the term "DMVR" may refer to conventional DMVR, adaptive DMVR, multi-stage DMVR, or any other variant related to bilateral matching based motion vector refinement.
[0103] In this disclosure, "bidirectional refinement" may refer to conventional DMVR that refines both L0 motion vectors and L1 motion vectors, as detailed in Section 2.1.14. In addition, "unidirectional refinement" may refer to a DMVR process that refines only L0 motion vectors or L1 motion vectors, such as the adaptive DMVR detailed in Section 2.1.23.
[0104] In the present disclosure, "Fixed-LX-Refine-L(1-X)" (where X=0 or 1) may indicate that the LX direction motion vector is fixed and the motion vector in the L(1-X) direction is refined using unidirectional refinement. In this case, for the motion vector (mv0, mv1) of bidirectional prediction, after "Fixed-L0-Refine-L1" refinement, the refined motion vector is (mv0, mv1+deltaMV1), where deltaMV1 specifies the incremental motion vector obtained during the unidirectional refinement process. Similarly, for the motion vector (mv0, mv1) of bidirectional prediction, after "Fixed-L1-Refine-L0" refinement, the refined motion vector is (mv0+deltaMV0, mv1), where deltaMV0 specifies the incremental motion vector obtained during the unidirectional refinement process.
[0105] In the following discussion, the AMVP mode may be a regular AMVP mode, an affine AMVP mode, and / or an SMVD mode, and / or an AMVP-merge mode.
[0106] Fig.31 A flow chart of a method 3100 for video processing according to some embodiments of the present disclosure is shown. The method 3100 may be implemented during conversion between a video unit and a code stream of the video unit.
[0107] At block 3110, during conversion between a video unit of a video and a bitstream of the video unit, a search range for a decoder-side motion vector refinement (DMVR) process is determined based on codec information associated with the video unit. At block 3120, a set of motion candidates is determined based on the initial motion candidate and the search range. For example, the codec information may include one or more of the following: prediction mode, block size, motion vector difference, adaptive motion vector resolution (AMVR) accuracy, or integer motion vector (IMV) accuracy. In VTM, the term "IMV accuracy" may also refer to adaptive MV accuracy mode (IMV). IMV accuracy may include fractional motion vector accuracy and integer motion vector accuracy.
[0108] At block 3130, conversion is performed based on a set of motion candidates. In some embodiments, conversion may include encoding the video unit into a bitstream. Alternatively, conversion may include decoding the video unit from the bitstream. In this way, different DMVR search ranges may be used for different prediction modes. Compared to conventional solutions, some embodiments of the present disclosure may advantageously improve codec efficiency, codec gain, codec performance, and codec flexibility.
[0109] In some embodiments, the DMVR process may be a prediction unit (PU)-based or a codec unit (CU)-based DMVR process. For example, the search range may refer to a full-pixel DMVR search for a PU-based or CU-based DMVR process. Alternatively, the search range may refer to a K-pixel DMVR search for a PU-based or CU-based DMVR process. In this case, K may be one of 1 / 2, 1 / 4, 1 / 8, or 1 / 16.
[0110] In some embodiments, the DMVR process may be a DMVR process based on an MxN sub-block. In this case, M and N may be integers, respectively. For example, M and N may be equal to 16, respectively. Alternatively, M and N may be equal to 8, respectively. In some embodiments, the search range may be a full-pixel DMVR search based on an MxN sub-block DMVR process. Alternatively, the search range may be a K-pixel DMVR search based on an MxN sub-block DMVR process. In this case, K may be one of 1 / 2, 1 / 4, 1 / 8, or 1 / 16.
[0111] In some embodiments, with respect to the DMVR process, the maximum allowed search range for full-pixel DMVR may be based on the prediction mode of the video unit. In one example, with respect to a particular stage DMVR (e.g., based on 16x16 sub-blocks, and / or based on PU / CU), the maximum allowed search range for DMVR full pixels may be different based on the prediction mode of the video unit. For example, the first maximum allowed search range for full-pixel DMVR may be a first value for a block that has been merged and decoded, and the second maximum allowed search range for full-pixel DMVR may be a second value for a block that has been AMVP encoded and decoded. In this case, in some embodiments, at least one of the first value or the second value may be a constant. Alternatively, at least one of the first value or the second value may be a variable. In some embodiments, the first value may not be equal to the second value. For example, the first value may be greater than the second value. Alternatively, the first value may be less than the second value.
[0112] In some embodiments, with respect to the DMVR process, the maximum allowed search range for full-pixel DMVR may be based on at least one of the following: a motion vector or a motion vector difference of a video unit. In one example, with respect to a particular stage DMVR (e.g., based on a 16x16 sub-block, and / or based on a PU / CU), the maximum allowed search range for full-pixel DMVR may be different based on the motion vector difference (and / or motion vector) of the video unit. For example, if the motion vector difference value is greater than a threshold, the maximum allowed search range for full-pixel DMVR is a third value. If the motion vector difference value is not greater than the threshold, the maximum allowed search range for full-pixel DMVR may be a fourth value. In some embodiments, at least one of the third value or the fourth value may be a constant. Alternatively, at least one of the third value or the fourth value may be a variable. In some embodiments, the third value may not be equal to the fourth value. For example, the third value may be greater than the fourth value. Alternatively, the third value may be less than the fourth value.
[0113] In some embodiments, with respect to the DMVR process, the maximum allowed search range for full-pixel DMVR may be based on at least one of the following: the accuracy of the motion vector difference of the video unit, the AMVR accuracy, or the IMV accuracy. In one example, with respect to a specific stage DMVR (e.g., based on 16x16 sub-blocks, and / or based on PU / CU), based on the accuracy of the motion vector difference of the video unit (and / or the AMVR accuracy, the IMV accuracy), the maximum allowed search range for full-pixel DMVR may be different. For example, if the AMVR accuracy or the IMV accuracy is the first accuracy, the maximum allowed search range for full-pixel DMVR may be the fifth value. Alternatively, if the AMVR accuracy or the IMV accuracy is the second accuracy, the maximum allowed search range for full-pixel DMVR may be the sixth value. In some embodiments, at least one of the fifth value or the sixth value may be a constant. Alternatively, at least one of the fifth value or the sixth value may be a variable. In some embodiments, the fifth value may not be equal to the sixth value. For example, the fifth value may be greater than the sixth value. Alternatively, the fifth value may be less than the sixth value.
[0114] In some embodiments, the first precision and the second precision may be the AMVR precision allowed in the codec. Alternatively, the first precision and the second precision may be the IMV precision allowed in the codec. For example, the first precision may be one of the following: 1 / 16 pixel 1 / 4 pixel, 1 / 2 pixel, 1 pixel, 4 pixel MVD precision. Alternatively or additionally, the second precision may be one of the following: 1 / 16 pixel 1 / 4 pixel, 1 / 2 pixel, 1 pixel, 4 pixel MVD precision.
[0115] In some embodiments, with respect to the DMVR process, the maximum allowed search range for full pixel DMVR may be based on the resolution of the current picture of the reference picture. In one example, with respect to a particular stage DMVR (e.g., based on 16x16 sub-blocks, and / or based on PU / CU), the maximum allowed search range for full pixel DMVR may be different based on the resolution of the current picture or the reference picture.
[0116] In some embodiments, with respect to the DMVR process, the maximum allowed search range for full pixel DMVR can be indicated from the encoder to the decoder. In one example, with respect to a particular stage of DMVR (e.g., based on 16x16 sub-blocks, and / or based on PU / CU), the maximum allowed search range can be signaled from the encoder to the decoder.
[0117] In some embodiments, the indication of whether and / or how to determine the search range based on the codec information may be indicated at one of the following: sequence level, picture group level, picture level, slice level, or tile group level. In some embodiments, the indication of whether and / or how to determine the search range based on the codec information may be indicated in one of the following: sequence header, picture header, sequence parameter set (SPS), video parameter set (VPS), dependency parameter set (DPS), decoding capability information (DCI), picture parameter set (PPS), adaptation parameter set (APS), slice header, or tile group header.
[0118] In some embodiments, an indication of whether and / or how to determine the search range based on codec information may be included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region containing more than one sample or pixel.
[0119] In some embodiments, whether and / or how to determine the search range based on the codec information may be determined based on the codec information. The codec information may include at least one of the following: block size, color format, single and / or dual tree partitioning, color component, slice type, or picture type.
[0120] In some embodiments, a non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. In this case, the method may include: determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with a video unit of the video; determining a set of motion candidates based on an initial motion candidate and the search range; and generating a bitstream of the video unit based on the set of motion candidates.
[0121] In some embodiments, a method for storing a bitstream of a video may include: determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with a video unit of the video; determining a set of motion candidates based on an initial motion candidate and the search range; generating a bitstream of the video unit based on the set of motion candidates; and storing the bitstream in a non-transitory computer-readable recording medium.
[0122] Fig.32 A flow chart of a method 3200 for video processing according to some embodiments of the present disclosure is shown. The method 3200 may be implemented during conversion between a video unit and a code stream of the video unit.
[0123] At block 3210, during conversion between a video unit of a video and a bitstream of the video unit, a motion candidate for an adaptive decoder-side motion vector refinement (ADMVR) mode is determined. For example, the motion candidate is a prediction unit (PU) level motion vector.
[0124] At block 3220, the motion candidate is refined by iteratively applying a refinement process. In some embodiments, the refinement process may be a unidirectional refinement process. For example, the PU-level motion vectors of the ADMVR mode may be refined by an iterative / cascaded unidirectional refinement method. The term "iterative" may be interchangeable with the term "cascaded".
[0125] At block 3230, conversion is performed based on the refined motion candidates. In some embodiments, the conversion may include encoding the video unit into a bitstream. Alternatively, the conversion may include decoding the video unit from the bitstream. In this way, the unidirectionally refined motion vectors can be further refined by an iterative / cascaded approach. In addition, the ADMVR mode can perform a full pixel search during the PU level DMVR refinement stage. Compared with traditional solutions, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance, and codec flexibility.
[0126] In some embodiments, refining the motion candidates by iteratively applying a refinement process may include applying a first unidirectional refinement process to refine the first motion candidate in a first direction (e.g., LX motion vector, where X can be 0 or 1), and applying a second unidirectional refinement process to refine the second motion candidate in a second direction (e.g., L(1-X) motion vector, where X can be 0 or 1). For example, the motion candidate is represented as (mv0, mv1), the first refined motion candidate after the first unidirectional refinement process is represented as (mv0+deltaA, mv1), and the second refined motion candidate after the second unidirectional refinement is represented as (mv0+deltaA, mv1+deltaB). In this case, the first refined motion can be used as a starting point in the second unidirectional refinement process, deltaA represents the first variable, and deltaB represents the second variable.
[0127] In some embodiments, whether the second unidirectional refinement process is applied may be based on a cost or error derived by the first refined motion candidate. For example, the cost may include a bilateral cost.
[0128] In some embodiments, if the bilateral cost derived by the first refined motion candidate is not greater than a threshold, the second unidirectional refinement process may not be applied. For example, the threshold may be a variable. Alternatively, the threshold may be a constant. In some embodiments, the value of the second variable may not be allowed to be equal to the negative value of the first variable. In this case, the first variable and the second variable may be vectors. For example, the value of deltaB is not allowed to be equal to -deltaA.
[0129] In some embodiments, the first variable can be refined using the second variable. In this case, the refinement of the first variable and the second variable can be performed iteratively. For example, using the derived deltaB, deltaA can be further refined. And the refinement of deltaB and deltaA can be performed iteratively.
[0130] In some embodiments, both the single-step unidirectional refinement process and the iterative unidirectional refinement process are allowed for the ADMVR mode. The single-step unidirectional refinement process has no iterative refinement. In some embodiments, in addition to the single-step unidirectional refinement process, the iterative unidirectional refinement process can also be applied.
[0131] In some embodiments, the iterative unidirectional refinement process may be enabled for the ADMVR mode, and the single-step unidirectional refinement process may not be enabled for the ADMVR mode. For example, the iterative unidirectional refinement process may be applied to replace the single-step unidirectional refinement process. In other words, the iterative / cascaded unidirectional refinement method is forced to be applied, replacing the single-step unidirectional refinement method (without iterative refinement).
[0132] In some embodiments, whether the iterative unidirectional refinement process is to be applied to the video unit can be indicated in the bitstream. For example, a syntax element for a video unit that is encoded and decoded by ADMVR can be indicated. For example, the syntax element can be a mode index. In this case, the syntax element can indicate whether the iterative unidirectional refinement process is to be applied, and can also indicate the direction to be refined first.
[0133] In some embodiments, whether the iterative unidirectional refinement process is to be applied may be derived implicitly based on the decoder derived cost. For example, the decoder derived cost may be a bilateral cost.
[0134] In some embodiments, the DMVR pattern can be refined by an iterative process. For example, the refined motion vector can be represented as (mv0+deltaA, mv1+deltaB). In this case, deltaB=-deltaA, deltaB is fixed to further refine deltaB, and deltaB is fixed to further refine deltaA, and the refinement of deltaA and deltaB is performed in an iterative manner.
[0135] In some embodiments, an indication of whether and / or how to refine the motion candidates by iteratively applying the refinement process is indicated at one of the following: sequence level, picture group level, picture level, slice level, or tile group level. In some embodiments, an indication of whether and / or how to refine the motion candidates by iteratively applying the refinement process is indicated in one of the following: sequence header, picture header, sequence parameter set (SPS), video parameter set (VPS), dependency parameter set (DPS), decoding capability information (DCI), picture parameter set (PPS), adaptation parameter set (APS), slice header, or tile group header.
[0136] In some embodiments, an indication of whether and / or how to refine a motion candidate by iteratively applying a refinement process is included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region containing more than one sample or pixel.
[0137] In some embodiments, based on the codec information, it may be determined whether and / or how to refine the motion candidate by iteratively applying the refinement process. The codec information may include at least one of the following: block size, color format, single and / or dual tree partitioning, color component, slice type, or picture type.
[0138] In some embodiments, a non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. The method may include: determining motion candidates for an adaptive decoder-side motion vector refinement (ADMVR) mode of a video unit of the video; refining the motion candidates by iteratively applying a refinement process; and generating a bitstream of the video unit based on the refined motion candidates.
[0139] In some embodiments, a method for storing a bitstream of a video may include: determining motion candidates for an adaptive decoder-side motion vector refinement (ADMVR) mode of a video unit of the video; refining the motion candidates by iteratively applying a refinement process; generating a bitstream of the video unit based on the refined motion candidates; and storing the bitstream in a non-transitory computer-readable recording medium.
[0140] Fig.33 A flow chart of a method 3300 for video processing according to some embodiments of the present disclosure is shown. The method 3300 may be implemented during conversion between a video unit and a code stream of the video unit.
[0141] At block 3310, during conversion between a video unit of a video and a bitstream of the video unit, based on a prediction mode of the video unit, whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit is determined. For example, both the bidirectional refinement process and the unidirectional refinement process are allowed for a specific prediction mode. In some embodiments, the specific prediction mode may include one of the following: a conventional merge mode, a template matching (TM) mode, an advanced motion vector prediction (AMVP)-merge mode, an adaptive decoder motion vector refinement (ADMVR) merge mode, or a conventional AMVP mode.
[0142] At block 3320, conversion is performed based on the determination. In some embodiments, the conversion may include encoding the video unit into a bitstream. Alternatively, the conversion may include decoding the video unit from the bitstream. In this way, the manner of DMVR refinement for different prediction modes can be improved. Compared with traditional solutions, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance, and codec flexibility.
[0143] In some embodiments, the bidirectional refinement process and the unidirectional refinement process may be a DMVR-based process. In some embodiments, the unidirectional refinement process may include a prediction unit (PU) level DMVR process based on adding an incremental motion vector (MV) to a first motion vector in a first direction or a second motion vector in a second direction.
[0144] In some embodiments, the DMVR refinement mode used for the prediction mode is explicitly indicated. For example, which DMVR refinement style (e.g., bidirectional refinement, and / or L0 directional refinement, and / or L1 directional refinement) is used for the prediction mode can be explicitly signaled. In some embodiments, a video unit level syntax element can be indicated in association with the prediction mode. For example, the video unit level syntax element can be a mode index.
[0145] In some embodiments, the DMVR refinement pattern used for the prediction mode is implicitly derived based on the decoder-derived cost. The DMVR refinement may include one or more of: bidirectional refinement, L0-direction refinement, or L1-direction refinement. The decoder-derived cost may be a bilateral cost. For example, the DMVR refinement pattern with the minimum bilateral cost may be determined as the final DMVR refinement pattern for the prediction mode.
[0146] In some other embodiments, the ADMVR refinement pattern used for the prediction mode can be implicitly derived based on the decoder derived cost. The ADMVR refinement pattern can include one of the following: L0 direction refinement or L1 direction refinement. The decoder derived cost can be a bilateral cost. In some embodiments, a prediction unit (PU) level or a codec unit (CU) level full pixel DMVR search can be applied to the ADMVR mode.
[0147] In some embodiments, the method of applying at least one of DMVR or ADMVR is based on motion vector differences. For example, how to apply DMVR and / or ADMVR can be based on motion vector differences.
[0148] In some embodiments, whether to use DMVR for an AMVP-coded block may depend on the magnitude of the motion vector difference (MVD).For example, the AMVP-coded block is bidirectionally coded.
[0149] In some embodiments, whether DMVR is used for a merged coded block may depend on at least one of the following: the magnitude, step size, distance, or direction of a motion vector difference (MVD). For example, a merged coded block may be bidirectionally coded. Alternatively, a merged coded block may be coded and decoded by a conventional MMVD mode. In some embodiments, a merged coded block may be coded and decoded by an MMVD variant mode. For example, an MMVD variant mode may include one or more of the following: a CIIP MMVD mode or a GPM MMVD mode.
[0150] In some embodiments, DMVR may be applied to a video unit if the indication of the MVD specifies that the MVD magnitude is greater than a threshold. The indication of the MVD may include one or more of the following: MVD-L0 value, MVD-L1 value, MVD step index, or MVD direction index. For example, DMVR may be applied under the condition of MVD and without additional flag signaling.
[0151] In some embodiments, if the indication of MVD specifies that the MVD magnitude is greater than a threshold, then DMVR may be enabled to be applied to the video unit, e.g., a DMVR flag is signaled under MVD conditions. The indication of MVD may include one or more of: MVD-L0 value, MVD-L1 value, MVD step index, or MVD direction index.
[0152] In some embodiments, an indication of whether and / or how to determine whether to apply at least one of a bidirectional refinement process or a unidirectional refinement process to a video unit based on a prediction mode is indicated at one of the following: a sequence level, a group of pictures level, a picture level, a slice level, or a tile group level. In some embodiments, an indication of whether and / or how to determine whether to apply at least one of a bidirectional refinement process or a unidirectional refinement process to a video unit based on a prediction mode is indicated in one of the following: a sequence header, a picture header, a sequence parameter set (SPS), a video parameter set (VPS), a dependency parameter set (DPS), decoding capability information (DCI), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, or a tile group header.
[0153] In some embodiments, an indication of whether and / or how to determine whether to apply at least one of a bidirectional refinement process or a unidirectional refinement process to a video unit based on a prediction mode is included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region containing more than one sample or pixel.
[0154] In some embodiments, based on the information of the codec, whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the prediction mode can be determined. For example, the information of the codec can include at least one of the following: block size, color format, single and / or dual tree partitioning, color component, slice type, or picture type.
[0155] In some embodiments, a non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. The method may include determining whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit based on a prediction mode of the video unit of the video; and generating a bitstream of the video unit based on the determination.
[0156] In some embodiments, a method for storing a bitstream of a video may include determining, based on a prediction mode of a video unit of the video, whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit; generating a bitstream of the video unit based on the determination; and storing the bitstream in a non-transitory computer-readable recording medium.
[0157] Fig.34 A flow chart of a method 3400 for video processing according to some embodiments of the present disclosure is shown. The method 3400 may be implemented during conversion between a video unit and a code stream of the video unit.
[0158] At block 3410, during conversion between a video unit of a video and a bitstream of the video unit, reference picture resampling is applied to a color component of the video unit. At block 3420, conversion is performed based on the reference picture resampling. In some embodiments, conversion may include encoding the video unit into the bitstream. Alternatively, conversion may include decoding the video unit from the bitstream.
[0159] In some embodiments, the reference picture resampling may be a resolution change within the same coded layer video sequence (CLVS).Alternatively, the reference picture resampling may be a resolution change across different CLVS.
[0160] For example, reference picture resampling may be applied to a luma component or a Y component. In this case, reference picture resampling may not be applied to at least one of the following: a chroma component, a U component, a V component, a Cb component, a Cr component, a Co component, or a Cg component.
[0161] In some embodiments, reference picture resampling may be applied to at least one of the following: a chroma component, a U component, a V component, a Cb component, a Cr component, a Co component, or a Cg component. In some embodiments, reference picture resampling may not be applied to a luma component or a Y component.
[0162] In some embodiments, reference picture resampling may be applied to the green channel of a red-green-blue (RGB) or GBR video unit. In some embodiments, reference picture resampling may not be applied to the red component or the blue component.
[0163] In some embodiments, reference picture resampling may not be applied to the green channel of a red-green-blue (RGB) or GBR video unit.In some embodiments, reference picture resampling may be applied to the red component or the blue component.
[0164] In some embodiments, multiple syntax elements may be indicated at the video unit level. In this case, multiple syntax elements specify the permission of reference picture resampling for each color component separately. For example, multiple syntax elements at the SPS level may be indicated.
[0165] In some embodiments, three syntax elements at the SPS level may be indicated. The syntax elements may specify whether reference picture resampling is allowed for the Y component, U component, and V component, respectively. Alternatively, two syntax elements at the SPS level may be indicated. The two syntax elements may specify whether reference picture resampling is allowed for the luma component and the chroma component, respectively. In some embodiments, a general constraint flag may be indicated to impose constraints on reference picture resampling for a specific color component.
[0166] In some embodiments, three syntax elements at the SPS level may be indicated. The three syntax elements may specify whether reference picture resampling within the same CLVS is allowed for the Y component, U component, and V component, respectively. In some embodiments, two syntax elements at the SPS level may be indicated. The two syntax elements may specify whether reference picture resampling within the same CLVS is allowed for the luminance component and the chrominance component in the bitstream, respectively. In some embodiments, a general constraint flag may be indicated to impose constraints on reference picture resampling for a specific color component.
[0167] In some embodiments, if there is a syntax element specifying that reference picture resampling is allowed, sub-picture information may not be allowed to be present in the codestream. For example, if there is a syntax element specifying that reference picture resampling is allowed (regardless of which color component), sub-picture information may not be allowed to be present in the codestream. For example, the value of sps_subpic_info_present_flag may be set equal to 0.
[0168] In some embodiments, if there is a syntax element specifying that reference picture resampling is allowed (eg, regardless of which color component), virtual boundary information is not allowed to be present in the codestream. For example, the value of sps_virtual_boundaries_present_flag may be set equal to 0.
[0169] In some embodiments, the syntax elements may be indicated at the video unit level. In this case, the syntax elements may specify the picture width and picture height for the chroma components. For example, pps_pic_width_in_chroma_samples and pps_pic_height_in_chroma_samples may be indicated at the PPS level and specify the size of the picture width and the size of the picture height for the chroma components.
[0170] In some embodiments, if reference sample resampling is applied to chroma components instead of luma components, the value of pps_pic_width_in_chroma_samples may not be equal to pps_pic_width_in_luma_samples / SubWidthC. SubWidthC may be a chroma resampling factor that depends on the chroma format sampling structure. In some embodiments, if reference sample resampling is applied to chroma components instead of luma components, the value of ps_pic_height_in_chroma_samples may not be equal to pps_pic_height_in_luma_samples / SubHeightC. SubHeightC may be a chroma resampling factor that depends on the format sampling structure.
[0171] In some embodiments, if the syntax element indicates that reference picture resampling is not allowed for all luma components and chroma components, the value of pps_pic_width_in_luma_samples may be set equal to sps_pic_width_max_in_luma_samples. For example, the value of pps_pic_height_in_luma_samples may be set equal to sps_pic_height_max_in_luma_samples. In some embodiments, the value of pps_pic_width_in_chroma_samples may be set equal to sps_pic_width_max_in_luma_samples / SubWidthC. In some other embodiments, the value of pps_pic_height_in_chroma_samples may be set equal to sps_pic_width_max_in_luma_samples / SubHeightC.
[0172] In some embodiments, the indication of whether and / or how to apply reference picture resampling to one color component of a video unit may be indicated at one of the following: sequence level, group of picture level, picture level, slice level, or tile group level. In some embodiments, the indication of whether and / or how to apply reference picture resampling to one color component of a video unit may be indicated in one of the following: sequence header, picture header, sequence parameter set (SPS), video parameter set (VPS), dependency parameter set (DPS), decoding capability information (DCI), picture parameter set (PPS), adaptation parameter set (APS), slice header, or tile group header.
[0173] In some embodiments, an indication of whether and / or how to apply reference picture resampling to a color component of a video unit may be included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region containing more than one sample or pixel.
[0174] In some embodiments, based on information of the codec of the video unit, it can be determined whether and / or how to apply reference picture resampling to a color component of the video unit. The codec information can include at least one of the following: block size, color format, single and / or dual tree partitioning, color component, slice type, or picture type.
[0175] In some embodiments, a non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. The method may include applying reference picture resampling to a color component of a video unit of the video; and generating a bitstream of the video unit based on the reference picture resampling.
[0176] In some embodiments, a method for storing a bitstream of a video may include applying reference picture resampling to a color component of a video unit of the video; generating a bitstream of the video unit based on the reference picture resampling; and storing the bitstream in a non-transitory computer-readable recording medium.
[0177] Embodiments of the present disclosure may be described according to the following clauses, features of which may be combined in any reasonable way.
[0178] Clause 1. A method of video processing, comprising: during conversion between a video unit of a video and a bitstream of the video unit, determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with the video unit; determining a set of motion candidates based on initial motion candidates and the search range; and performing the conversion based on the set of motion candidates.
[0179] Clause 2. The method of clause 1, wherein the codec information comprises at least one of: prediction mode, block size, motion vector difference, adaptive motion vector resolution (AMVR) precision, or integer motion vector (IMV) precision.
[0180] Clause 3. The method of clause 1, wherein the DMVR process is a prediction unit (PU) or codec unit (CU) based DMVR process.
[0181] Clause 4. The method of clause 3, wherein the search range is a full-pixel DMVR search of the PU- or CU-based DMVR process.
[0182] Clause 5. The method of clause 3, wherein the search range is a K-pixel DMVR search of the PU- or CU-based DMVR process.
[0183] Clause 6. The method of clause 5, wherein K is one of: 1 / 2, 1 / 4, 1 / 8, or 1 / 16.
[0184] Clause 7. The method of clause 1, wherein the DMVR process is an MxN sub-block based DMVR process, and wherein M and N are each integers.
[0185] Clause 8. The method of clause 7, wherein M and N are each equal to 16, or wherein M and N are each equal to 8.
[0186] Clause 9. The method of clause 7, wherein the search range is a full-pixel DMVR search of the MxN sub-block based DMVR process.
[0187] Clause 10. The method of clause 7, wherein the search range is a K-pixel DMVR search of the MxN sub-block based DMVR process.
[0188] Clause 11. The method of clause 10, wherein K is one of: 1 / 2, 1 / 4, 1 / 8, or 1 / 16.
[0189] Clause 12. The method of clause 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is based on a prediction mode of the video unit.
[0190] Clause 13. The method of clause 12, wherein a first maximum allowed search range for the full-pixel DMVR is a first value for a merged-coded block, and a second maximum allowed search range for the full-pixel DMVR is a second value for an AMVP-coded block.
[0191] Clause 14. The method of clause 13, wherein at least one of the first value or the second value is a constant, or wherein at least one of the first value or the second value is a variable.
[0192] Clause 15. The method of clause 13, wherein the first value is not equal to the second value.
[0193] Clause 16. The method of clause 13, wherein the first value is greater than the second value, or wherein the first value is less than the second value.
[0194] Clause 17. The method of clause 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is based on at least one of: a motion vector or a motion vector difference of the video unit.
[0195] Clause 18. A method according to Clause 17, wherein if the motion vector difference value is greater than a threshold, the maximum allowable search range for the full-pixel DMVR is a third value, and wherein if the motion vector difference value is not greater than the threshold, the maximum allowable search range for the full-pixel DMVR is a fourth value.
[0196] Clause 19. The method of Clause 18, wherein at least one of the third value or the fourth value is a constant, or wherein at least one of the third value or the fourth value is a variable.
[0197] Clause 20. The method of Clause 18, wherein the third value is not equal to the fourth value.
[0198] Clause 21. The method of clause 18, wherein the third value is greater than the fourth value, or wherein the third value is less than the fourth value.
[0199] Clause 22. The method of clause 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is based on at least one of: precision of motion vector differences of the video unit, AMVR precision, or IMV precision.
[0200] Clause 23. A method according to Clause 22, wherein if the AMVR accuracy or the IMV accuracy is a first accuracy, the maximum allowable search range for the full-pixel DMVR is a fifth value, and wherein if the AMVR accuracy or the IMV accuracy is a second accuracy, the maximum allowable search range for the full-pixel DMVR is a sixth value.
[0201] Clause 24. The method of clause 23, wherein the first precision and the second precision are AMVR precisions allowed in a codec, or wherein the first precision and the second precision are IMV precisions allowed in a codec.
[0202] Clause 25. The method of Clause 23, wherein at least one of the fifth value or the sixth value is a constant, or wherein at least one of the fifth value or the sixth value is a variable.
[0203] Clause 26. The method of clause 23, wherein the fifth value is not equal to the sixth value.
[0204] Clause 27. The method of clause 23, wherein the fifth value is greater than the sixth value, or wherein the fifth value is less than the sixth value.
[0205] Clause 28. The method of clause 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is based on a resolution of the current picture of a reference picture.
[0206] Clause 29. The method of clause 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is indicated from an encoder to a decoder.
[0207] Clause 30. A method according to any one of clauses 1-29, wherein an indication of whether and / or how to determine the search range based on the codec information is indicated at one of: a sequence level, a picture group level, a picture level, a slice level, or a tile group level.
[0208] Clause 31. A method according to any one of clauses 1-29, wherein an indication of whether and / or how to determine the search range based on the codec information is indicated in one of the following: a sequence header, a picture header, a sequence parameter set (SPS), a video parameter set (VPS), a dependency parameter set (DPS), decoding capability information (DCI), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, or a tile group header.
[0209] Clause 32. A method according to any one of clauses 1-29, wherein an indication of whether and / or how to determine the search range based on the codec information is included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or an area containing more than one sample or pixel.
[0210] Clause 33. The method according to any one of clauses 1-29 further includes: determining whether and / or how to determine the search range based on the codec information of the video unit, wherein the codec information includes at least one of the following: block size, color format, single and / or double tree partitioning, color component, slice type, or picture type.
[0211] Clause 34. A method of video processing, comprising: determining motion candidates for an adaptive decoder-side motion vector refinement (ADMVR) mode during conversion between a video unit of a video and a bitstream of the video unit; refining the motion candidates by iteratively applying a refinement process; and performing the conversion based on the refined motion candidates.
[0212] Clause 35. The method of clause 34, wherein the motion candidate is a prediction unit (PU) level motion vector.
[0213] Clause 36. The method of clause 34, wherein the thinning process is a unidirectional thinning process.
[0214] Clause 37. The method of clause 34, wherein refining the motion candidates by iteratively applying the refinement process comprises: applying a first unidirectional refinement process to refine the first motion candidate in a first direction; and applying a second unidirectional refinement process to refine the second motion candidate in a second direction.
[0215] Clause 38. A method according to clause 37, wherein the motion candidate is represented as (mv0, mv1), the first refined motion candidate after the first unidirectional refinement process is represented as (mv0+deltaA, mv1), the second refined motion candidate after the second unidirectional refinement is represented as (mv0+deltaA, mv1+deltaB), and wherein the first refined motion is used as a starting point in the second unidirectional refinement process, deltaA represents a first variable and deltaB represents a second variable.
[0216] Clause 39. The method of clause 38, further comprising determining whether the second unidirectional refinement process is applied based on a cost or error derived by the first refined motion candidate.
[0217] Clause 40. The method of clause 38, wherein the second unidirectional refinement process is not applied if a bilateral cost derived by the first refined motion candidate is not greater than a threshold.
[0218] Clause 41. The method of clause 38, wherein a value of the second variable is not allowed to be equal to a negative value of the first variable, wherein the first variable and the second variable are vectors.
[0219] Clause 42. The method of clause 38, further comprising: refining the first variable using the second variable; and iteratively performing the refinement on the first variable and the second variable.
[0220] Clause 43. The method of clause 38, wherein both single-step unidirectional refinement process and iterative unidirectional refinement process are enabled for the ADMVR mode.
[0221] Clause 44. The method of clause 43, wherein the iterative unidirectional refinement process is applied in addition to the single-step unidirectional refinement process.
[0222] Clause 45. The method of clause 34, wherein an iterative unidirectional refinement process is enabled for the ADMVR mode and a single-step unidirectional refinement process is not enabled for the ADMVR mode.
[0223] Clause 46. The method of clause 45, wherein the iterative unidirectional refinement process is applied to replace the single-step unidirectional refinement process.
[0224] Clause 47. The method of clause 34, wherein whether the iterative unidirectional refinement process is to be applied to the video unit is indicated in the codestream.
[0225] Clause 48. The method of clause 47, wherein a syntax element is indicated for the video unit decoded by ADMVR, and the syntax element indicates whether the iterative unidirectional refinement process is applied and also indicates a direction to be refined first.
[0226] Clause 49. The method of clause 34, wherein whether the iterative unidirectional refinement process is to be applied is derived implicitly from a decoder-derived cost.
[0227] Clause 50. The method of clause 34, wherein the DMVR model is refined through an iterative process.
[0228] Clause 51. A method according to clause 50, wherein the refined motion vector is represented as (mv0+deltaA, mv1+deltaB), where deltaB=-deltaA, delta is fixed to further refine deltaB, and deltaB is fixed to further refine deltaA, and the refinement of deltaA and deltaB is performed in an iterative manner.
[0229] Clause 52. A method according to any of clauses 34-51, wherein an indication of whether and / or how to refine the motion candidate by iteratively applying the refinement process is indicated at one of: a sequence level, a picture group level, a picture level, a slice level, or a tile group level.
[0230] Clause 53. A method according to any of clauses 34-51, wherein an indication of whether and / or how to refine the motion candidate by iteratively applying the refinement process is indicated in one of: a sequence header, a picture header, a sequence parameter set (SPS), a video parameter set (VPS), a dependency parameter set (DPS), decoding capability information (DCI), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, or a tile group header.
[0231] Clause 54. A method according to any of clauses 34-51, wherein an indication of whether and / or how to refine the motion candidate by iteratively applying the refinement process is included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region containing more than one sample or pixel.
[0232] Clause 55. The method according to any one of clauses 34-51 further includes: determining whether and / or how to refine the motion candidate by iteratively applying the refinement process based on the codec information of the video unit, the codec information including at least one of the following: block size, color format, single and / or double tree partitioning, color component, slice type, or picture type.
[0233] Item 56. A method of video processing, comprising: during conversion between a video unit of a video and a bitstream of the video unit, determining whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit based on a prediction mode of the video unit; and performing the conversion based on the determination.
[0234] Clause 57. The method of clause 56, wherein both the bidirectional refinement process and the unidirectional refinement process are enabled for a specific prediction mode.
[0235] Clause 58. A method according to clause 57, wherein the specific prediction mode comprises one of: a regular merge mode, a template matching (TM) mode, an advanced motion vector prediction (AMVP)-merge mode, an adaptive decoder motion vector refinement (ADMVR) merge mode, or a regular AMVP mode.
[0236] Clause 59. The method of clause 56, wherein the bidirectional refinement process and the unidirectional refinement process are DMVR-based processes.
[0237] Clause 60. The method of clause 59, wherein the unidirectional refinement process comprises a prediction unit (PU) level DMVR process based on adding a delta motion vector (MV) to a first motion vector in a first direction or a second motion vector in a second direction.
[0238] Clause 61. The method of clause 56, wherein the DMVR refinement style used for the prediction mode is explicitly indicated.
[0239] Clause 62. The method of clause 61, wherein a video unit level syntax element is indicated in association with the prediction mode.
[0240] Clause 63. The method of clause 56, wherein the DMVR refinement pattern used for the prediction mode is derived implicitly from a decoder-derived cost.
[0241] Clause 64. The method of clause 63, wherein the DMVR refinement pattern with the smallest bilateral cost is determined as a final DMVR refinement pattern for the prediction mode.
[0242] Clause 65. The method of clause 63, wherein the ADMVR refinement pattern used for the prediction mode is derived implicitly from a decoder-derived cost.
[0243] Clause 66. The method of clause 56, wherein a prediction unit (PU) level or a codec unit (CU) level full pixel DMVR search is applied to the ADMVR mode.
[0244] Clause 67. The method of clause 56, wherein the method of applying at least one of DMVR or ADMVR is based on motion vector differences.
[0245] Clause 68. The method of clause 67, wherein whether to use DMVR for an AMVP-encoded block depends on a magnitude of a motion vector difference (MVD).
[0246] Clause 69. The method of clause 68, wherein the AMVP-encoded block is bidirectionally-encoded.
[0247] Clause 70. The method of clause 67, wherein whether to use DMVR for a merge-coded block depends on at least one of: a magnitude, a step size, a distance, or a direction of a motion vector difference (MVD).
[0248] Clause 71. A method according to clause 70, wherein the merge-coded block is bidirectionally coded, or wherein the merge-coded block is coded by a conventional MMVD mode, or wherein the merge-coded block is coded by an MMVD variant mode.
[0249] Clause 72. The method of clause 67, wherein DMVR is applied to the video unit if the indication of the MVD specifies that the MVD magnitude is greater than a threshold.
[0250] Clause 73. The method of clause 67, wherein if the indication of the MVD specifies that the MVD magnitude is greater than a threshold, then DMVR is enabled to be applied to the video unit.
[0251] Clause 74. A method according to any one of clauses 56-73, wherein an indication of whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the prediction mode is indicated at one of: a sequence level, a picture group level, a picture level, a slice level, or a tile group level.
[0252] Clause 75. A method according to any one of clauses 56-73, wherein an indication of whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the prediction mode is indicated in one of the following: a sequence header, a picture header, a sequence parameter set (SPS), a video parameter set (VPS), a dependency parameter set (DPS), decoding capability information (DCI), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, or a tile group header.
[0253] Clause 76. A method according to any one of clauses 56-73, wherein an indication of whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the prediction mode is included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region containing more than one sample or pixel.
[0254] Clause 77. The method according to any one of clauses 56-73 further includes: determining whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the encoding and decoding information of the video unit and based on the prediction mode, the encoding and decoding information includes at least one of the following: block size, color format, single and / or dual tree partitioning, color component, slice type, or picture type.
[0255] Clause 78. A method of video processing, comprising: during conversion between a video unit of a video and a bitstream of the video unit, applying reference picture resampling to a color component of the video unit; and performing the conversion based on the reference picture resampling.
[0256] Clause 79. The method of clause 78, wherein the reference picture resampling is a resolution change within a same coded layer video sequence (CLVS).
[0257] Clause 80. The method of clause 78, wherein the reference picture resampling is a resolution change across different CLVS.
[0258] Clause 81. A method according to clause 78, wherein the reference picture resampling is applied to a luma component or a Y component, and wherein the reference picture resampling is not applied to at least one of the following: a chroma component, a U component, a V component, a Cb component, a Cr component, a Co component or a Cg component.
[0259] Clause 82. A method according to Clause 78, wherein the reference picture resampling is applied to at least one of the following: a chroma component, a U component, a V component, a Cb component, a Cr component, a Co component or a Cg component, or wherein the reference picture resampling is not applied to a luma component or a Y component.
[0260] Clause 83. The method of clause 78, wherein the reference picture resampling is applied to a green channel of a red-green-blue (RGB) or GBR video unit, and wherein the reference picture resampling is not applied to a red component or a blue component.
[0261] Clause 84. The method of clause 78, wherein the reference picture resampling is not applied to a green channel of a red-green-blue (RGB) or GBR video unit, and wherein the reference picture resampling is applied to a red component or a blue component.
[0262] Clause 85. The method of clause 78, wherein a plurality of syntax elements are indicated at a video unit level, and the plurality of syntax elements separately specify permission for reference picture resampling for each color component.
[0263] Clause 86. A method according to clause 85, wherein three syntax elements of the SPS level are indicated, and the syntax elements specify whether the reference picture resampling is allowed for the Y component, the U component, and the V component, respectively.
[0264] Clause 87. A method according to clause 85, wherein two syntax elements of the SPS level are indicated, and the two syntax elements specify whether the reference picture resampling is allowed for luma components and chroma components, respectively.
[0265] Clause 88. The method of clause 85, wherein a general constraint flag is indicated to impose constraints on the reference picture resampling for a specific color component.
[0266] Clause 89. The method according to clause 78, wherein three syntax elements of the SPS level are indicated, and the three syntax elements respectively specify whether the reference picture resampling within the same CLVS is allowed for the Y component, the U component, and the V component.
[0267] Clause 90. A method according to clause 78, wherein two syntax elements of the SPS level are indicated, and the two syntax elements respectively specify whether resampling of the reference picture within the same CLVS is allowed for the luma component and the chroma component in the codestream.
[0268] Clause 91. The method of clause 78, wherein a general constraint flag is indicated to impose constraints on the reference picture resampling for a specific color component.
[0269] Clause 92. The method of clause 78, wherein sub-picture information is not allowed to be present in the codestream if there is a syntax element specifying that resampling of the reference picture is allowed.
[0270] Clause 93. The method of clause 92, wherein the value of sps_subpic_info_present_flag is set equal to 0.
[0271] Clause 94. The method of clause 78, wherein if there is a syntax element specifying that resampling of the reference picture is allowed, virtual boundary information is not allowed to be present in the codestream.
[0272] Clause 95. The method of clause 94, wherein the value of sps_virtual_boundaries_present_flag is set equal to 0.
[0273] Clause 96. The method of clause 78, wherein the syntax element is indicated at a video unit level, and the syntax element specifies a picture width and a picture height for chroma components.
[0274] Clause 97. The method of clause 96, wherein pps_pic_width_in_chroma_samples and pps_pic_height_in_chroma_samples are indicated at the PPS level and specify the size of the picture width and the size of the picture height for chroma components.
[0275] Clause 98. The method of clause 97, wherein if the reference sample resampling is applied to chroma components but not luma components, the value of pps_pic_width_in_chroma_samples is not equal to pps_pic_width_in_luma_samples / SubWidthC, wherein SubWidthC is a chroma resampling factor that depends on the chroma format sampling structure.
[0276] Clause 99. The method of clause 97, wherein if the reference sample resampling is applied to chroma components but not luma components, the value of ps_pic_height_in_chroma_samples is not equal to pps_pic_height_in_luma_samples / SubHeightC, where SubHeightC is a chroma resampling factor that depends on the format sampling structure.
[0277] Clause 100. The method of clause 78, wherein if the syntax element indicates that reference picture resampling is not allowed for all luma components and chroma components, the value of pps_pic_width_in_luma_samples is set equal to sps_pic_width_max_in_luma_samples.
[0278] Clause 101. The method of clause 100, wherein the value of pps_pic_height_in_luma_samples is set equal to sps_pic_height_max_in_luma_samples.
[0279] Clause 102. The method of clause 100, wherein the value of pps_pic_width_in_chroma_samples is set equal to sps_pic_width_max_in_luma_samples / SubWidthC.
[0280] Clause 103. The method of clause 100, wherein the value of pps_pic_height_in_chroma_samples is set equal to sps_pic_width_max_in_luma_samples / SubHeightC.
[0281] Clause 104. A method according to any of clauses 78-103, wherein an indication of whether and / or how the reference picture resampling is applied to a color component of the video unit is indicated at one of: a sequence level, a picture group level, a picture level, a slice level, or a tile group level.
[0282] Clause 105. A method according to any of clauses 78-103, wherein an indication of whether and / or how the reference picture resampling is applied to a color component of the video unit is indicated in one of: a sequence header, a picture header, a sequence parameter set (SPS), a video parameter set (VPS), a dependency parameter set (DPS), decoding capability information (DCI), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, or a tile group header.
[0283] Clause 106. A method according to any of clauses 78-103, wherein an indication of whether and / or how the reference picture resampling is applied to a color component of the video unit is included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region containing more than one sample or pixel.
[0284] Clause 107. The method according to any one of clauses 78-103 further includes: determining whether and / or how to apply the reference image resampling to a color component of the video unit based on the encoding and decoding information of the video unit, the encoding and decoding information including at least one of the following: block size, color format, single and / or double tree partitioning, color component, slice type, or picture type.
[0285] Clause 108. The method of any of clauses 1-107, wherein the converting comprises encoding the video unit into the bitstream.
[0286] Clause 109. The method of any of clauses 1-107, wherein the converting comprises decoding the video unit from the bitstream.
[0287] Clause 110. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform a method according to any of clauses 1-109.
[0288] Clause 111. A non-transitory computer-readable storage medium storing instructions for causing a processor to perform the method of any of clauses 1-109.
[0289] Item 112. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method performed by a video processing device, wherein the method comprises: determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with a video unit of the video; determining a set of motion candidates based on an initial motion candidate and the search range; and generating a bitstream of the video unit based on the set of motion candidates.
[0290] Clause 113. A method for storing a bitstream of a video, comprising: determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with a video unit of the video; determining a set of motion candidates based on initial motion candidates and the search range; generating a bitstream of the video unit based on the set of motion candidates; and storing the bitstream in a non-transitory computer-readable recording medium.
[0291] Item 114. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method performed by a video processing device, wherein the method comprises: determining motion candidates for an adaptive decoder-side motion vector refinement (ADMVR) mode of a video unit of the video; refining the motion candidates by iteratively applying a refinement process; and generating a bitstream of the video unit based on the refined motion candidates.
[0292] Clause 115. A method for storing a bitstream of a video, comprising: determining motion candidates for an adaptive decoder-side motion vector refinement (ADMVR) mode of a video unit of the video; refining the motion candidates by iteratively applying a refinement process; generating a bitstream of the video unit based on the refined motion candidates; and storing the bitstream in a non-transitory computer-readable recording medium.
[0293] Item 116. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method executed by a video processing device, wherein the method comprises: determining whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit based on a prediction mode of the video unit of the video; and generating a bitstream of the video unit based on the determination.
[0294] Item 117. A method for storing a bitstream of a video, comprising: determining whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit based on a prediction mode of the video unit of the video; generating a bitstream of the video unit based on the determination; and storing the bitstream in a non-transitory computer-readable recording medium.
[0295] Item 118. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method performed by a video processing device, wherein the method comprises: applying reference picture resampling to a color component of a video unit of the video; and generating a bitstream of the video unit based on the reference picture resampling.
[0296] Clause 119. A method for storing a bitstream of a video, comprising: applying reference picture resampling to a color component of a video unit of the video; generating a bitstream of the video unit based on the reference picture resampling; and storing the bitstream in a non-transitory computer-readable recording medium. Example Device
[0297] Fig.35 A block diagram of a computing device 3500 in which various embodiments of the present disclosure may be implemented is shown. The computing device 3500 may be implemented as a source device 110 (or video encoder 114 or 200) or a destination device 120 (or video decoder 124 or 300), or may be included in a source device 110 (or video encoder 114 or 200) or a destination device 120 (or video decoder 124 or 300).
[0298] It should be understood that Fig.35The computing device 3500 shown in the figure is for illustrative purposes only and is not intended to in any way imply any limitation on the functionality and scope of the embodiments of the present disclosure.
[0299] like Fig.35 As shown, computing device 3500 includes a general computing device 3500. Computing device 3500 may include at least one or more processors or processing units 3510, memory 3520, storage unit 3530, one or more communication units 3540, one or more input devices 3550, and one or more output devices 3560.
[0300] In some embodiments, the computing device 3500 can be implemented as any user terminal or server terminal with computing power. The server terminal can be a server provided by a service provider, a large computing device, etc. The user terminal can be, for example, any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet computer, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device, or any combination thereof, and includes the accessories and peripherals of these devices, or any combination thereof. It is conceivable that the computing device 3500 can support any type of interface to the user (such as a "wearable" circuit device, etc.).
[0301] The processing unit 3510 may be a physical processor or a virtual processor and may implement various processes based on a program stored in the memory 3520. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the computing device 3500. The processing unit 3510 may also be referred to as a central processing unit (CPU), a microprocessor, a controller, or a microcontroller.
[0302] The computing device 3500 typically includes various computer storage media. Such media can be any media accessible by the computing device 3500, including but not limited to volatile media and non-volatile media, or removable media and non-removable media. The memory 3520 can be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (such as a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM) or flash memory) or any combination thereof. The storage unit 3530 can be any removable or non-removable medium, and can include machine-readable media, such as a memory, a flash drive, a disk, or other media that can be used to store information and / or data and can be accessed in the computing device 3500.
[0303] The computing device 3500 may also include additional removable / non-removable storage media, volatile / non-volatile storage media. Fig.35 Although not shown in the figure, a magnetic disk drive for reading from and / or writing to a removable nonvolatile magnetic disk and an optical disk drive for reading from and / or writing to a removable nonvolatile optical disk may be provided. In this case, each drive may be connected to the bus (not shown) via one or more data medium interfaces.
[0304] The communication unit 3540 communicates with another computing device via a communication medium. In addition, the functions of the components in the computing device 3500 can be implemented by a single computing cluster or multiple computing machines that can communicate via a communication connection. Therefore, the computing device 3500 can operate in a networked environment using logical connections to one or more other servers, networked personal computers (PCs), or other general network nodes.
[0305] Input device 3550 may be one or more of various input devices, such as a mouse, keyboard, trackball, voice input device, etc. Output device 3560 may be one or more of various output devices, such as a display, speaker, printer, etc. With the aid of communication unit 3540, computing device 3500 may also communicate with one or more external devices (not shown), such as storage devices and display devices, and computing device 3500 may also communicate with one or more devices that enable a user to interact with computing device 3500, or any device that enables computing device 3500 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.), if necessary. Such communication may be performed via an input / output (I / O) interface (not shown).
[0306] In some embodiments, some or all components of the computing device 3500 may also be arranged in a cloud computing architecture rather than being integrated in a single device. In a cloud computing architecture, components may be provided remotely and work together to implement the functions described in the present disclosure. In some embodiments, cloud computing provides computing, software, data access and storage services, which will not require the end user to know the physical location or configuration of the system or hardware that provides these services. In various embodiments, cloud computing provides services via a wide area network (such as the Internet) using a suitable protocol. For example, a cloud computing provider provides applications via a wide area network, which can be accessed through a web browser or any other computing component. The software or components of the cloud computing architecture and the corresponding data may be stored on a remote server. The computing resources in a cloud computing environment may be merged or distributed at the location of a remote data center. Cloud computing infrastructure may provide services through a shared data center, although they appear as a single access point for users. Therefore, the cloud computing architecture may be used to provide the components and functions described herein from a service provider at a remote location. Alternatively, they may be provided by a conventional server, or installed directly or otherwise on a client device.
[0307] In an embodiment of the present disclosure, the computing device 3500 may be used to implement video encoding / decoding. The memory 3520 may include one or more video codec modules 3525 having one or more program instructions. These modules can be accessed and executed by the processing unit 3510 to perform the functions of the various embodiments described herein.
[0308] In an example embodiment of performing video encoding, the input device 3550 may receive video data as input 3570 to be encoded. The video data may be processed by, for example, the video codec module 3525 to generate an encoded bitstream. The encoded bitstream may be provided as output 3580 via the output device 3560.
[0309] In an example embodiment of performing video decoding, the input device 3550 may receive an encoded bitstream as input 3570. The encoded bitstream may be processed by, for example, the video codec module 3525 to generate decoded video data. The decoded video data may be provided as output 3580 via the output device 3560.
[0310] Although the present disclosure has been specifically shown and described with reference to the preferred embodiments of the present disclosure, it will be understood by those skilled in the art that various changes can be made in form and detail without departing from the spirit and scope of the present application as defined by the appended claims. These changes are intended to be encompassed by the scope of the present application. Therefore, the foregoing description of the embodiments of the present application is not intended to be limiting.
Claims
1. A video processing method, include: During conversion between a video unit of a video and a bitstream of the video unit, determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with the video unit; determining a set of motion candidates based on the initial motion candidates and the search range; as well as The converting is performed based on the set of motion candidates.
2. The method according to claim 1, wherein the codec information includes at least one of the following: Prediction model, Block size, Motion vector difference, Adaptive Motion Vector Resolution (AMVR) accuracy, or Integer Motion Vector (IMV) precision. 3 . The method according to claim 1 , wherein the DMVR process is a prediction unit (PU) or coding unit (CU) based DMVR process. 4 . The method according to claim 3 , wherein the search range is a full-pixel DMVR search of the PU- or CU-based DMVR process. 5 . The method of claim 3 , wherein the search range is a K-pixel DMVR search of the PU- or CU-based DMVR process. The method of claim 5 , wherein K is one of the following: 1 / 2, 1 / 4, 1 / 8 or 1 / 16.
7. The method of claim 1, wherein the DMVR process is an MxN sub-block based DMVR process, and Where M and N are integers respectively.
8. The method according to claim 7, wherein M and N are respectively equal to 16, or Where M and N are equal to 8 respectively. 9 . The method of claim 7 , wherein the search range is a full-pixel DMVR search of the MxN sub-block based DMVR process.
10. The method of claim 7, wherein the search range is a K-pixel DMVR search of the MxN sub-block based DMVR process. The method of claim 10 , wherein K is one of the following: 1 / 2, 1 / 4, 1 / 8 or 1 / 16.
12. The method of claim 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is based on a prediction mode of the video unit.
13. The method of claim 12, wherein a first maximum allowed search range for the full-pixel DMVR is a first value for merge-coded blocks, and a second maximum allowed search range for the full-pixel DMVR is a second value for AMVP-coded blocks.
14. The method of claim 13, wherein at least one of the first value or the second value is a constant, or At least one of the first value or the second value is a variable. The method of claim 13 , wherein the first value is not equal to the second value.
16. The method of claim 13, wherein the first value is greater than the second value, or Wherein the first value is smaller than the second value.
17. The method of claim 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is based on at least one of: a motion vector or a motion vector difference of the video unit.
18. The method of claim 17, wherein if the motion vector difference value is greater than a threshold, the maximum allowed search range for the full-pixel DMVR is a third value, and If the motion vector difference value is not greater than the threshold, the maximum allowed search range for the full-pixel DMVR is a fourth value.
19. The method of claim 18, wherein at least one of the third value or the fourth value is a constant, or Wherein at least one of the third value or the fourth value is a variable.
20. The method of claim 18, wherein the third value is not equal to the fourth value.
21. The method of claim 18, wherein the third value is greater than the fourth value, or Wherein the third value is smaller than the fourth value.
22. The method of claim 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is based on at least one of: precision of motion vector differences, AMVR precision, or IMV precision of the video unit.
23. The method of claim 22, wherein if the AMVR accuracy or the IMV accuracy is a first accuracy, the maximum allowed search range for the full-pixel DMVR is a fifth value, and If the AMVR accuracy or the IMV accuracy is the second accuracy, the maximum allowed search range for the full-pixel DMVR is a sixth value.
24. The method of claim 23, wherein the first precision and the second precision are AMVR precisions allowed in a codec, or The first precision and the second precision are IMV precisions allowed in the codec.
25. The method of claim 23, wherein at least one of the fifth value or the sixth value is a constant, or Wherein at least one of the fifth value or the sixth value is a variable.
26. The method of claim 23, wherein the fifth value is not equal to the sixth value.
27. The method of claim 23, wherein the fifth value is greater than the sixth value, or Wherein the fifth value is smaller than the sixth value.
28. The method of claim 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is based on a resolution of a current picture of a reference picture.
29. The method of claim 1, wherein with respect to the DMVR process, a maximum allowed search range for full-pixel DMVR is indicated from an encoder to a decoder.
30. The method according to any one of claims 1 to 29, wherein an indication of whether and / or how to determine the search range based on the codec information is indicated at one of the following: Sequence level, Picture group level, Picture level, Stripe level, or Tile group level.
31. The method according to any one of claims 1 to 29, wherein the indication of whether and / or how to determine the search range based on the codec information is indicated in one of the following: Sequence header, Picture header, Sequence Parameter Set (SPS), Video Parameter Set (VPS), Dependent Parameter Set (DPS), Decoding Capability Information (DCI), Picture Parameter Set (PPS), Adaptive Parameter Set (APS), Strip header, or Tile group header.
32. The method according to any one of claims 1 to 29, wherein the indication of whether and / or how to determine the search range based on the codec information is included in one of the following: Prediction Block (PB), Transform Block (TB), Codec Block (CB), Prediction Unit (PU), Transformation Unit (TU), Codec Unit (CU), Virtual Pipeline Data Unit (VPDU), Codec Tree Unit (CTU), CTU line, Strips, Tile, sub-image, or An area that contains more than one sample or pixel.
33. The method according to any one of claims 1 to 29, further comprising: include: Based on the codec information of the video unit, determining whether and / or how to determine the search range based on the codec information, wherein the codec information includes at least one of the following: Block size, Color format, Single and / or dual tree partitioning, Color components, Strip type, or Image type.
34. A method of video processing, include: determining, during a transition between a video unit of a video and a bitstream of the video unit, a motion candidate for an adaptive decoder side motion vector refinement (ADMVR) mode; refining the motion candidates by iteratively applying a refinement process; as well as The converting is performed based on the refined motion candidates.
35. The method of claim 34, wherein the motion candidate is a prediction unit (PU) level motion vector.
36. The method of claim 34, wherein the thinning process is a unidirectional thinning process.
37. The method of claim 34, wherein the motion candidate is refined by iteratively applying the refinement process include: applying a first unidirectional refinement process to refine the first motion candidate in a first direction; as well as A second unidirectional refinement process is applied to refine the second motion candidate in a second direction.
38. The method of claim 37, wherein the motion candidates are denoted as (mv0, mv1), a first refined motion candidate after the first unidirectional refinement process is denoted as (mv0+deltaA, mv1), a second refined motion candidate after the second unidirectional refinement is denoted as (mv0+deltaA, mv1+deltaB), and wherein the first refined motion is used as a starting point in the second unidirectional refinement process, deltaA represents a first variable and deltaB represents a second variable.
39. The method according to claim 38, further comprising: include: Based on a cost or error derived by the first refined motion candidate, it is determined whether the second unidirectional refinement process is applied.
40. The method of claim 38, wherein the second unidirectional refinement process is not applied if a bilateral cost derived by the first refined motion candidate is not greater than a threshold.
41. The method of claim 38, wherein a value of the second variable is not allowed to be equal to a negative value of the first variable, wherein the first variable and the second variable are vectors.
42. The method according to claim 38, further comprising: include: Refining the first variable using the second variable; as well as Refinement is iteratively performed on the first variable and the second variable.
43. The method of claim 38, wherein both a single-step unidirectional refinement process and an iterative unidirectional refinement process are enabled for the ADMVR mode.
44. The method of claim 43, wherein in addition to the single-step unidirectional refinement process, the iterative unidirectional refinement process is also applied.
45. The method of claim 34, wherein an iterative unidirectional refinement process is enabled for the ADMVR mode and a single-step unidirectional refinement process is not enabled for the ADMVR mode.
46. The method of claim 45, wherein the iterative unidirectional refinement process is applied to replace the single-step unidirectional refinement process.
47. The method of claim 34, wherein whether the iterative unidirectional refinement process is to be applied to the video unit is indicated in the codestream.
48. The method of claim 47, wherein for the video unit decoded by ADMVR a syntax element is indicated, and the syntax element indicates whether the iterative unidirectional refinement process is applied and also indicates a direction to be refined first.
49. The method of claim 34, wherein whether the iterative unidirectional refinement process is to be applied is derived implicitly from a decoder-derived cost.
50. The method of claim 34, wherein the DMVR model is refined through an iterative process.
51. The method of claim 50, wherein the refined motion vector is represented as (mv0+deltaA, mv1+deltaB), where deltaB=-deltaA, delta is fixed to further refine deltaB, and deltaB is fixed to further refine deltaA, and the refinement of deltaA and deltaB is performed in an iterative manner.
52. The method of any one of claims 34-51, wherein an indication of whether and / or how to refine the motion candidate by iteratively applying the refinement process is indicated at one of: Sequence level, Picture group level, Picture level, Stripe level, or Tile group level.
53. The method according to any one of claims 34-51, wherein the indication of whether and / or how to refine the motion candidates by iteratively applying the refinement process is indicated in one of the following: Sequence header, Picture header, Sequence Parameter Set (SPS), Video Parameter Set (VPS), Dependent Parameter Set (DPS), Decoding Capability Information (DCI), Picture Parameter Set (PPS), Adaptive Parameter Set (APS), Strip header, or Tile group header.
54. A method according to any one of claims 34 to 51, wherein an indication of whether and / or how to refine the motion candidate by iteratively applying the refinement process is comprised in one of: Prediction Block (PB), Transform Block (TB), Codec Block (CB), Prediction Unit (PU), Transformation Unit (TU), Codec Unit (CU), Virtual Pipeline Data Unit (VPDU), Codec Tree Unit (CTU), CTU line, Strips, Tile, sub-image, or An area that contains more than one sample or pixel.
55. The method according to any one of claims 34-51, further comprising: include: Determine whether and / or how to refine the motion candidate by iteratively applying the refinement process based on information of the codec of the video unit, wherein the information of the codec includes at least one of the following: Block size, Color format, Single and / or dual tree partitioning, Color components, Strip type, or Image type.
56. A method of video processing, include: During conversion between a video unit of a video and a bitstream of the video unit, determining whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit based on a prediction mode of the video unit; as well as The converting is performed based on the determination.
57. The method of claim 56, wherein both the bidirectional refinement process and the unidirectional refinement process are enabled for a specific prediction mode.
58. The method of claim 57, wherein the specific prediction mode comprises one of the following: Regular merge mode, Template Matching (TM) mode, Advanced Motion Vector Prediction (AMVP) - Merge Mode, Adaptive Decoder Motion Vector Refinement (ADMVR) merge mode, or Regular AMVP mode.
59. The method of claim 56, wherein the bidirectional refinement process and the unidirectional refinement process are DMVR based processes.
60. The method of claim 59, wherein the unidirectional refinement process comprises a prediction unit (PU) level DMVR process based on adding a delta motion vector (MV) to a first motion vector in a first direction or a second motion vector in a second direction.
61. The method of claim 56, wherein a DMVR refinement style used for the prediction mode is explicitly indicated.
62. The method of claim 61, wherein a video unit level syntax element is indicated in association with the prediction mode.
63. The method of claim 56, wherein the DMVR refinement pattern used for the prediction mode is derived implicitly from a decoder-derived cost.
64. The method of claim 63, wherein the DMVR refinement pattern with the minimum bilateral cost is determined as a final DMVR refinement pattern for the prediction mode.
65. The method of claim 63, wherein the ADMVR refinement pattern used for the prediction mode is derived implicitly from a decoder derived cost.
66. The method of claim 56, wherein a prediction unit (PU) level or a codec unit (CU) level full pixel DMVR search is applied to the ADMVR mode.
67. The method of claim 56, wherein the method of applying at least one of DMVR or ADMVR is based on motion vector differences.
68. The method of claim 67, wherein whether to use DMVR for an AMVP-coded block depends on the magnitude of a motion vector difference (MVD).
69. The method of claim 68, wherein the AMVP-coded block is bidirectionally coded.
70. The method of claim 67, wherein whether to use DMVR for a merge-coded block depends on at least one of: a magnitude, a step size, a distance, or a direction of a motion vector difference (MVD).
71. The method of claim 70, wherein the merged-coded block is bidirectionally coded, or wherein the merged-coded block is coded by a conventional MMVD mode, or The merged-coded blocks are coded and decoded by using an MMVD variant mode.
72. The method of claim 67, wherein DMVR is applied to the video unit if the indication of the MVD specifies that the MVD magnitude is greater than a threshold.
73. The method of claim 67, wherein if the indication of the MVD specifies that the MVD magnitude is greater than a threshold, then DMVR is enabled to be applied to the video unit.
74. The method of any of claims 56-73, wherein an indication of whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the prediction mode is indicated at one of: Sequence level, Picture group level, Picture level, Stripe level, or Tile group level.
75. The method of any of claims 56-73, wherein an indication of whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the prediction mode is indicated in one of: Sequence header, Picture header, Sequence Parameter Set (SPS), Video Parameter Set (VPS), Dependent Parameter Set (DPS), Decoding Capability Information (DCI), Picture Parameter Set (PPS), Adaptive Parameter Set (APS), Strip header, or Tile group header.
76. The method of any of claims 56-73, wherein an indication of whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the prediction mode is included in one of: Prediction Block (PB), Transform Block (TB), Codec Block (CB), Prediction Unit (PU), Transformation Unit (TU), Codec Unit (CU), Virtual Pipeline Data Unit (VPDU), Codec Tree Unit (CTU), CTU line, Strips, Tile, sub-image, or An area that contains more than one sample or pixel.
77. The method according to any one of claims 56-73, further comprising: include: Determine whether and / or how to determine whether to apply at least one of the bidirectional refinement process or the unidirectional refinement process to the video unit based on the prediction mode based on the information of the codec of the video unit, wherein the information of the codec includes at least one of the following: Block size, Color format, Single and / or dual tree partitioning, Color components, Strip type, or Image type. 78.A method for video processing, include: During conversion between a video unit of a video and a bitstream of the video unit, applying reference picture resampling to a color component of the video unit; as well as The conversion is performed based on the reference picture resampling.
79. The method of claim 78, wherein the reference picture resampling is a resolution change within a same coded layer video sequence (CLVS).
80. The method of claim 78, wherein the reference picture resampling is a resolution change across different CLVS.
81. The method of claim 78, wherein the reference picture resampling is applied to a luma component or a Y component, and The reference picture resampling is not applied to at least one of the following: a chrominance component, a U component, a V component, a Cb component, a Cr component, a Co component, or a Cg component.
82. The method of claim 78, wherein the reference picture resampling is applied to at least one of: a chroma component, a U component, a V component, a Cb component, a Cr component, a Co component, or a Cg component, or The reference picture resampling is not applied to the luma component or the Y component.
83. The method of claim 78, wherein the reference picture resampling is applied to a green channel of a red-green-blue (RGB) or GBR video unit, and The reference picture resampling is not applied to the red component or the blue component.
84. The method of claim 78, wherein the reference picture resampling is not applied to a green channel of a red-green-blue (RGB) or GBR video unit, and The reference picture resampling is applied to the red component or the blue component.
85. The method of claim 78, wherein a plurality of syntax elements are indicated at a video unit level, and the plurality of syntax elements separately specify permission for reference picture resampling for each color component.
86. The method according to claim 85, wherein three syntax elements of the SPS level are indicated, and the syntax elements specify whether the reference picture resampling is allowed for the Y component, the U component, and the V component respectively.
87. The method of claim 85, wherein two syntax elements of an SPS level are indicated, and the two syntax elements specify whether the reference picture resampling is allowed for luma components and chroma components, respectively.
88. The method of claim 85, wherein a general constraint flag is indicated to impose constraints on the reference picture resampling for a specific color component.
89. The method of claim 78, wherein three syntax elements of an SPS level are indicated, and the three syntax elements respectively specify whether resampling of the reference picture within the same CLVS is allowed for a Y component, a U component, and a V component.
90. The method according to claim 78, wherein two syntax elements of the SPS level are indicated, and the two syntax elements respectively specify whether the reference picture resampling within the same CLVS is allowed for the luma component and the chroma component in the code stream.
91. The method of claim 78, wherein a general constraint flag is indicated to impose constraints on the reference picture resampling for a specific color component.
92. The method of claim 78, wherein if there is a syntax element specifying that resampling of the reference picture is allowed, sub-picture information is not allowed to be present in the codestream.
93. The method of claim 92, wherein the value of sps_subpic_info_present_flag is set equal to 0.
94. The method of claim 78, wherein if there is a syntax element specifying that resampling of the reference picture is allowed, virtual boundary information is not allowed to be present in the codestream.
95. The method of claim 94, wherein the value of sps_virtual_boundaries_present_flag is set equal to 0.
96. The method of claim 78, wherein syntax elements are indicated at a video unit level, and the syntax elements specify picture width and picture height for chroma components.
97. The method of claim 96, wherein pps_pic_width_in_chroma_samples and pps_pic_height_in_chroma_samples are indicated at the PPS level and specify the size of the picture width and the size of the picture height for the chroma components.
98. The method of claim 97, wherein if the reference sample resampling is applied to chroma components instead of luma components, the value of pps_pic_width_in_chroma_samples is not equal to pps_pic_width_in_luma_samples / SubWidthC, wherein SubWidthC is a chroma resampling factor that depends on a chroma format sampling structure.
99. The method of claim 97, wherein if the reference sample resampling is applied to chroma components instead of luma components, the value of ps_pic_height_in_chroma_samples is not equal to pps_pic_height_in_luma_samples / SubHeightC, where SubHeightC is a chroma resampling factor that depends on a format sampling structure.
100. The method of claim 78, wherein if a syntax element indicates that reference picture resampling is not allowed for all luma components and chroma components, the value of pps_pic_width_in_luma_samples is set equal to sps_pic_width_max_in_luma_samples.
101. The method of claim 100, wherein the value of pps_pic_height_in_luma_samples is set equal to sps_pic_height_max_in_luma_samples.
102. The method of claim 100, wherein the value of pps_pic_width_in_chroma_samples is set equal to sps_pic_width_max_in_luma_samples / SubWidthC.
103. The method of claim 100, wherein the value of pps_pic_height_in_chroma_samples is set equal to sps_pic_width_max_in_luma_samples / SubHeightC.
104. The method of any of claims 78-103, wherein an indication of whether and / or how to apply the reference picture resampling to a color component of the video unit is indicated at one of: Sequence level, Picture group level, Picture level, Stripe level, or Tile group level.
105. The method of any of claims 78-103, wherein an indication of whether and / or how the reference picture resampling is applied to a color component of the video unit is indicated in one of the following: Sequence header, Picture header, Sequence Parameter Set (SPS), Video Parameter Set (VPS), Dependent Parameter Set (DPS), Decoding Capability Information (DCI), Picture Parameter Set (PPS), Adaptive Parameter Set (APS), Strip header, or Tile group header.
106. The method of any of claims 78-103, wherein an indication of whether and / or how to apply the reference picture resampling to a color component of the video unit is included in one of: Prediction Block (PB), Transform Block (TB), Codec Block (CB), Prediction Unit (PU), Transformation Unit (TU), Codec Unit (CU), Virtual Pipeline Data Unit (VPDU), Codec Tree Unit (CTU), CTU line, Strips, Tile, sub-image, or An area that contains more than one sample or pixel.
107. The method according to any one of claims 78-103, further comprising: include: Determine whether and / or how to apply the reference picture resampling to a color component of the video unit based on information encoded and decoded by the video unit, wherein the information encoded and decoded includes at least one of the following: Block size, Color format, Single and / or dual tree partitioning, Color components, Strip type, or Image type.
108. The method of any one of claims 1-107, wherein the converting comprises encoding the video unit into the bitstream.
109. The method of any one of claims 1-107, wherein the converting comprises decoding the video unit from the bitstream.
110. A device for processing video data, comprising a processor and a non-volatile memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform a method according to any one of claims 1-109.
111. A non-transitory computer-readable storage medium storing instructions for causing a processor to execute the method according to any one of claims 1-109.
112. A non-transitory computer-readable recording medium storing a code stream of a video generated by a method executed by a video processing device, wherein the method include: determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with a video unit of the video; determining a set of motion candidates based on the initial motion candidates and the search range; as well as A code stream of the video unit is generated based on the set of motion candidates.
113. A method for storing a video code stream, include: determining a search range of a decoder-side motion vector refinement (DMVR) process based on codec information associated with a video unit of the video; determining a set of motion candidates based on the initial motion candidates and the search range; generating a bitstream of the video unit based on the set of motion candidates; as well as The code stream is stored in a non-transitory computer-readable recording medium.
114. A non-transitory computer-readable recording medium storing a code stream of a video generated by a method executed by a video processing device, wherein the method include: determining motion candidates for an adaptive decoder side motion vector refinement (ADMVR) mode of a video unit of the video; refining the motion candidates by iteratively applying a refinement process; as well as A code stream of the video unit is generated based on the refined motion candidates.
115. A method for storing a video code stream, include: determining motion candidates for an adaptive decoder side motion vector refinement (ADMVR) mode of a video unit of the video; refining the motion candidates by iteratively applying a refinement process; generating a bitstream of the video unit based on the refined motion candidates; as well as The code stream is stored in a non-transitory computer-readable recording medium.
116. A non-transitory computer-readable recording medium storing a code stream of a video generated by a method executed by a video processing device, wherein the method include: determining, based on a prediction mode of a video unit of the video, whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit; as well as A code stream of the video unit is generated based on the determination.
117. A method for storing a video code stream, include: determining, based on a prediction mode of a video unit of the video, whether at least one of a bidirectional refinement process or a unidirectional refinement process is applied to the video unit; generating a bitstream of the video unit based on the determination; as well as The code stream is stored in a non-transitory computer-readable recording medium.
118. A non-transitory computer-readable recording medium storing a code stream of a video generated by a method executed by a video processing device, wherein the method include: applying reference picture resampling to a color component of a video unit of the video; as well as Based on the reference picture resampling, a code stream of the video unit is generated.
119. A method for storing a video code stream, include: applying reference picture resampling to a color component of a video unit of the video; Resampling the reference picture to generate a bitstream of the video unit; as well as The code stream is stored in a non-transitory computer-readable recording medium.
