Adaptive motion vector resolution for changing motion vectors

JP7572487B2Active Publication Date: 2024-10-23DOUYIN VISION CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023045399
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-09-23
Filing Date
2023-03-22
Publication Date
2024-10-23
Estimated Expiration
2039-09-23

Smart Images

  • Figure 0007572487000027
    Figure 0007572487000027
  • Figure 0007572487000028
    Figure 0007572487000028
  • Figure 0007572487000029
    Figure 0007572487000029
Patent Text Reader

Abstract

To provide a device, a system, and a method for digital video encoding including correction of a motion vector by adaptive motion vector resolution.SOLUTION: An exemplary video processing method uses an encoding tool that appropriately selects resolution of each motion vector associated with a current video block in order to perform conversion between a current video block and bitstream representation of the current video block to determine a final motion vector. Accuracy of the final motion vector is identical to that of a stored motion vector of the current video block. The method also performs conversion between the bitstream representation and the current video block based on the final motion vector.SELECTED DRAWING: Figure 22
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to and the benefit of International Patent Application No. PCT / CN2018 / 107168, filed September 23, 2018. This is a divisional application of Japanese Patent Application No. 2021-514371, which is the national phase of International Patent Application PCT / IB2019 / 058034, filed on September 23, 2019. All of the foregoing patent applications are hereby incorporated by reference in their entirety.

[0002] This patent specification relates to video encoding techniques, devices and systems. [Background technology]

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

[0004] Devices, systems, and methods are described that relate to digital video coding, and in particular to deriving and signaling motion vector predictors for affine modes with adaptive motion vector resolution (AMVR). The described methods may be applied to both existing video coding standards (e.g., High Efficiency Video Coding (HEVC)) and future video coding standards or video codecs.

[0005] In one exemplary aspect, the disclosed technology may be used to provide a method of video processing that includes determining a final motion vector using an encoding tool that appropriately selects a resolution of each motion vector associated with a current video block for converting between a current video block and a bitstream representation of the current video block, where the precision of the final motion vector is the same as the precision of a stored motion vector for the current video block, and converting between the bitstream representation and the current video block based on the final motion vector.

[0006] In another representative aspect, the disclosed techniques may be used to provide a method of video processing that includes determining a final motion vector using an encoding tool that appropriately selects a resolution of each motion vector associated with a current video block for converting between a current video block and a bitstream representation of the current video block, where the current video block is encoded in affine mode and the bitstream representation includes a field including two or more bits indicating a precision of the motion vector associated with the current video block or a motion vector difference, and performing a conversion between the bitstream representation and the current video block based on the final motion vector.

[0007] In yet another exemplary embodiment, the method is embodied in a processor executable code and stored on a computer readable program medium.

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

[0009] In yet another representative aspect, a video decoder device may implement the methods as described herein.

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

[0011] [Figure 1] Here is an example of building a merge candidate list: [Diagram 2] 1 shows an example of spatial candidate locations. [Diagram 3] 1 shows an example of candidate pairs subject to redundancy checking of spatial merge candidates. [Figure 4A]13 shows an example of a position of a second prediction unit (PU) based on a size and shape of a current block. [Figure 4B] 13 shows an example of a position of a second prediction unit (PU) based on a size and shape of a current block. [Diagram 5] 13 illustrates an example of scaling of motion vectors for temporal merge candidates. [Figure 6] FIG. 13 is a diagram illustrating an example of candidate positions of temporal merge candidates. [Figure 7] 13 illustrates an example of generating combined bi-predictive merge candidates. [Figure 8] 1 shows an example of constructing motion vector prediction candidates. [Figure 9] 13 illustrates an example of motion vector scaling for spatial motion vector candidates. [Figure 10] 1 illustrates an example of motion prediction using an alternative temporal motion vector prediction (ATMVP) algorithm for a coding unit (CU). [Figure 11] 1 illustrates an example of a coding unit (CU) with sub-blocks and neighboring blocks used in a spatial-temporal motion vector prediction (STMVP) algorithm. [Figure 12A] 1 illustrates an exemplary snapshot of sub-blocks when using an overlapped block motion compensation (OBMC) algorithm. [Figure 12B] 1 illustrates an exemplary snapshot of sub-blocks when using an overlapped block motion compensation (OBMC) algorithm. [Figure 13] 1 shows an example of a neighborhood of samples used to derive parameters for the Local Illumination Compensation (LIC) algorithm. [Figure 14] An example of a simplified affine motion model is shown. [Figure 15] 1 shows an example of an affine motion vector field (MVF) for each subblock. [Figure 16] 13 shows an example of motion vector prediction (MVP) in AF_INTER affine motion mode. [Figure 17A]Examples of 4-parameter and 6-parameter affine modes are shown, respectively. [Figure 17B] Examples of 4-parameter and 6-parameter affine modes are shown, respectively. [Figure 18A] Examples of AF_MERGE affine motion mode candidates are shown. [Figure 18B] Examples of AF_MERGE affine motion mode candidates are shown. [Figure 19] We present an example of bilateral matching in the Pattern Matching Motion Vector Derivation (PMMVD) mode, which is a special merging mode based on the Frame Rate Up Conversion (FRUC) algorithm. [Figure 20] An example of template matching in the FRUC algorithm is shown below. [Figure 21] 1 shows an example of unilateral motion estimation in the FRUC algorithm. [Figure 22] 1 shows a flowchart of an exemplary method for video processing. [Figure 23] 4 shows a flowchart of another exemplary method for video processing. [Figure 24] FIG. 2 is a block diagram illustrating an example of a hardware platform for implementing the visual media decoding or visual media encoding techniques described herein. [Diagram 25] FIG. 1 is a block diagram of an exemplary video processing system in which the disclosed techniques may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Due to the increasing demand for higher resolution video, video coding methods and techniques are ubiquitous in modern technology. Video codecs generally include electronic circuits or software that compress or decompress digital video and are constantly being improved to provide higher coding efficiency. Video codecs convert uncompressed video to compressed formats or vice versa. There is a complex relationship between the quality of the video, the amount of data used to represent the video (determined by the bit rate), the complexity of the encoding and decoding algorithms, the sensitivity to data loss and errors, the ease of editing, random access, and the end-to-end delay (latency). The compression format usually complies with a standard video compression standard, such as the High Efficiency Video Coding (HEVC) standard (also known as H.265 or MPEG-H Part 2) [1], a general-purpose video coding standard to be completed, or other current and / or future video coding standards.

[0013] Embodiments of the disclosed technology may be applied to existing video coding standards (e.g., HEVC, H.265) and future standards to improve compression performance. Section headings are used herein to improve readability of the description and are not intended to limit the description or embodiments (and / or implementations) to only the respective sections.

[0014] 1. Example of Inter Prediction in HEVC / H.265 Video coding standards have improved significantly over the years and now, in part, achieve high coding efficiency and support higher resolutions. Recent standards such as HEVC and H.265 are based on a hybrid video coding structure in which temporal prediction plus transform coding is utilized.

[0015] 1.1 Prediction mode examples Each inter-predicted PU (Prediction Unit) has motion parameters for one or two reference picture lists. In some embodiments, the motion parameters include a motion vector and a reference picture index. In other examples, the use of one of the two reference picture lists may be signaled using inter_pred_idc. In yet other embodiments, the motion vector may be explicitly coded as a delta to the predictor.

[0016] If one CU is coded in skip mode, one PU is associated with this CU, there are no significant residual coefficients, no coding motion vector deltas, and no reference picture indexes. Specify merge mode, which obtains motion parameters for the current PU from neighboring PUs, including spatial and temporal candidates. Merge mode can be applied to any inter-predicted PU, not just for skip mode. An alternative to merge mode is explicit transmission of motion parameters, explicitly signaling a motion vector for each reference picture list and a reference picture index corresponding to the use of the reference picture list, for each PU.

[0017] If the signaling indicates to use one of the two reference picture lists, the PU is generated from a block of one sample. This is called "uni-prediction". Uni-prediction is available for both P and B slices.[2]

[0018] If the signaling indicates to use both reference picture lists, generate the PU from a block of two samples. This is called "bi-prediction." Bi-prediction is only available for B slices.

