Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
HARMONIZED LOCAL ILLUMINATION COMPENSATION AND INTRA BLOCK COPY CODING
Document Type and Number:
WIPO Patent Application WO/2020/084506
Kind Code:
A1
Abstract:
A video processing method is provided to comprise determining, for a conversion between a current block of a current video picture of a video and a coded representation of the video, that both a local illumination compensation (LIC) tool and an intra block copy (IBC) tool are enabled for the conversion of the current block, and performing the conversion based on the determining. The LIC tool uses a linear model of illumination changes in the current block during the conversion, and the IBC tool uses a portion of the current video picture for the conversion of the current block.

Inventors:
LIU HONGBIN (CN)
ZHANG LI (US)
ZHANG KAI (US)
WANG YUE (CN)
Application Number:
PCT/IB2019/059047
Publication Date:
April 30, 2020
Filing Date:
October 23, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BEIJING BYTEDANCE NETWORK TECH CO LTD (CN)
BYTEDANCE INC (US)
International Classes:
H04N19/70
Foreign References:
US20180098087A12018-04-05
US20160366416A12016-12-15
CN2018093987W2018-07-02
Other References:
SEREGIN V ET AL: "On intra block copy bitstream constraints", 21. JCT-VC MEETING; 19-6-2015 - 26-6-2015; WARSAW; (JOINT COLLABORATIVE TEAM ON VIDEO CODING OF ISO/IEC JTC1/SC29/WG11 AND ITU-T SG.16 ); URL: HTTP://WFTP3.ITU.INT/AV-ARCH/JCTVC-SITE/,, no. JCTVC-U0118-v2, 19 June 2015 (2015-06-19), XP030117559
SEREGIN (QUALCOMM) V ET AL: "CE4-3.1a and CE4-3.1b: Unidirectional local illumination compensation with affine prediction", no. JVET-O0066, 18 June 2019 (2019-06-18), XP030205600, Retrieved from the Internet [retrieved on 20190618]
Attorney, Agent or Firm:
LIU, SHEN & ASSOCIATES (CN)
Download PDF:
Claims:
CLAIMS

1. A video processing method, comprising:

determining, for a conversion between a current block of a current video picture of a video and a coded representation of the video, that both a local illumination compensation (LIC) tool and an intra block copy (IBC) tool are enabled for the conversion of the current block; and

performing the conversion based on the determining,

wherein the LIC tool uses a linear model of illumination changes in the current block during the conversion, and

wherein the IBC tool uses a portion of the current video picture for the conversion of the current block.

2. The method of claim 1 , wherein an indication of LIC usage is signaled for the current block coded with an intra block copy mode.

3. The method of claim 1 , wherein the current block uses intra block copy merge mode and wherein the current block inherits LIC flag value of a neighboring block.

4. The method of claim 1 , wherein the current block uses intra block copy merge mode and wherein the current block inherits LIC parameters of a neighboring block.

5. The method of claim 1 , wherein an LIC flag is true and LIC parameter is derived implicitly.

6. The method of claim 1 , wherein the LIC operation is performed based on a determination that the current block is the boundary block of a coding tree unit (CTU) in which the current block is positioned.

7. The method of claim 1 , wherein the LIC operation is performed based a determination that the current block is an inner block of a coding tree unit (CTU) in which the current block is positioned.

8. The method of claim 1 , wherein an indication of IBC usage is signaled for the current block coded with a LIC mode.

9. A video processing method, comprising:

determining to use a rule that specifies to use a local illumination compensation (LIC) tool exclusive with a current picture referencing (CPR) mode for a conversion between a current block of a video and a coded representation of the video; and

performing the conversion based on the determining,

wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion, and

wherein the CPR mode includes using another portion of a current picture comprising the current block for a prediction of the current block.

10. The method of claim 9, wherein signaling of an indication of LIC usage is skipped in case that the CPR mode is enabled for the current block.

1 1. The method of claim 9, wherein signaling of an indication of CPR usage is skipped in case that the LIC mode is enabled for the current block.

12. The method of any of claims 1 to 1 1 , wherein the performing of the conversion includes generating the coded representation from the current block.

13. The method of any of claims 1 to 1 1 , wherein the performing of the conversion includes generating the current block from the coded representation.

14. An apparatus in a video system comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to implement the method recited in one or more of claims 1 to 13.

15. A computer program product stored on a non-transitory computer readable media, the computer program product including program code for carrying out the method recited in one or more of claims 1 to 13.

Description:
HARMONIZED LOCAL ILLUMINATION COMPENSATION AND INTRA BLOCK COPY CODING

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] Under the applicable patent law and/or rules pursuant to the Paris

Convention, this application is made to timely claim the priority to and benefits of International Patent Application No. PCT/CN2018/1 1 1436, filed on October 23, 2018, and PCT/CN2019/071759, filed on January 15, 2019. For all purposes under the U.S. law, the entire disclosures of the aforementioned applications are incorporated by reference as part of the disclosure of this application.

TECHNICAL FIELD

[0002] The present patent document relates to the field of video coding.

BACKGROUND

[0003] Currently, efforts are underway to improve the performance of current video codec technologies to provide better compression ratios or provide video coding and decoding schemes that allow for lower complexity or parallelized implementations. Industry experts have recently proposed several new video coding tools and tests are currently underway for determining their effectivity.

SUMMARY

[0004] The present document provides techniques for incorporating local illumination compensation in embodiments of video encoders or decoders.

[0005] In one example aspect, a method of video processing is disclosed. A video processing method is provided to comprise determining, for a conversion between a current block of a current video picture of a video and a coded representation of the video, that both a local illumination compensation (LIC) tool and an intra block copy (IBC) tool are enabled for the conversion of the current block, and performing the conversion based on the determining. The LIC tool uses a linear model of illumination changes in the current block during the conversion, and the IBC tool uses a portion of the current video picture for the conversion of the current block.

[0006] In another example aspect, a method of video processing is disclosed determining to use a rule that specifies to use a local illumination compensation (LIC) tool exclusive with a current picture referencing (CPR) mode for a conversion between a current block of a video and a coded representation of the video; and performing the conversion based on the determining. The LIC tool includes using a linear model of illumination changes in the current block during the conversion, and the CPR mode includes using another portion of a current picture comprising the current block for a prediction of the current block.

[0007] In another example aspect, a method of video processing is disclosed. The video processing method comprises: performing a determination, for a conversion between a current block of a video and a coded representation of the video, that a generalized bi prediction (GBI) tool or a multi-hypothesis inter prediction tool is enabled for the conversion or a local illumination compensation (LIC) tool being enabled for the conversion, and performing the conversion based on the determination, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[0008] In another example aspect, a method of video processing is disclosed. The video processing method comprises: determining to use a local illumination compensation (LIC) tool with a multi-hypothesis prediction tool for a conversion between a current block of a video and a coded representation of the video; and performing the conversion based on the determining, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[0009] In another example aspect, a method of video processing is disclosed. The video processing method comprises: determining to use a local illumination compensation (LIC) tool and a weighted prediction tool exclusive of each other for a conversion between a current block and a coded representation of the current block; and performing the conversion based on the determining, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[0010] In another example aspect, a method of video processing is disclosed. The method comprises: determining, based on an inheritance rule, whether to use a local illumination compensation (LIC) mode for a conversion between a current block of a video region of a video and a coded representation of the video, and performing the conversion based on the determining. The LIC mode includes using a linear model of illumination changes in the current block during the conversion. The inheritance rule specifies to inherit a use of the LIC mode from a base merge candidate of an ultimate motion vector expression (UMVE) mode, and the UMVE mode comprises using a motion vector expression that includes a base merge candidate and motion vector differences utilized to refine the motion information of the base merge candidate.

[0011] In another example aspect, a method of video processing is disclosed. The method comprises: determining to use a local illumination compensation (LIC) tool and a sub-block based coding mode exclusive of each other; and performing, based on the determining, a conversion between a current block of the video and a coded

representation of the video, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[0012] In another example aspect, a method of video processing is disclosed. The method determining to use a local illumination compensation (LIC) tool and a triangular prediction mode (TPM) exclusive of each other; and performing, based on the determining, a conversion between a current block of the video and a coded

representation of the video, wherein the LIC tool uses a linear model of illumination changes in the current block for the conversion and the TPM includes dividing the video region into at least two non-rectangular portions for the conversion.

[0013] 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 media. The computer program product includes program code for carrying out the methods described herein.

[0014] In yet another representative aspect, a video decoder apparatus may implement a method as described herein. [0015] The details of one or more implementations are set forth in the accompanying attachments, the drawings, and the description below. Other features will be apparent from the description and drawings, and from the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

[0016] FIG. 1 shows an example of a derivation process for merge candidates list construction.

[0017] FIG. 2 shows example positions of spatial merge candidates.

[0018] FIG. 3 shows examples of candidate pairs considered for redundancy check of spatial merge candidates.

[0019] FIG. 4 shows example positions for the second PU of N*2N and 2N*N partitions.

[0020] FIG. 5 is an Illustration of motion vector scaling for temporal merge candidate.

[0021] FIG. 6 shows examples of candidate positions for temporal merge candidate, CO and C1.

[0022] FIG. 7 shows an example of combined bi-predictive merge candidate

[0023] FIG. 8 shows an example of a derivation process for motion vector prediction candidates.

[0024] FIG. 9 is an example illustration of motion vector scaling for spatial motion vector candidate.

[0025] FIG. 10 illustrates an example of advanced temporal motion vector predictor (ATMVP) for a Coding Unit (CU).

[0026] FIG. 1 1 shows an Example of one CU with four sub-blocks (A-D) and its neighboring blocks (a-d).

[0027] FIG. 12 shows an example of a planar motion vector prediction process.

[0028] FIG. 13 is a flowchart of an example of encoding with different motion vector

(MV) precision.

[0029] FIG. 14 is an example Illustration of sub-blocks where OBMC applies.

[0030] FIG. 15 shows an example of neighboring samples used for deriving IC parameters. [0031] FIG. 16 is an illustration of splitting a coding unit (CU) into two triangular prediction units.

[0032] FIG. 17 shows an example of positions of neighboring blocks.

[0033] FIG. 18 shows an example in which a CU applies the 1 st weighting factor group.

[0034] FIG. 19 shows an example of motion vector storage implementation.

[0035] FIG. 20 shows an example of a simplified affine motion model.

[0036] FIG. 21 shows an example of affine MVF per sub-block.

[0037] FIG. 22 shows examples of (a) 4-paramenter affine model (b) and 6- parameter affine model.

[0038] FIG. 23 shows an example of a Motion Vector Predictor (MV) for AFJNTER mode.

[0039] FIG. 24A-24B shows examples of candidates for AF_MERGE mode.

[0040] FIG. 25 shows candidate positions for affine merge mode.

[0041] FIG. 26 shows example process for bilateral matching.

[0042] FIG. 27 shows example process of template matching.

[0043] FIG. 28 illustrates an implementation of unilateral motion estimation (ME) in frame rate upconversion (FRUC).

[0044] FIG. 29 illustrates an embodiment of an Ultimate Motion Vector Expression (UMVE) search process.

[0045] FIG. 30 shows examples of UMVE search points.

[0046] FIG. 31 shows an example of distance index and distance offset mapping.

[0047] FIG. 32 shows an example of an optical flow trajectory.

[0048] FIG. 33A-33B show examples of Bi-directional Optical flow (BIO) w/o block extension: a) access positions outside of the block; b) padding used in order to avoid extra memory access and calculation.

[0049] FIG. 34 illustrates an example of using Decoder-side motion vector refinement (DMVR) based on bilateral template matching.

[0050] FIG. 35 shows an example of neighboring samples used in a bilateral filter.

[0051] FIG. 36 shows an example of windows covering two samples used in weight calculation.

[0052] FIG. 37 shows an example of a decoding flow with the proposed history based motion vector prediction (HMVP) method.

[0053] FIG. 38 shows an example of updating the table in the proposed HMVP method.

[0054] FIG. 39 is a block diagram of a hardware platform for implementing the video coding or decoding techniques described in the present document.

[0055] FIG. 40A shows an example of a hardware platform for implementing methods and techniques described in the present document.

[0056] FIG. 40B shows another example of a hardware platform for implementing methods and techniques described in the present document.

[0057] FIGS. 41 A to 41 B are flowcharts of example methods of video processing.

[0058] FIGS. 42A to 42C are flowcharts of example methods of video processing.

[0059] FIGS. 43A to 43D are flowcharts of example methods of video processing.

DETAILED DESCRIPTION

[0060] The present document provides several techniques that can be embodied into digital video encoders and decoders. Section headings are used in the present document for clarity of understanding and do not limit scope of the techniques and embodiments disclosed in each section only to that section.

1. Summary

[0061] This patent document is related to video coding technologies. Specifically, it is related to local illumination compensation (LIC) in video coding. It may be applied to the existing video coding standard like HEVC, or the standard (Versatile Video Coding) to be finalized. It may be also applicable to future video coding standards or video codec.

2. Examples of video coding/decoding technologies

[0062] Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO/IEC standards. The ITU-T produced H.261 and H.263, ISO/IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H.262/MPEG-2 Video and H.264/MPEG-4 Advanced Video Coding (A VC) and H.265/HEVC standards. Since H.262, the video coding standards are based on the hybrid video coding structure wherein temporal prediction plus transform coding are utilized. To explore the future video coding technologies beyond HEVC, Joint Video Exploration Team (JVET) was founded by VCEG and MPEG jointly in 2015. Since then, many new methods have been adopted by JVET and put into the reference software named Joint Exploration Model (JEM). In April 2018, the Joint Video Expert Team (JVET) between VCEG (Q6/16) and ISO/IEC JTC1 SC29/WG1 1 (MPEG) was created to work on the VVC standard targeting at 50% bitrate reduction compared to HEVC.

[0063] The latest version of VVC draft, i.e. , Versatile Video Coding (Draft 2) could be found at:

http://phenix.it-sudparis.eu/jvet/doc_end_user/documents/ 1 1_Ljubljana/wg1 1/JVET- K1001 -v7.zip

[0064] The latest reference software of VVC, named VTM, could be found at:

https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM/tags /VTM-2.1

2.1. Inter prediction in HEVC/H.265

[0065] Each inter-predicted PU has motion parameters for one or two reference picture lists. Motion parameters include a motion vector and a reference picture index. Usage of one of the two reference picture lists may also be signalled using

inter_pred_idc. Motion vectors may be explicitly coded as deltas relative to predictors.

[0066] When a CU is coded with skip mode, one PU is associated with the CU, and there are no significant residual coefficients, no coded motion vector delta or reference picture index. A merge mode is specified whereby the motion parameters for the current PU are obtained from neighboring PUs, including spatial and temporal candidates. The merge mode can be applied to any inter-predicted PU, not only for skip mode. The alternative to merge mode is the explicit transmission of motion parameters, where motion vector (to be more precise, motion vector difference compared to a motion vector predictor), corresponding reference picture index for each reference picture list and reference picture list usage are signalled explicitly per each PU. Such a mode is named Advanced motion vector prediction (AMVP) in this disclosure. [0067] When signalling indicates that one of the two reference picture lists is to be used, the PU is produced from one block of samples. This is referred to as‘uni- prediction’. Uni-prediction is available both for P-slices and B-slices.

[0068] When signalling indicates that both of the reference picture lists are to be used, the PU is produced from two blocks of samples. This is referred to as‘bi- prediction’. Bi-prediction is available for B-slices only.

[0069] The following text provides the details on the inter prediction modes specified in HEVC. The description will start with the merge mode.

2.1.1. Merge Mode

2.1.1.1. Derivation of candidates for merge mode

[0070] When a PU is predicted using merge mode, an index pointing to an entry in the merge candidates list is parsed from the bitstream and used to retrieve the motion information. The construction of this list is specified in the HEVC standard and can be summarized according to the following sequence of steps:

• Step 1 : Initial candidates derivation

o Step 1.1 : Spatial candidates derivation

o Step 1.2: Redundancy check for spatial candidates

o Step 1.3: Temporal candidates derivation

• Step 2: Additional candidates insertion

o Step 2.1 : Creation of bi-predictive candidates

o Step 2.2: Insertion of zero motion candidates

