Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
GENERATION AND USAGE OF COMBINED AFFINE MERGE CANDIDATE
Document Type and Number:
WIPO Patent Application WO/2020/075053
Kind Code:
A1
Abstract:
Generation and usage of combined affine merge candidate are described. In a representative aspect, a method of video processing comprises: generating, during a conversion between a current block of video and a bitstream representation of the current block, an updated merge candidate list by adding at least one combined merge candidate to a first merge candidate list; and performing the conversion by using the updated merge candidate list.

Inventors:
ZHANG KAI (US)
ZHANG LI (US)
LIU HONGBIN (CN)
WANG YUE (CN)
Application Number:
PCT/IB2019/058543
Publication Date:
April 16, 2020
Filing Date:
October 08, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BEIJING BYTEDANCE NETWORK TECH CO LTD (CN)
BYTEDANCE INC (US)
International Classes:
H04N19/52; H04N19/176
Foreign References:
US20180098063A12018-04-05
Other References:
CHEN (HUAWEI) H ET AL: "CE4: Common base for affine merge mode (Test 4.2.1)", no. JVET-L0366, 25 September 2018 (2018-09-25), XP030193874, Retrieved from the Internet [retrieved on 20180925]
Attorney, Agent or Firm:
LIU, SHEN & ASSOCIATES (CN)
Download PDF:
Claims:
CLAIMS

What is claimed is: 1. A method of video processing, comprising:

generating, during a conversion between a current block of video and a bitstream representation of the current block, an updated merge candidate list by adding at least one combined merge candidate to a first merge candidate list; and

performing the conversion by using the updated merge candidate list. 2. The method of claim 1, wherein the first merge candidate list comprises one or more sub- block prediction based merge candidates.

3. The method of claim 2, wherein the one or more sub-block prediction based merge candidates comprise affine merge candidates or advanced temporal motion vector prediction (ATMVP) merge candidates. 4. The method of any of claims 1 to 3, wherein the conversion generates the current block from the bitstream representation. 5. The method of any of claims 1 to 3, wherein the conversion generates the bitstream representation from the current block. 6. The method of any of claims 1 to 5, wherein the at least one combined merge candidate comprises one or more combined affine merge candidates. 7. The method of claim 6, further comprising:

adding, immediately prior to the generating, one or more neighboring inherited affine merge candidates to the first merge candidate list. 8. The method of claim 6, further comprising:

adding, immediately prior to the generating, one or more constructed affine merge candidates to the first merge candidate list.

9. The method of any of claims 1 to 5, wherein the first merge candidate list includes a first affine merge candidate list comprising multiple affine merge candidates with control point motion vectors, and a combined affine model with control point motion vectors (CPMVs) of the at least one combined merge candidate are derived based on the multiple affine merge candidates. 10. The method of claim 9, wherein the combined affine model with control point motion vectors (CPMVs) of the at least one combined merge candidate is derived from affine models of M affine merge candidates in K affine merge candidates, wherein the K affine merge candidates are the first K affine merge candidates of the multiple affine merge candidates in the first affine merge candidate list, and wherein M and K are integers, K is larger or equal to M. 11. The method of claim 9, wherein a combined affine model with control point motion vectors (CPMVs) of the at least one combined merge candidate is derived from affine models of M affine merge candidates in K affine merge candidates, wherein the K affine merge candidates are the last K affine merge candidates prior to the at least one combined merge candidate in the first affine merge candidate list, and wherein M and K are integers, K is larger or equal to M. 12. The method of claim 9, wherein when the current block applies a 6-parameter affine model, the at least one combined merge candidate comprises a first combined merge candidate with control point motion vectors (CPMVs) denoted (MV'0, MV'1, MV'2), and wherein the multiple affine merge candidates comprise a first affine merge candidate with CPMVs denoted (MV0C1, MV1C1, MV2C1), a second affine merge candidate with CPMVs denoted (MV0C2, MV1C2, MV2C2) and/or a third affine merge candidate with CPMVs denoted (MV0C3, MV1C3, MV2C3), C1, C2, C3 represents the indices of the multiple affine merge candidate. 13. The method of claim 12, wherein the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C1,MV0C2), Average(MV1C1, MV1C2), Average(MV2C1, MV2C2)), and wherein Average(A, B) is an average of A and B. 14. The method of claim 12, wherein the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (MV0C1, MV0C1+ Average(DiffMVC11, DiffMVC21), MV0C1+

Average(DiffMVC12, DiffMVC22)), wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12- MVC10, DiffMVC21 = MVC21-MVC20 and DiffMVC22 = MV C22-MV C20, and wherein Average(A, B) is an average of A and B. 15. The method of claim 12, wherein the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (MV0C3, MV0C3+ Average(DiffMVC11, DiffMVC21), MV0C3+

Average(DiffMVC12, DiffMVC22)), wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12- MVC10, DiffMVC21 = MVC21-MVC20 and DiffMVC22 = MV C22-MV C20, and wherein Average(A, B) is an average of A and B. 16. The method of claim 12, wherein the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C1, MV0C2), Average(MV0C1, MV0C2)+DiffMVC11,

Average(MV0C1, MV0C2)+ DiffMVC12), and wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12-MVC10 and Average(A, B) is an average of A and B. 17. The method of claim 12, wherein the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C2, MV0C3), Average(MV0C2, MV0C3)+DiffMVC11,

Average(MV0C2, MV0C3)+ DiffMVC12), wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12-MVC10 and Average(A, B) is an average of A and B. 18. The method of claim 9, wherein when the current block applies a 4-parameter affine model, the at least one combined merge candidate comprises a first combined merge candidate with control point motion vectors (CPMVs) denoted (MV'0, MV'1), and wherein the multiple affine merge candidates comprise a first affine merge candidate with CPMVs denoted (MV0C1, MV1C1) and a second affine merge candidate with CPMVs denoted (MV0C2, MV1C2) and/or a third affine merge candidate with CPMVs denoted (MV0C3, MV1C3, MV2C3), C1, C2, C3 represents the indices of the multiple affine merge candidate. 19. The method of claim 18, wherein the at least one combined merge candidate is derived as (MV’0, MV’1) = (Average(MV0C1,MV0C2), Average(MV1C1, MV1C2)), and wherein Average(A, B) is an average of A and B.

20. The method of claim 18, wherein the at least one combined merge candidate is derived as (MV’0, MV’1) = (MV0C1, MV0C1+ Average(DiffMVC11, DiffMVC21)), wherein DiffMVC11 = MVC11-MVC10, DiffMVC21 = MVC21-MVC20, and wherein Average(A, B) is an average of A and B. 21. The method of claim 18, wherein the at least one combined merge candidate is derived as (MV’0, MV’1) = (MV0C3, MV0C3+ Average(DiffMVC11, DiffMVC21)), wherein DiffMVC11 = MVC11-MVC10, DiffMVC21 = MVC21-MVC20, and wherein Average(A, B) is an average of A and B. 22. The method of claim 18, wherein the at least one combined merge candidate is derived as (MV’0, MV’1) = (Average(MV0C1, MV0C2), Average(MV0C1, MV0C2)+DiffMVC11), and wherein DiffMVC11 = MVC11-MVC10 and Average(A, B) is an average of A and B. 23. The method of claim 18, wherein the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C2, MV0C3), Average(MV0C2, MV0C3)+DiffMVC11), wherein DiffMVC11 = MVC11-MVC10 and Average(A, B) is an average of A and B. 24. The method of any of claims 12 to 23, wherein the CPMVs of the first affine merge candidate are associated with a first reference picture, and wherein the CPMVs of the second affine merge candidate are associated with a second reference picture that is different from the first reference picture. 25. The method of claim 24, wherein the CPMVs of the first affine merge candidate and the CPMVs of the second affine merge candidate are scaled to same reference picture before they are combined, wherein the same reference picture is one of the first reference picture and the second reference picture or a fixed reference picture. 26. The method of claim 24, wherein the CPMVs of the first affine merge candidate and the CPMVs of the second affine merge candidate are combined without any scaling. 27. The method of claim 24, wherein the CPMVs of the first affine merge candidate and the CPMVs of the second affine merge candidate cannot be combined. 28. The method of any one of claims 9-27, wherein the at least one combined merge candidate is derived by using pairs of affine merge candidates of the multiple affine merge candidates, and the at least one combined merge candidate is put into the first affine merge candidate list in a predetermined order. 29. The method of claim 28, wherein if one affine merge candidate with an index in a pair of affine merge candidates is not available, or if one affine merge candidate with an index in a pair of affine merge candidates is a combined affine merge candidate, or if one affine merge candidate with an index in a pair of affine merge candidates is a constructed affine merge candidate, or if one affine merge candidate with an index in a pair of affine merge candidates is an advanced temporal motion vector prediction (ATMVP) merge candidate, or if one affine merge candidate with an index in a pair of affine merge candidates is a zero affine merge candidate, this pair is skipped and not used to derive the at least one combined affine merge candidate. 30. The method of any one of claims 9-27, wherein the at least one combined merge candidate is derived by using groups of affine merge candidates of the multiple affine merge candidates, and the at least one combined merge candidate is put into the first affine merge candidate list in a predetermined order. 31. The method of claim 30, wherein if one affine merge candidate with an index in a group of affine merge candidates is not available, or if one affine merge candidate with an index in a group of affine merge candidates is a combined affine merge candidate, or if one affine merge candidate with an index in a group of affine merge candidates is a constructed affine merge candidate, or if one affine merge candidate with an index in a group of affine merge candidates is an advanced temporal motion vector prediction (ATMVP) merge candidate, or if one affine merge candidate with an index in a group of affine merge candidates is a zero affine merge candidate, this group is skipped and not used to derive the at least one combined affine merge candidate. 32. The method of any of claims 1 to 5, wherein the generating the updated merge candidate list comprises:

