The present invention relates to video coding. In particular, the present invention relates to derivation of motion vector predictor (MVP) candidate set for High Efficiency Video Coding (HEVC).
High-Efficiency Video Coding (HEVC) is a new international video coding standard that is being developed by the Joint Collaborative Team on Video Coding (JCT-VC). HEVC is based on the hybrid block-based motion-compensated DCT-like transform coding architecture. The basic unit for compression, termed Coding Unit (CU), is a 2N×2N square block, and each CU can be recursively split into four smaller CUs until a predefined minimum size is reached. Each CU contains one or multiple Prediction Units (PUs). The PU sizes can be 2N×2N, 2N×N, 2N×nU, 2N×nD, N×2N, nL×2N, nR×2N, or N×N, where 2N×N, 2N×nU, 2N×nD and N×2N, nL×2N, nR×2N correspond to horizontal and vertical partition of a 2N×2N PU with symmetric or asymmetric PU size division respectively.
To further increase the coding efficiency of motion vector coding in HEVC, the motion vector competition (MVC) based scheme is applied to select one motion vector predictor (MVP) among a given MVP candidate set which includes spatial and temporal MVPs. There are three inter-prediction modes including Inter, Skip, and Merge in the HEVC test model version 3.0 (HM-3.0). The Inter mode performs motion-compensated prediction with transmitted Motion Vector Differences (MVDs) that can be used together with MVPs for deriving motion vectors (MVs). The Skip and Merge modes utilize motion inference methods (MV=MVP+MVD where MVD is zero) to obtain the motion information from spatial neighboring blocks (spatial candidates) or temporal blocks (temporal candidates) located in a co-located picture. The co-located picture is the first reference picture in list 0 or list 1 , which is signaled in the slice header.
When a PU is coded in either Skip or Merge mode, no motion information is transmitted except for the index of the selected candidate. In the case of a Skip PU, the residual signal is also omitted. For the Inter mode in HM-3.0, the Advanced Motion Vector Prediction (AMVP) scheme is used to select a motion vector predictor among an AMVP candidate set including two spatial MVPs and one temporal MVP. As for the Merge and Skip mode in HM-3.0, the Merge scheme is used to select a motion vector predictor among a Merge candidate set containing four spatial MVPs and one temporal MVP.
For the Inter mode, the reference picture index is explicitly transmitted to the decoder. The MVP is then selected among the candidate set for a given reference picture index.
A temporal predictor is derived from a block (TBR or TCTR) in a co-located picture, where the co-located picture is the first reference picture in list 0 or list 1. The block associated with the temporal MVP may have two MVs: one MV from list 0 and one MV from list 1. The temporal MVP is derived from the MV from list 0 or list 1 according to the following rule:
In HM-3.0, if a particular block is encoded in the Merge mode, an MVP index is signaled to indicate which MVP among the MVP candidate set is used for this block to be merged. To follow the essence of motion information sharing, each merged PU reuses the MV, prediction direction, and reference picture index of the selected candidate. It is noted that if the selected MVP is a temporal MVP, the reference picture index is always set to the first reference picture.
In HM-3.0, a process is utilized in both Inter and Merge modes to avoid an empty candidate set. The process adds a candidate with a zero MV to the candidate set when no candidate can be inferred in the Inter, Skip or Merge mode.
Based on the rate-distortion optimization (RDO) decision, the encoder selects one final MVP for Inter, Skip, or Merge modes from the given MVP list and transmits the index of the selected MVP to the decoder after removing redundant MVPs in the list. However, because the temporal MVP is included in the MVP list, any transmission error may cause parsing errors at the decoder side and the error may propagate. When an MV of a previous picture is decoded incorrectly, a mismatch between the MVP list at the encoder side and the MVP list at the decoder side may occur. Therefore, subsequent MV decoding may also be impacted and the condition may persist for multiple subsequent pictures.
In HM-4.0, in order to solve the parsing problem related to Merge/AMVP in HM-3.0, fixed MVP list size is used to decouple MVP list construction and MVP index parsing. Furthermore, in order to compensate the coding performance loss caused by the fixed MVP list size, additional MVPs are assigned to the empty positions in the MVP list. In this process, Merge index is coded using truncated unary codes of fixed length equal to 5 or less, and AMVP index is coded using fixed length equal to 2 or less.
Another change in HM-4.0 is the unification of MVP positions. Both Merge and Skip use the same positions shown in
Additional bi-predictive Merge candidates are created using original Merge candidates. The additional candidates are divided into three candidate types:
In candidate type 1, combined bi-predictive Merge candidates are created by combining original Merge candidate. Two candidates in original candidates are used to create bi-predictive Merge candidates. An example of the derivation process of combined bi-predictive Merge candidate is shown in
In candidate type 2, scaled bi-predictive Merge candidates are created by scaling original Merge candidates. One of the original candidates is used to create bi-predictive Merge candidates. The selected candidate corresponds to a motion vector mvLX with the reference picture index refIdxLX in list X, where X can be 0 or 1. For example, one candidate A is uni-predictive in list 0 with motion vector mvL0_A and reference picture index ref0. In order to derived the scaled candidate, ref0 is copied to reference index ref0′ in list 1 first. Then, mvL0′_A is calculated by scaling mvL0_A according to picture distance of current frame to ref0 and picture distance of current frame to ref0′. The bi-predictive Merge candidate, having mvL0_A and ref0 in list 0 and mvL0′_A and ref0′ in list 1, are then created and added into Merge candidate list.
In candidate type 3, zero-vector Merge candidates and zero-vector AMVP candidates are created by combining zero vectors and reference index that can be referred.
For AMVP in HM-4.0
For Merge mode in HM-4.0, the MVP candidate derivation uses the same neighboring block configuration as shown in
As illustrated above, the fixed-size Merge/AMVP candidate sets are used in HM-4.0 to overcome the issue associated with parsing error. Moreover, new MVPs are added to the candidate set after removing redundant MVPs in order to improve coding efficiency. However, the MVP candidate derivation for HM-4.0 does not necessarily provide a complete full set of MVP candidates. The number of MVPs in the candidate set may be less than the fixed target size specified. When a parsing error occurs, the encoder and decoder may have different MVP list. If the encoder sends an MVP index pointing to an empty space, mismatch between the encoder and decoder may occur if the encoder and decoder have different MVP lists. The state of mismatch may persist and cause error propagation in the decoder. Accordingly, it is desirable to develop methods of generating additional MVM candidates that can always result in a complete full MVP candidate set.
A method and apparatus for deriving a motion vector predictor (MVP) candidate set for a block are disclosed. Embodiments according to the present invention generate a complete full MVP candidate set based on the redundancy-removed MVP candidate set if one or more redundant MVP candidates exist. The complete full MVP candidate set contains no redundant MVP candidates and the complete full MVP candidate set has a size equal to the fixed target size. In one embodiment, the method generates the complete full MVP candidate set by adding replacement MVP candidates to the redundancy-removed MVP candidate set and a value corresponding to a non-redundant MVP is assigned to each replacement MVP candidate. The value may correspond to motion vector if the MVP candidate set is for Advanced Motion Vector Prediction (AMVP) mode and the value may correspond to prediction direction, reference index, or the motion vector if the MVP candidate set is for Merge mode. The replacement MVP candidates may comprise one or both of a first zero vector with reference frame index equals to 0 in list 0 and a second zero vector with reference frame index equals to 0 in list 1.
In another embodiment, the method generates the complete full MVP candidate set by adding replacement MVP candidates to the redundancy-removed MVP candidate set, wherein a value is assigned to each replacement MVP candidate according to a rule. If the MVP candidate set still contains any redundant MVP candidate, the redundant MVP candidate is removed and one or more replacement MVP candidates are added. The procedure is iterated until the MVP candidate set is complete and full. The replacement MVP candidate may be assigned the value corresponding to motion vector for AMVP mode or prediction direction, reference index, or the motion vector for Merge mode. Furthermore, the motion vector may correspond to (x,0), (−x,0), (0,y), or (0,−y), wherein x is a first integer corresponding to horizontal motion vector and y is a second integer corresponding to vertical motion vector.
In yet another embodiment, the method generates the complete full MVP candidate set by assigning initial MVP candidates associated with neighboring blocks. The initial MVP candidates are assigned so that the MVP candidate set has a size equal to the fixed target size and the MVP candidate set contains no redundant MVP candidate. Furthermore, the procedure for conventional MVP candidate set can be applied to the initial MVP candidate set.
As mentioned before, mismatch between the encoder and decoder may occur when the encoder sends an MVP index pointing to an empty (undefined) space of the MVP candidate set. To overcome the mismatch issue between the encoder and decoder, embodiments of the present invention generate a complete full MVP candidate set. Therefore, there will be no more empty space in the MVP candidate set. One embodiment according to the present invention initializes each element of the MVP candidate set before applying the MVP candidate set generation process, where the MVP candidate set generation process can be a conventional approach. The initial MVP candidates are properly selected so that the MVP candidate set consisting of initial MVP candidates is complete and full. In other words, the size of the MVP candidate set is equal to a fixed target size and there is no redundant MVP candidate in the MVP candidate set. The values to be initialized for each element include MV in case of AMVP mode and prediction direction, reference index and MV in case of the Merge mode.
According to another embodiment of the present invention, a value is assigned to each empty (undefined) MVP if there is any empty MVP in the candidate set after applying the MVP candidate set generation and redundant MVP removal process. The procedure to replace any redundant MVP candidate according to embodiments of the present invention ensures the resulted MVP candidate set is complete and full. In other words, the size of the MVP candidate set is equal to the fixed target size and there is no redundant MVP candidate in the MVP candidate set.
In yet another embodiment according to the present invention, the method to generate a complete full MVP candidate set is to assign a value to each empty (undefined) MVP according to a rule. The values to be assigned include MV in case of the AMVP mode and prediction direction, reference index and MV in case of the Merge mode. After replacement MVP candidates are added to the MVP candidate set, redundancy is checked and redundant MVP removal is applied again. The above procedure of assigning value, checking redundancy, and removing redundant MVP candidates are repeated until the MVP candidate set is complete and full. For example, motion vector corresponding to (x,0), (−x,0), (0,y) or (0,−y) can be added to one of the MVP candidate set to replace the empty (undefined) MVP, where x is an integer value corresponding to horizontal motion vector and y is also an integer corresponding to vertical motion vector. An exemplary flow chart for generating a complete full MVP candidate set according to an embodiment of the present invention is illustrated in
Flow charts in
Embodiment of the present invention as described above may be implemented in various hardware, software codes, or a combination of both. For example, an embodiment of the present invention can be a circuit integrated into a video compression chip or program code integrated into video compression software to perform the processing described herein. An embodiment of the present invention may also be program code to be executed on a Digital Signal Processor (DSP) to perform the processing described herein. The invention may also involve a number of functions to be performed by a computer processor, a digital signal processor, a microprocessor, or field programmable gate array (FPGA). These processors can be configured to perform particular tasks according to the invention, by executing machine-readable software code or firmware code that defines the particular methods embodied by the invention. The software code or firmware code may be developed in different programming languages and different formats or styles. The software code may also be compiled for different target platforms. However, different code formats, styles and languages of software codes and other means of configuring code to perform the tasks in accordance with the invention will not depart from the spirit and scope of the invention.
The invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described examples are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.
The present invention is a Continuation of U.S. patent application, Ser. No. 14/239,302, filed on Feb. 18, 2014, now U.S. Pat. No. 9,872,016, which is a National Phase of PCT Application No. PCT/CN2012/083133, filed on Oct. 18, 2012, which claims priority to U.S. Provisional Patent Application, Ser. No. 61/548,991, filed on Oct. 19, 2011, entitled “Complete MVP Candidate Set”. The Applications are hereby incorporated by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
20110013697 | Choi | Jan 2011 | A1 |
20110194609 | Rusert et al. | Aug 2011 | A1 |
20120320969 | Zheng | Dec 2012 | A1 |
20130003850 | Sugio | Jan 2013 | A1 |
20130003851 | Yu | Jan 2013 | A1 |
Number | Date | Country |
---|---|---|
2009051419 | Apr 2009 | WO |
2011010858 | Jan 2011 | WO |
Entry |
---|
Chen, J., et al; “MVP Index Parsing with Fixed Number of Candidates;” Joint Collaborative Team on Video Coding JCT-VC) of ITU-T SG16WP3 and ISO/IEC JTC1/SC29/WH11; Jul. 2011; pp. 1-14. |
Lin, J.L., et al.; “CE9: Results of Experiment ROB04;” Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WH11; Jul. 2011; pp. 1-8. |
Jeon, Y.; “Non-CE9/Non-CE13: New MVP Positions for Merge/Skip Modes and its Combination with Replacing Redundant MVPs;” Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WH11; Nov. 2011; pp. 1-14. |
Lin, J.L., et al.; “CE13: Results of Tests 1, 3d and 3e in Section 3.1 on Replacing Redundant MVPs and its Combination with Adaptive MVP List Size;” Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WH11; Nov. 2011; pp. 1-8. |
Number | Date | Country | |
---|---|---|---|
20180098088 A1 | Apr 2018 | US |
Number | Date | Country | |
---|---|---|---|
61548991 | Oct 2011 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14239302 | US | |
Child | 15832987 | US |