[0071] These steps are also schematically depicted in FIG. 1. For spatial merge candidate derivation, a maximum of four merge candidates are selected among candidates that are located in five different positions. For temporal merge candidate derivation, a maximum of one merge candidate is selected among two candidates.

Since constant number of candidates for each PU is assumed at decoder, additional candidates are generated when the number of candidates obtained from step 1 does not reach the maximum number of merge candidate (MaxNumMergeCand) which is signalled in slice header. Since the number of candidates is constant, index of best merge candidate is encoded using truncated unary binarization (TU). If the size of CU is equal to 8, all the PUs of the current CU share a single merge candidate list, which is identical to the merge candidate list of the 2N*2N prediction unit.

[0072] In the following, the operations associated with the aforementioned steps are detailed.

2.1.1.2. Spatial candidates derivation

[0073] In the derivation of spatial merge candidates, a maximum of four merge candidates are selected among candidates located in the positions depicted in FIG. 2. The order of derivation is Ai, Bi, Bo, Ao and B2. Position B2 is considered only when any PU of position A1, B1, Bo, Ao is not available (e.g. because it belongs to another slice or tile) or is intra coded. After candidate at position A1 is added, the addition of the remaining candidates is subject to a redundancy check which ensures that candidates with same motion information are excluded from the list so that coding efficiency is improved. FIG. 3 shows examples of candidate pairs considered for redundancy check of spatial merge candidates. To reduce computational complexity, not all possible candidate pairs are considered in the mentioned redundancy check. Instead only the pairs linked with an arrow in FIG. 3 are considered and a candidate is only added to the list if the corresponding candidate used for redundancy check has not the same motion information. Another source of duplicate motion information is the“second PU” associated with partitions different from 2Nx2N. As an example, FIG. 4 depicts the second PU for the case of N*2N and 2N*N, respectively. When the current PU is partitioned as N*2N, candidate at position A1 is not considered for list construction. In fact, by adding this candidate will lead to two prediction units having the same motion information, which is redundant to just have one PU in a coding unit. Similarly, position Bi is not considered when the current PU is partitioned as 2N*N.

2.1.1.3. Temporal candidates derivation

[0074] In this step, only one candidate is added to the list. Particularly, in the derivation of this temporal merge candidate, a scaled motion vector is derived based on co-located PU belonging to the picture which has the smallest POC difference with current picture within the given reference picture list. The reference picture list to be used for derivation of the co-located PU is explicitly signalled in the slice header. FIG. 5 is an Illustration of motion vector scaling for temporal merge candidate. The scaled motion vector for temporal merge candidate is obtained as illustrated by the dotted line in FIG. 5, which is scaled from the motion vector of the co-located PU using the POC distances, tb and td, where tb is defined to be the POC difference between the reference picture of the current picture and the current picture and td is defined to be the POC difference between the reference picture of the co-located picture and the co- located picture. The reference picture index of temporal merge candidate is set equal to zero. A practical realization of the scaling process is described in the HEVC

specification. For a B-slice, two motion vectors, one is for reference picture list 0 and the other is for reference picture list 1 , are obtained and combined to make the bi-predictive merge candidate.

[0075] In the co-located PU (Y) belonging to the reference frame, the position for the temporal candidate is selected between candidates Co and Ci, as depicted in FIG. 6. If PU at position Co is not available, is intra coded, or is outside of the current CTU row, position Ci is used. Otherwise, position Co is used in the derivation of the temporal merge candidate.

2.1.1.4. Additional candidates insertion

[0076] Besides spatial and temporal merge candidates, there are two additional types of merge candidates: combined bi-predictive merge candidate and zero merge candidate. Combined bi-predictive merge candidates are generated by utilizing spatial and temporal merge candidates. Combined bi-predictive merge candidate is used for B- Slice only. The combined bi-predictive candidates are generated by combining the first reference picture list motion parameters of an initial candidate with the second reference picture list motion parameters of another. If these two tuples provide different motion hypotheses, they will form a new bi-predictive candidate. As an example, FIG. 7 depicts the case when two candidates in the original list (on the left), which have mvLO and refldxLO or mvL1 and refldxU , are used to create a combined bi-predictive merge candidate added to the final list (on the right). There are numerous rules regarding the combinations which are considered to generate these additional merge candidates.

[0077] Zero motion candidates are inserted to fill the remaining entries in the merge candidates list and therefore hit the MaxNumMergeCand capacity. These candidates have zero spatial displacement and a reference picture index which starts from zero and increases every time a new zero motion candidate is added to the list. The number of reference frames used by these candidates is one and two for uni and bi-directional prediction, respectively. Finally, no redundancy check is performed on these

candidates.

2.1.1.5. Motion estimation regions for parallel processing

[0078] To speed up the encoding process, motion estimation can be performed in parallel whereby the motion vectors for all prediction units inside a given region are derived simultaneously. The derivation of merge candidates from spatial neighbourhood may interfere with parallel processing as one prediction unit cannot derive the motion parameters from an adjacent PU until its associated motion estimation is completed. To mitigate the trade-off between coding efficiency and processing latency, HEVC defines the motion estimation region (MER) whose size is signalled in the picture parameter set using the“log2_parallel_merge_level_minus2” syntax element. When a MER is defined, merge candidates falling in the same region are marked as unavailable and therefore not considered in the list construction.

2.1.2. AMVP

[0079] AMVP exploits spatio-temporal correlation of motion vector with neighboring PUs, which is used for explicit transmission of motion parameters. For each reference picture list, a motion vector candidate list is constructed by firstly checking availability of left, above temporally neighboring PU positions, removing redundant candidates and adding zero vector to make the candidate list to be constant length. Then, the encoder can select the best predictor from the candidate list and transmit the corresponding index indicating the chosen candidate. Similarly with merge index signalling, the index of the best motion vector candidate is encoded using truncated unary. The maximum value to be encoded in this case is 2 (see FIG. 8). In the following sections, details about derivation process of motion vector prediction candidate are provided.

2.1.2.1. Derivation of AMVP candidates

[0080] In motion vector prediction, two types of motion vector candidates are considered: spatial motion vector candidate and temporal motion vector candidate. For spatial motion vector candidate derivation, two motion vector candidates are eventually derived based on motion vectors of each PU located in five different positions as depicted in FIG. 2.

[0081] For temporal motion vector candidate derivation, one motion vector candidate is selected from two candidates, which are derived based on two different co-located positions. After the first list of spatio-temporal candidates is made, duplicated motion vector candidates in the list are removed. If the number of potential candidates is larger than two, motion vector candidates whose reference picture index within the associated reference picture list is larger than 1 are removed from the list. If the number of spatio- temporal motion vector candidates is smaller than two, additional zero motion vector candidates is added to the list.

2.1.2.2. Spatial motion vector candidates

[0082] In the derivation of spatial motion vector candidates, a maximum of two candidates are considered among five potential candidates, which are derived from PUs located in positions as depicted in FIG. 2, those positions being the same as those of motion merge. The order of derivation for the left side of the current PU is defined as Ao, Ai,and scaled Ao, scaled Ai. The order of derivation for the above side of the current PU is defined as Bo, Bi , B2, scaled Bo, scaled B1 , scaled B2. For each side there are therefore four cases that can be used as motion vector candidate, with two cases not required to use spatial scaling, and two cases where spatial scaling is used. The four different cases are summarized as follows.

• No spatial scaling

- (1 ) Same reference picture list, and same reference picture index (same POC)

- (2) Different reference picture list, but same reference picture (same POC) • Spatial scaling

- (3) Same reference picture list, but different reference picture (different POC)

- (4) Different reference picture list, and different reference picture (different POC)

[0083] The no-spatial-scaling cases are checked first followed by the spatial scaling. Spatial scaling is considered when the POC is different between the reference picture of the neighboring PU and that of the current PU regardless of reference picture list. If all PUs of left candidates are not available or are intra coded, scaling for the above motion vector is allowed to help parallel derivation of left and above MV candidates. Otherwise, spatial scaling is not allowed for the above motion vector.

[0084] In a spatial scaling process, the motion vector of the neighboring PU is scaled in a similar manner as for temporal scaling, as depicted as FIG. 9. The main difference is that the reference picture list and index of current PU is given as input; the actual scaling process is the same as that of temporal scaling.

2.1.2.3. Temporal motion vector candidates

[0085] Apart for the reference picture index derivation, all processes for the derivation of temporal merge candidates are the same as for the derivation of spatial motion vector candidates (see FIG. 6). The reference picture index is signalled to the decoder.

2.2. New inter prediction methods in JEM 2.2.1. Sub-CU based motion vector prediction

[0086] In the JEM with QTBT, each CU can have at most one set of motion parameters for each prediction direction. Two sub-CU level motion vector prediction methods are considered in the encoder by splitting a large CU into sub-CUs and deriving motion information for all the sub-CUs of the large CU. Alternative temporal motion vector prediction (ATMVP) method allows each CU to fetch multiple sets of motion information from multiple blocks smaller than the current CU in the collocated reference picture. In spatial-temporal motion vector prediction (STMVP) method motion vectors of the sub-CUs are derived recursively by using the temporal motion vector predictor and spatial neighboring motion vector.

[0087] To preserve more accurate motion field for sub-CU motion prediction, the motion compression for the reference frames is currently disabled.

2.2.1.1. Alternative temporal motion vector prediction

[0088] In the alternative temporal motion vector prediction (ATMVP) method, the motion vectors temporal motion vector prediction (TMVP) is modified by fetching multiple sets of motion information (including motion vectors and reference indices) from blocks smaller than the current CU. As shown in FIG. 10, the sub-CUs are square N*N blocks (N is set to 4 by default).

[0089] ATMVP predicts the motion vectors of the sub-CUs within a CU in two steps. The first step is to identify the corresponding block in a reference picture with a so- called temporal vector. The reference picture is called the motion source picture. The second step is to split the current CU into sub-CUs and obtain the motion vectors as well as the reference indices of each sub-CU from the block corresponding to each sub- CU, as shown in FIG. 10.

[0090] In the first step, a reference picture and the corresponding block is

determined by the motion information of the spatial neighboring blocks of the current CU. To avoid the repetitive scanning process of neighboring blocks, the first merge candidate in the merge candidate list of the current CU is used. The first available motion vector as well as its associated reference index are set to be the temporal vector and the index to the motion source picture. This way, in ATMVP, the

corresponding block may be more accurately identified, compared with TMVP, wherein the corresponding block (sometimes called collocated block) is always in a bottom-right or center position relative to the current CU.

[0091] In the second step, a corresponding block of the sub-CU is identified by the temporal vector in the motion source picture, by adding to the coordinate of the current CU the temporal vector. For each sub-CU, the motion information of its corresponding block (the smallest motion grid that covers the center sample) is used to derive the motion information for the sub-CU. After the motion information of a corresponding N*N block is identified, it is converted to the motion vectors and reference indices of the current sub-CU, in the same way as TMVP of HEVC, wherein motion scaling and other procedures apply. For example, the decoder checks whether the low-delay condition (i.e. the POCs of all reference pictures of the current picture are smaller than the POC of the current picture) is fulfilled and possibly uses motion vector MV x (the motion vector corresponding to reference picture list X) to predict motion vector MV y (with X being equal to 0 or 1 and Y being equal to 1 -X) for each sub-CU.

2.2.1.2. Spatial-temporal motion vector prediction

[0092] In this method, the motion vectors of the sub-CUs are derived recursively, following raster scan order. FIG. 1 1 illustrates this concept. Let us consider an 8x8 CU which contains four 4x4 sub-CUs A, B, C, and D. The neighboring 4x4 blocks in the current frame are labelled as a, b, c, and d.

[0093] The motion derivation for sub-CU A starts by identifying its two spatial neighbours. The first neighbour is the N c N block above sub-CU A (block c). If this block c is not available or is intra coded the other N c N blocks above sub-CU A are checked (from left to right, starting at block c). The second neighbour is a block to the left of the sub-CU A (block b). If block b is not available or is intra coded other blocks to the left of sub-CU A are checked (from top to bottom, staring at block b). The motion information obtained from the neighboring blocks for each list is scaled to the first reference frame for a given list. Next, temporal motion vector predictor (TMVP) of sub-block A is derived by following the same procedure of TMVP derivation as specified in HEVC. The motion information of the collocated block at location D is fetched 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 averaged motion vector is assigned as the motion vector of the current sub-CU.

2.2.1.3. Sub-CU motion prediction mode signalling

[0094] The sub-CU modes are enabled as additional merge candidates and there is no additional syntax element required to signal the modes. Two additional merge candidates are added to merge candidates list of each CU to represent the ATMVP mode and STMVP mode. Up to seven merge candidates are used, if the sequence parameter set indicates that ATMVP and STMVP are enabled. The encoding logic of the additional merge candidates is the same as for the merge candidates in the HM, which means, for each CU in P or B slice, two more RD checks is needed for the two additional merge candidates.

[0095] In the JEM, all bins of merge index are context coded by CABAC. While in HEVC, only the first bin is context coded and the remaining bins are context by-pass coded.

2.2.2. Pairwise average candidates

[0096] Pairwise average candidates are generated by averaging predefined pairs of candidates 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 the numbers denote the merge indices to the merge candidate list. The averaged motion vectors are calculated separately for each reference list. If both motion vectors are available in one list, these two motion vectors are averaged even when they point to different reference pictures; if only one motion vector is available, use the one directly; if no motion vector is available, keep this list invalid. The pairwise average candidates replace the combined candidates in HEVC standard.

[0097] The complexity analysis of pairwise average candidates is summarized in the Table 1. For the worst case of additional calculations for averaging (the last column in Table 1), 4 additions and 4 shifts are needed for each pair (MVx and MVy in L0 and L1 ), and 4 reference index comparisons are needed for each pair (refldxO is valid and refldxl is valid in L0 and L1 ). There are 6 pairs, leading to 24 additions, 24 shifts, and 24 reference index comparisons in total. The combined candidates in HEVC standard use 2 reference index comparisons for each pair (refldxO is valid in L0 and refldxl is valid in L1 ), and there are 12 pairs, leading to 24 reference index comparisons in total. Table 1 : Operation analysis for the pairwise average candidates

2.2.3. Planar Motion Vector Prediction

[0098] In JVET-K0135, planar motion vector prediction is proposed.

[0099] To generate a smooth fine granularity motion field, FIG. 12 gives a brief description of the planar motion vector prediction process.

[00100] Planar motion vector prediction is achieved by averaging a horizontal and vertical linear interpolation on 4x4 block basis as follows.

[00101] 1/1/and H denote the width and the height of the block. (x,y) is the coordinates of current sub-block relative to the above left corner sub-block. All the distances are denoted by the pixel distances divided by 4. P(x,y) is the motion vector of current sub- block.

[00102] The horizontal prediction P h (x, y) and the vertical prediction P v (x, y ) for location (x,y) are calculated as follows:

[00103] where L(-\y) and R(W,y) are the motion vectors of the 4x4 blocks to the left and right of the current block. A(x -Y) and B(x,H ) are the motion vectors of the 4x4 blocks to the above and bottom of the current block.

[00104] The reference motion information of the left column and above row neighbour blocks are derived from the spatial neighbour blocks of current block.

[00105] The reference motion information of the right column and bottom row neighbour blocks are derived as follows.

1) Derive the motion information of the bottom right temporal neighbour 4x4 block

2) Compute the motion vectors of the right column neighbour 4x4 blocks, using the derived motion information of the bottom right neighbour 4x4 block along with the motion information of the above right neighbour 4x4 block, as described in Eq. (4).

3) Compute the motion vectors of the bottom row neighbour 4x4 blocks, using the derived motion information of the bottom right neighbour 4x4 block along with the motion information of the bottom left neighbour 4x4 block, as described in Eq. (5) .

where AR is the motion vector of the above right spatial neighbour 4x4 block, BR is the motion vector of the bottom right temporal neighbour 4x4 block, and BL is the motion vector of the bottom left spatial neighbour 4x4 block.

[00106] The motion information obtained from the neighboring blocks for each list is scaled to the first reference picture for a given list.

2.2.4. Adaptive motion vector difference resolution