determining whether a first combined merge candidate of the at least at least one combined merge candidate is identical to any merge candidate in the first merge candidate list; if no, adding the first combined merge candidate to the first merge candidate list, and if yes, discarding the first combined merge candidate. 33. The method of any of claims 1 to 5, further comprising:

generating, based on inter directions of a first affine merge candidate and a second affine merge candidate in the first merge candidate list, the at least one combined merge candidate. 34. The method of claim 33, wherein if the first affine merge candidate applies List 0 prediction and the second affine merge candidate applies List 1 prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to CPMVs of the first affine merge candidate and CPMVs in List 1 equal to CPMVS of the second affine merge candidate. 35. The method of claim 33, wherein if the first affine merge candidate applies List 1 prediction and the second affine merge candidate applies List 0 prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to CPMVs of the second affine merge candidate and CPMVs in List 1 equal to CPMVS of the first affine merge candidate. 36. The method of claim 33, wherein if the first affine merge candidate applies List 0 prediction and the second affine merge candidate applies List 0 prediction, the at least one combined affine merge candidate applies List 0 prediction, with CPMVs in List 0 equal to a combination of CPMVs of the first affine merge candidate and CPMVs of the second affine merge candidate. 37. The method of claim 33, wherein if the first affine merge candidate applies List 0 prediction and the second affine merge candidate applies List 0 prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to a combination of CPMVs of the first affine merge candidate and CPMVs of the second affine merge candidate. 38. The method of claim 33, wherein if the first affine merge candidate applies List 1 prediction and the second affine merge candidate applies List 1 prediction, the at least one combined affine merge candidate applies List 1 prediction, with CPMVs in List 1 equal to a combination of CPMVs of the first affine merge candidate and CPMVs of the second affine merge candidate. 39. The method of claim 33, wherein if the first affine merge candidate applies List 0 prediction and the second affine merge candidate applies Bi prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to a combination of CPMVs in List 0 of the first affine merge candidate and CPMVs in List 0 of the second affine merge candidate, and CPMVs in List 1 equal to CPMVs in List 1 of the second affine merge candidate. 40. The method of claim 33, wherein if the first affine merge candidate applies List 1 prediction and the second affine merge candidate applies Bi prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 1 equal to a combination of CPMVs in List 1 of the first affine merge candidate and CPMVs in List 1 of the second affine merge candidate, and CPMVs in List 0 equal to CPMVs in List 0 of the second affine merge candidate. 41. The method of claim 33, wherein if the second affine merge candidate applies List 0 prediction and the first affine merge candidate applies Bi prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to a combination of CPMVs in List 0 of the second affine merge candidate and CPMVs in List 0 of the first affine merge candidate, and CPMVs in List 1 equal to CPMVs in List 1 of the first affine merge candidate. 42. The method of claim 33, wherein if the second affine merge candidate applies List 1 prediction and the first affine merge candidate applies Bi prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 1 equal to a combination of CPMVs in List 1 of the second affine merge candidate and CPMVs in List 1 of the first affine merge candidate, and CPMVs in List 0 equal to a combination of CPMVs in List 0 of the first affine merge candidate and CPMVs in List 0 of the second affine merge candidate.

43. The method of any of claims 1 to 42, wherein the first merge candidate list is an affine merge candidate list or a sub-block merge candidate list. 44. 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 in any one of claims 1 to 43. 45. A computer program product stored on a non-transitory computer readable media, the computer program product including program code for carrying out the method in any one of claims 1 to 43.

Description:
GENERATION AND USAGE OF COMBINED AFFINE MERGE CANDIDATE

CROSS-REFERENCE TO RELATED APPLICATION

[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/109329, filed on October 8, 2018. The entire disclosures of International Patent Application No. No. PCT/CN2018/109329 are incorporated by reference as part of the disclosure of this application.

TECHNICAL FIELD

[0002] This patent document is directed generally to image and video coding technologies. BACKGROUND

[0003] In spite of the advances in video compression, digital video still accounts for the largest bandwidth use on the internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, it is expected that the bandwidth demand for digital video usage will continue to grow. SUMMARY

[0004] Devices, systems and methods related to digital video coding, and specifically, to combined affine merge candidates for visual media coding are described. The described methods may be applied to both the existing video coding standards (e.g., High Efficiency Video Coding (HEVC)) and future video coding standards or video codecs.

[0005] In one representative aspect, the disclosed technology may be used to provide a method for video coding. This method includes generating, for a bitstream representation of a current block, an updated merge candidate list by adding at least one combined merge candidate to a merge candidate list, and performing, based on the updated merge candidate list, a conversion between the bitstream representation and the current block.

[0006] In another representative aspect, a method of video processing is disclosed. The method includes: generating, during a conversion between a current block of video and a bitstream representation of the current block, an updated merge candidate list by adding at least one combined merge candidate to a first merge candidate list; and performing the conversion by using the updated merge candidate list.

[0007] In another representative aspect, the above-described method is embodied in the form of processor-executable code and stored in a computer-readable program medium.

[0008] In yet another representative aspect, a device that is configured or operable to perform the above-described method is disclosed. The device may include a processor that is

programmed to implement this method.

[0009] In yet another representative aspect, a video decoder apparatus may implement a method as described herein.

[0010] The above and other aspects and features of the disclosed technology are described in greater detail in the drawings, the description and the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] FIG.1 shows an example of sub-block based prediction.

[0012] FIGS.2A and 2B show examples of the simplified 4-parameter affine model and the simplified 6-parameter affine model, respectively.

[0013] FIG.3 shows an example of an affine motion vector field (MVF) per sub-block.

[0014] FIGS.4A and 4B show example candidates for the AF_MERGE affine motion mode.

[0015] FIG.5 shows an example of candidate positions for affine merge mode.

[0016] FIG.6 shows an example of one coding unit (CU) with sub-blocks and neighboring blocks of the CU.

[0017] FIG.7 is a block diagram illustrating an example of the architecture for a computer system or other control device that can be utilized to implement various portions of the presently disclosed technology.

[0018] FIG.8 shows a block diagram of an example embodiment of a mobile device that can be utilized to implement various portions of the presently disclosed technology.

[0019] FIG.9 is a flowchart for an example method of video processing.

[0020] FIG.10 is a flowchart for another example method of video processing.

[0021] FIG.11 shows an example block diagram of a typical High Efficiency Video Coding (HEVC) video encoder and decoder. DETAILED DESCRIPTION

[0022] Due to the increasing demand of higher resolution video, video coding methods and techniques are ubiquitous in modern technology. Video codecs typically include an electronic circuit or software that compresses or decompresses digital video, and are continually being improved to provide higher coding efficiency. A video codec converts uncompressed video to a compressed format or vice versa. There are complex relationships between the video quality, the amount of data used to represent the video (determined by the bit rate), the complexity of the encoding and decoding algorithms, sensitivity to data losses and errors, ease of editing, random access, and end-to-end delay (latency). The compressed format usually conforms to a standard video compression specification, e.g., the High Efficiency Video Coding (HEVC) standard (also known as H.265 or MPEG-H Part 2), the Versatile Video Coding (VVC) standard to be finalized, or other current and/or future video coding standards.