[0019] 1.1.1 Implementation of Constructing Merge Mode Candidates When predicting a PU using merge mode, an index pointing to an entry in the merge candidate list is parsed from the bitstream and used to look up the motion information. The construction of this list can be summarized based on the following sequence of steps:

[0020] Step 1: Initial candidate selection Step 1.1: Spatial candidate derivation Step 1.2: Redundancy check of spatial candidates Step 1.3: Temporal candidate derivation Step 2: Insert additional candidates Step 2.1: Creating bi-predictive candidates Step 2.2: Inserting zero motion candidates

[0021] Figure 1 shows an example of constructing a merge candidate list based on the sequence of steps above. For spatial merge candidate derivation, select up to four merge candidates among candidates at five different positions. For temporal merge candidate derivation, select up to one merge candidate among two candidates. Since the decoder side expects a constant number of candidates per PU, it generates additional candidates if the number of candidates does not reach the maximum number of merge candidates (MaxNumMergeCand) signaled in the slice header. Since the number of candidates is constant, it uses a shortened unary binarization (TU) to encode the index of the best merge candidate. If the size of a CU is equal to 8, all PUs of the current CU share one merge candidate list, which is the same as the merge candidate list of 2N × 2N prediction units.

[0022] 1.1.2 Constructing spatial merging candidates In the derivation of spatial merge candidates, up to four merge candidates are selected from the candidates at the positions shown in FIG. 2. The order of derivation is A1, B1, B0, A0, B2. Position B2 is considered only if any PU at positions A1, B1, B0, A0 is not available (e.g., because it belongs to another slice or tile) or is intra-coded. After adding the candidate at position A1, the addition of the remaining candidates is subject to a redundancy check, which can ensure that candidates with the same motion information are removed from the list, improving coding efficiency.

[0023] In order to reduce computational complexity, the aforementioned redundancy check does not consider all possible candidate pairs. Instead, it only considers pairs connected by arrows in FIG. 3, and only adds candidates to the list if the corresponding candidates used in the redundancy check do not have the same motion information. Another source of duplicated motion information is a "second PU" associated with a partition different from 2N×2N. As an example, FIG. 4A and FIG. 4B depict the second PU for N×2N and 2N×N, respectively. When splitting the current PU into N×2N, the candidate at position A1 is not considered for list construction. In some embodiments, adding this candidate results in two prediction units having the same motion information, and having only one PU in one coding unit is redundant. Similarly, when splitting the current PU into 2N×N, position B1 is not considered.

[0024] 1.1.3 Building Temporal Merge Candidates In this step, only one candidate is added to the list. Specifically, in the derivation of this temporal merge candidate, a scaled motion vector is derived based on the co-located PU belonging to the picture with the smallest POC difference with the current picture in a given reference picture list. In the slice header, the reference picture list used for deriving the co-located PU is explicitly signaled.

[0025] FIG. 5 shows an example of derivation of a scaled motion vector (dotted line) for a temporal merge candidate, where t is the POC difference between the reference picture of the current picture and the current picture, scaled from the motion vector of the co-located PU using POC distances t, t, and t is the POC difference between the reference picture of the co-located picture and the co-located picture. Set the reference picture index of the temporal merge candidate equal to zero. For B slice, take two motion vectors, one for reference picture list 0 and the other for reference picture list 1, and combine them to form a bi-predictive merge candidate.

[0026] At the same position PU(Y) belonging to the reference frame, select the position of the temporal candidate between candidates C0 and C1 as shown in Figure 6. If the PU at position C0 is not available, is intra-coded, or is outside the current CTU, position C1 is used. Otherwise, position C0 is used to derive the temporal merge candidate.

[0027] 1.1.4 Building Additional Types of Merge Candidates Besides the spatio-temporal merge candidates, there are two additional types of merge candidates: combined bi-predictive merge candidates and zero merge candidates. The spatio-temporal merge candidates are utilized to generate a combined bi-predictive merge candidate. The combined bi-predictive merge candidate is used only for B slices. A combined bi-predictive candidate is generated by combining a first reference picture list motion parameter of a first candidate with a second reference picture list motion parameter of another candidate. If these two tuples provide different motion hypotheses, these tuples form a new bi-predictive candidate.

[0028] FIG. 7 shows an example of this process, where two candidates in an original list (710, left) with mvL0, refIdxL0 or mvL1, refIdxL1 are used to generate a combined bi-predictive merge candidate that is added to a final list (720, right).

[0029] The MaxNumMergeCand capacity is hit by inserting zero motion candidates to fill the remaining entries in the merge candidate list. These candidates have a spatial displacement of zero and a reference picture index that starts from zero and increases each time a new zero motion candidate is added to the list. The number of reference frames used by these candidates is one for uni-prediction and two for bi-prediction, respectively. In some embodiments, no redundancy check is performed on these candidates.

[0030] 1.1.5 Example of motion estimation region for parallel processing To speed up the encoding process, motion estimation can be done in parallel, thereby deriving motion vectors for all prediction units in a given region simultaneously. Derivation of merge candidates from spatial neighborhoods can interfere with parallel processing, since one prediction unit cannot derive motion parameters from neighboring PUs until its associated motion estimation is completed. To mitigate the tradeoff between coding efficiency and processing latency, a motion estimation region (MER) can be specified. The "log2_parallel_merge_level_minus2" syntax element may be used to signal the size of the MER in the picture parameter set (PPS). When specifying one MER, merge candidates in the same region are marked as unavailable and therefore not considered in list construction.

[0031] 1.2 Advanced Motion Vector Prediction (AMVP) Implementation AMVP exploits the spatial-temporal correlation of motion vectors with neighboring PUs, which is used for unambiguous transmission of motion parameters. First, it builds a motion vector candidate list by checking the availability of the left and upper temporal neighboring PU positions, removing redundant candidates, and adding zero vectors to keep the length of the candidate list constant. Then, the encoder can select the best predictor from the candidate list and transmit the corresponding index indicating the selected candidate. Similar to the merge index signaling, the index of the best motion vector candidate is encoded using a shortened unary term. The maximum value to be encoded in this case is 2 (see Figure 8). The following sections will explain the details of the motion vector prediction candidate derivation process.

[0032] 1.2.1 Example of constructing motion vector prediction candidates FIG. 8 summarizes the process of deriving motion vector prediction candidates, which may be implemented for each reference picture list with refidx as input.

[0033] In motion vector prediction, two types of motion vector candidates can be considered: spatial motion vector candidates and temporal motion vector candidates. To derive spatial motion vector candidates, we finally derive two motion vector candidates based on the motion vectors of each PU at five different positions, as shown in Figure 2.

[0034] To derive a temporal motion vector candidate, select one motion vector candidate from two candidates derived based on two different co-located positions. After creating the first spatio-temporal candidate list, remove duplicate motion vector candidates in the list. If the number of candidates is greater than two, remove from the list motion vector candidates whose reference picture index in the associated reference picture list is greater than 1. If the number of spatial-temporal motion vector candidates is less than two, add an additional zero motion vector candidate to the list.

[0035] 1.2.2 Construction of spatial motion vector candidates In the derivation of spatial motion vector candidates, up to two candidates are considered among the five candidates derived from the PUs located as shown in Figure 2 last time, and their positions are the same as the positions of the motion merge. The order of derivation for the left side of the current PU is specified as A0, A1, scaled A0, scaled A1. The order of derivation for the top side of the current PU is specified as B0, B1, B2, scaled B0, scaled B1, scaled B2. Therefore, for each side, there are four cases that can be used as motion vector candidates, namely two cases that do not need to use spatial scaling and two cases that use spatial scaling. The four different cases can be summarized as follows:

[0036] --No spatial scaling (1) The same reference picture list and the same reference picture index (same POC) (2) Different reference picture lists, but the same reference picture (same POC) --Spatial Scaling (3) Same reference picture list, but different reference pictures (different POC) (4) Different reference picture lists and different reference pictures (different POCs)

[0037] First, check the case of non-spatial scaling, then check the case of allowing spatial scaling. Regardless of the reference picture list, consider spatial scaling if the POC is different between the reference picture of the neighboring PU and the reference picture of the current PU. If all PUs of the left candidate are not available or are intra-coded, scaling of the top motion vector is useful for parallel derivation of the left and top MV candidates. Otherwise, spatial scaling is not allowed for the top motion vector.

