Motion vector predictor list generation for intra block copy mode in video coding
By redesigning motion vector prediction in intra-block copy mode, allowing HMVP candidates as final candidates and simplifying the pruning algorithm, the inefficiency problem in intra-block copy mode in the existing technology is solved, and video encoding and decoding performance is improved.
Patent Information
- Application Number
- CN202080012202.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-05
- Filing Date
- 2020-02-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-02-06
AI Technical Summary
In existing video encoding and decoding technologies, the intra-block copy (IBC) mode has inefficiency problems in motion vector prediction. Especially when generating a motion vector candidate list, the HMVP candidate cannot be used as the final candidate, and the pruning algorithm is complex. Affects encoding and decoding performance.
Redesign motion vector prediction in intra block copy mode, allowing HMVP candidates as the last candidates in the motion vector candidate list, and simplifying the pruning algorithm, removing check restrictions on B2 candidates, optimizing the use of paired candidates, and adopting unified motion Vector rounding method.
It improves the efficiency of video encoding and decoding, reduces computational complexity and storage requirements, and improves the compression performance of video data.
Smart Images

Figure CN113383552B_ABST
Abstract
Description
[0001] This application claims priority to U.S. Application No. 16 / 782,735, filed on February 5, 2020, which claims priority to U.S. Provisional Application No. 62 / 802,573, filed on February 7, 2019, all of which are incorporated herein by reference in their entirety. Technical Field
[0002] The present disclosure relates to video encoding and video decoding. Background Art
[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), notebook or desktop computers, tablet computers, e-book readers, digital video cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-TH.263, ITU-TH.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), High Efficiency Video Coding (HEVC) standards, ITU-TH.265 / High Efficiency Video Coding (HEVC), and extensions of these standards. Video devices may more efficiently send, receive, encode, decode, and / or store digital video information by implementing such video coding techniques.
[0004] Video coding techniques include spatial (intra-image) prediction and / or temporal (inter-image) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video image or a portion of a video image) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of an image are encoded using spatial prediction for reference samples in neighboring blocks in the same image. Video blocks in an inter-coded (P or B) slice of an image may use spatial prediction for reference samples in neighboring blocks in the same image or temporal prediction for reference samples in other reference images. Images may be referred to as frames, and reference images may be referred to as reference frames. Summary of the invention
[0005] In one example, a method for decoding video data includes generating a motion vector (MV) candidate list for the current block in response to determining that a current block of a current image of the video data is predicted using intra-block copying (IBC), wherein generating the MV candidate list includes: determining one or more history-based motion vector prediction (HMVP) candidates; and including an HMVP candidate from the one or more HMVP candidates as a last candidate in the MV candidate list; selecting a specific MV from the MV candidate list that identifies a prediction value block in the current image; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0006] In another example, an apparatus for decoding video data includes a memory configured to store video data; and one or more processors implemented in a circuit and configured to: in response to determining that an IBC is used to predict a current block of a current image of the video data, generate an MV candidate list for the current block, wherein, to generate the MV candidate list, the one or more processors are configured to: determine one or more HMVP candidates; and include an HMVP candidate from the one or more HMVP candidates as a last candidate in the MV candidate list; select a specific MV that identifies a prediction value block in the current image from the MV candidate list; and reconstruct pixels of the current block based on pixels of the prediction value block.
[0007] In another example, a computer-readable storage medium stores instructions that, when executed, cause one or more processors of a video decoder to generate an MV candidate list for a current block in response to determining that an IBC is used to predict a current block of a current image of video data, wherein the instructions that cause the one or more processors to generate the MV candidate list include instructions that cause the one or more processors to: determine one or more HMVP candidates; and include an HMVP candidate from the one or more HMVP candidates as a last candidate in the MV candidate list; select a specific MV from the MV candidate list that identifies a prediction value block in the current image; and reconstruct pixels of the current block based on pixels of the prediction value block.
[0008] The details of one or more aspects of the disclosure are set forth in the accompanying drawings and the following description. Other features, objects, and advantages of the techniques described in the disclosure will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1A and 1B is a conceptual diagram illustrating neighboring spatial candidates in HEVC.
[0010] Figure 2A and 2B is a conceptual diagram illustrating exemplary temporal motion vector predictor (TMVP) candidates and motion vector (MV) scaling.
[0011] Figure 3 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
[0012] Figure 4A and 4B is a conceptual diagram illustrating an exemplary quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).
[0013] Figure 5 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
[0014] Figure 6 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
[0015] Figure 7 is a flow chart illustrating an exemplary method for encoding a current block.
[0016] Figure 8 is a flow chart illustrating an exemplary method for decoding a current block of video data.
[0017] Fig. 9 is a flow chart illustrating an example method for generating a motion vector predictor candidate list in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION
[0018] In general, the present disclosure describes techniques for predicting blocks of video data using intra-block copying (IBC). In order to predict a current block of video data in a current image of the video data using IBC, a video coder may add residual data to a prediction value block in the current image. The video coder may identify a prediction value block using a motion vector, which may be referred to as a block vector representing a displacement between a current block and a prediction value block. In order to enable a video decoder to obtain a motion vector, both a video encoder and a video decoder may construct a motion vector candidate list and the video encoder may encode one or more syntax elements indicating which candidate from the motion vector list will be used as a motion vector predictor to construct a motion vector for the current block. In some examples, the video encoder may further encode one or more syntax elements representing a difference between a motion vector predictor and a motion vector for the current block (e.g., a syntax element representing a motion vector difference (MVD)).
[0019] The video coder may obtain candidates for the motion vector candidate list from various sources. Some exemplary sources include, but are not limited to, spatial candidates, temporal motion vector predictor (TMVP) candidates, history-based motion vector predictor (HMVP) candidates, and paired candidates. To generate a motion vector candidate list, the video coder may evaluate candidates from the source until the list contains a desired number of candidates. To evaluate a particular candidate for inclusion in the motion vector candidate list, the video coder may determine whether the particular candidate is available and / or whether the value of the particular candidate is the same as a candidate already included in the motion vector candidate list. The video coder may evaluate the candidates from the source in a particular order.
[0020] In some cases, a video coder may utilize in-order sources to generate a motion vector candidate list for a current block, regardless of whether the current block is predicted using inter mode (e.g., using a prediction value block located in a different image than the current block) or using IBC (e.g., using a prediction value block located in the same image as the current block). In other cases, a video coder may utilize sources in different orders to generate motion vector candidate lists for blocks predicted using inter mode and blocks predicted using IBC. In the case where a video coder uses different orders, there may still be some overlap in the candidates considered. For example, a video coder may evaluate HMVP candidates for inclusion in a motion vector candidate list for two blocks coded using inter and IBC, provided that the last candidate in the motion vector candidate list cannot be a HMVP candidate.
[0021] According to one or more techniques of the present disclosure, a video decoder may generate a motion vector candidate list for a video data block predicted using IBC, wherein the HMVP candidate is used as the last candidate in the motion vector candidate list. For example, the video decoder may include the HMVP candidate as the last candidate in the motion vector candidate list for the current block predicted using IBC.
[0022] In some examples, in addition to allowing the HMVP candidate to be the last candidate in the motion vector candidate list, the video coder may not utilize some candidate sources of the IBC candidate list for the intermediate candidate list. For example, when generating a candidate list for a block coded using IBC, the video coder may not evaluate paired candidates, and when generating a candidate list for a block coded using inter-frame, the video coder may evaluate paired candidates.
[0023] The technology of the present disclosure relates to the intra-block copy (IBC) mode and the design of the shared motion vector prediction value list. The technology can be applied to any of the existing video codecs, such as HEVC (High Efficiency Video Coding), VVC (Versatile Video Coding) or any future video coding standard. Below, we first review the HEVC and JEM technologies related to the present disclosure and the work being done in Versatile Video Coding (VVC).
[0024] Video coding standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262 or ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual and ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC) (including its scalable video coding (SVC) and multi-view video coding (MVC) extensions), High Efficiency Video Coding (HEVC) or ITU-T H.265 (including its range extension, multi-view extension (MV-HEVC) and scalable extension (SHVC)).
[0025] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC1 / SC 29 / WG 11) are currently studying the potential need for standardization of future video coding techniques with compression capabilities that significantly exceed those of the current HEVC standard (including its current and near-term extensions for screen content coding and high dynamic range coding). These working groups are jointly collaborating on an exploratory activity, known as the Joint Video Exploration Team (JVET), to evaluate compression technology designs proposed by experts in the field. JVET met for the first time on October 19-21, 2015. The latest version of the reference software, Joint Exploration Model 7 (JEM 7), is available at jvet.hhi.fraunhofer.de / svn / svn_HMJEMSoftware / tags / HM-16.6-JEM-7.0 / . A version of the reference software, Joint Exploration Model 7 (JEM 7), is available at phenix.it-sudparis.eu / jvet / doc_end_user / current_document.php? An algorithm description of the Joint Exploration Model 7 (JEM7), hereinafter referred to as "JVET-G1001", is available at id=3286.
[0026] CU structure and motion vector prediction in HEVC. In HEVC, the largest coding unit in a slice is called a coding tree block (CTB) or coding tree unit (CTU). The CTB contains a quadtree whose nodes are coding units. The size of the CTB in the HEVC main profile can range from 16×16 to 64×64 (although 8×8 CTB size can be supported). The size of the coding unit (CU) can be the same as the size of the CTB, as small as 8×8. Each coding unit is coded in one mode (i.e., inter or intra). When the CU is inter-coded, the CU can be further partitioned into 2 or 4 prediction units (PUs) or become only one PU when further partitioning is not applicable. When there are two PUs in a CU, they can be half-sized rectangles or two rectangular sizes with 1 / 4 or 3 / 4 the size of the CU. When the CU is inter-coded, each PU has a set of motion information derived in a unique inter prediction mode.
[0027] Motion Prediction. In the HEVC standard, there are two inter prediction modes, called merge mode (skip is considered as a special case of merge) and advanced motion vector prediction (AMVP) mode for prediction units (PUs).
[0028] In AMVP or merge mode, the motion vector (MV) candidate list holds multiple motion vector prediction values. By selecting a candidate from the MV candidate list, the motion vector (s) of the current PU and the reference index in merge mode are generated.
[0029] The MV candidate list may contain up to five candidates for merge mode and only two candidates for AMVP mode. The merge candidate may contain a set of motion information, for example, motion vectors corresponding to both the reference image lists (list 0 and list 1) and the reference index. If the merge candidate is identified by a merge index, the reference image is used for prediction of the current block and the associated motion vector is determined. However, in AMVP mode for each potential prediction direction from list 0 or list 1, since the AMVP candidate only contains motion vectors, the reference index and the MVP index to the MV candidate list need to be explicitly signaled. In AMVP mode, the predicted motion vector can be further refined.
[0030] As can be seen above, the merge candidate corresponds to the full set of motion information, while the AMVP candidate contains only one motion vector for a specific prediction direction and reference index. Candidates for both modes are similarly derived from the same spatial and temporal neighboring blocks.
[0031] Figure 1A and 1B is a conceptual diagram showing spatial neighbor candidates in HEVC. For a specific PU (PU0), from Figure 1A and 1BSpatial MV candidates are derived from the neighboring blocks shown, but the method of generating candidates from this block is different for merge and AMVP modes.
[0032] In merge mode, you can use Figure 1A Up to four spatial MV candidates are derived in the order with numbers shown in , and the order is as follows: left (0, A1), top (1, B1), top right (2, B0), bottom left (3, A0), and top left (4, B2), as shown in Figure 1A That is, in Figure 1A In the embodiment of the present invention, block 1000 includes PU0 1040A and PU1 1040B. When the video decoder is to use merge mode to decode the motion information for PU0 1040A, the video decoder sequentially adds the motion information from spatial neighboring blocks 1080A, 1080B, 1080C, 1080D, and 1080E to the candidate list. As in HEVC, blocks 1080A, 1080B, 1080C, 1080D, and 1080E may also be referred to as blocks A1, B1, B0, A0, and B2, respectively.
[0033] In AVMP mode, adjacent blocks are divided into two groups: the left group containing blocks 0 and 1, and the upper group containing blocks 2, 3, and 4, as shown in Figure 1B These blocks are shown in Figure 1B In FIG. 1 , the blocks 1100A, 1100B, 1100C, 1100D and 1100E are marked respectively. Specifically, Figure 1B , block 1020 contains PU0 1060A and PU1 1060B, and blocks 1100A, 1100B, 1100C, 1100D, and 1100E represent spatial neighbors of PU0 1060A. For each group, potential candidates among neighboring blocks have the highest priority to be selected to form the final candidate for the group, where the neighboring block refers to the same reference image as the reference image indicated by the signaled reference index. All neighboring blocks may not contain motion vectors pointing to the same reference image. Therefore, if no such candidate can be found, the first available candidate will be scaled to form the final candidate; therefore, the temporal distance difference can be compensated.
[0034] If a temporal motion vector predictor (TMVP) candidate is enabled and available, it is added to the MV candidate list after the spatial motion vector candidate. The motion vector derivation process for TMVP candidates is the same for merge mode and AMVP mode; however, the target reference index for TMVP candidates in merge mode is always set to 0. The primary block position for TMVP candidate derivation is the lower right block ( Figure 2A) to compensate for the deviation to the upper and left blocks used to generate the neighboring spatial candidates. However, if the block is outside the current CTB row or the motion information is not available, the block is replaced by the center block of the PU.
[0035] like Figure 2B As shown, the motion vector of the TMVP candidate is derived from the co-located PU of the co-located picture indicated in the slice level. Similar to the temporal direct mode in AVC, the motion vector of the TMVP candidate can perform motion vector scaling to compensate for the distance difference.
[0036] Other aspects of motion prediction in HEVC will now be described. One such aspect is motion vector scaling. It is assumed that the value of a motion vector is proportional to the distance of the images in presentation time. A motion vector relates two images, a reference image and an image containing a motion vector (i.e., a containing image). When a motion vector is used to predict another motion vector, the distance of the containing image from the reference image is calculated based on a picture order count (POC) value.
[0037] For a motion vector to be predicted, its associated containing image and reference image can both be different. Therefore a new distance is calculated (based on POC). The motion vector is scaled based on these two POC distances. For spatially adjacent candidates, the containing images of the two motion vectors are the same, but the reference images are different. In HEVC, motion vector scaling is applied to both TMVP and AMVP for spatial and temporal adjacent candidates.
[0038] Another aspect of motion prediction in HEVC is artificial motion vector candidate generation. If the motion vector candidate list is not complete, artificial motion vector candidates are generated and inserted at the end of the list until it will have all candidates. In merge mode, there are two types of artificial MV candidates: combined candidates that are derived only for B slices, and zero candidates that are only used for AMVP when the first type does not provide enough artificial candidates. For each pair of candidates that are already in the candidate list and have the necessary motion information, a bidirectional combined motion vector candidate is derived by combining the motion vector of the first candidate from the image in reference list 0 and the motion vector of the second candidate from the image in reference list 1.
[0039] Another aspect of motion prediction in HEVC is the pruning process for candidate insertion. Candidates from different blocks may happen to be the same, which reduces the efficiency of the merge mode or AMVP mode candidate list. A pruning process can be applied to solve this problem. The pruning process compares one candidate in the current candidate list with other candidates to avoid inserting the same candidate to a certain extent. In order to reduce complexity, only a limited number of pruning processes are applied instead of comparing each potential candidate with all other existing candidates.
[0040] Enhanced Motion Vector Prediction. In the development of Versatile Video Coding (VVC), there are several inter-coding tools that derive or refine the candidate list of motion vector prediction or merge prediction for the current block. Several of these methods are described below. These methods include merge lists in VTM3.0, history-based motion vector prediction, and pairwise average candidates (also called "pairwise candidates").
[0041] History-based motion vector prediction. History-based motion vector prediction (HMVP) [JVET-K0104, available at phenix.it-sudparis.eu / jvet / doc_end_user / documents / 11_Ljubljana / wg11 / JVET-K0104-v5.zip] is a history-based method that allows each block to find its MV prediction value from a list of MVs decoded from the past, in addition to MVs in directly adjacent causal neighboring motion fields. A table with multiple HMVP candidates is maintained during the encoding / decoding process. When a new slice is encountered, the table is cleared. Whenever there is an inter-frame decoding block, the associated motion information is inserted into the table as a new HMVP candidate in a first-in-first-out (FIFO) manner. Then, the constrained FIFO rule can be applied. When inserting the HMVP into the table, a redundancy check is first applied to find out whether the same HMVP exists in the table. If found, the specific HMVP is removed from the table and all subsequent HMVP candidates are moved.
[0042] The HMVP candidate may be used in the merge candidate list construction process. All HMVP candidates from the last entry to the first entry in the table may be inserted after the TMVP candidate. Pruning may be applied to the HMVP candidate. Once the total number of available merge candidates reaches the maximum allowed merge candidate signaled, the merge candidate list construction process is terminated.
[0043] Similarly, HMVP candidates can also be used in the AMVP candidate list construction process. The motion vectors of the last K HMVP candidates in the table are inserted after the TMVP candidates. Only HMVP candidates with the same reference image as the AMVP target reference image are used to build the AMVP candidate list. Pruning is applied to HMVP candidates.
[0044] Pairwise average candidates. Pairwise average candidates are used in VTM3.0. Pairwise average candidates are generated by averaging predefined candidate pairs (including spatial candidates TMVP and HMVP) 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 number represents the merge index to the merge candidate list. The average motion vector is calculated separately for each reference list. If two motion vectors are available in one list, they are averaged even when the two motion vectors point to different reference images; if only one motion vector is available, the motion vector is used directly; if no motion vector is available, the list is kept invalid. Pairwise average candidates replace the combined candidates in the HEVC standard.
[0045] Merge list in VTM3.0. In VTM4.0, for normal inter-frame merge mode, the size of the merge list is 6, and the order of the merge candidate list can be as follows:
[0046] 1. Spatial candidates for blocks A1, B1, B0 and A0.
[0047] 2. If the number of candidates is less than 4, add B2.
[0048] 3.TMVP candidate.
[0049] 4. HMVP candidate (cannot be the last candidate in the list)
[0050] 5. Paired candidates.
[0051] 6. Zero candidates.
[0052] In VTM4.0, for IBC mode, the size of the merge list is 6, and the order of the merge candidate list can be as follows:
[0053] 1. Spatial candidates for blocks A1, B1, B0 and A0.
[0054] 2. If the number of candidates is less than 4, add B2.
[0055] 3. HMVP candidate (cannot be the last candidate in the list)
[0056] 4. Paired candidates.
[0057] For IBC mode, if the candidates are valid, the video decoder can add them to the merge / skip list. A candidate can be considered valid when the following conditions are met: B1 is pruned by A1, if B1 is different from A1, add B1 to the merge / skip list; B0 is pruned by B1, A0 is pruned by A1; if the number of candidates is less than four, check B2. B2 is pruned by A1 and B1; the first two HMVP candidates are pruned by A1 and B1; no paired candidates need to be pruned.
[0058] Intra-block copy (IBC) is sometimes referred to as current picture reference (CPR), where the motion vector refers to a reference sample that has already been reconstructed in the current picture. IBC is supported in the HEVC Screen Content Coding Extension (HEVC SCC). IBC-coded CUs are signaled as inter-coded blocks. The luminance motion (or block) vectors of IBC-coded CUs must have integer precision. Chroma motion vectors are also clipped to integer precision. When combined with AMVR, the IBC mode can switch between 1-pixel and 4-pixel motion vector precision. The current picture is placed at the end of the reference picture list L0. In order to reduce memory consumption and decoder complexity, IBC in VTM-3.0 only allows the use of the reconstructed portion of the current CTU. This restriction allows the IBC mode to be implemented using local on-chip memory for hardware implementation.
[0059] On the encoder side, hash-based motion estimation can be performed for IBC. The encoder performs RD checks on blocks with a width or height of no more than 16 luma samples. For non-merge mode, a block vector search is first performed using a hash-based search. If the hash search does not return a valid candidate, a local search based on block matching will be performed.
[0060] In VTM4.0, the IBC mode is signaled together with a block level flag, and the IBC mode can be signaled as an IBC AMVP mode or an IBC jump / merge mode. The IBC mode is considered to be a third prediction mode other than the intra or inter prediction mode (for example, the IBC mode is an independent prediction mode different from the intra and inter prediction modes). The current image may no longer be included in the reference image list 0 as one of the reference images. The derivation process of the motion vector of the IBC mode excludes all neighboring blocks in the inter mode, and vice versa. Bitstream consistency checks are no longer required at the encoder, and redundant mode signaling is removed.
[0061] There may be one or more problems with the current IBC technology in JVET. The 13th JVET meeting adopted the IBC mode as a standalone mode. The current merge / skip candidate list generation method for the IBC merge / skip mode is similar to the normal inter-frame merge / skip mode, but the IBC mode is different from the normal inter-frame prediction.
[0062] As an exemplary problem, for inter-frame merge / skip list generation, if the number of candidates reaches 4, candidate B2 will not be checked. However, the IBC mode removes the TMVP candidate, which reduces the number of potential candidates. Thus, even if the number of candidates reaches 4, it may be desirable to check candidate B2. According to one or more techniques of the present disclosure, the merge / skip list can be redesigned for the IBC mode.
[0063] As another exemplary problem, the pruning operation of inter-frame prediction requires comparing the motion direction, reference idx / POC, and motion vector (MV) between different candidates. However, for IBC mode, the motion direction and reference idx / POC may always be the same. According to one or more techniques of the present disclosure, the pruning algorithm can be simplified.
[0064] As another exemplary problem, the HMVP candidate cannot be the last candidate in the merge / skip list in the VTM. According to one or more techniques of this disclosure, this limitation can be removed.
[0065] As another exemplary problem, only one pair of candidates is available for IBC merge / skip mode. However, since there is no zero MV as inter merge / skip mode, the list can be smaller than 6.
[0066] As another exemplary problem, the MV rounding algorithm for inter prediction is unified, but IBC modes (such as IBC AMVP mode, IBC merge / skip) can use different MV rounding methods for chroma MV. This is not only used for IBC merge / skip mode, but also for other IBC modes. According to one or more techniques of the present disclosure, the rounding method can be unified.
[0067] According to one or more techniques of this disclosure, a video decoder (e.g., a video encoder such as Figure 3 and / or Figure 5 The video encoder 200, or video decoder, such as Figure 3 and / or Figure 6The video decoder 300 of the embodiment of the present invention may be configured to remove the candidate quantity restriction of checking B2 candidates. As an example, when generating an IBC merge / skip list, the video decoder may always check the candidate of B2. If the candidate of B2 is valid, the video decoder may add the candidate of B2 to the candidate list. As another example, when generating an IBC merge / skip list, the video decoder may remove the restriction of checking B2 only when the candidate is less than a threshold value (e.g., 2, 3, 4, 5, 6) (e.g., in the current VTM). The video decoder may always check B2, and if B2 is 1) valid, 2) decoded in IBC mode, and 3) pruned by A1 and B1 (e.g., if B2 is different from A1 and B1), the video decoder may add B2 to the list.
[0068] According to one or more techniques of the present disclosure, the video decoder can remove the restriction that the HMVP candidate cannot be the last candidate in the merge / skip list. For example, in VTM, the video decoder can remove the restriction that the HMVP candidate cannot be the last IBC merge / skip candidate. The video decoder can check the available HMVP candidates in the HMVP table until the number of candidates has reached the size of the merge / skip list or all candidates in the HMVP table have been checked.
[0069] According to one or more techniques of the present disclosure, a video coder may remove paired candidates for an IBC mode. For example, in an IBC merge / skip mode, a video coder may not use paired candidates. As an example, a video coder may remove the restriction that only one paired candidate may be used. As an example, a video coder may use the available candidates in a merge / skip candidate list to generate paired candidates and add them to the list until the number of candidates reaches the maximum size of the list. As another example, a video coder may use the first N available candidates in a merge / skip candidate list to generate paired candidates and add them to the list until the number of candidates reaches the size of the list. For example, when N=3, the pairs will be {(0,1),(0,2),(1,2),(0,3),(1,3),(2,3)}. For example, a video coder may not use HMVP candidates to generate paired candidates.
[0070] According to one or more techniques of the present disclosure, a video coder may remove the pruning operation when adding a new MV candidate to a list of MV prediction values. For example, to generate an IBC merge / skip list and / or an AMVP list, when checking a new MV candidate derived from a block decoded in IBC mode, the video coder does not need to compare the new MV candidate with other candidates, and may directly add the new candidate to the list.
[0071] As another example, the video coder may simplify the pruning operation by comparing only motion vectors. For example, to generate an IBC merge / skip list and / or an AMVP list, when checking new MV candidates derived from a block decoded in IBC mode, the video coder may perform only by comparing motion vectors. The motion vector predictor list may be a merge / skip list, or an AMVP list, or other motion vector predictor candidate lists.
[0072] As another example, the video decoder may utilize a unified MV rounding method. For example, the video decoder may utilize a modified chroma MV rounding method of IBC as shown below, where: i is equal to x or y (the MV component in the horizontal and vertical directions). shift i Can be associated with purpose, predefined or depend on MV bit precision, chroma format.
[0073] offset i =1<<(shift i -1)
[0074]
[0075] For example, the input MVi is a luma MV with an internal bit precision of 1 / 16 of 4 and a chroma format of 4:2:0. To generate an integer-precision chroma MV, shift i Equal to 5 = 4 + 1, MVChroma can be determined as follows i :
[0076] offset i =1<<(5-1)
[0077]
[0078] For example, the input MVi is a luma MV with an internal bit precision of 1 / 16 of 4 and a chroma format of 4:4:4. To generate an integer-precision chroma MV, shift i is equal to 4, the MVChroma can be determined as follows i :
[0079] offset i =1<<(4-1)
[0080]
[0081] Figure 31 is a block diagram illustrating an exemplary video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure generally relate to decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Thus, video data can include original, undecoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0082] like Figure 3 As shown in , in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. Specifically, source device 102 provides video data to destination device 116 via computer-readable medium 110. Source device 102 and destination device 116 may include any of a variety of devices, including desktop computers, notebook computers (i.e., laptops), tablet computers, set-top boxes, telephone handsets such as smart phones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and, therefore, may be referred to as wireless communication devices.
[0083] exist Figure 3 In the example of , source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, video encoder 200 of source device 102 and video decoder 300 of destination device 116 may be configured to apply techniques for local illumination compensation. Therefore, source device 102 represents an example of a video encoding device, while destination device 116 represents an example of a video decoding device. In other examples, source device and destination device may include other components or arrangements. For example, source device 102 may receive video data from an external video source such as an external camera. Similarly, destination device 116 may interface with an external display device instead of including an integrated display device.
[0084] like Figure 3The system 100 shown is merely an example. In general, any digital video encoding and / or decoding device may perform techniques for local illumination compensation. The source device 102 and the destination device 116 are merely examples of such decoding devices, wherein the source device 102 generates decoded video data to be sent to the destination device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices (specifically, video encoders and video decoders), respectively. In some examples, the devices 102 and 116 may operate in a substantially symmetrical manner, such that each of the devices 102 and 116 includes video encoding and decoding components. Therefore, the system 100 may support one-way or two-way video transmission between the video devices 102 and 116, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0085] In general, video source 104 represents a source of video data (i.e., raw uncoded video data), and provides a series of consecutive images (also referred to as "frames") of video data to video encoder 200, which encodes data for images. Video source 104 of source device 102 may include a video capture device, such as a video camera, a video archive file containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As another alternative, video source 104 may generate computer graphics-based data as source video, or a combination of live video, archived video, and computer-generated video. In each case, video encoder 200 encodes captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange images from a received order (sometimes referred to as a "display order") into a decoding order for decoding. Video encoder 200 may generate a bitstream containing encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt and / or retrieval by, for example, input interface 122 of destination device 116 .
[0086] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memories. In some examples, the memories 106, 120 may store raw video data (e.g., raw video from the video source 104) and decoded raw video data from the video decoder 300. In addition or alternatively, the memories 106, 120 may store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 may also include internal memory for functionally similar or equivalent purposes. In addition, the memories 106, 120 may store, for example, encoded video data output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 may be allocated as one or more video buffers, for example, to store raw, decoded and / or encoded video data.
[0087] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to transmit the encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. According to a communication standard such as a wireless communication protocol, the output interface 108 may modulate a transmission signal containing the encoded video data, and the input interface 122 may modulate the received transmission signal. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other equipment that can be used to facilitate communication from the source device 102 to the destination device 116.
[0088] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 116. Similarly, destination device 116 may access the encoded data from storage device 116 via input interface 122. Storage device 116 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage media for storing encoded video data.
[0089] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video generated by source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or downloading. File server 114 may be any type of server device capable of storing encoded video data and sending the encoded video data to destination device 116. File server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Destination device 116 may access the encoded video data from file server 114 via any standard data connection (including an Internet connection). This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of both, which is suitable for accessing the encoded video data stored on file server 114. File server 114 and input interface 122 may be configured to operate according to a streaming protocol, a downloading protocol, or a combination thereof.
[0090] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired network components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to a cellular communication standard such as 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 5G, etc. In some instances where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to other wireless standards such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee 5G, etc.). TM ), Bluetooth TM 108, and the like). In some examples, source device 102 and / or destination device 116 may include respective system-on-chip (SoC) devices. For example, source device 102 may include a SoC device to perform functionality attributed to video encoder 200 and / or output interface 108, and destination device 116 may include a SoC device to perform functionality attributed to video decoder 300 and / or input interface 122.
[0091] The techniques of the present disclosure may be applied to support video decoding for any of a variety of multimedia applications, such as over-the-air television broadcasts, cable television transmissions, satellite television transmissions, Internet streaming video transmissions (such as Dynamic Adaptive Streaming over HTTP (DASH)), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0092] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., the storage device 112, the file server 114, etc.). The encoded video bitstream computer-readable medium 110 may contain signaling information defined by the video encoder 200 that is also used by the video decoder 300, such as syntax elements with values describing characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays a decoded image of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or other types of display devices.
[0093] although Figure 3 200 and 300 may be integrated with an audio encoder and / or an audio decoder and may include appropriate MUX-DEMUX units or other hardware and / or software to process multiplexed streams including both audio and video in a common data stream. If applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).
[0094] Each of the video encoder 200 and the video decoder 300 may be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the techniques are partially implemented in software, the device may store instructions for the software in a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of the present disclosure. Each of the video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, either of which may be integrated as part of a combined encoder / decoder (CODEC) in a corresponding device. A device including the video encoder 200 and / or the video decoder 300 may include an integrated circuit, a microprocessor, and / or a wireless communication device, such as a cellular phone.
[0095] The video encoder 200 and the video decoder 300 may operate according to a video coding standard (e.g., ITU-T H.265, also known as High Efficiency Video Coding (HEVC)) or an extension thereof (such as a multi-view and / or scalable video coding extension). Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards, such as a joint detection model (JEM). However, the techniques of this disclosure are not limited to any particular coding standard.
[0096] Typically, the video encoder 200 and the video decoder 300 may perform block-based decoding of an image. The term "block" generally refers to a structure containing data that will be processed (e.g., encoded, decoded, or otherwise used) in the encoding and / or decoding process. For example, a block may contain a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 may decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 may decode luminance and chrominance components instead of red, green, and blue (RGB) data of samples of the decoded image, where the chrominance components may include both red hue and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB formatted data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing unit and a post-processing unit (not shown) may perform these conversions.
[0097] The present disclosure may generally relate to decoding (e.g., encoding and decoding) an image to include the process of encoding or decoding data of the image. Similarly, the present disclosure may relate to decoding a block of an image to include the process of encoding or decoding data of the block, for example, prediction and / or residual decoding. A coded video bitstream typically includes a series of values for syntax elements that represent decoding decisions (e.g., decoding modes) and the partitioning of the image into blocks. Therefore, references to decoding an image or a block should generally be understood to refer to decoding the values of the syntax elements that form the image or block.
[0098] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (such as the video encoder 200) partitions a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder partitions the CTU and the CU into four equal non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node", and the CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further partition the PU and TU. For example, in HEVC, the residual quadtree (RQT) represents the partitioning of the TU. In HEVC, a PU represents inter-frame prediction data, and a TU represents residual data. An intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.
[0099] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM. According to JEM, a video decoder (such as the video encoder 200) partitions an image into a plurality of coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure such as a quadtree-binary tree (QTBT) structure. The QTBT structure of JEM removes the concept of multiple partition types, such as the separation between CU, PU, and TU of HEVC. The QTBT structure of JEM includes two levels: a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the coding units (CUs).
[0100] In some examples, video encoder 200 and video decoder 300 may use a single QTBT structure to represent each of the luma component and the chroma components, while in other examples, video encoder 200 and video decoder 300 may use two or more QTBT structures, such as one QTBT structure for the luma component and another QTBT structure for the two chroma components (or two QTBT structures for respective chroma components).
[0101] The video encoder 200 and the video decoder 300 may be configured to use quadtree segmentation per HEVC, QTBT segmentation according to JEM, or other segmentation structures. For purposes of explanation, the description of the techniques of the present disclosure is presented with respect to QTBT segmentation. However, it should be appreciated that the techniques of the present disclosure may also be applied to video decoders configured to use quadtree segmentation or other types of segmentation.
[0102] This disclosure may use "N×N" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16×16 samples or 16 by 16 samples. Typically, a 16×16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Likewise, an N×N CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. Furthermore, a CU does not necessarily have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include N×M samples, where M is not necessarily equal to N.
[0103] The video encoder 200 encodes video data representing prediction and / or residual information and other information for a CU. The prediction information indicates how the CU will be predicted to form a prediction value block for the CU. The residual information typically represents the sample-by-sample difference between samples of the CU and the prediction value block before encoding.
[0104] In order to predict a CU, the video encoder 200 may generally form a prediction value block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU based on data of a previously decoded image, while intra-frame prediction generally refers to predicting a CU based on previously decoded data of the same image. In order to perform inter-frame prediction, the video encoder 200 may generate a prediction value block using one or more motion vectors. The video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may use unidirectional prediction or bidirectional prediction to predict the current CU.
[0105] JEM also provides an affine motion compensation mode, which may be considered an inter-prediction mode. In the affine motion compensation mode, the video encoder 200 may determine two or more motion vectors representing non-translational motion, such as zooming in or out, rotation, perspective motion, or other irregular motion types.
[0106] In order to perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a prediction value block. JEM provides sixty-seven intra prediction modes including various directional modes as well as plane mode and DC mode. In general, the video encoder 200 selects an intra prediction mode that describes the neighboring samples of the current block (e.g., a block of a CU), and predicts the samples of the current block from the neighboring samples. Assuming that the video encoder 200 decodes the CTU and CU in raster scan order (from left to right, from top to bottom), such samples may typically be above, above left, or to the left of the current block in the same image as the current block.
[0107] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for inter-frame prediction mode, the video encoder 200 may encode data indicating which of various available inter-frame prediction modes is used and motion information of the corresponding mode. For example, for unidirectional or bidirectional inter-frame prediction, the video encoder 200 may encode the motion vector using an advanced motion vector predictor (AMVP) or a merge mode. The video encoder 200 may use a similar mode to encode the motion vector of the affine motion compensation mode.
[0108] After a prediction value (such as an intra-frame prediction or an inter-frame prediction of a block), the video encoder 200 may calculate residual data for the block. Residual data such as a residual block represents a sample-by-sample difference between a block and a block of prediction values for the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to generate transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT transform), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a secondary transform after the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), or a similar transform. The video encoder 200 generates transform coefficients after applying one or more transforms.
[0109] As described above, after performing any transforms to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing the transform coefficients to potentially reduce the amount of data used to represent the coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.
[0110] After quantization, the video encoder 200 may scan the transform coefficients to produce a one-dimensional vector from a two-dimensional matrix containing the quantized transform coefficients. The scan may be designed to place coefficients of higher energy (and therefore lower frequency) at the front of the vector and transform coefficients of lower energy (and therefore higher frequency) at the back of the vector. In some examples, the video encoder 200 may scan the quantized transform coefficients using a predefined scan order to produce a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 may, for example, entropy encode the one-dimensional vector according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode the values of the syntax elements describing the metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.
[0111] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be sent. The context may relate to, for example, whether the neighboring values of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.
[0112] The video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, such as in a picture header, a block header, a slice header, or other syntax data, such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS), to the video decoder 300. The video decoder 300 may also decode such syntax data to determine how to decode the corresponding video data.
[0113] In this way, the video encoder 200 can generate a bitstream containing encoded video data, such as syntax elements describing the partitioning of an image into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0114] In general, the video decoder 300 performs a process that is inverse to the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values of the syntax elements of the bitstream in a manner generally similar to (although inverse to) the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information of the image into CTUs and the partitioning of each CTU according to a corresponding partitioning structure such as a QTBT structure to define CUs of the CTU. The syntax elements may further define prediction and residual information for a block (e.g., CU) of video data.
[0115] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce the residual block of the block. The video decoder 300 uses the prediction mode (intra-frame or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) sent by the signal to form a prediction value block for the block. The video decoder 300 may then combine the prediction value block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the boundaries of the blocks.
[0116] The present disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to the communication of values of syntax elements and / or other data used to decode encoded video data. That is, video encoder 200 may signal values of syntax elements in a bitstream. Generally, signaling refers to generating values in a bitstream. As described above, source device 102 may send the bitstream to destination device 116 substantially in real time or in non-real time, such as may occur when storing syntax elements to storage device 112 for later retrieval by destination device 116.
[0117] Figure 4A and 4B 1 is a conceptual diagram illustrating an exemplary quadtree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines indicate quadtree splits, and dashed lines indicate binary tree splits. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, where 0 indicates horizontal splitting and 1 indicates vertical splitting in this example. For quadtree splitting, there is no need to indicate the split type because the quadtree node splits the block horizontally and vertically into 4 equally sized sub-blocks. Therefore, the video encoder 200 can encode and the video decoder 300 can decode syntax elements (such as split information) at the region tree level (i.e., solid lines) of the QTBT structure 130 and syntax elements (such as split information) at the prediction tree level (i.e., dashed lines) of the QTBT structure 130. The video encoder 200 may encode and the video decoder 300 may decode video data, such as prediction and transform data, for the CU represented by the terminal leaf node of the QTBT structure 130 .
[0118] generally, Figure 4BThe CTU 132 of the QTBT structure 130 may be associated with parameters defining the size of blocks corresponding to nodes at the first and second levels of the QTBT structure 130. These parameters may include a CTU size (indicating the size of the CTU 132 in samples), a minimum quadtree size (MinQTSize, indicating the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, indicating the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, indicating the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, indicating the minimum allowed binary tree leaf node size).
[0119] The root node of the QTBT structure corresponding to the CTU can have four child nodes at the first level of the QTBT structure, and each child node can be partitioned according to the quadtree partitioning. That is, the node of the first level is a leaf node (no child nodes) or has four child nodes. The example of the QTBT structure 130 represents such a node, such as a parent node and a child node containing a solid line for branching. If the nodes of the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), they can be further partitioned by the corresponding binary tree. The binary tree splitting of a node can be iterated until the node obtained by the split reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node with a dotted line for branching. The binary tree leaf node is called a decoding unit (CU), which is used for prediction (e.g., intra-image or inter-image prediction) and transformation without any further partitioning. As described above, a CU may also be referred to as a "video block" or "block".
[0120] In one example of a QTBT partitioning structure, the CTU size is set to 128×128 (luminance sample and two corresponding 64×64 chrominance samples), MinQTSize is set to 16×16, MaxBTSize is set to 64×64, MinBTSize (for width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate a quadtree leaf node. The quadtree leaf node can have a size from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTUsize). If the quadtree leaf node is 128×128, it will not be further split by the binary tree because the size exceeds MaxBTSize (i.e., in this example, 64×64). Otherwise, the quadtree leaf node is further split with the binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree and has a depth of the binary tree of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), further splitting is not allowed. When a binary tree node has a width equal to MinBTSize (4 in this case), this means that no further horizontal splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further vertical splitting of the binary tree node is allowed. As described above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further segmentation.
[0121] Figure 5 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 5 The above description is provided for the purpose of explanation and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the developing H.266 video coding standard. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.
[0122] exist Figure 5In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or processing circuits. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.
[0123] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive the video data stored in the video data memory 230 from, for example, the video source 104. Figure 3 ). DPB 218 may act as a reference picture memory for storing reference video data used to predict subsequent video data by video encoder 200. Video data memory 230 and DPB 218 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. Video data memory 230 and DPB 218 may be provided by the same memory device or by separate memory devices. In various examples, video data memory 230 may be on-chip with other components of video encoder 200, as shown, or off-chip relative to those components.
[0124] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200 (unless specifically described as such), or memory external to the video encoder 200 (unless specifically described as such). Rather, references to the video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data of a current block to be encoded). Figure 3 Memory 106 may also provide temporary storage of outputs from various units of video encoder 200 .
[0125] Figure 5Various units are shown to help understand the operations performed by the video encoder 200. These units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and are preset on executable operations. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality in executable operations. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by instructions of the software or firmware. Fixed-function circuits can execute software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.
[0126] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by programmable circuits. In examples where the operation of the video encoder 200 is performed using software executed by programmable circuits, the memory 106 ( Figure 3 ) may store object code for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.
[0127] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve images of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be original video data to be encoded.
[0128] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.
[0129] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and the resulting rate-distortion values of these combinations. The encoding parameters may include partitioning of a CTU into CUs, a prediction mode of a CU, a transform type of residual data of a CU, a quantization parameter of residual data of a CU, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than other tested combinations.
[0130] The video encoder 200 may partition the image retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a slice. The mode selection unit 202 may partition the CTUs of the image according to a tree structure (such as the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs by partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".
[0131] In general, the mode selection unit 202 also controls its components (e.g., the motion evaluation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a block of prediction values for a current block (e.g., the current CU, or the overlapping portion of the PU and TU in HEVC). For inter prediction of the current block, the motion evaluation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference images (e.g., one or more previously coded images stored in the DPB 218). Specifically, the motion evaluation unit 222 may calculate a value representing how similar a potential reference block is to the current block, for example, based on a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), or the like. The motion evaluation unit 222 may typically perform these calculations using sample-by-sample differences between the current block and the reference block under consideration. The motion evaluation unit 222 may identify the reference block having the lowest value generated from these calculations, which indicates the reference block that most closely matches the current block.
[0132] The motion evaluation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference image relative to the position of a current block in a current image. The motion evaluation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion evaluation unit 222 may provide a single motion vector, while for bidirectional inter prediction, the motion evaluation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction value block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vector has fractional sample precision, the motion compensation unit 224 may interpolate the value of the prediction value block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by the corresponding motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.
[0133] As another example, for intra prediction or intra prediction coding, the intra prediction unit 226 may generate a prediction value block from samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 may generally mathematically combine the values of adjacent samples and fill these calculated values in a defined direction across the current block to produce a prediction value block. As another example, for DC mode, the intra prediction unit 226 may calculate an average value of samples adjacent to the current block and generate a prediction value block to include the obtained average value for each sample of the prediction value block.
[0134] The mode selection unit 202 provides the prediction value block to the residual generation unit 204. The residual generation unit 204 receives the original uncoded version of the current block from the video data memory 230 and receives the prediction value block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction value block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values in the residual block to generate the residual block using residual differential pulse coding modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
[0135] In the example where the mode selection unit 202 partitions the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As described above, the size of a CU may refer to the size of a luma coding block of the CU, and the size of a PU may refer to the size of a luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support PU sizes of 2N×2N or N×N for intra-prediction, and support symmetric PU sizes of 2N×2N, 2N×N, N×2N, N×N, etc. for inter-prediction. The video encoder 20 and the video decoder 30 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-prediction.
[0136] In an example where the mode selection unit does not further partition a CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. Video encoder 200 and video decoder 120 may support CU sizes of 2N×2N, 2N×N, or N×2N.
[0137] For other video coding techniques (such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding), for example, the mode selection unit 202 generates a prediction value block for the current block being encoded via a corresponding unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a prediction value block, but instead generate syntax elements indicating how to reconstruct the block based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0138] As described above, the residual generation unit 204 receives video data of a current block and a corresponding prediction value block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction value block and the current block.
[0139] The transform processing unit 206 applies one or more transforms to the residual block to generate a transform coefficient block (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form the transform coefficient block. For example, the transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 may perform multiple transforms on the residual block, for example, a primary transform and a secondary transform, such as a rotation transform. In some examples, the transform processing unit 206 does not apply a transform to the residual block.
[0140] Quantization unit 208 may quantize transform coefficients in a transform coefficient block to produce a quantized transform coefficient block. Quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. Video encoder 200 (e.g., via mode selection unit 202) may adjust the degree of quantization applied to the coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce information loss, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients generated by transform processing unit 206.
[0141] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although it may have some degree of distortion) based on the reconstructed residual block and the prediction value block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples of the prediction value block generated by the mode selection unit 202 to generate a reconstructed block.
[0142] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edge of the CU. In some examples, the operations of filter unit 216 may be skipped.
[0143] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks in the DPB 218. In examples where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks in the DPB 218. The motion evaluation unit 222 and the motion compensation unit 224 can retrieve a reference image formed by the reconstructed (and possibly filtered) blocks from the DPB 218 to perform inter-frame prediction on blocks of subsequent coded images. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks in the DPB 218 of the current image to perform intra-frame prediction on other blocks in the current image.
[0144] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode the quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode the prediction syntax elements (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on the syntax elements as another example of video data to generate entropy-encoded data. For example, the entropy coding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable to variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode in which the syntax elements are not entropy encoded.
[0145] The video encoder 200 may output a bitstream containing entropy-coded syntax elements required to reconstruct a block of a slice or an image. Specifically, the entropy encoding unit 220 may output a bitstream.
[0146] The operations described above are for block descriptions. This description should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding block and the chroma coding block are the luma and chroma components of a CU. In some examples, the luma coding block and the chroma coding block are the luma and chroma components of a PU.
[0147] In some examples, the operations performed for the luma coding block do not need to be repeated for the chroma coding block. As an example, the operations for identifying the motion vector (MV) and reference image for the luma coding block do not need to be repeated in order to identify the MV and reference image for the chroma block. Instead, the MV of the luma coding block may be scaled to determine the MV of the chroma block, and the reference image may be the same. As another example, the intra prediction process may be the same for the luma coding block and the chroma coding block.
[0148] Figure 6 is a block diagram illustrating an exemplary video decoder 300 that may perform the techniques of this disclosure. Figure 6 This is for the purpose of illustration and not limitation of the techniques widely illustrated and described in this disclosure. For the purpose of illustration, this disclosure describes the video decoder 300 according to the techniques of JEM and HEVC. However, the techniques of this disclosure may be performed by video coding devices configured for other video coding standards.
[0149] exist Figure 6 In the example of , the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or processing circuits. Furthermore, the video decoder 300 may include additional or alternative processors or processing circuits to perform these and other functions.
[0150] Prediction processing unit 304 includes motion compensation unit 316 and intra prediction unit 318. Prediction processing unit 304 may include an addition unit to perform prediction according to other prediction modes. As an example, prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, video decoder 300 may include more, fewer, or different functional components.
[0151] CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of video decoder 300. The video bitstream may be obtained, for example, from computer readable medium 110 ( Figure 3) obtains video data stored in CPB memory 320. CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. Moreover, CPB memory 320 may store video data other than syntax elements of decoded images, such as temporary data representing outputs from various units of video decoder 300. DPB 314 typically stores decoded images, and video decoder 300 may output and / or use the decoded images as reference video data when decoding subsequent data or images of the encoded video bitstream. CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or separate memory devices. In various examples, CPB memory 320 may be on-chip with other components of video decoder 300, or off-chip relative to those components.
[0152] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 3 ) retrieves the decoded video data. That is, the memory 120 may store the data as described above with the CPB memory 320. Likewise, when some or all of the functions of the video decoder 300 are implemented in software to be executed by the processing circuit of the video decoder 300, the memory 120 may store instructions to be executed by the video decoder 300.
[0153] Figure 6 The various units shown in FIG. 3 are shown to aid in understanding the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 5 , fixed-function circuits refer to circuits that provide specific functions and are preset in executable operations. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality in executable operations. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.
[0154] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on the programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.
[0155] Entropy decoding unit 302 may receive encoded video data from CPB and entropy decode the video data to reproduce syntax elements. Prediction processing unit 304, inverse quantization unit 306, inverse transform processing unit 308, reconstruction unit 310, and filter unit 312 may generate decoded video data based on syntax elements extracted from the bitstream.
[0156] Generally, the video decoder 300 reconstructs an image block by block. The video decoder 300 may perform a reconstruction operation on each block individually (where a block currently being reconstructed (ie, decoded) may be referred to as a "current block").
[0157] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block and transform information, such as a quantization parameter (QP) and / or (multiple) transform mode indications. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization, and likewise, determine a degree of inverse quantization of the inverse quantization unit 306 to apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.
[0158] After inverse quantization unit 306 forms the transform coefficient block, inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the coefficient block.
[0159] In addition, prediction processing unit 304 generates a block of prediction values based on the prediction information syntax elements entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is inter-predicted, motion compensation unit 316 can generate the block of prediction values. In this case, the prediction information syntax elements can indicate a reference picture in DPB 314 from which the reference block is retrieved, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally be substantially similar to the process described with respect to motion compensation unit 224 ( Figure 5 ) to perform the inter-frame prediction process in the manner described.
[0160] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 can generate a prediction value block according to the intra-prediction mode indicated by the prediction information syntax element. Likewise, the intra-prediction unit 318 can generally generate a prediction value block in a manner substantially similar to that described with respect to the intra-prediction unit 226 ( Figure 5 ) to perform the intra prediction process. The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.
[0161] The reconstruction unit 310 may reconstruct the current block using the prediction value block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction value block to reconstruct the current block.
[0162] The filter unit 312 may perform one or more filter operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 need not be performed in all examples.
[0163] The video decoder 300 may store the reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current image for intra-frame prediction and previously decoded images for subsequent motion compensation. In addition, the video decoder 300 may output decoded pictures from the DPB for subsequent presentation on a display such as a Figure 3 on a display device 118 of the display device.
[0164] Figure 7 2 is a flowchart showing an exemplary method for encoding a current block. The current block may include a current CU. Although the video encoder 200 ( Figure 3 and 5 ), but it should be understood that other devices may be configured to perform the same Figure 7 A similar approach to the one used in this paper.
[0165] In this example, the video encoder 200 first predicts the current block (350). For example, the video encoder 200 may form a prediction value block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). In order to calculate the residual block, the video encoder 200 may calculate the difference between the original unencoded block and the prediction value block of the current block. The video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the coefficients (358). For example, the video encoder 200 may encode the coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy coded data of the block (360).
[0166] Figure 8 1 is a flowchart illustrating an exemplary method for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 3 and 6 ), but it should be understood that other devices may be configured to perform similar Figure 8 method.
[0167] The video decoder 300 may receive entropy coded data of a current block, such as entropy coded prediction information and entropy coded data for coefficients of a residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and reproduce coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-frame or inter-frame prediction mode as indicated by the prediction information of the current block, to calculate a prediction value block for the current block. The video decoder 300 may then inversely scan the reproduced coefficients (376) to create a quantized transform coefficient block. The video decoder 300 may then inverse quantize and inverse transform the coefficients to produce a residual block (378). The video decoder 300 may ultimately decode the current block by combining the prediction value block and the residual block (380).
[0168] Fig. 9 1 is a flowchart illustrating an exemplary method for generating a motion vector prediction value candidate list according to one or more techniques of the present disclosure. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 3 and 6 ), but it should be understood that other devices may be configured to perform similar Fig. 9 Methods such as video encoder 200 ( Figure 3 and 5 ).
[0169] As described above, a video coder (such as video decoder 300) may construct a motion vector candidate list for a current block of video data. The video coder may obtain candidates for the motion vector candidate list from various sources. Some exemplary sources include, but are not limited to, spatial candidates, temporal motion vector predictor (TMVP) candidates, history-based motion vector predictor (HMVP) candidates, and pairwise candidates. To generate the motion vector candidate list, the video coder may evaluate candidates from the sources until the list contains a desired number of candidates. For example, Fig. 9 As shown in , the video decoder 300 may determine a maximum number (MAX) of candidates to be included in a motion vector (MV) list for a current block ( 902 ). The value of MAX may be fixed or may be variable based on one or more parameters.
[0170] To evaluate a particular candidate for inclusion in a motion vector candidate list, the video coder may determine whether the particular candidate is available and / or whether the value of the particular candidate is the same as a candidate already included in the motion vector candidate list.The video coder may evaluate candidates from the sources in a particular order.
[0171] As discussed above and in accordance with one or more techniques of the present disclosure, a video decoder such as video decoder 300 may generate a motion vector candidate list for a block using different sources and / or different constraints based on whether the block is coded using intra-block copy (IBC) or inter-coding. Video decoder 30 may determine whether a current block is coded using IBC (902). In response to determining that the current block is coded using IBC (the "yes" branch of 902), video decoder 300 may evaluate one or more spatial candidates for inclusion in the MV candidate list (906). For example, video decoder 300 may evaluate spatial candidates A1, B1, B0, and A0, as described above with reference to FIG. Figure 1A and Figure 1B discussed.
[0172] As discussed above and in accordance with one or more techniques of this disclosure, video decoder 300 may allow a history-based motion vector predictor (HMVP) to be the last candidate included in the MV candidate list (e.g., the final candidate added to the MV candidate list, which may have the highest index value). Fig. 9 As shown in , regardless of whether the number of candidates included in the MV list is less than or equal to the maximum number of candidates to be included in the MV candidate list minus one (e.g., MAX-1) (both branches of 908), the video decoder 300 may evaluate the HMVP candidate for inclusion in the MV candidate list (910). As discussed above, the video decoder 300 may obtain the HMVP candidate from a list of MVs decoded in the past (e.g., the video decoder 300 may maintain a table or list of MVs during the decoding process).
[0173] In response to determining that the current block is not coded using IBC (e.g., coded using inter-frame prediction) (the "No" branch of 902), the video decoder 300 may evaluate one or more spatial candidates for inclusion in the MV candidate list (912). For example, the video decoder 300 may evaluate spatial candidates A1, B1, B0, and A0, as described above with reference to Figure 1A and Figure 1B discussed.
[0174] Video decoder 300 may not allow HMVP to be the last candidate included in the MV candidate list for a block coded using inter-coding as compared to a block coded using IBC. Fig. 9 As shown, the video decoder 300 may evaluate the HMVP candidate for inclusion in the MV candidate list (916) in response to determining that the number of candidates included in the MV list is not greater than or equal to the maximum number of candidates to be included in the MV candidate list minus one (e.g., MAX-1) (the "No" branch of 914). However, in response to determining that the number of candidates included in the MV list is greater than or equal to the maximum number of candidates to be included in the MV candidate list minus one (e.g., MAX-1) (the "Yes" branch of 914), the video decoder 300 may instead evaluate paired candidates for inclusion in the MV candidate list (918).
[0175] The video decoder 300 may utilize the MV candidate list to reconstruct samples of the current block. For example, the video decoder 300 may select an MV candidate from the MV candidate list. In some examples, the video decoder 300 may select an MV candidate based on one or more syntax elements indicating an index value in the MV candidate list. The video decoder 300 may generate an MV for the current block based on the selected candidate MV prediction value. For example, the video decoder 300 may decode one or more syntax elements representing the difference between the value of the selected candidate MV prediction value and the MV for the current block (e.g., adding the difference to the value of the selected candidate MV prediction value to obtain the MV for the current block). The MV for the current block may identify a prediction value block for the current block. In the case where the current block is decoded using IBC, the prediction value block may be in the same image as the current block. In contrast, in the case where the current block is decoded using inter-frame prediction, the prediction value block may be in a different image from the current block. The video decoder 300 may obtain residual data and add the residual data to the prediction value block to reconstruct samples of the current block (e.g., Figure 8 372-380 of ). Note that video encoder 200 may perform similar operations (e.g., as part of a reconstruction loop).
[0176] The following numbered examples may illustrate one or more aspects of the present disclosure:
[0177] Example 1: A method for decoding video data, the method comprising: in response to determining that a current block of a current image of video data is predicted using intra-frame block copying (IBC), generating a motion vector (MV) candidate list for the current block, wherein generating the MV candidate list comprises: determining one or more history-based motion vector prediction (HMVP) candidates; and including an HMVP candidate from the one or more HMVP candidates as a last candidate in the MV candidate list; selecting a specific MV candidate that identifies a prediction value block in the current image from the MV candidate list; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0178] Example 2: According to the method of Example 1, wherein the current block is the first block of the current image, the method further includes: in response to determining that a second block of the current image of video data is predicted using inter-frame prediction, generating an MV candidate list for the second block, wherein generating the MV candidate list for the second block includes: determining a maximum number of candidates to be included in the MV candidate list for the second block; and in response to determining that the number of candidates in the MV candidate list for the second block is equal to the maximum number of candidates to be included in the MV candidate list for the second block minus one, prohibiting additional HMVP candidates for the second block from being included in the MV candidate list for the second block, so that the last candidate in the MV candidate list for the second block is not an HMVP candidate; selecting a specific MV candidate from the MV candidate list for the second block, the specific MV candidate identifying a prediction value block for the second block in an image of video data different from the current image; and reconstructing pixels of the second block based on pixels of the prediction value block of the second block.
[0179] Example 3: The method of Example 2, wherein generating the MV candidate list for the first block includes not evaluating any pair of candidates for inclusion in the MV candidate list for the first block.
[0180] Example 4: The method of Example 3, wherein generating the MV candidate list for the second block includes evaluating one or more pairs of candidates for inclusion in the MV candidate list for the second block.
[0181] Example 5: The method according to Example 4, wherein generating the MV candidate list for the first block further comprises: evaluating an upper left neighboring B2 candidate for inclusion in the MV candidate list for the first block, wherein the current number of candidates included in the MV candidate list for the first block is greater than or equal to four.
[0182] Example 6: The method of Example 4 or 5, wherein the MV candidate list for the first block comprises an IBC merge / skip list.
[0183] Example 7: A device for decoding video data, the device comprising: a memory configured to store video data; and one or more processors implemented in a circuit and configured to: generate a motion vector (MV) candidate list for the current block in response to determining that a current block of a current image of the video data is predicted using intra-frame block copy (IBC), wherein, to generate the MV candidate list, the one or more processors are configured to: determine one or more history-based motion vector prediction (HMVP) candidates; and include an HMVP candidate from the one or more HMVP candidates as the last candidate in the MV candidate list; select a specific MV candidate that identifies a prediction value block in the current image from the MV candidate list; and reconstruct pixels of the current block based on pixels of the prediction value block.
[0184] Example 8: A device according to Example 7, wherein the current block is a first block of a current image, and wherein the one or more processors are further configured to: in response to determining that a second block of the current image of video data is predicted using inter-frame prediction, generate an MV candidate list for the second block, wherein, in order to generate the MV candidate list for the second block, the one or more processors are configured to: determine a maximum number of candidates to be included in the MV candidate list for the second block; and in response to determining that the number of candidates in the MV candidate list for the second block is equal to the maximum number of candidates to be included in the MV candidate list for the second block minus one, prohibit additional HMVP candidates for the second block from being included in the MV candidate list for the second block, so that the last candidate in the MV candidate list for the second block is not an HMVP candidate; select a specific MV candidate from the MV candidate list for the second block, the specific MV candidate identifying a prediction value block for the second block in an image of video data different from the current image; and reconstruct pixels of the second block based on pixels of the prediction value block of the second block.
[0185] Example 9: The apparatus of Example 8, wherein, to generate the MV candidate list for the first block, the one or more processors are configured to not evaluate any pair of candidates for inclusion in the MV candidate list for the first block.
[0186] Example 10: The apparatus of Example 9, wherein, to generate the MV candidate list for the second block, the one or more processors are configured to evaluate one or more pairs of candidates for inclusion in the MV candidate list for the second block.
[0187] Example 11: A device according to Example 10, wherein, in order to generate an MV candidate list for a first block, one or more processors are configured to: evaluate the B2 candidate to include it in the MV candidate list for the first block, wherein the current number of candidates included in the MV candidate list for the first block is greater than or equal to four.
[0188] Example 12: The apparatus of Example 10, wherein the MV candidate list for the first block comprises an IBC merge / skip list.
[0189] Example 13: The apparatus of any one of Examples 7-12, wherein the video decoder comprises a video decoder.
[0190] Example 14: The device according to Example 13, further comprising a display configured to display the decoded video data.
[0191] Example 15: The device of Example 13, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0192] Example 16: A device according to any of Examples 7-15, wherein the device includes a video encoder.
[0193] Example 17: A computer-readable storage medium storing instructions for the following: the instructions, when executed, cause one or more processors of a video decoder to: generate a motion vector (MV) candidate list for a current block in response to determining that a current block of a current image of video data is predicted using intra-frame block copy (IBC), wherein the instructions that cause the one or more processors to generate the MV candidate list include instructions that cause the one or more processors to perform the following operations: determine one or more history-based motion vector prediction (HMVP) candidates; and include an HMVP candidate from the one or more HMVP candidates as a last candidate in the MV candidate list; select a specific MV candidate from the MV candidate list that identifies a prediction value block in the current image; and reconstruct pixels of the current block based on pixels of the prediction value block.
[0194] Example 18: A computer-readable storage medium according to Example 17, wherein the current block is the first block of the current image, and further includes instructions that cause one or more processors to perform the following operations: in response to determining that a second block of the current image of video data is predicted using inter-frame prediction, generate an MV candidate list for the second block, wherein the instructions that cause the one or more processors to generate the MV candidate list for the second block include instructions that cause the one or more processors to perform the following operations: determine a maximum number of candidates to be included in the MV candidate list for the second block; and in response to determining that the number of candidates in the MV candidate list for the second block is equal to the maximum number of candidates to be included in the MV candidate list for the second block minus one, prohibit additional HMVP candidates for the second block from being included in the MV candidate list for the second block, so that the last candidate in the MV candidate list for the second block is not an HMVP candidate; select a specific MV candidate from the MV candidate list for the second block, the specific MV candidate identifying a prediction value block for the second block in an image of video data different from the current image; and reconstruct pixels of the second block based on pixels of the prediction value block of the second block.
[0195] Example 19: The computer-readable storage medium of Example 18, wherein the instructions to cause the one or more processors to generate the MV candidate list for the first block include instructions to cause the one or more processors to not evaluate any pairs of candidates for inclusion in the MV candidate list for the first block.
[0196] Example 20: The computer-readable storage medium of Example 19, wherein the instructions to cause the one or more processors to generate the MV candidate list for the second block include instructions to cause the one or more processors to evaluate one or more pairs of candidates for inclusion in the MV candidate list for the second block.
[0197] Example 21: A method of decoding video data, the method comprising any combination of the techniques described in this disclosure.
[0198] Example 22: A method for decoding video data, the method comprising: generating a motion vector (MV) candidate list for a current block of a current image of the video data, wherein generating the MV candidate list comprises: determining a maximum size of the MV candidate list; and in response to determining that a current number of candidates included in the MV candidate list is less than the maximum size of the MV candidate list, evaluating B2 candidates for inclusion in the MV candidate list regardless of the current number of candidates included in the MV candidate list; selecting a specific MV from the MV candidate list that identifies a prediction value block in the current image; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0199] Example 23: The method of Example 22, wherein the B2 candidate is the top left candidate.
[0200] Example 24: The method of any of Examples 22-23, wherein the MV candidate list comprises an intra block copy (IBC) merge / skip list.
[0201] Example 25: The method of any of Examples 23-24, wherein evaluating the B2 candidate comprises determining whether the B2 candidate is valid, the method further comprising: in response to determining that the B2 candidate is valid, adding the B2 candidate to the MV candidate list.
[0202] Example 26: A method according to any one of Examples 23-25, wherein evaluating the B2 candidate includes determining whether the B2 candidate is different from other candidates already included in the MV candidate list, the method further comprising: in response to determining that the B2 candidate is different from other candidates already included in the MV candidate list, adding the B2 candidate to the MV candidate list.
[0203] Example 27: A method for decoding video data, the method comprising: generating a motion vector (MV) candidate list for a current block of a current image of the video data, wherein generating the MV candidate list comprises: determining one or more history-based motion vector predictor value (HMVP) candidates; and including an HMVP candidate from the one or more HMVP candidates as a last candidate in the MV candidate list; selecting a specific MV that identifies a prediction value block in the current image from the MV candidate list; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0204] Example 28: The method of any one of Examples 22-27, wherein the MV candidate list comprises an intra block copy (IBC) merge / skip list.
[0205] Example 29: A method for decoding video data, the method comprising: generating a motion vector (MV) candidate list for a current block of a current image of the video data, wherein generating the MV candidate list includes evaluating one or more MV candidates for inclusion in the MV candidate list, wherein the one or more MV candidates do not include any paired candidates; selecting a specific MV from the MV candidate list that identifies a prediction value block in the current image; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0206] Example 30: The method of any one of Examples 22-29, wherein the MV candidate list comprises an intra block copy (IBC) merge / skip list.
[0207] Example 31: A method for decoding video data, the method comprising: generating a motion vector (MV) candidate list for a current block of a current image of the video data, wherein generating the MV candidate list comprises: determining a plurality of paired candidates; and including at least two of the plurality of paired candidates in the MV candidate list; selecting a specific MV from the MV candidate list that identifies a prediction value block in the current image; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0208] Example 32: A method according to Example 31, wherein determining multiple paired candidates includes: generating paired candidates from multiple paired candidates based on candidates included in the MV candidate list; and including at least two paired candidates includes: including paired candidates from multiple paired candidates in the MV candidate list until the number of candidates included in the MV candidate list reaches a maximum size.
[0209] Example 33: A method according to any one of Examples 31-32, wherein determining a plurality of paired candidates comprises generating paired candidates among the plurality of paired candidates based on candidates included in an MV candidate list rather than based on historical motion vector predictor (HMVP) candidates.
[0210] Example 34: A method for decoding video data, the method comprising: generating a motion vector (MV) candidate list for a current block of a current image of the video data, wherein generating the MV candidate list comprises: determining a plurality of MV candidates; and including at least one MV candidate from the plurality of MV candidates in the MV candidate list without evaluating whether the at least one MV candidate is different from MV candidates already included in the MV candidate list; selecting a specific MV from the MV candidate list that identifies a prediction value block in the current image; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0211] Example 35: The method according to Example 34 further includes: in response to determining that at least one MV candidate is derived from a block decoded using intra-frame block copy (IBC), determining to include at least one MV candidate from a plurality of MV candidates in the MV candidates without evaluating whether the at least one MV candidate is different from an MV candidate already included in the MV candidate list.
[0212] Example 36: A method for decoding video data, the method comprising: generating a motion vector (MV) candidate list for a current block of a current image of the video data, wherein generating the MV candidate list comprises: evaluating corresponding MV candidates for inclusion in the MV candidate list based on the motion vectors of corresponding MV candidates among multiple MV candidates; selecting a specific MV from the MV candidate list that identifies a prediction value block in the current image; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0213] Example 37: The method according to Example 36, wherein evaluating the corresponding MV candidate based on the motion vector of the corresponding MV candidate includes: pruning the corresponding MV candidate based on a comparison between the motion vector of the corresponding MV candidate and the motion vectors of candidates included in the MV candidate list.
[0214] Example 38: A method according to any one of Examples 36-37, wherein pruning the corresponding MV candidate based on a comparison between the motion vector of the corresponding MV candidate and the motion vector of the candidate included in the MV candidate list includes: determining whether the motion vector of the corresponding MV candidate is different from the motion vector of the candidate included in the MV candidate list; and in response to determining that the motion vector of the corresponding MV candidate is different from the motion vector of the candidate included in the MV candidate list, including the corresponding MV candidate in the MV candidate list.
[0215] Example 39: A method according to any one of Examples 36-38, wherein pruning the corresponding MV candidate based on a comparison between the motion vector of the corresponding MV candidate and the motion vector of the candidate included in the MV candidate list includes: pruning the corresponding MV candidate based only on a comparison between the motion vector of the corresponding MV candidate and the motion vector of the candidate included in the MV candidate list.
[0216] Example 40: A method according to any one of Examples 36-39, wherein pruning the corresponding MV candidate based on a comparison between the motion vector of the corresponding MV candidate and the motion vector of the candidate included in the MV candidate list includes: not pruning the corresponding MV candidate based on a comparison between the reference index of the corresponding MV candidate and the reference index of the candidate included in the MV candidate list.
[0217] Example 41: The method of any one of Examples 32-40, wherein the MV candidate list comprises one of: an intra block copy (IBC) merge / skip list; or an advanced motion vector prediction (AMVP) list.
[0218] Example 42: A method for decoding video data, the method comprising: obtaining a motion vector for a current block of a current image of the video data, wherein the motion vector identifies a prediction value block in the current image; rounding the motion vector to obtain a chrominance motion vector; and reconstructing pixels of the current block based on pixels of the prediction value block.
[0219] Example 43: The method of Example 42, wherein the motion vector for obtaining the chroma motion vector comprises rounding the motion vector according to the following equation:
[0220] offset i =1<<(shift i -1)
[0221]
[0222] Among them, MV i Represents motion vector, MVChorma i Represents the chroma motion vector, i is equal to x or y (the MV component in the horizontal and vertical directions), and shift i Indicates the shift value.
[0223] Example 44: The method of Example 43, wherein the shift value is determined based on one or more of an MV bit precision and a chroma format.
[0224] Example 45: The method of any of Examples 43-44, wherein the shift value is predetermined.
[0225] Example 46: A method according to any combination of Examples 21-45, wherein the decoding includes decoding.
[0226] Example 47: A method according to any combination of Examples 21-45, wherein decoding includes encoding.
[0227] Example 48: An apparatus for decoding video data, the apparatus comprising one or more components for performing the method according to any combination of Examples 21-45.
[0228] Example 49: The apparatus of Example 48, wherein the one or more components include one or more processors implemented in a circuit.
[0229] Example 50: The device according to any combination of Examples 48 and 49, further comprising a memory for storing video data.
[0230] Example 51: The device of any combination of Examples 48-50, further comprising a display configured to display the decoded video data.
[0231] Example 52: A device according to any combination of Examples 48-51, wherein the device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0232] Example 53: A device according to any combination of Examples 48-52, wherein the device comprises a video decoder.
[0233] Example 54: A device according to any combination of Examples 48-53, wherein the device comprises a video encoder.
[0234] Example 55: A computer readable storage medium having instructions stored thereon which, when executed, cause one or more processors to perform a method according to any combination of Examples 1 to 55.
[0235] Example 56: Any combination according to Examples 1-55.
[0236] It should be appreciated that, according to examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary to practice the techniques). In addition, in some examples, actions or events may be performed concurrently via multithreading, interrupt handling, or multiple processors, rather than sequentially.
[0237] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or sent via a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media such as data storage media, or communication media including any media that facilitates, for example, transferring a computer program from one location to another according to a communication protocol. In this manner, computer-readable media may generally correspond to (1) non-transitory tangible computer-readable storage media or (2) communication media such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in the present disclosure. A computer program product may include computer-readable media.
[0238] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory or any other medium that can be used to store the required program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to send instructions from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals or other transient media, but are instead directed to non-temporary tangible storage media. The disks and optical disks used herein include CDs, laser optical disks, optical optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein the disks usually copy data magnetically, while the optical disks reproduce data optically using lasers. The above combination should also be included in the scope of computer-readable media.
[0239] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuitry" as used herein may refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, the techniques may be implemented entirely in one or more circuits or logic elements.
[0240] The techniques of this disclosure may be implemented in a variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in this disclosure to emphasize functional aspects of a device configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Instead, as described above, in conjunction with appropriate software and / or firmware, the various units may be combined in a codec hardware unit or provided by a collection of interoperable hardware units, including one or more processors as described above.
[0241] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for decoding video data, the method include: In response to determining that a first block of a current image of video data is predicted using intra block copy (IBC), generating a first motion vector MV candidate list for the first block, wherein generating the first MV candidate list comprises: determining one or more history-based motion vector prediction (HMVP) candidates; and including an HMVP candidate from the one or more HMVP candidates as a last candidate in the first MV candidate list; selecting a specific MV candidate identifying a prediction value block in the current image from the first MV candidate list; reconstructing pixels of the first block based on pixels of the predicted value block; In response to determining that a second block of the current image of video data is predicted using inter prediction, generating a second MV candidate list for the second block, wherein generating the second MV candidate list for the second block comprises: determining a maximum number of candidates to be included in the second MV candidate list for the second block; and In response to determining that the number of candidates in the second MV candidate list for the second block is equal to the maximum number of candidates to be included in the second MV candidate list for the second block minus one, not including an additional HMVP candidate for the second block in the second MV candidate list for the second block such that a last candidate in the second MV candidate list for the second block is not a HMVP candidate; selecting a particular MV candidate from the second MV candidate list for the second block, the particular MV candidate identifying a prediction value block for the second block in a picture of video data different from the current picture; and The pixels of the second block are reconstructed based on the pixels of the prediction value block of the second block.
2. The method according to claim 1, in, Generating the first MV candidate list for the first block includes not evaluating any pair-wise candidates for inclusion in the first MV candidate list for the first block.
3. The method according to claim 2, in, Generating the second MV candidate list for the second block includes evaluating one or more pairs of candidates for inclusion in the second MV candidate list for the second block.
4. The method according to claim 3, in, Generating the first MV candidate list for the first block further includes: An upper-left neighboring B2 candidate is evaluated for inclusion in the first MV candidate list for the first block, wherein a current number of candidates included in the first MV candidate list for the first block is greater than or equal to four.
5. The method according to claim 3, in, The first MV candidate list for the first block includes an IBC merge / skip list.
6. A device for decoding video data, the device include: A memory configured to store the video data; as well as One or more processors implemented in circuitry and configured to: In response to determining that a first block of a current image of video data is predicted using intra block copy (IBC), generating a first motion vector MV candidate list for the first block, wherein to generate the first MV candidate list, the one or more processors are configured to: determining one or more history-based motion vector prediction (HMVP) candidates; and including an HMVP candidate from the one or more HMVP candidates as a last candidate in the first MV candidate list; selecting a specific MV candidate identifying a prediction value block in the current image from the first MV candidate list; reconstructing pixels of the first block based on pixels of the prediction value block; In response to determining that a second block of the current image of video data is predicted using inter prediction, generating a second MV candidate list for the second block, wherein to generate the second MV candidate list for the second block, the one or more processors are configured to: determining a maximum number of candidates to be included in the second MV candidate list for the second block; and In response to determining that the number of candidates in the second MV candidate list for the second block is equal to the maximum number of candidates to be included in the second MV candidate list for the second block minus one, not including an additional HMVP candidate for the second block in the second MV candidate list for the second block such that a last candidate in the second MV candidate list for the second block is not a HMVP candidate; selecting a particular MV candidate from the second MV candidate list for the second block, the particular MV candidate identifying a prediction value block for the second block in a picture of video data different from the current picture; and The pixels of the second block are reconstructed based on the pixels of the prediction value block of the second block.
7. The device according to claim 6, in, To generate the first MV candidate list for the first block, the one or more processors are configured to not evaluate any pair-wise candidates for inclusion in the first MV candidate list for the first block.
8. The device according to claim 7, in, To generate the second MV candidate list for the second block, the one or more processors are configured to evaluate one or more pairs of candidates for inclusion in the second MV candidate list for the second block.
9. The device according to claim 8, in, To generate the first MV candidate list for the first block, the one or more processors are configured to: B2 candidates are evaluated for inclusion in the first MV candidate list for the first block, wherein a current number of candidates included in the first MV candidate list for the first block is greater than or equal to four.
10. The device according to claim 8, in, The first MV candidate list for the first block includes an IBC merge / skip list.
11. The device according to claim 6, in, The video codec includes a video decoder.
12. The apparatus of claim 11, further comprising a display configured to display the decoded video data.
13. The device according to claim 11, in, The device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
14. The device according to claim 6, in, The apparatus includes a video encoder.
15. A computer-readable storage medium storing instructions that, when executed, cause one or more processors of a video decoder to: In response to determining that a first block of a current picture of video data is predicted using intra block copying (IBC), generating a first motion vector MV candidate list for the first block, in, The instructions causing the one or more processors to generate a first MV candidate list include instructions causing the one or more processors to: Determining one or more history-based motion vector prediction (HMVP) candidates; as well as including an HMVP candidate from the one or more HMVP candidates as a last candidate in the first MV candidate list; selecting a specific MV candidate identifying a prediction value block in the current image from the first MV candidate list; reconstructing pixels of the first block based on pixels of the predicted value block; In response to determining that a second block of the current image of video data is predicted using inter prediction, generating a second MV candidate list for the second block, wherein the instructions causing the one or more processors to generate the second MV candidate list for the second block include instructions causing the one or more processors to: determining a maximum number of candidates to be included in the second MV candidate list for the second block; and In response to determining that the number of candidates in the second MV candidate list for the second block is equal to the maximum number of candidates to be included in the second MV candidate list for the second block minus one, not including an additional HMVP candidate for the second block in the second MV candidate list for the second block such that a last candidate in the second MV candidate list for the second block is not a HMVP candidate; selecting a particular MV candidate from the second MV candidate list for the second block, the particular MV candidate identifying a prediction value block for the second block in a picture of video data different from the current picture; and The pixels of the second block are reconstructed based on the pixels of the prediction value block of the second block.
16. The computer-readable storage medium according to claim 15, in, The instructions to cause the one or more processors to generate the first MV candidate list for the first block include instructions to cause the one or more processors to not evaluate any pairs of candidates for inclusion in the first MV candidate list for the first block.
17. The computer-readable storage medium according to claim 16, in, The instructions to cause the one or more processors to generate the second MV candidate list for the second block include instructions to cause the one or more processors to evaluate one or more pairs of candidates for inclusion in the second MV candidate list for the second block.