[00107] In HEVC, motion vector differences (MVDs) (between the motion vector and predicted motion vector of a PU) are signalled in units of quarter luma samples when use_integer_mv_flag is equal to 0 in the slice header. In the JEM, a locally adaptive motion vector resolution (LAMVR) is introduced. In the JEM, MVD can be coded in units of quarter luma samples, integer luma samples or four luma samples. The MVD resolution is controlled at the coding unit (CU) level, and MVD resolution flags are conditionally signalled for each CU that has at least one non-zero MVD components. [00108] For a CU that has at least one non-zero MVD components, a first flag is signalled 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 signalled to indicate whether integer luma sample MV precision or four luma sample MV precision is used.

[00109] When the first MVD resolution flag of a CU is zero, or not coded for a CU (meaning all MVDs in the CU are zero), the quarter luma sample MV resolution is used for the CU. When a CU uses integer-luma sample MV precision or four-luma-sample MV precision, the MVPs in the AMVP candidate list for the CU are rounded to the corresponding precision.

[00110] In the encoder, CU-level RD checks are used to determine which MVD resolution is to be used for a CU. That is, the CU-level RD check is performed three times for each MVD resolution. To accelerate encoder speed, the following encoding schemes are applied in the JEM.

• During RD check of a CU with normal quarter luma sample MVD resolution, the motion information of the current CU (integer luma sample accuracy) 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 for the same CU with integer luma sample and 4 luma sample MVD resolution so that the time- consuming motion estimation process is not duplicated three times.

• RD check of a CU with 4 luma sample MVD resolution is conditionally invoked. For a CU, when RD cost integer luma sample MVD resolution is much larger than that of quarter luma sample MVD resolution, the RD check of 4 luma sample MVD resolution for the CU is skipped.

[00111] The encoding process is shown in FIG. 13. First, 1/4 pel MV is tested and the RD cost is calculated and denoted as RDCostO, then integer MV is tested and the RD cost is denoted as RDCostl. If RDCostl < th * RDCostO (wherein th is a positive value), then 4-pel MV is tested; otherwise, 4-pel MV is skipped. Basically, motion information and RD cost etc. are already known for 1/4 pel MV when checking integer or 4-pel MV, which can be reused to speed up the encoding process of integer or 4-pel MV. 2.2.5. Higher motion vector storage accuracy

[00112] In HEVC, motion vector accuracy is one-quarter pel (one-quarter luma sample and one-eighth chroma sample for 4:2:0 video). In the JEM, the accuracy for the internal motion vector storage and the merge candidate increases to 1/16 pel. The higher motion vector accuracy (1/16 pel) is used in motion compensation inter prediction for the CU coded with skip/merge mode. For the CU coded with normal AMVP mode, either the integer-pel or quarter-pel motion is used, as described in section 2.2.2.

[00113] SHVC upsampling interpolation filters, which have same filter length and normalization factor as HEVC motion compensation interpolation filters, are used as motion compensation interpolation filters for the additional fractional pel positions. The chroma component motion vector accuracy is 1/32 sample in the JEM, the additional interpolation filters of 1/32 pel fractional positions are derived by using the average of the filters of the two neighboring 1/16 pel fractional positions.

2.2.6. Overlapped block motion compensation

[00114] Overlapped Block Motion Compensation (OBMC) has previously been used in H.263. In the JEM, unlike in H.263, OBMC can be switched on and off using syntax at the CU level. When OBMC is used in the JEM, the OBMC is performed for all motion compensation (MC) block boundaries except the right and bottom boundaries of a CU. Moreover, it is applied for both the luma and chroma components. In the JEM, a MC block is corresponding to a coding block. When a CU is coded with sub-CU mode (includes sub-CU merge, affine and FRUC mode), each sub-block of the CU is a MC block. To process CU boundaries in a uniform fashion, OBMC is performed at sub-block level for all MC block boundaries, where sub-block size is set equal to 4x4, as illustrated in FIG. 14.

[00115] When OBMC applies to the current sub-block, besides current motion vectors, motion vectors of four connected neighboring sub-blocks, if available and are not identical to the current motion vector, are also used to derive prediction block for 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.

[00116] Prediction block based on motion vectors of a neighboring sub-block is denoted as PN, with N indicating an index for the neighboring above, below, left and right sub-blocks and prediction block based on motion vectors of the current sub-block is denoted as Pc. When PN is based on the motion information of a neighboring sub- block that contains the same motion information to the current sub-block, the OBMC is not performed from PN. Otherwise, every sample of PN is added to the same sample in Pc, i.e. , four rows/columns of PN are added to Pc. The weighting factors {1/4, 1/8, 1/16, 1/32} are used for PN and the weighting factors {3/4, 7/8, 15/16, 31/32} are used for Pc. The exception are small MC blocks, (i.e., when height or width of the coding block is equal to 4 or a CU is coded with sub-CU mode), for which only two rows/columns of PN are added to Pc. In this case weighting factors {1/4, 1/8} are used for PN and weighting factors {3/4, 7/8} are used for Pc. For PN generated based on motion vectors of vertically (horizontally) neighboring sub-block, samples in the same row (column) of PN are added to Pc with a same weighting factor.

[00117] In the JEM, for a CU with size less than or equal to 256 luma samples, a CU level flag is signalled to indicate whether OBMC is applied or not for the current CU. For the CUs with size larger than 256 luma samples or not coded with AMVP mode, OBMC is applied by default. At the encoder, when OBMC is applied for a CU, its impact is taken into account during the motion estimation stage. The prediction signal formed by OBMC using motion information of the top neighboring block and the left neighboring block is used to compensate the top and left boundaries of the original signal of the current CU, and then the normal motion estimation process is applied.

2.2.7. Local illumination compensation

[00118] Local Illumination Compensation (LIC) is based on a linear model for illumination changes, using a scaling factor a and an offset b. And it is enabled or disabled adaptively for each inter-mode coded coding unit (CU).

[00119] When LIC applies for a CU, a least square error method is employed to derive the parameters a and b by using the neighboring samples of the current CU and their corresponding reference samples. More specifically, as illustrated in FIG. 15, the subsampled (2: 1 subsampling) neighboring samples of the CU and the corresponding samples (identified by motion information of the current CU or sub-CU) in the reference picture are used. The 1C parameters are derived and applied for each prediction direction separately.

[00120] When a CU is coded with merge mode, the LIC flag is copied from

neighboring blocks, in a way similar to motion information copy in merge mode;

otherwise, an LIC flag is signalled for the CU to indicate whether LIC applies or not.

[00121] When LIC is enabled for a picture, addtional CU level RD check is needed to determine whether LIC is applied or not for a CU. When LIC is enabled for a CU, mean- removed sum of absolute diffefference (MR-SAD) and mean-removed sum of absolute Hadamard-transformed difference (MR-SATD) are used, instead of SAD and SATD, for integer pel motion search and fractional pel motion search, respectively.

[00122] To reduce the encoding complexity, the following encoding scheme is applied in the JEM. LIC is disabled for the entire picture when there is no obvious illumination change between a current picture and its reference pictures. To identify this situation, histograms of a current picture and every reference picture of the current picture are calculated at the encoder. If the histogram difference between the current picture and every reference picture of the current picture is smaller than a given threshold, LIC is disabled for the current picture; otherwise, LIC is enabled for the current picture.

2.2.8. Hybrid intra and inter prediction

[00123] In JVET-L0100, multi-hypothesis prediction is proposed, wherein hybrid intra and inter prediction is one way to generate multiple hypotheses.

[00124] When the multi-hypothesis prediction is applied to improve intra mode, multi- hypothesis prediction combines one intra prediction and one merge indexed prediction. In a merge CU, one flag is signaled for merge mode to select an intra mode from an intra candidate list when the flag is true. For luma component, the intra candidate list is derived from 4 intra prediction modes including DC, planar, horizontal, and vertical modes, and the size of the intra candidate list can be 3 or 4 depending on the block shape. When the CU width is larger than the double of CU height, horizontal mode is exclusive of the intra mode list and when the CU height is larger than the double of CU width, vertical mode is removed from the intra mode list. One intra prediction mode selected by the intra mode index and one merge indexed prediction selected by the merge index are combined using weighted average. For chroma component, DM is always applied without extra signaling. The weights for combining predictions are described as follow. When DC or planar mode is selected, or the CB width or height is smaller than 4, equal weights are applied. For those CBs with CB width and height larger than or equal to 4, when horizontal/vertical mode is selected, one CB is first vertically/horizontally split into four equal-area regions. Each weight set, denoted as (wjntrai, wjnten), where i is from 1 to 4 and (wjntrai, wjnten) = (6, 2), (w_intra2, w_inter2) = (5, 3), (w_intra3, wjnten) = (3, 5), and (w_intra 4 , w_inter 4 ) = (2, 6), will be applied to a corresponding region (wjntrai, wjnten) is for the region closest to the reference samples and (wjntra 4 , wjnten) is for the region farthest away from the reference samples. Then, the combined prediction can be calculated by summing up the two weighted predictions and right-shifting 3 bits. Moreover, the intra prediction mode for the intra hypothesis of predictors can be saved for reference of the following neighboring CUs.

2.2.9. Triangular prediction unit mode

[00125] The concept of the triangular prediction unit mode is to introduce a new triangular partition for motion compensated prediction. As shown in FIG. 16, it splits a CU into two triangular prediction units (PUs), in either diagonal or inverse diagonal direction. Each triangular prediction unit in the CU is inter-predicted using its own uni- prediction motion vector and reference frame index which are derived from a uni- prediction candidate list. An adaptive weighting process is performed to the diagonal edge after predicting the triangular prediction units. Then, the transform and quantization process are applied to the whole CU. It is noted that this mode is only applied to skip and merge modes.

[00126] Uni-prediction candidate list

[00127] The uni-prediction candidate list consists of five uni-prediction motion vector candidates. It is derived from seven neighboring blocks including five spatial neighboring blocks (1 to 5) and two temporal co-located blocks (6 to 7), as shown in FIG. 17. The motion vectors of the seven neighboring blocks are collected and put into the uni-prediction candidate list according in the order of uni-prediction motion vectors, L0 motion vector of bi-prediction motion vectors, L1 motion vector of bi-prediction motion vectors, and averaged motion vector of the L0 and L1 motion vectors of bi- prediction motion vectors. If the number of candidates is less than five, zero motion vector is added to the list.

Adaptive weighting process

[00128] After predicting each triangular prediction unit, an adaptive weighting process is applied to the diagonal edge between the two triangular prediction units to derive the final prediction for the whole CU. Two weighting factor groups are listed as follows:

• 1 st weighting factor group: {7/8, 6/8, 4/8, 2/8, 1/8} and {7/8, 4/8, 1/8} are used for the luminance and the chrominance samples, respectively;

• 2 nd weighting factor group: {7/8, 6/8, 5/8, 4/8, 3/8, 2/8, 1/8} and {6/8, 4/8, 2/8} are used for the luminance and the chrominance samples, respectively.

[00129] One weighting factor group is selected based on the comparison of the motion vectors of two triangular prediction units. The 2 nd weighting factor group is used when the reference pictures of the two triangular prediction units are different from each other or their motion vector difference is larger than 16 pixels. Otherwise, the 1 st weighting factor group is used. An example is shown in FIG. 18.

[00130] Motion vector storage

[00131] The motion vectors (Mv1 and Mv2 in FIG. 19) of the triangular prediction units are stored in 4x4 grids. For each 4x4 grid, either uni-prediction or bi-prediction motion vector is stored depending on the position of the 4x4 grid in the CU. As shown in FIG. 19, uni-prediction motion vector, either Mv1 or Mv2, is stored for the 4x4 grid located in the non-weighted area. On the other hand, a bi-prediction motion vector is stored for the 4x4 grid located in the weighted area. The bi-prediction motion vector is derived from Mv1 and Mv2 according to the following rules:

1 ) In the case that Mv1 and Mv2 have motion vector from different directions (L0 or L1 ), Mv1 and Mv2 are simply combined to form the bi-prediction motion vector.

2) In the case that both Mv1 and Mv2 are from the same L0 (or L1 ) direction, 2. a) If the reference picture of Mv2 is the same as a picture in the L1 (or L0) reference picture list, Mv2 is scaled to the picture. Mv1 and the scaled Mv2 are combined to form the bi-prediction motion vector.

2.b) If the reference picture of Mv1 is the same as a picture in the L1 (or L0) reference picture list, Mv1 is scaled to the picture. The scaled Mv1 and Mv2 are combined to form the bi-prediction motion vector.

2.c) Otherwise, only Mv1 is stored for the weighted area.

2.2.10. Affine motion compensation prediction

[00132] In HEVC, only translation motion model is applied for motion compensation prediction (MCP). While in the real world, there are many kinds of motion, e.g. zoom in/out, rotation, perspective motions and he other irregular motions. In the JEM, a simplified affine transform motion compensation prediction is applied. As shown in FIG. 20, the affine motion field of the block is described by two control point motion vectors.

[00133] The motion vector field (MVF) of a block is described by the following equation:

[00134] Where (vox, vo y ) is motion vector of the top-left corner control point, and {vix, vi y ) is motion vector of the top-right corner control point.

[00135] In order to further simplify the motion compensation prediction, sub-block based affine transform prediction is applied. The sub-block size M x N is derived as in Eq. (7), where MvPre is the motion vector fraction accuracy (1/16 in JEM), {v å x, V2y) is motion vector of the bottom-left control point, calculated according to Eq. (6).

[00136] After derived by Eq. (7), M and N should be adjusted downward if necessary to make it a divisor of w and h, respectively.

[00137] To derive motion vector of each M*N sub-block, the motion vector of the center sample of each sub-block, as shown in FIG. 21 , is calculated according to Equation 1 , and rounded to 1/16 fraction accuracy. Then the motion compensation interpolation filters mentioned in section 2.2.5 are applied to generate the prediction of each sub-block with derived motion vector.

[00138] After MCP, the high accuracy motion vector of each sub-block is rounded and saved as the same accuracy as the normal motion vector.

2.2.10.1. AFJNTER mode

[00139] In the JEM, there are two affine motion modes: AFJNTER mode and

AFJMERGE mode. For CUs with both width and height larger than 8, AFJNTER mode can be applied. An affine flag in CU level is signalled in the bitstream to indicate whether AFJNTER mode is used. In this mode, a candidate list with motion vector pair is constructed using the neighbour blocks. As

shown in FIG. 23, v 0 is selected from the motion vectors of the block A, B or C. The motion vector from the neighbour block is scaled according to the reference list and the relationship among the POC of the reference for the neighbour block, the POC of the reference for the current CU and the POC of the current CU. And the approach to select v 1 from the neighbour block D and E is similar. If the number of candidate list is smaller than 2, the list is padded by the motion vector pair composed by duplicating each of the AMVP candidates. When the candidate list is larger than 2, the candidates are firstly sorted according to the consistency of the neighboring motion vectors (similarity of the two motion vectors in a pair candidate) and only the first two candidates are kept. An 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 an index indicating the position of the CPMVP in the candidate list is signalled in the bitstream. After the CPMVP of the current affine CU is determined, affine motion estimation is applied and the control point motion vector (CPMV) is found. Then the difference of the CPMV and the CPMVP is signalled in the bitstream. [00140] In AF_INTER mode, when 4/6 parameter affine mode is used, 2/3 control points are required, and therefore 2/3 MVD needs to be coded for these control points, as shown in FIG. 22. In JVET-K0337, it is proposed to derive the MV as follows, i.e. , mvdi and mvd2 are predicted from mvdo.

[00141] Wherein mvi, mvdi and mvi are the predicted motion vector, motion vector difference and motion vector of the top-left pixel (i = 0), top-right pixel (i = 1 ) or left- bottom pixel (i = 2) respectively, as shown in FIG. 22. Please note that the addition of two motion vectors (e.g., mvA(xA, yA) and mvB(xB, yB)) is equal to summation of two components separately, that is, newMV = mvA + mvB and the two components of newMV is set to (xA + xB) and (yA + yB), respectively.

2.2.10.2. Fast affine ME algorithm in AFJNTER mode

[00142] In affine mode, MV of 2 or 3 control points needs to be determined jointly. Directly searching the multiple MVs jointly is computationally complex. A fast affine ME algorithm is proposed and is adopted into VTM/BMS.

[00143] The fast affine ME algorithm is described for the 4-parameter affine model, and the idea can be extended to 6-parameter affine model.