[0038] As shown in the example of Figure 9, in the case of spatial scaling, the motion vectors of neighboring PUs are scaled in the same way as in the case of temporal scaling. One difference is that the reference picture list and index of the current PU are given as input, and the actual scaling process is the same as that of temporal scaling.

[0039] 1.2.3 Construction of Temporal Motion Vector Candidates Other than deriving the reference picture index, all the processes for deriving the temporal merge candidates are the same as the processes for deriving the spatial motion vector candidates (shown in the example of FIG. 6). In some embodiments, the reference picture index is signaled to the decoder.

[0040] 2. Example of Inter-Prediction Method in Joint Exploration Model (JEM) In some embodiments, future video coding technologies are explored using reference software known as the Joint Exploration Model (JEM) [3][4]. In JEM, sub-block based prediction is applied in several coding tools, such as affine prediction, alternative temporal motion vector prediction (ATMVP), spatio-temporal motion vector prediction (STMVP), bidirectional optical flow (BIO), frame rate up-conversion (FRUC), locally adaptive motion vector resolution (LAMVR), overlapping block motion compensation (OBMC), local illumination compensation (LIC), and decoder-side motion vector refinement (DMVR).

[0041] 2.1 Example of motion vector prediction based on sub-CU In the quadtree plus binary tree JEM (QTBT), each CU can have at most one set of motion parameters for each prediction direction. In some embodiments, the encoder considers two sub-CU level motion vector prediction methods by splitting the large CU into sub-CUs and deriving motion information for all sub-CUs of the large CU. The alternative temporal motion vector prediction (ATMVP) method allows each CU to fetch multiple sets of motion information from multiple blocks smaller than the current CU in the aligned reference picture. In the spatial-temporal motion vector prediction (STMVP) method, the temporal motion vector predictor and spatial neighbor motion vectors are used to recursively derive the motion vectors of the sub-CUs. In some embodiments, the motion compression of the reference frame may be disabled to maintain a more accurate motion field for sub-CU motion prediction.

[0042] 2.1.1 Alternative Temporal Motion Vector Prediction (ATMVP) Example In the ATMVP method, the temporal motion vector prediction (TMVP) method is modified by retrieving multiple sets of motion information (including motion vectors and reference indexes) from blocks smaller than the current CU.

[0043] 10 shows an example of ATMVP motion prediction processing in a CU 1000. The ATMVP method predicts a motion vector of a sub-CU 1001 in a CU 1000 in two steps. In the first step, a corresponding block 1051 in a reference picture 1050 is identified by a temporal vector. The reference picture 1050 is also called a motion source picture. In the second step, the current CU 1000 is divided into sub-CUs 1001, and the motion vector and reference index of each sub-CU are obtained from the block corresponding to each sub-CU.

[0044] In the first step, the reference picture 1050 and corresponding blocks are determined according to the motion information of the spatially neighboring blocks of the current CU 1000. To avoid the repeated scanning process of the neighboring blocks, the first merging candidate in the merging candidate list of the current CU 1000 is used. The first available motion vector and its associated reference index are set to the temporal vector and the index of the motion source picture. In this way, compared with TMVP, the corresponding block can be identified more accurately, and the corresponding block (sometimes called the aligned block) is always in the bottom-right or center position with respect to the current CU.

[0045] In a second step, the corresponding block of the sub-CU 1051 is identified by the temporal vector in the motion source picture 1050 by adding the temporal vector to the coordinates of the current CU. For each sub-CU, the motion information of its corresponding block (e.g., the smallest motion grid covering the center sample) is used to derive the motion information of the sub-CU. After identifying the motion information of the corresponding N×N block, it is converted into the motion vector and reference index of the current sub-CU, and motion scaling and other procedures are applied, similar to TMVP in HEVC. For example, the decoder checks whether a low-delay condition (e.g., the POC of all reference pictures of the current picture is smaller than the POC of the current picture) is met, and possibly predicts the motion vector MVy (e.g., X is equal to 0 or 1, and Y is equal to 1-X) of each sub-CU using the motion vector MVx (e.g., the motion vector corresponding to the reference picture list X).

[0046] 2.1.2 Spatial-Temporal Motion Vector Prediction (STMVP) Example In the STMVP method, the motion vectors of sub-CUs are derived recursively along the raster scan order. Figure 11 shows an example of one CU with four sub-blocks and neighboring blocks. Consider an 8x8 CU 1100, which includes four 4x4 sub-CUs, A (1101), B (1102), C (1103), and D (1104). The neighboring 4x4 blocks in the current frame are labeled a (1111), b (1112), c (1113), and d (1114).

[0047] The motion derivation of sub-CU A starts by identifying its two spatial neighbors. The first neighbor is the N×N block above sub-CU, A 1101 (block c 1113). If this block c (1113) is not available or is intra-coded, check the other N×N blocks above sub-CU A (1101) (starting from block c 1113 and going from left to right). The second neighbor is the block to the left of sub-CU A 1101 (block b 1112). If block b (1112) is not available or is intra-coded, check the other blocks to the left of sub-CU A 1101 (starting from block b 1112 and going from top to bottom). The motion information obtained from the neighboring blocks in each list is scaled to the first reference frame of a given list. Then, derive the temporal motion vector predictor (TMVP) of sub-block A 1101 following the same procedure as the TMVP derivation specified in HEVC. The motion information of the co-located block in block D1104 is fetched and scaled accordingly. Finally, after retrieving and scaling the motion information, average all available motion vectors for each reference list separately. This averaged motion vector is the motion vector of the current sub-CU.

[0048] 2.1.3 Example of Sub-CU Motion Prediction Mode Signaling In some embodiments, sub-CU modes are enabled as additional merge candidates, and no additional syntax elements are required to signal the mode. Add two additional merge candidates to the merge candidate list of each CU to represent ATMVP and STMVP modes. In other embodiments, up to seven merge candidates may be used if the sequence parameter set indicates that ATMVP and STMVP are enabled. The encoding logic of the additional merge candidates is the same as that of the merge candidates in HM, that is, for each CU in a P or B slice, two or more RD checks may be required for the two additional merge candidates. In some embodiments, such as JEM, all bins of the merge index are context coded by context-based adaptive binary arithmetic coding (CABAC). In other embodiments, such as HEVC, only the first bin is context coded, and the remaining bins are context bypass coded.

[0049] 2.2 Example of Adaptive Motion Vector Difference Resolution In an embodiment of the present invention, when use_integer_mv_flag is 0 in the slice header, the motion vector difference (MVD) (between the motion vector and the predicted motion vector of the PU) is signaled in units of quarter luma samples. In JEM, locally adaptive motion vector resolution (LAMVR) is introduced. In JEM, MVD can be coded in units of quarter luma samples, integer luma samples or four luma samples. MVD resolution is controlled at coding unit (CU) level, and the MVD resolution flag is conditionally signaled for each CU that has at least one non-zero MVD module.

[0050] For a CU with at least one non-zero MVD module, a first flag is signaled to indicate whether ¼ luma sample MV precision is used in the CU. If the first flag (equal to 1) indicates that ¼ luma sample MV precision is not used, another flag is signaled to indicate whether integer luma sample MV precision or 4 luma sample MV precision is used.

[0051] If the first MVD resolution flag of a CU is zero or not coded for the CU (i.e., all MVDs in the CU are zero), then 1 / 4 luma sample MV resolution is used for the CU. If the CU uses integer luma sample MV precision or 4 luma sample MV precision, round the MVP in the CU's AMVP candidate list to the corresponding precision.

[0052] In the encoder, the CU-level RD check is used to determine which MVD resolution to use for the CU. That is, the CU-level RD check is performed three times for each MVD resolution. To increase the speed of the encoder, the following coding method is applied in JEM:

[0053] --During RD check of a CU with normal 1 / 4 luma sample MVD resolution, the motion information (integer luma sample precision) of the current CU is stored. During RD check of the same CU with integer luma sample and 4 luma sample MVD resolution, the stored motion information (after rounding) is used as starting point for further small range motion vector refinement, so that the time consuming motion estimation process is not duplicated three times.