[0023] Sub-block based prediction is first introduced into the video coding standard by the High Efficiency Video Coding (HEVC) standard. With sub-block based prediction, a block, such as a Coding Unit (CU) or a Prediction Unit (PU), is divided into several non-overlapped sub- blocks. Different sub-blocks may be assigned different motion information, such as reference index or motion vector (MV), and motion compensation (MC) is performed individually for each sub-block. FIG.1 shows an example of sub-block based prediction.

[0024] Embodiments of the disclosed technology may be applied to existing video coding standards (e.g., HEVC, H.265) and future standards to improve runtime performance. Section headings are used in the present document to improve readability of the description and do not in any way limit the discussion or the embodiments (and/or implementations) to the respective sections only.

1. Examples of the Joint Exploration Model (JEM)

[0025] In some embodiments, future video coding technologies are explored using a reference software known as the Joint Exploration Model (JEM). In JEM, sub-block based prediction is adopted in several coding tools, such as affine prediction, alternative temporal motion vector prediction (ATMVP), spatial-temporal motion vector prediction (STMVP), bi- directional optical flow (BIO), Frame-Rate Up Conversion (FRUC). Affine prediction has also been adopted into VVC.

1.1 Examples of affine prediction

[0026] In HEVC, only a 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 the other irregular motions. In the VVC, a simplified affine transform motion compensation prediction is applied. As shown in FIGS.2A and 2B, the affine motion field of the block is described by two (in the 4-parameter affine model) or three (in the 6- parameter affine model) control point motion vectors, respectively.

[0027] The motion vector field (MVF) of a block is described by the following equation with the 4-parameter affine model and 6-parameter affine model respectively:

[0030] Herein, (mvh0, mvh0) is motion vector of the top-left corner control point (CP), and is motion vector of the top-right corner control point and (mvh2, mvh2) is motion vector of the bottom-left corner control point, (x, y) represents the coordinate of a representative point relative to the top-left sample within current block. The CP motion vectors may be signaled (like in the affine AMVP mode) or derived on-the-fly (like in the affine merge mode). w and h are the width and height of the current block. In practice, the division is implemented by right- shift with a rounding operation. In VVC Test model (VTM), the representative point is defined to be the center position of a sub-block, e.g., when the coordinate of the left-top corner of a sub- block relative to the top-left sample within current block is (xs, ys), the coordinate of the representative point is defined to be (xs+2, ys+2).

[0031] In a division-free design, Equations (1) and (2) are implemented as: [0032]

[0033] For the 4-parameter affine model shown in Equation (1):

[0040] Herein, S represents the calculation precision. e.g. in VVC, S=7. In VVC, the MV used in MC for a sub-block with the top-left sample at (xs, ys) is calculated by Equation (6) with x=xs+2 and y=ys+2.

[0041] To derive motion vector of each 4×4 sub-block, the motion vector of the center sample of each sub-block, as shown in FIG.3, is calculated according to Equations (1) or (2), and rounded to 1/16 fraction accuracy. Then the motion compensation interpolation filters are applied to generate the prediction of each sub-block with derived motion vector.

[0042] Affine model can be inherited from spatial neighbouring affine-coded block such as left, above, above right, left bottom and above left neighbouring block as shown in FIG.4A. For example, if the neighbour left bottom block A in FIG.4A is coded in affine mode as denoted by A0 in FIG.4B, the Control Point (CP) motion vectors mv0N, mv1N and mv2N of the top left corner, above right corner and left bottom corner of the neighbouring CU/PU which contains the block A are fetched. And the motion vector mv0C, mv1C and mv2C (which is only used for the 6- parameter affine model) of the top left corner/top right/bottom left on the current CU/PU is calculated based on mv0N, mv1N and mv2N.

[0043] In some embodiments (e.g., VTM-2.0), sub-block (e.g.4×4 block in VTM) LT stores mv0, RT stores mv1 if the current block is affine coded. If the current block is coded with the 6- parameter affine model, LB stores mv2; otherwise (with the 4-parameter affine model), LB stores mv2’. Other sub-blocks stores the MVs used for MC. [0044] In some embodiments, when a CU is coded with affine merge mode, e.g., 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.4A.

[0045] The derived CP MVs mv0C, mv1C and mv2C of current block can be used as CP MVs in the affine merge mode. Or they can be used as MVP for affine inter mode in VVC. It should be noted that for the merge mode, if the current block is coded with affine mode, after deriving CP MVs of current block, the current block may be further split into multiple sub-blocks and each block will derive its motion information based on the derived CP MVs of current block.

2. Other Exemplary Embodiments

[0046] Different from VTM wherein only one affine spatial neighboring block may be used to derive affine motion for a block, in other embodiments, it proposes to construct a separate list of affine candidates for the AF_MERGE mode.

[0047] (1) Insert inherited affine candidates into candidate list

[0048] In an example, inherited affine candidate means that the candidate is derived from the valid neighbor reconstructed block coded with affine mode.

[0049] As shown in FIG.5, the scan order for the candidate block is A1, B1, B0, A0 and B2. When a block is selected (e.g., A1), the two-step procedure is applied:

[0050] (a) Firstly, use the three corner motion vectors of the CU covering the block to derive two/three control points of current block; and

[0051] (b) Based on the control points of current block to derive sub-block motion for each sub-block within current block.

[0052] (2) Insert constructed affine candidates

[0053] In some embodiments, if the number of candidates in affine merge candidate list is less than MaxNumAffineCand, constructed affine candidates are insert into the candidate list.

[0054] Constructed affine candidate means the candidate is constructed by combining the neighbor motion information of each control point.

[0055] The motion information for the control points is derived firstly from the specified spatial neighbors and temporal neighbor shown in FIG.5. 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. [0056] 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.

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

[0058] ○ For CP1, the checking priority is B2^B3^A2. B2 is used if it is available.

Otherwise, if B2 is unavailable, 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.

[0059] ○ For CP2, the checking priority is B1 ^B0;

[0060] ○ For CP3, the checking priority is A1 ^A0;

[0061] ○ For CP4, T is used.

[0062] Secondly, the combinations of controls points are used to construct the motion model.

[0063] Motion vectors of three control points are needed to compute the transform parameters in 6-parameter affine model. 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}). For example, use CP1, CP2 and CP3 control points to construct 6-parameter affine motion model, denoted as Affine (CP1, CP2, CP3).

[0064] Motion vectors of two control points are needed to compute the transform parameters in 4-parameter affine model. 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}). For example, use the CP1 and CP2 control points to construct 4-parameter affine motion model, denoted as Affine (CP1, CP2).

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

[0066] {CP1, CP2, CP3}, {CP1, CP2, CP4}, {CP1, CP3, CP4}, {CP2, CP3, CP4}, {CP1, CP2}, {CP1, CP3}, {CP2, CP3}, {CP1, CP4}, {CP2, CP4}, {CP3, CP4}

[0067] (3) Insert zero motion vectors

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

MaxNumAffineCand, zero motion vectors are insert into the candidate list, until the list is full. 3. Examples of advanced temporal motion vector prediction (ATMVP)

[0069] In some existing implementations (e.g., 10th JVET meeting), advanced temporal motion vector prediction (ATMVP) was included in the benchmark set (BMS)-1.0 reference software, which derives multiple motion for sub-blocks of one coding unit (CU) based on the motion information of the collocated blocks from temporal neighboring pictures. Although it improves the efficiency of temporal motion vector prediction, the following complexity issues are identified for the existing ATMVP design:

[0070] ○ The collocated pictures of different ATMVP CUs may not be the same if multiple reference pictures are used. This means the motion fields of multiple reference pictures need to be fetched.

[0071] ○ The motion information of each ATMVP CU is always derived based on 4x4 units, resulting in multiple invocations of motion derivation and motion compensation for each 4x4 sub-block inside one ATMVP CU.

[0072] Some further simplifications on ATMVP were proposed and have been adopted in VTM2.0.

3.1 Examples of simplified collocated block derivation with one fixed collocated picture [0073] In this exemplary method, one simplified design is proposed to use the same collocated picture as in HEVC, which is signaled at the slice header, as the collocated picture for ATMVP derivation. At the block level, if the reference picture of a neighboring block is different from this collocated picture, the MV of the block is scaled using the HEVC temporal MV scaling method, and the scaled MV is used in ATMVP.