[00144] Replace (a - 1 ) with a’, then the motion vector can be rewritten as:

[00145] Suppose motion vectors of the two controls points (0, 0) and (0, w) are known, from Equation (5) we can derive affine parameters, [00146] The motion vectors can be rewritten in vector form as:

[00147] Wherein

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

[00149] At encoder, MVD of AFJNTER are derived iteratively. Denote MV'(P) as the MV derived in the ith iteration for position P and denote dMVc' as the delta updated for MVc in the ith iteration. Then in the (i+1 )th iteration,

[00150] Denote Picref as the reference picture and denote PiCcur as the current picture and denote Q = P + Mn i (R). Suppose we use MSE as the matching criterion, then we need to minimize:

[00151] Suppose (b.Mn£) T is small enough, we can rewrite P

approximately as follows with 1th order Taylor expansion.

[00152] Wherein P

[00153] we can derive dMV£ by setting the derivative of the error function to zero. Then can then calculate delta MV of the control points (0, 0) and (0, w) according to

A

[00154] Suppose such MVD derivation process is iterated by n times, then the final MVD is calculated as follows,

[00155] With JVET-K0337, i.e., predicting delta MV of control point (0, w), denoted by mvdi from delta MV of control point (0, 0), denoted by mvdo, now actually only

encoded formvcii.

2.2.10.3. AF_MERGE mode

[00156] When a CU is applied in AF_MERGE mode, it gets the first block coded with affine mode from the valid neighbour reconstructed blocks. And the selection order for the candidate block is from left, above, above right, left bottom to above left as shown in FIG. 24A, the motion vectors v 2 , v 3 and v 4 of the top left corner, above right corner and left bottom corner of the CU which contains the block A are derived. And the motion vector v 0 of the top left corner on the current CU is calculated according to v 2 , v 3 and v 4 . Secondly, the motion vector v 4 of the above right of the current CU is calculated.

[00157] After the CPMV of the current CU v 0 and v 4 are derived, according to the simplified affine motion model Equation 1 , the MVF of the current CU is generated. In order to identify whether the current CU is coded with AF_MERGE mode, an affine flag is signalled in the bitstream when there is at least one neighbour block is coded in affine mode.

[00158] FIG. 24A and 24B show examples of candidates for AF_MERGE

[00159] In JVET-L0366, which was planned to be adopted into VTM 3.0, an affine merge candidate list is constructed with following steps:

1 ) Insert inherited affine candidates

[00160] Inherited affine candidate means that the candidate is derived from the affine motion model of its valid neighbor affine coded block. In the common base, as shown in FIG. 25, the scan order for the candidate positions is: A1 , B1 , B0, A0 and B2.

[00161] After a candidate is derived, full pruning process is performed to check whether same candidate has been inserted into the list. If a same candidate exists, the derived candidate is discarded.

2) Insert constructed affine candidates

[00162] If the number of candidates in affine merge candidate list is less than

MaxNumAffineCand (set to 5 in this contribution), constructed affine candidates are inserted into the candidate list. Constructed affine candidate means the candidate is constructed by combining the neighbor motion information of each control point.

[00163] The motion information for the control points is derived firstly from the specified spatial neighbors and temporal neighbor shown in FIG. 25. CPk (k=1 , 2, 3, 4) represents the k-th control point. A0, A1 , A2, B0, B1 , B2 and B3 are spatial positions for predicting CPk (k=1 , 2, 3); T is temporal position for predicting CP4.

[00164] The coordinates of CP1 , CP2, CP3 and CP4 is (0, 0), (W, 0), (H, 0) and (W, H), respectively, where W and H are the width and height of current block.

[00165] The motion information of each control point is obtained according to the following priority order:

[00166] For CP1 , the checking priority is B2->B3->A2. B2 is used if it is available. Otherwise, if B2 is available, B3 is used. If both B2 and B3 are unavailable, A2 is used.

If all the three candidates are unavailable, the motion information of CP1 cannot be obtained.

[00167] For CP2, the checking priority is B1 ->B0.

[00168] For CP3, the checking priority is A1 ->A0. [00169] For CP4, T is used.

[00170] Secondly, the combinations of controls points are used to construct an affine merge candidate.

[00171] Motion information of three control points are needed to construct a 6- parameter affine candidate. The three control points can be selected from one of the following four combinations ({CP1 , CP2, CP4}, {CP1 , CP2, CP3}, {CP2, CP3, CP4}, {CP1 , CP3, CP4}). Combinations {CP1 , CP2, CP3}, {CP2, CP3, CP4}, {CP1 , CP3, CP4} will be converted to a 6-parameter motion model represented by top-left, top-right and bottom-left control points.

[00172] Motion information of two control points are needed to construct a 4- parameter affine candidate. The 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}). Combinations {CP1 , CP4}, {CP2, CP3}, {CP2, CP4}, {CP1 , CP3}, {CP3, CP4} will be converted to a 4-parameter motion model represented by top-left and top-right control points.

[00173] The combinations of constructed affine candidates are inserted into to candidate list as following order:

{CP1 , CP2, CP3}, {CP1 , CP2, CP4}, {CP1 , CP3, CP4}, {CP2, CP3, CP4}, {CP1 , CP2}, {CP1 , CP3}, {CP2, CP3}, {CP1 , CP4}, {CP2, CP4}, {CP3, CP4}

[00174] For reference list X (X being 0 or 1 ) of a combination, the reference index with highest usage ratio in the control points is selected as the reference index of list X, and motion vectors point to difference reference picture will be scaled.

[00175] After a candidate is derived, full pruning process is performed to check whether same candidate has been inserted into the list. If a same candidate exists, the derived candidate is discarded.

3) Padding with zero motion vectors

[00176] If the number of candidates in affine merge candidate list is less than 5, zero motion vectors with zero reference indices are insert into the candidate list, until the list is full. 2.2.11. Pattern matched motion vector derivation

[00177] Pattern matched motion vector derivation (PMMVD) mode is a special merge mode based on Frame-Rate Up Conversion (FRUC) techniques. With this mode, motion information of a block is not signalled but derived at decoder side.

[00178] A FRUC flag is signalled for a CU when its merge flag is true. When the FRUC flag is false, a merge index is signalled and the regular merge mode is used. When the FRUC flag is true, an additional FRUC mode flag is signalled to indicate which method (bilateral matching or template matching) is to be used to derive motion information for the block.

[00179] At encoder side, the decision on whether using FRUC merge mode for a CU is based on RD cost selection as done for normal merge candidate. That is the two matching modes (bilateral matching and template matching) are both checked for a CU by using RD cost selection. The one leading to the minimal cost is further compared to other CU modes. If a FRUC matching mode is the most efficient one, FRUC flag is set to true for the CU and the related matching mode is used.

[00180] Motion derivation process in FRUC merge mode has two steps. A CU-level motion search is first performed, then followed by a Sub-CU level motion refinement. At CU level, an initial motion vector is derived for the whole CU based on bilateral matching or template matching. First, a list of MV candidates is generated and the candidate which leads to the minimum matching cost is selected as the starting point for further CU level refinement. Then a local search based on bilateral matching or template matching around the starting point is performed and the MV results in the minimum matching cost is taken as the MV for the whole CU. Subsequently, the motion information is further refined at sub-CU level with the derived CU motion vectors as the starting points.

[00181] For example, the following derivation process is performed for a W x H CU motion information derivation. At the first stage, MV for the whole W x H CU is derived. At the second stage, the CU is further split into M x M sub-CUs. The value of M is calculated as in (16), D is a predefined splitting depth which is set to 3 by default in the JEM. Then the MV for each sub-CU is derived.

[00182] As shown in the FIG. 26, the bilateral matching is used to derive 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 shall be proportional to the temporal distances, i.e., TD0 and TD1 , between the current picture and the two reference pictures. As a special case, when the current picture is temporally between the two reference pictures and the temporal distance from the current picture to the two reference pictures is the same, the bilateral matching becomes mirror based bi-directional MV.

[00183] As shown in FIG. 27, template matching is used to derive motion information of the current CU by finding the closest match between a template (top and/or left neighboring blocks of the current CU) in the current picture and a block (same size to the template) in a reference picture. Except the aforementioned FRUC merge mode, the template matching is also applied to AMVP mode. In the JEM, as done in HEVC, AMVP has two candidates. With template matching method, a new candidate is derived. If the newly derived candidate by template matching is different to the first existing AMVP candidate, it is inserted at the very beginning of the AMVP candidate list and then the list size is set to two (meaning remove the second existing AMVP candidate). When applied to AMVP mode, only CU level search is applied.

2.2.11.1. CU level MV candidate set

[00184] The MV candidate set at CU level consists of:

(i) Original AMVP candidates if the current CU is in AMVP mode

(ii) all merge candidates,

(iii) several MVs in the interpolated MV field, which is introduced in section 2.2.1 1.3.

(iv)top and left neighboring motion vectors

[00185] When using bilateral matching, each valid MV of a merge candidate is used as an input to generate a MV pair with the assumption of bilateral matching. For example, one valid MV of a merge candidate is (MVa, refa) at reference list A. Then the reference picture refb of its paired bilateral MV is found in the other reference list B so that refa and refb are temporally at different sides of the current picture. If such a refb is not available in reference list B, refb is determined as a reference which is different from refa and its temporal distance to the current picture is the minimal one in list B. After refb is determined, MVb is derived by scaling MVa based on the temporal distance between the current picture and refa, refb.

[00186] Four MVs from the interpolated MV field are also added to the CU level candidate list. More specifically, the interpolated MVs at the position (0, 0), (W/2, 0), (0, H/2) and (W/2, H/2) of the current CU are added.

[00187] When FRUC is applied in AMVP mode, the original AMVP candidates are also added to CU level MV candidate set.

[00188] At the CU level, up to 15 MVs for AMVP CUs and up to 13 MVs for merge CUs are added to the candidate list.

2.2.11.2. Sub-CU level MV candidate set

[00189] The MV candidate set at sub-CU level consists of:

(i) an MV determined from a CU-level search,

(ii) top, left, top-left and top-right neighboring MVs,

(iii) scaled versions of collocated MVs from reference pictures,

(iv) up to 4 ATMVP candidates,

(v) up to 4 STMVP candidates

[00190] The scaled MVs from reference pictures are derived as follows. All the reference pictures in both lists are traversed. The MVs at a collocated position of the sub-CU in a reference picture are scaled to the reference of the starting CU-level MV.

[00191] ATMVP and STMVP candidates are limited to the four first ones.

[00192] At the sub-CU level, up to 17 MVs are added to the candidate list.

2.2.11.3. Generation of interpolated MV field