[0054] --Conditionally invoke RD check for CUs with 4 luma sample MVD resolution. For a CU, if the RD cost of integer luma sample MVD resolution is much larger than that of 1 / 4 luma sample MVD resolution, the RD check of 4 luma sample MVD resolution for the CU is omitted.

[0055] 2.3 Example of improving the accuracy of motion vector storage In HEVC, the precision of motion vectors is 1 / 4 pixel (1 / 4 luma sample and 1 / 8 chroma sample for 4:2:0 video). In JEM, the precision of internal motion vector storage and merge candidates is increased to 1 / 16 pixel. The higher motion vector precision (1 / 16 pixel) is used for motion compensated inter prediction for CUs coded in skip / merge mode. For CUs coded in regular AMVP mode, either integer pixel or quarter pixel motion is used.

[0056] The SHVC upsampling interpolation filter, which has the same filter length and normalization coefficient as the HEVC motion compensation interpolation filter, is used as the motion compensation interpolation filter for the additional fractional pixel positions. In JEM, the accuracy of the motion vectors of the chroma components is 1 / 32 samples, and the average of the filters of the two neighboring 1 / 16th pixel fractional positions is used to derive the additional interpolation filter of the 1 / 32th pixel fractional position.

[0057] 2.4 Example of Overlapped Block Motion Compensation (OBMC) In JEM, OBMC can be switched on / off using CU-level syntax. When using OBMC in JEM, OBMC is performed for all motion compensation (MC) block boundaries except the bottom-right boundary of the CU. It also applies to both luma and chroma components. In JEM, an MC block corresponds to a coding block. If the CU is coded in a sub-CU mode (including sub-CU merge, affine, and FRUC modes), each sub-block of the CU is one MC block. To handle CU boundaries uniformly, OBMC is performed at the sub-block level for all MC block boundaries, where the sub-block size is set equal to 4×4, as shown in Figures 12A and 12B.

[0058] Figure 12A shows the sub-blocks at the CU / PU boundary, where the shaded sub-blocks are where OBMC is applied. Similarly, Figure 12B shows the sub-PUs in ATMVP mode.

[0059] When OBMC is applied to the current subblock, in addition to the current motion vector, the motion vectors of the four connected neighboring subblocks are also available and used to derive a prediction block for the current subblock if they are not identical to the current motion vector. These multiple prediction blocks based on multiple motion vectors are combined to generate a final prediction signal for the current subblock.

[0060] Let PN (N is the index of the neighboring subblocks above, below, left, and right) be the prediction block based on the motion vector of the neighboring subblock, and PC be the prediction block based on the motion vector of the current subblock. If PN is based on the motion information of the neighboring subblocks that contain the same motion information as the current subblock, OBMC is not performed from PN. Otherwise, add all samples of PN to the same samples in PC, i.e., add four rows / columns of PN to PC. Use weighting factors {1 / 4, 1 / 8, 1 / 16, 1 / 32} for PN and weighting factors {3 / 4, 7 / 8, 15 / 16, 31 / 32} for PC. The exception is small MC blocks (i.e., when the height or width of the coding block is equal to 4 or one CU is coded in sub-CU mode), in which case only two rows / columns of PN are added to PC. In this case, weighting factors {1 / 4, 1 / 8} are used for PN and weighting factors {3 / 4, 7 / 8} are used for PC. For a PN generated based on the motion vector of a neighboring subblock in the vertical (horizontal) direction, a sample in the same row (column) of the PN is added to the PC with the same weighting coefficient.

[0061] In JEM, for CUs whose size is 256 luma samples or less, a CU level flag is signaled to indicate whether OBMC is applied for the current CU. For CUs whose size is larger than 256 luma samples or not coded in AMVP mode, OBMC is applied by default. In the encoder, if OBMC is applied to a CU, its influence is considered during the motion estimation stage. The prediction signal formed by OBMC using the motion information of the upper neighboring block and the left neighboring block is used to compensate the upper and left boundaries of the original signal of the current CU, and then the normal motion estimation process is applied.

[0062] 2.5 Local Lighting Compensation (LIC) Example LIC is based on a linear model of illumination changes, with a scale factor a and an offset b, and is enabled or disabled appropriately for each inter-mode coding unit (CU).

[0063] When LIC is applied to a CU, a least square error method is used to derive parameters a and b by using the neighboring samples of the current CU and their corresponding reference samples. Figure 13 shows an example of neighboring samples used to derive the parameters of the IC algorithm. Specifically, as shown in Figure 1. Specifically, as shown in Figure 13, the subsampled (2:1 subsampled) neighboring samples of the CU and the corresponding samples in the reference picture (identified by the motion information of the current CU or sub-CU) are used. The IC parameters are derived and applied separately for each prediction direction.

[0064] If a CU is coded in merge mode, it copies the LIC flag from the neighboring block, similar to copying motion information in merge mode, otherwise it signals the LIC flag to the CU to indicate whether LIC is applied or not.

[0065] When LIC is enabled for a picture, an additional CU-level RD check is required to determine whether LIC applies for a CU. If LIC is enabled for a CU, the mean removed sum of absolute differences (MR-SAD) and mean removed sum of absolute Hadamard transform differences (MR-SATD) are used instead of SAD and SATD for integer pixel motion search and fractional pixel motion search, respectively.

[0066] To reduce the coding complexity, the following encoding scheme is applied in JEM:

[0067] --If there is no clear illumination change between the current picture and its reference pictures, LIC is disabled for the entire picture. To identify this situation, in the encoder, the histograms of the current picture and all of the current picture's reference pictures are calculated. If the histogram difference between the current picture and all of the current picture's reference pictures is less than a given threshold, LIC is disabled for the current picture, otherwise LIC is enabled for the current picture.

[0068] 2.6 Affine Motion Compensation Prediction Example In HEVC, only a translational motion model is applied for motion compensated prediction (MCP). However, the camera and the object may have various kinds of motion, such as zoom in / out, rotation, perspective motion, and / or other irregular motion. On the other hand, JEM applies a simplified affine transformation motion compensated prediction. Figure 14 shows an example of an affine motion field of a block 1400 described by two control point motion vectors V0 and V1. The motion vector field (MVF) of the block 1400 can be expressed as the following equation:

[0069]

number

[0070] As shown in Figure 14, (v0x, v0y) is the motion vector of the control point of the upper left corner, and (v1x, v1y) is the motion vector of the control point of the upper right corner. To simplify the motion compensation prediction, sub-block-based affine transformation prediction can be applied. The size of the sub-block M×N is derived as follows:

[0071]

number

[0072] where MvPre is the fractional precision of the motion vector (e.g., 1 / 16 in JEM). (v2x,v2y) is the motion vector of the bottom-left control point calculated according to equation (1). If necessary, M and N can be adjusted downwards to be divisors of w and h, respectively.

[0073] FIG. 15 shows an example of per-subblock affine MVF for block 1500. To derive the motion vector for each M×N subblock, the motion vector of the center sample of each subblock is calculated according to equation (1) and rounded to the fractional precision of the motion vector (e.g., 1 / 16 for JEM). A motion compensation interpolation filter can then be applied to generate a prediction for each subblock using the derived motion vector. After MCP, the high-precision motion vector for each subblock is rounded and stored with the same precision as the normal motion vector.

[0074] 2.6.1 AF_INTER mode implementation In JEM, there are two affine motion modes: AF_INTER mode and AF_MERGE mode. For CUs where both width and height are greater than 8, AF_INTER mode can be applied. A CU-level affine flag is signaled in the bitstream to indicate whether AF_INTER mode is used. In AF_INTER mode, motion vector pairs are calculated using neighboring blocks.

[0075]

number

[0076] Build a candidate list with

