Deblocking filtering using motion prediction
By introducing local illumination compensation technology into video encoding and decoding, the prediction and filtering operations of video blocks are optimized, which solves the shortcomings of compression rate and parallelization implementation in existing technologies and achieves more efficient video encoding and decoding performance.
Patent Information
- Application Number
- CN202080009303.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-17
- Filing Date
- 2020-01-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-01-17
AI Technical Summary
Existing video encoding and decoding technologies have shortcomings in terms of compression ratio and parallelization implementation, and need to be improved to enhance the performance of video encoding and decoding.
Local illumination compensation (LIC) technology is introduced to adjust the pixel values of video blocks to optimize the encoding and decoding process by constructing a motion candidate list and determining the operating state of the prediction tool.
It improves the compression rate of video encoding and decoding and reduces the complexity of encoding and decoding, supporting more efficient parallel processing.
Smart Images

Figure CN113316933B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is intended to timely claim, in accordance with applicable patent law and / or Paris Convention rules, International Patent Application No. PCT / CN2019 / 072154 filed on January 17, 2019. The entire disclosure of the foregoing application is incorporated by reference as part of the disclosure of this patent. Technical Field
[0003] This patent document relates to the field of video encoding and decoding. Background Art
[0004] Currently, efforts are being made to improve the performance of current video codec technologies to provide better compression rates or to provide video encoding and decoding schemes that allow for lower complexity or parallelized implementations. Several new video codec tools have recently been proposed by industry experts and are currently being tested to determine their effectiveness. Summary of the invention
[0005] This document provides techniques for incorporating local illumination compensation in embodiments of a video encoder or decoder.
[0006] In one example aspect, a method of video processing is disclosed. The method includes constructing a motion candidate list having at least one motion candidate for conversion between a current block of a video and a bitstream representation of the video; and determining whether a generalized bi-prediction (GBI) processing tool is enabled based on a candidate type of a first motion candidate. The GBI processing tool includes deriving a final prediction based on applying equal or unequal weights to predictions derived from different reference lists according to a weight set. The method also includes performing the conversion based on the determination.
[0007] In another example aspect, a method of video processing is disclosed. The method includes determining an operational state of local illumination compensation (LIC) prediction, generalized bidirectional (GBI) prediction, or weighted prediction for a conversion between a current block of a video and a bitstream representation of the video. The current block is associated with a prediction technique using at least one virtual motion candidate. The method also includes performing the conversion based on the determination.
[0008] In another example aspect, a method of video processing is disclosed. The method includes, for a conversion between a current block of a video and a bitstream representation of the video, determining a state of a filtering operation or one or more parameters of a filtering operation on the current block based on characteristics of a local illumination compensation (LIC) prediction, a generalized bidirectional (GBI) prediction, a weighted prediction, or an affine motion prediction. The method also includes performing the conversion based on the determination.
[0009] In another example aspect, a method of video processing is disclosed. The method includes, in converting between a video block and a bitstream representation of the video block, determining that the video block is a boundary block of a coding tree unit (CTU) in which the video block is located, and thus enabling a local illumination compensation (LIC) codec tool for the video block, deriving parameters of a local illumination compensation (LIC) for the video block based on the determination that the LIC codec tool is enabled for the video block, and performing the conversion by adjusting pixel values of the video block using the LIC.
[0010] In another example aspect, a method of video processing is disclosed. The method includes, in converting between a video block and a bitstream representation of the video block, determining that the video block is an internal block of a codec tree unit (CTU) in which the video block is located, and thus disabling a local illumination compensation (LIC) codec tool for the video block, inheriting parameters of the LIC of the video block, and performing the conversion by adjusting pixel values of the video block using the LIC.
[0011] In yet another example aspect, another method of video processing is disclosed. The method includes, in converting between a video block and a bitstream representation of the video block, determining that both local illumination compensation and intra block copy codec tools are enabled for use with a current block, and performing the conversion by performing local illumination compensation (LIC) and intra block copy operations on the video block.
[0012] In yet another example aspect, another method of video processing is disclosed. The method includes performing the conversion by performing local illumination compensation (LIC) and intra block copy operations on a video block, and performing conversion between a current block and a corresponding bitstream representation of the current block.
[0013] In yet another example aspect, another method of video processing is disclosed. The method includes determining local illumination compensation (LIC) parameters for the video block using at least some samples of neighboring blocks of the video block during conversion between a video block of the video and a bitstream representation of the video, and performing conversion between the video block and the bitstream representation by performing the LIC using the determined parameters.
[0014] In yet another example aspect, another method of video processing is disclosed. The method includes performing conversion between a video and a bitstream representation of the video, wherein the video is represented as a video frame including video blocks, and local illumination compensation (LIC) is enabled only for the video blocks using a geometric prediction structure including a triangle prediction mode.
[0015] In yet another example aspect, another method of video processing is disclosed. The method includes performing a conversion between a video and a bitstream representation of the video, wherein the video is represented as a video frame including video blocks, and in the conversion to its corresponding bitstream representation, local illumination compensation (LIC) is performed on less than all pixels of a current block.
[0016] In yet another example aspect, another method of video processing is disclosed. The method includes determining, in converting between a video block and a bitstream representation of the video block, that both local illumination compensation (LIC) and generalized bi-directional prediction (GBi) or multi-hypothesis inter prediction codecs are enabled for use with a current block, and performing the conversion by performing LIC and GBi or multi-hypothesis inter prediction operations on the video block.
[0017] In yet another example aspect, another method of video processing is disclosed. The method includes determining that both local illumination compensation (LIC) and combined inter-intra prediction (CIIP) codecs are enabled for use by a current block in converting between a video block and a bitstream representation of the video block, and performing the converting by performing LIC and CIIP operations on the video block.
[0018] In yet another example aspect, another method of video processing is disclosed. The method includes determining that a video block is associated with a prediction technique including pairwise prediction or combined bi-prediction; determining an operating state of local illumination compensation (LIC), generalized bi-prediction (GBI), or weighted prediction, enabling or disabling the operating state based on the determination that the video block is associated with the prediction technique; and performing further processing of the video block according to the operating state of LIC, GBI, or weighted prediction.
[0019] In yet another example aspect, another method of video processing is disclosed. The method includes determining a characteristic regarding local illumination compensation (LIC), generalized bidirectional prediction (GBI), or weighted prediction; and applying a deblocking filter to a video block based on the determination of the characteristic.
[0020] In yet another example aspect, another method of video processing is disclosed. The method includes determining a characteristic regarding an affine mode, affine parameters, or affine type associated with a video block; and applying a deblocking filter to the video block based on the determination of the characteristic.
[0021] In yet another example aspect, another video processing method is disclosed. The method includes storing data associated with a combined inter-intra prediction (CIIP) flag in a history-based motion vector prediction (HMVP) table; storing motion information in the HMVP table; and performing further processing on a video block using the data stored in the HMVP table and the motion information stored in the HMVP table.
[0022] In yet another example aspect, another method of video processing is disclosed. The method includes storing data associated with a local illumination compensation (LIC) flag in a history-based motion vector prediction (HMVP) table; storing motion information in the HMVP table; and performing further processing of a video block using the data stored in the HMVP table and the motion information stored in the HMVP table.
[0023] In yet another example aspect, another method of video processing is disclosed. The method includes determining to perform local illumination compensation (LIC); dividing a video block into video processing data units (VPDUs) based on the determination to perform LIC; and performing LIC on the VPDUs sequentially or in parallel.
[0024] In yet another representative aspect, the various techniques described herein may be embodied as a computer program product stored on a non-transitory computer-readable medium. The computer program product includes program code for executing the methods described herein.
[0025] In yet another representative aspect, a video decoder device may implement a method as described herein.
[0026] The details of one or more embodiments are set forth in the accompanying appendix, drawings, and the following description. Other features will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 An example of the derivation process of Merge candidate list construction is shown.
[0028] Figure 2 Example locations of spatial merge candidates are shown.
[0029] Figure 3 An example of candidate pairs considered for redundancy checking of spatial merge candidates is shown.
[0030] Figure 4Example locations of the second PU (Prediction Unit) for N×2N and 2N×N partitions are shown.
[0031] Figure 5 It is a diagram of the motion vector scaling of the temporal merge candidate.
[0032] Figure 6 An example of candidate positions of the time-domain Merge candidates C0 and C1 is shown.
[0033] Figure 7 An example of a combined bi-predictive Merge candidate is shown.
[0034] Figure 8 An example of a derivation process of motion vector prediction candidates is shown.
[0035] Fig. 9 is an example illustration of motion vector scaling of spatial motion vector candidates.
[0036] Fig.10 An example of an advanced temporal motion vector predictor (ATMVP) for a coding unit (CU) is shown.
[0037] Fig.11 An example of one CU having four sub-blocks (AD) and its neighboring blocks (ad) is shown.
[0038] Fig.12 An example of a planar motion vector prediction process is shown.
[0039] Fig.13 This is a flowchart of an example of encoding with different motion vector (MV) precisions.
[0040] Fig.14 is an example illustration of a sub-block in which OBMC is applied.
[0041] Fig.15 An example of neighboring sample points used to derive IC parameters is shown.
[0042] Fig.16 is a diagram of dividing a codec unit (CU) into two triangular prediction units.
[0043] Fig.17 An example of the positions of neighboring blocks is shown.
[0044] Fig.18 An example is shown in which a CU applies a first weighting factor group.
[0045] Fig.19 An example of a motion vector storage implementation is shown.
[0046] Fig. 20 An example of a simplified affine motion model is shown.
[0047] Fig.21 An example of an affine MVF (Motion Vector Field) for each sub-block is shown.
[0048] Fig. 22 Examples of (a) a 4-parameter affine model and (b) a 6-parameter affine model are shown.
[0049] Fig.23 An example of a motion vector predictor (MVP) for AF_INTER mode is shown.
[0050] Figure 24A-24B Examples of candidates for the AF_MERGE mode are shown.
[0051] Fig.25 Candidate positions for the affine merge mode are shown.
[0052] Fig.26 An example process of bilateral matching is shown.
[0053] Fig. 27 An example process of template matching is shown.
[0054] Fig.28 An implementation of unilateral motion estimation (ME) in frame rate upconversion (FRUC) is shown.
[0055] Fig.29 An embodiment of an Ultimate Motion Vector Expression (UMVE) search process is shown.
[0056] Fig.30 An example of a UMVE search point is shown.
[0057] Fig.31 An example of a distance index and distance offset mapping is shown.
[0058] Fig.32 An example of an optical flow trajectory is shown.
[0059] Figure 33A-Figure 33BAn example of Bi-directional Optical flow (BIO) without block extension is shown: a) access locations outside the block; b) padding is used to avoid extra memory accesses and computations.
[0060] Fig.34 An example of using Decoder-side Motion Vector Refinement (DMVR) based on bilateral template matching is shown.
[0061] Fig.35 An example of neighboring samples used in a bilateral filter is shown.
[0062] Fig.36 An example of a window covering two samples used in the weight calculation is shown.
[0063] Fig.37 An example of a decoding flow using the proposed History-based Motion Vector Prediction (HMVP) method is shown.
[0064] Fig.38 An example of updating a table in the proposed HMVP method is shown.
[0065] Fig.39 is a block diagram of a hardware platform for implementing the video encoding or decoding techniques described in this document.
[0066] Fig.40 An example of a hardware platform for implementing the methods and techniques described in this document is shown.
[0067] Fig.41 is a flowchart of an example method for video processing.
[0068] Fig.42 is a flow chart of an example method of video processing according to the present disclosure.
[0069] Fig.43 is a flow chart of another example method of video processing according to the present disclosure.
[0070] Fig.44 is a flowchart of yet another example method of video processing according to the present disclosure. DETAILED DESCRIPTION
[0071] This document provides several techniques that can be embodied in digital video encoders and decoders. For clear understanding, section headings are used in this document, and the scope of the techniques and embodiments disclosed in each section is not limited to only that section.
[0072] 1. Overview
[0073] This patent document relates to video codec technology. Specifically, it relates to local illumination compensation (LIC) in video codec. It can be applied to existing video codec standards, such as HEVC, or standards to be finalized (e.g., Versatile Video Codec (VVC)). It can also be applied to future video codec standards or video codecs.
[0074] 2. Examples of video encoding / decoding technologies
[0075] Video codec standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, ISO / IEC developed MPEG-1 and MPEG-4 Visual, and the two organizations jointly developed the H.262 / MPEG-2 Video and H.264 / MPEG-4 Advanced Video Coding (AVC) and H.265 / HEVC standards. Since H.262, video codec standards have been based on a hybrid video codec structure, where temporal prediction plus transform codec is used. In order to explore future video codec technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new methods and put them into reference software called the Joint Exploration Model (JEM). In April 2018, the Joint Video Experts Group (JVET) between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) was established to work on the VVC standard with the goal of a 50% bitrate reduction compared to HEVC.
[0076] 2.1. Inter-frame prediction of HEVC / H.265
[0077] Each inter-predicted PU has motion parameters for one or two reference picture lists. The motion parameters include motion vectors and reference picture indices. The use of one of the two reference picture lists may also be signaled using inter_pred_idc. The motion vector may be explicitly encoded as a delta relative to the prediction value.
[0078] When a CU is encoded or decoded in skip mode, a PU is associated with the CU and there are no significant residual coefficients, no encoded motion vector deviations, or reference picture indices. By specifying the Merge mode, the motion parameters of the current PU are obtained from neighboring PUs including spatial and temporal candidates. Merge mode can be applied to any inter-predicted PU, not just for skip mode. An alternative to Merge mode is explicit transmission of motion parameters, where each PU explicitly signals the motion vector (more accurately, the motion vector difference compared to the motion vector prediction value), the corresponding reference picture index for each reference picture list, and the use of the reference picture list. In the present disclosure, this mode is referred to as Advanced Motion Vector Prediction (AMVP).
[0079] When signaling indicates that one of the two reference picture lists is to be used, a PU is generated from a block of samples. This is called "unidirectional prediction". Unidirectional prediction can be used for both P slices and B slices.
[0080] When signaling indicates that two reference picture lists are to be used, a PU is generated from two sample blocks. This is called "bi-prediction". Bi-prediction is only available for B slices.
[0081] The following text provides detailed information about the inter prediction modes specified in HEVC. The description will start with the Merge mode.
[0082] 2.1.1.Merge mode
[0083] 2.1.1.1. Merge mode candidate derivation
[0084] When predicting a PU using Merge mode, an index pointing to an entry in the Merge candidate list is parsed from the bitstream and used to retrieve motion information. The construction of this list is specified in the HEVC standard and can be summarized according to the following sequence of steps:
[0085] Step 1: Initial candidate derivation
[0086] Step 1.1: Spatial Candidate Derivation
[0087] Step 1.2: Redundancy check of spatial candidates
[0088] οStep 1.3: Time Domain Candidate Derivation
[0089] Step 2: Additional candidate insertions
[0090] οStep 2.1: Create bidirectional prediction candidates
[0091] οStep 2.2: Insert zero motion candidates
[0092] These steps are also schematically depicted in Figure 1 For spatial Merge candidate derivation, a maximum of four Merge candidates are selected from candidates located at five different positions. For temporal Merge candidate derivation, a maximum of one Merge candidate is selected from two candidates. Since a constant number of candidates for each PU is assumed at the decoder, additional candidates are generated when the number of candidates obtained from step 1 does not reach the maximum number of Merge candidates (MaxNumMergeCand) signaled in the slice header. Since the number of candidates is constant, the index of the best Merge candidate is encoded using truncated unary binarization (TU). If the size of the CU is equal to 8, all PUs of the current CU share a single Merge candidate list, which is the same as the Merge candidate list of the 2N×2N prediction unit.
[0093] Hereinafter, operations associated with the aforementioned steps will be described in detail.
[0094] 2.1.1.2. Spatial Candidate Derivation
[0095] In the derivation of spatial merge candidates, Figure 2 Select up to four Merge candidates from the candidates for the positions depicted in . The order of derivation is A 1 , B 1 , B 0 , A 0 and B 2 Only when position A 1 , B 1 , B 0 , A 0 Position B is considered only when any PU of is unavailable (for example, because it belongs to another slice or part) or is intra coded. 2 . Add position A 1 After the candidates at the , redundancy check is performed on the addition of the remaining candidates, which ensures that the candidates with the same motion information are excluded from the list, thereby improving the encoding and decoding efficiency. Figure 3 An example of candidate pairs considered for redundancy check of spatial merge candidates is shown. In order to reduce computational complexity, not all possible candidate pairs are considered in the mentioned redundancy check. Instead, only pairs with Figure 3 The arrows in are linked pairs, and candidates are added to the list only if the corresponding candidates for redundancy checking do not have the same motion information. Another source of duplicate motion information is a "second PU" associated with a partition other than 2N×2N. As an example, Figure 4 The second PU in the N×2N and 2N×N cases is depicted. When the current PU is partitioned into N×2N, position A1 The candidate at position B is not considered for list construction. In fact, by adding this candidate it would result in two prediction units having the same motion information, which is redundant for having only one PU in the codec unit. Similarly, when the current PU is split into 2N×N, position B is not considered. 1 .
[0096] 2.1.1.3. Time Domain Candidate Derivation
[0097] In this step, only one candidate is added to the list. Specifically, in the derivation of the temporal Merge candidate, the scaled motion vector is derived based on the co-located PU belonging to the picture with the minimum POC (Picture Order Count) difference with the current picture in a given reference picture list. The reference picture list to be used for the derivation of the co-located PU is explicitly signaled in the slice header. Figure 5 is a diagram of the motion vector scaling of the temporal Merge candidate. Figure 5 As shown by the dotted line in , the scaled motion vector of the temporal Merge candidate is obtained, which is scaled from the motion vector of the collocated PU using the POC distances tb and td, where tb is defined as the POC difference between the reference picture of the current picture and the current picture, and td is defined as the POC difference between the reference picture of the collocated picture and the collocated picture. The reference picture index of the temporal Merge candidate is set equal to zero. The actual implementation of the scaling process is described in the HEVC specification. 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 generate a bidirectional prediction Merge candidate.
[0098] In the collocated PU(Y) belonging to the reference frame, in the candidate C 0 and C 1 Select the position of the time domain candidate between Figure 6 If position C 0 If the PU at position C is not available, is intra-coded, or is outside the current CTU row, then position C is used. 1 Otherwise, position C is used in the derivation of the time-domain Merge candidate 0 .
[0099] 2.1.1.4. Additional candidate insertion
[0100] In addition to the spatial and temporal Merge candidates, there are two additional types of Merge candidates: combined bidirectional prediction Merge candidates and zero Merge candidates. The combined bidirectional prediction Merge candidate is generated by utilizing the spatial and temporal Merge candidates. The combined bidirectional prediction Merge candidate is only used for B slices. The combined bidirectional prediction candidate is generated by combining the first reference picture list motion parameters of an initial candidate with the second reference picture list motion parameters of another initial candidate. If the two tuples provide different motion hypotheses, they will form a new bidirectional prediction candidate. As an example, Figure 7 Shown is the case when two candidates in the original list (on the left) (which have mvL0 and refIdxL0 or mvL1 and refIdxL1) are used to create a combined bi-predictive Merge candidate that is added to the final list (on the right). There are many rules about combining that are considered to generate these additional Merge candidates.
[0101] Zero motion candidates are inserted to fill the remaining entries in the Merge candidate list and thus reach the MaxNumMergeCand capacity. These candidates have zero spatial displacement and a reference picture index that starts at zero and increases each time a new zero motion candidate is added to the list. The number of reference frames used by these candidates is 1 and 2 for unidirectional prediction and bidirectional prediction, respectively. Finally, no redundancy check is performed on these candidates.
[0102] 2.1.1.5. Motion Estimation Regions for Parallel Processing
[0103] To speed up the encoding process, motion estimation can be performed in parallel, thereby deriving motion vectors for all prediction units within a given region at the same time. Deriving Merge candidates from spatial neighborhoods may interfere with parallel processing because a prediction unit cannot derive motion parameters from neighboring PUs until its associated motion estimation is completed. In order to ease the trade-off between coding efficiency and processing latency, HEVC defines a Motion Estimation Region (MER), and uses the "log2_parallel_merge_level_minus2" syntax element to signal the size of the MER in the picture parameter set. When defining a MER, Merge candidates that fall into the same region are marked as unavailable and are therefore not considered in list construction.
[0104] 2.1.2.AMVP
[0105] AMVP exploits the spatio-temporal correlation of motion vectors with neighboring PUs for explicit transmission of motion parameters. For each reference picture list, a motion vector candidate list is constructed by first checking the availability of neighboring PU positions on the left and top sides in time domain, removing redundant candidates and adding zero vectors to make the candidate list a constant length. The encoder can then select the best prediction value from the candidate list and send the corresponding index indicating the selected candidate. Similar to Merge index signaling, the index of the best motion vector candidate is encoded using truncated unary. In this case, the maximum value to be encoded is 2 (see Figure 8 ). In the following sections, details about the derivation process of motion vector prediction candidates will be provided.
[0106] 2.1.2.1. Derivation of AMVP candidates
[0107] In motion vector prediction, two types of motion vector candidates are considered: spatial motion vector candidates and temporal motion vector candidates. For spatial motion vector candidate derivation, two motion vector candidates are finally derived based on the motion vector of each PU located at five different positions, such as Figure 8 Depicted.
[0108] For temporal motion vector candidate derivation, one motion vector candidate is selected from two candidates derived based on two different collocated positions. After generating the first list of first spatio-temporal candidates, duplicate motion vector candidates in the list are removed. If the number of possible candidates is greater than two, motion vector candidates whose reference picture index within the associated reference picture list is greater than 1 are removed from the list. If the number of spatio-temporal motion vector candidates is less than two, an additional zero motion vector candidate is added to the list.
[0109] 2.1.2.2. Spatial Motion Vector Candidates
[0110] In the derivation of spatial motion vector candidates, the Figure 2 Consider up to two candidates among the five possible candidates for PU derivation at the depicted position, those positions are the same as the position of the motion merge. The derivation order to the left of the current PU is defined as A 0 , A 1 , and the scaled A 0 , scaled A 1 The derivation order of the upper side of the current PU is defined as B 0 , B 1 , B 2 , scaled B 0 , scaled B 1 , scaled B 2Therefore, for each side, there are four cases that can be used as motion vector candidates, two of which do not require spatial scaling and two use spatial scaling.
[0111] The four different situations are summarized as follows:
[0112] No airspace scaling
[0113] -(1) Same reference picture list and same reference picture index (same POC)
[0114] -(2) Different reference picture lists, but same reference pictures (same POC)
[0115] Airspace scaling
[0116] -(3) Same reference picture list, but different reference pictures (different POC)
[0117] -(4) Different reference picture lists, and different reference pictures (different POC)
[0118] First check the case without spatial scaling, then with spatial scaling. When the POC is different between the reference picture of the neighboring PU and the reference picture of the current PU, spatial scaling is considered regardless of the reference picture list. If all PUs of the left candidate are unavailable or intra-coded, scaling of the upper motion vector is allowed to help parallel derivation of the left and upper MV candidates. Otherwise, spatial scaling is not allowed for the upper motion vector.
[0119] like Fig. 9 As depicted, in the spatial scaling process, the motion vectors of neighboring PUs are scaled in a similar manner as in the temporal scaling. The main difference is that the reference picture list and the index of the current PU are given as input; the actual scaling process is the same as the temporal scaling process.
[0120] 2.1.2.3. Temporal motion vector candidates
[0121] Except for the reference picture index derivation, all the processes used to derive the temporal merge candidate are the same as those used to derive the spatial motion vector candidate (see Figure 6 ). The reference picture index is signaled to the decoder.
[0122] 2.2. New inter-frame prediction method in JEM
[0123] 2.2.1 Motion vector prediction based on sub-CU
[0124] In JEM with QTBT (QuadTrees plus Binary Trees), each CU can have at most one motion parameter set for each prediction direction. Two sub-CU level motion vector prediction methods are considered in the encoder by dividing the large CU into sub-CUs and deriving the motion information of all sub-CUs of the large CU. The optional temporal motion vector prediction (ATMVP) method allows each CU to extract multiple motion information sets from multiple blocks smaller than the current CU in the collocated reference picture. In the Spatial-Temporal Motion Vector Prediction (STMVP) method, the motion vector of the sub-CU is recursively derived by using the temporal motion vector prediction value and the spatial neighboring motion vector.
[0125] In order to maintain a more accurate motion field for sub-CU motion prediction, motion compression of reference frames is currently disabled.
[0126] 2.2.1.1. Optional temporal motion vector prediction
[0127] In the optional temporal motion vector prediction (ATMVP) method, the temporal motion vector prediction (TMVP) is modified by extracting multiple sets of motion information (including motion vectors and reference indices) from blocks smaller than the current CU. Fig.10 As shown, a sub-CU is a square N×N block (N is set to 4 by default).
[0128] ATMVP predicts the motion vectors of sub-CUs within a CU in two steps. The first step is to use the so-called time domain vector to identify the corresponding block in the reference picture. The reference picture is also called the motion source picture. The second step is to divide the current CU into sub-CUs and obtain the motion vector and the reference index of each sub-CU from the block corresponding to each sub-CU, such as Fig.10 shown.
[0129] In the first step, the reference picture and the corresponding block are determined by the motion information of the spatial neighboring blocks of the current CU. In order to avoid the repeated scanning process of the neighboring blocks, the first Merge candidate in the Merge candidate list of the current CU is used. The first available motion vector and its associated reference index are set to the index of the temporal vector and the motion source picture. In this way, in ATMVP, the corresponding block can be identified more accurately than in TMVP, where the corresponding block (sometimes called the collocated block) is always in the lower right or center position relative to the current CU.
[0130] In the second step, the corresponding block of the sub-CU is identified by the time domain vector in the motion source picture by adding the time domain vector to the coordinates of the current CU. For each sub-CU, the motion information of its corresponding block (the minimum motion grid covering the center sample point) is used to derive the motion information of the sub-CU. After identifying the motion information of the corresponding N×N block, it is converted into the motion vector and reference index of the current sub-CU in the same way as the TMVP of HEVC, where motion scaling and other processes apply. For example, the decoder checks whether the low latency condition is met (that is, the POC of all reference pictures of the current picture is less than the POC of the current picture), and may use the motion vector MV x (motion vector corresponding to reference picture list X) to predict the motion vector MV of each sub-CU y (For example, where X equals 0 or 1, and Y equals 1-X).
[0131] 2.2.1.2. Spatial-Temporal Motion Vector Prediction (STMVP)
[0132] In this method, the motion vector of a sub-CU is recursively derived in raster scan order. Fig.11 This concept is illustrated in Figure 1. Let us consider an 8×8 CU, which contains four 4×4 sub-CUs: A, B, C, and D. The neighboring 4×4 blocks in the current frame are labeled a, b, c, and d.
[0133] The motion derivation of sub-CU A starts by identifying its two spatial neighbors. The first neighbor is the N×N block (block c) on the upper side of the sub-CUA. If this block c is not available or is intra-coded, check the other N×N blocks on the upper side of the sub-CU A (from left to right, starting with block c). The second neighbor is the block on the left side of the sub-CU A (block b). If block b is not available or is intra-coded, check the other blocks on the left side of the sub-CU A (from top to bottom, starting with block b). The motion information obtained from the adjacent blocks of each list is scaled to the first reference frame of the given list. Next, the temporal motion vector prediction value (TMVP) of sub-block A is derived by following the same process of TMVP derivation as specified by HEVC. The motion information of the collocated block at position D is extracted and scaled accordingly. Finally, after retrieving and scaling the motion information, all available motion vectors (up to 3) are averaged separately for each reference list. The average motion vector is assigned as the motion vector of the current sub-CU.
[0134] 2.2.1.3. Sub-CU motion prediction mode signaling
[0135] Sub-CU modes are enabled as additional Merge candidates, and no additional syntax elements are required to signal these modes. Two additional Merge candidates are added to the Merge candidate list of each CU to represent ATMVP mode and STMVP mode. If the sequence parameter set indicates that ATMVP and STMVP are enabled, up to seven Merge candidates can be used. The encoding and decoding logic of the additional Merge candidates is the same as the encoding logic of the Merge candidates in HM, which means that for each CU in a P slice or B slice, two RD checks may be required for the two additional Merge candidates.
[0136] In JEM, all bins of the Merge index are context-coded by CABAC, whereas in HEVC, only the first bin is context-coded, and the remaining bins are context-bypass coded.
[0137] 2.2.2. Pairwise Average Candidates
[0138] The pairwise average candidate is generated by averaging the predefined candidate pairs in the current Merge candidate list, and the predefined pairs are defined as {(0,1),(0,2),(1,2),(0,3),(1,3),(2,3)}, where these numbers represent the Merge index of the Merge candidate list. The average motion vector is calculated separately for each reference list. If two motion vectors are available in one list, they are averaged even if they point to different reference pictures; if only one motion vector is available, the motion vector is used directly; if no motion vector is available, the list is kept invalid. The pairwise average candidate replaces the combined candidate in the HEVC standard.
[0139] The complexity analysis of the pairwise average candidates is summarized in Table 1. For the worst case of additional computation for averaging (last column in Table 1), each pair requires 4 additions and 4 shifts (MVx and MVy in L0 and L1), and each pair requires 4 reference index comparisons (refIdx0 is valid in L0 and L1, and refIdx1 is valid). There are 6 pairs, for a total of 24 additions, 24 shifts, and 24 reference index comparisons. The combined candidate pairs in the HEVC standard use 2 reference index comparisons per pair (refIdx0 is valid in L0, and refIdx1 is valid in L1), and there are 12 pairs, for a total of 24 reference index comparisons.
[0140] Table 1: Operational analysis of pairwise average candidates
[0141]
[0142] 2.2.3. Planar motion vector prediction
[0143] In JVET-K0135, planar motion vector prediction is proposed.
[0144] In order to generate a smooth fine-grained motion field, Fig.12 A brief description of the planar motion vector prediction process is given.
[0145] Planar motion vector prediction is achieved by averaging horizontal and vertical linear interpolation on a 4×4 block basis as shown below.
[0146] P(x,y)=(H×P h (x,y)+W×P v (x,y)+H×W) / (2×H×W) Equation (1)
[0147] W and H represent the width and height of the block. (x,y) is the coordinate of the current sub-block relative to the upper left sub-block. All distances are expressed as pixel distance divided by 4. P(x,y) is the motion vector of the current sub-block.
[0148] The horizontal prediction P at position (x,y) h (x,y) and vertical prediction P v (x,y) is calculated as follows:
[0149] P h (x,y)=(W-1-x)×L(-1,y)+(x+1)×R(W,y) Equation (2)
[0150] P v (x,y)=(H-1-y)×A(x,-1)+(y+1)×B(x,H) Equation (3)
[0151] Where L(-1,y) and R(W,y) are the motion vectors of the 4×4 blocks on the left and right of the current block. A(x,-1) and B(x,H) are the motion vectors of the 4×4 blocks on the top and bottom of the current block.
[0152] The reference motion information of the left column and the upper row neighboring blocks are derived from the spatial neighboring blocks of the current block.
[0153] The reference motion information of neighboring blocks in the right column and bottom row is derived as follows.
[0154] (1) Derivation of motion information of the adjacent 4×4 block in the lower right temporal domain
[0155] (2) Using the derived motion information of the lower right adjacent 4×4 block and the motion information of the upper right adjacent 4×4 block, the motion vector of the right column adjacent 4×4 block is calculated as described in the following equation (4).
[0156] (3) Using the derived motion information of the lower right adjacent 4×4 block and the motion information of the lower left adjacent 4×4 block, the motion vector of the bottom row adjacent 4×4 block is calculated as described in equation (5).
[0157] R(W,y)=((Hy-1)×AR+(y+1)×BR) / H Equation (4)
[0158] B(x,H)=((Wx-1)×BL+(x+1)×BR) / W Equation (5)
[0159] Where AR is the motion vector of the upper right spatially adjacent 4×4 block, BR is the motion vector of the lower right temporally adjacent 4×4 block, and BL is the motion vector of the lower left spatially adjacent 4×4 block.
[0160] The motion information obtained from neighboring blocks of each list is scaled to the first reference picture of the given list.
[0161] 2.2.4 Adaptive Motion Vector Difference Resolution
[0162] In HEVC, when use_integer_mv_flag in the slice header is equal to 0, the motion vector difference (MVD) (between the PU's motion vector and the predicted motion vector) is signaled in units of quarter luma samples. In JEM, Locally Adaptive Motion Vector Resolution (LAMVR) is introduced. In JEM, MVD can be encoded and decoded in units of quarter luma samples, integer luma samples, or four luma samples. The MVD resolution is controlled at the codec unit (CU) level, and the MVD resolution flag is conditionally signaled for each CU with at least one non-zero MVD component.
[0163] For a CU with at least one non-zero MVD component, a first flag is signaled to indicate whether quarter luma sample MV precision is used in the CU. When 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 quad luma sample MV precision is used.
[0164] When the first MVD resolution flag of the CU is zero or the CU is not coded / decoded (meaning that all MVDs in the CU are zero), the quarter-luma sample MV resolution is used for the CU. When the CU uses integer luma sample MV precision or quad-luma sample MV precision, the MVP in the AMVP candidate list of the CU is rounded to the corresponding precision.
[0165] In the encoder, CU-level RD checking is used to determine which MVD resolution to use for the CU. That is, for each MVD resolution, three CU-level RD checks are performed. To speed up the encoder, the following coding scheme is applied in JEM:
[0166] · During the RD check of a CU with normal quarter-luma sample MVD resolution, the motion information (integer luma sample precision) of the current CU is stored. The stored motion information (after rounding) is used as the starting point for further small-range motion vector refinement during the RD check of the same CU with integer luma sample and 4-luma sample MVD resolutions, so that the time-consuming motion estimation process is not repeated three times.
[0167] · Conditionally call the RD check of a CU with 4-luma sample MVD resolution. For a CU, when the RD cost of the integer luma sample MVD resolution is much larger than the RD cost of the quarter-luma sample MVD resolution, skip the RD check of the 4-luma sample MVD resolution of the CU.
[0168] The encoding process is as Fig.13 shown. First, test the 1 / 4 pixel MV, calculate the RD cost and denote it as RDCost0, then test the integer MV, and the RD cost is denoted as RDCost1. If RDCost1 < th * RDCost0 (where th is a positive value), then test the 4-pixel MV; otherwise, skip the 4-pixel MV. Basically, when checking the integer or 4-pixel MV, the motion information and RD cost of the 1 / 4 pixel MV are already known, and the motion information and RD cost can be reused to accelerate the encoding process of the integer or 4-pixel MV.
[0169] 2.2.5. Higher motion vector storage precision
[0170] In HEVC, the motion vector precision is one quarter pixel (for 4:2:0 video, one quarter luma sample and one eighth chroma sample). In JEM, the precision of the internal motion vector storage and Merge candidates is increased to 1 / 16 pixel. The higher motion vector precision (1 / 16 pixel) is used for motion compensated inter prediction of CUs coded / decoded in skip / Merge mode. As described in Section 2.2.2, for CUs coded / decoded in normal AMVP mode, integer pixel or quarter pixel motion is used.
[0171] The SHVC upsampling interpolation filter with the same filter length and normalization factor as the HEVC motion compensation interpolation filter is used as the motion compensation interpolation filter for the additional fractional pixel positions. In JEM, the chroma component motion vector accuracy is 1 / 32 samples, and the additional interpolation filter for the 1 / 32 pixel fractional position is derived by averaging the filters of two adjacent 1 / 16 pixel fractional positions.
[0172] 2.2.6. Overlapped Block Motion Compensation
[0173] Overlapped block motion compensation (OBMC) was previously used in H.263. In JEM, unlike H.263, OBMC can be turned on and off using CU-level syntax. When OBMC is used in JEM, OBMC is performed on all motion compensation (MC) block boundaries except the right and bottom boundaries of the CU. In addition, it is applied to both luminance and chrominance components. In JEM, an MC block corresponds to a codec block. When a CU is encoded and decoded in sub-CU mode, including Sub-CU Merge, Affine, and FRUC (Frame Rate Up Conversion) modes, each sub-block of the CU is an MC block. In order to handle CU boundaries in a unified manner, OBMC is performed on all MC block boundaries at the sub-block level, where the sub-block size is set equal to 4×4, as Fig.14 shown.
[0174] When OBMC is applied to the current sub-block, in addition to the current motion vector, the motion vectors of four connected neighboring sub-blocks (if available and different from the current motion vector) are also used to derive the prediction block of the current sub-block. These multiple prediction blocks based on multiple motion vectors are combined to generate the final prediction signal of the current sub-block.
[0175] The prediction block based on the motion vector of the neighboring sub-block is denoted as P N , where N represents the index of the adjacent upper, lower, left and right sub-blocks, and the prediction block based on the motion vector of the current sub-block is represented as P C When P N When the motion information of the neighboring sub-block is based on the motion information of the current sub-block, OBMC is not N Otherwise, P N Each sample point is added to P C In the same point in the same N Four rows / columns are added to P C The weighting factors {1 / 4, 1 / 8, 1 / 16, 1 / 32} are used for P N, and weighting factors {3 / 4, 7 / 8, 15 / 16, 31 / 32} are used for P C The exception is small MC blocks (i.e. when the height or width of the codec block is equal to 4 or the CU is coded in sub-CU mode), for which only P N Two rows / columns are added to P C In this case, the weighting factors {1 / 4, 1 / 8} are used for P N , and weighting factors {3 / 4, 7 / 8} are used for P C For P generated based on the motion vector of the vertically (horizontally) adjacent sub-block N , P N The samples in the same row (column) of P are added to P with the same weighting factor. C .
[0176] In JEM, for CUs with a size less than or equal to 256 luma samples, a CU level flag is signaled to indicate whether OBMC is applied to the current CU. For CUs with a size greater than 256 luma samples or not encoded in AMVP mode, OBMC is applied by default. At the encoder, when OBMC is applied to a CU, its impact is taken into account during the motion estimation stage. The prediction signal formed by OBMC using the motion information of the top neighboring block and the left neighboring block is used to compensate the upper and left boundaries of the original signal of the current CU, and then the normal motion estimation process is applied.
[0177] 2.2.7. Local illumination compensation
[0178] Local illumination compensation (LIC) is based on a linear model of illumination variation using a scaling factor a and an offset b, and is adaptively enabled or disabled for each codec unit (CU) of inter-mode coding.
[0179] When LIC is applied to a CU, the least square error method is used to derive parameters a and b by using the neighboring samples of the current CU and its corresponding reference samples. More specifically, Fig.15 As shown, the subsampling (2:1 subsampling) neighboring samples and corresponding samples (identified by the motion information of the current CU or sub-CU) in the reference picture are used. The IC parameters are derived and applied to each prediction direction separately.
[0180] When the CU is encoded or decoded in Merge mode, the LIC flag is copied from the neighboring block in a manner similar to the motion information copying in Merge mode; otherwise, the LIC flag is signaled for the CU to indicate whether LIC is applied.
[0181] When LIC is enabled for a picture, an additional CU-level RD check is required to determine whether LIC is applied to the CU. When LIC is enabled for a CU, the Mean-Removed Sum of Absolute Difference (MR-SAD) and the Mean-Removed Sum of AbsoluteHadamard-Transformed Difference (MR-SATD) (instead of SAD and SATD) are used for integer pixel motion search and fractional pixel motion search, respectively.
[0182] To reduce coding complexity, the following coding scheme is applied in JEM. When there is no significant illumination change between the current picture and its reference pictures, LIC is disabled for the entire picture. To identify this situation, the histogram of the current picture and each reference picture of the current picture is calculated at the encoder. If the histogram difference between the current picture and each reference picture of the current picture is less than a given threshold, LIC is disabled for the current picture; otherwise, LIC is enabled for the current picture.
[0183] 2.2.8. Hybrid Intra- and Inter-Prediction
[0184] In JVET-L0100, multi-hypothesis prediction is proposed, where hybrid intra-frame and inter-frame prediction is a way to generate multiple hypotheses.
[0185] When multi-hypothesis prediction is applied to improve intra mode, multi-hypothesis prediction combines an intra prediction and a Merge index prediction. In a Merge CU, a flag is signaled for the Merge mode to select the intra mode from the intra candidate list when the flag is true. For the luminance component, the intra candidate list is derived from 4 intra prediction modes including DC mode, planar mode, horizontal mode and vertical mode, and the size of the intra candidate list can be 3 or 4, depending on the block shape. When the CU width is greater than twice the CU height, the horizontal mode is not included in the intra mode list, and when the CU height is greater than twice the CU width, the vertical mode is removed from the intra mode list. Weighted averaging is used to combine an intra prediction mode selected by the intra mode index and a Merge index prediction selected by the Merge index. For chrominance components, DM is always applied without additional signaling. The weights used for combined prediction are described as follows. When DC mode or planar mode is selected, or the CB width or height is less than 4, equal weights are applied. For those CBs whose CB width and height are greater than or equal to 4, when horizontal / vertical mode is selected, a CB is first divided vertically / horizontally into four equal-area regions. Each weight set, denoted as (w_intra i, w_inter i ), where i ranges from 1 to 4, and (w_intra 1 , w_inter 1 ) = (6, 2), (w_intra 2 , w_inter 2 ) = (5, 3), (w_intra 3 , w_inter 3 ) = (3, 5), and (w_intra 4 , w_inter 4 ) = (2, 6) will be applied to the corresponding regions. (w_intra 1 , w_inter 1 ) is used for the region closest to the reference sample, and (w_intra 4 , w_inter 4 ) is used for the region farthest from the reference sample. Then, the combined prediction can be calculated by adding the two weighted predictions and shifting the result right by 3 bits. Additionally, the intra prediction mode of the predicted value's intra hypothesis can be saved for later reference by neighboring CUs.
[0186] 2.2.9. Triangle Prediction Unit Mode
[0187] The concept of the triangle prediction unit mode is to introduce a new triangle partitioning for motion compensation prediction. As Fig.16 shown, it divides the CU into two triangle prediction units (PUs) along the diagonal or anti - diagonal direction. Each triangle prediction unit in the CU is inter - predicted using its own unidirectional prediction motion vector and reference frame index, which are derived from the unidirectional prediction candidate list. After predicting the triangle prediction units, an adaptive weighting process is performed on the diagonal edges. Then, the transform and quantization processes are applied to the entire CU. Note that this mode is only applicable to the skip mode and the Merge mode.
[0188] Unidirectional Prediction Candidate List
[0189] The unidirectional prediction candidate list includes five unidirectional prediction motion vector candidates. It is derived from seven neighboring blocks, including five spatial neighboring blocks (1 to 5) and two temporal collocated blocks (6 to 7), as Fig.17 shown. The motion vectors of the seven neighboring blocks are collected and placed in the unidirectional prediction candidate list in the order of the unidirectional prediction motion vector, the L0 motion vector of the bi - directional prediction motion vector, the L1 motion vector of the bi - directional prediction motion vector, and the average motion vector of the L0 motion vector and the L1 motion vector of the bi - directional prediction motion vector. If the number of candidates is less than five, zero motion vectors are added to the list.
[0190] Adaptive weighting process
[0191] After predicting each triangle prediction unit, an adaptive weighting process is applied to the diagonal edges between two triangle prediction units to derive the final prediction for the entire CU. The two weighting factor groups are listed below:
[0192] The first weighting factor group: {7 / 8, 6 / 8, 4 / 8, 2 / 8, 1 / 8} and {7 / 8, 4 / 8, 1 / 8} are used for luma and chroma samples respectively;
[0193] The second weighting factor group: {7 / 8, 6 / 8, 5 / 8, 4 / 8, 3 / 8, 2 / 8, 1 / 8} and {6 / 8, 4 / 8, 2 / 8} are used for luma and chroma samples respectively.
[0194] A weighting factor set is selected based on the comparison of the motion vectors of the two triangle prediction units. When the reference pictures of the two triangle prediction units are different from each other or the difference of their motion vectors is greater than 16 pixels, the second weighting factor set is used. Otherwise, the first weighting factor set is used. For example Fig.18 shown.
[0195] Motion vector storage
[0196] Motion vector of triangle prediction unit ( Fig.19 Mv1 and Mv2 in 4×4 grid are stored in 4×4 grids. For each 4×4 grid, whether to store unidirectional prediction motion vectors or bidirectional prediction motion vectors depends on the position of the 4×4 grid in the CU. Fig.19 As shown, a unidirectional prediction motion vector Mv1 or Mv2 is stored for a 4×4 grid located in a non-weighted area. On the other hand, a bidirectional prediction motion vector is stored for a 4×4 grid located in a weighted area. The bidirectional prediction motion vector is derived from Mv1 and Mv2 according to the following rule:
[0197] 1. In the case where Mv1 and Mv2 have motion vectors from different directions (L0 or L1), Mv1 and Mv2 are simply combined to form a bidirectional prediction motion vector.
[0198] 2. In the case where both Mv1 and Mv2 come from the same L0 (or L1) direction,
[0199] 2.a. If the reference picture of Mv2 is the same as the picture in the L1 (or L0) reference picture list, Mv2 is scaled to that picture. Mv1 and the scaled Mv2 are combined to form a bidirectional prediction motion vector.
[0200] 2.b. If the reference picture of Mv1 is the same as the picture in the L1 (or L0) reference picture list, Mv1 is scaled to that picture. The scaled Mv1 and Mv2 are combined to form a bidirectional prediction motion vector.
[0201] 2.c. Otherwise, only store Mv1 for the weighted region.
[0202] 2.2.10. Affine Motion Compensated Prediction
[0203] In HEVC, only the translational motion model is used for motion compensation prediction (MCP). In the real world, there are many kinds of motion, such as zooming in / out, rotation, perspective motion, and other irregular motions. In JEM, a simplified affine transformation motion compensation prediction is applied. Fig. 20 As shown, the affine motion field of a block is described by two control point motion vectors.
[0204] The motion vector field (MVF) of a block is described by the following equation:
[0205]
[0206] Where (v 0x ,v 0y ) is the motion vector of the upper left control point, (v 1x ,v 1y ) is the motion vector of the upper right control point.
[0207] To further simplify motion compensated prediction, sub-block based affine transformation prediction is applied. The sub-block size M×N is derived from equation (7), where MvPre is the motion vector fractional precision (1 / 16 in JEM), (v 2x ,v 2y ) is the motion vector of the lower left control point calculated according to equation (6).
[0208]
[0209] After M and N are derived from equation (7), if necessary, they should be adjusted downward to be divisors of w and h, respectively.
[0210] In order to derive the motion vector of each M×N sub-block, Fig.21 As shown, the motion vector of the center sample of each sub-block is calculated according to Equation 1 and rounded to 1 / 16 fractional precision. Then, the motion compensation interpolation filter mentioned in Section 2.2.5 is applied to generate the prediction of each sub-block using the derived motion vector.
[0211] After MCP, the high-precision motion vector of each sub-block is rounded and saved with the same precision as the normal motion vector.
[0212] 2.2.10.1.AF_INTER mode
[0213] In JEM, there are two affine motion modes: AF_INTER mode and AF_MERGE mode. For CUs with width and height greater than 8, AF_INTER mode can be applied. The affine flag at the CU level is signaled in the bitstream to indicate whether AF_INTER mode is used. In this mode, neighboring blocks are used to construct a pair of motion vectors {(v 0 , v 1 )|v 0 = {v A , v B , v c},v 1 = {v D , v E}} candidate list. Fig.23 As shown, v is selected from the motion vectors of block A, block B or block C. 0 . Scale the motion vector from the neighboring block according to the reference list and the relationship between the POC of the neighboring block's reference, the POC of the current CU's reference, and the POC of the current CU. And select v from neighboring blocks D and E 1 The method is similar. If the number of candidate lists is less than 2, the list is filled with motion vector pairs formed by copying each AMVP candidate. When the candidate list is greater than 2, the candidates are first sorted according to the consistency of adjacent motion vectors (the similarity of the two motion vectors in a pair of candidates), and only the first two candidates are retained. The RD cost check is used to determine which motion vector pair candidate is selected as the control point motion vector prediction (CPMVP) of the current CU. And the index indicating the position of the CPMVP in the candidate list is signaled in the bitstream. After determining the CPMVP of the current affine CU, affine motion estimation is applied and the control point motion vector (CPMV) is found. Then, the difference between CPMV and CPMVP is signaled in the bitstream.
[0214] In AF_INTER mode, when using the 4 / 6 parameter affine mode, 2 / 3 control points are required, and therefore 2 / 3 MVDs need to be encoded and decoded for these control points, such as Fig. 22 In JVET-K0337, it is proposed to derive MV as follows, that is, from mvd 0Predicted MVD 1 and mvd 2 .
[0215]
[0216]
[0217]
[0218] in mvd i and mv 1 are the predicted motion vector, motion vector difference and motion vector of the upper left pixel (i=0), upper right pixel (i=1) or lower left pixel (i=2), respectively. Fig. 22 Note that the addition of two motion vectors (e.g., mvA(xA, yA) and mvB(xB, yB)) is equal to the separate summation of the two components, i.e., newMV = mvA + mvB, and the two components of newMV are set to (xA + xB) and (yA + yB), respectively.
[0219] 2.2.10.2. Fast Affine ME Algorithm in AF_INTER Mode
[0220] In the affine mode, the MVs of 2 or 3 control points need to be determined jointly. Direct joint search of multiple MVs is computationally complex. A fast affine ME algorithm is proposed and applied to VTM / BMS.
[0221] The fast affine ME algorithm is described for a 4-parameter affine model, and the idea can be extended to a 6-parameter affine model.
[0222]
[0223]
[0224] Replacing (a-1) with a', the motion vector can be rewritten as:
[0225]
[0226] Assuming the motion vectors of the two control points (0,0) and (0,w) are known, we can derive the affine parameters from equation (13):
[0227]
[0228] The motion vector can be rewritten in vector form as:
[0229]
[0230] in
[0231]
[0232]
[0233] P = (x, y) is the pixel position.
[0234] At the encoder, the MVD of AF_INTER is derived iteratively. i (P) is the MV derived in the i-th iteration at position P, and dMV C i It is represented as MV in the i-th iteration C Updated deviation. Then, in the (i+1)th iteration,
[0235]
[0236]
[0237] Pic ref Indicated as a reference picture, and Pic cur Represents the current picture, and represents Q = P + MV i (P). Assuming we use MSE as the matching criterion, we need to minimize:
[0238]
[0239] Assumptions Small enough, we can rewrite it approximately using the first-order Taylor expansion as follows.
[0240]
[0241] in, Indicates E i+1 (P)=Pic cur (P)-Pic ref (Q),
[0242] We can deduce this by setting the derivative of the error function to zero Then, according to
[0243]
[0244]
[0245]
[0246]
[0247] To calculate the deviation MV of the control points (0,0) and (0,w).
[0248] Assuming that such an MVD derivation process is iterated n times, the final MVD is calculated as follows:
[0249]
[0250]
[0251]
[0252]
[0253] Using JVET-K0337, that is, from mvd 0 The deviation MV of the control point (0,0) is predicted by mvd 1 The deviation MV of the control point (0, w) is actually only for mvd 1 coding
[0254] AF_MERGE Mode
[0255] When a CU is applied in AF_MERGE mode, it obtains the first block encoded and decoded in affine mode from the valid adjacent reconstructed blocks. And the selection order of candidate blocks is from left, top, top right, bottom left to top left, such as Fig.24A As shown, the motion vectors v of the upper left corner, upper right corner, and lower left corner of the CU containing block A are derived. 2 、v 3 and v 4 . And according to v 2 、v 3 and v 4 To calculate the motion vector v of the upper left corner of the current CU 0 Then, calculate the motion vector v of the upper right corner of the current CU 1 .
[0256] In deriving the CPMV v of the current CU 0 and v 1 Afterwards, the MVF of the current CU is generated according to the simplified affine motion model equation 1. In order to identify whether the current CU is coded or decoded in AF_MERGE mode, when there is at least one neighboring block coded or decoded in affine mode, an affine flag is signaled in the bitstream.
[0257] Fig.24A and Fig. 24B Example showing AF_MERGE candidates
[0258] In JVET-L0366, which is planned to be adopted into VTM 3.0, the affine merge candidate list is constructed by the following steps:
[0259] (1) Insert inherited affine candidates
[0260] An inherited affine candidate is one that is derived from the affine motion model of its valid neighboring affine codec blocks. In a common basis, such as Fig.25 As shown, the scanning order of candidate positions is: A1, B1, B0, A0 and B2.
[0261] After the candidates are derived, a full pruning process is performed to check if the same candidate has been inserted into the list. If there is an identical candidate, the derived candidate is discarded.
[0262] (2) Insert the constructed affine candidate
[0263] If the number of candidates in the affine Merge candidate list is less than MaxNumAffineCand (set to 5 in this disclosure), the constructed affine candidate is inserted into the candidate list. The constructed affine candidate refers to a candidate constructed by combining neighboring motion information of each control point.
[0264] The motion information of the control point is first obtained from Fig.25 The specified spatial and temporal neighbors are derived as shown. CPk (k = 1, 2, 3, 4) represents the kth control point. A0, A1, A2, B0, B1, B2 and B3 are the spatial locations of the predicted CPk (k = 1, 2, 3); T is the temporal location of the predicted CP4.
[0265] The coordinates of CP1, CP2, CP3 and CP4 are (0,0), (W,0), (H,0) and (W,H), respectively, where W and H are the width and height of the current block.
[0266] The motion information for each control point is obtained according to the following priority order:
[0267] For CP1, the priority of checking is B2->B3->A2. If B2 is available, use B2. Otherwise, if B2 is not available, use B3. If both B2 and B3 are not available, use A2. If all three candidates are not available, the motion information of CP1 cannot be obtained.
[0268] For CP2, the checking priority is B1->B0.
[0269] For CP3, the checking priority is A1->A0.
[0270] For CP4, use T.
[0271] Second, affine merge candidates are constructed using combinations of control points.
[0272] Constructing a 6-parameter affine candidate requires motion information of three control points. The three control points can be selected from one of the following four combinations ({CP1, CP2, CP4}, {CP1, CP2, CP3}, {CP2, CP3, CP4}, {CP1, CP3, CP4}). The combination {CP1, CP2, CP3}, {CP2, CP3, CP4}, {CP1, CP3, CP4} will be converted into a 6-parameter motion model represented by the top left, top right, and bottom left control points.
[0273] Constructing a 4-parameter affine candidate requires motion information of two control points. These two control points can be selected from one of the following six combinations ({CP1,CP4},{CP2,CP3},{CP1,CP2},{CP2,CP4},{CP1,CP3},{CP3,CP4}). The combination {CP1,CP4},{CP2,CP3},{CP2,CP4},{CP1,CP3},{CP3,CP4} will be converted into a 4-parameter motion model represented by the top left and top right control points.
[0274] The combinations of constructed affine candidates are inserted into the candidate list in the following order:
[0275] {CP1,CP2,CP3}, {CP1,CP2,CP4}, {CP1,CP3,CP4}, {CP2,CP3,CP4}, {CP1,CP2}, {CP1,CP3}, {CP2,CP3}, {CP1,CP4}, {CP2,CP4}, {CP3,CP4}.
[0276] For a combined reference list X (X is 0 or 1), the reference index with the highest usage in the control point is selected as the reference index of list X, and the motion vector pointing to the difference reference picture will be scaled.
[0277] After the candidate is derived, a full pruning process is performed to check whether the same candidate has been inserted into the list. If there is an identical candidate, the derived candidate will be discarded.
[0278] (3) Fill with zero motion vectors
[0279] If the number of candidates in the affine merge candidate list is less than 5, zero motion vectors with zero reference index are inserted into the candidate list until the list is full.
[0280] 2.2.11. Pattern matching motion vector derivation
[0281] The Pattern Matched Motion Vector Derivation (PMMVD) mode is a special Merge mode based on the Frame Rate Up Conversion (FRUC) technology. In this mode, the motion information of the block is derived at the decoder instead of signaling the motion information of the block.
[0282] When the Merge flag of a CU is true, the FRUC flag is signaled to the CU. When the FRUC flag is false, the Merge index is signaled and the normal Merge mode is used. When the FRUC flag is true, an additional FRUC mode flag is signaled to indicate which method (bilateral matching or template matching) will be used to derive the motion information of the block.
[0283] On the encoder side, the decision on whether to use the FRUC Merge mode for a CU is based on the RD cost selection made for the normal Merge candidate. That is, two matching modes (bilateral matching and template matching) are detected for the CU by using the RD cost selection. The matching mode that causes the minimum cost is further compared with other CU modes. If the FRUC matching mode is the most effective mode, the FRUC flag is set to true for the CU and the relevant matching mode is used.
[0284] The motion derivation process in FRUC Merge mode has two steps: first, a motion search at the CU level is performed, and then motion refinement at the sub-CU level is performed. At the CU level, the initial motion vector of the entire CU is derived based on bilateral matching or template matching. First, a list of MV candidates is generated, and the candidate that causes the minimum matching cost is selected as the starting point for further CU-level refinement. Then, a local search based on bilateral matching or template matching is performed near the starting point, and the MV that causes the minimum matching cost is used as the MV of the entire CU. Subsequently, the motion information is further refined at the sub-CU level using the derived CU motion vector as the starting point.
[0285] For example, the following derivation process is performed for the W×H CU motion information derivation. In the first stage, the MV of the entire W×HCU is derived. In the second stage, the CU is further divided into M×M sub-CUs. The value of M is calculated as shown in (16), and D is a predefined partition depth, which is set to 3 by default in JEM. Then the MV of each sub-CU is derived.
[0286]
[0287] like Fig.26As shown, bilateral matching is used to derive the motion information of the current CU by finding the closest match between two blocks along the motion trajectory of the current CU in two different reference pictures. Under the assumption of continuous motion trajectory, the motion vectors MV0 and MV1 pointing to the two reference blocks should be proportional to the temporal distance (i.e. TD0 and TD1) between the current picture and the two reference pictures. As a special case, when the current picture is between the two reference pictures in the temporal domain and the temporal distance from the current picture to the two reference pictures is the same, bilateral matching becomes a mirror-based bidirectional MV.
[0288] like Fig. 27 As shown, template matching is used to derive the motion information of the current CU by finding the closest match between the template in the current picture (the top and / or left adjacent blocks of the current CU) and the block in the reference picture (the same size as the template). In addition to the aforementioned FRUC Merge mode, template matching is also applied to AMVP mode. In JEM, as done in HEVC, AMVP has two candidates. New candidates are derived through the template matching method. If the candidate newly derived by template matching is different from the first existing AMVP candidate, it is inserted at the beginning of the AMVP candidate list, and then the list size is set to 2 (meaning removing the second existing AMVP candidate). When applied to AMVP mode, only CU-level search is applied.
[0289] 2.2.11.1. CU-level MV candidate set
[0290] The MV candidates set at the CU level include:
[0291] (i) If the current CU is in AMVP mode, it is the original AMVP candidate,
[0292] (ii) All Merge candidates,
[0293] (iii) several MVs in the interpolated MV field introduced in Section 2.2.11.3,
[0294] (iv) Top and left neighboring motion vectors
[0295] When bilateral matching is used, each valid MV of the Merge candidate is used as input to generate an MV pair assuming bilateral matching. For example, in reference list A, one valid MV of the Merge candidate is (MVa, refa). Then, find the reference picture refb of its paired bilateral MV in other reference list B, so that refa and refb are on different sides of the current picture in the temporal domain. If such refb is not available in reference list B, refb is determined to be a reference different from refa, and its temporal distance to the current picture is the minimum in list B. After determining refb, MVb is derived by scaling MVa based on the temporal distance between the current picture and refa and refb.
[0296] The four MVs from the interpolated MV field are also added to the candidate list at the CU level. More specifically, the interpolated MVs at positions (0,0), (W / 2,0), (0,H / 2), and (W / 2,H / 2) of the current CU are added.
[0297] When FRUC is applied in AMVP mode, the original AMVP candidates are also added to the MV candidate set at the CU level.
[0298] At the CU level, for an AMVP CU, up to 15 MVs are added to the candidate list, and for a Merge CU, up to 13 MVs are added to the candidate list.
[0299] 2.2.11.2. MV Candidates at Sub-CU Level
[0300] The MV candidates set at the sub-CU level include:
[0301] (i) MV determined from CU-level search,
[0302] (ii) top, left, upper left, and upper right adjacent MVs,
[0303] (iii) a scaled version of the collocated MV from the reference image,
[0304] (iv) Up to 4 ATMVP candidates,
[0305] (v) A maximum of 4 STMVP candidates.
[0306] The scaled MV from the reference picture is derived as follows: All reference pictures in both lists are traversed. The MV at the collocated position of the sub-CU in the reference picture is scaled to the reference of the starting CU level MV.
[0307] ATMVP and STMVP candidates are limited to the top four.
[0308] At the sub-CU level, up to 17 MVs are added to the candidate list.
[0309] 2.2.11.3. Generation of interpolated MV fields
[0310] Before encoding and decoding the frame, an interpolated motion field is generated for the entire picture based on the single-sided ME. The motion field can then be used as a MV candidate at the CU level or sub-CU level later.
[0311] First, the motion fields of each reference picture in both reference lists are traversed at the 4×4 block level. For each 4×4 block, if the motion associated with the block passes through a 4×4 block in the current picture (e.g. Fig.28 As shown) and the block is not assigned any interpolated motion, the motion of the reference block is scaled to the current picture according to the temporal distances TD0 and TD1 (in the same way as the MV scaling of TMVP in HEVC), and the scaled motion is assigned to the block in the current frame. If no scaled MV is assigned to the 4×4 block, the motion of the block is marked as unavailable in the interpolated motion field.
[0312] 2.2.11.4. Interpolation and matching costs
[0313] When the motion vector points to a fractional sample position, motion compensated interpolation is required. To reduce complexity, bilinear interpolation is used for bilateral matching and template matching instead of conventional 8-tap HEVC interpolation.
[0314] The calculation of the matching cost is a little different at different steps. When selecting a candidate from the candidate set at the CU level, the matching cost is the absolute sum difference (SAD) of the bilateral match or template match. After determining the starting MV, the matching cost C of the bilateral match of the sub-CU level search is calculated as follows:
[0315]
[0316] where w is a weighting factor set to 4 based on experience, MV and MV s Indicates the current MV and the starting MV respectively. SAD is still used as the matching cost of template matching for sub-CU level search.
[0317] In FRUC mode, MV is derived by using luma samples only. The derived motion will be used for both luma and chroma for MC inter prediction. After the MV is determined, the final MC is performed using an 8-tap interpolation filter for luma and a 4-tap interpolation filter for chroma.
[0318] 2.2.11.5.MV refinement
[0319] MV refinement is a pattern-based MV search with bilateral matching cost or template matching cost as the criterion. In JEM, two search modes are supported—Unrestricted Center-Biased Diamond Search (UCBDS) and Adaptive Cross Search, for MV refinement at CU level and sub-CU level, respectively. For both MV refinement at CU and sub-CU levels, the MV is searched directly with quarter-luminance sample MV precision, followed by one-eighth-luminance sample MV refinement. The search range for MV refinement for CU and sub-CU steps is set equal to 8 luminance samples.
[0320] 2.2.11.6. Selection of prediction direction in template matching FRUC Merge mode
[0321] In bilateral matching Merge mode, bidirectional prediction is always applied because the motion information of the CU is derived based on the closest match between two blocks along the motion trajectory of the current CU in two different reference pictures. There is no such restriction for template matching Merge mode. In template matching Merge mode, the encoder can choose from unidirectional prediction in list 0, unidirectional prediction in list 1, or bidirectional prediction for the CU. The selection is based on the template matching cost as follows:
[0322] If costBi <= factor * min (cost0, cost1)
[0323] Bidirectional prediction is used;
[0324] Otherwise, if cost0 <= cost1
[0325] Then use the one-way prediction in list 0;
[0326] otherwise,
[0327] Use the one-way prediction in Listing 1;
[0328] Where cost0 is the SAD of template matching for list 0, cost1 is the SAD of template matching for list 1, and costBi is the SAD of template matching for bidirectional prediction. The value of factor is equal to 1.25, which means that the selection process is biased towards bidirectional prediction.
[0329] The inter prediction direction selection is only applied to the template matching process at the CU level.
[0330] 2.2.12. Generalized Bidirectional Prediction
[0331] In traditional bidirectional prediction, the prediction values from L0 and L1 are averaged with equal weight 0.5 to generate the final prediction value. The prediction value generation formula is shown in equation (32).
[0332] P TraditionalBiPred =(P L0 +P L1 +RoundingOffset)>>shiftNum Equation (32)
[0333] In equation (32), P TraditionalBiPred is the final prediction value of the traditional two-way prediction, P L0 and P L1 are the predicted values from L0 and L1 respectively, and RoundingOffset and shiftNum are used to normalize the final predicted value.
[0334] Generalized Bi-prediction (GBI) is proposed to allow different weights to be applied to the prediction values from L0 and L1. The prediction value generation is shown in equation (33).
[0335] P GBi =((1-w 1 )*P L0 +w 1 *P L1 +RoundingOffset GBi )>>shiftNum GBi Equation (33)
[0336] In equation (33), P GBi is the final predicted value of GBi, (1-w 1 ) and w 1 are the selected GBI weights applied to the prediction values of L0 and L1 respectively. GBi and shiftNum GBi It is used to normalize the final prediction value in GBi.
[0337] w 1 The supported weights are {-1 / 4, 3 / 8, 1 / 2, 5 / 8, 5 / 4}. One equal weight set and four unequal weight sets are supported. For the equal weight case, the process of generating the final prediction value is exactly the same as in the traditional bidirectional prediction mode. For the true bidirectional prediction case under random access (RA) conditions, the number of candidate weight sets is reduced to three.
[0338] For Advanced Motion Vector Prediction (AMVP) mode, if the CU is bi-predictive coded, the weight selection in GBI is explicitly signaled at the CU level. For Merge mode, the weight selection is inherited from the Merge candidate. In the proposed scheme, GBI supports weighted averaging of DMVR generated templates and the final prediction value of BMS-1.0.
[0339] 2.2.13. Multi-hypothesis inter-frame prediction
[0340] In the multi-hypothesis inter-frame prediction mode, in addition to the traditional unidirectional / bidirectional prediction signal, one or more additional prediction signals are signaled. The resulting overall prediction signal is obtained by weighted superposition on a sample-by-sample basis. uni / bi and the first additional inter-frame prediction signal / hypothesis h 3 , the generated prediction signal p 3 Obtained as follows:
[0341] p 3 =(1-α)p uni / bi +αh 3 Equation (34)
[0342] The changes to the prediction unit syntax are shown in bold in the following table:
[0343]
[0344] The weighting factor α is specified by the syntax element add_hyp_weight_idx according to the following mapping:
[0345] add_hyp_weight_idx α 0 1 / 4 1 -1 / 8
[0346] Note that for the additional prediction signal, the concept of prediction list 0 / list 1 is abolished and a combined list is used instead. The combined list is generated by alternately inserting reference frames from list 0 and list 1 with increasing reference indices, omitting reference frames that have already been inserted, thus avoiding double entries.
[0347] Similar to above, more than one additional prediction signal may be used. The resulting overall prediction signal is iteratively accumulated with each additional prediction signal.
[0348] p n+1 =(1-α n+1 ) n +α n+1 h n+1 Equation (35)
[0349] The resulting overall prediction signal is obtained as the final p n (i.e. p n has the largest index n).
[0350] Note that also for inter-prediction blocks using MERGE mode (rather than skip mode), additional inter-prediction signals may be specified. Also note that in the case of MERGE, not only uni / bi-prediction parameters but also additional prediction parameters of the selected Merge candidate may be used for the current block.
[0351] 2.2.14.Multiple Hypothesis Prediction of One-Way Prediction in AMVP Model
[0352] When multi-hypothesis prediction is applied to improve the unidirectional prediction of AMVP mode, a flag is signaled to enable or disable multi-hypothesis prediction with inter_dir equal to 1 or 2, where 1, 2, and 3 represent list 0, list 1, and bidirectional prediction, respectively. In addition, when the flag is true, another Merge index is signaled. In this way, multi-hypothesis prediction turns unidirectional prediction into bidirectional prediction, where one motion is obtained using the original syntax elements in AMVP mode and the other motion is obtained using the Merge scheme. The final prediction combines the two predictions into a bidirectional prediction using a 1:1 weight. The Merge candidate list is first derived from the Merge mode, excluding sub-CU candidates (e.g., affine, alternative temporal motion vector prediction (ATMVP)). Next, it is separated into two separate lists, one for List 0 (L0) containing all L0 motions from the candidates, and the other for List 1 (L1) containing all L1 motions. After removing redundancy and filling gaps, two Merge lists are generated for L0 and L1, respectively. There are two constraints when applying multi-hypothesis prediction to improve AMVP mode. First, multi-hypothesis prediction is enabled for those CUs whose luma codec block (CB) area is greater than or equal to 64. Second, multi-hypothesis prediction is only applicable to L1 when in low-latency B pictures.
[0353] 2.2.15. Multi-hypothesis prediction in skip / merge mode
[0354] When multi-hypothesis prediction is applied to skip or merge mode, whether multi-hypothesis prediction is enabled is explicitly signaled. In addition to the original prediction, an additional Merge index prediction is selected. Therefore, each candidate of multi-hypothesis prediction implies a Merge candidate pair, in which one Merge candidate is used for the first Merge index prediction and the other Merge candidate is used for the second Merge index prediction. However, in each pair, the Merge candidate for the second Merge index prediction is implicitly derived as the subsequent Merge candidate (that is, the Merge index that has been signaled plus 1) without signaling any additional Merge index. After removing redundancy by excluding pairs containing similar Merge candidates and filling in the gaps, a candidate list for multi-hypothesis prediction is formed. Then, the motion from the pair of two Merge candidates is obtained to generate the final prediction, where 5:3 weights are applied to the first Merge index prediction and the second Merge index prediction, respectively. In addition, a Merge or skip CU with multi-hypothesis prediction enabled can save motion information of additional hypotheses in addition to the motion information of existing hypotheses for reference by subsequent adjacent CUs. Note that sub-CU candidates (e.g., affine, ATMVP) are excluded from the candidate list, and multi-hypothesis prediction is not applicable to skip mode for low-latency B pictures. In addition, when multi-hypothesis prediction is applied to Merge or Skip mode, for those CUs whose CU width or CU height is less than 16, or those CUs whose CU width and CU height are both equal to 16, bilinear interpolation filters are used for multi-hypothesis motion compensation. Therefore, the worst-case bandwidth (access samples required per sample) of each Merge or Skip CU with multi-hypothesis prediction enabled is calculated in Table 1, and each number is less than half of the worst-case bandwidth of each 4×4 CU with multi-hypothesis prediction disabled.
[0355] 2.2.16. Final motion vector representation
[0356] The final motion vector representation (UMVE) is used in Skip or Merge mode using the proposed motion vector representation method.
[0357] UMVE reuses the same Merge candidates as those used in VVC. Among the Merge candidates, candidates can be selected and further extended by the proposed motion vector expression method.
[0358] UMVE provides a new motion vector expression with simplified signaling. The expression method includes the starting point, motion amplitude and motion direction.
[0359] Fig.29 An example of a UMVE search process is shown.
[0360] Fig.30An example of a UMVE search point is shown.
[0361] The proposed technique uses the Merge candidate list as is. However, for the extension of UMVE, only candidates of the default Merge type (MRG_TYPE_DEFAULT_N) are considered.
[0362] The basic candidate index defines the starting point. The basic candidate index indicates the best candidate among the candidates in Table 2, as shown below.
[0363] Table 2. Example base candidate IDX
[0364] Basic Candidate IDX 0 1 2 3 The Nth MVP First MVP Second MVP Third MVP Fourth MVP
[0365] If the number of basic candidates is equal to 1, the basic candidate IDX is not signaled.
[0366] The distance index is the motion amplitude information. The distance index indicates the predefined distance from the starting point information. The predefined distance is shown in Table 3 as follows:
[0367] Table 3. Example distances IDX
[0368]
[0369] The direction index indicates the direction of the MVD relative to the starting point. The direction index can indicate four directions as shown in Table 4 below.
[0370] Table 4. Example Direction IDX
[0371] Directions to IDX 00 01 10 11 x-axis + – N / A N / A y-axis N / A N / A + –
[0372] The UMVE flag is signaled immediately after the Skip flag and the Merge flag are sent. If the Skip and Merge flags are true, the UMVE flag is parsed. If the UMVE flag is equal to 1, the UMVE syntax is parsed. However, if it is not 1, the AFFINE flag is parsed. If the AFFINE flag is equal to 1, this is AFFINE mode, but if it is not 1, the Skip / Merge index is parsed for the Skip / Merge mode of the VTM.
[0373] No additional line buffering due to UMVE candidates is needed, because software's Skip / Merge candidates are used directly as base candidates. Using the input UMVE index, the complement of the MV is decided before motion compensation. No need to keep a long line buffer for this.
[0374] 2.2.17. Affine Merge Mode with Prediction Offset
[0375] UMVE is extended to the affine merge mode, which will also be referred to as the UMVE affine mode hereinafter. The proposed method selects the first available affine merge candidate as the base prediction value. Then, it applies the motion vector offset to the motion vector value of each control point from the base prediction value. If there is no available affine merge candidate, the proposed method is not used.
[0376] The inter prediction direction of the selected basic prediction value and the reference index for each direction are used without change.
[0377] In the current implementation, the affine model of the current block is assumed to be a 4-parameter model, and only 2 control points need to be derived. Therefore, only the first 2 control points of the basic prediction value will be used as the control point prediction value.
[0378] For each control point, the zero_MVD flag is used to indicate whether the control point of the current block has the same MV value as the corresponding control point prediction value. If the zero_MVD flag is true, no other signaling is required for the control point. Otherwise, the distance index and offset direction index are signaled for the control point.
[0379] A distance offset table of size 5 is used as shown in the following table. The distance index is signaled to indicate which distance offset is used. The mapping of distance index and distance offset value is shown in Table 5.
[0380] Table 5 - Example distance offset table
[0381] Distance DX 0 1 2 3 4 Distance Offset 1 / 2 pixel 1 pixel 2 pixels 4 pixels 8 pixels
[0382] Fig.31 An example of a distance index and distance offset mapping is shown.
[0383] The direction index can represent four directions as shown below, where only the x or y direction may have MV differences, but not both.
[0384] Offset direction IDX 00 01 10 11 x-dir-factor +1 –1 0 0 y-dir-factor 0 0 +1 –1
[0385] If inter prediction is unidirectional, the signaled distance offset is applied to the offset direction of the prediction value for each control point. The result will be the MV value for each control point.
[0386] For example, when the basic prediction value is unidirectional and the motion vector value of the control point is MVP (v px ,v py ). When the distance offset and direction index are signaled, the motion vector of the corresponding control point of the current block will be calculated as follows.
[0387] MV(v x ,v y )=MVP(vpx ,v py )+MV(x-dir-factor*distance-offset,y-dir-factor*distance-offset) Equation (36)
[0388] If inter prediction is bidirectional, the signaled distance offset is applied in the signaled offset direction of the L0 motion vector of the control point prediction value; and the same distance offset with the opposite direction is applied to the L1 motion vector of the control point prediction value. The result will be the MV value of each control point in each inter prediction direction.
[0389] For example, when the basic prediction value is unidirectional and the motion vector value of the control point on L0 is MVP L0 (v 0px ,v 0py ), and the motion vector of the control point on L1 is MVP L1 (v 1px ,v 1py ). When the distance offset and direction index are signaled, the motion vector of the corresponding control point of the current block will be calculated as follows.
[0390] MV L0 (v 0x ,v 0y )=MVP L0 (v 0px ,v 0py )+MV(x-dir-factor*distance-offset,y-dir-factor*distance-offset) Equation (37)
[0391] MV L1 (v 0x ,v 0y )=MVP L1 (v 0px ,v 0py )+MV(-x-dir-factor*distance-offset,-y-dir-factor*distance-offset) Equation (38)
[0392] 2.2.18. Bidirectional optical flow
[0393] Bi-directional optical flow (BIO) is a sample-by-sample motion refinement that is performed on the basis of block-by-block motion compensation for bi-directional prediction. Sample-level motion refinement does not use signaling.
[0394] Hypothesis I(k) is the luminance value from reference k (k=0,1) after block motion compensation, and I (k) The horizontal and vertical components of the gradient. Assuming that the optical flow is valid, the motion vector field (v x ,v y ) is given by the following equation:
[0395]
[0396] Combine the optical flow equation with Hermite interpolation to obtain the motion trajectory of each sample point, and finally get the function value I (k) and derivatives The only third-order polynomial that matches is the BIO prediction:
[0397]
[0398] Here, τ 0 and τ 1 represents the distance to the reference frame, such as Fig.31 As shown. Distance τ 0 and τ 1 Based on Ref 0 and Ref 1 POC calculation: τ 0 =POC(current)-POC(Ref0), τ 1 =POC(Ref1)-POC(current). If the two predictions come from the same temporal direction (either both from the past or both from the future), the signals are different (i.e., τ 0 ·τ 1 <0). In this case, the predictions are only valid if they are not from the same moment (i.e., τ 0 ≠τ 1 ), both reference regions have non-zero motion (MVx 0 , MVy 0 , MVx 1 , MVy 1 ≠0), and the block motion vector is proportional to the temporal distance (MVx 0 / MVx 1 =MVy 0 / MVy 1 =-τ 0 / τ 1 ), BIO is only applied when
[0399] By minimizing the distance between points A and B ( Fig.32 The motion vector field (vx , v y ). The model uses only the first linear term of the local Taylor expansion for Δ:
[0400]
[0401] All values in equation (40) depend on the sample point position (i′, j′), which has been ignored from the sign so far. Assuming that the motion is consistent in the local surrounding area, we minimize Δ within a (2M+1)×(2M+1) square window Ω centered at the current prediction point (i, j), where M equals 2:
[0402]
[0403] For this optimization problem, JEM uses a simplified approach, first minimizing in the vertical direction and then minimizing in the horizontal direction. This yields:
[0404]
[0405]
[0406] in,
[0407]
[0408]
[0409]
[0410] To avoid division by zero or very small values, regularization parameters r and m are introduced into equations (43) and (44).
[0411] r=500·4 d-8 Equation (46)
[0412] m=700·4 d-8 Equation (47)
[0413] Here d is the bit depth of the video samples.
[0414] To keep the memory access of BIO the same as for regular bi-predictive motion compensation, all predictions and gradient values are only calculated for the positions inside the current block. In equation (45), the (2M+1)×(2M+1) square window Ω centered at the current prediction point on the boundary of the prediction block needs to access the positions outside the block (such as Fig.33A In JEM, the block outside The value of is set equal to the nearest available value inside the block. For example, this can be implemented as padding, such as Fig.33B shown.
[0415] Using BIO, it is possible to refine the motion field for each sample. To reduce the computational complexity, a block-based BIO design is used in JEM. The motion refinement is calculated based on a 4×4 block. In the block-based BIO, s in Equation 30 is aggregated over all samples in the 4×4 block. n value, then s n The aggregated value of is used to derive the BIO motion vector offset for the 4×4 block. More specifically, the following formula is used for block-based BIO derivation:
[0416]
[0417] where b k represents the sample set of the kth 4×4 block belonging to the prediction block. n ((s n,bk )>>4) instead to derive the associated motion vector offset.
[0418] In some cases, the MV refinement of BIO may be unreliable due to noise or irregular motion. Therefore, in BIO, the amplitude of MV refinement is clipped to a threshold thBIO. The threshold is determined based on whether the reference pictures of the current picture are all from one direction. If all the reference pictures of the current picture are from one direction, the threshold is set to 12×2 14-d ; otherwise, it is set to 12×2 13-d .
[0419] The gradient of the BIO is calculated simultaneously with the motion compensated interpolation using an operation consistent with the HEVC motion compensation process (2D separable FIR). The input to this 2D separable FIR is the same reference frame samples as the motion compensation process and the fractional positions (fracX, fracY) according to the fractional part of the block motion vector. In the case of , the signal is first interpolated vertically using BIOfilterS corresponding to the fractional position fracY with a descaling offset d-8, and then a gradient filter BIOfilterG corresponding to the fractional position fracX with a descaling offset 18-d is applied in the horizontal direction. In the case of , the gradient filter is first applied vertically using BIOfilterG corresponding to the fractional position fracY with the descaling offset d-8, and then the signal displacement is performed in the horizontal direction using BIOfilterS corresponding to the fractional position fracX with the descaling offset 18-d. The length of the interpolation filter BIOfilterG for gradient calculation and BIOfilterF for signal displacement is short (6 taps) in order to maintain a reasonable complexity. Table 6 shows the filters for gradient calculation of different fractional positions of block motion vectors in BIO. Table 7 shows the interpolation filters for prediction signal generation in BIO.
[0420] Table 6: Example filters for gradient calculation in BIO
[0421] Fractional pixel position Gradient interpolation filter (BIOfilterG) 0 {8,-39,-3,46,-17,5} 1 / 16 {8,-32,-13,50,-18,5} 1 / 8 {7,-27,-20,54,-19,5} 3 / 16 {6,-21,-29,57,-18,5} 1 / 4 {4,-17,-36,60,-15,4} 5 / 16 {3,-9,-44,61,-15,4} 3 / 8 {1,-4,-48,61,-13,3} 7 / 16 {0,1,-54,60,-9,2} 1 / 2 {-1,4,-57,57,-4,1}
[0422] Table 7: Example interpolation filters for prediction signal generation in BIO
[0423] Fractional pixel position Interpolation filter for prediction signal (BIOfilterS) 0 {0,0,64,0,0,0} 1 / 16 {1,-3,64,4,-2,0} 1 / 8 {1,-6,62,9,-3,1} 3 / 16 {2,-8,60,14,-5,1} 1 / 4 {2,-9,57,19,-7,2} 5 / 16 {3,-10,53,24,-8,2} 3 / 8 {3,-11,50,29,-9,2} 7 / 16 {3,-11,44,35,-10,3} 1 / 2 {3,-10,35,44,-11,3}
[0424] In JEM, BIO is applied to all bidirectional prediction blocks when the two predictions come from different reference pictures. BIO is disabled when LIC is enabled for a CU.
[0425] In JEM, OBMC is applied to the block after the normal MC process. To reduce the computational complexity, BIO is not applied during the OBMC process. This means that BIO is only applied to the MC process of a block when using its own MV, and BIO is not applied to the MC process when using the MV of a neighboring block during the OBMC process.
[0426] 2.2.19. Decoder-side motion vector refinement
[0427] In the bidirectional prediction operation, for the prediction of a block region, two prediction blocks formed using the motion vectors (MVs) of list 0 and the MVs of list 1, respectively, are combined to form a single prediction signal. In the decoder-side motion vector refinement (DMVR) method, the two motion vectors of the bidirectional prediction are further refined by a bilateral template matching process. Bilateral template matching is applied in the decoder to perform a distortion-based search between the bilateral template and the reconstructed samples in the reference picture to obtain the refined MV without sending additional motion information.
[0428] In DMVR, the bilateral template is generated as a weighted combination (i.e., average) of two prediction blocks from the initial MV0 of list 0 and MV1 of list 1, respectively, as Fig.34As shown in FIG. 33 . The template matching operation includes calculating a cost metric between the generated template and the sample area (around the initial prediction block) in the reference picture. For each of the two reference pictures, the MV that produces the minimum template cost is considered to be the updated MV in the list to replace the original MV. In JEM, 9 MV candidates are searched for each list. The 9 candidate MVs include the original MV and 8 surrounding MVs, which are offset by one luminance sample relative to the original MV in the horizontal or vertical direction or both. Finally, two new MVs (i.e., MV0′ and MV1′), as shown in FIG. 33 , are used to generate the final bidirectional prediction result. The sum of absolute differences (SAD) is used as a cost metric. Please note that when calculating the cost of a prediction block generated by a surrounding MV, the rounded MV (rounded to integer pixels) is actually used to obtain the prediction block, not the actual MV.
[0429] DMVR is applied to the Merge mode of bi-directional prediction, where one MV comes from the past reference picture and the other comes from the future reference picture, without transmitting additional syntax elements. In JEM, DMVR is not applied when LIC, affine motion, FRUC or sub-CU Merge candidate is enabled for the CU.
[0430] 3. Related tools
[0431] 3.1.1. Diffusion filter
[0432] In JVET-L0157, a diffusion filter is proposed, where the intra / inter prediction signal of a CU can be further modified by a diffusion filter.
[0433] 3.1.1.1 Uniform diffusion filter
[0434] The uniform diffusion filter is constructed by dividing the prediction signal by a given value h I or IV This is achieved by convolving with a fixed mask (defined below).
[0435] In addition to the prediction signal itself, a row of reconstructed samples to the left and above the block is used as input for the filtered signal, where the use of these reconstructed samples in inter blocks can be avoided.
[0436] Let pred be the prediction signal on a given block obtained by intra-frame or motion compensated prediction. In order to handle the boundary points of the filter, the prediction signal needs to be expanded to the prediction signal pred extThis extended prediction can be formed in two ways: either, as an intermediate step, a row of reconstructed samples from the left and top of the block is added to the prediction signal and the resulting signal is then mirrored in all directions. Alternatively, only the prediction signal itself is mirrored in all directions. The latter extension is used for inter blocks. In this case, only the prediction signal itself consists of the extended prediction signal pred ext Input.
[0437] If you want to use the filter h I , then it is proposed to use h I *pred replaces the predicted signal pred, using the aforementioned boundary extension. Here, the filter mask h I Given as follows:
[0438]
[0439] If you want to use the filter h IV , then it is proposed to use h IV *pred replaces the predicted signal pred. Here, the filter h IV Given as follows:
[0440] h IV =h I *h I *h I *h I . Equation (50)
[0441] 3.1.1.2. Directional diffusion filter
[0442] Instead of using a signal adaptive diffusion filter, a directional filter is used, a horizontal filter h hor and the vertical filter h ver , which still has a fixed mask. More precisely, the corresponding mask h in the previous section I The uniform diffusion filtering is simply restricted to be applied only in the vertical direction or in the horizontal direction.
[0443]
[0444] is applied to the prediction signal to implement a straight filter, and by using the transposed mask to implement a horizontal filter.
[0445] 3.1.2. Bilateral filter
[0446] A bilateral filter was proposed in JVET-L0406 and is always applied to luma blocks with non-zero transform coefficients and slice quantization parameters greater than 17. Therefore, no signaling is required to use the bilateral filter. The bilateral filter, if applied, is performed on the decoded samples immediately after the inverse transform. In addition, the filter parameters (i.e., weights) are explicitly derived from the codec information.
[0447] The filtering process is defined as:
[0448]
[0449] Where P 0,0 is the intensity of the current sample point and P′ 0,0 is the modified intensity of the current sample point, P k,0 and W k are the intensity and weighting parameters of the kth neighboring sample point respectively. Fig.35 An example of a current sample point and its four neighboring sample points (ie, K=4) is depicted in FIG.
[0450] More specifically, the weight W associated with the kth neighboring sample point k (x) is defined as follows:
[0451] W k (x) = Distance k ×Range k (x) Equation (52)
[0452] in
[0453]
[0454]
[0455] σ d Depends on the codec mode and codec block size. The described filtering process is applied to intra-codec blocks and to inter-codec blocks when the TU is further partitioned to enable parallel processing.
[0456] In order to better capture the statistical characteristics of the video signal and improve the performance of the filter, the weight function generated by equation (52) is composed of the parameters σ listed in Table 8 d Adjust the parameter σ d Depends on the codec mode and block segmentation parameters (minimum size).
[0457] Table 8 σ for different block sizes and coding modes d Example value of
[0458] Min(block width, block height) Intra mode Interframe mode 4 82 62 8 72 52 other 52 32
[0459] To further improve the codec performance, for inter-frame codec blocks when TU is not divided, the intensity difference between the current sample and one of its neighboring samples is replaced by the representative intensity difference between two windows covering the current sample and the neighboring samples. Therefore, the filtering process equation is modified as follows:
[0460]
[0461] Where P k,m and P 0,m Indicated by P k,0 and P 0,0 The mth sample value in the window centered at . In this proposal, the window size is set to 3×3. Fig.36 The coverage P is depicted in 2,0 and P 0,0 Example of two windows.
[0462] 3.1.3. Intra-frame block copy
[0463] Decoder:
[0464] In some cases, the currently (partially) decoded picture is considered as a reference picture. The current picture is placed at the last position of reference picture list 0. Therefore, for slices that use the current picture as the only reference picture, its slice type is considered to be a P slice. The bitstream syntax in this approach follows the same syntax structure used for inter-frame coding and the decoding process is unified with inter-frame coding. The only prominent difference is that the block vector (which is a motion vector pointing to the current picture) always uses integer pixel resolution.
[0465] The changes from the block level CPR_flag method are:
[0466] 1. In the encoder search for this mode, the block width and height are both less than or equal to 16.
[0467] 2. When the luma block vector is odd, chroma interpolation is enabled.
[0468] 3. When the SPS flag is turned on, enable the adaptive motion vector resolution (AMVP) of CPR mode. In this case, when using AMVR, at the block level, the block vector can switch between 1 pixel integer resolution and 4 pixel integer resolution.
[0469] Encoder:
[0470] The encoder performs RD check on blocks with width or height not greater than 16. For non-Merge mode, a block vector search is first performed using a hash-based search. If no valid candidate is found in the hash search, a local search based on block matching is performed.
[0471] In hash-based search, the hash key matching (32-bit CRC) between the current block and the reference blocks is extended to all allowed block sizes. The hash key calculation for each position in the current picture is based on 4×4 blocks. For a current block of larger size, a hash key match with a reference block occurs when all of its 4×4 blocks match the hash keys in the corresponding reference positions. If multiple reference blocks are found to match the current block with the same hash key, the block vector cost of each candidate is calculated and the one with the smallest cost is selected.
[0472] In block matching search, the search range is set to 64 pixels to the left and top of the current block.
[0473] 3.1.4. History-based motion vector prediction
[0474] PCT Application No. PCT / CN2018 / 093987, filed on July 2, 2018, and entitled “MOTION VECTOR PREDICTION BASED ON LOOK-UPTABLES,” the contents of which are incorporated herein by reference, describes one or more lookup tables in which at least one motion candidate is stored to predict motion information of a block.
[0475] A history-based MVP (HMVP) method is proposed, where the HMVP candidate is defined as the motion information of the previously coded block. During the encoding / decoding process, a table with multiple HMVP candidates is maintained. When a new slice is encountered, the table is cleared. Whenever there is an inter-coded block, the associated motion information is added to the last entry of the table as a new HMVP candidate. The entire encoding and decoding process is Fig.37 As shown in . In one example, the table size is set to L (eg, L=16 or 6, or 44), which indicates that a maximum of L HMVP candidates can be added to the table.
[0476] (1) In one embodiment, if there are more than L HMVP candidates from a previously decoded block, a First-In-First-Out (FIFO) rule is applied so that the table always contains the latest L previously decoded motion candidates. Fig.38 An example of applying the FIFO rule to remove HMVP candidates and add new candidates to the table used in the proposed method is depicted.
[0477] (2) In another embodiment, whenever a new motion candidate is added (such as when the current block is inter-coded and in non-affine mode), a redundancy check process is first applied to identify whether there is the same or similar motion candidate in the LUT.
[0478] 3.2.JVET-M0101
[0479] 3.2.1. Add HEVC-style weighted prediction (WP)
[0480] To implement HEVC-style weighted prediction, the following (in bold) syntax changes may be made to the PPS and slice header:
[0481]
[0482]
[0483]
[0484]
[0485]
[0486] 3.2.2. Calling in a mutually exclusive manner (bi-prediction with weighted averaging (BWA, also known as GBI) and WP
[0487] Although both BWA and WP apply weights to motion compensated prediction signals, the specific operations are different. In the case of bidirectional prediction, WP applies linear weights and constant offsets to each prediction signal, depending on the (weight, offset) parameters associated with the ref_idx used to generate the prediction signal. Although there are some range restrictions on these (weight, offset) values, the allowed range is relatively large and there are no normalization restrictions on the parameter values. WP parameters are signaled at the picture level (in the slice header). WP has been shown to provide very large codec gains for fading sequences, and it is generally desirable to enable WP for such content.
[0488] BWA uses a CU-level index to indicate how to combine the two prediction signals in case of bidirectional prediction. BWA applies a weighted average, i.e., the two weights add up to 1. BWA provides a codec gain of about 0.66% for the CTC RA configuration, but its efficiency is much lower than WP (JVET-L0201) for fading content.
[0489] Method #1 :
[0490] The PPS syntax element weight_bipred_flag is checked to determine whether gbi_idx is signaled at the current CU. The syntax signaling is modified in bold as follows:
[0491]
[0492] If the current slice refers to a PPS with weight_bipred_flag set to 1, the first option is to disable BWA for all reference pictures of the current slice.
[0493] Method #2 :
[0494] BWA is disabled only when both reference pictures used in bidirectional prediction have weighted prediction turned on, i.e. the (weights, offsets) parameters of these reference pictures have non-default values. This allows bidirectionally predicted CUs using reference pictures with default WP parameters (i.e. WP is not invoked for these CUs) to still use BWA. The syntax signaling is modified in bold as follows:
[0495]
[0496] 4. Question
[0497] In LIC, two parameters including a scaling parameter a and an offset b need to be derived by using adjacent reconstructed pixels, which may cause a delay problem.
[0498] Hybrid intra-frame and inter-frame prediction, diffusion filter, bilateral filter, OBMC and LIC need to further modify the inter-frame prediction signal in different ways, and they all have delay problems.
[0499] 5. Some Example Embodiments and Techniques
[0500] The following detailed inventions should be considered as examples to explain the general concept. These inventions should not be interpreted narrowly. In addition, these inventions can be combined in any way.
[0501] Example 1:
[0502] In some embodiments, LIC is performed only on blocks located at the boundary of CTU (referred to as boundary blocks), and the LIC parameters can be derived using adjacent reconstructed samples of the current CTU. In this case, for blocks not located at the boundary of CTU (referred to as internal blocks), LIC is always disabled without being signaled.
[0503] In some embodiments, the selection of adjacent reconstructed samples outside the current CTU may depend on the position of the block relative to the CTU covering the current block.
[0504] In some embodiments, for blocks at the left boundary of a CTU, only the left reconstructed neighboring samples of the CU may be used to derive LIC parameters.
[0505] In some embodiments, for a block at the upper boundary of a CTU, only the upper reconstructed neighboring samples of the block may be used to derive the LIC parameters.
[0506] In some embodiments, for a block at the upper left corner of a CTU, the LIC parameters may be derived using the left and / or upper reconstructed neighboring samples of the block.
[0507] In some embodiments, for a block at the upper right corner of a CTU, the LIC parameters are derived using the upper right and / or upper reconstructed neighboring samples of the block.
[0508] In some embodiments, for a block at the bottom left corner of a CTU, the LIC parameters are derived using the bottom left and / or left reconstructed neighboring samples of the block.
[0509] Example 2:
[0510] In some embodiments, LIC parameter sets may be derived only for blocks located at a CTU boundary, and internal blocks of the CTU may inherit from one or more of these LIC parameter sets.
[0511] In some embodiments, a LIC parameter lookup table is maintained for each CTU, and each derived LIC parameter set is inserted into the LIC parameter table. The LIC parameter lookup table may be maintained using the method described in PCT Application No. PCT / CN2018 / 093987, filed on July 2, 2018, entitled “MOTION VECTOR PREDICTION BASED ON LOOK-UP TABLES” (the contents of which are incorporated herein by reference).
[0512] In some embodiments, such a lookup table is maintained for each reference picture, and when deriving LIC parameters, LIC parameters are derived for all reference pictures.
[0513] In some embodiments, such a lookup table is cleared at the beginning of each CTU or CTU row or slice or slice group or picture.
[0514] In some embodiments, for intra blocks coded in AMVP mode or affine inter mode, if the LIC flag is true, the LIC parameter set used is explicitly signaled. For example, an index is signaled to indicate which entry of the lookup table is used for each reference picture. In some embodiments, for unidirectionally predicted blocks, the LIC flag will be false if there is no valid entry for the reference picture in the lookup table. In some embodiments, for bidirectionally predicted blocks, the LIC flag will be false if there is no valid entry for any reference picture in the lookup table. In some embodiments, for bidirectionally predicted blocks, the LIC flag may be true if there is a valid entry for at least one reference picture in the lookup table. For each reference picture with valid LIC parameters, one LIC parameter index is signaled.
[0515] In some embodiments, more than one lookup table is maintained. In some embodiments, when encoding / decoding the current CTU, it uses only parameters from the lookup table generated by some previously encoded / decoded CTU, and the lookup table generated by the current CTU is used for some later CTUs. In some embodiments, each lookup table may correspond to one reference picture / one reference picture list / a specific range of block sizes / a specific codec mode / a specific block shape, etc.
[0516] In some embodiments, if the internal block is encoded and decoded in Merge or Affine Merge mode, for spatial and / or temporal Merge candidates, the LIC flag and LIC parameters are inherited from the corresponding neighboring blocks.
[0517] In some embodiments, the LIC flag is inherited and the LIC parameters may be explicitly signaled. In some embodiments, the LIC flag is explicitly signaled and the LIC parameters may be inherited. In some embodiments, both the LIC flag and the LIC parameters are explicitly signaled. In some embodiments, the difference between the LIP parameters of a block and the inherited parameters is signaled.
[0518] In some embodiments, for boundary blocks coded in AMVP mode or affine inter mode, if the LIC flag is true, the LIC parameters used are implicitly derived using the same method as in 2.2.7.
[0519] In some embodiments, if the boundary block is encoded and decoded in Merge or Affine Merge mode, for spatial domain or / and temporal domain Merge candidates, the LIC flag and LIC parameters are inherited from the corresponding neighboring blocks.
[0520] In some embodiments, the LIC flag is inherited and the LIC parameters may be explicitly signaled. In some embodiments, the LIC flag is explicitly signaled and the LIC parameters may be inherited. In some embodiments, both the LIC flag and the LIC parameters are explicitly signaled.
[0521] In some embodiments, if a block is encoded in Merge mode, LIC is always disabled for combined Merge candidates or averaged Merge candidates.
[0522] In some embodiments, if the LIC flag of either of the two Merge candidates used to generate the combined Merge candidate or the average Merge candidate is true, the LIC flag is set to true.
[0523] In some embodiments, for an internal block, if both Merge candidates used to generate a combined Merge candidate or an average Merge candidate use LIC, it may inherit LIC parameters from either one of them.
[0524] In some embodiments, the LIC flag is inherited and the LIC parameters may be explicitly signaled.
[0525] In some embodiments, the LIC flag is explicitly signaled and the LIC parameters may be inherited.
[0526] In some embodiments, both the LIC flag and the LIC parameters are explicitly signaled.
[0527] In some embodiments, if a block is encoded or decoded in Merge mode from an HMVP Merge candidate, the LIC is always disabled. In some embodiments, if a block is encoded or decoded in Merge mode from an HMVP Merge candidate, the LIC is always enabled. In some embodiments, if the LIC flag of the HMVP Merge candidate is true, the LIC flag is set to true. For example, the LIC flag may be explicitly signaled. In some embodiments, if the LIC flag of the HMVP Merge candidate is true, the LIC flag is set to true and the LIP parameters are inherited from the HMVP Merge candidate. In some embodiments, the LIC parameters are explicitly signaled. In some embodiments, the LIC parameters are implicitly derived.
[0528] Example 3:
[0529] LIC can be used with the intra block copy (IBC, or current picture reference) mode.
[0530] In some embodiments, if the block is coded in intra block copy mode, an indication of LIC usage (e.g., LIC flag) may also be signaled. In some embodiments, in Merge mode, if the IBC coded block inherits motion information from a neighboring block, it may also inherit the LIC flag. In some embodiments, it may also inherit LIC parameters.
[0531] In some embodiments, if the LIC flag is true, the LIC parameters are implicitly derived using the same method as 2.2.7. In some embodiments, the methods described in Example 1 and / or Example 2 may be used. In some embodiments, if LIC is enabled to encode and decode a block, an indication of IBC usage may also be signaled.
[0532] Example 4:
[0533] In some embodiments, hybrid intra and inter prediction (also called combined intra-inter prediction), diffusion filters, bilateral filters, transform domain filtering methods, OBMC, LIC or any other tool that modifies the inter prediction signal or modifies the reconstructed blocks from motion compensation (e.g., causing latency issues) is used exclusively.
[0534] In some embodiments, if LIC is enabled, all other tools are implicitly disabled. If the LIC flag (explicitly signaled or implicitly derived) is true, the on / off flags of other tools (if any) are not signaled but are implicitly derived to be off.
[0535] In some embodiments, if hybrid intra and inter prediction is enabled, all other tools are implicitly disabled. If the (explicitly signaled or implicitly derived) hybrid intra and inter prediction flag is true, the on / off flags of other tools (if any) are not signaled, but are implicitly derived to be off.
[0536] In some embodiments, if the diffusion filter is enabled, all other tools are implicitly disabled. If the diffusion filter flag (explicitly signaled or implicitly derived) is true, the on / off flags of other tools (if any) are not signaled, but are implicitly derived to be off.
[0537] In some embodiments, if OBMC is enabled, all other tools are implicitly disabled. If the OBMC flag (explicitly signaled or implicitly derived) is true, the on / off flags of other tools (if any) are not signaled but implicitly derived to be off.
[0538] In some embodiments, if the bilateral filter is enabled, all other tools are implicitly disabled. If the (explicitly signaled or implicitly derived) bilateral filter flag is true, the on / off flags of other tools (if any) are not signaled, but are implicitly derived to be off.
[0539] In some embodiments, different tools may be checked in sequence. Furthermore, this checking process terminates when a decision is made to enable one of the above tools. In some embodiments, the checking order is LIC → diffusion filter → hybrid intra-frame and inter-frame prediction → OBMC → bilateral filter. In some embodiments, the checking order is LIC → diffusion filter → bilateral filter → hybrid intra-frame and inter-frame prediction → OBMC.
[0540] In some embodiments, the check order is LIC→OBMC→diffusion filter→bilateral filter→hybrid intra-frame and inter-frame prediction. In some embodiments, the check order is LIC→OBMC→diffusion filter→hybrid intra-frame and inter-frame prediction→bilateral filter. In some embodiments, the order can be adaptively changed based on previous codec information and / or based on codec information of the current block (e.g., block size / reference picture / MV information / low delay check flag / slice / picture / slice type), such as based on the mode of the neighboring blocks.
[0541] In some embodiments, for any of the above tools (e.g., CIIP, LIC, diffusion filter, bilateral filter, transform domain filtering method), whether to automatically disable it and / or decode the current block in a different way can depend on the encoding and decoding mode of adjacent or non-adjacent rows or columns.
[0542] In some embodiments, for any of the above tools (eg, CIIP, LIC, diffusion filter, bilateral filter, transform domain filtering methods), whether to automatically disable it may depend on all codec modes of adjacent or non-adjacent rows or columns.
[0543] In some embodiments, for any of the above tools (e.g., CIIP, LIC, diffusion filter, bilateral filter, transform domain filtering method), whether to enable it may depend on at least one of the samples in adjacent or non-adjacent rows or columns not being encoded or decoded in a particular mode.
[0544] In some embodiments, adjacent or non-adjacent rows may include rows on the upper side and / or rows on the upper right. In some embodiments, adjacent or non-adjacent columns may include columns on the left and / or columns on the lower left. In some embodiments, the codec mode / specific mode may include intra mode and / or combined intra-inter mode (CIIP). In some embodiments, if any adjacent / non-adjacent block in adjacent or non-adjacent rows or columns is coded with intra and / or CIIP, this method is disabled. In some embodiments, if all adjacent / non-adjacent blocks in adjacent or non-adjacent rows or columns are coded with intra and / or CIIP, this method is disabled. In some embodiments, different methods may include short tap filters / less adjacent samples for LIC parameter derivation, reference sample filling, etc.
[0545] In some embodiments, for any of the above tools (e.g., CIIP, LIC, diffusion filter, bilateral filter, transform domain filtering method), the tool is disabled when at least one upper adjacent / non-adjacent upper adjacent block in an adjacent or non-adjacent row is intra-coded and / or coded in a combined intra-inter mode.
[0546] In some embodiments, for any of the above tools (e.g., CIIP, LIC, diffusion filter, bilateral filter, transform domain filtering method), the tool is disabled when at least one left adjacent / non-adjacent left adjacent block in an adjacent or non-adjacent column is intra-coded and / or coded in a combined intra-inter mode.
[0547] In some embodiments, for any of the above tools (e.g., CIIP, LIC, diffusion filter, bilateral filter, transform domain filtering method), the tool is disabled when all blocks in adjacent or non-adjacent rows / columns are intra-coded and / or coded in combined intra-inter mode.
[0548] In some embodiments, for a LIC codec block, neighboring samples coded in intra mode and / or hybrid intra and inter mode are excluded from the derivation of LIC parameters.
[0549] In some embodiments, for a LIC codec block, neighboring samples coded in non-intra mode and / or non-CIIP mode may be included in the derivation of LIC parameters.
[0550] Example 5:
[0551] In some embodiments, when a tool is disabled for a block (such as when all neighboring samples are intra-coded), such codec tools may still be applied, but in a different manner.
[0552] In some embodiments, a short tap filter may be applied. In some embodiments, padding of reference samples may be applied. In some embodiments, adjacent rows / columns and / or non-adjacent rows / columns of a block in a reference picture (via motion compensation if necessary) may be used as a replacement for adjacent rows / columns and / or non-adjacent rows / columns of the current block.
[0553] Example 6:
[0554] In some embodiments, LIC is used exclusively with GBI or multi-hypothesis inter prediction.
[0555] In some embodiments, the GBI information may be signaled after the LIC information. In some embodiments, whether the GBI information is signaled may depend on the signaled / inferred LIC information. In addition, whether the GBI information is signaled may depend on the LIC information and weighted prediction information associated with at least one reference picture of the current block or the current slice / slice group / picture containing the current block. In some embodiments, this information may be signaled in the SPS / PPS / slice header / slice group header / slice / CTU / CU.
[0556] In some embodiments, the LIC information may be signaled after the GBI information. In some embodiments, whether the LIC information is signaled may depend on the signaled / inferred GBI information. In addition, whether the LIC information is signaled may depend on the GBI information and weighted prediction information associated with at least one reference picture of the current block or the current slice / slice group / picture containing the current block. In some embodiments, this information may be signaled in the SPS / PPS / slice header / slice group header / slice / CTU / CU.
[0557] In some embodiments, if the LIC flag is true, then syntax elements required for GBI or multi-hypothesis inter prediction are not signaled.
[0558] In some embodiments, if the GBI flag is true (eg, unequal weights are applied to two or more reference pictures), syntax elements required for LIC or multi-hypothesis inter prediction are not signaled.
[0559] In some embodiments, if GBI is enabled for blocks of two or more reference pictures with unequal weights, the syntax elements required for LIC or multi-hypothesis inter prediction are not signaled.
[0560] In some embodiments, LIC is used exclusively with sub-block techniques (such as affine mode). In some embodiments, LIC is used exclusively with triangle prediction mode. In some embodiments, LIC is always disabled when triangle prediction mode is enabled for a block. In some embodiments, the LIC flag of a TPM Merge candidate may be inherited from a spatial or temporal block or other kind of motion candidate (e.g., HMVP candidate). In some embodiments, the LIC flag of a TPM Merge candidate may be inherited from some spatial or temporal blocks (e.g., only A1, B1). In some embodiments, the LIC flag of a TPM Merge candidate may always be set to false.
[0561] In some embodiments, if multi-hypothesis inter prediction is enabled, the syntax elements required for LIC or GBI are not signaled.
[0562] In some embodiments, different tools may be checked in a certain order. In addition, when a decision is made to enable one of the above tools, this checking process terminates. In some embodiments, the checking order is LIC->GBI->multiple hypothesis inter prediction. In some embodiments, the checking order is LIC->multiple hypothesis inter prediction->GBI. In some embodiments, the checking order is GBI->LIC->multiple hypothesis inter prediction.
[0563] In some embodiments, the check order is GBI->Multiple Hypothesis Inter Prediction->LIC. In some embodiments, the order can be adaptively changed based on previous codec information and / or based on codec information of the current block (e.g., block size / reference picture / MV information / low delay check flag / slice / picture / slice type), such as based on the mode of the neighboring blocks.
[0564] In some embodiments, the above method may be applied only when the current block is uni-predicted.
[0565] Example 7:
[0566] In some embodiments, LIC is used exclusively with combined inter-intra prediction (CIIP). In some embodiments, CIIP information may be signaled after LIC information. In some embodiments, whether CIIP information is signaled may depend on signaled / inferred LIC information. In addition, whether CIIP information is signaled may depend on LIC information and weighted prediction information associated with at least one reference picture of the current block or the current slice / slice group / picture containing the current block. In some embodiments, this information may be signaled in SPS / PPS / slice header / slice group header / slice / CTU / CU.
[0567] In some embodiments, the LIC information may be signaled after the CIIP information.
[0568] In some embodiments, whether to signal LIC information may depend on signaled / inferred CIIP information. In addition, whether to signal LIC information may depend on CIIP information and weighted prediction information associated with at least one reference picture of the current block or the current slice / slice group / picture containing the current block. In some embodiments, this information may be signaled in SPS / PPS / slice header / slice group header / slice / CTU / CU.
[0569] In some embodiments, if the LIC flag is true, then the syntax elements required for CIIP are not signaled. In some embodiments, if the CIIP flag is true, then the syntax elements required for LIC are not signaled. In some embodiments, if CIIP is enabled, then the syntax elements required for LIC are not signaled.
[0570] Example 8:
[0571] In some embodiments, when one or some of the following codec tools are applied (except weighted prediction), weighted prediction cannot be applied:
[0572] a.BIO (also known as BDOF)
[0573] b.CIIP
[0574] c. Affine prediction
[0575] d. Overlapped Block Motion Compensation (OBMC)
[0576] e. Decoder-side motion vector refinement (DMVR)
[0577] In some embodiments, if the codec tool and weighted prediction are mutually exclusive, then when weighted prediction is applied, information (e.g., a flag) indicating whether the codec tool is used is not signaled. Such information (e.g., a flag) may be inferred to be zero. In some embodiments, this information may still be expressively signaled in the SPS / PPS / slice header / slice group header / slice / CTU / CU.
[0578] Example 9:
[0579] In some embodiments, LIC may be used exclusively with weighted prediction at the block level.
[0580] In some embodiments, when the current block is bi-directionally predicted, the signaling of LIC information may depend on weighted_bipred_flag.
[0581] In some embodiments, when the current block is uni-directionally predicted, the signaling of LIC information may depend on weighted_pred_flag.
[0582] In some embodiments, signaling of LIC information may depend on weighted prediction parameters associated with one or all reference pictures associated with the current block.
[0583] In some embodiments, if weighted prediction is enabled for some or all reference pictures of a block, LIC may be disabled for the block and syntax elements related to LIC are not signaled.
[0584] In some embodiments, even if weighted prediction is enabled for some or all reference pictures of a block, LIC may still be applied and weighted prediction may be disabled for the block. In some embodiments, LIC may be applied to reference pictures to which weighted prediction is not applied and LIC may be disabled on reference pictures to which weighted prediction is applied.
[0585] In some embodiments, LIC may be used together with weighted prediction for a block.
[0586] Example 10:
[0587] In some embodiments, LIC may be used exclusively with weighted prediction at picture level / slice level / slice group level / CTU group level.
[0588] In some embodiments, if weighted prediction is enabled for some or all reference pictures of a picture / slice / slice group / CTU group, LIC is disabled and all related syntax elements are not signaled.
[0589] In some embodiments, if LIC is enabled for a picture / slice / slice group / CTU group, weighted prediction is disabled for all its reference pictures and all related syntax elements are not signaled.
[0590] In some embodiments, LIC may be used together with weighted prediction.
[0591] Example 11:
[0592] In some embodiments, LIC may be used exclusively with CPR mode. In some embodiments, when CPR mode is enabled for a block, signaling of an indication of LIC usage and / or side information may be skipped. In some embodiments, when LIC mode is enabled for a block, signaling of an indication of CPR usage and / or side information may be skipped.
[0593] Example 12:
[0594] In some embodiments, LIC or / and GBI or / and weighted prediction may be disabled in paired prediction or combined bi-prediction or other types of virtual / artificial candidates (eg, zero motion vector candidates).
[0595] In some embodiments, if one of the two candidates involved in the pairwise prediction or combined bidirectional prediction adopts LIC prediction, and neither of the two candidates adopts weighted prediction or GBI, LIC may be enabled for the pairwise or combined bidirectional Merge candidate.
[0596] In some embodiments, if both candidates involved in the pairwise prediction or combined bidirectional prediction adopt LIC prediction, LIC may be enabled for the pairwise or combined bidirectional Merge candidate.
[0597] In some embodiments, if one of the two candidates involved in the pairwise prediction or combined bidirectional prediction adopts weighted prediction and neither of the two candidates adopts LIC prediction or GBI, weighted prediction may be enabled for the pairwise or combined bidirectional Merge candidate.
[0598] In some embodiments, if both candidates involved in the pairwise prediction or combined bidirectional prediction adopt weighted prediction, weighted prediction may be enabled for the pairwise or combined bidirectional Merge candidate.
[0599] In some embodiments, if one of the two candidates involved in the pairwise prediction or combined bidirectional prediction adopts GBI, and neither of the two candidates adopts LIC prediction or weighted prediction, GBI may be enabled for the pairwise or combined bidirectional Merge candidate.
[0600] In some embodiments, if two candidates involved in a pairwise prediction or a combined bidirectional prediction adopt GBI and the GBI index is the same for the two candidates, GBI may be enabled for the pairwise or combined bidirectional Merge candidate.
[0601] Example 13:
[0602] In some embodiments, LIC prediction or / and weighted prediction or / and GBI may be considered in the deblocking filter.
[0603] In some embodiments, even if two blocks near a boundary have the same motion but different LIC parameters / weighted prediction parameters / GBI indexes, the deblocking filtering process may be applied.
[0604] In some embodiments, if two blocks (near a boundary) have different GBI indices, a stronger boundary filter strength may be assigned.
[0605] In some embodiments, if two blocks have different LIC flags, a stronger boundary filtering strength may be assigned.
[0606] In some embodiments, if two blocks adopt different LIC parameters, a stronger boundary filter strength may be assigned.
[0607] In some embodiments, if one block adopts weighted prediction while the other block does not adopt weighted prediction, or the two blocks adopt different weighting factors (eg, predicted from reference pictures with different weighting factors), a stronger boundary filtering strength may be assigned.
[0608] In some embodiments, if two blocks near a boundary, one coded in LIC mode and the other not coded in LIC mode, deblocking filtering may be applied even if the motion vectors are the same.
[0609] In some embodiments, if two blocks are near a boundary, one block is coded in a weighted prediction mode and the other block is not coded in a weighted prediction mode, deblocking filtering may be applied even if the motion vectors are the same.
[0610] In some embodiments, if two blocks near a boundary, one block is encoded with GBI enabled (eg, unequal weight) and the other block is not, deblocking filtering may be applied even if the motion vectors are the same.
[0611] Example 14:
[0612] In some embodiments, affine mode / affine parameters / affine type may be considered in deblocking filtering.
[0613] In some embodiments, whether and / or how to apply a deblocking filter may depend on the affine mode / affine parameters.
[0614] In some embodiments, if two blocks (near the boundary) have different affine patterns, a stronger boundary filter strength may be assigned.
[0615] In some embodiments, if two blocks (near the boundary) have different affine parameters, a stronger boundary filter strength may be assigned.
[0616] In some embodiments, if there are two blocks near a boundary, one coded in affine mode and the other not coded in affine mode, deblocking filtering may be applied even if the motion vectors are the same.
[0617] Example 15:
[0618] Examples 1-14 may also be applicable to other types of filtering processes.
[0619] Example 16:
[0620] In some embodiments, the CIIP flag may be stored in a history-based motion vector prediction (HMVP) table along with the motion information.
[0621] In some embodiments, when comparing two candidate motion information, the CIIP flag is considered in the comparison.
[0622] In some embodiments, when comparing two candidate motion information, the CIIP flag is not considered in the comparison.
[0623] In some embodiments, when a Merge candidate comes from an entry in the HMVP table, the CIIP flag of the entry is also copied to the Merge candidate.
[0624] Example 17:
[0625] In some embodiments, the LIC flag may be stored in a history-based motion vector prediction (HMVP) table along with the motion information.
[0626] In some embodiments, when comparing two candidate motion information, the LIC flag is considered in the comparison.
[0627] In some embodiments, when comparing two candidate motion information, the LIC flag is not considered in the comparison.
[0628] In some embodiments, when a Merge candidate is from an entry in the HMVP table, the LIC flag of the table is also copied to the Merge candidate.
[0629] Example 18:
[0630] In some embodiments, when performing LIC, the blocks should be divided into VPDU (such as 64*64 or 32*32 or 16*16) process blocks, and each block performs the LIC process sequentially (which means that the LIC process of one process block may depend on the LIC process of another process block), or performs the LIC process in parallel (which means that the LIC process of one process block does not depend on the LIC process of another process block).
[0631] Example 19:
[0632] In some embodiments, LIC may be used with multi-hypothesis prediction (as described in 2.2.13, 2.2.14, 2.2.15).
[0633] In some embodiments, the LIC flag is explicitly signaled for multi-hypothesis AMVP and Merge modes (e.g., as described in 2.2.14). In some embodiments, the explicitly signaled LIC flag is applied to both AMVP mode and Merge mode. In some embodiments, the explicitly signaled LIC flag is applied only to AMVP mode, while the LIC flag for Merge mode is inherited from the corresponding Merge candidate. Different LIC flags can be used for AMVP mode and Merge mode. At the same time, different LIC parameters can be derived / inherited for AMVP mode and Merge mode. In some embodiments, LIC is always disabled for Merge mode. In some embodiments, the LIC flag is not signaled, and LIC is always disabled for AMVP mode. However, for Merge mode, the LIC flag or / and LIC parameters can be inherited or derived.
[0634] In some embodiments, the LIC flag is inherited from the corresponding Merge candidate of the multi-hypothesis Merge mode (e.g., as described in 2.2.15). In some embodiments, the LIC flag is inherited for each of the two selected Merge candidates, and thus, different LIC flags may be inherited for the two selected Merge candidates. At the same time, different LIC parameters may be derived / inherited for the two selected Merge candidates. In some embodiments, the LIC flag is inherited only for the first selected Merge candidate, and for the second selected Merge candidate, the LIC is always disabled.
[0635] In some embodiments, the LIC flag is explicitly signaled for the multi-hypothesis inter prediction mode (e.g., as described in 2.2.13). In some embodiments, if the block is predicted in Merge mode (or UMVE mode) and additional motion information, the explicitly signaled LIC flag may apply to both the Merge mode (or UMVE mode) and the additional motion information. In some embodiments, if the block is predicted in Merge mode (or UMVE mode) and additional motion information, the explicitly signaled LIC flag may apply to the additional motion information. While for Merge mode, the LIC flag or / and LIC parameters may be inherited or derived. In some embodiments, LIC is always disabled for Merge mode.
[0636] In some embodiments, if a block is predicted in Merge mode (or UMVE mode) and additional motion information, the LIC flag is not signaled and is disabled for the additional motion information. Whereas for Merge mode, the LIC flag or / and LIC parameters may be inherited or derived. In some embodiments, if a block is predicted in AMVP mode and additional motion information, the explicitly signaled LIC flag may apply to both AMVP mode and additional motion information. In some embodiments, LIC is always disabled for additional motion information. In some embodiments, different LIC parameters may be derived / inherited for Merge mode (or UMVE mode) / AMVP mode and additional motion information.
[0637] In some embodiments, when multiple hypotheses are applied to a block, illumination compensation may be applied to certain prediction signals, but not all prediction signals. In some embodiments, when multiple hypotheses are applied to a block, more than one flag may be signaled / derived to indicate the use of illumination compensation for the prediction signal.
[0638] Example 20:
[0639] In some embodiments, the LIC flag may be inherited from the basic Merge candidate in the UMVE mode. In some embodiments, the LIC parameters are implicitly derived as described in 2.2.7. In some embodiments, for boundary blocks encoded / decoded in the UMVE mode, the LIC parameters are implicitly derived as described in 2.2.7. In some embodiments, for internal blocks encoded / decoded in the UMVE mode, the LIC parameters are inherited from the basic Merge candidate. In some embodiments, the LIC flag may be explicitly signaled in the UMVE mode.
[0640] Example 21:
[0641] The methods or LIC proposed above may be applied under certain conditions, such as block size, slice / picture / slice type, or motion information.
[0642] In some embodiments, when the block size contains less than M*H samples, for example, 16 or 32 or 64 luma samples, the proposed methods or LIC are not allowed.
[0643] In some embodiments, when the minimum size of the width or / and height of the block is less than or not greater than X, the proposed methods or LIC are not allowed. In one example, X is set to 8.
[0644] In some embodiments, when the width of the block > th1 or >= th1 and / or the height of the block > th2 or >= th2, the proposed methods or LIC are not allowed. In one example, th1 and / or th2 are set to 8.
[0645] In some embodiments, when the width of the block < th1 or <= th1 and / or the height of the block < th2 or <= th2, the proposed methods or LIC are not allowed. In one example, th1 and / or th2 are set to 8.
[0646] In some embodiments, LIC is disabled for the affine inter prediction mode or / and the affine Merge mode.
[0647] In some embodiments, LIC is disabled for sub-block encoding / decoding tools (such as ATMVP or / and STMVP or / and the planar motion vector prediction mode).
[0648] In some embodiments, LIC is only applied to certain components. For example, LIC is applied to the luma component. Alternatively, LIC is applied to the chroma component.
[0649] In some embodiments, if the LIC flag is true, then BIO or / and DMVR are disabled.
[0650] In some embodiments, LIC is disabled for bi-predicted blocks.
[0651] In some embodiments, LIC is disabled for intra blocks encoded in AMVP mode.
[0652] In some embodiments, LIC is only allowed for unidirectionally predicted blocks.
[0653] Example 22:
[0654] In some embodiments, the selection of neighboring samples for deriving LIC parameters may depend on codec information, block shape, etc.
[0655] In some embodiments, if width>=height or width>height, only the upper neighboring pixels are used to derive LIC parameters.
[0656] In some embodiments, if width < height, only the left neighboring pixels are used to derive LIC parameters.
[0657] Example 23:
[0658] In some embodiments, only one LIC flag is signaled for a block with a geometric partitioning structure (such as a triangle prediction mode). In this case, all partitions (all PUs) of the block share the same value of the LIC enable flag.
[0659] In some embodiments, for some PUs, LIC may always be disabled regardless of whether the LIC flag is signaled.
[0660] In some embodiments, if the block is partitioned from the top right corner to the bottom left corner, one LIC parameter set is derived and used for both PUs. In some embodiments, LIC is always disabled for the bottom PU. In some embodiments, if the top PU is encoded and decoded in Merge mode, the LIC flag is not signaled.
[0661] In some embodiments, if the block is partitioned from top left to bottom right, LIC parameters are derived for each PU. In some embodiments, the top neighboring samples of the block are used to derive the LIC parameters for the top PU, and the left neighboring samples of the block are used to derive the LIC parameters for the left PU. In some embodiments, one LIC parameter set is derived and used for both PUs.
[0662] In some embodiments, if both PUs are coded in Merge mode, the LIC flag is not signaled and may be inherited from the Merge candidate. LIC parameters may be derived or inherited.
[0663] In some embodiments, if one PU is coded in AMVP mode and the other PU is coded in Merge mode, the signaled LIC flag may only be applied to the PU coded in AMVP mode. For the PU coded in Merge mode, the LIC flag and / or LIC parameters are inherited. In some embodiments, the LIC flag is not signaled and is disabled for the PU coded in AMVP mode. For the PU coded in Merge mode, the LIC flag and / or LIC parameters are inherited. In some embodiments, the LIC is disabled for the PU coded in Merge mode.
[0664] In some embodiments, if both PUs are coded in AMVP mode, one LIC flag may be signaled for each PU.
[0665] In some embodiments, a PU may utilize reconstructed samples from another PU within the current block that have already been reconstructed to derive LIC parameters.
[0666] Example 24:
[0667] In some embodiments, LIC may be performed on a portion of pixels instead of the entire block.
[0668] In some embodiments, LIC may be performed only on pixels around the block boundary, while LIC is not performed on other pixels within the block.
[0669] In some embodiments, LIC is performed on the top W×N rows or N×H columns, where N is an integer and W and H represent the width and height of the block. For example, N is equal to 4.
[0670] In some embodiments, LIC is performed on the upper left (Wm)×(Hn) region, where m and n are integers, and W and H represent the width and height of the block. For example, m and n are equal to 4.
[0671] Example 25:
[0672] In some embodiments, the LIC flag may be used to update the HMVP table.
[0673] In some embodiments, the HMVP candidate may include a LIC flag in addition to the motion vector and other information.
[0674] In some embodiments, the LIC flag is not used to update the HMVP table. For example, a default LIC flag value is set for each HMVP candidate.
[0675] Example 26:
[0676] In some embodiments, if a block is coded with LIC, the updating of the HMVP table may be skipped. In some embodiments, the LIC coded block may also be used to update the HMVP table.
[0677] Example 27:
[0678] In some embodiments, candidate motions may be reordered according to the LIC flags.
[0679] In some embodiments, LIC-enabled candidates may be placed before all or part of LIC-disabled candidates in a Merge / AMVP or other motion candidate list.
[0680] In some embodiments, LIC-disabled candidates may be placed before all or part of LIC-enabled candidates in a Merge / AMVP or other motion candidate list.
[0681] In some embodiments, the Merge / AMVP or other motion candidate list construction process may be different for LIC codec blocks and non-LIC codec blocks.
[0682] In some embodiments, for LIC coded blocks, the Merge / AMVP or other motion candidate lists may not contain motion candidates derived from non-LIC coded spatial / temporal neighboring blocks or non-neighboring blocks or HMVP candidates with LIC flag equal to false.
[0683] In some embodiments, for non-LIC coded blocks, the Merge / AMVP or other motion candidate lists may not contain motion candidates derived from LIC coded spatial / temporal neighboring blocks or non-neighboring blocks or HMVP candidates with LIC flag equal to true.
[0684] Example 28:
[0685] In some embodiments, whether to enable or disable the above methods may be signaled in SPS / PPS / VPS / sequence header / picture header / slice header / slice group header / CTU group, etc. In some embodiments, which method to use may be signaled in SPS / PPS / VPS / sequence header / picture header / slice header / slice group header / CTU group, etc. In some embodiments, whether to enable or disable the above methods and / or which method to apply may depend on block size, video processing data unit (VPDU), picture type, low delay check flag, current block (such as reference picture, unidirectional prediction or bidirectional prediction) or codec information of a previously coded block.
[0686] 6. Additional Embodiments
[0687] Method #1 :
[0688] The PPS syntax element weight_bipred_flag is checked to determine whether the LIC_enabled_flag is signaled at the current CU. The syntax signaling is modified in bold as follows:
[0689]
[0690] The first option is to disable LIC for all reference pictures of the current slice / slice / slice group, for example,
[0691] 1. If the current slice references a PPS with weighted_bipred_flag set to 1 and the current block is bidirectionally predicted;
[0692] 2. If the current slice references a PPS with weighted_pred_flag set to 1 and the current block is uni-directionally predicted.
[0693] Method #2 :
[0694] For the bidirectional prediction case:
[0695] LIC is disabled only when both reference pictures used in bidirectional prediction have weighted prediction turned on, i.e. the (weight, offset) parameters of these reference pictures have non-default values. This allows bidirectional prediction CUs using reference pictures with default WP parameters (i.e. WP is not invoked for these CUs) to still use LIC.
[0696] For the one-way prediction case:
[0697] LIC is disabled only when the reference pictures used in unidirectional prediction have weighted prediction turned on, i.e. the (weights, offsets) parameters of these reference pictures have non-default values. This allows unidirectional prediction CUs using reference pictures with default WP parameters (i.e. WP is not called for these CUs) to still use LIC. The syntax signaling is modified in bold as follows:
[0698]
[0699] In the above table, X represents the reference picture list (X is 0 or 1).
[0700] For the above example, the following might apply:
[0701] 1. The sps_LIC_enabled_flag controlling the use of LIC per sequence may be replaced by an indication of the use of LIC per picture / view / slice / slice group / CTU row / region / multiple CTUs / CTUs.
[0702] 2. Control of the signaling of LIC_enabled_flag may depend on the block size.
[0703] 3. The control of the signaling of LIC_enabled_flag may depend on the gbi index.
[0704] 4. The control of the signaling of the gbi index may also depend on the LIC_enabled_flag.
[0705] Fig.39 2600 is a block diagram showing an example of the architecture of a computer system or other control device 2600 that can be used to implement various portions of the presently disclosed technology. Fig.39 In the embodiment, computer system 2600 includes one or more processors 2605 and memory 2610 connected via interconnect 2625. Interconnect 2625 can represent any one or more separate physical buses, point-to-point connections, or both connected through appropriate bridges, adapters, or controllers. Thus, interconnect 2625 can include, for example, a system bus, a peripheral component interconnect (PCI) bus, a hypertransport or industry standard architecture (ISA) bus, a small computer system interface (SCSI) bus, a universal serial bus (USB), an IIC (I2C) bus, or an Institute of Electrical and Electronics Engineers (IEEE) standard 674 bus, sometimes referred to as "FireWire".
[0706] The processor(s) 2605 may include a central processing unit (CPU) to control the overall operation of, for example, a host computer. In some embodiments, the processor(s) 2605 do this by running software or firmware stored in the memory 2610. The processor(s) 2605 may be or may include one or more programmable general or special purpose microprocessors, digital signal processors (DSPs), programmable controllers, application specific integrated circuits (ASICs), programmable logic devices (PLDs), etc., or a combination of these devices.
[0707] The memory 2610 may be or include the main memory of the computer system. The memory 2610 represents any suitable form of random access memory (RAM), read-only memory (ROM), flash memory, etc., or a combination of these devices. When used, among other aspects, the memory 2610 may contain a machine instruction set that, when executed by the processor 2605, causes the processor 2605 to perform operations to implement embodiments of the technology disclosed herein.
[0708] And, an (optional) network adapter 2615 is also connected to the processor(s) 2605 via the interconnect 2625. The network adapter 2615 provides the computer system 2600 with the ability to communicate with remote devices (such as storage clients and / or other storage servers) and may be, for example, an Ethernet adapter or a Fibre Channel adapter.
[0709] Fig.40A block diagram of an example embodiment of a device 2700 that can be used to implement various parts of the technology disclosed herein is shown. The mobile device 2700 can be a laptop, a smart phone, a tablet, a portable camera, or other types of devices capable of processing video. The mobile device 2700 includes a processor or controller 2701 that processes data, and a memory 2702 that communicates with the processor 2701 to store and / or buffer data. For example, the processor 2701 may include a central processing unit (CPU) or a microcontroller unit (MCU). In some embodiments, the processor 2701 may include a field programmable gate array (FPGA). In some embodiments, the mobile device 2700 includes a graphics processing unit (GPU), a video processing unit (VPU), and / or a wireless communication unit, or communicates with a GPU, a VPU, and / or a wireless communication unit for various visual and / or communication data processing functions of a smart phone device. For example, the memory 2702 may include and store processor executable code that, when executed by the processor 2701, configures the mobile device 2700 to perform various operations, such as receiving information, commands and / or data, processing information and data, and sending or providing the processed information / data to another device, such as an actuator or an external display. To support various functions of the mobile device 2700, the memory 2702 may store information and data, such as instructions, software, values, images, and other data processed or referenced by the processor 2701. For example, various types of random access memory (RAM) devices, read-only memory (RAM) devices, flash memory devices, and other suitable storage media may be used to implement the storage function of the memory 2702. In some embodiments, the mobile device 2700 includes an input / output (I / O) unit 2703 to connect the processor 2701 and / or the memory 2702 to other modules, units, or devices. For example, the I / O unit 2703 can interface the processor 2701 and the memory 2702 using various types of wireless interfaces compatible with typical data communication standards, such as between one or more computers in the cloud and a user device. In some embodiments, the mobile device 2700 can interface with other devices using wired connections via the I / O unit 2703. The mobile device 2700 can also interface with other external interfaces such as data storage devices and / or visual or audio display devices 2704 to retrieve and transmit data and information that can be processed by the processor, stored in the memory, or presented on the display device 2704 or an output unit of an external device.For example, display device 2704 may display video frames modified based on MVP according to the disclosed techniques.
[0710] Fig.41 is a flowchart representation of a method 4100 for video processing. The method 4100 includes, in converting between a video block and a bitstream representation of the video block, determining (4102) that the video block is a boundary block of a codec tree unit (CTU) in which the video block is located, and thus enabling a local illumination compensation (LIC) codec tool for the video block, deriving (4104) parameters of a local illumination compensation (LIC) for the video block based on the determination that the LIC codec tool is enabled for the video block, and performing (4106) the conversion by adjusting pixel values of the video block using the LIC. For example, item 1 of section 5 discloses some example variations and embodiments of the method 4100.
[0711] The following clause-based list describes certain features and aspects of the disclosed technology listed in Section 5.
[0712] 1. A video processing method, comprising:
[0713] In converting between a video block and a bitstream representation of the video block, determining that the video block is a boundary block of a codec tree unit (CTU) in which the video block is located, and thus enabling a local illumination compensation (LIC) codec tool for the video block;
[0714] Based on determining that the LIC codec is enabled for the video block, deriving parameters of a local illumination compensation (LIC) for the video block; and
[0715] The conversion is performed by adjusting the pixel values of the video block using the LIC.
[0716] 2. The method of clause 1, wherein the conversion generates video blocks from a bitstream representation.
[0717] 3. The method of clause 1, wherein the conversion generates a bitstream representation from the video blocks.
[0718] 4. A method according to any of clauses 1 to 3, wherein the derivation uses samples of neighbouring blocks depending on the position of the current block within the CTU.
[0719] 5. A method according to clause 4, wherein (1) when the current block position is located at the left boundary of a CTU, the derivation uses only left reconstructed neighboring samples, or (2) when the current block position is located at the upper boundary of a CTU, the derivation uses only upper reconstructed neighboring samples, or (3) when the current block position is located at the upper left corner of a CTU, the derivation uses left and / or upper reconstructed neighboring samples, or (4) when the current block position is located at the upper right corner of a CTU, the derivation uses right and / or upper reconstructed neighboring samples, or (5) when the current block position is located at the lower left corner of a CTU, the derivation uses left and / or lower reconstructed neighboring samples.
[0720] 6. A video processing method, comprising:
[0721] In converting between a video block and a bitstream representation of the video block, determining that the video block is an internal block of a codec tree unit (CTU) in which the video block is located, and thus disabling a local illumination compensation (LIC) codec tool for the video block;
[0722] Inherit the parameters of the LIC of the video block; and
[0723] The conversion is performed by adjusting the pixel values of the video block using the LIC.
[0724] 7. The method according to clause 6, wherein the inheritance comprises:
[0725] Maintaining a lookup table (LUT) of LIC parameters previously used for other blocks; and
[0726] LIC parameters for the video block are derived based on one or more LIC parameters from a lookup table.
[0727] 8. A method as described in clause 7, wherein the other blocks include blocks from a CTU or blocks from a reference picture for the current block.
[0728] 9. A method according to any of clauses 7 to 9, wherein the lookup table is cleared and rebuilt for each CTU or CTU row or slice or slice group or picture of the video block.
[0729] 10. A method according to clause 7, wherein the current block uses Advanced Motion Vector Prediction (AMVP) mode or Affine Inter mode, and then the bitstream representation is configured to include a flag indicating which LIC parameters are used for the current block.
[0730] 11. The method of clause 10, wherein the flag indicates an index of an entry in the LUT.
[0731] 12. A method according to any of clauses 7 to 11, wherein a plurality of LUTs are used.
[0732] 13. A method according to clause 12, wherein at least one LUT is maintained for each reference picture or each reference picture list used in the transformation of the current block.
[0733] 14. The method of clause 7, wherein the current block uses Merge mode or Affine Merge mode for the spatial or temporal Merge candidate motion vector, and wherein the inheritance comprises inheriting one or both of a LIC flag and a LIC parameter of a neighboring block.
[0734] 15. A method according to clause 7, wherein the current block uses a Merge mode or an Affine Merge mode for a spatial or temporal Merge candidate motion vector, and wherein the inheritance comprises configuring the bitstream with one or more difference values, and calculating the LIC flag or the LIC parameter based on the one or more difference values and one or both of the LIC flag and the LIC parameter of the neighboring block.
[0735] 16. A method according to clause 1, wherein the current block is encoded using Advanced Motion Vector Prediction (AMVP) or Affine Inter mode, and wherein the parameters are derived using least squares error minimization, in which a sub-set of neighboring samples is used for error minimization.
[0736] 17. A video processing method, comprising:
[0737] In converting between a video block and a bitstream representation of the video block, determining that both local illumination compensation and intra block copy codec tools are enabled for use with the current block; and
[0738] The conversion is performed by performing local illumination compensation (LIC) and intra block copy operations on the video blocks.
[0739] 18. The method of clause 17, wherein a LIC flag in the bitstream is configured to indicate that LIC is enabled for the current block.
[0740] 19. The method of clause 18, wherein the converting generates video blocks from the bitstream representation.
[0741] 20. The method of clause 18, wherein the converting generates a bitstream representation from the video blocks.
[0742] 21. The method of clause 17, wherein the current block uses Merge mode, and wherein the current block inherits the LIC flag value of the neighboring block.
[0743] 22. The method of clause 17, wherein the current block uses Merge mode, and wherein the current block inherits LIC parameters of a neighboring block.
[0744] 23. A video processing method, comprising:
[0745] During conversion between bitstreams of a video including multiple pictures having multiple blocks, a local illumination compensation (LIC) mode of a current block of the video is determined based on a LIC mode rule; and conversion between the current block and a corresponding bitstream representation of the current block is performed.
[0746] 24. The method of clause 23, wherein the LIC mode rule specifies the use of a LIC mode that does not include inter prediction, diffusion filter, bilateral filter, overlapped block motion compensation, or tools that modify the inter prediction signal of the current block.
[0747] 25. A method according to clause 24, wherein the LIC mode rules are explicitly signalled in the bitstream.
[0748] 26. The method of clause 23, wherein the LIC mode rule specifies that the LIC mode is to be used only if the current block does not use a generalized bi-prediction (GBI) codec mode.
[0749] 27. A method according to any of clauses 23 or 26, wherein the LIC mode rules are explicitly signalled in the bitstream and the GBI indication is omitted from the bitstream.
[0750] 28. The method of clause 23, wherein the LIC mode rule specifies that the LIC mode is to be used only if the current block does not use the multiple hypothesis coding mode.
[0751] 29. A method according to any of clauses 23 or 28, wherein the LIC mode rules are explicitly signalled in the bitstream and the multi-hypothesis coding mode is implicitly disabled.
[0752] 30. A method according to any of clauses 28 to 29, wherein the LIC mode rule specifies that LIC is to be applied to a selected subset of the prediction signals of the multiple hypothesis mode.
[0753] 31. The method of clause 23, wherein the LIC mode rule specifies inheritance of the LIC flag from a base Merge candidate of the current block, the base Merge candidate also using the Final Motion Vector Expression (UMVE) mode.
[0754] 32. A method according to clause 31, wherein the current block inherits its LIC flag from a base Merge candidate of UMVE mode.
[0755] 33. A method according to clause 32, wherein the current block inherits using the calculation in section 2.2.7.
[0756] 34. A method according to any of clauses 1 to 33, wherein LIC is used only if the current block also satisfies a condition related to the size or slice type or slice type or picture type of the current block or the type of motion information associated with the current block.
[0757] 35. A method according to clause 34, wherein the condition does not include a block size smaller than M*H samples, where M and H are pre-specified integer values.
[0758] 36. A method according to clause 35, wherein M*H is equal to 16 or 32 or 64.
[0759] 37. A method according to clause 34, wherein the condition specifies that the width or height of the current block is less than or not greater than X, where X is an integer.
[0760] 38. The method of clause 37, wherein X=8.
[0761] 39. A method as described in clause 34, wherein the condition specifies that the current block corresponds to a luma sample.
[0762] 40. The method of clause 34, wherein the condition specifies that the current block corresponds to a chroma sample.
[0763] 41. A video processing method, comprising:
[0764] During conversion between a video block of video and a bitstream representation of the video, determining local illumination compensation (LIC) parameters for the video block using at least some samples of neighboring blocks of the video block; and
[0765] Conversion between video blocks and bitstream representations is performed by performing LIC using the determined parameters.
[0766] 42. The method of clause 41, wherein the converting generates video blocks from the bitstream representation.
[0767] 43. The method of clause 41, wherein the conversion generates a bitstream representation from the video blocks.
[0768] 44. A method according to any of clauses 41 to 43, wherein identifying at least some samples of neighbouring blocks depends on codec information of the current block or on the shape of the current block.
[0769] 45. A method according to clause 44, wherein the width of the current block is greater than or equal to the height of the current block and therefore only upper neighboring pixels are used to derive the LIC parameters.
[0770] 46. A video processing method, comprising:
[0771] Conversion between video and a bitstream representation of the video is performed, wherein the video is represented as video frames including video blocks, and local illumination compensation (LIC) is enabled only for the video blocks using a geometric prediction structure including a triangle prediction mode.
[0772] 47. The method of clause 46, wherein the converting generates video blocks from the bitstream representation.
[0773] 48. The method of clause 46, wherein the conversion generates a bitstream representation from the video blocks.
[0774] 49. A method according to any of clauses 46 to 48, wherein, for a current block with LIC enabled, all prediction unit partitions share the same LIC flag value.
[0775] 50. A method according to any of clauses 46 to 48, wherein, for a current block partitioned from the upper right corner to the lower left corner, a single LIC parameter set is used for both partitions of the current block.
[0776] 51. A method according to any of clauses 46 to 48, wherein, for a current block partitioned from the upper left corner to the lower right corner, a single LIC parameter set is used for each partition of the current block.
[0777] 52. A video processing method, comprising:
[0778] Conversion between a video and a bitstream representation of the video is performed, wherein the video is represented as a video frame including video blocks, and in the conversion to its corresponding bitstream representation, local illumination compensation (LIC) is performed on less than all pixels of a current block.
[0779] 53. The method of clause 52, wherein the converting generates video blocks from the bitstream representation.
[0780] 54. The method of clause 52, wherein the conversion generates a bitstream representation from the video blocks.
[0781] 55. A method according to any of clauses 52 to 54, wherein LIC is performed only on pixels on the boundary of the current block.
[0782] 56. A method according to any of clauses 52 to 54, wherein LIC is performed only on pixels in a top portion of the current block.
[0783] 57. A method according to any of clauses 52 to 54, wherein LIC is performed only on pixels in the right part of the current block.
[0784] 58. A method for video processing, comprising:
[0785] In converting between a video block and a bitstream representation of the video block, determining that both local illumination compensation (LIC) and generalized bi-prediction (GBi) or multi-hypothesis inter prediction codecs are enabled for use with the current block; and
[0786] The conversion is performed by performing LIC and GBi or multi-hypothesis inter prediction operations on the video blocks.
[0787] 59. A method as described in clause 58, wherein information associated with the GBi codec tool is signalled subsequent to information associated with the LIC codec tool.
[0788] 60. A method as described in clause 58, wherein information associated with the LIC codec tool is signalled subsequent to information associated with the GBi codec tool.
[0789] 61. A method according to clause 59 or 60, wherein the information is signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a slice group header, a slice, a codec unit (CU) or a codec tree unit (CTU).
[0790] 62. The method of clause 58, wherein the LIC flag is true, and wherein the bitstream representation does not include one or more syntax elements associated with a GBi or multiple hypothesis inter prediction codec.
[0791] 63. The method of clause 58, wherein the GBi flag is true, and wherein the bitstream representation does not include one or more syntax elements associated with a LIC or a multiple hypothesis inter prediction codec.
[0792] 64. The method of clause 58, wherein a multi-hypothesis inter prediction (LIC) flag is true, and wherein the bitstream representation does not include one or more syntax elements associated with a LIC or GBi codec.
[0793] 65. A method for video processing, comprising:
[0794] In converting between a video block and a bitstream representation of the video block, determining that both local illumination compensation (LIC) and combined inter-intra prediction (CIIP) codec tools are enabled for use with the current block; and
[0795] The conversion is performed by performing LIC and CIIP operations on the video blocks.
[0796] 66. A method as described in clause 65, wherein information associated with the CIIP codec tool is signalled subsequent to information associated with the LIC codec tool.
[0797] 67. A method as described in clause 65, wherein the information associated with the LIC codec tool is signaled after the information associated with the CIIP codec tool.
[0798] 68. A method according to clause 66 or 67, wherein the information is signalled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a slice group header, a slice, a codec unit (CU) or a codec tree unit (CTU).
[0799] 69. The method of clause 65, wherein the LIC flag is true, and wherein the bitstream representation does not include one or more syntax elements associated with the CIIP codec tool.
[0800] 70. The method of clause 65, wherein the CIIP flag is true, and wherein the bitstream representation does not include one or more syntax elements associated with a LIC codec tool.
[0801] 71. A method according to any of clauses 1 to 70, wherein the bitstream is configured with a bit field that controls the operation of the conversion.
[0802] 72. A method according to clause 71, wherein the bit field is included at a sequence level, a picture level, a video level, a sequence header level, a picture header level, a slice header level, a slice level or a codec tree unit group level.
[0803] 73. A video encoding apparatus comprising a processor configured to implement the method according to any one or more of clauses 1 to 72.
[0804] 74. A video decoding apparatus comprising a processor configured to implement the method according to any one or more of clauses 1 to 72.
[0805] 75. A computer readable medium having stored thereon code which, when executed, causes a processor to implement the method according to any one or more of clauses 1 to 72.
[0806] Fig.424200 is a flow chart of a method 4200 for video processing. The method 4200 includes constructing (4210) a motion candidate list having at least one motion candidate for conversion between a current block of a video and a bitstream representation of the video. The method 4200 includes determining (4220) whether a generalized bidirectional prediction (GBI) processing tool is enabled based on a candidate type of a first motion candidate. The GBI processing tool includes deriving a final prediction based on applying equal or unequal weights to predictions derived from different reference lists according to a weight set. The method 4200 also includes performing (4230) the conversion based on the determination.
[0807] In some embodiments, the motion candidate list includes a Merge candidate list. In some embodiments, the first motion candidate is a pairwise average Merge candidate or a zero motion vector Merge candidate. In some embodiments, the GBI processing tool is disabled. In some embodiments, equal weights are applied to each prediction derived from a different reference picture list. In some embodiments, the pairwise average Merge candidate is generated by averaging predefined existing candidate pairs in the Merge candidate list.
[0808] Fig.43 is a flowchart representation of a method 4300 of video processing. The method 4300 includes determining (4310) an operational state of local illumination compensation (LIC) prediction, generalized bidirectional (GBI) prediction, or weighted prediction for a conversion between a current block of video and a bitstream representation of the video. The current block is associated with a prediction technique that uses at least one virtual motion candidate. The method 4300 also includes performing (4320) the conversion based on the determination.
[0809] In some embodiments, the prediction technique comprises at least one of pairwise prediction or combined bi-prediction.In some embodiments, the at least one virtual motion candidate comprises a zero motion vector candidate.
[0810] In some embodiments, the operating state indicates that at least one of LIC prediction, GBI prediction or weighted prediction is disabled. In some embodiments, two motion candidates are associated with prediction techniques. In some embodiments, the operating state of LIC prediction indicates that LIC prediction is enabled when one of the two motion candidates adopts LIC prediction and neither of the two motion candidates adopts GBI prediction or weighted prediction. In some embodiments, the operating state of LIC prediction indicates that LIC prediction is enabled when both motion candidates adopt LIC prediction. In some embodiments, the operating state of weighted prediction indicates that weighted prediction is enabled when one of the two motion candidates adopts weighted prediction and neither of the two motion candidates adopts LIC prediction or GBI prediction. In some embodiments, the operating state of weighted prediction indicates that weighted prediction is enabled when both motion candidates adopt weighted prediction. In some embodiments, the operating state of GBI prediction indicates that GBI prediction is enabled when one of the two motion candidates adopts GBI prediction and neither of the two motion candidates adopts LIC prediction or weighted prediction. In some embodiments, the operating state of GBI prediction indicates that GBI prediction is enabled when both motion candidates adopt GBI prediction and use the same GBI index. Item 12 in the previous section also describes additional variations and implementations of method 4300.
[0811] Fig.44 is a flowchart representation of a method 4400 of video processing. The method 4400 includes, for a conversion between a current block of video and a bitstream representation of the video, determining (4410) a state of a filtering operation or one or more parameters of a filtering operation on the current block based on characteristics of a local illumination compensation (LIC) prediction, a generalized bidirectional (GBI) prediction, a weighted prediction, or an affine motion prediction of the current block. The method 4400 includes performing (4420) the conversion based on the determination.
[0812] In some embodiments, the characteristics of the LIC prediction, GBI prediction or weighted prediction include at least a flag of the LIC prediction, a parameter of the weighted prediction or an index of the GBI prediction. In some embodiments, the filtering operation includes a deblocking filter. In some embodiments, one or more parameters of the filtering operation include a boundary filter strength of the deblocking filter. In some embodiments, the boundary filter strength is increased when the GBI index of the current block is different from the GBI index of the adjacent block. In some embodiments, the boundary filter strength is increased when the LIC flag of the current block is different from the LIC flag of the adjacent block. In some embodiments, the boundary filter strength is increased when the parameters of the LIC prediction of the current block are different from the parameters of the LIC prediction of the adjacent block. In some embodiments, the boundary filter strength is increased when the current block adopts a weighting factor of weighted prediction different from that of the adjacent block. In some embodiments, the boundary filter strength is increased when only one of the current block and the adjacent block adopts weighted prediction. In some embodiments, the boundary filter strength is increased when the parameters of the affine prediction of the current block are different from the parameters of the affine prediction of the adjacent block. In some embodiments, the boundary filter strength is increased when only one of the current block and the adjacent block adopts affine motion prediction.
[0813] In some embodiments, the current block and the adjacent block have the same motion vector. In some embodiments, the state of the filtering operation indicates that a deblocking filter is applied when the characteristics of the LIC prediction, GBI prediction, or weighted prediction of the current block are different from the characteristics of the LIC prediction, GBI prediction, or weighted prediction of the adjacent block. In some embodiments, the state of the filtering operation indicates that a deblocking filter is applied when only one of the current block and the adjacent block adopts LIC prediction. In some embodiments, the state of the filtering operation indicates that a deblocking filter is applied when only one of the current block and the adjacent block adopts weighted prediction. In some embodiments, the state of the filtering operation indicates that a deblocking filter is applied when only one of the current block and the adjacent block adopts GBI prediction. In some embodiments, the state of the filtering operation indicates that a deblocking filter is applied when only one of the current block and the adjacent block adopts affine prediction.
[0814] In some embodiments, the conversion generates the current block from the bitstream representation. In some embodiments, the conversion generates the bitstream representation from the current block. Items 13-15 in the previous sections also describe additional variations and implementations of method 4400.
[0815] The disclosed and other embodiments, modules and functional operations described in this document may be implemented in digital electronic circuits, or in computer software, firmware or hardware, including the structures disclosed in this document and their structural equivalents, or in a combination of one or more of them. The disclosed and other embodiments may 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 a data processing device or for controlling the operation of the data processing device. The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a memory device, a material combination that implements a machine-readable propagation signal, or a combination of one or more of them. The term "data processing device" encompasses all devices, equipment and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. In addition to hardware, the device may also include code that creates an operating environment for the computer program in question, for example, code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. A propagation signal is an artificially generated signal, for example, a machine-generated electrical signal, an optical signal, or an electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device.
[0816] A computer program (also referred to as a program, software, software application, script, or code) may be written in any form of programming language, including compiled or interpreted languages, and may 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 may 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 multiple coordinated files (e.g., files storing one or more modules, subroutines, or portions of code). A computer program may be deployed to execute on one or more computers located at one site or distributed across multiple sites and interconnected by a communications network.
[0817] The processes and logic flows described herein may be performed by one or more programmable processors running 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 apparatus may be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
[0818] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and any one or more processors of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or be operably coupled to receive data from one or more mass storage devices or to transfer data to them or both. However, a computer does not require such a device. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, for example, including semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and memory can be supplemented by or incorporated into a dedicated logic circuit.
[0819] Although this patent document contains many details, these should not be interpreted as limitations on any invention or the scope of the claimed protection, but rather as descriptions of features unique to specific embodiments of specific inventions. 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 individually or in any suitable sub-combination. In addition, although the above-mentioned features may be described as working in certain combinations and even initially claimed to be protected in this way, in some cases, one or more features in the combination may be deleted from the claimed combination, and the claimed combination may be directed to a sub-combination or a variation of a sub-combination.
[0820] Similarly, although operations are described in a particular order in the drawings, this should not be understood as requiring that the operations be performed in the particular order shown or in sequence, or that all of the operations shown be performed, in order to achieve the desired results. Furthermore, 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.
[0821] Only a few implementations and examples are described, and other implementations, enhancements, and variations can be made based on what is described and illustrated in this patent document.
Claims
1. A video processing method, comprising: For conversion between a current block of a video and a bitstream of the video, determining a state of a filtering operation on the current block based on characteristics of a local illumination compensation (LIC) prediction, a generalized bidirectional (GBI) prediction, a weighted prediction, or an affine motion prediction of the current block; as well as performing said converting based on said determining; The state of the filtering operation indicates that a deblocking filter is applied when a feature of the LIC prediction or weighted prediction of the current block is different from a feature of the LIC prediction or weighted prediction of an adjacent block, wherein the feature includes an enable state, and the enable state includes enable or disable.
2. The method according to claim 1, wherein: The conversion generates a current block from a bitstream.
3. The method according to claim 1, wherein: The conversion generates a bitstream from the current block.
4. The method according to any one of claims 1 to 3, wherein: The characteristics of the LIC prediction, the GBI prediction or the weighted prediction include at least a flag of the LIC prediction, a parameter of the weighted prediction or an index of the GBI prediction.
5. The method according to claim 1, wherein: The filtering operation comprises a deblocking filter.
6. The method according to claim 5, wherein: The one or more parameters of the filtering operation include a boundary filtering strength of the deblocking filter.
7. The method according to claim 6, wherein: When the GBI index of the current block is different from the GBI index of the adjacent block, the boundary filtering strength is increased.
8. The method according to claim 6, wherein: When the LIC flag of the current block is different from the LIC flag of the adjacent block, the boundary filtering strength is increased.
9. The method according to claim 6, wherein: When the parameters of the LIC prediction of the current block are different from the parameters of the LIC prediction of the neighboring block, the boundary filtering strength is increased.
10. The method according to claim 6, wherein: In the case that the current block adopts a weighting factor of weighted prediction different from that of an adjacent block, the boundary filtering strength is increased.
11. The method according to claim 6, wherein: In the case that only one of the current block and the neighboring block adopts the weighted prediction, the boundary filtering strength is increased.
12. The method according to claim 6, wherein: When the parameters of the affine prediction of the current block are different from the parameters of the affine prediction of the adjacent block, the boundary filter strength is increased.
13. The method according to claim 6, wherein: In the case that only one of the current block or the neighboring blocks adopts the affine motion prediction, the boundary filtering strength is increased.
14. The method according to any one of claims 5 to 13, wherein: The current block and the adjacent block have the same motion vector.
15. The method according to claim 14, wherein: The state of the filtering operation indicates that the deblocking filter is applied if a characteristic of the GBI prediction of the current block is different from a characteristic of the GBI prediction of a neighboring block.
16. The method according to claim 14, wherein: The state of the filtering operation indicates that the deblocking filter is applied when only one of the current block and the neighboring block adopts the LIC prediction.
17. The method according to claim 14, wherein: The state of the filtering operation indicates that the deblocking filter is applied when only one of the current block and the neighboring block adopts the weighted prediction.
18. The method according to claim 14, wherein: The state of the filtering operation indicates that the deblocking filter is applied when only one of the current block and the neighboring block adopts the GBI prediction.
19. The method according to claim 14, wherein: The state of the filtering operation indicates that the deblocking filter is applied when only one of the current block and the neighboring block adopts the affine motion prediction.
20. A video processing apparatus comprising a processor configured to implement the method according to any one of claims 1 to 19.
21. A computer readable medium having stored thereon code which, when executed, causes a processor to implement the method of any one of claims 1 to 19.
22. A method for storing a bitstream of a video, the method comprising: Generating a bitstream of a video based on a current block of the video, determining a state of a filtering operation on the current block based on characteristics of a local illumination compensation (LIC) prediction, a generalized bidirectional (GBI) prediction, a weighted prediction, or an affine motion prediction of the current block; as well as generating a bitstream of the video based on the current block of the video based on the determining; as well as storing the generated video bitstream on a computer-readable medium; The state of the filtering operation indicates that a deblocking filter is applied when a feature of the LIC prediction or weighted prediction of the current block is different from a feature of the LIC prediction or weighted prediction of an adjacent block, wherein the feature includes an enable state, and the enable state includes enable or disable.
Citation Information
Cited By
Motion candidate lists that use local illumination compensation
US12621432B2
Harmonized local illumination compensation and modified inter coding tools
US12627790B2