[00193] Before coding a frame, interpolated motion field is generated for the whole picture based on unilateral ME. Then the motion field may be used later as CU level or sub-CU level MV candidates. [00194] First, the motion field of each reference pictures in both reference lists is traversed at 4x4 block level. For each 4x4 block, if the motion associated to the block passing through a 4x4 block in the current picture (as shown in FIG. 28) and the block has not been assigned any interpolated motion, the motion of the reference block is scaled to the current picture according to the temporal distance TD0 and TD1 (the same way as that of 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 a 4x4 block, the block’s motion is marked as unavailable in the interpolated motion field.

2.2.11.4. Interpolation and matching cost

[00195] When a motion vector points to a fractional sample position, motion compensated interpolation is needed. To reduce complexity, bi-linear interpolation instead of regular 8-tap HEVC interpolation is used for both bilateral matching and template matching.

[00196] The calculation of matching cost is a bit different at different steps. When selecting the candidate from the candidate set at the CU level, the matching cost is the absolute sum difference (SAD) of bilateral matching or template matching. After the starting MV is determined, the matching cost C of bilateral matching at sub-CU level search is calculated as follows:

[00197] where w is a weighting factor which is empirically set to 4, MV and MV S indicate the current MV and the starting MV, respectively. SAD is still used as the matching cost of template matching at sub-CU level search.

[00198] 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 MV is decided, final MC is performed using 8-taps interpolation filter for luma and 4-taps interpolation filter for chroma.

2.2.11.5. MV refinement

[00199] MV refinement is a pattern based MV search with the criterion of bilateral matching cost or template matching cost. In the JEM, two search patterns are supported - an unrestricted center-biased diamond search (UCBDS) and an adaptive cross search for MV refinement at the CU level and sub-CU level, respectively. For both CU and sub- CU level MV refinement, the MV is directly searched at quarter luma sample MV accuracy, and this is followed by one-eighth luma sample MV refinement. The search range of MV refinement for the CU and sub-CU step are set equal to 8 luma samples.

2.2.11.6. Selection of prediction direction in template matching FRUC merge mode

[00200] In the bilateral matching merge mode, bi-prediction is always applied since the motion information of a 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 limitation for the template matching merge mode. In the template matching merge mode, the encoder can choose among uni-prediction from listO, uni- prediction from listl or bi-prediction for a CU. The selection is based on a template matching cost as follows:

[00201] where costO is the SAD of listO template matching, costl is the SAD of listl template matching and costBi is the SAD of bi-prediction template matching. The value of factor is equal to 1.25, which means that the selection process is biased toward bi- prediction.

[00202] The inter prediction direction selection is only applied to the CU-level template matching process.

2.2.12. Generalized Bi-prediction

[00203] In conventional bi-prediction, the predictors from L0 and L1 are averaged to generate the final predictor using the equal weight 0.5. The predictor generation formula is shown as in Eq. (32)

[00204] In is the final predictor for the conventional bi-

prediction, PLO and Pu are predictors from L0 and L1 , respectively, and RoundingOffset and shiftNum are used to normalize the final predictor.

[00205] Generalized Bi-prediction (GBI) is proposed to allow applying different weights to predictors from L0 and L1. GBI is also known as‘bi-prediction with CU weights (BCW).’ The predictor generation is shown in Eq. (32).

[00206] In Eq. (33), PGBI is the final predictor of GBi. (1 -wi) and wi are the selected GBI weights applied to the predictors of L0 and L1 , respectively. RoundingOffsetcei and shiftNum GBi are used to normalize the final predictor in GBi.

[00207] The supported weights of wi is {-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 to generate the final predictor is exactly the same as that in the conventional bi-prediction mode. For the true bi-prediction cases in random access (RA) condition, the number of candidate weight sets is reduced to three.

[00208] For advanced motion vector prediction (AMVP) mode, the weight selection in GBI is explicitly signaled at CU-level if this CU is coded by bi-prediction. For merge mode, the weight selection is inherited from the merge candidate. In this proposal, GBI supports DMVR to generate the weighted average of template as well as the final predictor for BMS-1.0.

2.2.13. Multi-hypothesis inter prediction

[00209] In the multi-hypothesis inter prediction mode, one or more additional prediction signals are signaled, in addition to the conventional uni/bi prediction signal. The resulting overall prediction signal is obtained by sample-wise weighted

superposition. With the uni/bi prediction signal p uni / bi and the first additional inter prediction signal/hypothesis h 3 , the resulting prediction signal p 3 is obtained as follows:

[00210] The changes to the prediction unit syntax structure are shown as bold text in the table below:

[00211] The weighting factor a is specified by the syntax element

add_hyp_weight_idx, according to the following mapping:

[00212] Note that for the additional prediction signals, the concept of prediction Iist0/list1 is abolished, and instead one combined list is used. This combined list is generated by alternatingly inserting reference frames from listO and listl with increasing reference index, omitting reference frames which have already been inserted, such that double entries are avoided.

[00213] Analogously to above, more than one additional prediction signals can be used. The resulting overall prediction signal is accumulated iteratively with each additional prediction signal.

[00214] The resulting overall prediction signal is obtained as the last p n (i.e. , the p n having the largest index n).

[00215] Note that also for inter prediction blocks using MERGE mode (but not SKIP mode), additional inter prediction signals can be specified. Further note, that in case of MERGE, not only the uni/bi prediction parameters, but also the additional prediction parameters of the selected merging candidate can be used for the current block.

2.2.14. Multi-hypothesis prediction for uni-prediction of AMVP mode

[00216] When the multi-hypothesis prediction is applied to improve uni-prediction of AMVP mode, one flag is signaled to enable or disable multi-hypothesis prediction for inter_dir equal to 1 or 2, where 1 , 2, and 3 represent list 0, list 1 , and bi-prediction, respectively. Moreover, one more merge index is signaled when the flag is true. In this way, multi-hypothesis prediction turns uni-prediction into bi-prediction, where one motion is acquired using the original syntax elements in AMVP mode while the other is acquired using the merge scheme. The final prediction uses 1 : 1 weights to combine these two predictions as in bi-prediction. The merge candidate list is first derived from merge mode with sub-CU candidates (e.g., affine, alternative temporal motion vector prediction (ATMVP)) excluded. Next, it is separated into two individual 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 vacancy, two merge lists are generated for L0 and L1 respectively. There are two constraints when applying multi-hypothesis prediction for improving AMVP mode. First, it is enabled for those CUs with the luma coding block (CB) area larger than or equal to 64. Second, it is only applied to L1 when in low delay B pictures.

2.2.15. Multi-hypothesis prediction for skip/merge mode

[00217] When the multi-hypothesis prediction is applied to skip or merge mode, whether to enable multi-hypothesis prediction is explicitly signaled. An extra merge indexed prediction is selected in addition to the original one. Therefore, each candidate of multi-hypothesis prediction implies a pair of merge candidates, containing one for the 1 st merge indexed prediction and the other for the 2 nd merge indexed prediction.

However, in each pair, the merge candidate for the 2 nd merge indexed prediction is implicitly derived as the succeeding merge candidate (i.e. , the already signaled merge index plus one) without signaling any additional merge index. After removing

redundancy by excluding those pairs, containing similar merge candidates and filling vacancy, the candidate list for multi-hypothesis prediction is formed. Then, motions from a pair of two merge candidates are acquired to generate the final prediction, where 5:3 weights are applied to the 1 st and 2 nd merge indexed predictions, respectively.

Moreover, a merge or skip CU with multi-hypothesis prediction enabled can save the motion information of the additional hypotheses for reference of the following

neighboring CUs in addition to the motion information of the existing hypotheses. Note that sub-CU candidates (e.g., affine, ATMVP) are excluded from the candidate list, and for low delay B pictures, multi-hypothesis prediction is not applied to skip mode.

Moreover, when multi-hypothesis prediction is applied to merge or skip mode, for those CUs with CU width or CU height less than 16, or those CUs with both CU width and CU height equal to 16, bi-linear interpolation filter is used in motion compensation for multiple hypotheses. Therefore, the worst-case bandwidth (required access samples per sample) for 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 for each 4x4 CU with multi-hypothesis prediction disabled.

2.2.16. Ultimate motion vector expression

[00218] Ultimate motion vector expression (UMVE) is presented, which is also known as merge mode with motion vector difference (MVD). UMVE is used for either skip or merge modes with a proposed motion vector expression method.

[00219] UMVE re-uses merge candidate as same as using in VVC. Among the merge candidates, a candidate can be selected, and is further expanded by the proposed motion vector expression method.

[00220] UMVE provides a new motion vector expression with simplified signaling. The expression method includes starting point, motion magnitude, and motion direction.

[00221] FIG. 29 shows an example of UMVE Search Process

[00222] FIG. 30 shows examples of UMVE Search Points.

[00223] This proposed technique uses a merge candidate list as it is. But only candidates which are default merge type (MRG_TYPE_DEFAULT_N) are considered for UMVE’s expansion.

[00224] Base candidate index defines the starting point. Base candidate index indicates the best candidate among candidates in the list as follows.

Table 4: Base candidate IDX

[00225] If the number of base candidate is equal to 1 , Base candidate IDX is not signaled.

[00226] Distance index is motion magnitude information. Distance index indicates the pre-defined distance from the starting point information. Pre-defined distance is as follows:

Table 5: Distance IDX

[00227] Direction index represents the direction of the MVD relative to the starting point. The direction index can represent of the four directions as shown below.

Table 6: Direction IDX

[00228] UMVE flag is singnaled right after sending a skip flag and merge flag. If skip and merge flag is true, UMVE flag is parsed. If UMVE flage is equal to 1 , UMVE syntaxes are parsed. But, if not 1 , AFFINE flag is parsed. If AFFINE flag is equal to 1 , that is AFFINE mode, But, if not 1 , skip/merge index is parsed for VTM’s skip/merge mode.

[00229] Additional line buffer due to UMVE candidates is not needed. Because a skip/merge candidate of software is directly used as a base candidate. Using input UMVE index, the supplement of MV is decided right before motion compensation. There is no need to hold long line buffer for this.

2.2.17. affine merge mode with prediction offsets

[00230] UMVE is extended to affine merge mode, which will be referred to as UMVE affine mode thereafter. The proposed method selects the first available affine merge candidate as a base predictor. Then it applies a motion vector offset to each control point’s motion vector value from the base predictor. If there’s no affine merge candidate available, this proposed method will not be used.

[00231] The selected base predictor’s inter prediction direction, and the reference index of each direction is used without change.

[00232] In the current implementation, the current block’s affine model is assumed to be a 4-parameter model, only 2 control points need to be derived. Thus, only the first 2 control points of the base predictor will be used as control point predictors.

[00233] For each control point, a zero_MVD flag is used to indicate whether the control point of current block has the same MV value as the corresponding control point predictor. If zero_MVD flag is true, there’s no other signaling needed for the control point. Otherwise, a distance index and an offset direction index is signaled for the control point.

[00234] A distance offset table with size of 5 is used as shown in the table below. Distance index is signaled to indicate which distance offset to use. The mapping of distance index and distance offset values is shown in FIG. 30.

Table 7: Distance offset table

[00235] FIG. 31 shows an example of distance index and distance offset mapping.

[00236] The direction index can represent four directions as shown below, where only x or y direction may have an MV difference, but not in both directions.

Table 8: Offset direction table

[00237] If the inter prediction is uni-directional, the signaled distance offset is applied on the offset direction for each control point predictor. Results will be the MV value of each control point.

[00238] For example, when base predictor is uni-directional, and the motion vector values of a control point is MVP (v px , v py ). When distance offset and direction index are signaled, the motion vectors of current block’s corresponding control points will be calculated as below.

[00239] If the inter prediction is bi-directional, the signaled distance offset is applied on the signaled offset direction for control point predictor’s L0 motion vector; and the same distance offset with opposite direction is applied for control point predictor’s L1 motion vector. Results will be the MV values of each control point, on each inter prediction direction.

[00240] For example, when base predictor is uni-directional, and the motion vector values of a control point on L0 is and the motion vector of that control point on When distance offset and direction index are signaled, the motion vectors of current block’s corresponding control points will be calculated as below.

2.2.18. Bi-directional optical flow

[00241] Bi-directional Optical flow (BIO) is sample-wise motion refinement which is performed on top of block-wise motion compensation for bi-prediction. The sample-level motion refinement doesn’t use signalling.

[00242] Let be the luma value from reference k (k= 0, 1 ) after block motion compensation, and yare horizontal and vertical components of the

gradient, respectively. Assuming the optical flow is valid, the motion vector field (

is given by an equation

[00243] Combining this optical flow equation with Hermite interpolation for the motion trajectory of each sample results in a unique third-order polynomial that matches both the function values and derivatives at the ends. The value of this

polynomial at t= 0 is the BIO prediction:

[00244] Here, and denote the distances to the reference frames as shown in

FIG. 31. Distances and are calculated based on POC for RefO and Ref1 :

If both predictions come from the same time direction (either both from the past or both from the future) then the signs are different . In this case, BIO is applied only if the prediction is not from the same time moment , both referenced regions have non-zero motion and the block motion vectors are proportional to the time distance

[00245] The motion vector field is determined by minimizing the difference

D between values in points A and B (intersection of motion trajectory and reference frame planes on FIG. 32). Model uses only first linear term of a local Taylor expansion for A:

[00246] All values in Eq. (41 ) depend on the sample location which was

omitted from the notation so far. Assuming the motion is consistent in the local surrounding area, we minimize D inside the square window W centered

on the currently predicted point where M is equal to 2:

[00247] For this optimization problem, the JEM uses a simplified approach making first a minimization in the vertical direction and then in the horizontal direction. This results in

where,

[00248] In order to avoid division by zero or a very small value, regularization parameters r and m are introduced in Eq. (43) and Eq. (44).

[00249] Here d is bit depth of the video samples.

[00250] In order to keep the memory access for BIO the same as for regular bi- predictive motion compensation, all prediction and gradients values,

are calculated only for positions inside the current block. In Equation 30, square window W centered in currently predicted point on

a boundary of predicted block needs to accesses positions outside of the block (as shown in FIG. 33A). In the JEM, values outside of the block

are set to be equal to the nearest available value inside the block. For example, this can be implemented as padding, as shown in FIG. 33B.

[00251] With BIO, it’s possible that the motion field can be refined for each sample. To reduce the computational complexity, a block-based design of BIO is used in the JEM. The motion refinement is calculated based on 4x4 block. In the block-based BIO, the values of s n in Equation 30 of all samples in a 4x4 block are aggregated, and then the aggregated values of s n in are used to derived BIO motion vectors offset for the 4x4 block. More specifically, the following formula is used for block-based BIO derivation:

[00252] where bk denotes the set of samples belonging to the k-th 4x4 block of the predicted block. s n in Eq. (43) and Eq. (44) are replaced by ( ( s n,bk ) » 4 ) to derive the associated motion vector offsets.

[00253] In some cases, MV regiment of BIO might be unreliable due to noise or irregular motion. Therefore, in BIO, the magnitude of MV regiment is clipped to a threshold value thBIO. The threshold value 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 value of the threshold is set to otherwise, it is set to

[00254] Gradients for BIO are calculated at the same time with motion compensation interpolation using operations consistent with HEVC motion compensation process (2D separable FIR). The input for this 2D separable FIR is the same reference frame sample as for motion compensation process and fractional position ( fracX , fracY) according to the fractional part of block motion vector. In case of horizontal gradient dl/dx signal first interpolated vertically using BlOfilterS corresponding to the fractional position fracY with de-scaling shift d- 8, then gradient filter BIOfilterG is applied in horizontal direction corresponding to the fractional position fracX with de-scaling shift by 18-cf. In case of vertical gradient dl/dy first gradient filter is applied vertically using BIOfilterG

corresponding to the fractional position fracY with de-scaling shift d- 8, then signal displacement is performed using BlOfilterS in horizontal direction corresponding to the fractional position fracX with de-scaling shift by 18-cf. The length of interpolation filter for gradients calculation BIOfilterG and signal displacement BIOfilterF is shorter (6-tap) in order to maintain reasonable complexity. Table 9:9 shows the filters used for gradients calculation for different fractional positions of block motion vector in BIO. Table 10: 10 shows the interpolation filters used for prediction signal generation in BIO.

Table 9: Filters for gradients calculation in BIO

Table 10: Interpolation filters for prediction signal generation in BIO

[00255] In the JEM, BIO is applied to all bi-predicted blocks when the two predictions are from different reference pictures. When LIC is enabled for a CU, BIO is disabled.

[00256] In the JEM, OBMC is applied for a block after normal MC process. To reduce the computational complexity, BIO is not applied during the OBMC process. This means that BIO is only applied in the MC process for a block when using its own MV and is not applied in the MC process when the MV of a neighboring block is used during the OBMC process.

2.2.19. Decoder-side motion vector refinement

[00257] In bi-prediction operation, for the prediction of one block region, two prediction blocks, formed using a motion vector (MV) of listO and a MV of listl , respectively, are combined to form a single prediction signal. In the decoder-side motion vector refinement (DMVR) method, the two motion vectors of the bi-prediction are further refined by a bilateral template matching process. The bilateral template matching applied in the decoder to perform a distortion-based search between a bilateral template and the reconstruction samples in the reference pictures in order to obtain a refined MV without transmission of additional motion information.

[00258] In DMVR, a bilateral template is generated as the weighted combination (i.e. average) of the two prediction blocks, from the initial MV0 of listO and MV1 of listl , respectively, as shown in FIG. 34. The template matching operation consists of calculating cost measures between the generated template and the sample region (around the initial prediction block) in the reference picture. For each of the two reference pictures, the MV that yields the minimum template cost is considered as the updated MV of that list to replace the original one. In the JEM, nine MV candidates are searched for each list. The nine MV candidates include the original MV and 8

surrounding MVs with one luma sample offset to the original MV in either the horizontal or vertical direction, or both. Finally, the two new MVs, i.e., MV0' and MVT, as shown in FIG. 33, are used for generating the final bi-prediction results. A sum of absolute differences (SAD) is used as the cost measure. Please note that when calculating the cost of a prediction block generated by one surrounding MV, the rounded MV (to integer pel) is actually used to obtain the prediction block instead of the real MV.

[00259] DMVR is applied for the merge mode of bi-prediction with one MV from a reference picture in the past and another from a reference picture in the future, without the transmission of additional syntax elements. In the JEM, when LIC, affine motion, FRUC, or sub-CU merge candidate is enabled for a CU, DMVR is not applied. 3. Related tools

3.1.1. Diffusion filter

[00260] In JVET-L0157, diffusion filter is proposed, wherein the intra/inter prediction signal of the CU may be further modified by diffusion filters.

3.1.1.1. Uniform Diffusion Filter

[00261] The Uniform Diffusion Filter is realized by convolving the prediction signal with a fixed mask that is either given as h 1 or as h IV , defined below.

Besides the prediction signal itself, one line of reconstructed samples left and above of the block are used as an input for the filtered signal, where the use of these

reconstructed samples can be avoided on inter blocks.

[00262] Let pred be the prediction signal on a given block obtained by intra or motion compensated prediction. In order to handle boundary points for the filters, the prediction signal needs to be extended to a prediction signal pred ext . This extended prediction can be formed in two ways: Either, as an intermediate step, one line of reconstructed samples left and above the block are added to the prediction signal and then the resulting signal is mirrored in all directions. Or 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 comprises the input for the extended prediction signal pred ext .

[00263] If the filter h 1 is to be used, it is proposed to replace the prediction signal pred by

[00264] using the aforementioned boundary extension. Here, the filter mask h 1 is given as:

[00265] If the filter is to be used, it is proposed to replace the prediction signal pred by

[00266] Here, the filter h IV is given as:

3.1.1.2. Directional Diffusion Filter

[00267] Instead of using signal adaptive diffusion filters, directional filters, a horizontal filter and a vertical filter h are used which still have a fixed mask. More

precisely, the uniform diffusion filtering corresponding to the mask h 1 of the previous section is simply restricted to be either applied only along the vertical or along the horizontal direction. The vertical filter is realized by applying the fixed filter mask

[00268] to the prediction signal and the horizontal filter is realized by using the transposed mask

3.1.2. Bilateral filter

[00269] Bilateral filter is proposed in JVET-L0406, and it is always applied to luma blocks with non-zero transform coefficients and slice quantization parameter larger than 17. Therefore, there is no need to signal the usage of the bilateral filter. Bilateral filter, if applied, is performed on decoded samples right after the inverse transform. In addition, the filter parameters, i.e., weights are explicitly derived from the coded information.

[00270] The filtering process is defined as:

[00271] where is the intensity of the current sample and is the modified

intensity of the current sample, and W k are the intensity and weighting parameter for the k-th neighboring sample, respectively. An example of one current sample and its four neighboring samples (i.e., K=4) is depicted in FIG. 35.

[00272] More specifically, the weight W k (x ) associated with the /c-th neighboring sample is defined as follows: wherein

and a d is dependent on the coded mode and coding block sizes. The described filtering process is applied to intra-coded blocks, and inter-coded blocks when TU is further split, to enable parallel processing.

[00273] To better capture statistical properties of video signal, and improve

performance of the filter, weights function resulted from Eq. (55) are being adjusted by the a d parameter, tabulated in Table as being dependent on coding mode and parameters of block partitioning (minimal size). Table 1 1 : Value of a d for different block sizes and coding modes

[00274] To further improve the coding performance, for inter-coded blocks when TU is not split, the intensity difference between current sample and one of its neighboring samples is replaced by a representative intensity difference between two windows covering current sample and the neighboring sample. Therefore, the equation of filtering process is revised to:

wherein and represent the m-th sample value within the windows centered at

o and respectively. In this proposal, the window size is set to 3x3. An example of

two windows covering P 2 0 and P 0 0 are depicted in FIG. 36.

3.1.3. Intra block copy

Decoder aspect:

[00275] In some aspects, the current (partially) decoded picture is considered as a reference picture. This current picture is put in the last position of reference picture list 0. Therefore, for a slice using the current picture as the only reference picture, its slice type is considered as a P slice. The bitstream syntax in this approach follows the same syntax structure for inter coding while the decoding process is unified with inter coding. The only outstanding difference is that the block vector (which is the motion vector pointing to the current picture) always uses integer-pel resolution.

[00276] Changes from block level CPR_flag approach are:

• In encoder search for this mode, both block width and height are smaller than or equal to 16. • Enable chroma interpolation when luma block vector is an odd integer number.

• Enable adaptive motion vector resolution (AMVR) for CPR mode when the SPS flag is on. In this case, when AMVR is used, a block vector can switch between 1 - pel integer and 4-pel integer resolutions at block level.

Encoder aspect:

[00277] The encoder performs RD check for blocks with either width or height no larger than 16. For non-merge mode, the block vector search is performed using hash- based search first. If there is no valid candidate found from hash search, block matching based local search will be performed.

[00278] In the hash-based search, hash key matching (32-bit CRC) between the current block and a reference block is extended to all allowed block sizes. The hash key calculation for every position in current picture is based on 4x4 blocks. For the current block of a larger size, a hash key matching to a reference block happens when all its 4x4 blocks match the hash keys in the corresponding reference locations. If multiple reference blocks are found to match the current block with the same hash key, the block vector costs of each candidates are calculated and the one with minimum cost is selected.

[00279] In block matching search, the search range is set to be 64 pixels to the left and on top of current block.

3.1.4. History based motion vector prediction

[00280] The international patent application, PCT/CN2018/093987, titled“MOTION VECTOR PREDICTION BASED ON LOOK-UP TABLES,” filed on July 2, 2018, the content of which is incorporated herein by reference, describes one or more look up tables with at least one motion candidate stored to predict motion information of a block.

[00281] A history-based MVP (HMVP) method is proposed wherein a HMVP candidate is defined as the motion information of a previously coded block. A table with multiple HMVP candidates is maintained during the encoding/decoding process. The table is emptied when a new slice is encountered. 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 overall coding flow is depicted in FIG. 37. In one example, the table size is set to be L (e.g., L = 16 or 6, or 44), which indicates up to L HMVP candidates may be added to the table.

1 ) In one embodiment, if there are more than L HMVP candidates from the previously coded blocks, a First-In-First-Out (FIFO) rule is applied so that the table always contains the latest previously coded L motion candidates. FIG. 38 depicts an example wherein the FIFO rule is applied to remove a HMVP candidate and add a new one to the table used in the proposed method.

2) In another embodiment, whenever adding a new motion candidate (such as the current block is inter-coded and non-affine mode), a redundancy checking process is applied firstly to identify whether there are identical or similar motion candidates in LUTs.

3.2. JVET-M0101

3.2.1. Adding HEVC-style Weighted Prediction

[00282] The following table show an example of syntax element. In order to implement the HEVC-style weighted prediction, the following syntax changes as shown in bold text can be made to PPS and slice header:

Table 12: Example of syntax element

3.2.2. Invoking (bi-prediction bi-prediction with weighted averaging (BWA), a.k.a GBI) and WP in a mutually exclusive manner

[00283] Though BWA and WP both apply weights to the motion compensated prediction signals, the specific operations are different. In the bi-prediction case, WP applies a linear weight and a constant offset to each of the prediction signals depending on the (weight, offset) parameters associated with the refjdx that is used to generate the prediction signal. Whereas there are some range constraints on these (weight, offset) values, the allowed ranges are relatively large and there is no normalization constraint on the parameter values. WP parameters are signaled at the picture level (in slice headers). WP has been shown to provide very large coding gain for fading sequences, and is generally expected to be enabled for such content.

[00284] BWA uses a CU level index to indicate how to combine the two prediction signals in the case of bi-prediction. The BWA applies weighted averaging, i.e., the two weights add up to 1. BWA provides about 0.66% coding gain for the CTC RA configuration, but is much less effective than WP for the fading content (JVET-L0201 ).

[00285] Method #1 :

[00286] The PPS syntax element weight_bipred_flag is checked to determine if the gbijdx is signaled at the current CU. The syntax signaling is modified as follows in bold text:

Table 13: Example of syntax element

[00287] The first alternative will disable BWA for all the reference pictures of the current slice, if the current slice refers to a PPS for which weighted_bipred_flag is set to 1.

[00288] Method #2:

[00289] BWA is disabled only if both of the reference pictures used in the bi-prediction have turned on weighted prediction, i.e., the (weight, offset) parameters of these reference pictures have non-default values. This allows the bi-predicted CUs that use reference pictures with default WP parameters (i.e. WP is not invoked for these CUs) to still be able to use BWA. The syntax signaling is modified as follows in bold text:

Table 14: Example of syntax element

4. Problems

[00290] In LIC, two parameters including scaling parameter a and offset b need to be derived by using neighboring reconstructed pixels, which may cause latency issue.

[00291] Hybrid intra and inter prediction, diffusion filter, bilateral filter, OBMC and LIC need to further modify the inter prediction signal in different ways, and they all have latency issue.

5. Some example embodiments and techniques

[00292] Examples below are provided to explain general concepts. These examples should not be interpreted in a narrow way. Furthermore, the examples below can be combined in any manner.

1. It is proposed that LIC could only be performed for blocks located at CTU boundaries (called boundary blocks), and neighboring reconstructed samples out of the current CTU may be used for deriving LIC parameters. In this case, for those blocks that are not located CTU boundaries (called inner blocks), LIC is always disabled without being signaled. a. Selection of neighboring reconstructed samples outside current CTU may depend on the position of the block relative to the CTU covering the current block.

b. In one example, for blocks at the left boundary of a CTU, only left reconstructed neighboring samples of the CU may be used to derive the LIC parameters.

c. In one example, for blocks at the top boundary of a CTU, only above reconstructed neighboring samples of the block may be used to derive the LIC parameters.

d. In one example, for blocks at the top-left corner of a CTU, left and/or above reconstructed neighboring samples of the block may be used to derive the LIC parameters.

e. In one example, for blocks at the top-right corner of a CTU, top-right and/or above reconstructed neighboring samples of the block are used to derive the LIC parameters.

f. In one example, for blocks at the bottom-left corner of a CTU, bottom-left and/or left reconstructed neighboring samples of the block are used to derive the LIC parameters.

It is proposed that sets of LIC parameters may be derived for blocks located at CTU boundary only, and inner blocks of the CTU may inherit from one or multiple sets of these LIC parameter sets.

a. In one example, a LIC parameter lookup table is maintained for each CTU, and each set of the derived LIC parameter is inserted into the LIC parameter table. Method described in P1805028401 H can be used to maintain the LIC parameter lookup table.

b. Alternatively, such lookup table is maintained for each reference picture, and when deriving the LIC parameters, LIC parameters are derived for all reference pictures.

c. In one example, such lookup table is emptied at the beginning of each CTU or CTU row or slice or tile or tile group or picture. d. In one example, for inner block coded with AMVP mode or affine inter mode, if LIC flag is true, the used set of LIC parameters is explicitly signaled. For example, an index is signaled to indicate which entry of the lookup table is used for each reference picture.

i. In one example, for uni-predicted block, if there is no valid entry in the lookup table for the reference picture, the LIC flag shall be false. ii. In one example, for bi-predicted block, if there is no valid entry in the lookup table for any of the reference picture, the LIC flag shall be false.

iii. In one example, for bi-predicted block, if there is valid entry in the lookup table for at least one of the reference pictures, the LIC flag can be true. One LIC parameter index is signaled for each reference picture with valid LIC parameters.

e. In one example, more than one lookup tables are maintained.

i. In one example, when encoding/decoding the current CTU, it only uses parameters from lookup tables generated by some previously encoded/decoded CTUs, and the lookup table generated by the current CTU is used for some following CTUs.

ii. In one example, each lookup table may correspond to one reference picture/one reference picture list/a certain range of block sizes/a certain coded mode/a certain block shape, etc. al.

f. In one example, if an inner block is coded with merge or affine merge mode, for spatial or/and temporal merge candidate, both LIC flag and LIC parameters are inherited from the corresponding neighboring block.

i. Alternatively, the LIC flag is inherited and the LIC parameter may be signaled explicitly.

ii. Alternatively, the LIC flag is signaled explicitly and the LIC parameter may be inherited.

iii. Alternatively, both LIC flag and LIC parameter are signaled explicitly. iv. Alternatively, the differences between the LIP parameters of the block and the inherited parameters are signaled.

g. In one example, for boundary block coded with AMVP mode or affine inter mode, if LIC flag is true, the used LIC parameter is derived implicitly using same methods as in 2.2.7.

h. In one example, if a boundary block is coded with merge or affine merge mode, for spatial or/and temporal merge candidate, both LIC flag and LIC parameter are inherited from the corresponding neighboring block.

i. Alternatively, the LIC flag is inherited and the LIC parameters may be signaled explicitly.

ii. Alternatively, the LIC flag is signaled explicitly and the LIC parameters may be inherited.

iii. Alternatively, both LIC flag and LIC parameter are signaled explicitly. i. In one example, if a block is coded with merge mode, for combined merge candidate or average merge candidate, LIC is always disabled.

i. Alternatively, if LIC flag of any of the two merge candidates that are used for generating the combined merge candidate or average merge candidate is true, the LIC flag is set to true.

ii. For an inner block, if both merge candidates that are used for generating the combined merge candidate or average merge candidate use LIC, it may inherit LIC parameters from any of them. iii. Alternatively, the LIC flag is inherited and the LIC parameter may be signaled explicitly.

iv. Alternatively, the LIC flag is signaled explicitly and the LIC parameter may be inherited.

v. Alternatively, both LIC flag and LIC parameter are signaled explicitly. j. In one example, if a block is coded with merge mode from a HMVP merge candidate, LIC is always disabled.

i. Alternatively, if a block is coded with merge mode from a HMVP merge candidate, LIC is always enabled. ii. Alternatively, if LIC flag of the HMVP merge candidate is true, the LIC flag is set to be true.

1. LIC flag is signaled explicitly.

iii. Alternatively, if LIC flag of the HMVP merge candidate is true, the LIC flag is set to be true, and the LIP parameters are inherited from the HMVP merge candidate.

1. Alternatively, LIC parameters are signaled explicitly.

2. Alternatively, LIC parameters are derived implicitly.

It is proposed that LIC may be used together with intra block copy (IBC, or current picture referencing) mode.

a. For example, if a block is coded with intra block copy mode, indication of LIC usage (e.g., a LIC flag) may be further signaled.

b. In one example, in merge mode, if an IBC coded block inherits motion information from a neighboring block, it may also inherit the LIC flag.

i. Alternatively, it may also inherit the LIC parameters.

c. If LIC flag is true, LIC parameter is derived implicitly using same method as in 2.2.7.

d. In one example, method described in above embodiments may be used. e. Alternatively, if a block is coded with LIC enabled, indication of IBC usage may be further signaled.

It is proposed that LIC is used exclusive with GBI or multi-hypothesis inter prediction. In some implementations, GBI or multi-hypothesis inter prediction is disabled and LIC is enabled. In some implementations, LIC or multi-hypothesis inter prediction is disabled and GBI is enabled. In some implementations, LIC or GBI is disabled and multi-hypothesis inter prediction is enabled.

a. In one example, GBI information may be signaled after LIC information. i. In one example, whether to signal GBI information may depend on the signaled/inferred LIC information.

ii. Alternatively, furthermore, whether to signal GBI information may depend on both LIC information and weighted prediction information associated with at least one reference picture of current block or of current tile/tile group/picture containing current block.

iii. The information may be signaled in SPS/PPS/slice header/tile group header/tile/CTU/CU

b. Alternatively, LIC information may be signaled after GBI information.

i. In one example, whether to signal LIC information may depend on the signaled/inferred GBI information.

ii. Alternatively, furthermore, whether to signal LIC information may depend on both GBI information and weighted prediction information associated with at least one reference picture of current block or of current tile/tile group/picture containing current block.

iii. The information may be signaled in SPS/PPS/slice header/tile group header/tile/CTU/CU

c. In one example, if LIC flag is true, syntax elements required by GBI or multi- hypothesis inter prediction are not signaled.

d. In one example, if GBI flag is true (e.g., unequal weights are applied to two or multiple reference pictures), syntax elements required by LIC or multi- hypothesis inter prediction are not signaled.

e. In one example, if GBI is enabled for a block with unequal weights for two or multipole reference pictures, syntax elements required by LIC or multi- hypothesis inter prediction are not signaled.

f. In one example, LIC is used exclusively with sub-block technologies, such as affine mode. In some implementations, LIC and sub-block technologies are used exclusively of each other.

g. In one example, LIC is used exclusively with triangular prediction mode. In some implementations, LIC and a triangular prediction mode are used exclusively of each other.

i. In one example, when triangular prediction mode is enabled for one block, LIC is always disabled. ii. In one example, the LIC flag of one TPM merge candidate may be inherited from a spatial or temporal block or other kinds of motion candidates (e.g., HMVP candidates).

iii. In one example, the LIC flag of one TPM merge candidate may be inherited from some spatial or temporal blocks (e.g., only A1 , B1 ). iv. Alternatively, LIC flag of one TPM merge candidate may be always set to false.

h. In one example, if multi-hypothesis inter prediction is enabled, syntax elements required by LIC or GBI are not signaled.

i. Different tools may be checked in a certain order. Alternatively, furthermore, such checking process terminates when one of the above tools is decided to be enabled.

i. In one example, the checking order is LIC -> GBI -> multi-hypothesis inter prediction.

ii. In one example, the checking order is LIC -> multi-hypothesis inter prediction -> GBI.

iii. In one example, the checking order is GBI -> LIC -> multi-hypothesis inter prediction.

iv. In one example, the checking order is GBI -> multi-hypothesis inter prediction -> LIC.

v. The order may be adaptively changed based on previously coded information and/or based on coded information of current block (e.g., block size/reference picture/MV information/Low delay check flag/tile/picture/slice types), such as based on the modes of neighboring blocks.

j. The above methods may be applied only when current block is uni- prediction. It is proposed that LIC may be used exclusively with weighted prediction at block level. In some implementations, whether the weighted prediction tool is disabled is firstly determined and the LIC tool is disabled due to the determining that the weighted prediction tool is used for at least one reference picture of the block or for all reference pictures of the block.

a. In one example, when current block is bi-prediction, the signalling of LIC information may depend on the weighted_bipred_flag.

b. In one example, when current block is uni-prediction, the signalling of LIC information may depend on the weighted_pred_flag.

c. In one example, signalling of LIC information may depend on the weighted prediction parameters associated with one or all reference pictures associated with current block.

d. In one example, if weighted prediction is enabled for some reference picture or all reference pictures of a block, LIC may be disabled for the block and LIC related syntax elements are not signaled.

e. In one example, even if weighted prediction is enabled for some reference picture or all reference pictures of a block, LIC may be still applied and weighted prediction may be disabled for the block.

i. Alternatively, LIC may be applied on reference pictures where weighted prediction are not applied, and LIC may be disabled on reference pictures where weighted prediction are applied.

f. Alternatively, LIC may be used with weighted prediction together for one block.

It is proposed that LIC may be used exclusively with weighted prediction at picture level/slice level/tile group level/CTU group level. In some implementations, whether the weighted prediction tool is disabled is firstly determined and the LIC tool is disabled due to the determining that the weighted prediction tool is used for at least one reference picture of the block or for all reference pictures of the block. a. In one example, if weighted prediction is enabled for some reference picture or all reference pictures of a picture/slice/tile group/CTU group, LIC is disabled and all related syntax element are not signaled. b. In one example, if LIC is enabled for a picture/slice/tile group/CTU group, weighted prediction is disabled for all its reference pictures and all related syntax elements are not signaled.

c. Alternatively, LIC may be used with weighted prediction together.

It is proposed that LIC may be used exclusively with CPR mode. In some implementations, LIC and CPR mode are used exclusive of each other.

a. In one example, when CPR mode is enabled for a block, signalling of indications of LIC usage and/or side information may be skipped.

b. Alternatively, when LIC mode is enabled for a block, signalling of indications of CPR usage and/or side information may be skipped.

Alternatively, it is proposed that LIC may be used together with multi-hypothesis prediction (as described in 2.2.13, 2.2.14, 2.2.15).

a. In one example, LIC flag is explicitly signaled for multi-hypothesis AMVP and merge mode (e.g., as described in 2.2.14).

i. In one example, the explicitly signaled LIC flag is applied to both AMVP mode and merge mode.

ii. In one example, the explicitly signaled LIC flag is applied only to AMVP mode, while the LIC flag for the merge mode is inherited from the corresponding merge candidate. Different LIC flag may be used for AMVP mode and merge mode. Meanwhile, different LIC parameters may be derived/inherited for AMVP mode and merge mode.

1. Alternatively, LIC is always disabled for the merge mode. iii. Alternatively, LIC flag is not signaled and LIC is always disabled for AMVP mode. However, for merge mode, LIC flag or/and LIC parameter may be inherited or derived.

b. In one example, LIC flag is inherited from the corresponding merge candidates for multi-hypothesis merge mode (e.g., as described in 2.2.15). i. In one example, LIC flag is inherited for each of the two selected merge candidates, therefore, different LIC flag may be inherited for the two selected merge candidates. Meanwhile, different LIC parameter may be derived/inherited for the two selected merge candidates.

ii. In one example, LIC flag is only inherited for the 1 st selected merge candidate and LIC is always disabled for the 2 nd selected merge candidate.

c. In one example, LIC flag is explicitly signaled for multi-hypothesis inter prediction mode (e.g., as described in 2.2.13).

i. In one example, if the block is predicted with merge mode (or UMVE mode) and additional motion information, the explicitly signaled LIC flag may be applied to both merge mode (or UMVE mode) and the additional motion information.

ii. In one example, if the block is predicted with merge mode (or UMVE mode) and additional motion information, the explicitly signaled LIC flag may be applied to the additional motion information. While for merge mode, LIC flag or/and LIC parameter may be inherited or derived.

1. Alternatively, LIC is always disabled for the merge mode. iii. In one example, if the block is predicted with merge mode (or UMVE mode) and additional motion information, LIC flag is not signaled and disabled for the additional motion information. While for merge mode, LIC flag or/and LIC parameter may be inherited or derived. iv. In one example, if the block is predicted with AMVP mode and additional motion information, the explicitly signaled LIC flag may be applied to both AMVP mode and the additional motion information.

1. Alternatively, LIC is always disabled for the additional motion information.

v. Different LIC parameters may be derived/inherited for the merge mode (or UMVE mode) / AMVP mode and the additional motion information. d. When multi-hypothesis is applied to a block, illumination compensation may be applied to certain prediction signals, instead of all prediction signals. e. When multi-hypothesis is applied to a block, more than one flag may be signaled/derived to indicate the usage of illumination compensation for prediction signals.

It is proposed that LIC flag may be inherited from the base merge candidate in UMVE mode.

a. In one example, LIC parameters are derived implicitly as described in 2.2.7. b. In one example, for boundary block coded in UMVE mode, LIC parameters are derived implicitly as described in 2.2.7.

c. In one example, for inner block coded in UMVE mode, LIC parameters are inherited from base merge candidate.

d. Alternatively, LIC flag may be signaled explicitly in UMVE mode.

The above proposed methods or LIC may be applied under certain conditions, such as block sizes, slice/picture/tile types, or motion information.

a. In one example, when a block size contains smaller than M*H samples, e.g., 16 or 32 or 64 luma samples, proposed method or LIC are not allowed. b. Alternatively, when minimum size of a block’s width or/and height is smaller than or no larger than X, proposed method or LIC are not allowed. In one example, X is set to 8.

c. Alternatively, when a block’s width > th1 or >=th1 and/or a block’s height > th2 or >=th2, proposed method or LIC are not allowed. In one example, th1 and/or th2 is set to 8.

d. Alternatively, when a block’s width < th1 or <=th1 and/or a block’s height < th2 or <a=th2, proposed method or LIC are not allowed. In one example, th1 and/or th2 is set to 8.

e. In one example, LIC is disabled for affine inter modes or/and affine merge mode.

f. In one example, LIC is disabled for sub-block coding tools like ATMVP or/and STMVP or/and planar motion vector prediction modes. g. In one example, LIC is only applied to some components. For example, LIC is applied to luma component.

i. Alternatively, LIC is applied to chroma component.

h. In one example, BIO or/and DMVR is disabled if LIC flag is true. i. In one example, LIC is disabled for bi-predicted block.

j. In one example, LIC is disabled for inner block coded with AMVP mode. k. In one example, LIC is only allowed for uni-predicted block.

1 1. lt is proposed that selection of neighboring samples used for deriving LIC parameters may depend on coded information, block shape, etc. al.

a. In one example, if width >= height or width > height, only above neighboring pixels are used for deriving LIC parameters.

b. In one example, if width < height, only left neighboring pixels are used for deriving LIC parameters.

12. Whether to enable or disable the above methods may be signaled in SPS/PPSA/PS/sequence header/picture header/slice header/tile group header/group of CTUs, etc. al.

a. Alternatively, which method to be used may be signaled in SPS/PPS/VPS/sequence header/picture header/slice header/tile group header/group of CTUs, etc. al.

b. Alternatively, whether to enable or disable the above methods and/or which method to be applied may be dependent on block dimension, video processing data unit (VPDU), picture type, low delay check flag, coded information of current block (such as reference pictures, uni or bi-prediction) or previously coded blocks.

6. Additional Embodiments

Method #1 :

The PPS syntax element weight_bipred_flag is checked to determine if the

LIC_enabled_flag is signaled at the current CU. The syntax signaling is modified as follows in bold text:

Table 15: Example of syntax element

The first alternative will disable LIC for all the reference pictures of the current slice/tile/tile group, for example,

1. if the current slice refers to a PPS for which weighted_bipred_flag is set to 1 and current block is bi-predicted;

2. if the current slice refers to a PPS for which weighted_pred_flag is set to 1 and current block is uni-predicted;

Method #2:

For the bi-prediction case:

LIC is disabled only if both of the reference pictures used in the bi-prediction have turned on weighted prediction, i.e. , the (weight, offset) parameters of these reference pictures have non-default values. This allows the bi-predicted CUs that use reference pictures with default WP parameters (i.e. WP is not invoked for these CUs) to still be able to use LIC.

For the uni-prediction case:

LIC is disabled only if the reference picture used in the uni-prediction have turned on weighted prediction, i.e., the (weight, offset) parameters of these reference pictures have non-default values. This allows the uni-predicted CUs that use reference pictures with default WP parameters (i.e. WP is not invoked for these CUs) to still be able to use LIC. The syntax is modified as follows in bold text:

Table 16: Example of syntax element

In above table, X indicates the reference picture list (X being 0 or 1 ).

For above examples, the following may apply:

- sps_LIC_enabled_flag which controls the usage of LIC per sequence may be replaced by indications of usage of LIC per picture/view/slice/tile/tile groups/CTU rows/regions/multiple CTUs/CTU.

- the control of signalling of LIC_enabled_flag may further depend on block

dimensions.

- In one example, the control of signalling of LIC_enabled_flag may further depend on gbi index.

In one example, the control of signalling of gbi index may further depend on

LIC_enabled_flag.

[00293] FIG. 39 is a block diagram illustrating an example of the architecture for a computer system or other control device 2600 that can be utilized to implement various portions of the presently disclosed technology. In FIG. 39, the computer system 2600 includes one or more processors 2605 and memory 2610 connected via an interconnect 2625. The interconnect 2625 may represent any one or more separate physical buses, point to point connections, or both, connected by appropriate bridges, adapters, or controllers. The interconnect 2625, therefore, may 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), IIC (I2C) bus, or an Institute of Electrical and Electronics Engineers (IEEE) standard 674 bus, sometimes referred to as“Firewire.”