[0077] FIG. 16 shows an example of motion vector prediction (MVP) for block 1600 in AF_INTER mode. As shown in FIG. 16, v0 is selected from the motion vectors of subblocks A, B, or C. The motion vectors from the neighboring blocks can be scaled according to the reference list. The motion vectors may also be scaled based on the relationship between the picture order count (PIC) of the references of the neighboring blocks and the POC of the current CU. The method of selecting v1 from the neighboring subblocks D and E is similar. If the number of candidate lists is less than two, fill the list with motion vector pairs that duplicate each of the AMVP candidates. If the candidate list is greater than two, first sort the candidates based on the neighboring motion vectors (e.g., based on the similarity of the two motion vectors in the paired candidate). In some implementations, keep the first two candidates. In some embodiments, a rate-distortion (RD) cost check is used to determine which motion vector pair candidate to select as the control point motion vector prediction (CPMVP) of the current CU. An index indicating the position of the CPMVP in the candidate list can be signaled in the bitstream. After determining the CPMVP of the current affine CU, affine motion estimation is applied to obtain a control point motion vector (CPMV). Then, the difference between the CPMV and the CPMVP is signaled in the bitstream.

[0078] In AF_INTER mode, if a 4 / 6 parameter affine mode is used, 2 / 3 control points are needed, and therefore 2 / 3 MVDs need to be coded for these control points, as shown in Figures 17A and 17B. In an existing implementation [5], the MVs may be derived, for example, by predicting mvd1 and mvd2 from mvd0, as follows:

[0079]

number

[0080] Here, m i , mvd i , mv1 are the predicted motion vector, the motion vector difference, and the motion vector of the top left pixel (i=0), the top right pixel (i=1), and the bottom left pixel (i=2), respectively, as shown in FIG. 18B. In some embodiments, the addition of two motion vectors (e.g., mvA(xA, yA) and mvB(xB, yB)) is equivalent to summing the two components separately. For example, newMV=mvA+mvB means setting the two components of newMV to (xA+xB) and (yA+yB), respectively.

[0081] 2.6.2 Example of the fast affine ME algorithm in AF_INTER mode In some embodiments of the affine mode, the MVs of two or three control points need to be determined jointly. Directly searching multiple MVs jointly is computationally complex. In one example, a fast affine ME algorithm [6] is proposed and adopted for VTM / BMS.

[0082] For example, we describe a fast affine ME algorithm for a four-parameter affine model, and the ideas can be extended to a six-parameter affine model.

[0083]

number

[0084]

number

[0085] By replacing (a-1) with a', the motion vector can be rewritten as follows:

[0086]

number

[0087] Assuming that the motion vectors of the two control points (0,0) and (0,w) are known, from equation (5), the affine parameters may be derived as follows:

[0088]

number

[0089] The motion vector can be rewritten in vector form as follows:

[0090]

number

[0091] where P=(x,y) is the pixel position.

[0092]

number

[0093] In some embodiments, at the encoder, the MVD of AF_INTER can be derived iteratively. i Let (P) be the MV derived at the ith iteration of position P, and dMV C i MV at the ith iteration C Then, in the (i+1)th iteration,

[0094]

number

[0095] Pic ref Let Pic be the reference picture. cur Let be the current picture, and Q = P + MVi (P). When using MSE as the matching criterion, the function that needs to be minimized may be expressed as:

[0096]

number

[0097] (dMV C i ) T Assuming that is sufficiently small, Pic ref (Q+A(P)*(dMV C i ) T ) may be rewritten as an approximation based on a first-order Taylor expansion as follows:

[0098]

number

[0099] Where:

[0100]

number

[0101] E i+1 (P)=Pic cur (P)-Pic ref If we adopt the notation (Q), it becomes as follows.

[0102]

number

[0103] Set the derivative of the error function to zero, then A(P)*(dMV C i ) T Based on this, the delta MV of the control points (0,0) and (0,w) is calculated as follows: C i can be derived.

[0104]

number

[0105]

number

[0106]

number

[0107]

number

[0108] In some embodiments, this MVD derivation process can be repeated n times and the final MVD calculated as follows:

[0109]

number

[0110]

number

[0111]

number

[0112]

number

[0113] In the above implementation [5], predicting the delta MV of the control point (0,w) represented by mvd1 from the delta MV of the control point (0,0) represented by mvd0 is

[0114]

number

[0115] will be encoded only if

[0116] 2.6.3 Implementation of AF_MERGE Mode When applying a CU in AF_MERGE mode, the CU obtains the first block coded in affine mode from the valid neighboring reconstructed blocks. FIG. 18A shows an example of a selection order of candidate blocks for a current CU 1800. As shown in FIG. 18A, the selection order can be the left (1801), top (1802), right (1803), bottom left (1804), top left (1805) of the current CU 1800. FIG. 18B shows another example of candidate blocks for the current CU 1800 in AF_MERGE mode. If the neighboring bottom left block 1801 is coded in affine mode, motion vectors v2, v3, and v4 of the top left corner, top right corner, and bottom left corner of the CU containing the sub-block 1801 are derived as shown in FIG. 18B. Based on v2, v3, and v4, the motion vector v0 of the top left corner in the current CU 1800 is calculated. Thus, the motion vector v1 of the top right of the current CU can be calculated.

[0117] After calculating the CPMV of the current CU v0, v1 according to the affine motion model in equation (1), the MVF of the current CU can be generated. To identify whether the current CU is coded in AF_MERGE mode, an affine flag can be signaled in the bitstream if there is at least one neighboring block coded in affine mode.

[0118] 2.7 Pattern Matching Motion Vector Derivation (PMMVD) Example The PMMVD mode is a special merging mode based on the Frame Rate Up-Conversion (FRUC) method, in which the motion information of the blocks is not signaled but is derived at the decoder side.

[0119] The FRUC flag may be signaled to the CU if its merge flag is true. If the FRUC flag is false, a merge index may be signaled and normal merge mode is used. If the FRUC flag is true, an additional FRUC mode flag may be signaled to indicate which method (e.g., bilateral matching or template matching) is used to derive motion information for the block.

[0120] On the encoder side, the decision to use the FRUC merging mode for a CU is based on the RD cost selection, just as it is done for regular merging candidates. For example, we use the RD cost selection to check multiple matching modes (e.g., bilateral matching and template matching) for one CU. The one that leads to the minimum cost is compared with the other CU modes. If the FRUC matching mode is the most efficient one, we set the FRUC flag to true for the CU and use the associated matching mode.

[0121] Generally, the motion derivation process in FRUC merge mode has two steps: first, CU-level motion search is performed, and then, sub-CU-level motion refinement is performed. At the CU level, an initial motion vector for the whole CU is derived based on bilateral matching or template matching. First, a list of MV candidates is generated, and the candidate that leads to the minimum matching cost is selected as the starting point for further CU-level refinement. Then, a local search based on bilateral matching or template matching is performed near the starting point. The result of the MV at the minimum matching cost is taken as the MV of the whole CU. Then, the derived CU motion vector is used as the starting point to further refine the motion information at the sub-CU level.

[0122] For example, for W×H CU motion information derivation, the following derivation process is performed: In the first stage, the MV for the whole W×H CU is derived. In the second stage, the CU is further divided into M×M sub-CUs. The value of M is calculated as in Equation (3), where D is a predefined division depth, which is set to 3 by default in JEM. Then, the MV of each sub-CU is derived.

[0123]

number

[0124] FIG. 19 shows an example of bilateral matching used in the frame rate up-conversion (FRUC) method. This bilateral matching is used to derive the motion information of the current CU (1900) by finding the closest match between two blocks along the motion trajectory of the current CU (1900) in two different reference pictures (1910, 1911). Assuming a continuous motion trajectory, the motion vectors MV0 (1901), MV1 (1902) pointing to the two reference blocks are proportional to the temporal distance between the current picture and the two reference pictures, e.g., TD0 (1903), TD1 (1904). In some embodiments, when the current picture 1900 is between the two reference pictures (1910, 1911) and the temporal distance from the current picture to the two reference pictures is the same, the bilateral matching becomes a bidirectional MV based on the mirror.

[0125] FIG. 20 shows an example of template matching used in the Frame Rate Up Conversion (FRUC) method. Using template matching, motion information of the current CU 2000 can be derived by finding the closest match between a template in the current picture (e.g., a block in the upper and / or left neighbor of the current CU) and a block in the reference picture 2010 (e.g., the same size as the template). Besides the FRUC merge mode mentioned above, template matching can also be applied to the AMVP mode. In both JEM and HEVC, AMVP has two candidates. A new candidate can be derived by using the template matching method. If the newly derived candidate by template matching is different from the first existing AMVP candidate, it is inserted at the beginning of the AMVP candidate list, and then the list size is set to 2 (e.g., by removing the second existing AMVP candidate). When applied to the AMVP mode, only the CU level search is applied.