[0074] Denote the motion vector used to fetch the motion field in the collocated picture Rcol as MVcol. To minimize the impact due to MV scaling, the MV in the spatial candidate list used to derive MVcol is selected in the following way: if the reference picture of a candidate MV is the collocated picture, this MV is selected and used as MVcol without any scaling. Otherwise, the MV having a reference picture closest to the collocated picture is selected to derive MVcol with scaling.

3.2 Examples of adaptive ATMVP sub-block size

[0075] In this exemplary method, it is proposed to support the slice-level adaptation of the sub-block size for the ATMVP motion derivation. Specifically, one default sub-block size that is used for the ATMVP motion derivation is signaled at sequence level. Additionally, one flag is signaled at slice-level to indicate if the default sub-block size is used for the current slice. If the flag is false, the corresponding ATMVP sub-block size is further signaled in the slice header for the slice. 4. Examples of spatial-temporal motion vector prediction (STMVP)

[0076] In the STMVP method, the motion vectors of the sub-CUs are derived recursively, following raster scan order. FIG.6 shows an example of one CU with four sub-blocks and neighboring blocks. Consider an 8×8 CU which contains four 4×4 sub-CUs A, B, C, and D. The neighbouring 4×4 blocks in the current frame are labelled as a, b, c, and d.

[0077] The motion derivation for sub-CU A starts by identifying its two spatial neighbours. The first neighbour is the N×N block above sub-CU A (block c). If this block c is not available or is intra coded the other N×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 neighbouring 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.

5. Exemplary embodiments of affine merge candidate lists

5.1 Embodiments in JVET-L0366

[0078] In the affine merge mode of VTM-2.0.1, only the first available affine neighbour can be used to derive motion information of affine merge mode. In JVET-L0366, a candidate list for affine merge mode is constructed by searching valid affine neighbours and combining the neighbor motion information of each control point.

[0079] The affine merge candidate list is constructed as following steps:

[0080] (1) Insert inherited affine candidates

[0081] 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.5, the scan order for the candidate positions is: A1, B1, B0, A0 and B2.

[0082] 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. [0083] (2) Insert constructed affine candidates

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

MaxNumAffineCand (set to 5 in this example), 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.

[0085] The motion information for the control points is derived firstly from the specified spatial neighbors and temporal neighbor shown in FIG.5. 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.

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

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

[0088] ○ For CP1, the checking priority is B2^B3^A2. B2 is used if it is available.

Otherwise, if B2 is unavailable, 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.

[0089] ○ For CP2, the checking priority is B1 ^B0;

[0090] ○ For CP3, the checking priority is A1 ^A0;

[0091] ○ For CP4, T is used.

[0092] Secondly, the combinations of controls points are used to construct the motion model.

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

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

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

[0096] {CP1, CP2, CP3}, {CP1, CP2, CP4}, {CP1, CP3, CP4}, {CP2, CP3, CP4}, {CP1, CP2}, {CP1, CP3}, {CP2, CP3}, {CP1, CP4}, {CP2, CP4}, {CP3, CP4}

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

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

[0099] (3) Padding with zero motion vectors

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

5.2 Embodiments of affine merge mode in JVET-L0368

[00101] In an existing implementation, JVET-L0368 proposes the following simplifications for the affine merge mode in JVET-L0366:

[00102] (1) The pruning process for inherited affine candidates is simplified by comparing the coding units covering the neighboring positions, instead of comparing the derived affine candidates in VTM-2.0.1. Up to 2 inherited affine candidates are inserted into affine merge list. The pruning process for constructed affine candidates is totally removed.

[00103] (2) The MV scaling operation in constructed affine candidate is removed. If the reference indices of control points are different, the constructed motion model is discarded.

[00104] (3) The number of constructed affine candidates is reduced from 10 to 6.

[00105] (4) It is also proposed that other merge candidates with sub-block prediction such as ATMVP is also put into the affine merge candidate list. In that case, the affine merge candidate list may be renamed with some other names such as sub-block merge candidate list. 6. Examples of pairwise average candidates in JVET-L0090

[00106] 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 replaces the combined candidates in HEVC standard.

7. Examples of control point motion vector (CPMV) offset in JVET-L0389

[00107] New Affine merge candidates are generated based on the CPMVs offsets of the first Affine merge candidate. If the first Affine merge candidate enables 4-parameter Affine model, then 2 CPMVs for each new Affine merge candidate are derived by offsetting 2 CPMVs of the first Affine merge candidate; Otherwise (6-parameter Affine model enabled), then 3 CPMVs for each new Affine merge candidate are derived by offsetting 3 CPMVs of the first Affine merge candidate. In Uni-prediction, the CPMV offsets are applied to the CPMVs of the first candidate. In Bi-prediction with List 0 and List 1 on the same direction, the CPMV offsets are applied to the first candidate as follows:

[00108] MVnew(L0), i = MVold(L0) + MVoffset(i)

[00109] MVnew(L1), i = MVold(L1) + MVoffset(i)

[00110] In Bi-prediction with List 0 and List 1 on the opposite direction, the CPMV offsets are applied to the first candidate as follows:

[00111] MVnew(L0), i = MVold(L0) + MVoffset(i)

[00112] MVnew(L1), i = MVold(L1) - MVoffset(i)

[00113] In this embodiment, various offset directions with various offset magnitudes are used to generate new Affine merge candidates. Two implementations were tested:

[00114] (1) 16 new Affine merge candidates with 8 different offset directions with 2 different offset magnitudes are generated as shown in the following offsets set:

[00115] Offset set = { (4, 0), (0, 4), (-4, 0), (0, -4), (-4, -4), (4, -4), (4, 4), (-4, 4), (8, 0), (0, 8), (-8, 0), (0, -8), (-8, -8), (8, -8), (8, 8), (-8, 8) }.

[00116] The Affine merge list is increased to 20 for this design. The number of potential Affine merge candidates is 31 in total.

[00117] (2) 4 new Affine merge candidates with 4 different offset directions with 1 offset magnitude are generated as shown in the following offsets set:

[00118] Offset set = { (4, 0), (0, 4), (-4, 0), (0, -4) }.

[00119] The Affine merge list is kept to 5 as VTM2.0.1 does. Four temporal constructed Affine merge candidates are removed to keep the number of potential Affine merge candidates unchanged, i.e., 15 in total. Suppose the coordinates of CPMV1, CPMV2, CPMV3 and CPMV4 are (0, 0), (W, 0), (H, 0) and (W, H). Note that CPMV4 is derived from the temporal MV as shown in FIG.5. The removed candidates are the following four temporal-related constructed Affine merge candidates: {CP2, CP3, CP4}, {CP1, CP4}, {CP2, CP4}, {CP3, CP4}.

8. Examples of multiple hypotheses for affine models

[00120] Multi-hypothesis on CPMVs. In one example, there are N (N>=2) original affine models (e.g., those affine models associated with neighboring blocks) with CPMVs (MV01, MV11, MV21)… (MV0N, MV1N, MV2N). A combined affine model with CPMVs (MV’0, MV’1, MV’2) can be derived from those affine models and the current block is predicted by the new affine model. (MV0, MV1, MV2) represents the CPMV at the top-left corner, the top-right corner and bottom- left corner respectively. In the following discussion, MV is 2-dimension vector noted as (MVx, MVy). MV1+MV2=MV3 means MV1x+MV2x=MV3x and MV1y+MV2y=MV3y.

k×MV1=MV2 means k×MV1x=MV2x and k×MV1y=MV2y.

[00121] For example, CPMVs of an original affine model may be derived from an affine- coded spatial or temporal neighboring block for the current block.

[00122] In one example, CPMVs of affine models derived from some affine-coded spatial neighboring block are not used to derive the new affine model to be used by the current block.

[00123] For example, CPMVs of an original affine model may be derived from a constructed affine model such as proposed in JVET-K0186.

[00124] In one example, CPMVs of some constructed affine models are not used to derive the new affine model to be used by the current block.

[00125] For example, (MV’0, MV’1, MV’2) = (F0(MV01,…, MV0N), F1(MV11,…, MV1N), F2(MV21,…, MV2N)), where F0, F1 and F2 are functions.

[00126] In one example, Fi may be defined to be average function.

[00127] For example, (MV’0, MV’1, MV’2) = (Average(MV01,…, MV0N), Average(MV11,…, MV1N), Average(MV21,…, MV2N)).

