Transform Block Size Constraints in Video Coding
Optimized video coding techniques, including adaptive loop filters and advanced motion prediction, address bandwidth challenges in video coding standards by enhancing efficiency and reducing computational complexity, leading to improved decoded video quality.
Patent Information
- Application Number
- JP2023117437
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-07-14
- Filing Date
- 2023-07-19
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2040-07-14
AI Technical Summary
Existing video coding technologies face challenges in efficiently managing bandwidth demands due to the increasing volume of digital video data, particularly in the context of evolving video coding standards like HEVC and the development of future standards such as VVC, where complex merge candidate list constructions and motion vector predictions can lead to computational inefficiencies.
The proposed methods involve optimizing video coding processes by selectively including or excluding syntax elements to enable or disable coding tools, applying adaptive loop filters based on sample depth, and utilizing advanced motion prediction techniques like triangular prediction mode and adaptive motion vector difference resolution to improve coding efficiency and reduce computational complexity.
These methods enhance coding efficiency and reduce bandwidth requirements by optimizing video block transformations and motion predictions, thereby improving the quality of decoded video while minimizing computational resources.
Smart Images

Figure 0007568352000021 
Figure 0007568352000022 
Figure 0007568352000023
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application is a divisional application of Japanese Patent Application No. 2022-502208 filed on January 13, 2022, which is based on International Patent Application No. PCT / CN2020 / 101819 filed on July 14, 2020. This application is timely filed claiming priority and the benefit of International Patent Application No. PCT / CN2019 / 095921 filed on July 14, 2019. All of the above patent applications are hereby incorporated by reference in their entireties.
[0002] Technical Field This paper concerns video and image coding and decoding technologies. [Background technology]
[0003] Digital video accounts for the largest bandwidth usage on the Internet and other digital communications networks. Bandwidth demands for digital video usage are expected to continue to increase as the number of connected user devices capable of receiving and displaying video increases. Summary of the Invention [Means for solving the problem]
[0004] In one example aspect, a method of visual media processing is disclosed that includes performing a conversion between a current video block of visual media data and a bitstream representation of the current video block, the bitstream representation constructed according to formatting rules that specify whether a syntax element indicating a maximum number of merging candidates for a coding tool is selectively included or excluded from the bitstream representation, thereby indicating whether the coding tool is enabled or disabled for the conversion, the maximum number of merging candidates for the coding tool being zero or a positive number.
[0005] In one example aspect, a method of visual media processing is disclosed that includes performing a conversion between a video including one or more video regions including a plurality of video blocks and a bitstream representation of the video, the bitstream representation conforming to a format rule that specifies a number of allowable geometric partitioning mode (GMP) motion candidates for a video region that determines whether a syntax element related to applicability of a coding tool to the video region is included in the bitstream representation, the coding tool being distinct from a GPM coding tool, the GPM including partitioning a video block into a plurality of prediction partitions for separately applying motion prediction, at least one partition having a non-rectangular shape.
[0006] In one example aspect, a method of visual media processing is disclosed that includes performing a conversion between a current video unit of visual media data and a bitstream representation of the visual media data, the bitstream representation being configured according to a format rule that specifies that a maximum transform block size is equal to or less than a maximum coding tree unit (CTU) size used for the conversion.
[0007] In one example aspect, a method of visual media processing is disclosed that includes performing a conversion between a current video block of visual media data and a bitstream representation of the current video block, the conversion using an adaptive loop filter (ALF), where coefficients of the ALF filter are based on a depth of samples in a video domain of the current video block.
[0008] In one example aspect, a method of visual media processing is disclosed that includes performing a conversion between a current video block of visual media data and a bitstream representation of the current video block using an adaptive loop filter (ALF), the bitstream representation being configured according to format rules that specify that one or more syntax elements included in the bitstream representation indicate whether an ALF filter to be applied to the current video block is determined based on an adaptive parameter set (APS) or a fixed set of filters.
[0009] In another exemplary aspect, the methods described above may be implemented by a video decoder device comprising a processor.
[0010] In another exemplary aspect, the methods described above may be implemented by a video encoder device comprising a processor.
[0011] In yet another exemplary aspect, the methods may be embodied in processor-executable instructions and stored on a computer-readable program medium.
[0012] These and other aspects are described further herein. [Brief description of the drawings]
[0013] [Figure 1] 1 shows the derivation process for building a merge candidate list.
[0014] [Diagram 2] 1 shows examples of spatial merge candidate locations.
[0015] [Diagram 3] 13 shows examples of candidate pairs considered for redundancy check of spatial merge candidates.
[0016] [Figure 4]13 shows exemplary locations of the second PU for N×2N and 2N×N partitions.
[0017] [Diagram 5] 13 shows an illustrative example of motion vector scaling for temporal merge candidates.
[0018] [Figure 6] 4 shows example candidate positions for temporal merge candidates C0 and C1.
[0019] [Figure 7] 1 illustrates an example of combined bi-predictive merge candidates.
[0020] [Figure 8] 1 illustrates an example of a derivation process for motion vector prediction candidates.
[0021] [Figure 9] 1 shows an exemplary illustration of motion vector scaling for spatial motion vector candidates.
[0022] [Figure 10] Examples of simplified affine motion models are shown for a 4-parameter affine mode (left) and a 6-parameter affine model (right).
[0023] [Figure 11] 13 shows an example of an affine motion vector field per sub-block.
[0024] [Figure 12] An example of exemplary candidate positions for the affine merging mode is shown.
[0025] [Figure 13] Here is an example of a modified merge list building process.
[0026] [Figure 14]1 illustrates an example of triangulation-based inter prediction.
[0027] [Figure 15] 13 shows an example of a CU that applies the first set of weighting factors.
[0028] [Figure 16] 4 shows an example of motion vector storage.
[0029] [Figure 17] 1 shows an example of the extreme motion vector expression (UMVE) search process.
[0030] [Figure 18] An example of a UMVE search point is shown.
[0031] [Figure 19] An example of MVD(0,1) mirrored between list 0 and list 1 in DMVR is shown.
[0032] [Figure 20] Shows the MVs that can be checked in one iteration step.
[0033] [Figure 21] This is an example of intra block copy.
[0034] [Figure 22] FIG. 2 is a block diagram of an example of a video processing device.
[0035] [Figure 23] 1 is a flow chart for an example video processing method.
[0036] [Figure 24] 1 is a block diagram of an example video processing system in which the disclosed techniques may be implemented.
[0037] [Diagram 25]1 is a flow chart for an example visual media processing method.
[0038] [Figure 26] 1 is a flow chart for an example visual media processing method.
[0039] [Figure 27] 1 is a flow chart for an example visual media processing method.
[0040] [Figure 28] 1 is a flow chart for an example visual media processing method.
[0041] [Figure 29] 1 is a flow chart for an example visual media processing method. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0042] This document provides various techniques that can be used by a decoder of an image or video bitstream to improve the quality of the decompressed or decoded digital video or image. For brevity, the term "video" is used herein to include both a series of pictures (traditionally called video) and individual images. Additionally, a video encoder may also implement these techniques during the encoding process to reconstruct the decoded frames that are used for further encoding.
[0043] Section headings are used herein for ease of understanding and do not limit the embodiments and techniques to the corresponding section, such that embodiments from one section can be combined with embodiments from other sections.
[0044] 1. Brief Overview This paper relates to video coding technologies. Specifically, this paper relates to merge coding including triangular prediction modes. This may be applied to existing video coding standards such as HEVC or to a yet to be finalized standard (Versatile Video Coding). This may also be applicable to future video coding standards or video codecs.
[0045] 2. Introductory 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 both organizations jointly produced H.262 / MPEG-2 Video and H.264 / MPEG-4 Advanced Video Coding (AVC) and H.265 / HEVC standards. Since H.262, video coding standards have been based on hybrid video coding structures where temporal prediction and transform coding are utilized. In 2015, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) to explore future video coding technologies beyond HEVC. Since then, many new methods have been adopted by JVET and put into reference software named JEM (Joint Exploration Model). In April 2018, the Joint Video Expert Team (JVET) was launched between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) and is working on the VVC standard, which aims to reduce the bitrate by 50% compared to HEVC.
[0046] The latest version of the VVC draft, i.e. Versatile Video Coding (Draft 5), can be found at http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 14_Geneva / wg11 / JVET-N1001-v7.zip.
[0047] The latest reference software for VVC, named VTM, can be found at https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-5.0.
[0048] 2.1 Inter Prediction in HEVC / H.265 For an inter-coded coding unit (CU), it may be coded with one prediction unit (PU), two PUs, depending on the partitioning mode. Each inter-predicted 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 delta to the predictor.
[0049] When a CU is coded in skip mode, one PU is associated with the CU, there are no significant residual coefficients, and there are no deltas or reference picture indexes of the coded motion vector. A merge mode is specified, whereby motion parameters for the current PU are obtained from neighboring PUs, including spatial and temporal candidates. The merge mode can be applied to any inter-predicted PU, not just skip mode. An alternative to the merge mode is an explicit transmission of motion parameters, where the motion vectors (more precisely, the motion vector differential (MVD) compared to the motion vector predictor), the corresponding reference picture index for each reference picture list, and the reference picture list usage are explicitly signaled for each PU. Such a mode is referred to as Advanced motion vector prediction (AMVP) in this disclosure.
[0050] 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 possible for both P and B slices.
[0051] 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 possible for B slices.
[0052] The following text gives details of the inter prediction modes specified in HEVC. The description starts with merge modes.
[0053] 2.1.1 Reference Picture List In HEVC, the term inter prediction is used to indicate a prediction derived from data elements (e.g., sample values or motion vectors) of reference pictures other than the current decoded picture. Similar to H.264 / AVC, a picture can be predicted from multiple reference pictures. The reference pictures used for inter prediction are organized in one or more reference picture lists. A reference index identifies which of the reference pictures in the list should be used to generate the prediction signal.
[0054] For P slices a single reference picture list List0 is used, and for B slices two reference picture lists are used, List0 and List1. It should be noted that the reference pictures included in List0 / 1 can be past and future pictures in terms of acquisition / display order.
[0055] 2.1.2 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 candidate list is parsed from the bitstream and used to obtain the motion information. The construction of this list is specified in the HEVC standard and can be summarized as the following sequence of steps: ● Step 1: Derive initial candidates Step 1.1: Derive spatial candidates Step 1.2: Redundancy check on spatial candidates Step 1.3: Derive temporal candidates ● Step 2: Insert additional candidates Step 2.1: Generate bi-prediction candidates Step 2.2: Inserting zero motion candidates
[0056] These steps are also shown diagrammatically in Fig. 1. For spatial merge candidate derivation, up to four merge candidates are selected from among candidates located at five different positions. For temporal merge candidate derivation, up to one merge candidate is selected from among two candidates. Since the number of candidates is assumed to be constant for each PU at the decoder, additional candidates are generated if the number of candidates obtained in step 1 does not reach the maximum number of merge candidates (MaxNumMergeCand) signaled in the slice header. Since the number of candidates is constant, the index of the best merge candidate is encoded using truncated unary binarization (TU). If the size of a CU is equal to 8, all PUs of the current CU share a single merge candidate list that is identical to the merge candidate list of the 2Nx2N prediction units.
[0057] The operations associated with the above steps are detailed below.
[0058] 2.1.2.2 Deriving Spatial Candidates In the derivation of spatial merge candidates, up to four merge candidates are selected from among the candidates located at the positions shown in FIG. 22. The order of derivation is A1, B1, B0, A0, B2. Position B2 is considered only if none of the PUs at positions A1, B1, B0, A0 are available (e.g., because it belongs to another slice or tile) or are intra-coded. After the candidate at position A1 is added, the addition of the remaining candidates is subject to a redundancy check that ensures that candidates with the same motion information are removed from the list, improving coding efficiency. To reduce computational complexity, the aforementioned redundancy check does not consider all possible candidate pairs. Instead, only the pairs connected by the arrows in FIG. 3 are considered, and a candidate is added to the list only if the corresponding candidate used for the redundancy check does not have the same motion information. Another source of overlapping motion information is a "second PU" associated with a partition different from 2N×2N. As an example, FIG. 4 shows a 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 considered for list construction. In fact, adding this candidate results in two prediction units with the same motion information, which is redundant with only having one PU in the coding unit. Similarly, if the current PU is partitioned as 2N×N, position B1 is not considered.
[0059] 2.1.1.3 Temporal Candidate Derivation In this step, only one candidate is added to the list. Specifically, in this derivation of the temporal merge candidate, a scaled motion vector is derived based on the co-located PU in the co-located picture. The scaled motion vector for the temporal merge candidate is obtained as shown by the dotted line in Figure 5, which is scaled from the motion vector of the co-located PU using the POC distances, tb and td. Here, tb is defined to be the POC difference 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 to zero. The practical realization of the scaling process is described in the HEVC specification [1]. For B slices, two motion vectors, one for reference picture list 0 and the other for reference picture list 1, are obtained and combined to create a bi-predictive merge candidate.
[0060] 2.1.2.4 Co-located Pictures and Co-located PUs When TMVP is enabled (i.e., slice_temporal_mvp_enabled_flag is equal to 1), the variable ColPic representing the co-located picture is derived as follows: · If the current slice is a B slice and the signaled collocated_from_l0_flag is equal to 0, then ColPic is set equal to RefPicList1[collocated_ref_idx]. Otherwise (slice_type is equal to B and collocated_from_l0_flag is equal to 1 or slice_type is equal to P), ColPic is set equal to RefPicList0[collocated_ref_idx]. Here, collocated_ref_idx and collocated_from_l0_flag are two syntax elements that can be signaled in the slice header.
[0061] For a co-located PU(Y) belonging to a reference frame, a position for a temporal candidate is selected between candidate C0 and candidate C1, as shown in Figure 6. If the PU at position C0 is not available, is intra-coded, or is out of the current coding tree unit (CTU, also called largest coding unit, LCU) row, then position C1 is used. Otherwise, position C0 is used to derive the temporal merge candidate.
[0062] The relevant syntax elements are written as follows: [Table 1]
[0063] 2.1.2.5 Derivation of MV for TMVP Candidates More specifically, to derive TMVP candidates, the following steps are performed: 1) Set reference picture list X=0 and set the target reference picture to the reference picture whose index in list X is equal to 0 (i.e., curr_ref). 2) If the current slice is a B slice, set reference picture list X=1 and set the target reference picture to the reference picture in list X whose index is equal to 0 (i.e., curr_ref). Invoke the derivation process on the co-located motion vectors to obtain the MV for list X that points to curr_ref.
[0064] The derivation process for co-located motion vectors is described in the next subsection 2.1.2.5.1.
[0065] 2.1.2.5.1 Derivation Process for Co-located Motion Vectors For co-located blocks, they may be uni- or bi-predictively intra- or inter-coded. If intra-coded, TMVP candidates are set to unavailable.
[0066] In the case of uni-prediction from list A, the motion vectors of list A are scaled to the target reference picture list X.
[0067] If bi-predictive and the target reference picture list is X, then the motion vectors of list A are scaled to target reference picture list X, where A is determined according to the following rules: If none of the reference pictures has a larger POC value than the current picture, then A is set equal to X. Otherwise, A is set equal to collocated_from_l0_flag.
[0068] The relevant working drafts in JCTVC-W1005-v4 are as follows:
[0069] 8.5.3.2.9 Derivation process for co-located motion vectors The inputs to this process are: The variable currPb, which specifies the current prediction block, A variable ColPic that specifies the co-located prediction block in the co-located picture specified by ColPic, A luma location (xColPb, yColPb) that specifies the top-left sample of the co-located luma prediction block specified by ColPb relative to the top-left luma sample of the co-located picture specified by ColPic, A reference index, refIdxLX, where X is 0 or 1.
[0070] The output of this process is: Motion vector prediction mvLXCol, · Availability flag availableFlagLXCol.
[0071] The variable currPic specifies the current picture.
[0072] The arrays predFlagL0Col[x][y], mvL0Col[x][y], and refIdxL0Col[x][y] are set equal to PredFlagL0[x][y], MvL0[x][y], and RefIdxL0[x][y], respectively, of the co-located picture specified by ColPic, and the arrays predFlagL1Col[x][y], mvL1Col[x][y], and refIdxL1Col[x][y] are set equal to PredFlagL1[x][y], MvL1[x][y], and RefIdxL1[x][y], respectively, of the co-located picture specified by ColPic.
[0073] The variables mvLXCol and availableFlagLXCol are derived as follows: · If colPb is coded in intra prediction mode, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0. Otherwise, the motion vector mvCol, the reference index refIdxCol and the reference list identifier listCol are derived as follows: · If predFlagL0Col[xColPb][yColPb] is equal to 0, then mvCol, refIdxCol, and listCol are set equal to mvL1Col[xColPb][yColPb], refIdxL1Col[xColPb][yColPb], and L1, respectively. Otherwise, if predFlagL0Col[xColPb][yColPb] is equal to 1 and predFlagL1Col[xColPb][yColPb] is equal to 0, then mvCol, refIdxCol, and listCol are set equal to mvL0Col[xColPb][yColPb], refIdxL0Col[xColPb][yColPb], and L0, respectively. Otherwise (predFlagL0Col[xColPb][yColPb] is equal to 1 and predFlagL1Col[xColPb][yColPb] is equal to 1), the following assignments are made: · If NoBackwardPredFlag is equal to 1, then mvCol, refIdxCol, and listCol are set equal to mvLXCol[xColPb][yColPb], refIdxLXCol[xColPb][yColPb], and LX, respectively. Otherwise, mvCol, refIdxCol, and listCol are set equal to mvLNCol[xColPb][yColPb], refIdxLNCol[xColPb][yColPb]LN, respectively, where N is the value of collocated_from_l0_flag. mvLXCol and availableFlagLXCol are derived as follows: If LongTermRefPic(currPic, currPb, refIdxLX, LX) is not equal to LongTermRefPic(ColPic, colPb, refIdxCol, listCol), then both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0. Otherwise, the variable availableFlagLXCol is set equal to 1, refPicListCol[refIdxCol] is set to the picture with reference index refIdxCol in the reference picture list listCol of the slice containing the predictive block colPb in the co-located picture specified by ColPic, and the following applies: colPocDiff=DiffPicOrderCnt(ColPic,refPicListCol[refIdxCol]) (2-1) currPocDiff=DiffPicOrderCnt(currPic,RefPicListX[refIdxLX]) (2-2) If RefPicListX[refIdxLX] is a long-term reference picture or colPocDiff is equal to currPocDiff, then mvLXCol is derived as follows: mvLXCol=mvCol (2-3) Otherwise, mvLXCol is derived as a scaled version of the motion vector mvCol as follows: [Table 2]
[0074] The definition of NoBackwardPredFlag is as follows:
[0075] The variable NoBackwardPredFlag is derived as follows: · If DiffPicOrderCnt(aPic,CurrPic) is less than or equal to 0 for each picture aPic in RefPicList0 or RefPicList1 of the current slice, NoBackwardPredFlag is set to 1. Otherwise, NoBackwardPredFlag is set equal to 0.
[0076] 2.1.2.6 Inserting Additional Candidates Besides spatial and temporal merge candidates, there are two additional types of merge candidates: composite bi-predictive merge candidates and zero merge candidates. Composite bi-predictive merge candidates are generated by utilizing spatial and temporal merge candidates. Composite bi-predictive merge candidates are used only for B slices. Composite bi-predictive candidates are generated by combining the first reference picture list motion parameters of an initial candidate with the second reference picture list motion parameters of another candidate. If these two tuples provide different motion hypotheses, they form a new bi-predictive candidate. As an example, Figure 7 shows the case where two candidates in the original list (left side) with mvL0 and refIdxL0 or mvL1 and refIdxL1 are used to create a composite bi-predictive merge candidate that is added to the final list (right side). There are a number of rules regarding the possible combinations to generate these additional merge candidates defined in [1].
[0077] Zero motion candidates are inserted to fill the remaining entries in the merge candidate list, thus reaching 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. Finally, no redundancy check is performed on these candidates.
[0078] 2.1.3 AMVP 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 left, top, temporally neighboring PU positions, removing redundant candidates, and adding zero vectors to make the candidate list a constant length. The encoder can then select the best predictor from the candidate list and transmit the corresponding index indicating the selected candidate. Similarly, in merge index signaling, the index of the best motion vector candidate is encoded using a truncated unary number. The maximum value to be encoded in this case is 2 (see Figure 8). The following sections provide details of the motion vector prediction candidate derivation process.
[0079] 2.1.3.1 Derivation of AMVP Candidates FIG. 8 summarizes the derivation process for motion vector prediction candidates.
[0080] In motion vector prediction, two types of motion vector candidates are considered: spatial motion vector candidates and temporal motion vector candidates.
[0081] For the derivation of spatial motion vector candidates, two motion vector candidates are finally derived based on the motion vectors of each PU located at five different positions as shown in FIG. 2. For the derivation of temporal motion vector candidates, one motion vector candidate is selected from the two candidates derived based on two different co-located positions. After the first list of spatio-temporal candidates is created, the duplicated motion vector candidates in the list are removed. If the number of potential candidates is greater than two, the motion vector candidates whose reference picture index in the associated reference picture list is greater than one 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.
[0082] 2.1.3.2 Spatial Motion Vector Candidates In the derivation of spatial motion vector candidates, a maximum of two candidates out of five potential candidates are considered. The five potential candidates are derived from PUs located at positions as shown in FIG. 2, and their positions are the same as in the case of motion merging. The order of derivation for the left side of the current PU is defined as A0, A1, scaled A0, scaled A1. The order of derivation for the upper side of the current PU is defined as B0, B1, B2, scaled B0, scaled B1, scaled B2. Thus, for each side, there are four cases that can be used as motion vector candidates, two cases do not need to use spatial scaling, and two cases use spatial scaling. The four different cases are summarized as follows: No spatial scaling (1) Same reference picture list, same reference picture index (same POC) (2) Different reference picture lists but the same reference picture (same POC) Spatial Scaling (3) Same reference picture list, but different reference pictures (different POC) (4) Different reference picture lists and different reference pictures (different POC).
[0083] The case without spatial scaling is checked first, then spatial scaling is dealt with. Spatial scaling is considered when POC differs between the reference pictures of neighboring PUs and the reference picture of the current PU, regardless of the reference picture list. If all PUs of the left candidate are not available or are intra-coded, scaling is allowed for the above motion vector to aid in the parallel derivation of left and above MV candidates. Otherwise, spatial scaling is not allowed for the above motion vector.
[0084] In the spatial scaling process, the motion vectors of neighboring PUs are scaled in a similar manner to that of 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.
[0085] 2.1.3.3 Temporal Motion Vector Candidates Apart from the derivation of the reference picture index, all the processes for the derivation of temporal merge candidates are the same as those for the derivation of spatial motion vector candidates (see Figure 6). The reference picture index is signaled to the decoder.
[0086] 2.2 Inter Prediction Method in VVC There are several new coding tools for inter prediction improvement, such as Adaptive Motion Vector difference Resolution (AMVR) for signaling MVD, Merge with Motion Vector Differences (MMVD), Triangular prediction mode (TPM), Combined intra-inter prediction (CIIP), Advanced TMVP (also called ATMVP or SbTMVP), Affine prediction mode, Generalized Bi-Prediction (GBI), Decoder-side Motion Vector Refinement (DMVR), and Bi-directional Optical flow (BIO, also called BDOF).
[0087] There are three different merge list building processes supported by VVC: 1) Subblock Merge Candidate List : This includes ATMVP, affine merge candidates. One merge list construction process is shared for both affine and ATMVP modes, where ATMVP and affine merge candidates may be added sequentially. The size of the subblock merge list is signaled in the slice header, with a maximum value of 5. 2) Normal Merge List : For inter-coded blocks, one merge list construction process is shared, where spatial / temporal merge candidates, HMVP, pairwise merge candidates, and zero motion candidates may be inserted in order. The size of the merge list is usually signaled in the slice header, with a maximum value of 6. MMVD, TPM, and CIIP usually rely on merge lists. 3) IBC Merge List This is done in the same way as with regular merge lists.
[0088] Similarly, there are three AMVP lists supported by VVC: 1) Affine AMVP Candidate List 2) Regular AMVP candidate list 3) IBC AMVP Candidate List : Same construction process as IBC merge list by adopting JVET-N0843
[0089] 2.2.1 Coding Block Structure in VVC VVC employs a quadtree / binarytree / ternarytree (QT / BT / TT) structure that divides a picture into square or rectangular blocks.
[0090] Besides QT / BT / TT, for I-frames, VVC also employs separate trees (also called dual coding trees), where the coding block structure is signaled separately for the luma and chrominance components.
[0091] Additionally, CU is set equal to PU and TU, except for blocks coded with some specific coding methods (e.g., intra subpartition prediction, where PU is equal to TU but smaller than CU, and subblock transform for inter-coded blocks, where PU is equal to CU but TU is smaller than PU).
[0092] 2.2.2 Affine Prediction Mode In HEVC, only the translational motion model is applied for motion compensation prediction (MCP). In the real world, there are many kinds of motions, such as zoom in / out, rotation, perspective motions, and other irregular motions. In VVC, a simplified affine transformation motion compensation prediction is applied using a 4-parameter affine model and a 6-parameter affine model. As shown in Figure 10, the affine motion field of a block is described by two control point motion vectors (CPMVs) for the 4-parameter affine model and by three CPMVs for the 6-parameter affine model.
[0093] The motion vector field (MVF) of a block is described by the following equations: Equation (1) is a four-parameter affine model (where the four parameters are defined as the variables a, b, e, and f), and Equation (2) is a six-parameter affine model (where the four parameters are defined as the variables a, b, c, d, e, and f).
number
[0094] 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 is calculated according to equations (1) and (2) and rounded to 1 / 16 fractional precision, as shown in Fig. 11. Then, a 1 / 16 pixel-wise motion compensation interpolation filter is applied to generate the prediction of each subblock with the derived motion vector. The 1 / 16 pixel-wise interpolation filter is introduced by the affine mode.
[0095] After MCP, the high-precision motion vectors of each subblock are rounded and stored with the same precision as the normal motion vectors.
[0096] 2.2.3 Merging Whole Blocks 2.2.3.1 Merge List Construction for Translational Normal Merge Mode 2.2.3.1.1 History-Based Motion Vector Prediction (HMVP) Unlike the merge-list design, VVC uses a history-based motion vector prediction (HMVP) method.
[0097] In HMVP, previously coded motion information is stored. 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. When starting coding / decoding of a new tile / LCU row / slice, the HMVP table is emptied. Whenever there are inter-coded blocks and non-sub-block, non-TPM modes, the associated motion information is added to the last entry of the table as a new HMVP candidate. The overall coding flow is shown in Figure 12.
[0098] 2.2.3.1.2 Normal Merge List Building Process The construction of a regular merge list (for translational motion) can be summarized as the following sequence of steps: ● Step 1: Derive spatial candidates ● Step 2: Inserting HMVP candidates Step 3: Insert pairwise average candidates ● Step 4: Default movement candidates
[0099] HMVP candidates can be used in both AMVP and merge candidate list construction process. Figure 13 shows the modified merge candidate list construction process (indicated by the dotted line pattern). After the insertion of the TMVP candidate, if the merge candidate list is not full, the HMVP candidates stored in the HMVP table are available 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, and the first entry is added to the end. 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 is terminated.
[0100] Note that all spatial / temporal / HMVP candidates are coded in non-IBC mode, otherwise they cannot be added to the regular merge candidate list.
[0101] The HMVP table contains up to five normal motion candidates, each of which is unique.
[0102] 2.2.3.1.2.1 Pruning Process A candidate is added to the list only if the corresponding candidate used for redundancy check does not have the same motion information. Such a comparison process is called a pruning process.
[0103] The pruning process among spatial candidates depends on the use of the TPM for the current block.
[0104] If the current block is coded without a TPM mode (eg, normal merge, MMVD, CIIP), the HEVC pruning process for spatial merging candidates (ie, pruning by 5) is utilized.
[0105] 2.2.4 Triangular Prediction Mode (TPM) VVC supports triangulation mode for inter prediction. Triangulation mode applies only to CUs of 8x8 or larger and coded in merge mode but not in MMVD or CIIP modes. For CUs that meet these conditions, a CU-level flag is signaled to indicate whether triangulation mode applies or not.
[0106] When this mode is used, a CU is evenly divided into two triangular partitions using either diagonal or anti-diagonal partitioning, as shown in Figure 14. Each triangular partition in a CU is inter-predicted using its own motion; only uni-prediction is allowed for each partition, i.e., each partition has one motion vector and one reference index. The uni-prediction motion constraint ensures that only two motion-compensated predictions are needed for each CU, just like traditional bi-prediction.
[0107] If the CU-level flag indicates that the current CU is coded using a triangulation mode, a flag indicating the triangulation direction (diagonal or anti-diagonal) and two merge indices (one for each partition) are further signaled. After predicting each triangular partition, the sample values along the diagonal or anti-diagonal edges are adjusted using a blending process with adaptive weights. This is the prediction signal for the entire CU, and the transformation and quantization process is applied to the entire CU, similar to other prediction modes. Finally, the motion field of the CU predicted using the triangulation mode is stored in 4x4 units.
[0108] The normal merge candidate list is reused for triangulation merge prediction without additional motion vector pruning. For each merge candidate in the normal merge candidate list, only one of its L0 or L1 motion vectors is used for triangulation prediction. In addition, the order of selecting L0 or L1 motion vectors is based on their merge index parity. In this scheme, the normal merge list can be used directly.
[0109] 2.2.4.1 Merge List Building Process for TPM Essentially, the usual merge list construction process is applied as proposed in JVET-N0340, however, some modifications are added.
[0110] In particular, the following applies: 1) How the pruning process is done depends on the TPM usage for the current block. If the current block is not TPM coded, the HEVC 5 pruning applied to spatial merge candidates is invoked. Otherwise (if the current block is TPM coded), full pruning is applied when adding a new spatial merge candidate: B1 is compared to A1, B0 is compared to A1 and B1, A0 is compared to A1, B1 and B0, B2 is compared to A1, B1, A0 and B0. 2) The condition for whether to check the motion information from B2 depends on the TPM usage for the current block. If the current block is not TPM coded, B2 is accessed and checked only if there are less than four spatial merge candidates before checking B2. Otherwise (if the current block is TPM coded), B2 is always accessed and checked before adding B2, regardless of how many spatial merge candidates are available.
[0111] 2.2.4.2 Adaptive Weighting Process After predicting each triangular prediction unit, an adaptive weighting process is applied to the diagonal edge between two triangular prediction units to derive the final prediction for the entire CU. Two weighting factor groups are defined as follows: · The first group of weighting factors: {7 / 8, 6 / 8, 4 / 8, 2 / 8, 1 / 8} and {7 / 8, 4 / 8, 1 / 8} are used for luminance and chrominance samples, respectively; The second set of weighting factors: {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.
[0112] The set of weighting factors is selected based on a comparison of the motion vectors of the two triangular prediction units. The second set of weighting factors is used if any of the following conditions are met: The reference pictures of the two triangle prediction units are different from each other. The absolute difference between the horizontal values of two motion vectors is greater than 16 pixels. The absolute value of the difference between the vertical values of the two motion vectors is greater than 16 pixels.
[0113] Otherwise, the first set of weighting factors is used. An example is shown in FIG.
[0114] 2.2.4.3 Motion Vector Storage The motion vectors of the triangular prediction units (Mv1 and Mv2 in Figure 16) are stored in a 4x4 grid. For each 4x4 grid, a uni-predictive or bi-predictive motion vector is stored depending on the location of the 4x4 grid in the CU. As shown in Figure 16, either a uni-predictive motion vector Mv1 or Mv2 is stored for 4x4 grids located in non-weighted regions (i.e., not located on diagonal edges). Meanwhile, for 4x4 grids located in weighted regions, a bi-predictive motion vector is stored. The bi-predictive motion vector is derived from Mv1 and Mv2 according to the following rules: 1) If Mv1 and Mv2 have motion vectors from different directions (L0 or L1), Mv1 and Mv2 are simply combined to form a bi-predictive motion vector. 2) If both Mv1 and Mv2 are from the same L0 (or L1) direction, If the reference picture of Mv2 is the same as a picture in the L1 (or L0) reference picture list, Mv2 is scaled to match that picture. Mv1 and the scaled Mv2 are combined to form a bi-predictive motion vector. If the reference picture of Mv1 is the same as a picture in the L1 (or L0) reference picture list, Mv1 is scaled to match that picture. The scaled Mv1 and Mv2 are combined to form the bi-predictive motion vector. Otherwise, for the weighted region, only Mv1 is stored. 2.2.4.4 Syntax Table, Semantics and Decoding Process for Merge Mode 7.3.5.1 General slice header syntax [Table 3] TIFF0007568352000005.tif57168 7.3.7.5 Coding Unit Syntax [Table 4] TIFF0007568352000007.tif87167 7.3.7.7 Merge Data Syntax [Table 5] TIFF0007568352000009.tif78167 7.4.6.1 General Slice Header Semantics six_minus_max_num_merge_cand specifies the maximum number of merge motion vector prediction (MVP) candidates supported in a slice, minus six. The maximum number of merge MVP candidates, MaxNumMergeCand, is derived as follows: MaxNumMergeCand=6-six_minus_max_num_merge_cand (7-57)
[0115] The value of MaxNumMergeCand is in the range of 1 to 6 (inclusive). five_minus_max_num_subblock_merge_cand specifies the maximum number of subblock-based merge motion vector prediction (MVP) candidates supported in a slice, minus five. If five_minus_max_num_subblock_merge_cand is not present, it is inferred to be equal to 5-sps_sbtmvp_enabled_flag. The maximum number of subblock-based merge MVP candidates, MaxNumSubblockMergeCand, is derived as follows: MaxNumSubblockMergeCand=5-five_minus_max_num_subblock_merge_cand (7-58)
[0116] The value of MaxNumSubblockMergeCand shall be in the range of 0 to 5 (inclusive). 7.4.8.5 Coding Unit Semantics pred_mode_flag equal to 0 specifies that the current coding unit is coded in inter prediction mode, and pred_mode_flag equal to 1 specifies that the current coding unit is coded in intra prediction mode.
[0117] If pred_mode_flag is not present, it is inferred as follows: If cbWidth is equal to 4 and cbHeight is equal to 4, pred_mode_flag is inferred to be equal to 1. Otherwise, pred_mode_flag is inferred to be equal to 1 when decoding an I slice, or 0 when decoding a P or B slice, respectively.
[0118] The variables CuPredMode[x][y] are derived as follows for x=x0..x0+cbWidth-1 and y=y0..y0+cbHeight-1: If pred_mode_flag is equal to 0, CuPredMode[x][y] is set equal to MODE_INTER. Otherwise (if pred_mode_flag is equal to 1), CuPredMode[x][y] is set equal to MODE_INTRA. pred_mode_ibc_flag equal to 1 specifies that the current coding unit is coded in IBC prediction mode, and pred_mode_ibc_flag equal to 0 specifies that the current coding unit is not coded in IBC prediction mode.
[0119] If pred_mode_ibc_flag is not present, it is inferred as follows: · If cu_skip_flag[x0][y0] is equal to 1, cbWidth is equal to 4, and cbHeight is equal to 4, pred_mode_ibc_flag is inferred to be 1. Otherwise, if both cbWidth and cbHeight are equal to 128, pred_mode_ibc_flag is inferred to be equal to 0. Otherwise, pred_mode_ibc_flag is presumed to be equal to the value of sps_ibc_enabled_flag when decoding an I slice, or to 0 when decoding a P or B slice.
[0120] If pred_mode_ibc_flag is equal to 1, then the variable CuPredMode[x][y] is set equal to MODE_IBC for x=x0..x0+cbWidth-1 and y=y0..y0+cbHeight-1. general_merge_flag[x0][y0] specifies whether the inter prediction parameters for the current coding unit are estimated from neighboring inter predicted partitions. The array indices x0, y0 specify the location (x0, y0) of the top-left luma sample of the coding block being considered relative to the top-left luma sample of the picture.
[0121] If general_merge_flag[x0][y0] is not present, it is inferred as follows: If cu_skip_flag[x0][y0] is equal to 1, general_merge_flag[x0][y0] is inferred to be equal to 1. Otherwise, general_merge_flag[x0][y0] is inferred to be 0. mvp_l0_flag[x0][y0] specifies the motion vector predictor index for list 0, where x0, y0 specify the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0122] If mvp_l0_flag[x0][y0] is not present, it is inferred to be equal to 0. mvp_l1_flag[x0][y0] has the same semantics as mvp_l0_flag, with l0 and list 0 being replaced by l1 and list 1, respectively. inter_pred_idc[x0][y0] specifies whether list 0, list 1 or bi-prediction is used for the current coding unit according to Tables 7-10. The array indices x0, y0 specify the position (x0,y0) of the top-left luma sample of the coding block being considered relative to the top-left luma sample of the picture. [Table 6]
[0123] If inter_pred_idc[x0][y0] is not present, it is inferred to be equal to PRED_L0. 7.4.8.7 Merge Data Semantics regular_merge_flag[x0][y0] equal to 1 specifies that the regular merge mode is used to generate inter prediction parameters for the current coding unit. The array indices x0, y0 specify the position (x0, y0) of the top-left luma sample of the coding block being considered relative to the top-left luma sample of the picture.
[0124] If regular_merge_flag[x0][y0] is not present, it is inferred as follows: · regular_merge_flag[x0][y0] is inferred to be equal to 1 if all of the following conditions are true: sps_mmvd_enabled_flag is equal to 0. general_merge_flag[x0][y0] is equal to 1. cbWidth*cbHeight is equal to 32. Otherwise, regular_merge_flag[x0][y0] is inferred to be equal to 0. mmvd_merge_flag[x0][y0] equal to 1 specifies that the merge mode using motion vector difference is used to generate inter prediction parameters for the current coding unit. The array indices x0, y0 specify the position (x0,y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0125] If mmvd_merge_flag[x0][y0] is not present, it is inferred as follows: mmvd_merge_flag[x0][y0] is inferred to be equal to 1 if all of the following conditions are true: sps_mmvd_enabled_flag is equal to 1. general_merge_flag[x0][y0] is equal to 1. cbWidth*cbHeight is equal to 32. regular_merge_flag[x0][y0] is equal to 0. Otherwise, mmvd_merge_flag[x0][y0] is inferred to be equal to 0. mmvd_cand_flag[x0][y0] specifies whether the first candidate (0) or the second candidate (1) in the merge candidate list is used with the motion vector difference derived from mmvd_distance_idx[x0][y0] and mmvd_direction_idx[x0][y0]. The array indices x0, y0 specify the position (x0,y0) of the top-left luma sample of the coding block being considered relative to the top-left luma sample of the picture.
[0126] If mmvd_cand_flag[x0][y0] is not present, it is inferred to be equal to 0. mmvd_distance_idx[x0][y0] specifies the index used to derive MmvdDistance[x0][y0], as specified in Table 7-12. [Table 7] mmvd_direction_idx[x0][y0] specifies the indexes used to derive MmvdSign[x0][y0], as specified in Table 7-13. The array indices x0, y0 specify the position (x0,y0) of the top-left luma sample of the coding block being considered relative to the top-left luma sample of the picture. [Table 8]
[0127] Both components of the merge plus MVD offset MmvdOffset[x0][y0] are derived as follows: MmvdOffset[x0][y0][0]=(MmvdDistance[x0][y0]<<2)*MmvdSign[x0][y0][0] (7-124) MmvdOffset[x0][y0][1]=(MmvdDistance[x0][y0]<<2)*MmvdSign[x0][y0][1] (7-125) merge_subblock_flag[x0][y0] specifies whether subblock-based inter prediction parameters for the current coding unit are estimated from neighboring blocks. The array indices x0, y0 specify the location (x0, y0) of the top-left luma sample of the coding block being considered relative to the top-left luma sample of the picture. If merge_subblock_flag[x0][y0] is not present, it is inferred to be equal to 0. merge_subblock_idx[x0][y0] specifies the merge candidate index in the subblock-based merging candidate list, where x0, y0 specify the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0128] If merge_subblock_idx[x0][y0] is not present, it is inferred to be equal to 0. ciip_flag[x0][y0] specifies whether a combination of inter-picture merging and intra-picture prediction is applied for the current coding unit. The array indices x0, y0 specify the position (x0,y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0129] If ciip_flag[x0][y0] is not present, it is inferred to be equal to 0.
[0130] If ciip_flag[x0][y0] is equal to 1, then the variable IntraPredModeY[x][y] is set equal to INTRA_PLANAR, where x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1.
[0131] The variable MergeTriangleFlag[x0][y0] specifies whether triangle shape based motion compensation is used to generate the prediction samples for the current coding unit when decoding a B slice, and is derived as follows: · MergeTriangleFlag[x0][y0] is set to 1 if all of the following conditions are met: sps_triangle_enabled_flag is equal to 1. slice_type is equal to B. general_merge_flag[x0][y0] is equal to 1. MaxNumTriangleMergeCand is 2 or greater. cbWidth*cbHeight is 64 or greater. regular_merge_flag[x0][y0] is equal to 0. mmvd_merge_flag[x0][y0] is equal to 0. merge_subblock_flag[x0][y0] is equal to 0. cip_flag[x0][y0] is equal to 0. Otherwise, MergeTriangleFlag[x0][y0] is set to 0. merge_triangle_split_dir[x0][y0] specifies the split direction for the merge triangle mode. The array indices x0, y0 specify the location (x0,y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0132] If merge_triangle_split_dir[x0][y0] is not present, it is inferred to be equal to 0. merge_triangle_idx0[x0][y0] specifies the first merge candidate index in the triangle shape based motion compensation candidate list, where x0, y0 specify the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0133] If merge_triangle_idx0[x0][y0] is not present, it is inferred to be equal to 0. merge_triangle_idx1[x0][y0] specifies the second merge candidate index in the triangle shape based motion compensation candidate list, where x0, y0 specify the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0134] If merge_triangle_idx1[x0][y0] is not present, it is inferred to be equal to 0. merge_idx[x0][y0] specifies the merge candidate index in the merge candidate list, where x0, y0 specify the position (x0, y0) of the top-left luma sample of the coding block being considered relative to the top-left luma sample of the picture.
[0135] If merge_idx[x0][y0] does not exist, it is inferred as follows: If mmvd_merge_flag[x0][y0] is equal to 1, merge_idx[x0][y0] is inferred to be equal to mmvd_cand_flag[x0][y0]. Otherwise (if mmvd_merge_flag[x0][y0] is equal to 0), merge_idx[x0][y0] is inferred to be equal to 0.
[0136] 2.2.4.4.1 Decoding Process The decoding process specified in JVET-N0340 is defined as follows:
[0137] 8.5.2.2 Luma Motion Vector Derivation Process for Merge Mode This process is called only if general_merge_flag[xCb][yCb] is equal to 1, where (xCb, yCb) specifies the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture.
[0138] The inputs to this process are: The luma position (xCb, yCb) of the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture, The variable cbWidth, which specifies the width of the current coding block in luma samples; Variable cbHeight that specifies the height of the current coding block in luma samples.
[0139] The output of this process is: Luma motion vectors mvL0[0][0] and mvL1[0][0] with 1 / 16 fractional sample precision, Reference indices refIdxL0 and refIdxL1, Prediction list usage flags predFlagL0[0][0] and predFlagL1[0][0], · Biprediction weight index bcwIdx, - Merge candidate list mergeCandList.
[0140] The bi-prediction weight index bcwIdx is set to 0.
[0141] The motion vectors mvL0[0][0] and mvL1[0][0], the reference indices refIdxL0 and refIdxL1, and the prediction usage flags predFlagL0[0][0] and predFlagL1[0][0] are derived by the following ordered steps: 1. The derivation process for spatial merging candidates from neighboring coding units specified in Section 8.5.2.3 is called with inputs luma coding block position (xCb, yCb), luma coding block width (cbWidth), luma coding block height (cbHeight), and outputs availability flags availableFlagA0, availableFlagA1, availableFlagB0, availableFlagB1, availableFlagB2, reference index (CR1, CCR2, CCR3, CCR4, CCR5, CCR6, CCR7, CCR8, CCR9, CCR10, CCR11, CCR12, CCR13, CCR14, CCR15, CCR16, CCR17, CCR18, CCR19, CCR20, CCR21, CCR22, CCR23, CCR24, CCR25, CCR26, CCR27, CCR28, CCR30, CCR31, CCR32, CCR33, CCR34, CCR35, CCR36, CCR37, CCR40, CCR41, CCR42, CCR43, CCR44, CCR55, CCR56, CCR67, CCR78, CCR81, CCR99, CCR100, CCR111, CCR122, CCR132, CCR140, CCR151, CCR162, CCR173, CCR184, CCR195, CCR196, CCR207, CCR218, CCR228, CCR231, CCR245, CCR252, CCR265, CCR331, CCR346, CCR353, CCR454, CCR46, CCR555, CCR67, CCR79, CCR80, CCR99, CCR101, CCR112, indexes refIdxLXA0, refIdxLXA1, refIdxLXB0, refIdxLXB1, refIdxLXB2, prediction list usage flags predFlagLXA0, predFlagLXA1, predFlagLXB0, predFlagLXB1, predFlagLXB2, motion vectors mvLXA0, mvLXA1, mvLXB0, mvLXB1, mvLXB2 (X is 0 or 1), and bi-prediction weight indexes bcwIdxA0, bcwIdxA1, bcwIdxB1, bcwIdxB2. 2. The reference index refIdxLXCol (X is 0 or 1) and the bi-prediction weight index bcwIdxCol for the temporal merge candidate Col are set to 0. 3. The derivation process for temporal luma motion vector prediction specified in section 8.5.2.11 is called with the luma position (xCb, yCb), the luma coding block width cbWidth, the luma coding block height cbHeight, and the variable refIdxL0Col as inputs, and the outputs are the availability flag availableFlagL0Col, the temporal motion vector mvL0Col. The variables availableFlagCol, predFlagL0Col, and predFlagL1Col are derived as follows: availableFlagCol=availableFlagL0Col (8-263) predFlagL0Col=availableFlagL0Col (8-264) predFlagL1Col=0 (8-265) 4. If slice_type is equal to B, the derivation process for temporal luma motion vector prediction specified in section 8.5.2.11 is called with the luma position (xCb, yCb), luma coding block width cbWidth, luma coding block height cbHeight, and variable refIdxL1Col as inputs, and the outputs are the availability flag availableFlagL1Col, and the temporal motion vector mvL1Col. The variables availableFlagCol and predFlagL1Col are derived as follows: availableFlagCol=availableFlagL0Col||availableFlagL1Col (8-266) predFlagL1Col=availableFlagL1Col (8-267) 5. The merge candidate list, mergeCandList, is constructed as follows:
number
[0142] 8.5.2.3 Derivation Process for Spatial Merge Candidates The inputs to this process are: The luma position (xCb, yCb) of the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture. The variable cbWidth, which specifies the width of the current coding block in luma samples; Variable cbHeight that specifies the height of the current coding block in luma samples.
[0143] The output of this process is the following, where X is either 0 or 1: Availability flags of neighboring coding units: availableFlagA0, availableFlagA1, availableFlagB0, availableFlagB1, availableFlagB2 · Reference indices of neighboring coding units refIdxLXA0, refIdxLXA1, refIdxLXB0, refIdxLXB1, refIdxLXB2 · Prediction list usage flags for nearby coding units: predFlagLXA0, predFlagLXA1, predFlagLXB0, predFlagLXB1, predFlagLXB2 -Motion vectors mvLXA0, mvLXA1, mvLXB0, mvLXB1, mvLXB2 with 1 / 16 fractional sample accuracy of the neighboring coding units Bi-prediction weight indices gbiIdxA0, gbiIdxA1, gbiIdxB0, gbiIdxB1, gbiIdxB2.
[0144] For the derivation of availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1, the following applies: The luma position (xNbA1,yNbA1) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbHeight-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbA1, yNbA1). The output is assigned to the block availability flag availableA1. The variables availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1 are derived as follows: If availableA1 is equal to FALSE, availableFlagA1 is set equal to 0, both components of mvLXA1 are set equal to 0, for X=0 or 1, refIdxLXA1 is set equal to -1, predFlagLXA1 is set equal to 0, and gbiIdxA1 is set equal to 0. Otherwise, availableFlagA1 is set equal to 1 and the following allocation is made: mvLXA1=MvLX[xNbA1][yNbA1] (8-294) refIdxLXA1=RefIdxLX[xNbA1][yNbA1] (8-295) predFlagLXA1=PredFlagLX[xNbA1][yNbA1] (8-296) gbiIdxA1=GbiIdx[xNbA1][yNbA1] (8-297)
[0145] For the derivation of availableFlagB1, refIdxLXB1, predFlagLXB1, and mvLXB1, the following applies: The luma position (xNbB1, yNbB1) in the neighboring luma coding block is set equal to (xCb+cbWidth-1, yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB1, yNbB1). The output is assigned to the block availability flag availableB1. The variables availableFlagB1, refIdxLXB1, predFlagLXB1, and mvLXB1 are derived as follows: If one or more of the following conditions are true, availableFlagB1 is set equal to 0, both components of mvLXB1 are set equal to 0, refIdxLXB1 is set equal to -1, predFlagLXB1 is set equal to 0, and gbiIdxB1 is set to 0, for X=0 or 1: · availableB1 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB1, yNbB1) have the same motion vector and the same reference index. Otherwise, availableFlagB1 is set equal to 1 and the following allocation is made: mvLXB1=MvLX[xNbB1][yNbB1] (8-298) refIdxLXB1=RefIdxLX[xNbB1][yNbB1] (8-299) predFlagLXB1=PredFlagLX[xNbB1][yNbB1] (8-300) gbiIdxB1=GbiIdx[xNbB1][yNbB1] (8-301)
[0146] For the derivation of availableFlagB0, refIdxLXB0, predFlagLXB0, and mvLXB0, the following applies: The luma position (xNbB0, yNbB0) in the neighboring luma coding block is set equal to (xCb+cbWidth, yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB0, yNbB0). The output is assigned to the block availability flag availableB0. The variables availableFlagB0, refIdxLXB0, predFlagLXB0, and mvLXB0 are derived as follows: If one or more of the following conditions are true, availableFlagB0 is set equal to 0, both components of mvLXB0 are set equal to 0, for X=0 or 1, refIdxLXB0 is set equal to -1, predFlagLXB0 is set equal to 0, and gbiIdxB0 is set to 0: · availableB0 is equal to false. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbB0, yNbB0) have the same motion vector and the same reference index. availableA1 is equal to true, luma positions (xNbA1,yNbA1) and (xNbB0,yNbB0) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. Otherwise, availableFlagB0 is set to 1 and the following allocation is made: mvLXB0=MvLX[xNbB0][yNbB0] (8-302) refIdxLXB0=RefIdxLX[xNbB0][yNbB0] (8-303) predFlagLXB0=PredFlagLX[xNbB0][yNbB0] (8-304) gbiIdxB0=GbiIdx[xNbB0][yNbB0] (8-305)
[0147] For the derivation of availableFlagA0, refIdxLXA0, predFlagLXA0 and mvLXA0 the following applies: The luma position (xNbA0,yNbA0) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbWidth). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbA0, yNbA0). The output is assigned to the block availability flag availableA0. The variables availableFlagA0, refIdxLXA0, predFlagLXA0, and mvLXA0 are derived as follows: If one or more of the following conditions are true, availableFlagA0 is set equal to 0, both components of mvLXA0 are set equal to 0, for X=0 or 1, refIdxLXA0 is set equal to -1, predFlagLXA0 is set equal to 0, and gbiIdxA0 is set to 0: · availableA0 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbA0, yNbA0) have the same motion vector and the same reference index. availableB1 is equal to true, luma positions (xNbB1,yNbB1) and (xNbA0,yNbA0) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. availableB0 is equal to true, luma positions (xNbB0,yNbB0) and (xNbA0,yNbA0) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. Otherwise, availableFlagA0 is set to 1 and the following allocation is made: mvLXA0=MvLX[xNbA0][yNbA0] (8-306) refIdxLXA0=RefIdxLX[xNbA0][yNbA0] (8-307) predFlagLXA0=PredFlagLX[xNbA0][yNbA0] (8-308) gbiIdxA0=GbiIdx[xNbA0][yNbA0] (8-309)
[0148] For the derivation of availableFlagB2, refIdxLXB2, predFlagLXB2 and mvLXB2 the following applies: The luma position (xNbB2,yNbB2) in the neighboring luma coding block is set equal to (xCb-1,yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB2, yNbB2) as input. The output is assigned to the block availability flag availableB2. The variables availableFlagB2, refIdxLXB2, predFlagLXB2, and mvLXB2 are derived as follows: If one or more of the following conditions are true, availableFlagB2 is set equal to 0, both components of mvLXB2 are set equal to 0, refIdxLXB2 is set equal to -1, predFlagLXB2 is set equal to 0, and gbiIdxB2 is set to 0, for X=0 or 1: · availableB2 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. availableB0 is equal to true, luma positions (xNbB0,yNbB0) and (xNbB2,yNbB2) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. availableA0 is equal to true, luma positions (xNbA0,yNbA0) and (xNbB2,yNbB2) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. availableFlagA0+availableFlagA1+availableFlagB0+availableFlagB1 is equal to 4 and merge_triangle_flag[xCb][yCb] is equal to 0. Otherwise, availableFlagB2 is set to 1 and the following allocation is made: mvLXB2=MvLX[xNbB2][yNbB2] (8-310) refIdxLXB2=RefIdxLX[xNbB2][yNbB2] (8-311) predFlagLXB2=PredFlagLX[xNbB2][yNbB2] (8-312) gbiIdxB2=GbiIdx[xNbB2][yNbB2] (8-313)
[0149] 2.2.5 MMVD In JVET-L0054, the Maximum Motion Vector Expression (UMVE, also known as MMVD) is proposed. UMVE is used for either skip or merge modes with the proposed motion vector representation.
[0150] UMVE reuses the same merge candidates that are included in the regular merge candidate list in VVC. Among the merge candidates, a base candidate can be selected and further extended by the proposed motion vector representation method.
[0151] UMVE provides a new motion vector difference (MVD) representation, in which the starting point, the motion magnitude and the motion direction are used to represent the MVD.
[0152] The proposed technique uses the merge candidate list as is, but only candidates with the default merge type (MRG_TYPE_DEFAULT_N) are considered for extending UMVE.
[0153] The base candidate index defines a starting point. It indicates the best candidate among the candidates in the list as follows: [Table 9]
[0154] If the number of base candidates is equal to 1, the base candidate IDX is not signaled. The distance index is the information of the magnitude of the movement.
[0155] The distance index indicates a predefined distance from the starting point information. The predefined distances are: [Table 10]
[0156] The direction index represents the direction of the MVD relative to the starting point. The direction index can represent the following four directions: [Table 11]
[0157] The UMVE flag is signaled immediately after sending the skip or merge flag. If the skip or merge flag is true, the UMVE flag is parsed. If the UMVE flag is equal to 1, the UMVE syntax is parsed. But if not, the affine flag is parsed. If the affine flag is equal to 1, it is affine mode. But if not, the skip / merge index is parsed for the VTM's skip / merge mode.
[0158] No additional line buffers due to UMVE candidates are needed, because the software skip / merge candidates are directly used as base candidates. With the input UMVE index, the complement of the MV is determined just before motion compensation. There is no need to maintain a long line buffer for this.
[0159] In the current general test conditions, either the first or second merge candidate in the merge candidate list can be selected as the base candidate.
[0160] UMVE is also known as Merge with MV Differences (MMVD).
[0161] 2.2.6 Combined Intra-Inter Prediction (CIIP) In JVET-L0100, multi-hypothesis prediction is proposed, where a combination of intra-prediction and inter-prediction is one way to generate multiple hypotheses.
[0162] When multi-hypothesis prediction is applied to improve intra modes, it combines one intra prediction and one merge index prediction. In merge CU, one flag is signaled for merge mode to select intra mode from intra candidate list when the flag is true. For luma component, intra candidate list is derived from only one intra prediction mode, namely planar mode. The weights applied to prediction blocks from intra and inter prediction are determined by the coded mode (intra or non-intra) of two neighboring blocks (A1 and B1).
[0163] 2.2.7 Merging for Sub-Block-Based Techniques It is proposed that all sub-block related motion candidates are put into a separate merge list, which is added to the regular merge list for non-sub-block merge candidates.
[0164] Sub-block related motion candidates are put into a separate merge list called the "sub-block merge candidate list".
[0165] In one example, the sub-block merging candidate list includes ATMVP candidates and affine merging candidates.
[0166] The subblock merge candidate list is filled with candidates in the following order: a.ATMVP candidates (which may or may not be available); b. Affine merge list (containing inherited and constructed affine candidates); c. Padding as a zero MV 4-parameter affine model.
[0167] 2.2.7.1.1 ATMVP (Sub-block Temporal Motion Vector Predictor, SbTMVP) The basic idea of ATMVP is to derive multiple sets of temporal motion vector predictors for a block. Each subblock is assigned a set of motion information. Once ATMVP merge candidates are generated, motion compensation is performed at the 8x8 level instead of the whole block level.
[0168] In the current design, ATMVP predicts motion vectors for sub-CUs within a CU in two steps, described in the following two subsections 2.2.7.1.1.1 and 2.2.7.1.1.2, respectively.
[0169] 2.2.7.1.1.1 Deriving Initialized Motion Vectors Let the initialized motion vector be denoted by tempMv. If block A1 is available and is not intra-coded (i.e., coded in inter or IBC mode), then the following applies to derive the initialized motion vector: tempMv is set equal to the motion vector of block A1 in list 1, denoted by mvL1A1, if all of the following conditions are true: The reference picture index in list 1 is available (is not equal to -1) and has the same POC value as the co-located picture (i.e., DiffPicOrderCnt(ColPic,RefPicList[1][refIdxL1A1]) is equal to 0), All reference pictures have no greater POC than the current picture (i.e., DiffPicOrderCnt(aPic,currentPic) is less than or equal to 0 for all pictures aPic in all reference picture lists of the current slice), · Current slice is equal to B slice, collocated_from_l0_flag is equal to 0. Otherwise, tempMv is set equal to the motion vector of block A1 from list 0, denoted by mvL0A1, if all of the following conditions are true: The reference picture index in list 0 is available (is not equal to -1), · Have the same POC value as the co-located picture (i.e., DiffPicOrderCnt(ColPic,RefPicList[0][refIdxL0A1]) equal to 0). Otherwise, the zero motion vector is used as the initialized MV.
[0170] The corresponding block (with the current block's rounded MV added to its center position, clipped to a range if necessary) is identified in the co-located picture signaled in the slice header along with the initialized motion vector.
[0171] If the block is inter-coded, proceed to the second step, otherwise the ATMVP candidate is set as not enabled.
[0172] 2.2.7.1.1.2 Sub-CU motion derivation The second step is to divide the current CU into sub-CUs, and obtain the motion information of each sub-CU from the blocks corresponding to each sub-CU in the co-located picture.
[0173] If the corresponding block for the sub-CU is coded in inter mode, the motion information is utilized to derive the final motion information for the current sub-CU by invoking, for the co-located MVs, a derivation process that is no different from that for the conventional TMVP process. If the corresponding block is predicted from target list X for uni- or bi-prediction, the motion vector is used; if it is predicted from list Y (Y=1-X) for uni- or bi-prediction and NoBackwardPredFlag is equal to 1, then the MV for list Y is used. Otherwise, no motion candidate is found.
[0174] If the block in the co-located picture identified by the initialized MV and the position of the current sub-CU is intra or IBC coded, or no motion candidate is found as described above, the following further applies.
[0175] Co-located Picture R col The motion vectors used to fetch the motion fields in MV colIn order to minimize the effect of MV scaling, MV col The MVs in the spatial candidate list used to derive MV are selected in the following way: if the reference picture of a candidate MV is a co-located picture, then this MV is selected and the MV is derived without scaling. col Otherwise, the MV with the closest reference picture to the co-located picture is used as the MV using scaling. col is selected to derive
[0176] The relevant decoding process for the co-located motion vector derivation process in JVET-N1001 is described as follows, where the parts relevant to ATMVP are highlighted in underlined font.
[0177] 8.5.2.12 Derivation process for co-located motion vectors The inputs to this process are: The variable currCb that specifies the current coding block, The variable colCb, which specifies the colocated coding block in the colocated picture specified by ColPic, A luma position (xColCb, yColCb) that specifies the top-left sample of the co-located luma coding block specified by colCb, relative to the top-left luma sample of the co-located picture specified by ColPic; Reference index refIdxLX, where X is 0 or 1, · Flag indicating sub-block temporal merging candidate sbFlag.
[0178] The output of this process is: Motion vector prediction mvLXCol with 1 / 16 fractional sample accuracy, · Availability flag availableFlagLXCol.
[0179] The variable currPic specifies the current picture.
[0180] The arrays predFlagL0Col[x][y], mvL0Col[x][y], and refIdxL0Col[x][y] are set equal to PredFlagL0[x][y], MvDmvrL0[x][y], and RefIdxL0[x][y], respectively, of the co-located picture specified by ColPic, and the arrays predFlagL1Col[x][y], mvL1Col[x][y], and refIdxL1Col[x][y] are set equal to PredFlagL1[x][y], MvDmvrL1[x][y], and RefIdxL1[x][y], respectively, of the co-located picture specified by ColPic.
[0181] The variables mvLXCol and availableFlagLXCol are derived as follows: · If colCb is coded in intra or IBC prediction mode, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0. Otherwise, the motion vectors mvCol, reference indices refIdxCol and reference list identifier listCol are derived as follows: If sbFlag is equal to 0, availableFlagLXCol is set equal to 1 and the following applies: · If predFlagL0Col[xColCb][yColCb] is equal to 0, then mvCol, refIdxCol, and listCol are set equal to mvL1Col[xColCb][yColCb], refIdxL1Col[xColCb][yColCb], and L1, respectively. Otherwise, if predFlagL0Col[xColCb][yColCb] is equal to 1 and predFlagL1Col[xColCb][yColCb] is equal to 0, then mvCol, refIdxCol and listCol are set equal to mvL0Col[xColCb][yColCb], refIdxL0Col[xColCb][yColCb] and L0, respectively. Otherwise (if predFlagL0Col[xColCb][yColCb] is equal to 1 and predFlagL1Col[xColCb][yColCb] is equal to 1), the following assignments are made: If NoBackwardPredFlag is equal to 1, then mvCol, refIdxCol, and listCol are set equal to mvLXCol[xColCb][yColCb], refIdxLXCol[xColCb][yColCb], and LX, respectively. Otherwise, mvCol, refIdxCol, and listCol are set equal to mvLNCol[xColCb][yColCb], refIdxLNCol[xColCb][yColCb], and LN, respectively, where N is the value of collocated_from_l0_flag. Otherwise (sbFlag equals 1), the following applies: If PredFlagLXCol[xColCb][yColCb] is equal to 1, then mvCol, refIdxCol, and listCol are set equal to mvLXCol[xColCb][yColCb], refIdxLXCol[xColCb][yColCb], and LX, respectively, and availableFlagLXCol is set equal to 1. Otherwise (PredFlagLXCol[xColCb][yColCb] is equal to 0), the following applies: ·DiffPicOrderCnt(aPic,currPic) is less than or equal to 0 for all picture aPic in all reference picture lists of the current slice, PredFlagLYCol[xColCb][YColCb] is equal to 1, mvCol, refIdxCol and listCol are set to mvLYCol[xColCb][yColCb], refIdxLYCol[xColCb][yColCb] and LY respectively, where Y is equal to !X and X is the value of X at which this process is invoked. availableFlagLXCol is set to 1. · Both components of mvLXCol are set to 0 and availableFlagLXCol is set equal to 0. If availableFlagLXCol is equal to TRUE, mvLXCol and availableFlagLXCol are derived as follows: If LongTermRefPic(currPic, currCb, refIdxLX, LX) is equal to LongTermRefPic(ColPic, colCb, refIdxCol, listCol), then both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0. Otherwise, the variable availableFlagLXCol is set equal to 1, refPicList[listCol][refIdxCol] is set to the picture with reference index refIdxCol in the reference picture list listCol of the slice containing the coding block colCb in the co-located picture specified by ColPic, and the following applies: colPocDiff=DiffPicOrderCnt(ColPic,refPicList[listCol][refIdxCol]) (8-402) currPocDiff=DiffPicOrderCnt(currPic,RefPicList[X][refIdxLX]) (8-403) · The temporal motion buffer compression process for co-located motion vectors specified in Section 8.5.2.15 is called with mvCol as input and modified mvCol as output. If RefPicList[X][refIdxLX] is a long-term reference picture or colPocDiff is equal to currPocDiff, mvLXCol is derived as follows: mvLXCol=mvCol (8-404) Otherwise, mvXCol is derived as a scaled version of the motion vector mvCol as follows: tx=(16384+(Abs(td)>>1)) / td (8-405) distScaleFactor=Clip3(-4096,4095,(tb*tx+32)>>6) (8-406) mvLXCol=Clip3(-131072,131071,(distScaleFactor*mvCol+ 128-(distScaleFactor*mvCol>=0))>>8)) (8-407) where td and tb are derived as follows: td=Clip3(-128,127,colPocDiff) (8-408) tb=Clip3(-128,127,currPocDiff) (8-409)
[0182] 2.2.8 Normal Inter Mode (AMVP) 2.2.8.1 AMVP Motion Candidate List Similar to the AMVP design in HEVC, up to two AMVP candidates may be derived. However, HMVP candidates may be added after the TMVP candidates. The HMVP candidates in the HMVP table may be traversed in ascending order of index (i.e., starting from index equal to 0, which is the oldest), and up to four HMVP candidates may be checked to find out whether their reference picture is the same as the target reference picture (i.e., the same POC value).
[0183] 2.2.8.2 AMVR In HEVC, when use_integer_mv_flag is equal to 0 in the slice header, the motion vector differential (MVD) (between the PU's motion vector and the predicted motion vector) is signaled in units of quarter luma samples. In VVC, locally adaptive motion vector resolution (AMVR) is introduced. In VVC, MVD can be coded in units of quarter luma samples, integer luma samples, or 4 luma samples (i.e., quarter pixel, one pixel, four pixel). MVD resolution is controlled at the coding unit (CU) level, and the MVD resolution flag is conditionally signaled for each CU that has at least one nonzero MVD component.
[0184] For a CU with at least one nonzero MVD component, a first flag is signaled to indicate whether quarter luma sample MV precision is used in 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.
[0185] If the first MVD resolution flag of a CU is zero or not coded for a CU (meaning all MVDs in that CU are zero), then a quarter luma sample MV resolution is used for that CU. If the CU uses an integer luma sample MV precision or a 4 luma sample MV precision, the MVPs in the AMVP candidate list for the CU are rounded to the corresponding precision.
[0186] 2.2.8.3 Symmetric motion vector differential in JVET-N1001-v2 In JVET-N1001-v2, symmetric motion vector difference (SMVD) is applied for motion information coding in bi-prediction.
[0187] First, at the slice level, the variables RefIdxSymL0 and RefIdxSymL1, which indicate the reference picture indices of lists 0 / 1 used in SMVD mode, respectively, are derived using the following steps specified in N1001-v2: If at least one of these two variables is -1, SMVD mode is disabled.
[0188] 2.2.9 Refining the motion information 2.2.9.1 Decoder-side Motion Vector Refinement (DMVR) In bi-predictive operation, for prediction of one block region, two prediction blocks formed using the motion vectors (MVs) of list0 and list1, respectively, are combined to form a single prediction signal. In the decoder-side motion vector refinement (DMVR) method, the two motion vectors of bi-prediction are further refined.
[0189] For DMVR in VVC, MVD mirroring between list0 and list1 is assumed as shown in Fig. 19, and bilateral matching is performed to refine the MVD, i.e., to find the best MVD among several MVD candidates. The MVs for two reference picture lists are denoted by MVL0(L0X,L0Y) and MVL1(L1X,L1Y). The MVD denoted by (MvdX,MvdY) for list0 that can minimize a cost function (e.g., SAD) is defined as the best MVD. The SAD function is defined as the SAD between the reference block of list0 derived using the motion vector (L0X+MvdX,L0Y+MvdY) in the list0 reference picture and the reference block of list1 derived using the motion vector (L1X-MvdX,L1Y-MvdY) in the list1 reference picture.
[0190] The motion vector refinement process can be repeated twice. In each iteration, up to six MVDs (integer pixel accuracy) may be checked in two steps, as shown in FIG. 20. In the first step, MVDs (0,0), (-1,0), (1,0), (0,-1), (0,1) are checked. In the second step, one of MVDs (-1,-1), (-1,1), (1,-1) or (1,1) may be selected and checked further. Let the function Sad(x,y) return the SAD value of MVD(x,y). The MVD checked in the second step, denoted as (MvdX,MvdY), is determined as follows: MvdX=-1; MvdY=-1; If(Sad(1,0) <Sad(-1,0)) MvdX=1; If(Sad(0,1) <Sad(0,-1)) MvdY=1;
[0191] In the first iteration, the starting point is the signaled MV, and in the second iteration, the starting point is the signaled MV plus the best MVD selected in the first iteration. DMVR is applied only when one reference picture is a preceding picture and the other reference picture is a succeeding picture, and the two reference pictures have the same picture order count distance from the current picture.
[0192] To further simplify the DMVR process, JVET-M0147 proposed some changes to the JEM design. More specifically, the adopted DMVR design for VTM-4.0 (scheduled for release soon) has the following key features: ·Early termination if the (0,0) position SAD between list0 and list1 is less than a threshold. ·Early termination if the SAD between list0 and list1 is zero for any position. Block size for DMVR: W*H>=64 && H>=8, where W and H are the width and height of the block. For DMVR with CU size > 16x16, divide the CU into multiple 16x16 sub-blocks. If only the width or height of a CU is greater than 16, it is split only vertically or horizontally. Reference block size (W+7)*(H+7) (for luma). 25-point SAD-based integer pixel search (i.e. (±)2 refinement search range, single stage) Bilinear Interpolation Based DMVR. Sub-pixel refinement based on the "Parametric error surface equation". This procedure is performed only if, in the last MV refinement iteration, the smallest SAD cost is not equal to zero and the best MVD is (0,0). · Luma / chroma MC with reference block padding (if needed). · Refined MV used for MC and TMVP only.
[0193] 2.2.9.1.1 Using DMVR The DMVR may be enabled if all of the following conditions are true: · The DMVR enabled flag in the SPS (i.e. sps_dmvr_enabled_flag) is equal to 1 The TPM flag, the inter-affine flag, the sub-block merge flag (ATMVP or affine merge), and the MMVD flag are all equal to 0. ·Merge·flag equals 1 The current block is bi-predicted and the POC distance between the current picture and the reference picture in list 1 is equal to the POC distance between the reference picture in list 0 and the current picture. · Current CU height is 8 or more Number of luma samples (CU width * height) is at least 64.
[0194] 2.2.9.1.2 "Parameter Error Surface Formula" Based on Subpixel Refinement The method is summarized as follows: 1. The parametric error surface fit is calculated only if the center position is the best cost position in a given iteration. 2. The central location cost and the costs at (-1,0), (0,-1), (1,0) and (0,1) positions from the center are E(x,y)=A(x-x0) 2 +B(y-y0) 2 +C is used to fit a two-dimensional parabolic error surface of the form, where (x0,y0) corresponds to the location of minimum cost and C corresponds to the minimum cost value. By solving five equations in five unknowns, (x0,y0) is calculated as follows: x0=(E(-1,0)-E(1,0)) / (2(E(-1,0)+E(1,0)-2E(0,0))) y0=(E(0,-1)-E(0,1)) / (2(E(0,-1)+E(0,1)-2E(0,0))) (x0,y0) can be calculated to any required sub-pixel precision by adjusting the precision with which the division is performed (i.e. how many bits of the quotient are calculated). For 1 / 16 pixel precision, only 4 bits of the quotient absolute value need to be calculated, which lends itself to a fast shifted subtraction based implementation of the two divisions required per CU. The calculated (x0,y0) is added to the integer distance refinement MV to get the sub-pixel precision refinement delta MV.
[0195] 2.3 Intra-block copy The HEVC Screen Content Coding Extension (HEVC-SCC) and the current VVC Test Model (VTM-4.0) employ Intra Block Copy (IBC), also known as current picture reference. IBC extends the concept of motion compensation from inter-frame coding to intra-frame coding. As shown in Figure 21, when IBC is applied, the current block is predicted by a reference block in the same picture. Samples in the reference block must already be reconstructed before the current block is coded or decoded. IBC is not very efficient for most camera-captured sequences, but shows significant coding gains for screen content. The reason is that there are many repeating patterns, such as icons and text characters, in screen content pictures. IBC can effectively remove redundancy between these repeating patterns. In HEVC-SCC, an inter-coded coding unit (CU) can apply IBC if it selects the current picture as its reference picture. In this case, the MV is renamed to a block vector (BV), and the BV always has integer pixel precision. To be compatible with the Main Profile HEVC, the current picture is marked as a "long-term" reference picture in the Decoded Picture Buffer (DPB). It should be noted that in the Multiview / 3D Video Coding standard, inter-view reference pictures are also marked as "long-term" reference pictures.
[0196] After traversing the BV to find the reference block, a prediction can be generated by copying the reference block. The residual is obtained by subtracting the reference pixel from the original signal. Then, transform and quantization can be applied as in other coding modes.
[0197] However, if the reference block is outside the picture, or overlaps with the current block, or is outside the reconstructed area, or is outside the valid area constrained by some constraints, some or all pixel values are undefined. Basically, there are two solutions to handle such problems. One is to not allow such situations, for example in bitstream conformance. The other is to apply padding for those undefined pixel values. The following sub-sessions will explain these solutions in detail.
[0198] 2.3.1 IBC in the VVC test model (VTM4.0) In the current VVC test model, i.e., VTM-4.0 design, the entire reference block should be with the current coding tree unit (CTU) and not overlap with the current block. Therefore, there is no need to pad the reference block or the prediction block. The IBC flag is coded as the prediction mode of the current CU. Thus, for each CU, there are a total of three prediction modes: MODE_INTRA, MODE_INTER, and MODE_IBC.
[0199] 2.3.1.1 IBC Merge Mode In IBC merge mode, indices that point to entries in the IBC merge candidate list are parsed from the bitstream. The construction of the IBC merge list can be summarized as the following sequence of steps: Step 1: Derive spatial candidates Step 2: Inserting HMVP candidates · Step 3: Insertion of pairwise average candidates.
[0200] In the derivation of spatial merge candidates, up to four merge candidates are selected from among the candidates located at positions indicated by A1, B1, B0, A0 and B2 as shown in FIG. 2. The order of derivation is A1, B1, B0, A0, B2. Position B2 is considered only if any PU at positions A1, B1, B0, A0 is not available (e.g., because it belongs to another slice or tile) or is not coded in IBC mode. After the candidate at position A1 is added, the insertion of the remaining candidates is subjected to a redundancy check that ensures that candidates with the same motion information are removed from the list, improving the coding efficiency.
[0201] If after the insertion of the spatial candidate, the size of the IBC merge list is still smaller than the maximum IBC merge list size, an IBC candidate from the HMVP table may be inserted. When inserting an HMVP candidate, a redundancy check is performed.
[0202] Finally, the pairwise average candidates are inserted into the IBC merge list.
[0203] If the reference block identified by the merge candidate is outside the picture, or overlaps with the current block, or is outside the reconstructed region, or is outside the valid region constrained by some constraint, the merge candidate is called an invalid merge candidate.
[0204] Note that it is possible for invalid merge candidates to be inserted into the IBC merge list.
[0205] 2.3.1.2 IBC AMVP mode In IBC AMVP mode, an AMVP index that points to an entry in an IBC AMVP list is parsed from the bitstream. The construction of an IBC AMVP list can be summarized as following a series of steps: Step 1: Derive spatial candidates ○Check A0, A1 until a usable candidate is found. ○Check B0, B1, B2 until a usable candidate is found. Step 2: Inserting HMVP candidates · Step 3: Insertion of zero candidates.
[0206] If, after the insertion of the spatial candidates, the IBC AMVP list size is still smaller than the maximum IBC AMVP list size, then IBC candidates from the HMVP table may be inserted.
[0207] Finally, the zero candidate is inserted into the IBC AMVP list.
[0208] 2.3.1.3 Chroma IBC Mode In current VVC, motion compensation in chroma IBC mode is performed at subblock level. A chroma block is divided into several subblocks. Each subblock determines whether its corresponding luma block has a block vector and if so, its validity. Current VTM has an encoder constraint, and chroma IBC mode is tested if all subblocks in the current chroma CU have valid luma block vectors. For example, in YUV 420 video, the chroma blocks are N×M, so the co-located luma region is 2N×2M. The subblock size of a chroma block is 2×2. There are several steps to perform the chroma mv derivation and then the block copy process. 1) A chroma block is first divided into (N>>1)*(M>>1) sub-blocks. 2) For each sub-block with top-left sample at (x,y), fetch the corresponding luma block that covers the same top-left sample at (2x,2y). 3) The encoder checks the block vector (bv) of the fetched luma block. If any of the following conditions are met, bv is considered invalid: a. The corresponding luma block bv does not exist. b. The predicted block identified by bv has not yet been reconstructed. c. The predicted block identified by bv overlaps partially or completely with the current block. 4) The chroma motion vector of a subblock is set to the motion vector of the corresponding luma subblock.
[0209] When all sub-blocks find a valid bv, the IBC mode is allowed in the encoder.
[0210] 2.3.2 Single BV List for IBC (VTM5.0) JVET-N0843 has been adopted for VVC. In JVET-N0843, the BV predictors for merged and AMVP modes in IBC share a common predictor list. This consists of the following elements: Two spatially adjacent locations (A1 and B1 in Figure 2) 5 HMVP entries · Default zero vector
[0211] The number of candidates in the list is controlled by a variable derived from the slice header. For merge mode, up to the first six entries in this list are used; for AMVP mode, the first two entries in this list are used. This list also complies with the shared merge list space requirement (shares the same list within an SMR).
[0212] In addition to the BV predictor candidate list mentioned above, JVET-N0843 also proposed to simplify the pruning operation between HMVP candidates and existing merging candidates (A1, B1). The simplification only involves comparing the first HMVP candidate with the spatial merging candidate(s), so there are at most two pruning operations.
[0213] 3. Problem The current design of merge mode has the following problems: 1. The normal merge list construction process relies on the use of the TPM for the current block. For TPM-coded blocks, full pruning is applied among spatial merging candidates. b. For non-TPM coded blocks, partial pruning is applied among spatial merging candidates. 2. According to the current design, all merge related tools (including IBC merge, normal merge, MMVD, subblock merge, CIIP, TPM) are signaled by one flag named general_merge_flag. However, it may be signaled or derived that when this flag is true, all merge related tools are disabled. It is unclear how to handle this case. Also, it is not possible to turn off the merge mode, i.e. the maximum number of merge candidates is not equal to 0. However, for high throughput encoders / decoders, it may be necessary to force the disabling of the merge mode. 3. The decision of initialized MVs for ATMVP process depends on slice type, POC values of all reference pictures, collocated_from_10_flag, etc., which slows down the throughput of MVs. 4. The derivation process of co-located MVs relies on the use of sub-blocking techniques such as the traditional TMVP process or the ATMVP process, which requires additional logic. 5. For sub-CUs in an ATMVP coded block, even if their corresponding co-located blocks are inter-coded, the motion information of the sub-CUs may not be derived from the corresponding co-located blocks and may be filled with other motion information. Such a design is not optimal for both coding efficiency and throughput. 6. The HEVC specification defines the availability of one neighboring block in the current or reference picture based on whether the block is constructed or in a different CTU row / slice, etc. However, in VVC, multiple coding methods are introduced. A different definition of block availability may need to be defined. 7. JVET-O0545 proposes to signal an indication of the maximum transform block size by sending sps_sbt_max_size_64_flag. sps_sbt_max_size_64_flag equal to 0 specifies that the maximum CU width and height for allowing sub-block transforms is 32 luma samples. sps_sbt_max_size_64_flag equal to 1 specifies that the maximum CU width and height for allowing sub-block transforms is 64 luma samples. MaxSbtSize=sps_sbt_max_size_64_flag ? 64:32 (7 31) To support a maximum transform size (indicated by MaxTransformSize) smaller than 64, the derivation of MaxSbtSize is modified as follows: MaxSbtSize=min(MaxTransformSize, sps_sbt_max_size_64_flag ? 64:32) 8. The adaptive loop filter (ALF) coefficients are constrained to a fixed range. For example, AlfCoeff C The chroma ALF filter coefficients and AlfCoeff are represented by L The luma ALF filter coefficients, denoted by x, must be in the range of -27 to 27-1, inclusive. Such constraints are based on the assumption of 8-bit depth. 9. The predictor direction of the ALF filter is signaled as follows: [Table 12] It can be seen that such a method needs to parse multiple syntax elements to determine whether to use a filter from the APS configured filters or from the fixed filters. 10. Merge related coding tools include: [Table 13] TIFF0007568352000019.tif122166
[0214] Note that sub-block merging related syntax elements are signaled first, followed by a normal merging mode indication (which controls both MMVP and traditional merging such as HEVC). If such an indication is false, an additional bit may be further signaled to indicate whether it is CIIP mode or TPM mode.
[0215] However, such information does not take into account the case where the number of allowed TPM candidates is less than two.
[0216] 4. Example Techniques and Implementations The detailed list below should be considered as examples to illustrate the general concept. These embodiments should not be construed in a narrow sense. Moreover, these techniques can be combined in any manner.
[0217] Neighboring blocks, designated as A0, A1, B0, B1, B2, etc., are shown in FIG. 1. The normal merge list construction process for conventional merge and TPM coded blocks is now decoupled from the coding method of the block. In one example, when TPM is applied to a block, partial pruning is applied to spatial merge candidates. i. In one example, whether two candidates are compared to each other is determined in the same manner as used for non-TPM merge coding blocks. ii. In one example, B1 is compared to A1, B0 is compared to B1, A0 is compared to A1, and B2 is compared to B1 and A1. iii. Alternatively, if TPM is not used for a block, full pruning is still applied to the spatial merge candidates. iv. Alternatively or additionally, full pruning may be applied to some specific block dimensions. 1. For example, full pruning may be applied to block dimensions where TPM is permitted. 2. For example, if the block size contains less than M*H samples, e.g., 16 or 32 or 64 luma samples, full pruning is not allowed. 3. For example, if block width > th1 or ≥ th1 and / or block height > th2 or ≥ th2, full pruning is not allowed. b. In one example, whether to check B2 is based on the number of available merge candidates before checking B2 when the TPM applies to a block. i. Alternatively, B2 is always checked regardless of the number of merging candidates available for the non-TPM merging coding block. 2. The initialized MV used to identify a block to determine whether ATMVP is available may simply rely on the list X information of spatial neighboring blocks (e.g., A1), where X is set to where the co-located picture used for temporal motion vector prediction is derived from (e.g., collocated_from_l0_flag). Alternatively, X is determined according to whether all the reference pictures in all the reference lists have a smaller POC value or a not larger POC value compared to the current picture. In one example, if it is true then X is set to 1. Otherwise X is set to 0. b. Alternatively, if a reference picture associated with list X of spatial neighboring blocks (e.g., A1) is available and has the same POC value as the co-located picture, the initialized MV is set to the MV associated with list X of spatial neighboring blocks. Otherwise, the default MV (e.g., (0,0)) is used. c. Alternatively, the motion information stored in the HMVP table may be used as the initialized MV in the ATMVP. i. For example, the first available motion information stored in the HMVP table may be used. ii. For example, the first available motion information stored in the HMVP table associated with a reference picture (eg, a co-located picture) may be used. d. Alternatively, X is a fixed number such as 0 or 1. 3. The derivation processes of co-located MVs used for sub-block based coding tools and non-sub-block based coding tools may be aligned, i.e., the process is independent of the use of a specific coding tool. a. In one example, all or part of the co-located MV derivation process for a sub-block based coding tool is aligned with that used for TMVP. i. In one example, if it is uni-predictive from list Y, the motion vectors of list Y are scaled to the target reference picture list X; ii. In one example, if it is bi-predictive and the target reference picture list is X, then the motion vectors of list Y are scaled to the target reference picture list X, where Y may be determined according to the following rules: If none of the reference pictures have a larger POC value or all of the reference pictures have a smaller POC value compared to the current picture, Y is set to X. Otherwise, Y is set equal to collocated_from_10_flag. b. In one example, all or part of the co-located MV derivation process for TMVP is aligned with that used for the sub-block based coding tool. 4. The motion candidate list construction process (e.g., normal merge list, IBC merge / AMVP list) may depend on block dimensions and / or merge share conditions. Let the width of a block be W and the height be H. Condition C may depend on W and H, and / or merge share conditions. In one example, if condition C is satisfied, the derivation of spatial merging candidates is skipped. b. In one example, if condition C is satisfied, the derivation of HMVP candidates is skipped. c. In one example, if condition C is satisfied, the derivation of pairwise merging candidates is skipped. d. In one example, if condition C is met, the number of maximum pruning operations is reduced or set to 0. e. In one example, condition C is met when W*H is less than or not greater than a threshold (eg, 64 or 32). f. In one example, condition C is met when W and / or H is less than or not greater than a threshold value (eg, 4 or 8). g. In one example, condition C is met if the current block is under a shared node. 5. The maximum number of allowed regular merging candidates / maximum number of allowed IBC candidates / maximum number of allowed sub-block merging candidates MAY be set to 0, thus certain tools may be disabled and the associated syntax elements do not need to be signaled. In one example, a coding tool that relies on a normal merge list may be disabled if the maximum number of allowed regular merge candidates is equal to 0. The coding tool may be normal merge, MMVD, CIIP, TPM, DMVR, etc. b. In one example, if the maximum number of IBC candidates allowed is equal to 0, IBC AMVP and / or IBC merging may be disabled. c. In one example, if the maximum number of sub-block based merging candidates allowed is equal to 0, sub-block based techniques, e.g., ATMVP, affine merging mode may be disabled. d. If a tool is disabled according to the maximum number of allowed candidates, the signalling of the associated syntax element is skipped. i. Alternatively or additionally, the signaling of the merge-related tools may need to check whether the maximum number of allowed candidates is not equal to 0. ii. Alternatively or additionally, the invocation process for the merge-related tool may need to check whether the maximum number of candidates allowed is not equal to 0. 6. Signaling of general_merge_flag and / or cu_skip_flag may depend on the maximum number of normal merge candidates allowed / maximum number of IBC candidates allowed / maximum number of sub-block merge candidates allowed / use of merge-related coding tools. In one example, the merge related coding tools may include IBC merge, normal merge, MMVD, subblock merge, CIIP, TPM, DMVR, etc. b. In one example, if the maximum number of allowed normal merge candidates, the maximum number of allowed IBC merge / AMVP candidates, and the maximum number of allowed sub-block merge candidates are equal to 0, then general_merge_flag and / or cu_skip_flag are not signaled. i. Alternatively or in addition, general_merge_flag and / or cu_skip_flag are inferred to be 0. 7. A conforming bitstream shall satisfy that if the current block's general_merge_flag or cu_skip_flag is true, then at least one of the merge-related tools, including IBC merge, regular merge, MMVD, sub-block merge, CIIP, TPM, DMVR, etc., is enabled. 8. A conforming bitstream shall satisfy that if (general_merge_flag or cu_skip_flag) of the current block is true and IBC is disabled for one slice / tile / brick / picture / current block, then at least one of the merge related tools including general merge, MMVD, sub-block merge, CIIP, TPM, DMVR, etc. is enabled. 9. A conforming bitstream shall satisfy that if (general_merge_flag or cu_skip_flag) of the current block is true and MMVD is disabled for one slice / tile / brick / picture / current block, then at least one of the merge related tools including IBC merge, regular merge, sub-block merge, CIIP, and TPM shall be enabled. 10. A conforming bitstream shall satisfy that if (general_merge_flag or cu_skip_flag) of the current block is true and CIIP is disabled for one slice / tile / brick / picture / current block, then at least one of the merge related tools including IBC merge, regular merge, MMVD, sub-block merge, and TPM are enabled. 11. A conforming bitstream shall satisfy that if (general_merge_flag or cu_skip_flag) of the current block is true and TPM is disabled for one slice / tile / brick / picture / current block, then at least one of the merge related tools including IBC merge, regular merge, MMVD, sub-block merge, and CIIP shall be enabled. 12. A conforming bitstream shall satisfy that at least one of the enabled merge-related tools, including IBC merge, normal merge, MMVD, subblock merge, CIIP, and TPM, is applied when general_merge_flag or cu_skip_flag of the current block is true. When coding the first block, the check of the availability of the second block may depend on the coded mode information of the first block. For example, if different modes are used in the first and second blocks, the second block may be treated as unavailable regardless of other condition check results (e.g., constructed). In one example, if a first block is inter-coded and a second block is an IBC code, the second block is marked as unavailable. b. In one example, if a first block is IBC coded and a second block is Inter coded, the second block is marked as unavailable. c. If the second is marked as unavailable, then the associated coded information (eg, motion information) is prohibited from being utilized to code the first block. 13. The signalling of syntax elements unrelated to TPM side information may be subject to a conditional check on the number of allowed TPM candidates. In one example, signaling of CIIP-related syntax elements (eg, ciip_flag) may depend on whether the number of allowed TPM candidates is greater than a threshold K. b. In one example, signaling of a regular merge mode flag (eg, regular_merge_flag) may depend on whether the number of allowed TPM candidates is greater than a threshold K. c. In one example, K is set to 1. d. Alternatively or additionally, if the number of allowed TPM candidates is less than or equal to a threshold K, certain syntax elements may not be signaled. 14. A conforming bitstream satisfies that the maximum transform block size does not exceed the maximum CTU size. Alternatively, an indication of the maximum transform block size may be conditionally signaled under the maximum CTU size, or vice versa. i. In one example, if the maximum CTU size is less than or equal to M×N (e.g., M=N=32), then there is no need to signal an indication of the maximum transform block size. 15. The range of the ALF filter coefficients may depend on the sample depth (eg, internal bit depth or input bit depth) rather than being a fixed range. 16. One flag may be directly signaled to indicate whether to use an ALF filter in the ALF APS versus a fixed filter. Such a flag may also be signaled under the condition that the number of available ALF APS is greater than 0. b. Alternatively, and in addition, if an ALF filter from an APS is signaled, one additional syntax may be further signaled to indicate the index of the ALF APS. Such index may be coded using fixed length coding, unary coding, truncated unary coding, truncated binary coding, or exponential-Golomb coding.
[0218] 5. Embodiments The proposed changes to the latest VVC Working Draft (JVET-N1001_v7) are as follows. The text to be deleted is underlined and marked [[ ]]. The new additions are highlighted in bold.
[0219] 5.1 Embodiment #1 This embodiment aligns the pruning process for non-TPM coded blocks with the pruning process for TPM coded blocks, ie, a full pruning operation for non-TPM coded blocks.
[0220] 8.5.2.3 Derivation Process for Spatial Merge Candidates The inputs to this process are: The luma position (xCb, yCb) of the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture. The variable cbWidth, which specifies the width of the current coding block in luma samples; Variable cbHeight that specifies the height of the current coding block in luma samples.
[0221] The output of this process is the following, where X is either 0 or 1: Availability flags of neighboring coding units: availableFlagA0, availableFlagA1, availableFlagB0, availableFlagB1, availableFlagB2 · Reference indices of neighboring coding units refIdxLXA0, refIdxLXA1, refIdxLXB0, refIdxLXB1, refIdxLXB2 · Prediction list usage flags for nearby coding units: predFlagLXA0, predFlagLXA1, predFlagLXB0, predFlagLXB1, predFlagLXB2 -Motion vectors mvLXA0, mvLXA1, mvLXB0, mvLXB1, mvLXB2 with 1 / 16 fractional sample accuracy of the neighboring coding units Bi-prediction weight indices gbiIdxA0, gbiIdxA1, gbiIdxB0, gbiIdxB1, gbiIdxB2.
[0222] For the derivation of availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1, the following applies: The luma position (xNbA1,yNbA1) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbHeight-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbA1, yNbA1). The output is assigned to the block availability flag availableA1. The variables availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1 are derived as follows: If availableA1 is equal to FALSE, availableFlagA1 is set equal to 0, both components of mvLXA1 are set equal to 0, for X=0 or 1, refIdxLXA1 is set equal to -1, predFlagLXA1 is set equal to 0, and gbiIdxA1 is set equal to 0. Otherwise, availableFlagA1 is set equal to 1 and the following allocation is made: mvLXA1=MvLX[xNbA1][yNbA1] (8-294) refIdxLXA1=RefIdxLX[xNbA1][yNbA1] (8-295) predFlagLXA1=PredFlagLX[xNbA1][yNbA1] (8-296) gbiIdxA1=GbiIdx[xNbA1][yNbA1] (8-297)
[0223] For the derivation of availableFlagB1, refIdxLXB1, predFlagLXB1, and mvLXB1, the following applies: The luma position (xNbB1, yNbB1) in the neighboring luma coding block is set equal to (xCb+cbWidth-1, yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB1, yNbB1). The output is assigned to the block availability flag availableB1. The variables availableFlagB1, refIdxLXB1, predFlagLXB1, and mvLXB1 are derived as follows: If one or more of the following conditions are true, availableFlagB1 is set equal to 0, both components of mvLXB1 are set equal to 0, refIdxLXB1 is set equal to -1, predFlagLXB1 is set equal to 0, and gbiIdxB1 is set to 0, for X=0 or 1: · availableB1 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB1, yNbB1) have the same motion vector and the same reference index. Otherwise, availableFlagB1 is set equal to 1 and the following allocation is made: mvLXB1=MvLX[xNbB1][yNbB1] (8-298) refIdxLXB1=RefIdxLX[xNbB1][yNbB1] (8-299) predFlagLXB1=PredFlagLX[xNbB1][yNbB1] (8-300) gbiIdxB1=GbiIdx[xNbB1][yNbB1] (8-301)
[0224] For the derivation of availableFlagB0, refIdxLXB0, predFlagLXB0, and mvLXB0, the following applies: The luma position (xNbB0, yNbB0) in the neighboring luma coding block is set equal to (xCb+cbWidth, yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB0, yNbB0). The output is assigned to the block availability flag availableB0. The variables availableFlagB0, refIdxLXB0, predFlagLXB0, and mvLXB0 are derived as follows: If one or more of the following conditions are true, availableFlagB0 is set equal to 0, both components of mvLXB0 are set equal to 0, for X=0 or 1, refIdxLXB0 is set equal to -1, predFlagLXB0 is set equal to 0, and gbiIdxB0 is set to 0: · availableB0 is equal to false. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbB0, yNbB0) have the same motion vector and the same reference index. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB0, yNbB0) have the same motion vector and the same reference index. [, and merge_triangle_flag[xCb][yCb] is equal to 1 ]]. Otherwise, availableFlagB0 is set to 1 and the following allocation is made: mvLXB0=MvLX[xNbB0][yNbB0] (8-302) refIdxLXB0=RefIdxLX[xNbB0][yNbB0] (8-303) predFlagLXB0=PredFlagLX[xNbB0][yNbB0] (8-304) gbiIdxB0=GbiIdx[xNbB0][yNbB0] (8-305)
[0225] For the derivation of availableFlagA0, refIdxLXA0, predFlagLXA0 and mvLXA0 the following applies: The luma position (xNbA0,yNbA0) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbWidth). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbA0, yNbA0). The output is assigned to the block availability flag availableA0. The variables availableFlagA0, refIdxLXA0, predFlagLXA0, and mvLXA0 are derived as follows: If one or more of the following conditions are true, availableFlagA0 is set equal to 0, both components of mvLXA0 are set equal to 0, for X=0 or 1, refIdxLXA0 is set equal to -1, predFlagLXA0 is set equal to 0, and gbiIdxA0 is set to 0: · availableA0 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbA0, yNbA0) have the same motion vector and the same reference index. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbA0, yNbA0) have the same motion vector and the same reference index. , merge_triangle_flag[xCb][yCb] is equal to 1 ]]. · availableB0 is equal to true, and luma positions (xNbB0,yNbB0) and (xNbA0,yNbA0) have the same motion vector and the same reference index. , merge_triangle_flag[xCb][yCb] is equal to 1 ]]. Otherwise, availableFlagA0 is set to 1 and the following allocation is made: mvLXA0=MvLX[xNbA0][yNbA0] (8-306) refIdxLXA0=RefIdxLX[xNbA0][yNbA0] (8-307) predFlagLXA0=PredFlagLX[xNbA0][yNbA0] (8-308) gbiIdxA0=GbiIdx[xNbA0][yNbA0] (8-309)
[0226] For the derivation of availableFlagB2, refIdxLXB2, predFlagLXB2 and mvLXB2 the following applies: The luma position (xNbB2,yNbB2) in the neighboring luma coding block is set equal to (xCb-1,yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB2, yNbB2) as input. The output is assigned to the block availability flag availableB2. The variables availableFlagB2, refIdxLXB2, predFlagLXB2, and mvLXB2 are derived as follows: If one or more of the following conditions are true, availableFlagB2 is set equal to 0, both components of mvLXB2 are set equal to 0, refIdxLXB2 is set equal to -1, predFlagLXB2 is set equal to 0, and gbiIdxB2 is set to 0, for X=0 or 1: · availableB2 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. · availableB0 is equal to true, and luma positions (xNbB0,yNbB0) and (xNbB2,yNbB2) have the same motion vector and the same reference index. , merge_triangle_flag[xCb][yCb] is equal to 1 ]]. · availableA0 is equal to true, and luma positions (xNbA0,yNbA0) and (xNbB2,yNbB2) have the same motion vector and the same reference index. , merge_triangle_flag[xCb][yCb] is equal to 1 ]]. availableFlagA0+availableFlagA1+availableFlagB0+availableFlagB1 is equal to 4 and merge_triangle_flag[xCb][yCb] is equal to 0. Otherwise, availableFlagB2 is set to 1 and the following allocation is made: mvLXB2=MvLX[xNbB2][yNbB2] (8-310) refIdxLXB2=RefIdxLX[xNbB2][yNbB2] (8-311) predFlagLXB2=PredFlagLX[xNbB2][yNbB2] (8-312) gbiIdxB2=GbiIdx[xNbB2][yNbB2] (8-313)
[0227] 5.2 Example #2 This embodiment aligns the pruning process for TPM coded blocks with the pruning process for non-TPM coded blocks, ie, a restrictive pruning operation for TPM coded blocks.
[0228] 8.5.2.3 Derivation Process for Spatial Merge Candidates The inputs to this process are: The luma position (xCb, yCb) of the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture. The variable cbWidth, which specifies the width of the current coding block in luma samples; Variable cbHeight that specifies the height of the current coding block in luma samples.
[0229] The output of this process is the following, where X is either 0 or 1: Availability flags of neighboring coding units: availableFlagA0, availableFlagA1, availableFlagB0, availableFlagB1, availableFlagB2 · Reference indices of neighboring coding units refIdxLXA0, refIdxLXA1, refIdxLXB0, refIdxLXB1, refIdxLXB2 · Prediction list usage flags for nearby coding units: predFlagLXA0, predFlagLXA1, predFlagLXB0, predFlagLXB1, predFlagLXB2 -Motion vectors mvLXA0, mvLXA1, mvLXB0, mvLXB1, mvLXB2 with 1 / 16 fractional sample accuracy of the neighboring coding units Bi-prediction weight indices gbiIdxA0, gbiIdxA1, gbiIdxB0, gbiIdxB1, gbiIdxB2.
[0230] For the derivation of availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1, the following applies: The luma position (xNbA1,yNbA1) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbHeight-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbA1, yNbA1). The output is assigned to the block availability flag availableA1. The variables availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1 are derived as follows: If availableA1 is equal to FALSE, availableFlagA1 is set equal to 0, both components of mvLXA1 are set equal to 0, for X=0 or 1, refIdxLXA1 is set equal to -1, predFlagLXA1 is set equal to 0, and gbiIdxA1 is set equal to 0. Otherwise, availableFlagA1 is set equal to 1 and the following allocation is made: mvLXA1=MvLX[xNbA1][yNbA1] (8-294) refIdxLXA1=RefIdxLX[xNbA1][yNbA1] (8-295) predFlagLXA1=PredFlagLX[xNbA1][yNbA1] (8-296) gbiIdxA1=GbiIdx[xNbA1][yNbA1] (8-297)
[0231] For the derivation of availableFlagB1, refIdxLXB1, predFlagLXB1, and mvLXB1, the following applies: The luma position (xNbB1, yNbB1) in the neighboring luma coding block is set equal to (xCb+cbWidth-1, yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB1, yNbB1). The output is assigned to the block availability flag availableB1. The variables availableFlagB1, refIdxLXB1, predFlagLXB1, and mvLXB1 are derived as follows: If one or more of the following conditions are true, availableFlagB1 is set equal to 0, both components of mvLXB1 are set equal to 0, refIdxLXB1 is set equal to -1, predFlagLXB1 is set equal to 0, and gbiIdxB1 is set to 0, for X=0 or 1: · availableB1 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB1, yNbB1) have the same motion vector and the same reference index. Otherwise, availableFlagB1 is set equal to 1 and the following allocation is made: mvLXB1=MvLX[xNbB1][yNbB1] (8-298) refIdxLXB1=RefIdxLX[xNbB1][yNbB1] (8-299) predFlagLXB1=PredFlagLX[xNbB1][yNbB1] (8-300) gbiIdxB1=GbiIdx[xNbB1][yNbB1] (8-301)
[0232] For the derivation of availableFlagB0, refIdxLXB0, predFlagLXB0, and mvLXB0, the following applies: The luma position (xNbB0, yNbB0) in the neighboring luma coding block is set equal to (xCb+cbWidth, yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB0, yNbB0). The output is assigned to the block availability flag availableB0. The variables availableFlagB0, refIdxLXB0, predFlagLXB0, and mvLXB0 are derived as follows: If one or more of the following conditions are true, availableFlagB0 is set equal to 0, both components of mvLXB0 are set equal to 0, for X=0 or 1, refIdxLXB0 is set equal to -1, predFlagLXB0 is set equal to 0, and gbiIdxB0 is set to 0: · availableB0 is equal to false. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbB0, yNbB0) have the same motion vector and the same reference index. [[ availableA 1 is equal to true, and the luma position (xNbA 1 ,yNbA 1 ) and (xNbB 0 ,yNbB 0 ) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. ]]. Otherwise, availableFlagB0 is set to 1 and the following allocation is made: mvLXB0=MvLX[xNbB0][yNbB0] (8-302) refIdxLXB0=RefIdxLX[xNbB0][yNbB0] (8-303) predFlagLXB0=PredFlagLX[xNbB0][yNbB0] (8-304) gbiIdxB0=GbiIdx[xNbB0][yNbB0] (8-305)
[0233] For the derivation of availableFlagA0, refIdxLXA0, predFlagLXA0 and mvLXA0 the following applies: The luma position (xNbA0,yNbA0) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbWidth). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbA0, yNbA0). The output is assigned to the block availability flag availableA0. The variables availableFlagA0, refIdxLXA0, predFlagLXA0, and mvLXA0 are derived as follows: If one or more of the following conditions are true, availableFlagA0 is set equal to 0, both components of mvLXA0 are set equal to 0, for X=0 or 1, refIdxLXA0 is set equal to -1, predFlagLXA0 is set equal to 0, and gbiIdxA0 is set to 0: · availableA0 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbA0, yNbA0) have the same motion vector and the same reference index. [[ availableB 1 is equal to true, and the luma position (xNbB 1 ,yNbB 1 ) and (xNbA 0 ,yNbA 0 ) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. ]]. [[ availableB 0 is equal to true, and the luma position (xNbB 0 ,yNbB 0 ) and (xNbA 0 ,yNbA 0 ) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. ]]. Otherwise, availableFlagA0 is set to 1 and the following allocation is made: mvLXA0=MvLX[xNbA0][yNbA0] (8-306) refIdxLXA0=RefIdxLX[xNbA0][yNbA0] (8-307) predFlagLXA0=PredFlagLX[xNbA0][yNbA0] (8-308) gbiIdxA0=GbiIdx[xNbA0][yNbA0] (8-309)
[0234] For the derivation of availableFlagB2, refIdxLXB2, predFlagLXB2 and mvLXB2 the following applies: The luma position (xNbB2,yNbB2) in the neighboring luma coding block is set equal to (xCb-1,yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB2, yNbB2) as input. The output is assigned to the block availability flag availableB2. The variables availableFlagB2, refIdxLXB2, predFlagLXB2, and mvLXB2 are derived as follows: If one or more of the following conditions are true, availableFlagB2 is set equal to 0, both components of mvLXB2 are set equal to 0, refIdxLXB2 is set equal to -1, predFlagLXB2 is set equal to 0, and gbiIdxB2 is set to 0, for X=0 or 1: · availableB2 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. [[ availableB 0 is equal to true, and the luma position (xNbB 0 ,yNbB 0 ) and (xNbB 2 ,yNbB 2 ) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. ]]. [[ availableA 0 is equal to true, and the luma position (xNbA 0 ,yNbA 0 ) and (xNbB 2 ,yNbB 2 ) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. ]]. availableFlagA0+availableFlagA1+availableFlagB0+availableFlagB1 is equal to 4 and merge_triangle_flag[xCb][yCb] is equal to 0. Otherwise, availableFlagB2 is set to 1 and the following allocation is made: mvLXB2=MvLX[xNbB2][yNbB2] (8-310) refIdxLXB2=RefIdxLX[xNbB2][yNbB2] (8-311) predFlagLXB2=PredFlagLX[xNbB2][yNbB2] (8-312) gbiIdxB2=GbiIdx[xNbB2][yNbB2] (8-313)
[0235] 5.3 Example #3 This embodiment creates the conditions for invoking the B2 check.
[0236] 8.5.2.3 Derivation Process for Spatial Merge Candidates The inputs to this process are: The luma position (xCb, yCb) of the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture. The variable cbWidth, which specifies the width of the current coding block in luma samples; Variable cbHeight that specifies the height of the current coding block in luma samples.
[0237] The output of this process is the following, where X is either 0 or 1: Availability flags of neighboring coding units: availableFlagA0, availableFlagA1, availableFlagB0, availableFlagB1, availableFlagB2 · Reference indices of neighboring coding units refIdxLXA0, refIdxLXA1, refIdxLXB0, refIdxLXB1, refIdxLXB2 · Prediction list usage flags for nearby coding units: predFlagLXA0, predFlagLXA1, predFlagLXB0, predFlagLXB1, predFlagLXB2 -Motion vectors mvLXA0, mvLXA1, mvLXB0, mvLXB1, mvLXB2 with 1 / 16 fractional sample accuracy of the neighboring coding units Bi-prediction weight indices gbiIdxA0, gbiIdxA1, gbiIdxB0, gbiIdxB1, gbiIdxB2.
[0238] For the derivation of availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1, the following applies: The luma position (xNbA1,yNbA1) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbHeight-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbA1, yNbA1). The output is assigned to the block availability flag availableA1. The variables availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1 are derived as follows: ……
[0239] For the derivation of availableFlagB1, refIdxLXB1, predFlagLXB1, and mvLXB1, the following applies: The luma position (xNbB1, yNbB1) in the neighboring luma coding block is set equal to (xCb+cbWidth-1, yCb-1). ……
[0240] For the derivation of availableFlagB0, refIdxLXB0, predFlagLXB0, and mvLXB0, the following applies: The luma position (xNbB0, yNbB0) in the neighboring luma coding block is set equal to (xCb+cbWidth, yCb-1). ……
[0241] For the derivation of availableFlagA0, refIdxLXA0, predFlagLXA0 and mvLXA0 the following applies: The luma position (xNbA0,yNbA0) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbWidth). ……
[0242] For the derivation of availableFlagB2, refIdxLXB2, predFlagLXB2 and mvLXB2 the following applies: The luma position (xNbB2,yNbB2) in the neighboring luma coding block is set equal to (xCb-1,yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB2, yNbB2) as input. The output is assigned to the block availability flag availableB2. The variables availableFlagB2, refIdxLXB2, predFlagLXB2, and mvLXB2 are derived as follows: If one or more of the following conditions are true, availableFlagB2 is set equal to 0, both components of mvLXB2 are set equal to 0, refIdxLXB2 is set equal to -1, predFlagLXB2 is set equal to 0, and gbiIdxB2 is set to 0, for X=0 or 1: · availableB2 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. availableB0 is equal to true, luma positions (xNbB0,yNbB0) and (xNbB2,yNbB2) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. availableA0 is equal to true, luma positions (xNbA0,yNbA0) and (xNbB2,yNbB2) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. availableFlagA0+availableFlagA1+availableFlagB0+availableFlagB1 is equal to 4 , and merge_triangle_flag[xCb][yCb] is equal to 0 ]]. Otherwise, availableFlagB2 is set to 1 and the following allocation is made: mvLXB2=MvLX[xNbB2][yNbB2] (8-310) refIdxLXB2=RefIdxLX[xNbB2][yNbB2] (8-311) predFlagLXB2=PredFlagLX[xNbB2][yNbB2] (8-312) gbiIdxB2=GbiIdx[xNbB2][yNbB2] (8-313)
[0243] 5.4 Example #4 This embodiment creates the conditions for invoking the B2 check.
[0244] 8.5.2.3 Derivation Process for Spatial Merge Candidates The inputs to this process are: The luma position (xCb, yCb) of the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture. The variable cbWidth, which specifies the width of the current coding block in luma samples; Variable cbHeight that specifies the height of the current coding block in luma samples.
[0245] The output of this process is the following, where X is either 0 or 1: Availability flags of neighboring coding units: availableFlagA0, availableFlagA1, availableFlagB0, availableFlagB1, availableFlagB2 · Reference indices of neighboring coding units refIdxLXA0, refIdxLXA1, refIdxLXB0, refIdxLXB1, refIdxLXB2 · Prediction list usage flags for nearby coding units: predFlagLXA0, predFlagLXA1, predFlagLXB0, predFlagLXB1, predFlagLXB2 -Motion vectors mvLXA0, mvLXA1, mvLXB0, mvLXB1, mvLXB2 with 1 / 16 fractional sample accuracy of the neighboring coding units Bi-prediction weight indices gbiIdxA0, gbiIdxA1, gbiIdxB0, gbiIdxB1, gbiIdxB2.
[0246] For the derivation of availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1, the following applies: The luma position (xNbA1,yNbA1) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbHeight-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbA1, yNbA1). The output is assigned to the block availability flag availableA1. The variables availableFlagA1, refIdxLXA1, predFlagLXA1, and mvLXA1 are derived as follows: ……
[0247] For the derivation of availableFlagB1, refIdxLXB1, predFlagLXB1, and mvLXB1, the following applies: The luma position (xNbB1, yNbB1) in the neighboring luma coding block is set equal to (xCb+cbWidth-1, yCb-1). ……
[0248] For the derivation of availableFlagB0, refIdxLXB0, predFlagLXB0, and mvLXB0, the following applies: The luma position (xNbB0, yNbB0) in the neighboring luma coding block is set equal to (xCb+cbWidth, yCb-1). ……
[0249] For the derivation of availableFlagA0, refIdxLXA0, predFlagLXA0 and mvLXA0 the following applies: The luma position (xNbA0,yNbA0) in the neighboring luma coding block is set equal to (xCb-1,yCb+cbWidth). ……
[0250] For the derivation of availableFlagB2, refIdxLXB2, predFlagLXB2 and mvLXB2 the following applies: The luma position (xNbB2,yNbB2) in the neighboring luma coding block is set equal to (xCb-1,yCb-1). The block availability derivation process specified in Section 6.4.X is called with the current luma position (xCurr, yCurr) set equal to (xCb, yCb) and the neighboring luma positions (xNbB2, yNbB2) as input. The output is assigned to the block availability flag availableB2. The variables availableFlagB2, refIdxLXB2, predFlagLXB2, and mvLXB2 are derived as follows: If one or more of the following conditions are true, availableFlagB2 is set equal to 0, both components of mvLXB2 are set equal to 0, refIdxLXB2 is set equal to -1, predFlagLXB2 is set equal to 0, and gbiIdxB2 is set to 0, for X=0 or 1: · availableB2 is equal to false. · availableA1 is equal to true, and luma positions (xNbA1, yNbA1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. · availableB1 is equal to true, and luma positions (xNbB1, yNbB1) and (xNbB2, yNbB2) have the same motion vector and the same reference index. availableB0 is equal to true, luma positions (xNbB0,yNbB0) and (xNbB2,yNbB2) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. availableA0 is equal to true, luma positions (xNbA0,yNbA0) and (xNbB2,yNbB2) have the same motion vector and the same reference index, and merge_triangle_flag[xCb][yCb] is equal to 1. [[ availableFlagA 0 +availableFlagA 1 +availableFlagB 0 +availableFlagB 1 is equal to 4, and merge_triangle_flag[xCb][yCb] is equal to 0 ]]. Otherwise, availableFlagB2 is set to 1 and the following allocation is made: mvLXB2=MvLX[xNbB2][yNbB2] (8-310) refIdxLXB2=RefIdxLX[xNbB2][yNbB2] (8-311) predFlagLXB2=PredFlagLX[xNbB2][yNbB2] (8-312) gbiIdxB2=GbiIdx[xNbB2][yNbB2] (8-313)
[0251] 5.5 Embodiment #5 This embodiment simplifies the determination of the initialized MV in the ATMVP process.
[0252] 8.5.5.4 Sub-block-based Temporal Merge-based Motion Data Derivation Process The inputs to this process are: The position (xCtb, yCtb) of the top-left sample of the luma coding tree block that contains the current coding block. The location (xColCtrCb, yColCtrCb) of the top-left sample of the co-located luma coding block covering the bottom-right center sample, · availability flag of the neighboring coding unit availableFlagA1, · Reference index of the neighboring coding unit refIdxLXA1, · Prediction list usage flag for nearby coding units predFlagLXA1, · Motion vector mvLXA1 with 1 / 16 fractional sample accuracy of the neighboring coding unit.
[0253] The output of this process is: · The motion vectors ctrMvL0 and ctrMvL1, - Prediction list usage flags ctrPredFlagL0 and ctrPredFlagL1, · Temporal motion vector tempMv.
[0254] The variable tempMv is set as follows: tempMv[0]=0 (8-529) tempMv[1]=0 (8-530)
[0255] The variable currPic specifies the current picture.
[0256] If availableFlagA1 is equal to TRUE, the following applies: [Table 14] [The contents of the image are also described in text: Set the variable X to collocated_from_l0_flag. If it is true that predFlagLXA1 is equal to 1 and DiffPicOrderCnt(ColPic, RefPicList[X][refIdxLXA1]) is equal to 0, then tempMv is set equal to mvLXA1. [[ tempMv is mvL1A if all of the following conditions are true: 1 is set equal to: predFlagL1A 1 is equal to 1, ·DiffPicOrderCnt(ColPic,RefPicList[1][refIdxL1A 1 ]) is equal to 0, DiffPicOrderCnt(aPic,currPic) is less than or equal to 0 for all pictures aPic in all reference picture lists of the current slice, slice_type is equal to B, collocated_from_l0_flag is equal to 0. ]] [[ Otherwise, tempMv is mvL0A if all of the following conditions are true: 1 is set equal to: predFlagL0A 1 is equal to 1, · DiffPicOrderCnt(ColPic,RefPicList[0][refIdxL0A1]) is equal to 0. ]]
[0257] The position (xColCb, yColCb) of the co-located block in ColPic is derived as follows: xColCb = Clip3(xCtb, Min(CurPicWidthInSamplesY-1,xCtb+(1< <CtbLog2SizeY)+3), xColCtrCb+(tempMv[0]>>4)) (8-531) yColCb = Clip3(yCtb, Min(CurPicHeightInSamplesY-1,yCtb+(1< <CtbLog2SizeY)-1), yColCtrCb+(tempMv[1]>>4)) (8-532)
[0258] The array colPredMode is set equal to the prediction mode array CuPredMode of the co-located picture specified by ColPic.
[0259] The motion vectors ctrMvL0 and ctrMvL1 and the prediction list usage flags ctrPredFlagL0 and ctrPredFlagL1 are derived as follows: ……
[0260] 5.6 Example #6 Examples for alignment of co-located MVs derivation process for sub-block and non-sub-block based methods.
[0261] 8.5.2.12 Derivation process for co-located motion vectors The inputs to this process are: The variable currCb that specifies the current coding block, The variable colCb, which specifies the colocated coding block in the colocated picture specified by ColPic, A luma position (xColCb, yColCb) that specifies the top-left sample of the co-located luma coding block specified by colCb, relative to the top-left luma sample of the co-located picture specified by ColPic; Reference index refIdxLX, where X is 0 or 1, · Flag indicating sub-block temporal merging candidate sbFlag.
[0262] The output of this process is: Motion vector prediction mvLXCol with 1 / 16 fractional sample accuracy, · Availability flag availableFlagLXCol.
[0263] The variable currPic specifies the current picture.
[0264] The arrays predFlagL0Col[x][y], mvL0Col[x][y], and refIdxL0Col[x][y] are set equal to PredFlagL0[x][y], MvDmvrL0[x][y], and RefIdxL0[x][y], respectively, of the co-located picture specified by ColPic, and the arrays predFlagL1Col[x][y], mvL1Col[x][y], and refIdxL1Col[x][y] are set equal to PredFlagL1[x][y], MvDmvrL1[x][y], and RefIdxL1[x][y], respectively, of the co-located picture specified by ColPic.
[0265] The variables mvLXCol and availableFlagLXCol are derived as follows: · If colCb is coded in intra or IBC prediction mode, both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0. Otherwise, the motion vectors mvCol, reference indices refIdxCol and reference list identifier listCol are derived as follows: [[ If sbFlag is equal to 0, ]]availableFlagLXCol is set equal to 1 and the following applies: · If predFlagL0Col[xColCb][yColCb] is equal to 0, then mvCol, refIdxCol, and listCol are set equal to mvL1Col[xColCb][yColCb], refIdxL1Col[xColCb][yColCb], and L1, respectively. Otherwise, if predFlagL0Col[xColCb][yColCb] is equal to 1 and predFlagL1Col[xColCb][yColCb] is equal to 0, then mvCol, refIdxCol and listCol are set equal to mvL0Col[xColCb][yColCb], refIdxL0Col[xColCb][yColCb] and L0, respectively. Otherwise (if predFlagL0Col[xColCb][yColCb] is equal to 1 and predFlagL1Col[xColCb][yColCb] is equal to 1), the following assignments are made: If NoBackwardPredFlag is equal to 1, then mvCol, refIdxCol, and listCol are set equal to mvLXCol[xColCb][yColCb], refIdxLXCol[xColCb][yColCb], and LX, respectively. Otherwise, mvCol, refIdxCol, and listCol are set equal to mvLNCol[xColCb][yColCb], refIdxLNCol[xColCb][yColCb], and LN, respectively, where N is the value of collocated_from_l0_flag. [[ Otherwise (sbFlag equals 1), the following applies: If PredFlagLXCol[xColCb][yColCb] is equal to 1, then mvCol, refIdxCol, and listCol are set equal to mvLXCol[xColCb][yColCb], refIdxLXCol[xColCb][yColCb], and LX, respectively, and availableFlagLXCol is set equal to 1. Otherwise (PredFlagLXCol[xColCb][yColCb] is equal to 0), the following applies: ·DiffPicOrderCnt(aPic,currPic) is less than or equal to 0 for all picture aPic in all reference picture lists of the current slice, PredFlagLYCol[xColCb][YColCb] is equal to 1, mvCol, refIdxCol and listCol are set to mvLYCol[xColCb][yColCb], refIdxLYCol[xColCb][yColCb] and LY respectively, where Y is equal to !X, where X is the value of X for which this process is invoked. availableFlagLXCol is set to 1. · Both components of mvLXCol are set to 0 and availableFlagLXCol is set equal to 0. ]] If availableFlagLXCol is equal to TRUE, mvLXCol and availableFlagLXCol are derived as follows: If LongTermRefPic(currPic, currCb, refIdxLX, LX) is equal to LongTermRefPic(ColPic, colCb, refIdxCol, listCol), then both components of mvLXCol are set equal to 0 and availableFlagLXCol is set equal to 0. Otherwise, the variable availableFlagLXCol is set equal to 1, refPicList[listCol][refIdxCol] is set to the picture with reference index refIdxCol in the reference picture list listCol of the slice containing the coding block colCb in the co-located picture specified by ColPic, and the following applies: ……
[0266] FIG. 22 is a block diagram of a video processing device 2200. The device 2200 may be used to implement one or more methods described herein. The device 2200 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, etc. The device 2200 may include one or more processors 2202, one or more memories 2204, and video processing hardware 2206. The processor 2202 may be configured to implement one or more methods described herein. The memory(s) 2204 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 2206 may be used to implement some techniques described herein in a hardware circuit. The video processing hardware 2206 may be included partially or completely within the processor(s) 2202 in the form of dedicated hardware, or a graphical processor unit (GPU), or a specialized signal processing block.
[0267] Some embodiments may be described using the following clause-based description.
[0268] Some example embodiments of the techniques described in Section 4, item 1 include the following.
[0269] 1. A method of video processing (e.g., method 2300 shown in FIG. 23), comprising: applying (2302) a pruning process to a merge list construction of a current video block that is partitioned using a triangular partitioning mode (TMP) in which the current video block is partitioned into at least two non-rectangular sub-blocks, the pruning process being the same as another pruning process for another video block that is partitioned using a non-TMP partition; and performing (2304) a conversion between the current video block and a bitstream representation of the current video block based on the merge list construction.
[0270] 2. The method of claim 1, wherein the pruning process includes using partial pruning on spatial merging candidates for a current video block.
[0271] 3. The method of claim 1, wherein the pruning process includes applying full or partial pruning to a current video block based on a block dimension rule that specifies the use of full or partial pruning based on a dimension of the current video block.
[0272] 4. The method of claim 1, wherein the pruning process includes using a different ordering of neighboring blocks during the merge list construction process.
[0273] Some example embodiments of the techniques described in Section 4, item 2 include the following.
[0274] 1. A method of video processing, comprising: determining, during a conversion between a current video block and a bitstream representation of the current video block, on availability of an alternative temporal motion vector predictor coding (ATMVP) mode for said conversion based on a list X of neighboring blocks of the current video block, where X is an integer and a value of X depends on an encoding condition of the current video block; and performing said conversion based on the availability of an ATMVP mode.
[0275] 2. The method of claim 1, wherein X indicates a location of a co-located video picture from which temporal motion vector prediction used for the conversion between the current video block and a bitstream representation is performed.
[0276] 3. The method of claim 1, wherein X is determined by comparing picture order counts (POCs) of all reference pictures in all reference lists for the current video block to the POCs of the current video picture for the current video block.
[0277] 4. The method of claim 3, further comprising setting X=1 if the comparison indicates that their POC is less than or equal to the POC of the current picture, and setting X=0 otherwise.
[0278] 5. The method of claim 1, wherein motion information stored in a history-based motion vector predictor table is used to initialize motion vectors in the ATMVP mode.
[0279] Some example embodiments of the techniques described in Section 4, item 3 include the following.
[0280] 1. A method of video processing, comprising: determining that during conversion between a current video block and a bitstream representation of the current video block, a sub-block based coding technique is used for said conversion, in which the current video block is divided into at least two sub-blocks, each sub-block capable of deriving its own motion information; and performing the conversion using a merge list construction process for the current video block aligned with a block-based derivation process for co-located motion vectors.
[0281] 2. The method of claim 1, wherein the merge list construction process and the derivation process include performing uni-prediction from list Y, and motion vectors of list Y are scaled to target reference picture list X.
[0282] 3. The method of claim 1, wherein the merge list construction process and the derivation process include performing bi-prediction using a target reference picture list X, and the motion vectors of list Y are scaled to the motion vectors of list X, where Y is determined according to a rule.
[0283] Some example embodiments of the techniques described in Section 4, item 4 include the following:
[0284] 1. A method of video processing comprising: determining whether a condition is satisfied or not satisfied based on dimensions of a current video block of a video picture and / or based on an enablement of a merge sharing state in which merge candidates from different coding tools are shared; and performing a conversion between the current video block and a bitstream representation of the current video block based on the condition.
[0285] 2. The method of claim 1, wherein the step of performing the transformation includes skipping deriving spatial merging candidates if the condition is satisfied.
[0286] 3. The method of claim 1, wherein the step of performing the transformation includes skipping deriving history-based motion vector candidates if the condition is met.
[0287] 4. The method of any one of claims 1 to 3, wherein the condition is determined to be satisfied based on the current video block being under a shared node in the video picture.
[0288] Some example embodiments of the technique described in Section 4, item 5 include the following:
[0289] 1. A method of video processing comprising: determining, during a conversion between a current video block and a bitstream representation of the current video block, that a coding tool is disabled for the conversion, the bitstream representation being configured to provide an indication that a maximum number of merging candidates for the coding tool is zero; and performing the conversion using the determination that the coding tool is disabled.
[0290] 2. The method of claim 1, wherein the coding tool corresponds to an intra block copy in which pixels of a current video block are coded from other pixels within a video domain of the current video block.
[0291] 3. The method of claim 1, wherein the coding tool is a sub-block coding tool.
[0292] 4. The method of claim 3, wherein the sub-block coding tool is an affine coding tool or an alternative motion vector predictor tool.
[0293] 5. A method according to any one of claims 1 to 4, wherein the step of performing the transformation comprises processing the bitstream by skipping syntax elements associated with the coding tool.
[0294] Some example embodiments of the technique described in Section 4, item 6 include the following:
[0295] 1. A method of video processing, comprising: making a determination using a rule that specifies that during a conversion between a current video block and a bitstream representation of the current video block, a first syntax element of the bitstream representation is conditionally present based on a second syntax element indicating a maximum number of merging candidates used by a coding tool used during the conversion; and performing the conversion between the current video block and the bitstream representation of the current video block based on the determination.
[0296] 2. The method of claim 1, wherein the first syntax element corresponds to a merge flag.
[0297] 3. The method of claim 1, wherein the first syntax element corresponds to a skip flag.
[0298] 4. A method according to any one of claims 1 to 3, wherein the coding tool is a sub-band coding tool and the second syntax element corresponds to a maximum allowable merging candidate for the sub-band coding tool.
[0299] 34. The method of any one of clauses 1 to 33, wherein the transforming includes generating the bitstream representation from a current video block.
[0300] 35. The method of any one of clauses 1 to 33, wherein the converting includes generating samples of the current video block from the bitstream representation.
[0301] 36. A video processing device comprising a processor configured to implement the methods described in one or more of clauses 1 to 35.
[0302] 37. A computer readable medium having code stored thereon, the code, when executed, causing a processor to implement a method according to one or more of clauses 1 to 35.
[0303] FIG. 24 is a block diagram illustrating an example video processing system 2400 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 2400. System 2400 may include an input 2402 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10-bit multi-component pixel values, or may be received in a compressed or encoded format. Input 2402 may represent 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), and wireless interfaces such as Wi-Fi or cellular interfaces.
[0304] The system 2400 may include a coding component 2404 that may implement various coding or encoding methods described herein. The coding component 2404 may reduce the average bit rate of the video from the input 2402 to the output of the coding component 2404 to generate a coded representation of the video. Thus, the coding techniques may be referred to as video compression or video transcoding techniques. The output of the coding component 2404 may be stored or transmitted via a connected communication, as represented by component 2406. The stored or communicated bitstream (or coded) representation of the video received at the input 2402 may be used by component 2408 to generate pixel values or displayable video that are transmitted to the display interface 2410. The process of generating a user-viewable video from the bitstream representation may be referred to as video decompression. Additionally, although certain video processing operations are referred to as "coding" operations or tools, it will be understood that the coding tools or operations are used in an encoder and corresponding decoding tools or operations that reverse the results of the coding are performed by a decoder.
[0305] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB) or High-Definition Multimedia Interface (HDMI) or DisplayPort, etc. Examples of storage interfaces include SATA (Serial Advanced Technology Attachment), PCI, IDE interfaces, etc. The techniques described herein may be embodied in a variety of electronic devices such as mobile phones, laptops, smartphones, or other devices capable of performing digital data processing and / or video display.
[0306] 25 is a flow chart for an example of a visual media processing method. The steps of this flow chart are discussed in connection with Example 5d in Section 4 of this document. In step 2502, the process performs a conversion between a current video block of visual media data and a bitstream representation of the current video block, the bitstream representation being constructed according to formatting rules that specify that a syntax element indicating a maximum number of merging candidates for a coding tool is selectively included or excluded from the bitstream representation, thereby indicating whether the coding tool is enabled or disabled for the conversion, the maximum number of merging candidates for the coding tool being zero or a positive number.
[0307] FIG. 26 is a flow chart for an example of a visual media processing method. The steps of this flow chart are discussed in connection with Example 13 in Section 4 of this document. In step 2602, the process performs a conversion between a video including one or more video regions including a plurality of video blocks and a bitstream representation of the video, the bitstream representation conforming to a format rule specifying a number of allowable geometric partitioning mode (GMP) motion candidates for a video region determining whether a syntax element related to applicability of a coding tool to the video region is included in the bitstream representation, the coding tool being distinct from a GPM coding tool, the GPM including partitioning a video block into a plurality of prediction partitions for separately applying motion prediction, at least one partition having a non-rectangular shape.
[0308] 27 is a flow chart for an example of a visual media processing method. The steps of this flow chart are discussed in connection with Example 14 in Section 4 of this document. In step 2702, the process performs a conversion between a current video unit of visual media data and a bitstream representation of said visual media data. The bitstream representation is constructed according to format rules that specify that a maximum transform block size is equal to or less than a maximum coding tree unit (CTU) size used for said conversion.
[0309] 28 is a flow chart for an example of a visual media processing method. The steps of this flow chart are discussed in connection with Example 15 in Section 4 of this document. In step 2802, the process performs a conversion between a current video block of visual media data and a bitstream representation of the current video block. The conversion uses an adaptive loop filter (ALF), whose coefficients are based on the depth of samples in the video domain of the current video block.
[0310] 29 is a flow chart for an example of a visual media processing method. The steps of this flow chart are discussed in connection with Example 16 in Section 4 of this document. In step 2902, the process performs a conversion between a current video block of visual media data and a bitstream representation of the current video block using an adaptive loop filter (ALF). The bitstream representation is constructed according to format rules that specify that one or more syntax elements included in the bitstream representation indicate whether an ALF filter to be applied to the current video block is determined based on an adaptive parameter set (APS) or a fixed set of filters.
[0311] Some embodiments of this document are presented in a clause-based format.
[0312] A1. A method of visual media processing comprising: performing a conversion between a current video block of visual media data and a bitstream representation of the current video block, the bitstream representation being constructed according to format rules that specify whether a syntax element indicating a maximum number of merging candidates for a coding tool is to be selectively included or excluded from the bitstream representation, thereby indicating whether the coding tool is enabled or disabled for the conversion; the maximum number of merge candidates for the coding tool is zero or a positive number. method.
[0313] A2. The method of clause A1, wherein the formatting rules specify that the syntax element is to be excluded in the bitstream representation in response to determining that the coding tool is disabled for the transformation.
[0314] A3. The method of clause A2, wherein the formatting rules specify to exclude the syntax element in the bitstream representation if the maximum number of merging candidates for the coding tool is zero.
[0315] A4. The method of clause A3, wherein the coding tool corresponds to an intra block copy in which pixels of a current video block are coded from other pixels within a video domain of the current video block.
[0316] A5. Any one or more of the methods of clauses A1 to A4, wherein the coding tool supports normal merge, M-merge with motion vector difference (MMVD), combined intra-inter prediction (CIIP), triangulation mode (TPM), and decoder-side motion vector refinement (DMVR).
[0317] A6. The method of any one or more of clauses A1-A4, wherein the coding tool is a sub-block coding tool.
[0318] A7. The method of clause A6, wherein the sub-block coding tool is an affine coding tool or an alternative motion vector prediction tool.
[0319] A8. The method of any one or more of clauses A1 to A4, wherein the step of performing the transformation includes processing the bitstream by skipping syntax elements associated with the coding tool.
[0320] A9. The method of any one or more of clauses A1-A4, wherein the step of performing the transformation includes processing the bitstream to determine that a maximum number of merging candidates for the coding tool is not equal to zero.
[0321] A10. The method of any one or more of clauses A1-A9, wherein the transformation includes determining that a maximum number of merge candidates for the coding tool is not equal to zero.
[0322] E1. A method of visual media processing comprising: performing a conversion between a video including one or more video regions including a plurality of video blocks and a bitstream representation of the video; the bitstream representation conforms to a format rule that specifies a number of allowable geometric partitioning mode (GMP) motion candidates for a video region that determines whether a syntax element related to applicability of a coding tool to the video region is included in the bitstream representation, the coding tool being distinct from a GPM coding tool, the GPM including partitioning a video block into a plurality of prediction partitions for separately applying motion prediction, at least one partition having a non-rectangular shape; method.
[0323] E2. The method described in clause E1, wherein if the coding tool supports a composite inter-intra prediction (CIIP) mode and the number of allowed GPM motion candidates exceeds a threshold, the format rules specify including the one or more syntax elements in the bitstream representation.
[0324] E3. Any one or more of the methods of clauses E1-E2, wherein the threshold value is equal to 1.
[0325] E4. The method of any one or more of clauses E1-E3, wherein the formatting rules specify that if a number of allowed GPM motion candidates is less than or equal to the threshold, then the syntax element is excluded in the bitstream representation.
[0326] B1. A method of visual media processing comprising: performing a conversion between a current video unit of visual media data and a bitstream representation of the visual media data, the bitstream representation being configured according to a format rule that specifies that a maximum transform block size is equal to or less than a maximum coding tree unit (CTU) size used for the conversion; method.
[0327] B2. The method of clause B1, wherein the formatting rules specify selectively including, in the bitstream representation, a syntax element indicating the maximum transform block size based on the maximum CTU size.
[0328] B3. The method of clause B2, wherein the formatting rules specify excluding, in the bitstream representation, a syntax element indicating the maximum transform block size based on a determination that the maximum CTU size is less than or equal to a defined M×N block size.
[0329] B4. The method of clause B3, wherein M=32 and N=32.
[0330] C1. A method of visual media processing comprising: performing a conversion between a current video block of visual media data and a bitstream representation of the current video block, the conversion using an adaptive loop filter (ALF), where coefficients of the ALF filter are based on a depth of samples in a video domain of the current video block; method.
[0331] C2. The method of claim C1, wherein the ALF filter coefficients correspond to chroma ALF filter coefficients.
[0332] C3. The method of clause C1, wherein the ALF filter coefficients correspond to luma ALF filter coefficients.
[0333] D1. A method of visual media processing comprising: performing a conversion between a current video block of visual media data and a bitstream representation of the current video block using an adaptive loop filter (ALF), the bitstream representation being configured according to format rules that specify that one or more syntax elements included in the bitstream representation indicate whether an ALF filter to be applied to the current video block is determined based on an adaptive parameter set (APS) or a fixed set of filters. method.
[0334] D2. The method of clause D1, wherein the formatting rules further specify that if a number of available ALF APSs is greater than zero, then the one or more syntax elements are included in the bitstream representation.
[0335] D3. The method of clause D1, wherein if the ALF is based on the APS, the formatting rules further specify that the one or more syntax elements are included in the bitstream representation and indicate an index of the APS.
[0336] D4. The method of clause D3, wherein the index of the APS is included in the bitstream representation using a coding technique.
[0337] D5. The method of clause D1, wherein the coding technique includes one of: fixed length coding, unary coding, truncated unary coding, truncated binary coding, or exponential-Golomb coding.
[0338] L1. Any one or more of the methods of clauses A1-D5, wherein the transforming includes generating the bitstream representation from a current video block.
[0339] L2. Any one or more of the methods of clauses A1-D5, wherein the converting includes generating samples of the current video block from the bitstream representation.
[0340] L3. A video processing device having a processor configured to implement the methods described in any one or more of clauses A1 to D5.
[0341] L4. A computer readable medium having code stored thereon, the code, when executed, causing a processor to implement the method described in any one or more of clauses A1-D5.
[0342] In this document, the term "video processing" or "visual media processing" may refer to video encoding, video decoding, 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 placed together or spread to various locations in the bitstream, for example, as defined by a syntax. For example, a macroblock may be encoded using a transformed coded error residual value, and also using bits in a header and other fields in the bitstream. Furthermore, during conversion, a decoder may parse the bitstream with the knowledge that some fields may be present or absent based on decisions as described in the above solutions. Similarly, an encoder may determine whether certain syntax fields are included or not included, and generate a coding representation by including or excluding the syntax fields from the coded representation accordingly. It will be appreciated that the disclosed techniques may be embodied in a video encoder or decoder to improve compression efficiency using techniques including the use of sub-block based motion vector refinement.
[0343] From the foregoing, it will be understood that, although particular embodiments of the disclosed technology have been described herein for purposes of illustration, various modifications can be made without departing from the scope of the invention. Accordingly, the disclosed technology is not to be limited except as by the appended claims.
[0344] The disclosed and other solutions, examples, embodiments, modules, 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 substrate, a memory device, a composition of matter embodying a machine-readable propagated signal, or one or more combinations thereof. The term "data processing apparatus" encompasses any apparatus, device, and machine for processing data, including, for example, a programmable processor, a computer, or multiple processors or computers. An apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code constituting a processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof. The propagated signal may be an artificially generated signal, such as a machine-generated electrical, optical or electromagnetic signal, generated to code information for transmission to a suitable receiver device.
[0345] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in several coordinated files (e.g., files storing one or more modules, subprograms, or code portions). A computer program can be deployed to be executed on one computer, or on several computers located at one site or distributed across several sites and interconnected by a communications network.
[0346] 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 an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
[0347] Processors suitable for executing computer programs include, for example, both general purpose and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor receives instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Generally, a computer may also include one or more mass storage devices for storing data, e.g., magnetic disks, magneto-optical disks, or optical disks, or may be operatively coupled to receive data from such mass storage devices and transfer data to such mass storage devices, or both. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices such as EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0348] Although this patent document contains many details, these should not be construed as limitations on the scope of any subject matter or what may be claimed, but rather as descriptions of features that may be specific to specific embodiments of a particular technology. Certain features described in this patent document in the context of separate embodiments may also be implemented in combination in 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 acting in certain combinations and may even be initially claimed as such, one or more features from a claimed combination may, in some cases, be carved out of such combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.
[0349] Similarly, although the figures show operations in a particular order, this should not be understood as requiring that such operations be performed in that particular order or sequentially, or that all of the operations shown be performed, to achieve desired results. Further, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.
[0350] Only a few implementations and examples have been described; other implementations, enhancements and variations are possible based on what is described and explained in this patent document.
Claims
1. 1. A method for processing video data, comprising: determining, during conversion between a video domain of a video including one or more coding tree blocks and a bitstream of the video, that an adaptive loop filter (ALF) process is applied for a current coding tree block of the one or more coding tree blocks in the video domain; performing the conversion based on the determination; the bitstream is constructed according to a format rule that specifies that a single first syntax element is conditionally included in the bitstream, the single syntax element indicating whether an ALF filter to be applied to a current coding tree block is based on an adaptive parameter set (APS) or based on one or more fixed filter sets; The format rule further specifies that the single first syntax element having a value indicating that an ALF filter to be applied to a current coding tree block is based on an APS is associated with inclusion of a second syntax element in the bitstream, the second syntax element being used to derive an index of the APS that includes the ALF filter to be applied to a current coding tree block; the second syntax element is coded using a truncated binary coding technique; Whether the ALF filter applied to the current coding tree block is based on the APS or on the one or more fixed filter sets is independent of the value of the syntax element alf_ctb_use_first_aps_flag, which indicates whether filter information in the first APS is used. method.
2. The method of claim 1 , wherein the second syntax element indicates a sequence to which the APS belongs that contains the ALF filter to be applied to a current coding tree block in an available ALF APS of the video domain.
3. 2. The method of claim 1, wherein in response to a number of available ALF APSs in the video region being greater than 0, the format rule further specifies that the first syntax element is included in the bitstream.
4. 2. The method of claim 1 , wherein in response to one of the one or more fixed filter sets being applied to a current coding tree block, the format rule further specifies that a third syntax element is to be included in the bitstream, a value of the third syntax element specifying an index of the one fixed filter to be applied to a current coding tree block.
5. The method of claim 1 , wherein the video region is a slice.
6. The method of claim 1 , wherein the format rule further specifies that the first syntax element is included in the bitstream if a number of available ALF APSs in the video region is greater than 0.
7. the format rules specify that a fourth syntax element indicating a maximum transform block size is included in the bitstream only if a size of the video coding tree unit is greater than 32×32. The method of claim 1.
8. The method of claim 7 , wherein the formatting rules further specify that the maximum transform block size is less than or equal to a coding tree unit size.
9. The method of claim 1 , wherein if the ALF filter is based on the APS, the formatting rules further specify that the second syntax element is conditionally included in the bitstream.
10. The method of claim 1 , wherein the conversion comprises encoding the video domain into the bitstream.
11. The method of claim 1 , wherein the conversion comprises decoding the video region from the bitstream.
12. 1. An apparatus for processing video data having a processor and a non-transitory memory storing instructions that, when executed by the processor, cause the processor to: determining, during conversion between a video domain of a video including one or more coding tree blocks and a bitstream of the video, that an adaptive loop filter (ALF) process is applied for a current coding tree block of the one or more coding tree blocks in the video domain; and performing the conversion based on the determination. the bitstream is constructed according to a format rule that specifies that a single first syntax element is conditionally included in the bitstream, the single syntax element indicating whether an ALF filter to be applied to a current coding tree block is based on an adaptive parameter set (APS) or based on one or more fixed filter sets; The format rule further specifies that the single first syntax element having a value indicating that an ALF filter to be applied to a current coding tree block is based on an APS is associated with inclusion of a second syntax element in the bitstream, the second syntax element being used to derive an index of the APS that includes the ALF filter to be applied to a current coding tree block; the second syntax element is coded using a truncated binary coding technique; Whether the ALF filter applied to the current coding tree block is based on the APS or on the one or more fixed filter sets is independent of the value of the syntax element alf_ctb_use_first_aps_flag, which indicates whether filter information in the first APS is used. Device.
13. A non-transitory computer-readable storage medium storing instructions that cause a processor to: determining, during conversion between a video domain of a video including one or more coding tree blocks and a bitstream of the video, that an adaptive loop filter (ALF) process is applied for a current coding tree block of the one or more coding tree blocks in the video domain; and performing the conversion based on the determination. the bitstream is constructed according to a format rule that specifies that a single first syntax element is conditionally included in the bitstream, the single syntax element indicating whether an ALF filter to be applied to a current coding tree block is based on an adaptive parameter set (APS) or based on one or more fixed filter sets; The format rule further specifies that the single first syntax element having a value indicating that an ALF filter to be applied to a current coding tree block is based on an APS is associated with inclusion of a second syntax element in the bitstream, the second syntax element being used to derive an index of the APS that includes the ALF filter to be applied to a current coding tree block; the second syntax element is coded using a truncated binary coding technique; Whether the ALF filter applied to the current coding tree block is based on the APS or on the one or more fixed filter sets is independent of the value of the syntax element alf_ctb_use_first_aps_flag, which indicates whether filter information in the first APS is used. storage medium.
14. A method for storing a bitstream of video, the method comprising: determining that an adaptive loop filter (ALF) process is to be applied to a current coding tree block of one or more coding tree blocks in a video domain of the video; generating the bitstream based on the determination; storing the bitstream on a non-transitory computer-readable recording medium; the bitstream is constructed according to a format rule that specifies that a single first syntax element is conditionally included in the bitstream, the single syntax element indicating whether an ALF filter to be applied to a current coding tree block is based on an adaptive parameter set (APS) or based on one or more fixed filter sets; The format rule further specifies that the single first syntax element having a value indicating that an ALF filter to be applied to a current coding tree block is based on an APS is associated with inclusion of a second syntax element in the bitstream, the second syntax element being used to derive an index of the APS that includes the ALF filter to be applied to a current coding tree block; the second syntax element is coded using a truncated binary coding technique; Whether the ALF filter applied to the current coding tree block is based on the APS or on the one or more fixed filter sets is independent of the value of the syntax element alf_ctb_use_first_aps_flag, which indicates whether filter information in the first APS is used. method.
Citation Information
Cited By
Implicit multiple transform set signaling in video coding
US12328432B2
Transform block size restriction in video coding
US12495141B2
Position dependent coefficient reordering in coded video
US12587648B2
Coding mode dependent selection of transform skip mode
US12598300B2