[00294] The processor(s) 2605 may include central processing units (CPUs) to control the overall operation of, for example, the host computer. In certain embodiments, the processor(s) 2605 accomplish this by executing software or firmware stored in memory 2610. The processor(s) 2605 may be, or may include, one or more programmable general-purpose or special-purpose microprocessors, digital signal processors (DSPs), programmable controllers, application specific integrated circuits (ASICs),

programmable logic devices (PLDs), or the like, or a combination of such devices.

[00295] The memory 2610 can 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, or the like, or a combination of such devices. In use, the memory 2610 may contain, among other things, a set of machine instructions which, when executed by processor 2605, causes the processor 2605 to perform operations to implement embodiments of the presently disclosed technology.

[00296] Also connected to the processor(s) 2605 through the interconnect 2625 is a (optional) network adapter 2615. The network adapter 2615 provides the computer system 2600 with the ability to communicate with remote devices, such as the storage clients, and/or other storage servers, and may be, for example, an Ethernet adapter or Fiber Channel adapter.

[00297] FIG. 40A shows a block diagram of an example embodiment of a device 2700 that can be utilized to implement various portions of the presently disclosed technology. The mobile device 2700 can be a laptop, a smartphone, a tablet, a camcorder, or other types of devices that are capable of processing videos. The mobile device 2700 includes a processor or controller 2701 to process data, and memory 2702 in