[00128] For example, (MV’0, MV’1, MV’2) = (å ே ^^^ ^

^ୀ^ ^ ^^ ^^^ ¤ å ே

^ୀ^ ^^^

^ , åே ^^^

^ ^^ ^^^

^ୀ ^ ¤ ே

^ å^ୀ^ ^^^

^ , åே ^^ଶ ଶ

^ୀ^ ^ ^^ ^^^ ¤ åே ^^ଶ

^ୀ^ ^ ).

[00129] In one example, (MV’0, MV’1, MV’2) = (Normalize(å ே ^^^

^ୀ^ ^ ^^ ^^^

^ ,P0),

Normalize(åே ^^^

^ୀ^ ^ ^^ ^^^

^ , P1), Normalize(åே ^^ଶ

^ୀ^ ^ ^^ ^^ଶ

^ , P2)), where å ே ^^^ ^ ே

^ୀ^ ^ = 2^ , å^ୀ^ ^^^

^ =

[00130] In one example,

[00131] In one example,

[00132] In one example, some CPMVs may not exist. For example, MV2i does not exist, then ^^ଶ

^ is set to be 0.

[00133] In one example, only original affine models with 4 parameters are used to derive the CPMVs of the combined affine model.

[00134] In one example, only original affine models with 6 parameters are used to derive the CPMVs of the combined affine model.

[00135] In one example, an original affine model with 4 parameters are first converted into an affine model with 6-paramter before being used to derive the CPMVs of the combined affine model.

[00136] A 4-parameter affine model with two CPMVs (MV0k, MV1k) can be converted a 6-parameter affine model with three CPMVs (MV0k, MV1k, MV2k) where MV2k can be derived by Equation (1) with x=0 and y=h where h is the height of the affine-coded block with the 4- parameter affine model.

[00137] I l DiffMV’1 MV’1 MV’0 d DiffMV’2 MV’2 MV’0 b d i d

DiffMV’1, MV’0+ DiffMV’2) is treated as the CPMVs of the combined affine model.

[00144] For example, DiffMV’1 and/or DiffMV’2 is derived by combining two affine coded spatial neighboring blocks. MV’0 is copied or scaled from block A2 or block B2 or block B3 in FIG.5.

[00145] In one example, only original CPMVs referring to the same reference picture can be combined.

[00146] Alternatively, CPMVs referring to different reference pictures should be scaled to the same reference picture before being combined.

[00147] More than one combined affine models can be derived and serve as affine MVP candidates or merge candidates

[00148] In one example, affine parameters or CPMVs of each two affine coded spatial neighboring blocks are combined to generate a combined candidate with the affine parameters or CPMVs of a new affine model, and this combined affine model is added into the affine MVP candidate list or affine merge list.

[00149] In another example, temporary predictions generated from the affine models of each two affine coded spatial neighboring blocks are combined to generate the combined candidate with the combined prediction.

[00150] The combined candidate may be put into the candidate list after normal affine AMVP or merge candidates inherited from spatial neighboring blocks.

[00151] The number of combined candidate put into the candidate list cannot exceed a fixed number such as 5.

[00152] Multiple-hypothesis on affine prediction. In some embodiments, N (N³2) temporary predictions for the current block may be firstly generated by N affine models, and the final prediction can be a combination of the temporary predictions. Suppose the N original predictions for the current block are denoted as P1(x,y),….,PN(x,y). The final prediction is denoted as P’(x,y).

[00153] (a) For example, P’(x,y)= Fx,y(P1(x,y),….,PN(x,y)), Fx,y is a bundle of functions depending on the sample position (x,y).

[00154] (b) For example, ’

[00155] (c) For example,

[00156] (d) For example, Normaliz

[00157] [00159]

[00160] (h) In one example, P1(x,y),….,PN(x,y) should be generated by affine models referring to the same reference picture.

[00161] (i) Alternatively, P1(x,y),….,PN(x,y) should be generated by affine models referring to reference pictures in the same reference list.

[00162] (j) In one example, P1(x,y) and P2(x,y) cannot be combined to as a combined candidate if they are the two predictions referring to reference list 0 and reference list 1 of a bi- prediction candidate already in the candidate list.

9. Drawbacks of existing methods for combined affine merge candidates

[00163] In some existing implementations, pairwise average candidate is only applied on normal merge candidate list.

[00164] In other existing implementations, multiple hypotheses for affine models are not applied to the affine merge candidate list.

10. Exemplary methods for combined affine merge candidates in video coding

[00165] Embodiments of the disclosed technology inherit the 6-parameter affine model with reduced memory requirements, and may improve video coding efficiency and enhance both existing and future video coding standards is elucidated in the following examples described for various implementations. In the following examples, which should not be construed to be limiting, the coordinate of the top-left corner/top-right corner/bottom-left corner/bottom-right corner of the affine coded above or left neighboring CU are (LTNx, LTNy)/(RTNx,

RTNy)/(LBNx, LBNy)/(RBNx, RBNy), respectively; the coordinate of the top-left corner/top- right corner/bottom-left corner/bottom-right corner of the current CU are (LTCx,LTCy)/(RTCx, RTCy)/(LBCx, LBCy)/(RBCx, RBCy), respectively; the width and height of the affine coded above or left neighboring CU are w’ and h’, respectively; the width and height of the affine coded current CU are w and h, respectively.

[00166] Furthermore, MV is 2-dimension vector noted as (MVx, MVy). MV1+MV2=MV3 means MV1x+MV2x=MV3x and MV1y+MV2y=MV3y. k×MV1=MV2 means k×MV1x=MV2x and k×MV1y=MV2y. Average(MV1, MV2)=((MV1x+MV2x)>>1, (MV1y+MV2y)>>1) or Average(MV1, MV2)=((MV1x+MV2x+1)>>1, (MV1y+MV2y+1)>>1).

[00167] Although the following examples are described in the context of an“affine merge candidate list,” they are equally applicable to other merge candidate lists, e.g.“sub-block merge candidate list” when other kinds of sub-block merge candidate such as ATMVP candidate is also put into the merge candidate list.

[00168] Example 1. In some embodiments, X (e.g. X= 6) combined affine merge candidates are put into the affine merge candidate list.

[00169] (a) In one example, the combined affine merge candidates are put into the affine merge candidate list right after the neighboring inherited affine merge candidates have been put into the list.

[00170] (b) Alternatively, the combined affine merge candidates are put into the affine merge candidate list right after the constructed affine merge candidates have been put into the list.

[00171] Example 2. Suppose there are N (N>=2) affine merge candidates already in the affine candidate list with CPMVs (MV01, MV11, MV21)… (MV0N, MV1N, MV2N). It should be noted that MV0S may be derived from MV1S and MV2S if the affine merge candidate S utilizes the 4- parameter model. In the following discussion, C1, C2…CK represents the indices of K affine merge candidate.

[00172] (a) In one example, the affine model of a combined affine merge candidate is generated as a multiple-hypothesis affine model.

[00173] (i) A combined affine model with CPMVs (MV’0, MV’1, MV’2) can be derived from affine models of M (such as 2) affine merge candidates in the first K (such as 4) affine merge candidates already in the affine merge candidate list.

[00174] (ii) A combined affine model with CPMVs (MV’0, MV’1, MV’2) can be derived from affine models of M (such as 2) affine merge candidates in the last K (such as 4) affine merge candidates already in the affine merge candidate list.

[00175] (iii) In one example, a combined affine merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C1,MV0C2), Average(MV1C1, MV1C2), Average(MV2C1, MV2C2)). Alternatively, (MV’0, MV’1) = (Average(MV0C1,MV0C2), Average(MV1C1, MV1C2)) and the current block applies the 4-parameter affine model.

[00176] (iv) In one example, DiffMVC11= MV C11-MV C10 and DiffMVC12= MV C12-MV C10, DiffMVC21= MV C21-MV C20 and DiffMVC22= MV C22-MV C20. Then (MV’0, MV’1, MV’2) = (MV0C1, MV0C1+ Average(DiffMVC11, DiffMVC21), MV0C1+ Average(DiffMVC12, DiffMVC22)). Alternatively, (MV’0, MV’1) = (MV0C1, MV0C1+ Average(DiffMVC11, DiffMVC21)) and the current block applies the 4-parameter affine model.

[00177] (v) In one example, DiffMVC11= MV C11-MV C10 and DiffMVC12= MV C12- MV C10, DiffMVC21= MV C21-MV C20 and DiffMVC22= MV C22-MV C20. Then (MV’0, MV’1, MV’2) = (MV0C3, MV0C3+ Average(DiffMVC11, DiffMVC21), MV0C3+ Average(DiffMVC12, DiffMVC22)). Alternatively, (MV’0, MV’1) = (MV0C3, MV0C3+ Average(DiffMVC11, DiffMVC21)) and the current block applies the 4-parameter affine model.