[0126] The CU-level MV candidate set may include: (1) the original AMVP candidates if the current CU is in AMVP mode, (2) all merge candidates, (3) multiple MVs in the interpolated MV field (described below), and the motion vectors of the top-left neighbor.

[0127] When using bilateral matching, each valid MV of the merge candidate can be used as input to generate MV pairs assuming bilateral matching. For example, one valid MV of the merge candidate is (MVa,ref a ) and the corresponding bilateral MV reference picture ref b is found in another reference list B, ref a and ref b are on different sides of the current picture in time. b If not available, ref b ref aThe ref is determined as a different reference from the current picture, and its temporal distance from the current picture is the smallest value in list B. b After determining the current picture and ref a ,ref b MVb is derived by scaling MVa based on the time distance between

[0128] In some implementations, four MVs from the interpolated MV field may be added to the CU level candidate list. Specifically, the interpolated MVs at positions (0,0), (W / 2,0), (0,H / 2), and (W / 2,H / 2) of the current CU are added. When applying FRUC in AMVP mode, the original AMVP candidates are also added to the CU level MV candidate set. In some implementations, at the CU level, 15 MVs for the AMVP CU and 13 MVs for the merged CU can be added to the candidate list.

[0129] The sub-CU level MV candidate set includes the MV determined by the CU level search, (2) the MVs of the top, left, top-left, and top-right neighbors, (3) the scaled version of the aligned MV from the reference picture, (4) one or more (e.g., up to four) ATMVP candidates, and (5) one or more (e.g., up to four) STMVP candidates. The scaled MV from the reference picture is derived as follows: Traverse the reference pictures in both lists. The MV at the aligned position of the sub-CU in the reference picture is scaled with respect to the reference of the starting CU level MV. The candidates for ATMVP and STMVP may be the first four candidates. At the sub-CU level, one or more (e.g., up to 17) MVs are added to the candidate list.

[0130] Generate interpolated MV fields. Before coding a frame, generate an interpolated motion field for the whole picture based on one-sided ME, and the motion field may be used as a CU-level or sub-CU-level MV candidate later.

[0131] In some embodiments, the motion field of each reference picture in both reference lists is traversed at the 4x4 block level. Figure 21 shows an example of unilateral motion estimation (ME) 2100 in the FRUC method. For each 4x4 block, if the motion related to the block passing through the 4x4 block of the current picture is not yet assigned an interpolated motion, the motion of the reference block is scaled to the current picture based on the temporal distances TD0 and TD1 (similar to the MV scaling of TMVP in HEVC), and the scaled motion is assigned to the block of the current frame. If an unscaled MV is assigned to the 4x4 block, the motion of the block is marked as unavailable in the interpolated motion field.

[0132] Interpolation and matching costs. When one motion vector points to one fractional sample position, motion compensated interpolation is necessary. To reduce the complexity, bilinear interpolation can be used for both bilateral and template matching instead of the usual 8-tap HEVC interpolation.

[0133] The calculation of the matching cost is slightly different in different steps. When selecting a candidate from the CU-level candidate set, the matching cost may be the sum of absolute differences (SAD) of bilateral matching or template matching. After determining the starting MV, the matching cost C of bilateral matching in the sub-CU level search is calculated as follows:

[0134]

number

[0135] where w is a weighting factor. In some embodiments, w may be empirically set to 4. MV and MV S denote the current MV and the start MV, respectively. The SAD may still be used as the matching cost for template matching in the sub-CU level search.

[0136] In FRUC mode, the MV is derived by using only luma samples. The derived motion is used for both luma and chroma for MC inter prediction. After determining the MV, the final MC is performed using an 8-tap interpolation filter for luma and a 4-tap interpolation filter for chroma.

[0137] MV refinement is a pattern-based MV search with the criteria of bilateral matching cost or template matching cost. JEM supports two search patterns, namely Unlimited Center Biased Diamond Search (UCBDS) and Adaptive Cross Search for MV refinement at CU level and sub-CU level, respectively. For both CU and sub-CU level MV refinement, MV is directly searched with the accuracy of 1 / 4 luma sample MV, followed by 1 / 8 luma sample MV refinement. The search range of MV refinement for CU and sub-CU steps is set equal to 8 luma samples.

[0138] In the bilateral matching merge mode, bi-prediction is applied because the motion information of the CU is derived based on the closest matching between two blocks along the motion trajectory of the current CU in two different reference pictures. In the template matching merge mode, the encoder can select among uni-prediction from list0, uni-prediction from list1, or bi-prediction for the CU. The selection can be made based on the template matching cost as follows:

[0139] If costBi<=factor*min(cost0,cost1) Bi-prediction is used. otherwise, cost0<=cost1 Use a single prediction from list0. If not, Use a single prediction from list1.

[0140] Here, cost0 is the SAD of list0 template matching, cost1 is the SAD of list1 template matching, and costBi is the SAD of bi-prediction template matching. For example, a factor value of 1.25 means that the selection process is biased toward bi-prediction. This inter-prediction direction selection can be applied to the template matching process at the CU level.

[0141] 3. Shortcomings of existing implementations In some existing implementations, when the MV / MV difference (MVD) can be selected from a set of multiple MV / MVD precisions for an affine-coded block, it is still unclear how a more accurate motion vector can be obtained.

[0142] In other existing implementations, the MV / MVD precision information also plays an important role in determining the overall coding gain of AMVR applied to the affine mode, but whether it achieves this goal remains uncertain.

[0143] 4. Exemplary Method for MV Predictor for Affine Modes Using AMVR The embodiments of the disclosed technology overcome the shortcomings of existing implementations, thereby providing video coding with higher coding efficiency. Based on the disclosed technology, deriving and signaling a motion vector predictor for affine mode with adaptive motion vector resolution (AMVR) can improve both existing and future video coding standards, as will be demonstrated in the following examples that illustrate various implementations. The examples of the disclosed technology provided below are intended to illustrate the general concept and should not be construed as limiting. In an example, various features described in these examples can be combined, unless expressly indicated to the contrary.

[0144] In some embodiments, when AMVR is applied, the following examples can be applied to affine or normal modes. These examples assume that precision Prec (i.e., MV has precision 1 / (2^Prec)) is used to code MVD in AF_INTER mode or to code MVD in normal inter mode. The motion vector predictor (e.g., inherited from neighboring block MV) and its precision are denoted by MVPred (MVPred X ,MVPred Y ), represented as PredPrec.

[0145] Example 1 It is proposed that the final MV precision is not changed, ie it is kept the same as the precision of the motion vectors to be stored. (a) In one example, the final MV precision may be set to 1 / 16 pixel or 1 / 8 pixel. (b) In one example, the signaled MVD is first scaled and then added to the MVP to form the final MV for one block.

[0146] Example 2 First, an MVP derived directly from neighboring blocks (e.g., spatial or temporal) or a default MVP can be modified and then added to the signaled MVD to form the final MV for the (current) block. (a) Alternatively, whether and how to apply the MVP correction may be different for different values ​​of Prec. (b) In one example, if Prec is greater than 1 (i.e., the MVD is fractional precision), the precision of the neighboring MVs is not changed and no scaling is performed. (c) In one example, if Prec is equal to 1 (ie, the MVD has an accuracy of 1 pixel), then the MV predictor (ie, the MV of the neighboring blocks) needs to be scaled. (d) In one example, if Prec is less than 1 (ie, the MVD is 4-pixel accurate), the MV predictor (ie, the MV of the neighboring blocks) needs to be scaled.

[0147] Example 3 In one example, if the precision of the MVD signal is the same as the precision of the stored MV, then no scaling is required after reconstructing the affine MV; otherwise, the MV is reconstructed with the precision of the signaled MVD and then scaled to the precision of the stored MV.

[0148] Example 4 In one example, the normal inter mode and the AF_INTER mode may select an implementation based on the different examples described above.