communication with the processor 2701 to store and/or buffer data. For example, the processor 2701 can include a central processing unit (CPU) or a microcontroller unit (MCU). In some implementations, the processor 2701 can include a field- programmable gate-array (FPGA). In some implementations, the mobile device 2700 includes or is in communication with a graphics processing unit (GPU), video processing unit (VPU) and/or wireless communications unit for various visual and/or communications data processing functions of the smartphone device. For example, the memory 2702 can include and store processor-executable code, which when executed by the processor 2701 , configures the mobile device 2700 to perform various

operations, e.g., such as receiving information, commands, and/or data, processing information and data, and transmitting or providing processed information/data to another device, such as an actuator or external display. To support various functions of the mobile device 2700, the memory 2702 can 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 (ROM) devices, Flash Memory devices, and other suitable storage media can be used to implement storage functions of the memory 2702. In some implementations, the mobile device 2700 includes an input/output (I/O) unit 2703 to interface the processor 2701 and/or memory 2702 to other modules, units or devices. For example, the I/O unit 2703 can interface the processor 2701 and memory 2702 with to utilize various types of wireless interfaces compatible with typical data communication standards, e.g., such as between the one or more computers in the cloud and the user device. In some implementations, the mobile device 2700 can interface with other devices using a wired connection via the I/O unit 2703. The mobile device 2700 can also interface with other external interfaces, such as data storage, and/or visual or audio display devices 2704, to retrieve and transfer data and information that can be processed by the processor, stored in the memory, or exhibited on an output unit of a display device 2704 or an external device. For example, the display device 2704 can display a video frame modified based on the MVPs in accordance with the disclosed technology.

[00298] FIG. 40B is another example of a block diagram of a video processing system in which disclosed techniques may be implemented. FIG. 29 is a block diagram showing an example video processing system 2900 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of the system 2900. The system 2900 may include input 2902 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10 bit multi-component pixel values, or may be in a compressed or encoded format. The input 2902 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interface include wired interfaces such as Ethernet, passive optical network (PON), etc. and wireless interfaces such as Wi-Fi or cellular interfaces.

[00299] The system 2900 may include a coding component 2904 that may implement the various coding or encoding methods described in the present document. The coding component 2904 may reduce the average bitrate of video from the input 2902 to the output of the coding component 2904 to produce a coded representation of the video. The coding techniques are therefore sometimes called video compression or video transcoding techniques. The output of the coding component 2904 may be either stored, or transmitted via a communication connected, as represented by the

component 2906. The stored or communicated bitstream (or coded) representation of the video received at the input 2902 may be used by the component 2908 for generating pixel values or displayable video that is sent to a display interface 2910. The process of generating user-viewable video from the bitstream representation is sometimes called video decompression. Furthermore, while certain video processing operations are referred to as“coding” operations or tools, it will be appreciated that the coding tools or operations are used at an encoder and corresponding decoding tools or operations that reverse the results of the coding will be performed by a decoder.

[00300] Examples of a peripheral bus interface or a display interface may include universal serial bus (USB) or high definition multimedia interface (HDMI) or Displayport, and so on. Examples of storage interfaces include SATA (serial advanced technology attachment), PCI, IDE interface, and the like. The techniques described in the present document may be embodied in various electronic devices such as mobile phones, laptops, smartphones or other devices that are capable of performing digital data processing and/or video display.

[00301] In some embodiments, the video processing methods may be implemented using an apparatus that is implemented on a hardware platform as described with respect to FIG. 39, 40 or 40B.

[00302] FIG. 41 A is a flowchart representation of a method 4100 of video processing. The method 4100 includes, at step 4102, determining, for a conversion between a current block of a current video picture of a video and a coded representation of the video, that both a local illumination compensation (LIC) tool and an intra block copy (IBC) tool are enabled for the conversion of the current block. The method 4100 further includes, at step 4104, performing the conversion based on the determining. The LIC tool uses a linear model of illumination changes in the current block during the conversion, and the IBC tool uses a portion of the current video picture for the conversion of the current block.

[00303] FIG. 41 B is a flowchart representation of a method 4200 of video processing. The method 4200 includes, at step 4202, determining to use a rule that specifies to use a local illumination compensation (LIC) tool exclusively with a current picture

referencing (CPR) mode for a conversion between a current block of a video and a coded representation of the video. The method 4200 further includes, at step 4204, performing the conversion based on the determining. The LIC tool includes using a linear model of illumination changes in the current block during the conversion, and the CPR mode includes using another portion of a current picture comprising the current block for a prediction of the current block.

[00304] FIG. 42A is a flowchart representation of an example method for video processing. The method 5100 includes, at step 5102, performing a determination, for a conversion between a current block of a video and a coded representation of the video, that a generalized bi prediction (GBI) tool or a multi-hypothesis inter prediction tool is enabled for the conversion or a local illumination compensation (LIC) tool being enabled for the conversion. The method 5100 further includes, at step 5104, performing the conversion based on the determination. In some implementations, the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[00305] FIG. 42B is a flowchart representation of an example method for video processing. The method 5200 includes, at step 5202, determining to use a local illumination compensation (LIC) tool with a multi-hypothesis prediction tool for a conversion between a current block of a video and a coded representation of the video. The method 5200 further includes, at step 5204, performing the conversion based on the determining. In some implementations, the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[00306] FIG. 42C is a flowchart representation of an example method for video processing. The method 5300 includes, at step 5302, determining to use a local illumination compensation (LIC) tool and a weighted prediction tool exclusive of each other for a conversion between a current block and a coded representation of the current block. The method 5300 further includes, at step 5304, performing the conversion based on the determining. In some implementations, the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[00307] FIG. 43A is a flowchart representation of an example method for video processing. The method 6100 includes, at step 6102, determining, based on an inheritance rule, whether to use a local illumination compensation (LIC) mode for a conversion between a current block of a video region of a video and a coded representation of the video, the LIC mode including using a linear model of illumination changes in the current block during the conversion. The method 6100 further includes, at step 6104, performing the conversion based on the determining. In some implementations, the inheritance rule specifies to inherit a use of the LIC mode from a base merge candidate of an ultimate motion vector expression (UMVE) mode, and the UMVE mode comprises using a motion vector expression that includes a base merge candidate and motion vector differences utilized to refine the motion information of the base merge candidate.

[00308] FIG. 43B is a flowchart representation of an example method for video processing. The method 6200 includes, at step 6202, determining to use a local illumination compensation (LIC) tool and a sub-block based coding mode exclusive of each other. The method 6200 further includes, at step 6204, performing, based on the determining, a conversion between a current block of a video and a coded representation of the video. In some implementations, the LIC tool includes using a linear model of illumination changes in the current block during the conversion. [00309] FIG. 43C is a flowchart representation of an example method for video processing. The method 6300 includes, at step 6302, determining to use a local illumination compensation (LIC) tool and a triangular prediction mode (TPM) exclusive of each other. The method 6300 further includes, at step 6304, performing, based on the determining, a conversion between a current block of a video and a coded

representation of the video. In some implementations, the LIC tool uses a linear model of illumination changes in the current block for the conversion and the TPM includes dividing the video region into at least two non-rectangular portions for the conversion.