[00178] (vi) In one example, DiffMVC11= MVC11-MVC10 and DiffMVC12= MVC12- MVC10. Then (MV’0, MV’1, MV’2) = (Average(MV0C1, MV0C2), Average(MV0C1,

MV0C2)+DiffMVC11, Average(MV0C1, MV0C2)+ DiffMVC12). Alternatively, (MV’0, MV’1) = (Average(MV0C1, MV0C2), Average(MV0C1, MV0C2)+DiffMVC11, and the current block applies the 4-parameter affine model.

[00179] (vii) In one example, DiffMVC11= MVC11-MVC10 and DiffMVC12= MVC12- MVC10. Then (MV’0, MV’1, MV’2) = (Average(MV0C2, MV0C3), Average(MV0C2,

MV0C3)+DiffMVC11, Average(MV0C2, MV0C3)+ DiffMVC12). Alternatively, (MV’0, MV’1) = (Average(MV0C2, MV0C3), Average(MV0C2, MV0C3)+DiffMVC11, and the current block applies the 4-parameter affine model.

[00180] (viii) If (MV0C1, MV1C1, MV2C1) and (MV0C2, MV1C2, MV2C2) refers to different reference pictures then:

[00181] (1) For example, they are scaled to the same reference picture before the combination process. The same reference picture can be one of the two different reference pictures, such as the one with a smaller reference index or the one with a smaller POC distance to the current picture, or it can be a fixed reference picture such as the reference picture with reference index equal to 0.

[00182] (2) Alternatively, they are combined without any scaling.

[00183] (3) Alternatively, they cannot be combined.

[00184] (ix) Several pairs of C1, C2 can be used to derive the combined affine merge candidates with one or some methods above, and these candidates are put into the affine merge candidate list in a predefined order. For example, pairs {(0, 1), (0, 2), (1, 2), (0, 3), (1, 3), (2, 3)} are used to derive the combined affine merge candidates and then put into the affine merge candidate list in order.

[00185] (1) If one candidate with a index in a pair is not available, then this pair is skipped and not to derive a combined affine merge candidate.

[00186] (2) If one candidate with an index in a pair is a combined affine merge candidate, then this pair is skipped and not to derive a combined affine merge candidate.

[00187] (3) If one candidate with an index in a pair is a constructed affine merge candidate, then this pair is skipped and not to derive a combined affine merge candidate.

[00188] (4) If one candidate with an index in a pair is an ATMVP (or a spatial TMVP) merge candidate, then this pair is skipped and not to derive a combined affine merge candidate.

[00189] (5) If one candidate with an index in a pair is a zero affine merge candidate, then this pair is skipped and not to derive a combined affine merge candidate.

[00190] (x) Several groups of C1, C2 and C3 can be used to derive the combined affine merge candidates with one or some methods above, and these candidates are put into the affine merge candidate list in a predefined order. For example, groups {(0, 1, 2), (1, 2, 3), (0, 1, 3), (0, 2, 3), (1, 0, 2), (1, 0, 3)} are used to derive the combined affine merge candidates and then put into the affine merge candidate list in order.

[00191] (1) If one candidate with an index in a group is not available, then this pair is skipped and not to derive a combined affine merge candidate.

[00192] (2) If one candidate with an index in a group is a combined affine merge candidate, then this pair is skipped and not to derive a combined affine merge candidate.

[00193] (3) If one candidate with an index in a group is a constructed affine merge candidate, then this pair is skipped and not to derive a combined affine merge candidate.

[00194] (4) If one candidate with an index in a group is an ATMVP (or a spatial TMVP) merge candidate, then this pair is skipped and not to derive a combined affine merge candidate.

[00195] (5) If one candidate with an index in a group is a zero affine merge candidate, then this pair is skipped and not to derive a combined affine merge candidate.

[00196] (xi) The combined affine merge candidates may be generated with any other methods, such as the multiple-hypothesis on affine prediction methods. [00197] Example 3. In one example, a combined affine merge candidate is compared with existing affine merge candidates already in the list. If it is identical to an existing one, then it is not put into the list. The procedure is called“pruning”. Alternatively, a combined affine merge candidate is not compared with existing affine merge candidates. In other words, no pruning process.

[00198] Example 4. In one example, whether to and how to generate the combined affine merge candidate may depend on the inter directions (List 0 prediction, List 1 prediction, or Bi- prediction) of the affine merge candidates X0 and X1, which are used to generate the combined affine merge candidate.

[00199] (a) In one example, if X0 applies List 0 prediction and X1 applies List 1 prediction, then the combined affine merge candidate will apply Bi-prediction, with CPMVs in List 0 equal to CPMVs of X0 and CPMVs in List 1 equal to CPMVS of X1.

[00200] (b) In one example, if X0 applies List 1 prediction and X1 applies List 0 prediction, then the combined affine merge candidate will apply Bi-prediction, with CPMVs in List 0 equal to CPMVs of X1 and CPMVs in List 1 equal to CPMVS of X0.

[00201] (c) In one example, if X0 applies List 0 prediction and X1 applies List 0 prediction, then the combined affine merge candidate will apply List 0 prediction, with CPMVs in List 0 equal to a combination of CPMVs of X0 and CPMVs of X1 with a combining method as described in Example 2.

[00202] (d) In one example, if X0 applies List 0 prediction and X1 applies List 0 prediction, then the combined affine merge candidate will apply Bi-prediction, with CPMVs in List 0 equal to CPMVs of X0 and CPMVs of X1 with a combining method as described in Example 2.

[00203] (e) In one example, if X0 applies List 1 prediction and X1 applies List 1 prediction, then the combined affine merge candidate will apply List 1 prediction, with CPMVs in List 1 equal to a combination of CPMVs of X0 and CPMVs of X1 with a combining method as described in Example 2.

[00204] (f) In one example, if X0 applies List 0 prediction and X1 applies Bi prediction, then the combined affine merge candidate will apply Bi-prediction, with CPMVs in List 0 equal to a combination of CPMVs of X0 and CPMVs in List 0 of X1 with a combining method as described in Example 2, and CPMVs in List 1 equal to CPMVs in List 1 of X1. [00205] (g) In one example, if X0 applies List 1 prediction and X1 applies Bi prediction, then the combined affine merge candidate will apply Bi-prediction, with CPMVs in List 1 equal to a combination of CPMVs of X0 and CPMVs in List 1 of X1 with a combining method as described in Example 2, and CPMVs in List 0 equal to CPMVs in List 0 of X1.

[00206] (h) In one example, if X1 applies List 0 prediction and X0 applies Bi prediction, then the combined affine merge candidate will apply Bi-prediction, with CPMVs in List 0 equal to a combination of CPMVs of X1 and CPMVs in List 0 of X0 with a combining method as described in Example 2, and CPMVs in List 1 equal to CPMVs in List 1 of X0.

[00207] (i) In one example, if X1 applies List 1 prediction and X0 applies Bi prediction, then the combined affine merge candidate will apply Bi-prediction, with CPMVs in List 1 equal to a combination of CPMVs of X1 and CPMVs in List 1 of X0 with a combining method as described in Example 2, and CPMVs in List 0 equal to CPMVs in List 0 of X0.

[00208] FIG.7 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.7, 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.”

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

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

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

[00212] FIG.8 shows a block diagram of an example embodiment of a mobile 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.

[00213] The examples described above may be incorporated in the context of the methods described below, e.g., method 900, which may be implemented at a video decoder/encoder.

[00214] FIG.9 shows a flowchart of an exemplary method for video coding. The method 900 includes, at step 910, generating, for a bitstream representation of a current block, an updated merge candidate list by adding at least one combined merge candidate to a merge candidate list. In some embodiments, the at least one combined merge candidate may include one or more combined affine merge candidates.

[00215] In some embodiments, the at least one combined merge candidate is added to a first merge candidate list that includes sub-block prediction based merge candidates like affine or ATMVP merge candidates. The first merge candidate list is different from a second merge candidate list that includes normal merge candidates (e.g., HEVC merge candidates). In other words, the at least one combined merge candidate may be stored separately from normal HEVC merge candidates, and along with other sub-block prediction based merge candidates.

[00216] In some embodiments, and in the context of Example 1, the method 900 further includes the step of adding, immediately prior to the generating, one or more neighboring inherited affine merge candidates to the merge candidate list.

[00217] In some embodiments, and in the context of Example 1, the method 900 further includes the step of adding, immediately prior to the generating, one or more constructed affine merge candidates to the merge candidate list.

[00218] In the following embodiments and examples, which are described in the context of Example 2, the merge candidate list comprises N ³ 2 affine merge candidates.

[00219] In some embodiments, the at least one combined merge candidate is based on M of the N affine merge candidates, wherein the M of the N affine merge candidates are selected from a first K of the N affine merge candidates, and wherein M and K are integers.

[00220] In some embodiments, the at least one combined merge candidate is based on M of the N affine merge candidates, wherein the M of the N affine merge candidates are selected from a last K of the N affine merge candidates, and wherein M and K are integers.

[00221] In an example, M = 2 and K = 4.

[00222] In some embodiments, the at least one combined merge candidate comprises a first combined merge candidate with control point motion vectors (CPMVs) denoted (MV'0, MV'1, MV'2), and wherein the N affine merge candidates comprise a first affine merge candidate with CPMVs denoted (MV0C1, MV1C1, MV2C1) and a second affine merge candidate with CPMVs denoted (MV0C2, MV1C2, MV2C2). In one example, MV'0 = Average(MV0C1, MV0C2), MV'1 = Average(MV1C1, MV1C2) and MV'2 = Average(MV2C1, MV2C2). In another example, MV'0 = MV0C1, MV'1 = MV0C1+ Average(DiffMVC11, DiffMVC21) and MV'2 = MV0C1+ Average(DiffMVC12, DiffMVC22), wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12-MVC10, DiffMVC21 = MVC21-MVC20 and DiffMVC22 = MV C22-MV C20.

[00223] In some embodiments, the first affine merge candidate is associated with a first reference picture, and the second affine merge candidate is associated with a second reference picture that is different from the first reference picture.

[00224] In some embodiments, and in the context of Example 3, the step of generating the updated merge candidate list may further include determining that a first combined merge candidate of the at least one combined merge candidate is not identical to any merge candidate in the merge candidate list, and adding the first combined merge candidate to the merge candidate list.

[00225] In some embodiments, and in the context of Example 3, the method 900 may include the steps of determining that a second combined merge candidate of the at least at least one combined merge candidate is identical to at least one merge candidate in the merge candidate list, and excluding the second combined merge candidate from the merge candidate list.

[00226] In some embodiments, and in the context of Example 4, the method 900 may further include generating, based on inter directions of two affine merge candidates in the merge candidate list, the at least one combined merge candidate.

[00227] The method 900 includes, at step 920, performing, based on the updated merge candidate list, a conversion between the bitstream representation and the current block. In some embodiments, the conversion generates the current block from the bitstream representation (e.g., as might be implemented in a video decoder). In other embodiments, the conversion generates the bitstream representation from the current block (e.g., as might be implemented in a video encoder).

[00228] FIG.10 is a flowchart representation of a method 1000 of video coding. The method 1000 includes generating (1010), during a conversion between a current block of video and a bitstream representation of the current block, an updated merge candidate list by adding at least one combined merge candidate to a first merge candidate list; and performing (1020), the conversion by using the updated merge candidate list.

[00229] In some embodiments, the first merge candidate list comprises one or more sub-block prediction based merge candidates.

[00230] In some embodiments, the one or more sub-block prediction based merge candidates comprise affine merge candidates or advanced temporal motion vector prediction (ATMVP) merge candidates.

[00231] In some embodiments, the conversion generates the current block from the bitstream representation.

[00232] In some embodiments, the conversion generates the bitstream representation from the current block.

[00233] In some embodiments, the at least one combined merge candidate comprises one or more combined affine merge candidates.

[00234] In some embodiments, the method further comprising: immediately after adding one or more neighboring inherited affine merge candidates to the first merge candidate list, adding the at least one combined merge candidate to the first merge candidate list.

[00235] In some embodiments, the method further comprising: immediately after adding one or more constructed affine merge candidates to the first merge candidate list , adding the at least one combined merge candidate to the first merge candidate list.

[00236] In some embodiments, the first merge candidate list includes a first affine merge candidate list comprising multiple affine merge candidates with control point motion vectors, and a combined affine model with control point motion vectors (CPMVs) of the at least one combined merge candidate are derived based on the multiple affine merge candidates.

[00237] In some embodiments, the combined affine model with control point motion vectors (CPMVs) of the at least one combined merge candidate is derived from affine models of M affine merge candidates in K affine merge candidates, wherein the K affine merge candidates are the first K affine merge candidates of the multiple affine merge candidates in the first affine merge candidate list, and wherein M and K are integers, K is larger or equal to M.

[00238] In some embodiments, a combined affine model with control point motion vectors (CPMVs) of the at least one combined merge candidate is derived from affine models of M affine merge candidates in K affine merge candidates, wherein the K affine merge candidates are the last K affine merge candidates prior to the at least one combined merge candidate in the first affine merge candidate list, and wherein M and K are integers, K is larger or equal to M.

[00239] In some embodiments, when the current block applies a 6-parameter affine model, the at least one combined merge candidate comprises a first combined merge candidate with control point motion vectors (CPMVs) denoted (MV'0, MV'1, MV'2), and wherein the multiple affine merge candidates comprise a first affine merge candidate with CPMVs denoted (MV0C1, MV1C1, MV2C1) and a second affine merge candidate with CPMVs denoted (MV0C2, MV1C2, MV2C2) and/or a third affine merge candidate with CPMVs denoted (MV0C3, MV1C3, MV2C3), C1, C2, C3 represents the indices of the multiple affine merge candidate.

[00240] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C1,MV0C2), Average(MV1C1, MV1C2), Average(MV2C1, MV2C2)), and wherein Average(A, B) is an average of A and B.

[00241] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (MV0C1, MV0C1+ Average(DiffMVC11, DiffMVC21), MV0C1+ Average(DiffMVC12, DiffMVC22)), wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12-MVC10, DiffMVC21 = MVC21-MVC20 and DiffMVC22 = MV C22-MV C20, and wherein Average(A, B) is an average of A and B.

[00242] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (MV0C3, MV0C3+ Average(DiffMVC11, DiffMVC21), MV0C3+ Average(DiffMVC12, DiffMVC22)), wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12-MVC10, DiffMVC21 = MVC21-MVC20 and DiffMVC22 = MV C22-MV C20, and wherein Average(A, B) is an average of A and B.

[00243] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C1, MV0C2), Average(MV0C1, MV0C2)+DiffMVC11, Average(MV0C1, MV0C2)+ DiffMVC12), and wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12-MVC10 and Average(A, B) is an average of A and B.