[0149] Example 5 In one example, a syntax element (or a field including more than one bit, eg, two bits) for indicating MV / MVD precision for affine mode may be signaled with the following semantics: (a) In one example, syntax elements equal to 0, 1, and 2 indicate MV precision of ¼ pixel, 1 / 16 pixel, and 1 pixel, respectively. (b) Alternatively, in affine mode, syntax elements equal to 0, 1, and 2 indicate MV precision of 1 / 4 pixel, 1 pixel, and 1 / 16 pixel, respectively. (c) Alternatively, in affine mode, syntax elements equal to 0, 1, and 2 indicate MV precision of 1 / 16 pixel, 1 / 4 pixel, and 1 pixel, respectively.

[0150] Example 6 In one example, enabling or disabling AMVR for affine mode may be signaled in the SPS, PPS, VPS, sequence / picture / slice header / tile, etc.

[0151] Example 7 In one example, an indication of the allowed MV / MVD precision may be signaled in the SPS, PPS, VPS, sequence / picture / slice header / tile, etc. (a) An indication of the selected MVD precision may be signaled to each coding tree unit (CTU) and / or each region. (b) The set of allowed MV / MVD precisions may depend on the coding mode of the current block (e.g., affine or non-affine). (c) The set of allowed MV / MVD precisions may depend on slice type / temporal layer index / low latency check flag. (d) The set of allowed MV / MVD precisions may depend on the block size and / or block shape of the current block or neighboring blocks. (e) The set of allowed MV / MVD precisions may depend on the precision of the MVs to be stored in the decoded picture buffer.

[0152] (i) In one example, if the stored MV is X pixels (X-pels), then the allowed MV / MVD precision set may have at least X pixels (X-pels).

[0153] The above-mentioned examples may be incorporated in connection with the methods described below, such as methods 2200 and 2300, which may be implemented in a video decoder or video encoder.

[0154] 22 shows a flowchart of an example method for video decoding. The method 2200 includes determining a final motion vector whose precision is the same as that of a stored motion vector of the current video block, using an encoding tool that appropriately selects a resolution of each motion vector associated with the current video block, for conversion between the current video block and a bitstream representation of the current video block at step 2210.

[0155] The method 2200 includes, at step 2220, converting between the bitstream representation and the current video block based on the final motion vector.

[0156] 23 shows a flowchart of another example method for video decoding. The method 2300 includes determining, at step 2310, using an encoding tool that appropriately selects a resolution of each motion vector associated with a current video block for converting between the current video block and a bitstream representation of the current video block, where the current video block is encoded in affine mode and the bitstream representation includes a field including two or more bits indicating a precision of the motion vector or motion vector difference associated with the current video block.

[0157] The method 2300 includes, at step 2320, converting between the bitstream representation and the current video block based on the final motion vector.

[0158] In some embodiments, the following technical solutions can be implemented.

[0159] A1. A method for video processing (e.g., method 2200 of FIG. 22), comprising: determining (2210) a final motion vector whose precision is the same as the precision of a stored motion vector of the current video block using an encoding tool that appropriately selects the resolution of each motion vector associated with the current video block to convert between the current video block and a bitstream representation of the current video block; and converting between the bitstream representation and the current video block based on the final motion vector (2220).

[0160] A2. The method according to solution A1, wherein the accuracy of the final motion vector is 1 / 16 pixel.

[0161] A3. The method according to solution A1, wherein the accuracy of the final motion vector is 1 / 8 pixel.

[0162] A4. The method according to any of Solutions A1-A3, wherein the final motion vector is based on adding a motion vector predictor (MVP) to a motion vector difference (MVD).

[0163] A5. The method described in solution A4, which scales the MVD before adding the MVP to it.

[0164] A6. The method according to solution A4, where the MVP is derived from spatially or temporally neighboring blocks.

[0165] A7. The method according to solution A4, where the MVP is the default MVP.

[0166] A8. The method according to solution A6 or A7, wherein the MVP is modified before it is added to the MVD.

[0167] A9. The method according to solution A7, wherein correcting the MVP is based on the accuracy of the MVD.

[0168] A10. The method of solution A9, further comprising bypassing the scaling operation for the MVP if the precision of the MVD is determined to be fractional.

[0169] A11. The method of solution A9, further comprising scaling the MVP if the accuracy of the MVD is determined to be less than or equal to 1.

[0170] A12. The method of solution A4, further comprising: bypassing the scaling operation for the final motion vector if it is determined that the precision of the MVD is the same as the precision of the stored motion vector.

[0171] A13. The method according to solution A4, further comprising scaling the final motion vector if it is determined that the precision of the MVD is different from the precision of the stored motion vector.

[0172] A14. The method according to any of Solutions A1-A13, wherein the current video block is coded in non-affine inter mode or affine inter mode.

[0173] A15. The method according to any of Solutions A1 to A14, wherein the coding tool that adaptively selects a resolution for each motion vector is an Adaptive Motion Vector Resolution (AMVR) tool.

[0174] A16. The method according to any of Solutions A1-A15, wherein the transformation generates the current video block from a bitstream representation.

[0175] A17. The method according to any of Solutions A1 to A15, wherein the transformation generates a bitstream representation from the current video block.

[0176] A18. An apparatus in a video system comprising a processing device and a non-transitory memory loaded with instructions, the instructions executed by the processing device causing the processing device to implement a method according to any one of Solutions A1 to A17.

[0177] A19. A computer program product stored on a non-transitory computer readable medium, comprising program code for performing the method according to any of the solutions A1-A17.

[0178] In addition to the above solutions, in some embodiments, the following solutions can be implemented.

[0179] B1. A video processing method comprising: determining a final motion vector using an encoding tool that appropriately selects a resolution of each motion vector associated with the current video block for conversion between a current video block and a bitstream representation of the current video block, where the current video block is encoded in affine mode and the bitstream representation includes a field including two or more bits indicating a precision of the motion vector or motion vector difference associated with the current video block; and performing conversion between the bitstream representation and the current video block based on the final motion vector.

[0180] B2. The method according to solution B1, wherein different values ​​of the field indicate that the accuracy of the motion vector or the motion vector difference is 1 / 4 pixel, 1 / 16 pixel or 1 pixel.

[0181] B3. The method according to solution B2, wherein the field values ​​of 0, 1 and 2 correspond to motion vector precisions of 1 / 4 pixel, 1 / 16 pixel and 1 pixel, respectively.

[0182] B4. The method according to solution B2, wherein the field values ​​of 0, 1 and 2 correspond to motion vector precisions of 1 / 4 pixel, 1 pixel and 1 / 16 pixel, respectively.

[0183] B5. The method according to solution B2, wherein a value of 0, 1 or 2 in the field corresponds to a motion vector precision of 1 / 16 pixel, 1 / 4 pixel and 1 pixel, respectively.

[0184] B6. A method according to any of Solutions B1 to B5, enabling coding tools for affine mode based on signaling in a sequence parameter set (SPS), a picture parameter set (PPS), a video parameter set (VPS), a slice header, a tile header, a sequence header, or a picture header.

[0185] B7. A method according to any of Solutions B1 to B5, signaling a set of tolerance values ​​for the accuracy of motion vectors or motion vector differences in affine or non-affine mode in a sequence parameter set (SPS), picture parameter set (PPS), video parameter set (VPS), slice header, tile header, sequence header, or picture header.

[0186] B8. The method according to solution B7, signalling the set of allowed values ​​to each coding tree unit (CTU) of the current block.

[0187] B9. The method according to Solution B7, wherein the set of tolerance values ​​is based on an encoding mode or a dimension of the current block.

[0188] B10. The method according to solution B9, wherein the encoding mode is an affine mode or a non-affine mode.

[0189] B11. The method of solution B7, wherein the set of tolerance values ​​is based on a slice type, a time layer index, or a low latency check flag.

[0190] B12. The method according to Solution B7, wherein the set of tolerance values ​​is based on the accuracy of the motion vectors stored in the decoded picture buffer.

[0191] B13. The method according to any of Solutions B1 to B12, wherein the coding tool for adaptively selecting the resolution of each motion vector is an Adaptive Motion Vector Resolution (AMVR) tool.

[0192] B14. The method according to any of Solutions B1 to B13, wherein the conversion generates the current video block from a bitstream representation.