[00310] FIG. 43D is a flowchart representation of an example method for video processing. The method 6400 includes, at step 6402, determining, for a conversion between a current block of a video and a coded representation of the video, that both a local illumination compensation (LIC) and a triangular prediction mode (TPM) mode are enabled for the conversion of the current block. The method 6400 further includes, at step 6404, performing the conversion based on the determining. In some

implementations, the LIC tool uses a linear model of illumination changes in the current block for the conversion and the TPM includes dividing the video region into at least two non-rectangular portions for the conversion.

[00311] Various techniques and embodiments may be described using the following clause-based format.

[00312] The first set of clauses describes certain features and aspects of the disclosed techniques listed in the previous section, including, for example, items 3 and 7.

[00313] 1 . A video processing method, comprising: determining, for a conversion between a current block of a current video picture of a video and a coded representation of the video, that both a local illumination compensation (LIC) tool and an intra block copy (IBC) tool are enabled for the conversion of the current block; and performing the conversion based on the determining, wherein the LIC tool uses a linear model of illumination changes in the current block during the conversion, and wherein the IBC tool uses a portion of the current video picture for the conversion of the current block.

[00314] 2. The method of clause 1 , wherein an indication of LIC usage is signaled for the current block coded with an intra block copy mode. [00315] 3. The method of clause 1 , wherein the current block uses intra block copy merge mode and wherein the current block inherits LIC flag value of a neighboring block.

[00316] 4. The method of clause 1 , wherein the current block uses intra block copy merge mode and wherein the current block inherits LIC parameters of a neighboring block.

[00317] 5. The method of clause 1 , wherein an LIC flag is true and LIC parameter is derived implicitly.

[00318] 6. The method of clause 1 , wherein the LIC operation is performed based on a determination that the current block is the boundary block of a coding tree unit (CTU) in which the current block is positioned.

[00319] 7. The method of clause 1 , wherein the LIC operation is performed based a determination that the current block is an inner block of a coding tree unit (CTU) in which the current block is positioned.

[00320] 8. The method of clause 1 , wherein an indication of IBC usage is signaled for the current block coded with a LIC mode.

[00321] 9. A video processing method, comprising: determining to use a rule that specifies to use a local illumination compensation (LIC) tool exclusively with a current picture referencing (CPR) mode for a conversion between a current block of a video and a coded representation of the video; and performing the conversion based on the determining, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion, and wherein the CPR mode includes using another portion of a current picture comprising the current block for a prediction of the current block.

[00322] 10. The method of clause 9, wherein signaling of an indication of LIC usage is skipped in case that the CPR mode is enabled for the current block.

[00323] 1 1. The method of clause 9, wherein signaling of an indication of CPR usage is skipped in case that the LIC mode is enabled for the current block.

[00324] 12. The method of any of clauses 1 to 1 1 , wherein the performing of the conversion includes generating the coded representation from the current block.

[00325] 13. The method of any of clauses 1 to 1 1 , wherein the performing of the conversion includes generating the current block from the coded representation.

[00326] 14. An apparatus in a video system comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to implement the method recited in one or more of clauses 1 to 13.

[00327] 15. A computer program product stored on a non-transitory computer readable media, the computer program product including program code for carrying out the method recited in one or more of clauses 1 to 13.

[00328] The second set of clauses describes certain features and aspects of the disclosed techniques listed in the previous section, including, for example, items 4, 5, 6, and 8.

[00329] 1 . A video processing method, comprising: performing a determination, for a conversion between a current block of a video and a coded representation of the video, that a generalized bi prediction (GBI) tool or a multi-hypothesis inter prediction tool is enabled for the conversion or a local illumination compensation (LIC) tool being enabled for the conversion; and performing the conversion based on the determination, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[00330] 2. The method of clause 1 , wherein an LIC flag is true, and wherein the coded representation excludes one or more syntax elements associated with the GBI tool or the multi-hypothesis inter prediction tool.

[00331] 3. The method of clause 2, wherein the GBI tool or the multi-hypothesis inter prediction tool is disabled and the LIC tool is enabled.

[00332] 4. The method of clause 1 , wherein unequal weights in the GBI tool are applied to prediction blocks of the current block, and wherein the coded representation excludes one or more syntax elements associated with the LIC tool or the multi-hypothesis inter prediction tool.

[00333] 5. The method of clause 4, wherein the LIC tool or the multi-hypothesis inter prediction tool is disabled and the GBI tool with unequal weights is enabled.

[00334] 6. The method of clause 1 , wherein the multi-hypothesis inter prediction tool is enabled, and wherein the coded representation excludes one or more syntax elements associated with the LIC tool or the GBI tool.

[00335] 7. The method of clause 6, wherein the LIC tool or the GBI tool is disabled and multi-hypothesis inter prediction is enabled.

[00336] 8. The method of clause 1 , wherein the LIC tool, the GBI tool, the multi- hypothesis inter prediction tool are checked in an order.

[00337] 9. The method of clause 1 , wherein information associated with the GBI tool is signaled after information associated with the LIC tool.

[00338] 10. The method of clause 9, wherein whether to signal GBI information depends on at least one of LIC information or weighted prediction information associated with at least one reference picture of the current block or of current tile, tile group, or a picture containing the current block.

[00339] 1 1. The method of clause 1 , wherein information associated with the LIC tool is signaled after information associated with the GBI tool.

[00340] 12. The method of clause 1 1 , wherein whether to signal LIC information depends on at least one of GBI information or weighted prediction information associated with at least one reference picture of the current block or of current tile, tile group, or a picture containing the current block.

[00341] 13. The method of clause 9 or 10, wherein the information is signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a tile group header, a tile, a coding unit (CU) or a coding tree unit (CTU).

[00342] 14. The method of clause 1 , wherein information associated with the LIC tool is signaled after information associated with the multi-hypothesis inter prediction tool.

[00343] 15. The method of clause 1 , wherein information associated with the multi- hypothesis inter prediction tool is signaled after information associated with the LIC tool.

[00344] 16. The method of clause 8, wherein the order depends on at least one of previously coded information or the coded information of the current block.

[00345] 17. The method of clause 1 , wherein in case that the GBI tool is enabled for the current block with unequal weights for two or more reference pictures, syntax elements required by the LIC tool or multi-hypothesis inter prediction tool are not signaled. [00346] 18. The method of any of clauses 1 -17, wherein the current block is uni- prediction.

[00347] 19. A method for video processing, comprising: determining to use a local illumination compensation (LIC) tool with a multi-hypothesis prediction tool for a conversion between a current block of a video and a coded representation of the video; and performing the conversion based on the determining, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[00348] 20. The method of clause 19, wherein an LIC flag is signaled for multi- hypothesis advanced motion vector prediction (AMVP) and merge mode.

[00349] 21. The method of clause 20, wherein the LIC flag is applied to both an AMVP mode and a merge mode or only to the AMVP mode.

[00350] 22. The method of clause 19, wherein an LIC flag is not signaled and the LIC is disabled for an AMVP mode.

[00351] 23. The method of clause 19, wherein an LIC flag is inherited from corresponding merge candidates for multi-hypothesis merge mode.

[00352] 24. The method of clause 19, wherein an LIC flag is signaled for multi- hypothesis inter prediction mode.

[00353] 25. The method of clause 24, wherein the current block is predicted with both additional motion information and either a merge mode or UMVE (Ultimate Motion Vector Expression) mode and wherein the LIC flag is applied to both the additional information and either the merge mode or the additional motion information or only to the additional motion information.

[00354] 26. The method of clause 24, wherein the current block is predicted with both additional motion information and either a merge mode or UMVE (Ultimate Motion Vector Expression) mode and wherein the LIC flag is not signaled and disabled for the additional motion information.

[00355] 27. The method of clause 24, wherein the current block is predicted with both additional motion information and an AMVP mode and wherein the LIC flag is applied to both the AMVP mode and the additional motion information.

[00356] 28. The method of any of clauses 25-27, wherein different LIC parameters are derived or inherited for the merge mode, the UMVE mode, the AMVP mode, and the additional motion information.

[00357] 29. The method of clause 19, wherein LIC is applied to certain prediction signals that are less than all prediction signals in case that a multi-hypothesis prediction is applied to the current block.

[00358] 30. The method of clause 19, wherein one or more flags are signaled or derived to indicate a usage of LIC in case that a multi-hypothesis prediction is applied to the current block.

[00359] 31. A method for video processing, comprising: determining to use a local illumination compensation (LIC) tool and a weighted prediction tool exclusive of each other for a conversion between a current block and a coded representation of the current block; and performing the conversion based on the determining, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[00360] 32. The method of clause 31 , wherein the determining determines that the LIC tool is disabled due to the determining that the weighted prediction tool is used for at least one reference picture of the block.

[00361] 33. The method of clause 31 , wherein the determining determines that the LIC tool is disabled due to the determining that the weighted prediction tool is used for all reference pictures of the block.

[00362] 34. The method of clause 31 , wherein a signaling of LIC information depends on whether the weighted prediction is enabled for the current block.

[00363] 35. The method of clause 34, wherein whether the weighted prediction is enabled for the current block further depends on whether the current block is a bi- prediction or uni-prediction.

[00364] 36. The method of clause 31 , wherein a signaling of LIC information depends on weighted prediction parameters associated with one or all reference pictures associated with the current block.

[00365] 37. The method of clause 31 , wherein the weighted prediction tool is enabled for at least some reference pictures of the current block, and wherein the LIC tool is disabled for the current block.

[00366] 38. The method of clause 37, wherein one or more syntax elements associated with the LIC tool is excluded from the coded representation.

[00367] 39. The method of clause 31 , wherein the weighted prediction tool is enabled for at least some reference pictures of the current block, and wherein the LIC tool is applied for the current block and the weighted prediction tool is disabled for the current block.

[00368] 40. The method of clause 31 , wherein the weighted prediction tool and the LIC tool are both applied for the current block.

[00369] 41. The method of clause 31 , wherein the LIC tool and the weighted prediction tool are used exclusively of each other at a picture level, slice level, tile group level, or CTU (Coding Tree Unit) group level.

[00370] 42. The method of clause 41 , wherein the weighted prediction tool is enabled for at least some reference pictures of a picture, slice, tile group, CTU group, and wherein the LIC tool is disabled.

[00371] 43. The method of clause 42, wherein the LIC tool is enabled for a picture, slice, tile group, CTU group, and wherein the weighted prediction tool is disabled for at least some reference pictures.

[00372] 44. The method of any of clauses 1 to 43, wherein the performing of the conversion includes generating the coded representation from the current block.

[00373] 45. The method of any of clauses 1 to 43, wherein the performing of the conversion includes generating the current block from the coded representation.

[00374] 46. An apparatus in a video system comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to implement the method recited in one or more of clauses 1 to 45.

[00375] 47. A computer program product stored on a non-transitory computer readable media, the computer program product including program code for carrying out the method recited in one or more of clauses 1 to 45.

[00376] The third set of clauses describes certain features and aspects of the disclosed techniques listed in the previous section, including, for example, items 4 and 9.

[00377] 1 . A method for video processing, comprising: determining, based on an inheritance rule, whether to use a local illumination compensation (LIC) mode for a conversion between a current block of a video region of a video and a coded representation of the video, the LIC mode including using a linear model of illumination changes in the current block during the conversion; and performing the conversion based on the determining, wherein the inheritance rule specifies to inherit a use of the LIC mode from a base merge candidate of an ultimate motion vector expression (UMVE) mode, and wherein the UMVE mode comprises using a motion vector expression that includes a base merge candidate and motion vector differences utilized to refine the motion information of the base merge candidate.

[00378] 2. The method of clause 1 , wherein LIC parameters are derived based on neighboring samples of a current coding unit (CU) of the video.

[00379] 3. The method of clause 2, wherein the LIC parameters are derived for blocks on boundaries of the video region that are coded in the UMVE mode.

[00380] 4. The method of clause 1 , wherein LIC parameters are inherited from the base merge candidate for blocks inside the video region.

[00381] 5. The method of clause 1 , wherein the LIC flag is signaled explicitly in the

UMVE mode.

[00382] 6. A method for video processing, comprising: determining to use a local illumination compensation (LIC) tool and a sub-block based coding mode exclusive of each other; and performing, based on the determining, a conversion between a current block of a video and a coded representation of the video, wherein the LIC tool includes using a linear model of illumination changes in the current block during the conversion.

[00383] 7. The method of clause 6, wherein the sub-block based coding mode includes an affine mode.

[00384] 8. The method of clause 6, wherein the determining determines that the LIC tool is disabled in the conversion due to that the current block is coded with sub-block based coding mode. [00385] 9. A method for video processing, comprising: determining to use a local illumination compensation (LIC) tool and a triangular prediction mode (TPM) exclusive of each other; and performing, based on the determining, a conversion between a current block of a video and a coded representation of the video, wherein the LIC tool uses a linear model of illumination changes in the current block for the conversion and the TPM includes dividing the video region into at least two non-rectangular portions for the conversion.

[00386] 10. The method of clause 9, wherein the determining determines that the triangular prediction mode is enabled and the conversion is performed by disabling the LIC tool.

[00387] 1 1. A method for video processing, comprising: determining, for a conversion between a current block of a video and a coded representation of the video, that both a local illumination compensation (LIC) and a triangular prediction mode (TPM) mode are enabled for the conversion of the current block; and performing the conversion based on the determining, wherein the LIC tool uses a linear model of illumination changes in the current block for the conversion and the TPM includes dividing the video region into at least two non-rectangular portions for the conversion.

[00388] 12. The method of clause 1 1 , wherein a LIC flag of a TPM merge candidate is inherited from a spatial or temporal block or other motion candidates.

[00389] 13. The method of clause 12, wherein the other motion candidates include

HMVP (History-based Motion Vector Prediction) candidates.

[00390] 14. The method of clause 1 1 , wherein a LIC flag of a TPM merge candidate is inherited from some spatial or temporal blocks.

[00391] 15. The method of clause 9, wherein an LIC flag of a TMP merge candidate is set to false.

[00392] 16. The method of any of clauses 1 to 15, wherein the performing of the conversion includes generating the coded representation from the current block.

[00393] 17. The method of any of clauses 1 to 15, wherein the performing of the conversion includes generating the current block from the coded representation.

[00394] 18. An apparatus in a video system comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to implement the method recited in one or more of clauses 1 to 17.

[00395] 19. A computer program product stored on a non-transitory computer readable media, the computer program product including program code for carrying out the method recited in one or more of clauses 1 to 17.

[00396] Some embodiments of the disclosed technology include making a decision or determination to enable a video processing tool or mode. In an example, when the video processing tool or mode is enabled, the encoder will use or implement the tool or mode in the processing of a block of video, but may not necessarily modify the resulting bitstream based on the usage of the tool or mode. That is, a conversion from the block of video to the bitstream representation of the video will use the video processing tool or mode when it is enabled based on the decision or determination. In another example, when the video processing tool or mode is enabled, the decoder will process the bitstream with the knowledge that the bitstream has been modified based on the video processing tool or mode. That is, a conversion from the bitstream representation of the video to the block of video will be performed using the video processing tool or mode that was enabled based on the decision or determination.

[00397] Some embodiments of the disclosed technology include making a decision or determination to disable a video processing tool or mode. In an example, when the video processing tool or mode is disabled, the encoder will not use the tool or mode in the conversion of the block of video to the bitstream representation of the video. In another example, when the video processing tool or mode is disabled, the decoder will process the bitstream with the knowledge that the bitstream has not been modified using the video processing tool or mode that was enabled based on the decision or determination.

[00398] The disclosed and other embodiments, modules and the functional operations described in this document can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this document and their structural equivalents, or in combinations of one or more of them. The disclosed and other embodiments can be implemented as one or more computer program products, i.e. , one or more modules of computer program instructions encoded on a computer readable medium for execution by, or to control the operation of, data processing apparatus. The computer readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter effecting a machine-readable propagated signal, or a combination of one or more them. The term“data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a

programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., 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 propagated signal is an artificially generated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus.

[00399] A computer program (also known as a program, software, software

application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

[00400] The processes and logic flows described in this document can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

[00401] Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read only memory or a random-access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and CD ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

[00402] While this patent document contains many specifics, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular inventions. Certain features that are described in this patent document in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.

[00403] Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Moreover, 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.

[00404] 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.