[00244] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C2, MV0C3), Average(MV0C2, MV0C3)+DiffMVC11, Average(MV0C2, MV0C3)+ DiffMVC12), wherein DiffMVC11 = MVC11-MVC10 and DiffMVC12 = MVC12-MVC10 and Average(A, B) is an average of A and B.

[00245] In some embodiments, when the current block applies a 4-parameter affine model, the at least one combined merge candidate comprises a first combined merge candidate with control point motion vectors (CPMVs) denoted (MV'0, MV'1), and wherein the multiple affine merge candidates comprise a first affine merge candidate with CPMVs denoted (MV0C1, MV1C1) and a second affine merge candidate with CPMVs denoted (MV0C2, MV1C2) and/or a third affine merge candidate with CPMVs denoted (MV0C3, MV1C3, MV2C3), C1, C2, C3 represents the indices of the multiple affine merge candidate.

[00246] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1) = (Average(MV0C1,MV0C2), Average(MV1C1, MV1C2)), and wherein Average(A, B) is an average of A and B.

[00247] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1) = (MV0C1, MV0C1+ Average(DiffMVC11, DiffMVC21)), wherein DiffMVC11 = MVC11-MVC10, DiffMVC21 = MVC21-MVC20, and wherein Average(A, B) is an average of A and B.

[00248] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1) = (MV0C3, MV0C3+ Average(DiffMVC11, DiffMVC21)), wherein DiffMVC11 = MVC11-MVC10, DiffMVC21 = MVC21-MVC20, and wherein Average(A, B) is an average of A and B.

[00249] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1) = (Average(MV0C1, MV0C2), Average(MV0C1, MV0C2)+DiffMVC11), and wherein

DiffMVC11 = MVC11-MVC10 and Average(A, B) is an average of A and B.

