Adaptive motion vector differential decomposition for affine modes.
Sub-block-based motion vector refinement techniques enhance video encoding and decoding efficiency, addressing bandwidth challenges by optimizing motion vector management in video coding, thereby reducing data requirements.
Patent Information
- Application Number
- JP2023122288
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-21
- Filing Date
- 2023-07-27
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-05-21
AI Technical Summary
Existing video coding technologies face challenges in efficiently managing bandwidth demands for digital video due to high data requirements, particularly in applications involving video encoding and decoding, which are not adequately addressed by current standards like HEVC and VVC.
Implementing sub-block-based motion vector refinement techniques, such as affine adaptive motion vector decomposition (AMVR) and sub-block merging candidate lists, to optimize video encoding and decoding processes, including methods like temporal motion vector prediction (TMVP) and affine motion compensation, to enhance coding efficiency.
These techniques significantly reduce bandwidth requirements and improve encoding efficiency by refining motion vectors at a sub-block level, leading to more effective video compression and decoding processes.
Smart Images

Figure 0007571218000049 
Figure 0007571218000050 
Figure 0007571218000051
Abstract
Description
[Technical field]
[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application is a divisional application of International Patent Application No. PCT / CN2020 / 091537, filed May 21, 2020, which claims priority to and the benefit of International Patent Application No. PCT / CN2019 / 087805, filed May 21, 2019. All patent applications are incorporated herein by reference in their entirety.
[0002] This patent document relates to video encoding / decoding techniques, devices and systems. [Background technology]
[0003] Despite advances in video compression, digital video still accounts for the largest bandwidth usage on the Internet and other digital communications networks. As the number of connected user devices capable of receiving and displaying video increases, the bandwidth demands for digital video usage are expected to continue to grow. Summary of the Invention
[0004] This specification describes various embodiments and techniques in which video encoding or decoding is performed using sub-block based motion vector refinement. In one example aspect, a method of visual media processing is disclosed. The method includes determining whether to use an affine adaptive motion vector decomposition (AMVR) technique for visual media data in response to control information regarding the AMVR technique in a bitstream representation of the visual media data, the control information being included or omitted in the bitstream representation based on a rule, and performing a conversion between the visual media data and the bitstream representation of the visual media data.
[0005] In another example aspect, another method of visual media processing is disclosed that includes making a determination whether a subblock-based Temporal Motion Vector Prediction (sbTMVP) technique is applied to visual media data, in response to the determination, generating a subblock merging candidate list for a current video block included in the visual media data, and performing a conversion between the current video block and a bitstream representation of the current video block using the subblock merging candidate list.
[0006] In yet another example aspect, another method of visual media processing is disclosed that includes populating a sub-block merging candidate list for a conversion between a current video block and a bitstream representation, and performing the conversion using the sub-block merging candidate list including the populated one or more default merging candidates.
[0007] In yet another example aspect, another method of visual media processing is disclosed, the method including: determining, during a conversion between a current video block of a video and a bitstream representation, applicability of sub-block-based temporal motion vector prediction (sbTMVP) to the conversion, where one or more bits in the bitstream representation correspond to the determination; and performing the conversion based on the determination.
[0008] In yet another example aspect, another method of visual media processing is disclosed that includes selectively constructing a sub-block merging candidate list based on a condition associated with a temporal motion vector prediction (TMVP) step or a sub-block-based temporal motion vector prediction (sbTMVP) step, and performing a conversion between a current video block and a bitstream representation of the current video block based on the sub-block merging candidate list.
[0009] In yet another exemplary aspect, another method of visual media processing is disclosed, the method including: determining, during conversion between visual media data and a bitstream representation of the visual media data, information regarding a collocated reference picture associated with the visual media data, the information being included or omitted in the bitstream representation based on whether a coding mode that accesses temporal motion information is enabled, determining the collocated reference picture according to the information, and performing the conversion between the visual media data and the bitstream representation of the visual media data based on the collocated reference picture.
[0010] In yet another exemplary aspect, another method of visual media processing is disclosed, the method including the steps of performing a conversion between video blocks of visual media data and a bitstream representation of said visual media data, and determining during the conversion whether to apply Predictive Refinement using Optical Flow (PROF) depending on control information that is included or omitted in said bitstream representation based on rules.
[0011] In yet another example aspect, a video encoding and / or decoding device is disclosed having a processor configured to implement the above method.
[0012] In yet another exemplary aspect, a computer-readable medium is disclosed having processor-executable code stored thereon that embodies one of the methods described above.
[0013] These and other aspects are described further herein. [Brief description of the drawings]
[0014] [Figure 1]1 illustrates an example of a derivation process for constructing a merge candidate list. [Diagram 2] 1 shows examples of spatial candidate locations. [Diagram 3] 13 shows examples of candidate pairs considered for redundancy checking of spatial merge candidates. [Figure 4A] 13 shows examples of the location of the second PU for N×2N and 2N×N partitions. [Figure 4B] 13 shows examples of the location of the second PU for N×2N and 2N×N partitions. [Diagram 5] 1 is an illustration of motion vector scaling for temporal merge candidates. [Figure 6] 10 shows examples of candidate positions C0 and C1 for temporal merge candidates. [Figure 7] 1 illustrates an example of a composite bi-predictive merge candidate. [Figure 8] The process of deriving motion vector prediction candidates is summarized below. [Figure 9] 1 illustrates an example of motion vector scaling for spatial motion vector candidates. [Figure 10] 1 shows an example of adaptive temporal motion vector prediction (ATMVP) for a CU. [Figure 11] An example of one CU including four sub-blocks (A to D) and its adjacent blocks (a to d) is shown. [Figure 12] 1 is an example flowchart of encoding with different MV precision. [Figure 13] (a) shows a 135° partition type (partition from the top left corner to the bottom right corner) and (b) a 45° partition pattern. [Figure 14] Illustrative locations of adjacent blocks are shown. [Figure 15] 1 indicates the adjacent blocks (A and L) used for context selection in TPM flag coding. [Figure 16] (a) A four-parameter affine model and (b) a six-parameter affine model are shown. [Figure 17] An example of affine MVF for each subblock is shown. [Figure 18] (a) A four-parameter affine model and (b) a six-parameter affine model are shown. [Figure 19] We show the MVP for AF_INTER for genetic affine candidates. [Figure 20] We show the MVP for AF_INTER for the constructed affine candidates. [Figure 21] An example of (a) five adjacent blocks and (b) CPMV predictor derivation is shown. [Figure 22] 13 shows example candidate positions for the affine merge mode. [Figure 23] 1 shows an example of a spatial contiguous block used by ATMVP. [Figure 24] An example is shown of deriving a sub-CU motion field by applying motion shifts from spatial neighbors and scaling motion information from corresponding co-located sub-CUs. [Diagram 25] Indicates candidate positions for affine merge mode. [Figure 26] 1 illustrates a modified merge list construction process. [Figure 27] The sub-block MV VSB and pixel Δv(i,j) (red arrow) are shown. [Figure 28] FIG. 2 is a block diagram of an example hardware platform that may be used to implement the methods described herein. [Figure 29] 1 is a flow chart of an example method of video processing. [Diagram 30] FIG. 1 is a block diagram of an example video processing system in which the disclosed techniques may be implemented. [Diagram 31] 1 is a flow chart of an example method for visual media processing. [Diagram 32] 1 is a flow chart of an example method for visual media processing. [Diagram 33] 1 is a flow chart of an example method for visual media processing. [Diagram 34] 1 is a flow chart of an example method for visual media processing. [Diagram 35]1 is a flow chart of an example method for visual media processing. [Diagram 36] 1 is a flow chart of an example method for visual media processing. [Figure 37] 1 is a flow chart of an example method for visual media processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Section headings are used herein for ease of understanding and are not intended to limit the embodiments disclosed in a section to only that section. Additionally, although certain embodiments are described with reference to Versatile Video Coding (VVC) or other specific video coding, the disclosed techniques are applicable to other video coding techniques. Additionally, while some embodiments detail video coding steps, it will be understood that a corresponding decoding step that undoes the encoding is implemented by a decoder. Additionally, the term video processing encompasses video encoding or compression, video decoding or decompression, and video transcoding, where video pixels are represented from one compressed format to another compressed format or at a different compressed bit rate.
[0016] 1. Overview This specification relates to video coding techniques. Specifically, it relates to motion vector coding in video coding. It may be applied to existing video coding standards such as HEVC or a standard to be converged (VVC). It may also be applicable to future video coding standards or video codecs.
[0017] 2. Initial discussion Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T produced H.261 and H.263, ISO / IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced H.262 / MPEG-2 Video and H264 / MPEG-4 AVC (Advanced Video Coding) and H.265 / HEVC standards. Since H.262, video coding standards have been based on a hybrid video coding structure, which utilizes temporal prediction and transform coding. In order to explore future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was jointly founded by VCEG and MPEG in 2015. Since then, many new methods have been introduced by JVET and placed in a reference software named the Joint Exploration Model (JEM) [3,4]. In April 2018, the JVET (Joint Video Experts Team) was formed between VCEG (Q6 / 16) and ISO / IEC JTC1 SG29 / WG11 (MPEG) to study the VVC standard, which aims to reduce the bit rate by 50% compared to HEVC.
[0018] The latest version of the VVC draft (Versatile Video Coding (Draft 5)) is available at phenix.it-sudparis.eu / jvet / doc_end_user / documents / 14_Geneva / wg11 / JVET-N1001-v5.zip.
[0019] The latest reference software for VVC, named VTM, is available at vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-5.0.
[0020] 2.1.Inter Prediction in HEVC / H.265 Each inter-predicted prediction unit (PU) has motion parameters for one or two reference picture lists. The motion parameters include a motion vector and a reference picture index. The use of one of the two reference picture lists may be signaled using inter_pred_idc. The motion vector may be explicitly coded as a differential to the predictor.
[0021] When a CU is coded in skip mode, one PU is associated with the CU and there are no significant residual coefficients, coded motion vector differentials, or reference picture indexes. A merge mode is specified, whereby the motion parameters of the current PU are obtained from neighboring PUs, including spatial and temporal candidates. The merge mode is applicable not only for skip mode, but also for any inter-predicted PU. An alternative to the merge mode is explicit transmission of motion parameters, where the motion vectors (more precisely, the motion vector differences (MVD) compared to the motion vector predictor), the corresponding reference picture index of each reference picture list, and the reference picture list utilization are explicitly signaled for each PU. Such a mode is referred to as advanced motion vector prediction (AMVP) in this disclosure.
[0022] If the signaling indicates that one of the two reference picture lists should be used, the PU is generated from one block of samples. This is called "uni-prediction." Uni-prediction is available for both P slices and B slices.
[0023] If the signaling indicates that both reference picture lists should be used, the PU is generated from two blocks of samples. This is called "bi-prediction." Bi-prediction is only available for B slices.
[0024] The following provides details about the inter prediction modes specified in HEVC, starting with merge mode.
[0025] 2.1.1. Reference Picture List In HEVC, the term inter prediction is used to denote a prediction derived from data elements (e.g., sample values or motion vectors) of a reference picture other than the currently decoded picture. Similarly, in H.264 / AVC, a picture may be predicted from multiple reference pictures. The reference pictures used for inter prediction are organized into one or more reference picture lists. A reference index identifies which reference picture in the list should be used to generate the prediction signal.
[0026] A single reference picture list List0 is used for P slices, and two reference lists List0 and List1 are used for B slices. It should be noted that the reference pictures included in List0 / 1 may be from past and future pictures with respect to capture / display order.
[0027] Merge Mode 2.1.2.1. Deriving Candidates for Merge Modes When a PU is predicted using merge mode, an index pointing to an entry in the merge candidates list is parsed from the bitstream and used to retrieve the motion information. The construction of this list is specified in the HEVC standard and can be briefly described according to the following sequence of steps: Step 1: Derive initial candidates Step 1.1: Derive spatial candidates Step 1.2: Redundancy check for spatial candidates Step 1.3: Deriving Temporal Candidates Step 2: Insert additional candidates Step 2.1: Generating bi-prediction candidates Step 2.2: Inserting zero motion candidates
[0028] These steps are also outlined in Fig. 1. For the derivation of the initial merge candidate, up to four merge candidates are selected among the candidates at five different positions. For the derivation of the temporal merge candidate, up to one merge candidate is selected among the two candidates. Since a fixed number of candidates per PU is considered at the decoder, additional candidates are generated if the number of candidates obtained from step 1 does not reach the maximum number of merge candidates (MaxNumMergeCand) signaled in the slice header. Since the number of candidates is fixed, the index of the best merge candidate is coded using truncated unary binarization (TU). When the size of a CU is equal to 8, all PUs of the current CU share a single merge candidate list, which is identical to the merge candidate list of the 2Nx2N prediction unit.
[0029] The operations associated with the above steps are detailed below.
[0030] FIG. 1 illustrates an example of a derivation process for constructing a merge candidate list.
[0031] 2.1.2.2. Deriving spatial 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, and B2. Position B2 is considered only if any PU at positions A1, B1, B0, A0 is unavailable (because it belongs to another slice or tile) or is intra-coded. After the candidate at position A1 is added, the addition of the remaining candidates is subject to a redundancy check. This ensures that candidates with the same motion information are removed from the list so that the coding efficiency is improved.
[0032] In order to reduce computational complexity, not all possible candidate pairs are considered in the above redundancy check. Instead, pairs connected by arrows in FIG. 3 are considered, and a candidate is added to the list only if the corresponding candidate used for redundancy check does not have the same motion information. Another source of the exact same motion information is a "second PU" associated with a partition different from 2N×2N. As an example, FIG. 4 shows the second PU for the cases of N×2N and 2N×N, respectively. If the current PU is partitioned as N×2N, the candidate at position A1 is not taken into account for list construction. In fact, adding this candidate would result in two prediction units with the same motion information, which is redundant to have only one PU in the coding unit. Similarly, position B1 is not taken into account if the current PU is partitioned as 2N×N.
[0033] 2.1.2.3. Temporal Candidate Derivation In this step, only one candidate is added to the list. In particular, 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. The reference picture list used for the derivation of the co-located PU is explicitly signaled in the slice header. The scaled motion vector of the temporal merge candidate is obtained as represented by the dashed line in FIG. 5 and is scaled from the motion vector of the co-located PU using POC distances tb and td. tb is defined to be the POC distance between the reference picture of the current picture and the current picture, and td is defined to be 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. The actual realization of the scaling process is described in the HEVC standard. For a B slice, two motion vectors (one for reference picture list 0 and one for reference picture list 1) are obtained and combined to generate a bi-predictive merge candidate.
[0034] FIG. 5 is an illustration of motion vector scaling for temporal merge candidates.
[0035] For the same position PU(Y) belonging to the reference frame, the position of the temporal candidate is selected between candidates C0 and C1, as shown in Fig. 6. If the PU at position C0 is not available, is intra-coded, or is outside the current Coding Tree Unit (CTU, also known as Largest Coding Unit, LCU) row, then position C1 is used. Otherwise, position C0 is used in the derivation of the temporal merge candidate.
[0036] FIG. 6 shows examples of candidate positions C0 and C1 for temporal merge candidates.
[0037] 2.1.2.4. Inserting additional candidates In addition to spatial and temporal merge candidates, there are two further types of merge candidates: combined bi-predictive merge candidates and zero merge candidates. The combined bi-predictive merge candidates are generated by utilizing spatial and temporal merge candidates. The combined bi-predictive merge candidates are used only for B slices. The combined bi-predictive merge candidates are generated by combining the first reference picture list motion parameters of the first candidate with the second reference picture list motion parameters of the other. If these two tuples result in different motion hypotheses, they will form a new bi-predictive candidate. As an example, FIG. 7 represents the case where two candidates in the original list (on the left) with mvL0 and refIdxL0 or mvL1 and refIdx1 are used to generate a combined bi-predictive merge candidate that is added to the final list (on the right). There are many rules regarding the possible combinations to generate these additional merge candidates.
[0038] Zero motion candidates are inserted to fill the remaining entries in the merge candidate list to reach the MaxNumMergeCand capacity. These candidates have zero spatial displacement and a reference picture index that starts at zero and increases each time a new zero motion candidate is added to the list.
[0039] More specifically, the following steps are performed in order until the merge list is full: 1. Set the variable numRef to either the number of reference pictures associated with list 0 for a P slice, or the minimum number of reference pictures in the two lists for a B slice; 2. Add non-iterative zero motion candidates; For variable i, where 0···numRef-1, we add a default motion candidate with MV set to (0,0) and reference picture index set to i for list 0 (for P slices) or for both lists (for B slices). 3. Add a recursive zero motion candidate with MV set to (0,0), reference picture index in list 0 (for P slices) set to 0, and reference picture index in both lists (for B slices) set to 0.
[0040] Finally, no redundancy checks are performed on the candidates.
[0041] 2.1.3.AMVP Advanced Motion Vector Prediction (AMVP) exploits the spatio-temporal correlation of motion vectors with neighboring PUs, which is used for explicit transmission of motion parameters. For each reference picture list, a motion vector candidate list is constructed by first checking the availability of the temporally neighboring PU positions on the left and above, and adding zero vectors to make the candidate list a constant length, excluding redundant candidates. The encoder can then select the best predictor from the candidate list and transmit a corresponding index indicating the selected candidate. Similarly, with merge index signaling, the index of the best motion vector candidate is coded using a truncated unary. The maximum value coded in this case is 2 (see Figure 8). In the following sections, details on the derivation process of motion vector prediction candidates are provided.
[0042] 2.1.3.1. Derivation of AMVP Candidates FIG. 8 summarizes the process of deriving motion vector prediction candidates.
[0043] In motion vector prediction, two types of motion vector candidates are considered: spatial motion vector candidates and temporal motion vector candidates. For spatial motion vector candidate derivation, two motion vector candidates are finally derived based on the motion vectors of each PU at five different positions as shown in Figure 2.
[0044] For temporal motion vector candidate derivation, one motion vector candidate is selected from two candidates derived based on two different co-location positions. After the first list of spatio-temporal candidates is generated, the duplicated motion vector candidates in the list are removed. If the number of potential candidates is more than two, the motion vector candidates whose reference picture index in the associated reference picture list is greater than 1 are removed from the list. If the number of spatio-temporal motion vector candidates is less than two, an additional zero motion vector candidate is added to the list.
[0045] 2.1.3.2. Spatial Motion Vector Candidates In the derivation of spatial motion vector candidates, up to two candidates are considered from five potential candidates derived from PUs at positions as shown in FIG. 2 (these positions are the same as those of motion merge). The derivation order of the left side of the current PU is defined as A0, A1, scaled A0, scaled A1. The derivation order of the upper side of the current PU is defined as B0, B1, B2, scaled B0, scaled B1, scaled B2. For each side, there are therefore four cases that can be used as motion vector candidates, two cases are not necessary to use spatial scaling, and the other two cases spatial scaling is used. The four different cases are briefly described as follows: 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 pictures (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)
[0046] The case without spatial scaling is checked first, followed by spatial scaling. Spatial scaling is considered when the POC is different between the reference pictures of neighboring PUs and that of the current PU regardless of the reference picture list. If all PUs of the left candidate are unavailable or intra-coded, scaling of the above motion vector is enabled to aid in the parallel derivation of left and above MV candidates. Otherwise, spatial scaling is not allowed for the above motion vector.
[0047] FIG. 9 is an illustration of motion vector scaling for spatial motion vector candidates.
[0048] In the spatial scaling process, the motion vectors of neighboring PUs are scaled in the same manner as in temporal scaling, as shown in Figure 9. The main 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.
[0049] 2.1.3.3. Temporal Motion Vector Candidates Apart from the reference picture index derivation, all the processes for the derivation of temporal merge candidates are the same as for the derivation of spatial motion vector candidates (see Figure 6). The reference picture index is signaled to the decoder.
[0050] 2.2. Motion Vector Prediction Method Based on Sub-CU in JEM In JEM with quadtrees plus binary trees (QTBT), each CU can have at most one set of motion parameters for each prediction direction. Two sub-CU level motion vector prediction methods are considered in the encoder by dividing a 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 co-located reference picture. In the spatial-temporal motion vector prediction (STMVP) method, the motion vector of a sub-CU is derived recursively by using a temporal motion vector predictor and a spatial neighboring motion vector.
[0051] To preserve a more accurate motion field for sub-CU motion estimation, motion compression for reference frames is currently disabled.
[0052] FIG. 10 shows an example of ATMVP motion prediction for a CU.
[0053] 2.2.1. Alternative Temporal Motion Vector Prediction In the Alternative Temporal Motion Vector Prediction (ATMVP) method, the Temporal Motion Vector Prediction (TMVP) of motion vectors is improved by fetching multiple sets of motion information (including motion vectors and reference indexes) from blocks smaller than the current CU. A CU is a square N×N block (N is set to 4 by default).
[0054] ATMVP predicts motion vectors of sub-CUs in a CU in two steps. The first step is to identify the corresponding blocks in a reference picture by a so-called time vector. The reference picture is called a motion source picture. The second step is to split the current CU into sub-CUs and obtain the motion vector and reference index of each sub-CU from the blocks corresponding to each sub-CU.
[0055] In the first step, the reference picture and corresponding block are determined by the motion information of the spatial neighboring blocks of the current CU. To avoid the repetitive scanning process of the neighboring blocks, the first merge candidate in the merge candidate list of the current CU is used. The first available motion vector and its associated reference index are set to be the time vector and the index to the motion source picture. In this way, in ATMVP, the corresponding block can be more accurately identified compared to TMVP. Here, the corresponding block (sometimes called the co-located block) is always in the lower right or center position with respect to the current CU.
[0056] In the second step, the corresponding block of the sub-CU is identified by adding its time vector to the coordinates of the current CU by the time vector of the motion source picture. For each sub-CU, the motion information of its corresponding block (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 corresponding N×N block is identified, it is converted to the motion vector and reference index of the current sub-CU, similar to TMVP of HEVC. At this time, motion scaling and other procedures are applied. For example, the decoder checks whether the low-delay condition (i.e., the POC of all reference pictures of the current picture is smaller than the POC of the current picture) is satisfied, and possibly uses the motion vector MVx (the motion vector corresponding to the reference picture list X) to predict the motion vector MVy (X is equal to 0 or 1, and Y is equal to 1-X) for each sub-CU.
[0057] 2.2.2. Spatial-Temporal Motion Vector Prediction (STMVP) In spatial-temporal motion vector prediction (STMVP) method, the motion vectors of sub-CUs are derived recursively according to the raster scan order. Figure 11 illustrates this concept. Consider an 8x8 CU that contains four sub-blocks A, B, C, and D. The neighboring 4x4 blocks of the current frame are denoted as a, b, c, and d.
[0058] The motion derivation of sub-CU A starts by identifying its two spatial neighbors. The first neighbor is an N×N block (block c) above sub-CU A. If this block c is unavailable or intra-coded, other N×N blocks above sub-CU A are checked (starting from block c, left to right). The second neighbor is a block (block b) to the left of sub-CU A. If block b is unavailable or intra-coded, other blocks to the left of sub-CU A are checked (starting from block b, top to bottom). The motion information obtained from the neighboring blocks for each list is scaled to the first reference frame for a given list. Then, the temporal motion vector predictor (TMVP) of sub-block A is derived by following the same procedure of TMVP derivation defined in HEVC. The motion information of the co-located block at position D is fetched and scaled accordingly. Finally, after retrieving and scaling the motion information, all available motion vectors (maximum of three) are averaged separately for each reference list. The averaged motion vector is assigned as the motion vector of the current sub-CU.
[0059] 2.2.3. Sub-CU Motion Prediction Mode Signaling Sub-CU modes can be used as additional merge candidates, and no additional syntax elements are required to signal the mode. Two additional merge candidates are added to the merge candidates of each CU to represent ATMVP and STMVP modes. If the sequence parameter set indicates that ATMVP and STMVP are available, up to seven merge candidates are used. The coding logic of the additional merge candidates is the same as that of the merge candidates in HM. This means that for each CU in a P or B slice, more than one RD check may be required for the two additional merge candidates.
[0060] In JEM, all bins of the merge index are context coded by CABAC (Context-based Adaptive Binary Arithmetic Coding), whereas in HEVC, only the first bin is context coded and the remaining bins are context bypass coded.
[0061] 2.3.Inter Prediction Method in VVC There are several new coding tools for improving inter prediction, such as Adaptive Motion Vector Difference Resolution (AMVR) for signaling MVD, Affine Prediction Mode, Triangular Prediction Mode (TPM), ATMVP, Generalized Bi-Prediction (GBI), and Bi-directional Optical Flow (BIO).
[0062] 2.3.1. Adaptive Motion Vector Differential Decomposition In HEVC, the motion vector differential (MVD) (between the motion vector of a PU and the predicted motion vector) is signaled in units of quarter luma samples when use_integer_my_flag is equal to 0 in the slice header. In VVC, locally adaptive motion vector decomposition (LAMVR) is introduced. In VVC, MVD can be coded in units of quarter luma samples, integer luma samples, or 4 luma samples (i.e., 1 / 4 pel, 1 pel, 4 pel). MVD decomposition is controlled at the coding unit (CU) level, and an MVD decomposition flag is conditionally signaled for each CU that has at least one non-zero MVD component.
[0063] For a CU with at least one non-zero MVD component, a first flag is signaled to indicate whether quarter luma sample MV precision is used for the CU. If the first flag (equal to 1) indicates that quarter 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.
[0064] If the first MVD decomposition flag of a CU is zero or is not coded for the CU (i.e., all MVDs in the CU are zero), quarter luma sample MV decomposition is used for that CU. If a CU uses integer luma sample MV precision or a 4 luma sample MVD uses zero precision, the MVPs in the AMVP candidate list for that CU are rounded to the corresponding precision.
[0065] In the encoder, a CU-level RD check is used to determine which MVD resolution should be used for a CU. That is, the CU-level RD check is performed three times for each MVD resolution. To accelerate the encoder speed, the following encoding scheme is applied in JEM. During RD check for a CU with normal quarter luma sample MVD resolution, the motion information (integer luma sample precision) of the current CU is saved. The saved motion information (after rounding) is used as a starting point for further small range motion vector refinement during RD check for the same CU with integer luma samples and 4 luma sample MVD resolution, so that the time-consuming motion estimation process is not repeated three times. RD check for CUs with 4 luma sample MVD resolution is conditionally invoked: if the RD cost integer luma sample MVD resolution for a CU is much larger than that of the quarter luma sample MVD resolution, then the RD check for 4 luma sample MVD resolution for that CU is skipped.
[0066] The symbolization process is shown in Fig. 12. First, the 1 / 4 pel MV is tested, the RD cost is calculated and represented as RDCost0, then the integer MV is tested, and the RD cost is represented as RDCost1. If RDCost1 < th × RDCost0 (where th is a positive value), the 4 pel MV is tested; otherwise, the 4 pel MV is skipped. Basically, motion information and RD cost, etc. are already known for the 4 / 1 pel MV when checking the integer or 4 pel MV, and these can be reused to accelerate the encoding process of the integer or 4 pel MV.
[0067] In VVC, AMVR is also applicable to the affine prediction mode, and the resolution can be selected from 1 / 16 pel, 1 / 4 pel, and 1 pel.
[0068] Fig. 12 is a flowchart of encoding with different MV precisions.
[0069] 2.3.2. Triangular prediction mode The concept of the triangular prediction mode (TPM) is to introduce a new triangular partition for motion-compensated prediction. As shown in Fig. 13, it divides the CU into two triangular prediction units either in the diagonal or anti-diagonal direction. Each triangular prediction unit within the CU is inter-predicted using its own single-sided prediction motion vector and reference frame index derived from a single-sided prediction candidate list. The adaptive weighting process is performed on the diagonal side after predicting the triangular prediction units. Then, the transform and quantization processes are applied to the entire CU. This mode is known to be applicable only to the merge mode (Note: The skip mode is treated as a special merge mode.).
[0070] 2.3.2.1. Single-sided prediction candidate list for TPM The uni-prediction candidate list, named TPM motion candidate list, consists of five uni-prediction motion vector candidates. It is derived from seven neighboring blocks, including five spatially neighboring blocks (1 to 5) and two temporally co-located blocks (6 to 7), as shown in Figure 14. The motion vectors of the seven neighboring blocks are collected and placed in the uni-prediction candidate list according to the order of the uni-prediction motion vector, the L0 motion vector of the bi-prediction motion vector, the L1 motion vector of the bi-prediction motion vector, and the averaged motion vector of the L0 and L1 motion vectors of the bi-prediction motion vector. If the number of candidates is less than five, a zero motion vector is added to the list. The motion candidates added to this list are called TPM motion candidates, and the motion information derived from the spatial / temporal blocks is called regular motion candidates.
[0071] More specifically, the following steps are included: 1) A full pruning operation is used to add regular motion candidates from examples of spatially adjacent blocks. Motion candidates are obtained from A1, B1, B0, A0, B2, Col, and Col2 (corresponding to blocks 1 to 7 in FIG. 14). 2) Set the variable numCurrMergeCand=0. 3) For each regular motion candidate derived from A1, B1, B0, A0, B2, Col, and Col2, if it is not pruned and numCurrMergeCand is less than 5, then if the regular motion candidate is uni-predicted (either from list 0 or list 1), it is added directly to the merge list as a TPM candidate by incrementing numCurrMergeCand by 1. Such a TPM candidate is called an "originally uni-predicted candidate." Full pruning applies. 4) For each motion candidate derived from A1, B1, B0, A0, B2, Col, and Col2, if it is not pruned and numCurrMergeCand is less than 5, then if the regular motion candidate is bi-predictive, then the motion information from List 0 is added to the TPM merge list as a new TPM candidate (i.e., modified to be uni-predictive from List 0) and numCurrMergeCand is increased by 1. Such a TPM candidate is called a "Truncated List0-predicted candidate." Complete pruning applies. 5) For each motion candidate derived from A1, B1, B0, A0, B2, Col, and Col2, if not pruned and numCurrMergeCand is less than 5, then if the regular motion candidate is bi-predictive, then the motion information from List 1 is added to the TPM merge list (i.e., modified to be uni-predictive from List 1) and numCurrMergeCand is increased by 1. Such a TPM candidate is called a "Truncated List1-predicted candidate." Complete pruning applies. 6) For each motion candidate derived from A1, B1, B0, A0, B2, Col, and Col2, if not pruned and numCurrMergeCand is less than 5, then - If the slice quantization parameter (QP) of the list 0 reference picture is smaller than the slice QP of the list 1 reference picture, then the motion information of list 1 is first scaled to the list 0 reference picture, and the average of two MVs (one is the original from list 0, the other is the scaled MV from list 1) is added to the TPM merge list. Such a candidate is called averaged uni-prediction from list 0 motion candidate, and numCurrMergeCand is increased by 1. - Otherwise, the motion information of list0 is first scaled to list1 reference picture, and the average of two MVs (one original from list1, the other scaled MV from list0) is added to the TPM merge list. Such a TPM candidate is called averaged single prediction from list1 motion candidates, and numCurrMergeCand is increased by 1. Complete pruning applies. 7) If numCurrMergeCand is less than 5, then a zero motion vector candidate is added.
[0072] FIG. 14 shows examples of adjacent block positions.
[0073] If, when inserting a candidate into a list, the candidate being inserted needs to be compared with all previously added candidates to see if it is the same as one of the previously added candidates, then such a process is called full pruning.
[0074] 2.3.2.2. Adaptive Weighting Process After predicting each triangular prediction unit, an adaptive weighting process is applied to the diagonal between two triangular prediction units to derive the final prediction for the entire CU. Two weighting coefficient groups are defined as follows: First weighting factor group: {7 / 8, 6 / 8, 4 / 8, 2 / 8, 1 / 8} and {7 / 8, 4 / 8, 1 / 8} are used for the luminance and chrominance samples, respectively. · The second weighting factor group: {7 / 8, 6 / 8, 5 / 8, 4 / 8, 3 / 8, 2 / 8, 1 / 8} and {6 / 8, 4 / 8, 2 / 8} are used for the luminance and chrominance samples, respectively.
[0075] The weighting factor group is selected based on the comparison of the motion vectors of two triangular prediction units. The second weighting factor group is used when the reference pictures of the two triangular prediction units are different from each other or their motion vector difference is greater than 16 pixels. Otherwise, the first weighting factor group is used. An example is shown in Figure 15.
[0076] 2.3.2.3. Triangular Prediction Mode (TPM) Signaling A one-bit flag indicating whether TPM is used may be signaled first, followed by further signaling an indication of the two partition patterns (shown in FIG. 13) and the selected merge index for each of the two partitions.
[0077] 2.3.2.3.1. TPM Flag Signaling Let the width and height of one luma block be denoted by W and H, respectively. If W×H<64, then triangular prediction mode is disabled.
[0078] If a block is coded in affine mode, the triangular prediction mode is also disabled.
[0079] When a block is coded in merge mode, a one-bit flag may be signaled to indicate whether triangular prediction mode is enabled or disabled for that block.
[0080] Flags are coded in three contexts according to the following formula:
number
[0081] FIG. 15 shows adjacent blocks (A and L) used for context selection in TPM flag coding.
[0082] 2.3.2.3.2. Indication of two partition patterns (illustrated in FIG. 13) and signaling the selected merge index for each of the two partitions It is noted that the split pattern and the merge indexes of two partitions are coded together. In some implementations, a restriction is imposed that two partitions cannot use the same reference index. Therefore, there are 2 (split pattern) x N (maximum number of merge candidates) x (N-1) possibilities, where N is set to 5. An instruction is coded, and the mapping between the split pattern, the two merge indexes, and the coded instruction is derived from the array defined below:
number
[0083] When two motion candidates A and B are derived, the motion information of two partitions (PU1 and PU2) can be set from either A or B. Whether PU1 uses the motion information of merge candidate A or B depends on the prediction direction of the two motion candidates. Table 1 shows the relationship between the two derived motion candidates A and B for two partitions. [Table 1]
[0084] 2.3.2.3.3. Entropy coding of the direction (denoted as merge_triangle_idx) merge_triangle_idx is in the range 0 to 39 (inclusive) ([0,39]). An Exponential Golomb (EG) code of order K is used to binarize merge_triangle_idx, where K is set to 1.
[0085] Kth order EG To encode larger numbers with fewer bits (at the expense of using more to encode smaller numbers), this can be generalized with a non-negative integer parameter k. To encode a non-negative integer x with an Exponential-Golomb code of degree k: 1. Using the above degree 0 exponential-Golomb code
number
[0086] Affine Motion Compensated Prediction In HEVC, only the translation motion model is applied for Motion Compensation Prediction (MCP). In the real world, there may be many kinds of motions, such as zoom in / out, rotation, projective motion, and other irregular motions. In VVC, the simplified affine transformation motion compensation prediction is applied by the 4-parameter affine model and the 6-parameter affine model. As shown in Figure 16, the affine motion field of a block is described by two Control Point Motion Vectors (CPMV) for the 4-parameter affine model, and three CPMVs for the 6-parameter affine model.
[0087] FIG. 16 shows an example of a simplified affine motion model.
[0088] The Motion Vector Field (MVF) of a block is described by the four-parameter affine model in equation (1) (where the four parameters are defined as variables a, b, e, and f) and the six-parameter affine model in equation (2) (where the six parameters are defined as variables a, b, c, d, e, and f), respectively, by the following equations:
number
[0089] Here, (mv h 0,mv h 0) is the motion vector of the upper left corner control point, and (mv h 1,mv h 1) is the motion vector of the control point in the upper right corner, (mv h 2,mv h 2) is the motion vector of the control point in the lower left corner. All these three motion vectors are called control point motion vectors (CPMVs). (x,y) represents the coordinates of the representative point relative to the upper left sample in the current block, and (mv h (x,y),mv v (x,y) is the motion vector derived for the sample located at (x,y). CP motion vectors may be signaled (similar to affine AMVP mode) or derived on the fly (similar to affine mode). w and h are the width and height of the current block. In practice, the division is performed by right shift with rounding operation. In VTM, the representative point is defined to be the center position of the subblock, e.g., if the coordinates of the top left corner of the subblock relative to the top left sample in the current block are (xs,ys), then the coordinates of the representative point are defined to be (xs+2,ys+2). For each subblock (i.e., 4x4 in VTM), the representative point is used to derive the motion vector for the entire subblock.
[0090] To further simplify the motion compensation prediction, subblock-based affine transformation prediction is applied. To derive the motion vector of each M×N subblock (both M and N are set to 4 in the current VVC), the motion vector of the center sample of each subblock shown in FIG. 17 can be calculated according to equations (1) and (2) and rounded to 1 / 16 fractional precision. Then, a motion compensation interpolation filter for 1 / 16 pel is applied to generate a prediction of each subblock according to the derived motion vector. The interpolation filter for 1 / 16 pel is introduced by the affine mode.
[0091] After the MCP, the high-precision motion vector for each subblock is rounded and saved as the same precision as the normal motion vector.
[0092] 2.3.3.1. Signaling Affine Predictions Similar to the translational model, there are also two modes for signaling side information with the affine model: AFFINE_INTER and AFFINE_MERGE.
[0093] AF_INTER MODE For CUs whose width and height are both greater than 8, the AF_INTER mode may be applied. An affine flag at the CU level is signaled in the bitstream to indicate whether the AF_INTER mode is used.
[0094] In this mode, for each reference picture list (List0 or List1), an affine AMVP candidate list is constructed with three types of affine motion predictors in the following order, where each candidate contains an estimated CPMV of the current block: The difference between the best CPMV found at the encoder side (e.g., mv0, mv1, mv2 in FIG. 20) and the estimated CPMV is signaled. Additionally, the index of the affine AMVP candidate from which the estimated CPMV is derived is further signaled.
[0095] 1) Genetic (i.e., inherited) affine motion predictors The test order is similar to that of spatial MVP in HEVC AMVP list construction. First, the left genetic affine motion predictor is derived from the first block in {A1, A0} that has the same reference picture as the current block and is affine coded. Second, the top genetic affine motion predictor is derived from the first block in {B1, B0, B2} that has the same reference picture as the current block and is affine coded. The five blocks A1, A0, B1, B0, B2 are represented in FIG. 19.
[0096] When it is found that the neighboring blocks are coded in affine mode, the CPMV of the coding unit covering the neighboring blocks is used to derive the predictor of the CPMV of the current block. For example, if A1 is coded in non-affine mode and A0 is coded in 4-parameter affine mode, the left side genetic affine MV predictor will be derived from A0. In this case, for the top left CPMV in Figure 21B, MV0 N and MV1 for the upper right CPMV N The CPMV of the CU covering A0, represented by C , MV1 C , MV2 C The estimated CPMV of the current block is then derived, denoted by
[0097] 2) Constructed affine motion predictor The constructed affine motion predictor consists of control point motion vectors (CPMVs) derived from neighboring inter-coded blocks that have the same reference picture, as shown in Figure 20. If the current affine motion model is 4-parameter affine, the number of CPMVs is 2, otherwise, if the current affine motion model is 6-parameter affine, the number of CPMVs is 3. Top-left CPMV (outside 1) TIFF0007571218000007.tif7127 (hereafter, bar mv0) is derived by the MV of the first block in the inter-coded group {A, B, C} that has the same reference picture as the current block. (outside 2) TIFF0007571218000008.tif7127 (hereafter, bar mv1) is derived by the MV of the first block in the inter-coded group {D,E} that has the same reference picture as the current block. (Outside 3) TIFF0007571218000009.tif6127 (hereafter, mv2) is derived by the MV of the first block in the inter-coded group {F,G} that has the same reference picture as the current block. - If the current affine motion model is a four-parameter affine, the constructed affine motion predictor is inserted into the candidate list only if both mv0 and mv1 are determined, i.e., mv0 and mv1 are used as the estimated CPMV for the top-left position (having coordinates (x0, y0)) and top-right position (having coordinates (x1, y1)) of the current block. - If the current affine motion model is a 6-parameter affine, the constructed affine motion predictor is inserted into the candidate list only if mv0, mv1 and mv2 are all determined, i.e., mv0, mv1 and mv2 are used as the estimated CPMVs for the top-left position (having coordinates (x0,y0)), top-right position (having coordinates (x1,y1)) and bottom-right position (having coordinates (x2,y2)) of the current block.
[0098] When inserting the constructed affine motion predictor into the candidate list, no pruning process is applied.
[0099] 3) Regular AMVP motion predictor The following is applied until the number of affine motion predictions reaches a maximum value. 1) Derive the affine motion predictors by setting all CPMVs equal to mv2 if available. 2) Derive the affine motion predictor by setting all CPMVs equal to mv1 if available. 3) Derive the affine motion predictor by setting all CPMVs equal to mv0 if available. 4) Derive affine motion predictors by setting all CPMVs equal to HEVC TMVP if available. 5) Derive the affine motion predictor by setting all CPMVs to zero MVs.
[0100] It should be noted that, (outside 4) TIFF0007571218000010.tif7127 (hereafter, bar mv i ) is a point that has already been derived in the constructed affine motion.
[0101] In AF_INTER mode, when 4 or 6 parameter affine modes are used, 2 or 3 control points are needed, so 2 or 3 MVDs need to be coded for those control points, as shown in Figure 18. In JVET-K0337, it is proposed to derive the MVs as follows: mvd1 and mvd2 are predicted from mvd0.
number
[0102] Here, bar mv i , mvd i and mv i are the predicted motion vector, motion vector differential, and motion vector of the top-left pixel (i=0), top-right pixel (i=1), or bottom-left pixel (i=2), respectively, as shown in Figure 18(b). Note that the addition of two motion vectors (e.g., mvA(xA,yA) and mvB(xB,yB)) is equal to the sum of the two components separately. That is, newMV=mvA+mvB, and the two components of newMV are set to (xA+xB) and (yA+yB), respectively.
[0103] AF_MERGE Mode When a CU is applied in AF_MERGE mode, it obtains the first block coded by affine mode from the valid neighboring reconstructed blocks. And the selection order of the candidate blocks is from left to top, top right, bottom left, top left (represented by A, B, C, D, E, respectively) as shown in Fig. 21(a). For example, when the neighboring bottom left block is coded by affine mode, as represented by A0 in Fig. 21(b), the control point (CP) motion vectors mv0 of the top left corner, top right corner, and bottom left corner of the neighboring CU / PU containing block A are N , mv1 N and mv2 N Then, the top left corner / top right / bottom left motion vector mv0 on the current CU / PU is fetched. C , mv1 Cand mv2 C (Only used for 6-parameter affine models) is mv0 N , mv1 N and mv2 N It should be noted that in VTM-2.0, if the current block is affine coded, the sub-block located in the upper left corner (e.g., in VTM, a 4x4 block) stores mv0, and the sub-block in the upper right corner stores mv1. If the current block is coded with a 6-parameter affine model, the sub-block in the lower left corner stores mv2, otherwise (with a 4-parameter affine model), the LB stores mv2'. The other sub-blocks store the MV used for MC.
[0104] The current CU's CPMV is mv0 C , Mv1 C and mv2 C After,is derived according to the simplified affine motion model, i.e., equations (1) and (2), the MVF of the current CU is generated.,To identify whether the current CU is coded in AF_MERGE mode, an affine flag is signaled in the bitstream if there is at least one neighboring block coded in affine mode.
[0105] In JVET-L0142 and JVET-L0632, the affine merge candidate list is constructed in the following steps:
[0106] 1) Insertion of genetic affine candidates An inherited affine candidate means that the candidate is derived from the affine motion model of its valid neighboring affine coded blocks. Up to two inherited affine candidates are derived from the affine motion models of neighboring blocks and inserted into the candidate list. For the left predictor, the scan order is {A0,A1}, and for the upper predictor, the scan order is {B0,B1,B2}.
[0107] 2) Insertion of constructed affine candidates If the number of candidates in the affine merge candidate list is less than MaxNumAffineCand (e.g., 5), constructed affine candidates are inserted into the candidate list, which means that the candidates are constructed by combining the neighboring motion information of each control point. a) The motion information of a control point is first derived from the designated spatial and temporal neighborhoods shown in Figure 22. CPk (k=1,2,3,4) represents the kth control point. A0, A1, A2, B0, B1, B2, and B3 are the spatial positions for predicting CPk (k=1,2,3). T is the temporal position for predicting CP4. The coordinates of CP1, CP2, CP3 and CP4 are (0,0), (W,0), (H,0) and (W,H), respectively, where W and H are the width and height of the current block. The motion information for each control point is obtained according to the following priority: - For CP1, the check priority is B2→B3→A2. B2 is used if it is available. Otherwise, B3 is used if it is available. If both B2 and B3 are unavailable, A2 is used. If all three candidates are unavailable, the motion information of CP1 cannot be obtained. - For CP2, the check priority is B1 → B0. - For CP3, the check priority is A1 → A0. - For CP4, T is used. b) Second, a combination of the control points is used to construct affine merge candidates. I. Motion information of three control points is required to construct a six-parameter affine candidate. The three control points can be selected from one of the following four combinations: {CP1,CP2,CP4}, {CP1,CP2,CP3}, {CP2,CP3,CP4}, {CP1,CP3,CP4}. The combinations {CP1,CP2,CP3}, {CP2,CP3,CP4}, {CP1,CP3,CP4} will be transformed into a six-parameter motion model represented by the top-left, top-right, and bottom-left control points. II. Motion vectors of two control points are needed to construct a four-parameter affine candidate. The two control points can be selected from one of the following two combinations ({CP1,CP2},{CP1,CP3}). The two combinations will be transformed into a four-parameter motion model represented by the top-left and top-right control points. III. The constructed combinations of affine candidates are inserted into the candidate list in the following order: {CP1,CP2,CP3}, {CP1,CP2,CP4}, {CP1,CP3,CP4}, {CP2,CP3,CP4}, {CP1,CP2}, {CP1,CP3}. i. For each combination, the reference indexes in list X for each CP are checked, and if they are all the same, then this combination has a valid CPMV in list X. If the combination does not have valid CPMVs in both list 0 and list 1, then the combination is marked as invalid. Otherwise, it is valid and the CPMV is placed in the subblock merge list.
[0108] 3) Padding with zero-affine motion vector candidates When the number of candidates in the affine merge candidate list is less than 5, for the subblock merge candidate list, the 4-parameter merge candidates have MV set to (0,0) and prediction direction set to single prediction (for P slices) and bi-prediction (for B slices) from list 0.
[0109] 2.3.4. Merge List Design in VVC There are three different merge list construction processes supported by VVC: 1) Sub-block merge candidate list: It contains ATMVP and affine merge candidates. One merge list construction process is shared for both affine and ATMVP modes, where ATMVP and affine merge candidates can be added in order. The size of the sub-block merge list is signaled in the slice header, and the maximum value is 5. 2) Uni-predictive TPM Merge List: For triangular prediction mode, one merge list construction process for two partitions is shared, even though the two partitions can select their own merge candidate indexes. When constructing this merge list, the spatial neighboring blocks of a block and two temporal blocks are checked. The motion information derived from the spatial neighbors and the temporal blocks are called regular motion candidates in our IDF. These regular motion candidates are further utilized to derive multiple TPM navigations. Note that the transformation is performed at the whole block level, even though the two partitions can use different motion vectors to generate their own prediction blocks. The unidirectional TPM merge list size is fixed to be 5. 3) Regular merge list: For the remaining coding blocks, one merge list construction process is shared, where spatial / temporal / HMVP, pair-wise combined bi-predictive merge candidates, and zero motion candidates can be inserted in order. The size of the regular merge list is signaled in the slice header, with a maximum value of 6.
[0110] Subblock Merge Candidate List All sub-block associated motion candidates are placed into a separate merge list in addition to the regular merge list for non-sub-block merge candidates.
[0111] The motion candidates associated with a sub-block are placed in a separate merge list, named the "sub-block merge candidate list."
[0112] In one example, the sub-block merging candidate list includes affine merging candidates, and ATMVP candidates, and / or sub-block based STMVP candidates.
[0113] 2.3.4.1.1.JVET-L0278 In this contribution, the ATMVP merge candidate in the regular merge list is moved to the first position of the affine merge list, so that all merge candidates in the new list (i.e., the sub-block-based merge candidate list) are based on sub-block coding tools.
[0114] 2.3.4.1.2.ATMVP in JVET-N1001 ATMVP is also known as sub-block-based temporal motion vector prediction (SbTMVP).
[0115] In JVET-N1001, a special merge candidate list known as the subblock merge candidate list (also known as the affine merge candidate list) is added in addition to the regular merge candidate list. The subblock merge candidate list is filled with candidates in the following order: a. ATMVP candidates (may or may not be available); b. Genetic affine candidates; c. Constructed affine candidates including constructed affine candidates based on TMVP using MVs at co-located reference pictures; d. Pad the 4-parameter affine model as zero MV.
[0116] VTM supports the sub-block-based temporal motion vector prediction (sbTMVP) method. Similar to temporal motion vector prediction (TMVP) in HEVC, SbTMVP uses motion fields in co-located pictures to improve motion vector prediction and merge modes for CUs in the current picture. The same co-located pictures used by TMVP are used for SbTMVP. sbTMVP differs from TMVP in two aspects: 1. TMVP predicts motion at the CU level, while sbTMVP predicts motion at the sub-CU level. 2. TMVP fetches temporal motion vectors from the co-located block in the co-located picture (the co-located block is the bottom-right or center block with respect to the current Cu), while sbTMVP applies a motion shift before fetching temporal motion information from the co-located picture, where the motion shift is obtained from a motion vector from one of the spatially neighboring blocks of the current CU.
[0117] The SbTVMP process is depicted in Figure 23 and Figure 24. sbTMVP predicts motion vectors of sub-CUs in a current CU in two steps. In the first step, the spatial neighborhood A1 in Figure 23 is tested. If A1 has a motion vector that uses the co-located picture as its reference picture, then the motion vector is selected to be the motion shift to be applied. If no such motion is identified, then the motion shift is set to (0,0).
[0118] In the second step, the motion shift identified in step 1 is applied (i.e., added to the coordinates of the current block) to obtain sub-CU level motion information (motion vectors and reference indexes) from the co-located picture as shown in Figure 24. The example of Figure 24 assumes that the motion shift is set to the motion of block A1. Then, for each sub-CU, the motion information of its corresponding block (the smallest motion grid covering the center sample) in the co-located picture is used to derive the motion information of that sub-CU. After the motion information of the co-located sub-CU is identified, it is converted to the motion vectors and reference indexes 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 pictures of the temporal motion vectors to those of the current CU.
[0119] In VTM, a subblock-based composite merge list containing both sbTMVP candidates and affine merge candidates is used to signal the subblock-based merge mode. The sbTMVP mode is enabled / disabled by a sequence parameter set (SPS) flag. When the sbTMVP mode is enabled, the sbTMVP predictor is added as the first entry in the list of subblock-based merge candidates, followed by the affine merge candidates. The size of the subblock-based merge list is signaled in the SPS, and the maximum allowed size of the subblock-based merge list is 5 in VTM4.
[0120] The sub-CU size used in sbTMVP is fixed to be 8x8, as is done for the affine merge mode, and sbTMVP mode is only applicable to CUs whose width and height are both 8 or greater.
[0121] The encoding logic for the additional sbTMVP merge candidate is the same as for other merge candidates, that is, for each CU in a P or B slice, an additional RD check is performed to determine whether the sbTMVP candidate should be used.
[0122] 23-24 show an example of the sbTMVP process in VVC.
[0123] The maximum number of candidates in the subblock merging candidate list is denoted as MaxNumSubblockMergeCand.
[0124] 2.3.4.1.3. Syntax / Semantics Related to Subblock Merge Lists [Table 3] TIFF0007571218000013.tif239165TIFF0007571218000014.tif236166TIFF0007571218000015.tif23616 6TIFF0007571218000016.tif238166TIFF0007571218000017.tif238166TIFF0007571218000018.tif23716 6TIFF0007571218000019.tif223165TIFF0007571218000020.tif228157TIFF0007571218000021.tif23215 6TIFF0007571218000022.tif229152TIFF0007571218000023.tif238155TIFF0007571218000024.tif23516 0TIFF0007571218000025.tif231160TIFF0007571218000026.tif233162TIFF0007571218000027.tif22716 0TIFF0007571218000028.tif228158TIFF0007571218000029.tif232160TIFF0007571218000030.tif23415 9TIFF0007571218000031.tif233159TIFF0007571218000032.tif237161TIFF0007571218000033.tif23915 8TIFF0007571218000034.tif238164TIFF0007571218000035.tif228156TIFF0007571218000036.tif48154
[0125] 2.3.4.2. Regular Merge Lists Unlike the merge list design, VVC uses History-based Motion Vector Prediction.
[0126] In HMVP, previously coded motion information is stored, and the motion information of previously coded blocks is defined as HMVP candidates. Multiple HMVP candidates are stored in a table named HMVP table, which is maintained on-the-fly during the encoding / decoding process. The HMVP table is emptied when starting to encode / decode a new slice. When an inter-coded block exists, the associated motion information is added to the last entry of the table as a new HMVP candidate. The whole coding flow is depicted in Figure 25.
[0127] HMVP can be used in both AMVP and merge candidate list construction process. Figure 26 shows the modified merge candidate list construction process. When the merge candidate list is not full after TMVP candidate insertion, the HMVP candidates stored in the HMVP table are utilized to fill the merge candidate list. Considering that a block usually has a higher correlation with its nearest neighbor block in terms of motion information, the HMVP candidates in the table are inserted in descending order of index. The last entry in the table is added to the list first, while the first entry is added last. Similarly, redundancy elimination is applied to the HMVP candidates. When the total number of available merge candidates reaches the maximum number of merge candidates allowed to be signaled, the merge candidate list construction process ends.
[0128] FIG. 25 shows candidate positions for the affine merge mode.
[0129] FIG. 26 illustrates a modified merge list construction process.
[0130] 2.3.5.JVET-N0236 This contribution proposes a method to refine sub-block-based affine motion compensated prediction by optical flow. After sub-block-based affine motion compensation is performed, the prediction samples are refined by adding the difference derived by the optical flow equation, which is called prediction refinement by optical flow (PROF). The proposed method can achieve inter prediction at pixel-level granularity without increasing the memory access bandwidth.
[0131] To achieve finer-grained motion compensation, this contribution proposes a method to refine the sub-block-based affine motion compensated prediction with optical flow. After the sub-block-based affine motion compensation is performed, the luma prediction samples are refined by adding the difference derived by the optical flow equation. The proposed Prediction Refinement with Optical Flow (PROF) is described as four steps:
[0132] Step 1) Sub-block based affine motion compensation is performed to generate the sub-block prediction I(i,j).
[0133] Step 2) Spatial gradients of subblock predictions g x (i, j) and g y (i,j) is computed at each sample location using a 3-tap filter [-1,0,1]. g x (i,j) = I(i+1,j) - I(i-1,j) g y (i,j)=I(i,j+1)-I(i,j-1)
[0134] Sub-block precision is widened by one pixel on each side for gradient calculation. To reduce memory bandwidth and complexity, pixels on the widened boundary are copied from the nearest integer pixel location in the reference picture. Thus, additional interpolation for region padding is avoided.
[0135] Step 3) The luma prediction refinement is calculated by the optical flow formula. ΔI(i,j)=g x (i,j)×Δv x (i,j)+g y (i,j)×Δv y (i,j) Here, Δv(i,j) is the difference between the pixel MV calculated for sample position (i,j), represented by v(i,j), as shown in FIG. 27, and the sub-block MV of the sub-block to which pixel (i,j) belongs.
[0136] Since the affine model parameters and pixel position relative to the sub-block center do not change for each sub-block, Δv(i,j) can be calculated for the first sub-block and reused for other sub-blocks in the same CU. Let x and y be the horizontal and vertical offsets from the pixel position to the center of the sub-block, Δv(x,y) can be derived by the following formula:
number
[0137] For the four-parameter affine model,
number
number
[0138] Step 4) Finally, the luma prediction refinement is added to the sub-block prediction I(i,j). The final prediction I′ is generated as: I'(i,j) = I(i,j) + ΔI(i,j)
[0139] 2.3.6. PCT / CN2018 / 124520 and PCT / CN2018 / 116889 Concerning Improvements to ATMVP In these documents, we disclosed several approaches to making the ATMVP mode design reasonable and efficient, both of which are incorporated by reference in their entireties.
[0140] 3. Examples of problems solved by the embodiments In the current design of VVC, the sub-block based prediction mode has the following problems: 1) The affine AMVR flag in the SPS may be turned on when the regular AMVR is turned off. 2) The affine AMVR flag in the SPS may be turned on when affine mode is turned off. 3) MaxNumSubblockMergeCand is not set approximately when ATMVP is not applied. 4) When TMVP is disabled for a slice and ATMVP is enabled for a sequence, the co-located pictures of B slices were not identified, but the co-located pictures are required by the ATMVP process. 5) Both TMVP and ATMVP need to fetch motion information from a reference picture, which in the current design is assumed to be the same, which may be a priori. 6) PROF should have a flag to control whether it is on or off.
[0141] 4. Example Embodiments The following detailed inventions should be regarded as examples to explain the general concept. These inventions should not be construed in a narrow sense. Moreover, these inventions can be combined in any manner. Some embodiments are described using the example of alternative temporal motion vector prediction (ATMVP) technology, but in alternative embodiments, sub-block-based temporal motion vector prediction (sbTMVP) technology may be applicable.
[0142] The methods described below may also be applicable to other types of motion candidate lists (eg, AMVP candidate lists).
[0143] 1. Whether control information for affine AMVR is signaled may depend on whether affine prediction is applied or not. a) In one example, control information for affine AMVR is not signaled if affine prediction is not applied. b) In one example, affine AMVR should be disabled (eg, the use of affine AMVR should be signaled as false) if affine prediction is not applied in the conformance bitstream. c) In one example, the signaled control information for affine AMVR may be ignored and inferred not to apply if affine prediction does not apply.
[0144] 2. Whether control information for affine AMVR is signaled may depend on whether regular AMVR is applied or not. a) In one example, control information for affine AMVR is not signaled if regular AMVR is not applied. b) In one example, affine AMVR should be disabled (the availability of the affine AMVR flag is signaled as false) if regular AMVR is not applied in the conformance bitstream. c) In one example, the signaled control information for affine AMVR may be ignored and inferred not to apply if regular AMVR does not apply. d) In one example, an indication of adaptive motion vector decomposition (e.g., a flag) may be signaled in a sequence / picture / slice / tile group / tile / brick / other video unit to control the utilization of AMVR for multiple coding methods, such as regular AMVR (i.e., AMVR applied to translational motion) and affine AMVR (i.e., AMVR applied to affine motion). i. In one example, such an indication may be signaled in the SPS / DPS / VPS / PPS / picture header / slice header / tile group header. ii. Alternatively, further, whether an indication of the use of regular AMVR and / or affine AMVR should be signaled may depend on the indication. 1) In one example, signaling of an indication of utilization of regular AMVR may be skipped when such an indication indicates that adaptive motion vector decomposition is disabled. 2) In one example, signaling of an indication of the use of affine AMVR may be skipped when such an indication indicates that adaptive motion vector decomposition is disabled. iii. Alternatively, further, whether an indication of the use of affine AMVR should be signaled may depend on the use and indication of affine prediction mode. 1) For example, such instructions may be skipped if affine prediction mode is disabled. iv. In one example, such an indication may not be signaled and may be derived to be false if the current slice / tile group / picture is only predictable from the previous picture. v. In one example, such an indication may not be signaled and may be derived to be false if the current slice / tile group / picture is predictable only from subsequent pictures. vi. In one example, such an indication may be signaled when the current slice / tile group / picture is predictable from both previous and subsequent pictures.
[0145] 3. Whether control information for affine AMVR should be signaled may depend on whether regular AMVR is applied and whether affine prediction is applied. a) In one example, control information for affine AMVR is not signaled if affine prediction is not applied or regular AMVR is not applied. i. In one example, affine AMVR should be disabled if affine prediction is not applied or regular AMVR is not applied in the conformance bitstream (e.g., the use of affine AMVR should be signaled as false). ii. In one example, the signaled control information for affine AMVR may be ignored and inferred to not apply if affine prediction is not applied or regular AMVR is not applied. b) In one example, control information for affine AMVR is not signaled if affine prediction is not applied and regular AMVR is not applied. i. In one example, affine AMVR should be disabled (e.g., the use of affine AMVR should be signaled as false) if affine prediction is not applied and regular AMVR is not applied in the conformance bitstream. ii. In one example, the signaled control information for affine AMVR may be ignored and inferred to not apply if affine prediction is not applied and regular AMVR is not applied.
[0146] 4. The maximum number of candidates in the subblock merge candidate list (denoted as MaxNumSubblockMergeCand) may depend on whether ATMVP is enabled or not. Whether ATMVP is enabled or not may not be indicated only by sps_sbtmvp_enabled_flag in the SPS. a) For example, whether ATMVP is enabled or not may only depend on a flag signaled at the sequence level (e.g., sps_sbtmvp_enabled_flag in the SPS), and it may also depend on one or more syntax elements signaled in some other video unit at the sequence / picture / slice / tile group / tile level, such as the VPS, DPS, APS, PPS, slice header, tile group header, picture header, etc. i. Alternatively, whether ATMVP is enabled may be derived implicitly without signaling. ii. For example, ATMVP is not enabled for a picture or slice or tile group if TMVP is not enabled for the picture or slice or tile group. b) For example, whether and / or how a syntax element related to MaxNumSubblockMergeCand (eg, five_minus_max_num_subblock_merge_cand) should be signaled may depend on whether ATMVP is enabled. i. For example, five_minus_max_num_subblock_merge_cand may be constrained in the conformance bitstream if ATMVP is not enabled. 1) For example, five_minus_max_num_subblock_merge_cand is not allowed to be equal to a fixed number if ATMVP is not enabled. In two examples, the fixed number can be 0 or 5. 2) For example, five_minus_max_num_subblock_merge_cand is not allowed to be greater than a fixed number unless ATMVP is enabled. In one example, the fixed number may be 4. 3) For example, five_minus_max_num_subblock_merge_cand is not allowed to be less than a fixed number if ATMVP is not enabled. In one example, the fixed number may be 1. ii. For example, five_minus_max_num_subblock_merge_cand may be set as five_minus_max_num_subblock_merge_cand-(ATMVP enabled?0:1) if it is not present, and whether ATMVP is enabled does not depend only on a flag in the SPS (e.g., sps_sbtmvp_enabled_flag). c) For example, MaxNumSubblockMergeCand may be derived depending on one or more syntax elements (eg, five_minus_max_num_subblock_merge_cand) and whether ATMVP is enabled. i. For example, MaxNumSubblockMergeCand may be derived as MaxNumSubblockMergeCand=5-five_minus_max_num_subblock_merge_cand-(ATMVP enabled?0:1). d) MaxNumSubblockMergeCand may be set to 1 when ATMVP is enabled and affine motion prediction is disabled.
[0147] 5. A default candidate (with translation and / or affine motion) may be added to the sub-block merging candidate list. The default candidate may have a prediction type such as sub-block, or it may be with whole block prediction. a) In one example, whole block prediction for default candidates may follow a translational motion model (eg, whole block prediction for regular merge candidates). b) In one example, sub-block prediction for a default candidate may follow a translational motion model (eg, sub-block prediction for an ATMP candidate). c) In one example, sub-block prediction for a default candidate may follow an affine motion model (eg, sub-block prediction for an affine merge candidate). d) In one example, the default candidate may have an affine flag equal to 0. Alternatively, the default candidate may have an affine flag equal to 1. e) In one example, the subsequent procedure for a block may depend on whether the block is coded with the default candidate. i. In one example, the block is treated as being whole block predictively decoded (e.g., the selected default candidate uses whole block prediction); 1) For example, PROF may not be applied to blocks. 2) For example, Decode-side Motion Vector Refinement (DMVR) may be applied to the block. 3) For example, Bi-Directional Optical Flow (BDOF) may be applied to the blocks. 4) For example, the deblocking filter may not be applied to boundaries between sub-blocks within a block. ii. In one example, the block is treated as being coded with sub-block prediction (e.g., the selected default candidate uses sub-block prediction); 1) For example, PROF may be applied to a block. 2) For example, Decode-side Motion Vector Refinement (DMVR) may not be applied to the block. 3) For example, Bi-Directional Optical Flow (BDOF) may not be applied to the blocks. 4) For example, a deblocking filter may be applied to boundaries between sub-blocks within a block. iii. in one example, the block is treated as being coded with translational prediction; 1) For example, PROF may not be applied to blocks. 2) For example, Decode-side Motion Vector Refinement (DMVR) may be applied to the block. 3) For example, Bi-Directional Optical Flow (BDOF) may be applied to the blocks. 4) For example, the deblocking filter may not be applied to boundaries between sub-blocks within a block. iv. In one example, the block is treated as being coded with affine prediction; 1) For example, PROF may be applied to a block. 2) For example, Decode-side Motion Vector Refinement (DMVR) may not be applied to the block. 3) For example, Bi-Directional Optical Flow (BDOF) may not be applied to the blocks. 4) For example, a deblocking filter may be applied to boundaries between sub-blocks within a block. f) In one example, one or more types of default candidates may be placed in the sub-block merging candidate list. i. For example, both a first type of default candidate based on whole block prediction and a second type of default candidate based on sub-block prediction may be placed in the sub-block merging candidate list. ii. For example, both a first type of default candidate with translational prediction and a second type of default candidate with affine prediction may be placed in the sub-block merging candidate list. iii. The maximum number of default candidates from each type may depend on whether ATMVP is enabled and / or whether affine prediction is enabled. g) In one example, for B slices, the default candidate may have zero motion vectors for all sub-blocks, bi-prediction is applied, and both reference pictures are set to 0. h) In one example, for P slices, the default candidate may have zero motion vectors for all sub-blocks, uni-prediction is applied, and reference pictures are set to 0. i) What kind of default candidates are placed in the sub-block merging candidate list may depend on the usage of ATMVP and / or affine prediction modes. i. In one example, when affine prediction mode is enabled, a default candidate with an affine motion model with affine flag equal to 1 (eg, all CPMVs equal to 0) may be added. ii. In one example, when both affine prediction mode and ATMVP are enabled, a default candidate with a translational motion model with affine flag set to 0 (e.g., zero MV) and / or a default candidate with an affine motion model with affine flag set to 1 (e.g., all CPMVs equal to 0) may be added. 1) In one example, a default candidate according to the translational motion model may be added before a default candidate according to the affine motion model. iii. In one example, when affine prediction is disabled and ATMVP is enabled, a default candidate with a translational motion model whose affine flag is 0 may be added, and a default candidate with affine motion is not added. j) The above method may be applied when the sub-block merging candidates are not satisfied after checking the ATMVP candidates and / or spatial / temporal / structured affine merging candidates.
[0148] 6. Information regarding ATMVP, such as whether ATMVP is enabled for a slice or a tile group or a picture, may be signaled in the slice header or the tile group header or the slice header. a) In one example, the co-located pictures in ATMVP may be different from the co-located pictures in TMVP. b) In one example, information regarding ATMVP may not be signaled for I-slices or I-tile groups or I-pictures. c) In one example, information regarding ATMVP may be signaled only if ATMVP is enabled at the sequence level (eg, sps_sbtmvp_enabled_flag is equal to 1). d) In one example, information regarding ATMVP may not be signaled for a slice or tile group or picture if TMVP is disabled for that slice or tile group or picture. i. For example, ATMVP may be assumed to be invalid in this case. e) ATMVP may be inferred to be disabled for a slice (or tile group or picture) if TMVP is disabled for that slice (or tile group or picture), regardless of the signaled information of ATMVP usage.
[0149] 7. Whether to add sub-block based temporal merging candidates (eg, temporal affine motion candidates) may depend on the usage of TMVP. a) Alternatively, it may depend on the value of sps_temporal_mvp_enabled_flag. b) Alternatively, it may depend on the value of slice_temporal_mvp_enabled_flag. c) When sps_temporal_mvp_enabled_flag or slice_temporal_mvp_enabled_flag is true, sub-block based temporal merging candidates may be added to the sub-block merging candidates. i. Alternatively, when sps_temporal_mvp_enabled_flag and slice_temporal_mvp_enabled_flag are both true, sub-block based temporal merging candidates may be added to the sub-block merging candidates. ii. Alternatively, when sps_temporal_mvp_enabled_flag or slice_temporal_mvp_enabled_flag is false, sub-block based temporal merging candidates should not be added to the sub-block merging candidates. d) Alternatively, an indication of adding a sub-block based temporal merging candidate may be signaled in the sequence / picture / slice / tile group / tile / brick / other video unit. i. Alternatively, it may also be conditionally signaled according to the utilization of temporal motion vector prediction (eg, sps_temporal_mvp_enabled_flag and / or slice_temporal_mvp_enabled_flag).
[0150] 8. Indications of co-located reference pictures, such as which reference picture list the co-located reference picture is derived from (e.g., collocated_from_l0_flag) and / or the reference index of the co-located reference picture, may be conditionally signaled according to the use of multiple coding methods that require access to temporal motion information. a) In one example, the condition is that one of ATMVP or TMVP is enabled. b) In one example, the condition is that one of ATMVP or TMVP or affine motion information prediction is enabled.
[0151] 9. In one example, sub-block based temporal merging candidates may be placed in the sub-block merging candidate list only when ATMVP and TMVP are both enabled for the current picture / slice / tile group. a) Alternatively, sub-block based temporal merging candidates may be placed in the sub-block merging candidate list only when ATMVP is enabled for the current picture / slice / tile group.
[0152] 10. MaxNumSubblockMergeCand may depend on whether subblock-based temporal merging candidates may be used. a) Alternatively, MaxNumSubblockMergeCand may depend on whether TMVP may be used. b) For example, MaxNumSubblockMergeCand should not be greater than 4 if subblock-based temporal merging candidates (or TMVP) cannot be used. i. For example, MaxNumSubblockMergeCand should not be greater than 4 if subblock-based temporal merge candidates (or TMVP) may not be used and ATMVP may be used. ii. For example, MaxNumSubblockMergeCand should not be greater than 4 if subblock-based temporal merge candidates (or TMVP) cannot be used and ATMVP cannot be used. iii. For example, MaxNumSubblockMergeCand must not be greater than 3 if subblock-based temporal merge candidates (or TMVP) cannot be used and ATMVP cannot be used.
[0153] 11. One or more syntax elements indicating whether and / or how PROF should be performed may be signaled at any video unit at sequence / picture / slice / tile group / tile / CTU row / CTU. CU / PU / TU level, such as VPS, DPS, APS, PPS, slice header, tile group header, picture header, CTU, CU, PU, etc. a) In one example, one or more syntax elements (e.g., a flag indicating whether PROG is enabled) may be conditionally signaled depending on other syntax elements, such as a syntax element indicating whether affine prediction is enabled. i. For example, a syntax element indicating whether PROF is enabled may not be signaled, and PROF is inferred to be disabled when affine prediction is disabled. b) In one example, a syntax element indicating whether PROF is enabled must be set to PROF disabled when affine prediction is disabled in the conformance bitstream. c) In one example, when affine prediction is disabled in a conformance bitstream, the signaled syntax element indicating whether PROF is enabled is ignored and PROF is inferred to be disabled. d) In one example, one syntax element may be signaled to indicate whether PROF applies to only one-way prediction.
[0154] 5. Embodiment For all the following embodiments, the syntax elements may be signaled at different levels, such as SPS / PPS / slice header / picture header / tile group header / tile or other video units.
[0155] 5.1, Embodiment #1: Example of Syntax Design for sps_affine_amvr_enabled_flag in SPS / PPS / Slice Header / Tile Group Header [Table 4] Alternatively, [Table 5] Alternatively, [Table 6] Alternatively, [Table 7]
[0156] 5.2. Example #2: Semantics for five_minus_max_num_subblock_merge_cand [Table 8]
[0157] 5.3. Embodiment #3: Example of Syntax Elements for ATMVP in Slice Header (or Tile Group Header) [Table 9] Alternatively, [Table 10]
[0158] 5.4. Embodiment #4: Example of Syntax Elements for Sub-Block-Based Temporal Merge Candidates in Slice Header (or Tile Group Header) [Table 11]
[0159] 5.5. Example #5: Example syntax / semantics for controlling PROF in SPS [Table 12]
[0160] FIG. 28 is a block diagram of a video processing device 1400. The device 1400 may be used to implement one or more of the methods described herein. The device 1400 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 1400 may include one or more processors 1402, one or more memories 1404, and video processing hardware 1406. The processor 1402 may be configured to implement one or more of the methods described herein. The memory(s) 1404 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 1406 is a hardware circuit and may be used to implement some of the techniques described herein.
[0161] 29 is a flow chart of an example method 2900 of video processing. The method 2900 includes performing (2902) a conversion between a current video block of a video and a bitstream representation of the video using an affine adaptive motion vector decomposition technique, whereby the bitstream representation selectively includes control information for the affine adaptive motion vector decomposition technique based on rules.
[0162] The following list of examples provides embodiments that can address, among other issues, the technical problems described herein.
[0163] 1. A method of video processing, comprising a step (2902) of performing a conversion between a current video block of a video and a bitstream representation of the video using an affine adaptive motion vector decomposition technique, whereby the bitstream representation selectively includes control information relating to the affine adaptive motion vector decomposition technique based on rules.
[0164] 2. The method of Example 1, wherein the rules specify including the control information if affine prediction is used during the transformation, and omitting the control information if affine prediction is not used during the transformation.
[0165] 3. The method of example 1, wherein the rules further define excluding using an adaptive motion vector decomposition step during the transformation if affine prediction is not applied to the transformation.
[0166] Further examples and embodiments related to the above examples are provided in Section 4, item 1.
[0167] 4. The method of example 1, wherein the rules define the inclusion or omission of the control information based on whether a regular adaptive motion vector decomposition step is used during the transformation.
[0168] 5. The method of example 4, wherein the rules define that if the regular adaptive motion vector decomposition step is not applied during the transformation, then the control information is omitted.
[0169] 6. The method of example 1, wherein the control information includes a same field indicating the specification of multiple adaptive motion vector decomposition techniques during the transformation.
[0170] Further examples and embodiments related to the above examples are provided in Section 4, item 2.
[0171] 7. The method of example 1, wherein the rules define the inclusion or omission of the control information based on whether regular adaptive motion vector decomposition and affine prediction are used during the transformation.
[0172] 8. The method of example 7, wherein the rules specify omitting the control information if the regular adaptive motion vector decomposition and affine prediction are not both applied during the transformation.
[0173] Further examples and embodiments related to the above examples are provided in Section 4, item 3.
[0174] 9. A method of video processing, comprising: during a conversion between a current video block and a bitstream representation, determining a sub-block merging candidate list for the conversion, the maximum number of candidates in the sub-block merging candidate list depending on whether alternative temporal motion vector prediction (ATMVP) is applied to the conversion; and performing the conversion using the sub-block merging candidate list.
[0175] 10. The method of example 9, wherein a field in the bitstream representation indicates whether alternative temporal motion vector prediction is applied to the transformation.
[0176] 11. The method of example 10, wherein the field is at a sequence level, or a video parameter set level, or a picture parameter set level, or a slice level, or a tile group level, or a picture header level.
[0177] 12. The method of example 9, wherein if ATMVP is applied to the transform and affine prediction is disabled for the transform, the maximum number of candidates is set to 1.
[0178] Further examples and embodiments related to the above examples are provided in Section 4, Item 4.
[0179] 13. A method of video processing, comprising the steps of: during a conversion between a current video block and a bitstream representation, populating a sub-block merging candidate list for the conversion with one or more default merging candidates; and performing the conversion using the sub-block merging candidate list populated with the one or more default merging candidates.
[0180] 14. The method of example 13, wherein the default candidate is associated with a subblock prediction type.
[0181] 15. The method of example 14, wherein the subblock prediction type includes prediction based on a translational motion model or an affine motion model.
[0182] 16. The method of example 13, wherein the default candidate is associated with a whole block prediction type.
[0183] 17. The method of example 14, wherein the whole block prediction type includes prediction based on a translational motion model or an affine motion model.
[0184] Further examples and embodiments related to the above examples are provided in Section 4, Item 5.
[0185] 18. A method of video processing, comprising: determining, during a conversion between a current video block of a video and a bitstream representation, the applicability of Alternative Temporal Motion Vector Prediction (ATMVP) to the conversion, wherein one or more bits in the bitstream representation correspond to the determination; and performing the conversion based on the determination.
[0186] 19. The method of example 18, wherein the one or more bits are included in a picture header, a slice header, or a tile group header.
[0187] 20. The method of Examples 18-19, wherein the transformation uses a co-located picture for ATMVP that is different from other co-located pictures used for the transformation of the video using temporal motion vector prediction (TMVP).
[0188] Further examples and embodiments related to the above examples are provided in Section 4, item 6.
[0189] 21. A method of video processing, comprising the steps of selectively constructing a subblock merging candidate list based on a condition associated with a temporal motion vector prediction (TMVP) step or an alternative temporal motion vector prediction (ATMVP) step, and performing a conversion between a current video block and a bitstream representation of the current video block based on the subblock merging candidate list.
[0190] 22. The method of example 21, wherein the condition corresponds to the presence of a flag in the bitstream representation at a sequence parameter set level, or a slice level, or a tile level, or a brick level.
[0191] 23. The method of Example 21, wherein the subblock merging candidate list is constructed using subblock-based temporal merging candidates only if alternative motion vector prediction and TMVP steps are both enabled for the picture or tile or tile group to which the current video block belongs.
[0192] 24. The method of Example 21, wherein the sub-block merging candidate list is constructed using sub-block based temporal merging candidates only if both ATMVP and TMVP steps are enabled for the picture or tile or tile group to which the current video block belongs.
[0193] 25. The method of Example 21, wherein the sub-block merging candidate list is constructed using sub-block based temporal merging candidates only if ATMVP is enabled and TMVP steps are disabled for the picture or tile or tile group to which the current video block belongs.
[0194] Further examples and embodiments related to the above examples are provided in Section 4, items 7 and 9.
[0195] 26. The method of any one of Examples 21 to 25, wherein a flag in the bitstream representation is included or omitted based on whether sub-block based temporal merging candidates are used during the transform.
[0196] Further examples and embodiments related to the above examples are provided in Section 4, Item 10.
[0197] 27. A method of video processing, comprising the step of selectively using prediction refinement using optical flow (PROF) to perform a transformation between a current video block of a video and a bitstream representation of the video based on rules, the rules including (1) inclusion or omission of a field in the bitstream representation, or (2) whether affine prediction is applied to the transformation.
[0198] 28. The method of example 27, wherein the rule specifies disabling PROF by disabling affine prediction for the transformation.
[0199] 29. The method of example 27, wherein PROF is inferred to be disabled for the transformation if affine prediction is disabled.
[0200] 30. The method of example 27, wherein the rules further provide for using PROF only for uni-prediction based on a corresponding flag in the bitstream representation.
[0201] Further examples and embodiments related to the above examples are provided in Section 4, item 11.
[0202] 31. A video processing device having a processor configured to implement one or more of examples 1-30.
[0203] 32. A computer-readable medium storing code that, when executed by a processor, causes the processor to implement a method according to any one or more of Examples 1-30.
[0204] In the enumeration of examples herein, the term transform may refer to generating a bitstream representation of the current video block or generating the current video block from a bitstream representation that does not necessarily represent a contiguous group of bits, but may be separated into bits contained in codewords or header fields that represent coded pixel value information.
[0205] In the above example, the rules may be predefined and known to the encoder and decoder.
[0206] FIG. 30 is a block diagram illustrating an example video processing system 3000 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 3000. System 3000 may include an input 3002 that receives video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10-bit multi-component pixel values, or may be in a compressed or encoded format. Input 3002 may correspond to a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces such as Ethernet, Passive Optical Network (PON), etc., and wireless interfaces such as Wi-Fi or cellular interfaces.
[0207] The system 3000 may include a coding component 3004 that may implement various coding or encoding methods described herein. The coding component 3004 may reduce the average bit rate of the video from the input 3002 to an output of the coding component 3004 to generate a coded representation of the video. Coding techniques are therefore sometimes referred to as video compression or video transcoding techniques. The output of the coding component 3004 may be either stored or transmitted over a communication connection, as represented by component 3006. The stored or communicated bitstream (or coded) representation of the video received at the input 3002 may be used by component 3008 to generate pixel values or displayable video that are sent to a display interface 3010. The process of generating a user-viewable video from the bitstream representation is sometimes referred to as video decompression. Furthermore, although certain video processing operations are referred to as "coding" operations or tools, the coding tools or operations are used in an encoder, and the corresponding decoding tools or operations that cause the results of the coding to be determined will be performed in a decoder.
[0208] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB) or High Definition Multimedia Interface (HDMI), etc. Examples of storage interfaces include Serial Advanced Technology Attachment (SATA), PCI, IDE interfaces, etc. The techniques described herein may be embodied in various electronic devices such as mobile phones, laptops, smartphones, or other devices capable of performing digital data processing and / or video display.
[0209] 31 is a flowchart of an example method for visual media processing. The steps of this flowchart are described in section 4 of this specification in relation to example embodiment 1. In step 3102, the process determines whether to use an affine adaptive motion vector decomposition (AMVR) technique for the visual media data in response to control information regarding the AMVR technique in a bitstream representation of the visual media data, the control information being included or omitted in the bitstream representation based on rules. In step 3104, the process performs a conversion between the visual media data and the bitstream representation of the visual media data.
[0210] 32 is a flowchart of an example method for visual media processing. The steps of this flowchart are described in section 4 of this specification with respect to example embodiment 4. At step 3202, the process makes a determination whether a sub-block based temporal motion vector prediction (sbTMVP) technique is applied to the visual media data. At step 3204, in response to the determination, the process generates a sub-block merging candidate list for a current video block included in the visual media data. At step 3206, the process uses the sub-block merging candidate list to perform a conversion between the current video block and a bitstream representation of the current video block.
[0211] 33 is a flowchart of an example method for visual media processing. The steps of this flowchart are described in section 4 herein with respect to example embodiment 5. In step 3302, the process populates a sub-block merging candidate list for a current video block during conversion between the current video block and a bitstream representation. In step 3304, the process performs the conversion using the sub-block merging candidate list populated with one or more default merging candidates.
[0212] 34 is a flowchart of an example method for visual media processing. The steps of this flowchart are described in section 4 herein with reference to example embodiment 6. In step 3402, the process determines applicability of sub-block-based temporal motion vector prediction (sbTMVP) to a conversion between a current video block of a video and a bitstream representation, where one or more bits in the bitstream representation correspond to the determination. In step 3404, the process performs the conversion based on the determination.
[0213] 35 is a flowchart of an example method for visual media processing. The steps of this flowchart are described in section 4 of this specification in relation to example embodiment 7. At step 3502, the process selectively constructs a sub-block merging candidate list based on conditions associated with a temporal motion vector prediction (TMVP) step or a sub-block-based temporal motion vector prediction (sbTMVP) step. At step 3504, the process performs a conversion between a current video block and a bitstream representation of the current video block based on the sub-block merging candidate list.
[0214] FIG. 36 is a flowchart of an example of a method for visual media processing. The steps of this flowchart are described in section 4 of this specification in relation to exemplary embodiment 8. In step 3602, the process determines information about a collocated reference picture associated with visual media data during conversion between the visual media data and a bitstream representation of the visual media data, where information is included or omitted in the bitstream representation based on whether a coding mode that accesses temporal motion information is enabled. In step 3604, the process determines the collocated reference picture according to the information. In step 3606, the process performs the conversion between the visual media data and the bitstream representation of the visual media data based on the collocated reference picture.
[0215] 37 is a flowchart of an example method for visual media processing. The steps of this flowchart are described in section 4 herein with reference to example embodiment 11. In step 3702, the process performs a conversion between video blocks of visual media data and a bitstream representation of said visual media data. In step 3704, the process determines whether to apply prediction refinement using optical flow (PROF) during said conversion depending on control information that is included or removed in said bitstream representation based on rules.
[0216] Several embodiments of the present specification are now presented in bullet form.
[0217] A1. A method of visual media processing, comprising: determining whether to use an affine adaptive motion vector decomposition (AMVR) technique for the visual media data in response to control information regarding the AMVR technique in a bitstream representation of the visual media data, the control information being included or omitted in the bitstream representation based on a rule; performing a conversion between the visual media data and the bitstream representation of the visual media data; The method according to claim 1,
[0218] A2. The method according to clause A1, The said rules are: (1) whether affine prediction is used during the transformation; (2) whether regular AMVR technology is used during the conversion; (3) whether information about adaptive motion vector decomposition indicates that the affine AMVR technique is enabled or disabled; determining whether the control information is included or omitted in the bitstream representation based on at least one of: method.
[0219] A3. The method according to clause A1, The rules provide for excluding the control information if affine prediction is not used during the transformation. method.
[0220] A4. The method according to clause A1, The rules define that the control information is included if affine prediction is used during the transformation. method.
[0221] A5. The method according to clause A1, The use of affine AMVR techniques is disabled during the transformation if affine prediction is not used. method.
[0222] A6. The method according to clause A2, Information regarding the adaptive motion vector decomposition is used to control utilization of the affine AMVR technique for a plurality of coding techniques; The multiple coding techniques include a regular AMVR technique and an affine AMVR technique. method.
[0223] A7. A method according to any one or more of clauses A2 or A6, the rules provide for excluding the control information relating to the affine AMVR technique if the information relating to the adaptive motion vector decomposition indicates that the affine AMVR technique is disabled. method.
[0224] A8. A method according to any one or more of clauses A2 or A6, comprising: the rules provide for including the control information regarding the affine AMVR technique if the information regarding the adaptive motion vector decomposition indicates that the affine AMVR technique is enabled; method.
[0225] A9. The method according to any one or more of clauses 2 or A6 to A8, information regarding the adaptive motion vector decomposition is signaled in the bitstream representation at a sequence level. method.
[0226] A10. A method according to any one or more of clauses A1 to A9, The rules further provide that if a regular AMVR technique is used during the transformation, the control information includes information regarding the affine AMVR technique. method.
[0227] A11. A method according to any one or more of clauses A1 to A9, The rules further provide that if a regular AMVR technique is not applied during the transformation, the control information relating to the affine AMVR technique is removed. method.
[0228] A12. The method according to clause A5, The affine AMVR technique is disabled when the regular AMVR technique is not applied during the transformation. method.
[0229] A13. A method according to any one or more of clauses A1 to A4, the control information includes the same field indicating the use of multiple adaptive motion vector resolution techniques during the transform; method.
[0230] A14. A method according to any one or more of clauses A1 to A13, ignoring the control information relating to the affine AMVR technique if affine prediction is not used during the transformation. method.
[0231] A15. A method according to any one or more of clauses A1 to A14, The rules provide for including or removing the control information based on whether regular adaptive motion vector decomposition and affine prediction are used during the transformation. method.
[0232] A16. The method according to clause A15, the rules define excluding the control information if at least one of the regular adaptive motion vector decomposition and the affine prediction is not applied during the transformation. method.
[0233] A17. A method according to any one or more of clauses A1 to A16, the rules further provide for including or omitting the control information in the bitstream representation based on one or more criteria related to the use of affine prediction. method.
[0234] A18. The method according to clause A17, the rules provide for omitting the control information in the bitstream representation if the use of affine prediction is disabled, and further, the absence of the control information in the bitstream representation is used to infer that the use of affine AMVR is disabled. method.
[0235] A19. A method according to any one or more of clauses A1 to A18, if a current slice, tile group, or picture is predicted only from one or more previous pictures associated with the visual media data, the control information is omitted in the bitstream representation. method.
[0236] A20. A method according to any one or more of clauses A1 to A18, if a current slice, tile group, or picture is predicted only from one or more subsequent pictures associated with the visual media data, the control information is omitted in the bitstream representation. method.
[0237] A21. A method according to any one or more of clauses A1 to A18, if a current slice, tile group, or picture is predicted from one or more subsequent or previous pictures associated with the visual media data, the control information is omitted in the bitstream representation. method.
[0238] A22. The method according to clause A1, The affine AMVR technique is disabled if affine prediction or regular AMVR techniques are not used during the transformation. method.
[0239] A23. The method according to clause A22, the control information relating to the affine AMVR technique is omitted in the bitstream representation if affine AMVR is disabled; method.
[0240] A24. The method according to clause A1, The rules further provide that if at least one of affine prediction or regular AMVR techniques is not applied during the transformation, the control information relating to the affine AMVR technique is excluded. method.
[0241] A25. The method according to clause A1, The rules further provide that if neither affine prediction nor regular AMVR techniques are applied during the transformation, the control information relating to the affine AMVR technique is omitted. method.
[0242] A26. The method according to any one of clauses A1 to A25, the control information is included in one of a sequence, a picture, a slice, a tile group, a tile, a brick associated with a current video block, or another video block of the visual media data. method.
[0243] A27. The method according to clause A26, the control information is included in one of a sequence parameter set (SPS), a decoding parameter set (DPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, or a tile group header. method.
[0244] B1. A method of visual media processing, comprising: determining whether a sub-block based temporal motion vector prediction (sbTMVP) technique is applied to the visual media data; generating a sub-block merging candidate list for a current video block included in the visual media data in response to the determining; performing a conversion between the current video block and a bitstream representation of the current video block using the sub-block merging candidate list; The method according to claim 1,
[0245] B2. The method according to clause B1, the maximum number of candidates in the sub-block merging candidate list depends on at least one of: whether the sbTMVP technique is applied to the transform; or whether a temporal motion vector prediction (TMVP) technique is applied to the transform. method.
[0246] B3. The method according to clause B1, the maximum number of candidates in the sub-block merging candidate list depends on whether sub-block based temporal merging candidates are used. method.
[0247] B4. The method according to clause B3, The sub-block based temporal merge candidates are used when a temporal motion vector prediction (TMVP) technique and the sbTMVP technique are applied to the transform. method.
[0248] B5. The method according to any one or more of clauses B1 or B2, A field in the bitstream representation explicitly indicates whether the sbTMVP technique is applied to the transformation. method.
[0249] B6. The method according to clause B5, the field is at a sequence level, or a video parameter set level, or a picture parameter set level, or a slice level, or a tile group level, or a picture header level; method.
[0250] B7. The method according to clause B1, When detecting that a temporal motion vector prediction (TMVP) technique is not applied to the picture, slice, or tile group, determining that the sbTMVP technique is not applied to the picture, slice, or tile group. method.
[0251] B8. The method according to clause B2, one or more syntax elements in the bitstream representation related to a maximum number of candidates in the sub-block merging candidate list depend on whether the sbTMVP technique is applied to the transform. method.
[0252] B9. The method according to clause B8, and if the sbTMVP technique is determined not to be applied to the transformation, constraining values of the one or more syntax elements. method.
[0253] B10. The method according to clause B6, one or more syntax elements relating to a maximum number of candidates in the sub-block merging candidate list are selectively included or omitted in the bitstream representation. method.
[0254] B11. A method according to any one or more of clauses B2 to B10, comprising: the maximum number of candidates in the sub-block merging candidate list is 0, 1, or 5; method.
[0255] C1. A method of visual media processing, comprising: During a conversion between a current video block and a bitstream representation, populating a sub-block merging candidate list for the conversion with one or more default merging candidates; performing the transformation using the sub-block merging candidate list with the one or more default merging candidates appended; The method includes:
[0256] C2. The method according to clause C1, The default candidate is associated with a sub-block prediction type. method.
[0257] C3. The method according to clause C2, the sub-block prediction type includes prediction based on a translational motion model or an affine motion model; method.
[0258] C4. The method according to clause C1, The default candidate is associated with the whole block prediction type. method.
[0259] C5. The method according to clause C4, The whole block prediction type includes prediction based on a translational motion model or an affine motion model. method.
[0260] D1. A method of visual media processing, comprising: determining applicability of sub-block-based temporal motion vector prediction (sbTMVP) to a conversion between a current video block of a video and a bitstream representation, wherein one or more bits in the bitstream representation correspond to the determination; performing said conversion based on said determination; The method according to claim 1,
[0261] D2. The method according to clause D1, The one or more bits are included in a picture header, a slice header, or a tile group header. method.
[0262] D3. A method according to any one or more of clauses D1 to D2, the transformation uses co-located pictures for ATMVP that are different from other co-located pictures used for the transformation of the video using temporal motion vector prediction (TMVP); method.
[0263] D4. A method according to any one or more of clauses D1 to D3, The one or more bits are included in an I-slice, an I-tile group, or an I-picture. method.
[0264] D5. A method according to any one or more of clauses D1 to D3, the one or more bits are included in the bitstream representation at a sequence level when sbTMVP is applied at the sequence level. method.
[0265] D6. A method according to any one or more of clauses D1 to D3, The one or more bits are TMVP slice level or if disabled for a tile group level or a picture level, is removed in the bitstream representation at the slice level or the tile group level or the picture level. method.
[0266] D7. The method according to clause D6, sbTMVP is determined to be inapplicable, method.
[0267] D8. The method according to clause D1, TMVP is disabled for a slice or a tile group or a picture, and the method comprises: inferring that sbTMVP is disabled for the slice or the tile group or the picture, regardless of the one or more bits in the bitstream representation. method.
[0268] E1. A method of visual media processing, comprising: selectively constructing a subblock merging candidate list based on a condition associated with a temporal motion vector prediction (TMVP) step or a subblock-based temporal motion vector prediction (sbTMVP) step; performing a conversion between a current video block and a bitstream representation of the current video block based on the sub-block merging candidate list; The method according to claim 1,
[0269] E2. The method according to clause E1, the condition corresponds to the presence of a flag in the bitstream representation at a sequence parameter set level or a slice level or a tile level or a brick level. method.
[0270] E3. The method according to clause E1, the sub-block merging candidate list is constructed with sub-block based temporal merging candidates only if an sbTMVP step and a TMVP step are both enabled for the picture or tile or tile group to which the current video block belongs. method.
[0271] E4. The method according to clause E1, the sub-block merging candidate list is constructed with sub-block based temporal merging candidates only if a sbTMVP step is enabled for the picture or tile or tile group to which the current video block belongs. method.
[0272] E5. The method according to clause E1, The method of claim 1, wherein the sub-block merging candidate list is constructed with sub-block based temporal merging candidates only if an sbTMVP step is enabled and a TMVP step is disabled for a picture or tile or tile group to which the current video block belongs.
[0273] E6. The method according to any one or more of clauses E1 to E5, a flag in the bitstream representation is included or removed based on whether sub-block based temporal merging candidates are used during the transform; method.
[0274] E7. The method according to clause E6, The flags include at least one of sps_temporal_mvp_enabled_flag or sps_sbtmvp_enabled_flag; method.
[0275] F1. A method of visual media processing, comprising: determining information about co-located reference pictures associated with the visual media data during conversion between the visual media data and a bitstream representation of the visual media data, the information being included or omitted in the bitstream representation based on whether a coding mode that has access to temporal motion information is enabled; determining the co-located reference picture according to the information; performing the conversion between the visual media data and the bitstream representation of the visual media data based on the co-positional reference pictures; The method according to claim 1,
[0276] F2. The method according to clause F1, the information indicating a reference picture list used to derive the co-located reference picture and / or a reference index for the co-located reference picture; method.
[0277] F3. The method according to clause F1, The coding mode comprises a temporal motion vector prediction (TMVP) coding technique; method.
[0278] G1. A method of visual media processing, comprising: performing a conversion between video blocks of visual media data and a bitstream representation of said visual media data; determining whether to apply a prediction refinement using optical flow (PROF) during said transformation depending on control information that is included or removed in said bitstream representation based on rules; The method according to claim 1,
[0279] G2. The method according to clause G1, the rules provide for including or omitting the control information in the bitstream representation based on whether affine prediction is applied to the transformation. method.
[0280] G3. A method according to any one or more of clauses G1 to G2, The application of PROF is disabled based on disabling affine prediction for the transformation. method.
[0281] G4. The method according to clause G2, The rules further provide for removing the control information if affine prediction is disabled. method.
[0282] G5. The method according to clause G4, Affine prediction is disabled and the method inferring that PROF is disabled for said conversion. method.
[0283] G6. The method according to clause G2, The application of PROF is associated only for uni-prediction based on a corresponding flag in the bitstream representation; method.
[0284] G7. The method according to any one of clauses G1 to G6, the control information is included in one of a sequence, a picture, a slice, a tile group, a tile, a brick associated with a current video block, or another video block of the visual media data. method.
[0285] G8. The method according to clause G7, the control information is included in one of a sequence parameter set (SPS), a decoding parameter set (DPS), a video parameter set (VPS), a picture parameter set (PPS), a picture header, a slice header, or a tile group header. method.
[0286] H1. A method according to any one or more of clauses A1 to G8, the converting includes generating the bitstream representation from the current video block. method.
[0287] H2. A method according to any one or more of clauses A1 to G8, the converting includes generating pixel values for the current video block from the bitstream representation. method.
[0288] H3. A video encoder apparatus having a processor configured to implement a method according to any one or more of the methods described in clauses A1 to G8.
[0289] H4. A video decoder apparatus having a processor configured to implement a method according to any one or more of the methods set out in clauses A1 to G8.
[0290] H5. A computer readable medium having stored thereon code embodying processor executable instructions for implementing a method according to any one or more of clauses A1-G8.
[0291] In this specification, the term "video processing" may refer to video encoding, video decoding, video transcoding, video compression, or video decompression. For example, a video compression algorithm may be applied during conversion from a pixel representation of a video to a corresponding bitstream representation, or vice versa. The bitstream representation of a current video block may correspond to bits that are spread or co-located at different locations in the bitstream, for example, as defined by a syntax. For example, a macroblock may be encoded using bits in a header and also other fields in the bitstream for transcoding and coded error residual values. Furthermore, during conversion, a decoder may parse the bitstream knowing that some fields are present or absent based on a decision, as described in the above solution. Similarly, an encoder may determine whether a particular syntax field should be included or not, and generate a coded representation (bitstream representation) by including or removing the syntax field from the coded representation accordingly. It will be appreciated that the disclosed techniques may be implemented in a video encoder or decoder to improve compression efficiency using techniques including the use of sub-block based motion vector refinement.
[0292] The disclosed and other solutions, examples, embodiments, methods and functional operations described herein can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in one or more combinations thereof. The disclosed and other embodiments can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer-readable medium for execution by or for controlling the operation of a data processing apparatus. The computer-readable medium can be a machine-readable storage device, a machine-readable storage carrier, a memory device, a composition of matter carrying a machine-readable propagated signal, or one or more combinations thereof. The term "data processing apparatus" encompasses all apparatus, devices, and machines that process data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. An apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof. A propagated signal is an artificially generated signal, for example a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to an appropriate receiver device.
[0293] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a single file dedicated to the program in question, or in multiple coordinated files (e.g., a file storing one or more modules, subprograms, or portions of code), in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document). A computer program can be deployed to be executed on one computer or on multiple computers located at one site or distributed across multiple sites and interconnected by a communication network.
[0294] The processes and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by, and an apparatus may be implemented as, special purpose logic circuitry, such as a Field Programmable Gate Array (FPGA) or an Application-Specific Integrated Circuit (ASIC).
[0295] Processors suitable for executing computer programs include, by way of example, both general purpose and special purpose microprocessors, as well as any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read-only memory or a random access memory, or both. The essential elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include one or more mass storage devices, e.g., magnetic, optical magnetic disks, or optical disks, for storing data, or be operatively coupled to receive data from and / or transfer data to such one or more mass storage devices. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include, by way of example, all types of non-volatile memory, media, and memory devices, including semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices. The processor and memory may be enhanced by, or incorporated in, dedicated logic circuitry.
[0296] Although the specification contains numerous details, they should not be construed as limitations on the scope of any invention or what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of a particular invention. Certain features described in this specification in the context of separate embodiments may also be implemented in combination with a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as operating in a particular combination, and may even be initially claimed as such, one or more features from a claimed combination may in some cases be deleted from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.
[0297] Similarly, although operations may be depicted in the figures in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown, or in a sequential order, or that all of the depicted operations be performed, to achieve desired results. Further, the separation of various system components in the embodiments described herein should not be understood as requiring such separation in all embodiments.
[0298] Only a few implementations and examples have been described; other implementations, enhancements and variations may be made based on what is described and illustrated herein.
Claims
1. 1. A method for processing video data, comprising the steps of: determining whether an affine coding mode is enabled for conversion between visual media data of a video and a bitstream of said video; determining a first instruction for the visual media data based on whether the affine coding mode is valid for the transformation, the first instruction indicating whether a first coding mode is valid for the visual media data; performing the conversion based at least on the first instructions; having The step of performing the conversion in response to the first indication indicating that the first coding mode is valid comprises: generating an initial prediction sample of a sub-block of a current video block coded in the affine coding mode of the visual media data; applying an optical flow operation to generate a final predicted sample of the sub-block, the optical flow operation including deriving a prediction refinement based on motion vector difference dMvH and / or dMvV, where dMvH and dMvV indicate motion vector difference along horizontal and vertical directions; having method.
2. the first indication is included in the bitstream in a sequence parameter set (SPS); The method of claim 1.
3. the first indication is included in the bitstream for the visual media data in response to a second indication indicating that the affine coding mode is enabled. The method according to claim 1 or 2.
4. the first indication is not included in the bitstream in response to a second indication indicating that the affine coding mode is disabled, and is inferred to indicate that the first coding mode is disabled for the visual media data. The method of claim 1.
5. the first coding mode is a prediction refinement mode using optical flow; 5. The method according to any one of claims 1 to 4.
6. whether the affine coding mode is enabled for the transform is based on a second indication.
6. The method according to any one of claims 1 to 5.
7. whether the bitstream includes a third indication based on whether the affine coding mode should be enabled for the transform; the third instruction indicates whether to enable a tool used to determine a first motion accuracy for the determined motion information in the affine coding mode from a set of allowed motion accuracy levels; 7. The method according to any one of claims 1 to 6.
8. Whether the bitstream includes the third instruction is further based on a fourth instruction; the fourth instruction indicates whether to enable a tool used to determine, from the set of permitted motion accuracies, a first motion accuracy for motion information determined in the affine coding mode and to determine, from the set of permitted motion accuracies, a second motion accuracy for motion information determined in a non-affine coding mode. The method of claim 7.
9. the converting includes encoding the visual media data into the bitstream.
9. The method according to any one of claims 1 to 8.
10. the converting includes decoding the visual media data from the bitstream.
9. The method according to any one of claims 1 to 8.
11. 1. An apparatus for processing video data, comprising: a processor and a non-transitory memory containing instructions; The instructions, when executed by the processor, cause the processor to: determining whether an affine coding mode is enabled for conversion between visual media data of a video and a bitstream of said video; determining a first instruction for the visual media data based on whether the affine coding mode is valid for the transformation, the first instruction indicating whether a first coding mode is valid for the visual media data; performing the conversion based at least on the first instructions; Run the command, The step of performing the conversion in response to the first indication indicating that the first coding mode is valid comprises: generating an initial prediction sample of a sub-block of a current video block coded in the affine coding mode of the visual media data; applying an optical flow operation to generate a final predicted sample of the sub-block, the optical flow operation including deriving a prediction refinement based on motion vector difference dMvH and / or dMvV, where dMvH and dMvV indicate motion vector difference along horizontal and vertical directions; having Device.
12. A non-transitory computer-readable storage medium storing instructions, comprising: The instructions cause a processor to: determining whether an affine coding mode is enabled for conversion between visual media data of a video and a bitstream of said video; determining a first instruction for the visual media data based on whether the affine coding mode is valid for the transformation, the first instruction indicating whether a first coding mode is valid for the visual media data; performing the conversion based at least on the first instructions; Run the command, The step of performing the conversion in response to the first indication indicating that the first coding mode is valid comprises: generating an initial prediction sample of a sub-block of a current video block coded in the affine coding mode of the visual media data; applying an optical flow operation to generate a final predicted sample of the sub-block, the optical flow operation including deriving a prediction refinement based on motion vector difference dMvH and / or dMvV, where dMvH and dMvV indicate motion vector difference along horizontal and vertical directions; having A non-transitory computer-readable storage medium.
13. 1. A method of storing a bitstream generated by a method performed by a video processing device, comprising: determining whether an affine coding mode is enabled for the visual media data of the video; determining a first instruction for the visual media data based on whether the affine coding mode is enabled, the first instruction indicating whether a first coding mode is enabled for the visual media data; and generating the bitstream for the video based at least on the first instructions; storing the bitstream on a non-transitory computer-readable recording medium; having The step of generating the bitstream in response to the first indication indicating that the first coding mode is enabled comprises: generating an initial prediction sample of a sub-block of a current video block coded in the affine coding mode of the visual media data; applying an optical flow operation to generate a final predicted sample of the sub-block, the optical flow operation including deriving a prediction refinement based on motion vector difference dMvH and / or dMvV, where dMvH and dMvV indicate motion vector difference along horizontal and vertical directions; having method.
Citation Information
Cited By
Controlling deblocking filtering at different levels in coded video
US12301799B2
Merge with motion vector differencing in affine mode
US12348761B2
Prediction refinement for affine merge and affine motion vector prediction mode
US12388989B2
Syntax signaling in sub-block merge mode
US12413714B2
Prediction refinement for affine merge and affine motion vector prediction mode
US12513291B2