[0193] B15. The method according to any of Solutions B1 to B13, wherein the transformation generates a bitstream representation from the current video block.

[0194] B16. An apparatus in a video system comprising a processing device and a non-transitory memory loaded with instructions, the instructions executed by the processing device causing the processing device to implement a method according to any one of solutions B1 to B15.

[0195] B17. A computer program product stored on a non-transitory computer readable medium, said computer program product comprising program code for executing the method according to any one of the solutions B1 to B15.

[0196] 5. Exemplary implementations of the disclosed technology FIG. 24 is a block diagram of a video processing device 2400. The device 2400 may be used to implement one or more of the methods described herein. The device 2400 may be implemented in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 2400 may include one or more processing devices 2402, one or more memories 2404, and video processing hardware 2406. The processing device 2402 may be configured to implement one or more methods described herein, including but not limited to the methods 2200 and 2300. The memory (memory) 2404 may be used to store data and codes used to implement the methods and techniques described herein. The video processing hardware 2406 may be used to implement the techniques described herein in a hardware circuit.

[0197] In some embodiments, the video encoding method may be performed using an apparatus implemented on a hardware platform, such as that described with reference to FIG.

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

[0199] The system 2500 may include an encoding module 2504 that may implement various encoding or encoding methods described herein. The encoding module 2504 may reduce the average bit rate of the video from the input unit 2502 to the output of the encoding module 2504, generating an encoded representation of the video. Thus, this encoding technique may be referred to as a video compression or video transcoding technique. The output of the encoding module 2504 may be stored or transmitted via a connected communication, as represented by module 2506. The bitstream (or encoded) representation of the video received at the input unit 2502, stored or communicated, may be used by module 2508 to generate pixel values ​​or displayable video that are transmitted to the display interface unit 2510. The process of generating a user-viewable video from the bitstream representation may be referred to as video unfolding. Additionally, although certain video processing operations are referred to as "encoding" operations or tools, it will be understood that the encoding tools or operations are performed by an encoder and corresponding decoding tools or operations that reverse the results of the decoding, performed by a decoder.

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

[0201] While specific embodiments of the disclosed technology have been described above for purposes of illustration, it will be understood that various modifications may be made without departing from the scope of the invention. Accordingly, the disclosed technology is not to be limited except as by the appended claims.

[0202] Implementations of the subject matter and functional operations described in this patent specification may be implemented in various systems, digital electronic circuits, or computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in one or more combinations thereof. Embodiments of the subject matter described herein may be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a tangible, non-transportable computer-readable medium for execution by or for controlling the operation of a data processing device. The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a storage device, a composition of matter that provides a machine-readable propagated signal, or one or more combinations thereof. The term "data processing unit" or "data processing device" includes all apparatus, devices, and machines for processing data, including, for example, a programmable processing device, a computer, or multiple processing devices or computers. In addition to hardware, the apparatus may include code that creates an environment for the execution of the computer program, such as code that constitutes a processing device firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof.

[0203] A computer program (also called a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed as a stand-alone program or in any form including modules, components, subroutines, or other units suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may be recorded as part of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), may be stored in a single file dedicated to the program, or may be stored in multiple coordinating files (e.g., a file that stores one or more modules, subprograms, or code portions). A computer program can be deployed to run on one computer located at one site, or on multiple computers distributed across multiple sites and interconnected by a communication network.

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

[0205] Processors suitable for executing computer programs include, for example, both general purpose and special purpose microprocessors, as well as any one or more processors of any kind of digital computer. Typically, a processor receives instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for executing instructions and one or more storage devices for storing instructions and data. Typically, a computer may include one or more mass storage devices, e.g., magnetic, magneto-optical, or optical disks, for storing data, or may be operatively coupled to receive data from or transfer data to these mass storage devices. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and storage devices, including, for example, semiconductor storage devices such as EPROM, EEPROM, flash storage devices, and the like. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0206] This specification, together with the drawings, are for illustrative purposes only, and illustrative is intended to mean example. In this specification, the use of "or" is intended to include "and / or" unless the context clearly indicates otherwise.

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

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

[0209] Only some implementations and examples have been described; other embodiments, extensions and variations are possible based on what is described and illustrated in this patent specification.

Claims

1. 1. A video processing method, comprising: determining a first precision from a precision set for a signaled motion vector difference (MVD) of a current video block; obtaining a motion vector having a predefined second precision based on the first precision, the second precision being the same as a precision of a motion vector stored for predicting a block, the motion vector being based on adding a motion vector predictor (MVP) to the motion vector difference (MVD); coding the current video block based on the motion vector; The MVD is scaled before adding the MVP to the MVD; The MVP is modified based on the first accuracy prior to adding the MVP to the MVD.

2. The method of claim 1 , wherein the second precision is 1 / 16 pixel precision.

3. The method of claim 1 , further comprising: scaling the MVP when the first precision is determined to be less than or equal to one pixel precision.

4. The method of claim 1 , wherein the MVP is derived from at least one of spatially neighboring blocks, temporally neighboring blocks, or is a default MVP.

5. The method of claim 1 , wherein the set of precisions includes 1 / 16 pixel precision, 1 / 4 pixel precision and 1 pixel precision.

6. The method of claim 1 , wherein the first precision is indicated in a bitstream.

7. The method of claim 1 , wherein the current video block is coded in affine inter mode.

8. The method of claim 1 , wherein the first precision is determined using an adaptive motion vector resolution (AMVR) tool.

9. The method of claim 1 , wherein the coding comprises encoding the current video block into a bitstream.

10. The method of claim 1 , wherein the coding comprises decoding the current video block from a bitstream.

11. 1. A video processing device comprising a processor and a non-transitory memory having instructions stored thereon, the instructions, when executed by the processor, causing the processor to: determining a first precision from a precision set for a signaled motion vector difference (MVD) of a current video block; obtaining a motion vector having a predefined second precision based on the first precision, the second precision being the same as a precision of a motion vector stored for predicting a block, the motion vector being based on adding a motion vector predictor (MVP) to the motion vector difference (MVD); coding the current video block based on the motion vector; The MVD is scaled before adding the MVP to the MVD; The MVP is modified based on the first accuracy prior to adding the MVP to the MVD.

12. The apparatus of claim 11 , wherein the second precision is 1 / 16 pixel precision.

13. The apparatus of claim 11 , wherein the precision sets include 1 / 16 pixel precision, 1 / 4 pixel precision, and 1 pixel precision.

14. The apparatus of claim 11 , wherein the first precision is indicated in a bitstream.

15. A non-transitory computer-readable storage medium storing instructions, the instructions being configured to cause a processor to: determining a first precision from a precision set for a signaled motion vector difference (MVD) of a current video block; obtaining a motion vector having a predefined second precision based on the first precision, the second precision being the same as a precision of a motion vector stored for predicting a block, the motion vector being based on adding a motion vector predictor (MVP) to the motion vector difference (MVD); coding the current video block based on the motion vector; The MVD is scaled before adding the MVP to the MVD; The MVP is modified based on the first accuracy prior to adding the MVP to the MVD.

16. A method for storing a video bitstream, the method comprising: determining a first precision from a precision set for a signaled motion vector difference (MVD) of a current video block; obtaining a motion vector having a predefined second precision based on the first precision, the second precision being the same as a precision of a motion vector stored for predicting a block, the motion vector being based on adding a motion vector predictor (MVP) to the motion vector difference (MVD); encoding the current video block into the bitstream based on the motion vector; storing the bitstream on a non-transitory computer-readable recording medium; The MVD is scaled before adding the MVP to the MVD; The method of claim 1, wherein the MVP is modified based on the first accuracy prior to adding the MVP to the MVD.

Citation Information

Patent Citations

  • Moving picture signal coding method, decoding method, coding apparatus, and decoding apparatus

    JP2006187025A

  • Adaptive Motion Vector Decomposition Signaling for Video Coding

    JP2017508346A

  • Adaptive motion vector accuracy for affine motion model-based video coding

    JP2021536686A

  • Moving picture signal coding method, decoding method, coding apparatus, and decoding apparatus

    US20040240550A1

  • Adaptive motion vector resolution signaling for video coding

    US20150195562A1