[00250] In some embodiments, the at least one combined merge candidate is derived as (MV’0, MV’1, MV’2) = (Average(MV0C2, MV0C3), Average(MV0C2, MV0C3)+DiffMVC11), wherein

DiffMVC11 = MVC11-MVC10 and Average(A, B) is an average of A and B.

[00251] In some embodiments, the CPMVs of the first affine merge candidate are associated with a first reference picture, and wherein the CPMVs of the second affine merge candidate are associated with a second reference picture that is different from the first reference picture. [00252] In some embodiments, the CPMVs of the first affine merge candidate and the CPMVs of the second affine merge candidate are scaled to same reference picture before they are combined, wherein the same reference picture is one of the first reference picture and the second reference picture or a fixed reference picture.

[00253] In some embodiments, the CPMVs of the first affine merge candidate and the CPMVs of the second affine merge candidate are combined without any scaling.

[00254] In some embodiments, the CPMVs of the first affine merge candidate and the CPMVs of the second affine merge candidate cannot be combined.

[00255] In some embodiments, the at least one combined merge candidate is derived by using pairs of affine merge candidates of the multiple affine merge candidates, and the at least one combined merge candidate is put into the first affine merge candidate list in a predetermined order.

[00256] In some embodiments, if one affine merge candidate with an index in a pair of affine merge candidates is not available, or if one affine merge candidate with an index in a pair of affine merge candidates is a combined affine merge candidate, or if one affine merge candidate with an index in a pair of affine merge candidates is a constructed affine merge candidate, or if one affine merge candidate with an index in a pair of affine merge candidates is an advanced temporal motion vector prediction (ATMVP) merge candidate, or if one affine merge candidate with an index in a pair of affine merge candidates is a zero affine merge candidate, this pair is skipped and not used to derive the at least one combined affine merge candidate.

[00257] In some embodiments, the at least one combined merge candidate is derived by using groups of affine merge candidates of the multiple affine merge candidates, and the at least one combined merge candidate is put into the first affine merge candidate list in a predetermined order.

[00258] In some embodiments, if one affine merge candidate with an index in a group of affine merge candidates is not available, or if one affine merge candidate with an index in a group of affine merge candidates is a combined affine merge candidate, or if one affine merge candidate with an index in a group of affine merge candidates is a constructed affine merge candidate, or if one affine merge candidate with an index in a group of affine merge candidates is an advanced temporal motion vector prediction (ATMVP) merge candidate, or if one affine merge candidate with an index in a group of affine merge candidates is a zero affine merge candidate, this group is skipped and not used to derive the at least one combined affine merge candidate.

[00259] In some embodiments, the generating the updated merge candidate list comprises: determining whether a first combined merge candidate of the at least at least one combined merge candidate is identical to any merge candidate in the first merge candidate list; if no, adding the first combined merge candidate to the first merge candidate list, and if yes, discarding the first combined merge candidate.

[00260] In some embodiments, the method further comprising: generating, based on inter directions of a first affine merge candidate and a second affine merge candidate in the first merge candidate list, the at least one combined merge candidate.

[00261] In some embodiments, if the first affine merge candidate applies List 0 prediction and the second affine merge candidate applies List 1 prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to CPMVs of the first affine merge candidate and CPMVs in List 1 equal to CPMVS of the second affine merge candidate.

[00262] In some embodiments, if the first affine merge candidate applies List 1 prediction and the second affine merge candidate applies List 0 prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to CPMVs of the second affine merge candidate and CPMVs in List 1 equal to CPMVS of the first affine merge candidate.

[00263] In some embodiments, if the first affine merge candidate applies List 0 prediction and the second affine merge candidate applies List 0 prediction, the at least one combined affine merge candidate applies List 0 prediction, with CPMVs in List 0 equal to a combination of CPMVs of the first affine merge candidate and CPMVs of the second affine merge candidate.

[00264] In some embodiments, if the first affine merge candidate applies List 0 prediction and the second affine merge candidate applies List 0 prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to a combination of CPMVs of the first affine merge candidate and CPMVs of the second affine merge candidate.

[00265] In some embodiments, if the first affine merge candidate applies List 1 prediction and the second affine merge candidate applies List 1 prediction, the at least one combined affine merge candidate applies List 1 prediction, with CPMVs in List 1 equal to a combination of CPMVs of the first affine merge candidate and CPMVs of the second affine merge candidate.

[00266] In some embodiments, if the first affine merge candidate applies List 0 prediction and the second affine merge candidate applies Bi prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to a combination of CPMVs in List 0 of the first affine merge candidate and CPMVs in List 0 of the second affine merge candidate, and CPMVs in List 1 equal to CPMVs in List 1 of the second affine merge candidate.

[00267] In some embodiments, if the first affine merge candidate applies List 1 prediction and the second affine merge candidate applies Bi prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 1 equal to a combination of CPMVs in List 1 of the first affine merge candidate and CPMVs in List 1 of the second affine merge candidate, and CPMVs in List 0 equal to CPMVs in List 0 of the second affine merge candidate.

[00268] In some embodiments, if the second affine merge candidate applies List 0 prediction and the first affine merge candidate applies Bi prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 0 equal to a combination of CPMVs in List 0 of the second affine merge candidate and CPMVs in List 0 of the first affine merge candidate, and CPMVs in List 1 equal to CPMVs in List 1 of the first affine merge candidate.

[00269] In some embodiments, if the second affine merge candidate applies List 1 prediction and the first affine merge candidate applies Bi prediction, the at least one combined affine merge candidate applies Bi-prediction, with CPMVs in List 1 equal to a combination of CPMVs in List 1 of the second affine merge candidate and CPMVs in List 1 of the first affine merge candidate, and CPMVs in List 0 equal to a combination of CPMVs in List 0 of the first affine merge candidate and CPMVs in List 0 of the second affine merge candidate.

[00270] In some embodiments, the first merge candidate list is an affine merge candidate list or a sub-block merge candidate list.

[00271] FIG.11 shows an example block diagram of a typical HEVC video encoder and decoder 1100. An encoding algorithm producing an HEVC compliant bitstream would typically proceed as follows. Each picture is split into block-shaped regions, with the exact block partitioning being conveyed to the decoder. The first picture of a video sequence (and the first picture at each clean random access point into a video sequence) is coded using only intra- picture prediction (that uses some prediction of data spatially from region-to-region within the same picture, but has no dependence on other pictures). For all remaining pictures of a sequence or between random access points, inter-picture temporally predictive coding modes are typically used for most blocks. The encoding process for inter-picture prediction consists of choosing motion data comprising the selected reference picture and motion vector (MV) to be applied for predicting the samples of each block. The encoder and decoder generate identical inter-picture prediction signals by applying motion compensation (MC) using the MV and mode decision data, which are transmitted as side information.

[00272] The residual signal of the intra- or inter-picture prediction, which is the difference between the original block and its prediction, is transformed by a linear spatial transform. The transform coefficients are then scaled, quantized, entropy coded, and transmitted together with the prediction information.

[00273] The encoder duplicates the decoder processing loop (see gray-shaded boxes in FIG. 11) such that both will generate identical predictions for subsequent data. Therefore, the quantized transform coefficients are constructed by inverse scaling and are then inverse transformed to duplicate the decoded approximation of the residual signal. The residual is then added to the prediction, and the result of that addition may then be fed into one or two loop filters to smooth out artifacts induced by block-wise processing and quantization. The final picture representation (that is a duplicate of the output of the decoder) is stored in a decoded picture buffer to be used for the prediction of subsequent pictures. In general, the order of encoding or decoding processing of pictures often differs from the order in which they arrive from the source; necessitating a distinction between the decoding order (e.g., bitstream order) and the output order (e.g., display order) for a decoder.

[00274] Video material to be encoded by HEVC is generally expected to be input as progressive scan imagery (either due to the source video originating in that format or resulting from deinterlacing prior to encoding). No explicit coding features are present in the HEVC design to support the use of interlaced scanning, as interlaced scanning is no longer used for displays and is becoming substantially less common for distribution. However, a metadata syntax has been provided in HEVC to allow an encoder to indicate that interlace-scanned video has been sent by coding each field (i.e., the even or odd numbered lines of each video frame) of interlaced video as a separate picture or that it has been sent by coding each interlaced frame as an HEVC coded picture. This provides an efficient method of coding interlaced video without burdening decoders with a need to support a special decoding process for it.

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

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

[00277] 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).

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

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

[00280] 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. [00281] 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.