Embodiments of the present disclosure relates generally to video coding techniques, and more particularly, to intra block copy (IBC) extension.
In nowadays, digital video capabilities are being applied in various aspects of peoples' lives. Multiple types of video compression technologies, such as MPEG-2, MPEG-4, ITU-TH.263, ITU-TH.264/MPEG-4 Part 10 Advanced Video Coding (AVC), ITU-TH.265 high efficiency video coding (HEVC) standard, versatile video coding (VVC) standard, have been proposed for video encoding/decoding. However, coding efficiency of conventional video coding techniques is generally very low, which is undesirable.
Embodiments of the present disclosure provide a solution for video processing.
In a first aspect, a method for video processing is proposed. The method comprises: determining, during a conversion between a target video block of a video and a bitstream of the video, an intra block copy (IBC) -based mode to be applied for the target video block, the IBC-based mode being based on at least one of the following: an IBC mode based on affine motion compensated prediction, an affine IBC merge mode with block vector differences (MBVD), an intra template matching for IBC mode (TM_IBC), wherein a derived block vector (BV) by the TM_IBC is used as base candidates for the MBVD, an intra template matching for IBC mode (TM_IBC), wherein a derived block vector (BV) by the TM_IBC is used as BV prediction candidate for IBC non-merge mode, an IBC prediction mode based on multi-hypothesis, an IBC mode based on overlapped block motion compensation (OBMC), an IBC mode based on geometric partitioning with the MBVD, or an IBC mode based on geometric partitioning with template matching (TM); and performing the conversion based on the IBC-based mode. The method in accordance with the first aspect of the present disclosure provides improvement for IBC. More IBC based modes can be supported to improve the coding efficiency of IBC-based mode.
In a second aspect, an apparatus for processing video data is proposed. The apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform a method in accordance with the first aspect.
In a third aspect, an apparatus for processing video data is proposed. The non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with the first aspect.
In a fourth aspect, a non-transitory computer-readable recording medium is proposed. The non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining an IBC-based mode to be applied for the target video block, the IBC-based mode being based on at least one of the following: an IBC mode based on affine motion compensated prediction, an affine IBC MBVD, an TM_IBC, wherein a derived BV by the TM_IBC is used as base candidates for the MBVD, an TM_IBC, wherein a derived BV by the TM_IBC is used as BV prediction candidate for IBC non-merge mode, an IBC prediction mode based on multi-hypothesis, an IBC mode based on OBMC, an IBC mode based on geometric partitioning with the MBVD, or an IBC mode based on geometric partitioning with TM; and generating the bitstream based on the IBC-based mode.
In a fifth aspect, another method for video processing is proposed. The method for storing a bitstream of a video, comprising: determining an IBC-based mode to be applied for the target video block, the IBC-based mode being based on at least one of the following: an IBC mode based on affine motion compensated prediction, an affine IBC MBVD, an TM_IBC, wherein a derived BV by the TM_IBC is used as base candidates for the MBVD, an TM_IBC, wherein a derived BV by the TM_IBC is used as BV prediction candidate for IBC non-merge mode, an IBC prediction mode based on multi-hypothesis, an IBC mode based on OBMC, an IBC mode based on geometric partitioning with the MBVD, or an IBC mode based on geometric partitioning with TM; generating the bitstream based on the IBC-based mode; and storing the bitstream in a non-transitory computer-readable recording medium.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Through the following detailed description with reference to the accompanying drawings, the above and other objectives, features, and advantages of example embodiments of the present disclosure will become more apparent. In the example embodiments of the present disclosure, the same reference numerals usually refer to the same components.
Throughout the drawings, the same or similar reference numerals usually refer to the same or similar elements.
Principle of the present disclosure will now be described with reference to some embodiments. It is to be understood that these embodiments are described only for the purpose of illustration and help those skilled in the art to understand and implement the present disclosure, without suggesting any limitation as to the scope of the disclosure. The disclosure described herein can be implemented in various manners other than the ones described below.
In the following description and claims, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skills in the art to which this disclosure belongs.
References in the present disclosure to “one embodiment,” “an embodiment,” “an example embodiment,” and the like indicate that the embodiment described may include a particular feature, structure, or characteristic, but it is not necessary that every embodiment includes the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an example embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
It shall be understood that although the terms “first” and “second” etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term “and/or” includes any and all combinations of one or more of the listed terms.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises”, “comprising”, “has”, “having”, “includes” and/or “including”, when used herein, specify the presence of stated features, elements, and/or components etc., but do not preclude the presence or addition of one or more other features, elements, components and/or combinations thereof.
The video source 112 may include a source such as a video capture device. Examples of the video capture device include, but are not limited to, an interface to receive video data from a video content provider, a computer graphics system for generating video data, and/or a combination thereof.
The video data may comprise one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. The I/O interface 116 may include a modulator/demodulator and/or a transmitter. The encoded video data may be transmitted directly to destination device 120 via the I/O interface 116 through the network 130A. The encoded video data may also be stored onto a storage medium/server 130B for access by destination device 120.
The destination device 120 may include an I/O interface 126, a video decoder 124, and a display device 122. The I/O interface 126 may include a receiver and/or a modem. The I/O interface 126 may acquire encoded video data from the source device 110 or the storage medium/server 130B. The video decoder 124 may decode the encoded video data. The display device 122 may display the decoded video data to a user. The display device 122 may be integrated with the destination device 120, or may be external to the destination device 120 which is configured to interface with an external display device.
The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVC) standard and other current and/or further standards.
The video encoder 200 may be configured to implement any or all of the techniques of this disclosure. In the example of
In some embodiments, the video encoder 200 may include a partition unit 201, a predication unit 202 which may include a mode select unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra-prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.
In other examples, the video encoder 200 may include more, fewer, or different functional components. In an example, the predication unit 202 may include an intra block copy (IBC) unit. The IBC unit may perform predication in an IBC mode in which at least one reference picture is a picture where the current video block is located.
Furthermore, although some components, such as the motion estimation unit 204 and the motion compensation unit 205, may be integrated, but are represented in the example of
The partition unit 201 may partition a picture into one or more video blocks. The video encoder 200 and the video decoder 300 may support various video block sizes.
The mode select unit 203 may select one of the coding modes, intra or inter, e.g., based on error results, and provide the resulting intra-coded or inter-coded block to a residual generation unit 207 to generate residual block data and to a reconstruction unit 212 to reconstruct the encoded block for use as a reference picture. In some examples, the mode select unit 203 may select a combination of intra and inter predication (CIIP) mode in which the predication is based on an inter predication signal and an intra predication signal. The mode select unit 203 may also select a resolution for a motion vector (e.g., a sub-pixel or integer pixel precision) for the block in the case of inter-predication.
To perform inter prediction on a current video block, the motion estimation unit 204 may generate motion information for the current video block by comparing one or more reference frames from buffer 213 to the current video block. The motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from the buffer 213 other than the picture associated with the current video block.
The motion estimation unit 204 and the motion compensation unit 205 may perform different operations for a current video block, for example, depending on whether the current video block is in an I-slice, a P-slice, or a B-slice. As used herein, an “I-slice” may refer to a portion of a picture composed of macroblocks, all of which are based upon macroblocks within the same picture. Further, as used herein, in some aspects, “P-slices” and “B-slices” may refer to portions of a picture composed of macroblocks that are not dependent on macroblocks in the same picture.
In some examples, the motion estimation unit 204 may perform uni-directional prediction for the current video block, and the motion estimation unit 204 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. The motion estimation unit 204 may then generate a reference index that indicates the reference picture in list 0 or list 1 that contains the reference video block and a motion vector that indicates a spatial displacement between the current video block and the reference video block. The motion estimation unit 204 may output the reference index, a prediction direction indicator, and the motion vector as the motion information of the current video block. The motion compensation unit 205 may generate the predicted video block of the current video block based on the reference video block indicated by the motion information of the current video block.
Alternatively, in other examples, the motion estimation unit 204 may perform bi-directional prediction for the current video block. The motion estimation unit 204 may search the reference pictures in list 0 for a reference video block for the current video block and may also search the reference pictures in list 1 for another reference video block for the current video block. The motion estimation unit 204 may then generate reference indexes that indicate the reference pictures in list 0 and list 1 containing the reference video blocks and motion vectors that indicate spatial displacements between the reference video blocks and the current video block. The motion estimation unit 204 may output the reference indexes and the motion vectors of the current video block as the motion information of the current video block. The motion compensation unit 205 may generate the predicted video block of the current video block based on the reference video blocks indicated by the motion information of the current video block.
In some examples, the motion estimation unit 204 may output a full set of motion information for decoding processing of a decoder. Alternatively, in some embodiments, the motion estimation unit 204 may signal the motion information of the current video block with reference to the motion information of another video block. For example, the motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.
In one example, the motion estimation unit 204 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 300 that the current video block has the same motion information as the another video block.
In another example, the motion estimation unit 204 may identify, in a syntax structure associated with the current video block, another video block and a motion vector difference (MVD). The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 300 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.
As discussed above, video encoder 200 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 200 include advanced motion vector predication (AMVP) and merge mode signaling.
The intra prediction unit 206 may perform intra prediction on the current video block. When the intra prediction unit 206 performs intra prediction on the current video block, the intra prediction unit 206 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a predicted video block and various syntax elements.
The residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by the minus sign) the predicted video block (s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks that correspond to different sample components of the samples in the current video block.
In other examples, there may be no residual data for the current video block for the current video block, for example in a skip mode, and the residual generation unit 207 may not perform the subtracting operation.
The transform processing unit 208 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to a residual video block associated with the current video block.
After the transform processing unit 208 generates a transform coefficient video block associated with the current video block, the quantization unit 209 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values associated with the current video block.
The inverse quantization unit 210 and the inverse transform unit 211 may apply inverse quantization and inverse transforms to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. The reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the predication unit 202 to produce a reconstructed video block associated with the current video block for storage in the buffer 213.
After the reconstruction unit 212 reconstructs the video block, loop filtering operation may be performed to reduce video blocking artifacts in the video block.
The entropy encoding unit 214 may receive data from other functional components of the video encoder 200. When the entropy encoding unit 214 receives the data, the entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.
The video decoder 300 may be configured to perform any or all of the techniques of this disclosure. In the example of
In the example of
The entropy decoding unit 301 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data). The entropy decoding unit 301 may decode the entropy coded video data, and from the entropy decoded video data, the motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. The motion compensation unit 302 may, for example, determine such information by performing the AMVP and merge mode. AMVP is used, including derivation of several most probable candidates based on data from adjacent PBs and the reference picture. Motion information typically includes the horizontal and vertical motion vector displacement values, one or two reference picture indices, and, in the case of prediction regions in B slices, an identification of which reference picture list is associated with each index. As used herein, in some aspects, a “merge mode” may refer to deriving the motion information from spatially or temporally neighboring blocks.
The motion compensation unit 302 may produce motion compensated blocks, possibly performing interpolation based on interpolation filters. Identifiers for interpolation filters to be used with sub-pixel precision may be included in the syntax elements.
The motion compensation unit 302 may use the interpolation filters as used by the video encoder 200 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. The motion compensation unit 302 may determine the interpolation filters used by the video encoder 200 according to the received syntax information and use the interpolation filters to produce predictive blocks.
The motion compensation unit 302 may use at least part of the syntax information to determine sizes of blocks used to encode frame(s) and/or slice(s) of the encoded video sequence, partition information that describes how each macroblock of a picture of the encoded video sequence is partitioned, modes indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter-encoded block, and other information to decode the encoded video sequence. As used herein, in some aspects, a “slice” may refer to a data structure that can be decoded independently from other slices of the same picture, in terms of entropy coding, signal prediction, and residual signal reconstruction. A slice can either be an entire picture or a region of a picture.
The intra prediction unit 303 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. The inverse quantization unit 304 inverse quantizes, i.e., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 301. The inverse transform unit 305 applies an inverse transform.
The reconstruction unit 306 may obtain the decoded blocks, e.g., by summing the residual blocks with the corresponding prediction blocks generated by the motion compensation unit 302 or intra-prediction unit 303. If desired, a deblocking filter may also be applied to filter the decoded blocks in order to remove blockiness artifacts. The decoded video blocks are then stored in the buffer 307, which provides reference blocks for subsequent motion compensation/intra predication and also produces decoded video for presentation on a display device.
Some exemplary embodiments of the present disclosure will be described in detailed hereinafter. It should be understood that section headings are used in the present document to facilitate ease of understanding and do not limit the embodiments disclosed in a section to only that section. Furthermore, while certain embodiments are described with reference to Versatile Video Coding or other specific video codecs, the disclosed techniques are applicable to other video coding technologies also. Furthermore, while some embodiments describe video coding steps in detail, it will be understood that corresponding steps decoding that undo the coding will be implemented by a decoder. Furthermore, the term video processing encompasses video coding or compression, video decoding or decompression and video transcoding in which video pixels are represented from one compressed format into another compressed format or at a different compressed bitrate.
This disclosure is related to video coding technologies. Specifically, it is about IBC prediction and related techniques in video coding. It may be applied to the existing video coding standard like HEVC, VVC, etc. It may be also applicable to future video coding standards or video codec.
Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO/IEC standards. The ITU-T produced H.261 and H.263, ISO/IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H.262/MPEG-2 Video and H.264/MPEG-4 Advanced Video Coding (AVC) and H.265/HEVC standards. Since H.262, the video coding standards are based on the hybrid video coding structure wherein temporal prediction plus transform coding are utilized. To explore the future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was founded by VCEG and MPEG jointly in 2015. The JVET meeting is concurrently held once every quarter, and the new video coding standard was officially named as Versatile Video Coding (VVC) in the April 2018 JVET meeting, and the first version of VVC test model (VTM) was released at that time. The VVC working draft and test model VTM are then updated after every meeting. The VVC project achieved technical completion (FDIS) at the July 2020 meeting.
In VVC, the merge candidate list is constructed by including the following five types of candidates in order:
The size of merge list is signalled in sequence parameter set header and the maximum allowed size of merge list is 6. For each CU code in merge mode, an index of best merge candidate is encoded using truncated unary binarization (TU). The first bin of the merge index is coded with context and bypass coding is used for other bins.
The derivation process of each category of merge candidates is provided in this session. As done in HEVC, VVC also supports parallel derivation of the merging candidate lists for all CUs within a certain size of area.
In this step, only one candidate is added to the list. Particularly, in the derivation of this temporal merge candidate, a scaled motion vector is derived based on co-located CU belonging to the collocated reference picture. The reference picture list to be used for derivation of the co-located CU is explicitly signalled in the slice header.
The history-based MVP (HMVP) merge candidates are added to merge list after the spatial MVP and TMVP. In this method, the motion information of a previously coded block is stored in a table and used as MVP for the current CU. The table with multiple HMVP candidates is maintained during the encoding/decoding process. The table is reset (emptied) when a new CTU row is encountered. Whenever there is a non-subblock inter-coded CU, the associated motion information is added to the last entry of the table as a new HMVP candidate.
The HMVP table size S is set to be 6, which indicates up to 6 History-based MVP (HMVP) candidates may be added to the table. When inserting a new motion candidate to the table, a constrained first-in-first-out (FIFO) rule is utilized wherein redundancy check is firstly applied to find whether there is an identical HMVP in the table. If found, the identical HMVP is removed from the table and all the HMVP candidates afterwards are moved forward,
HMVP candidates could be used in the merge candidate list construction process. The latest several HMVP candidates in the table are checked in order and inserted to the candidate list after the TMVP candidate. Redundancy check is applied on the HMVP candidates to the spatial or temporal merge candidate.
To reduce the number of redundancy check operations, the following simplifications are introduced:
Pairwise average candidates are generated by averaging predefined pairs of candidates in the existing merge candidate list, and the predefined pairs are defined as {(0, 1), (0, 2), (1, 2), (0, 3), (1, 3), (2, 3)}, where the numbers denote the merge indices to the merge candidate list. The averaged motion vectors are calculated separately for each reference list. If both motion vectors are available in one list, these two motion vectors are averaged even when they point to different reference pictures; if only one motion vector is available, use the one directly; if no motion vector is available, keep this list invalid. When the merge list is not full after pair-wise average merge candidates are added, the zero MVPs are inserted in the end until the maximum merge candidate number is encountered.
2.2.1 Non-adjacent merge candidates derivation
It is proposed to derive the additional merge candidates from the positions non-adjacent to the current block using the same pattern as that in VVC. To achieve this, for each search round i, a virtual block is generated based on the current block as follows:
First, the relative position of the virtual block to the current block is calculated by:
where the Offsetx and Offsety denote the offset of the top-left corner of the virtual block relative to the top-left corner of the current block, gridX and gridY are the width and height of the search grid.
Second, the width and height of the virtual block are calculated by:
where the currWidth and currHeight are the width and height of current block. The newWidth and newHeight are the width and height of new virtual block.
gridX and gridY are currently set to currWidth and currHeight, respectively.
After generating the virtual block, the blocks A1, B1, C1, D1 and E1 can be regarded as the VVC spatial neighboring blocks of the virtual block and their positions are obtained with the same pattern as that in VVC. Obviously, the virtual block is the current block if the search round i is 0. In this case, the blocks A1, B1, C1, D1 and E1 are the spatially neighboring blocks that are used in VVC merge mode. When constructing the merge candidate list, the pruning is performed to guarantee each element in merge candidate list to be unique. The maximum search round is set to 1, which means that five non-adjacent spatial neighbor blocks are utilized.
Non-adjacent spatial merge candidates are inserted into the merge list after the temporal merge candidate in the order of B1−>A1->C1−>D1->E1.
It is proposed to derive an averaging candidate as STMVP candidate using three spatial merge candidates and one temporal merge candidate.
STMVP is inserted before the above-left spatial merge candidate.
The STMVP candidate is pruned with all the previous merge candidates in the merge list.
For the spatial candidates, the first three candidates in the current merge candidate list are used.
For the temporal candidate, the same position as VTM/HEVC collocated position is used.
For the spatial candidates, the first, second, and third candidates inserted in the current merge candidate list before STMVP are denoted as F, S, and T.
The temporal candidate with the same position as VTM/HEVC collocated position used in TMVP is denoted as Col.
The motion vector of the STMVP candidate in prediction direction X (denoted as mvLX) is derived as follows:
2) If reference indices of three of the four merge candidates are valid and are equal to zero in prediction direction X (X=0 or 1),
3) If reference indices of two of the four merge candidates are valid and are equal to zero in prediction direction X (X=0 or 1),
Note: If the temporal candidate is unavailable, the STMVP mode is off.
If considering both non-adjacent and STMVP merge candidates, the size of merge list is signalled in sequence parameter set header and the maximum allowed size of merge list is increased (e.g. 8).
VVC supports the subblock-based temporal motion vector prediction (SbTMVP) method. Similar to the temporal motion vector prediction (TMVP) in HEVC, SbTMVP uses the motion field in the collocated picture to improve motion vector prediction and merge mode for CUs in the current picture. The same collocated picture used by TMVP is used for SbTMVP. SbTMVP differs from TMVP in the following two main aspects:
In VVC, a combined subblock based merge list which contains both SbTMVP candidate and affine merge candidates is used for the signalling of subblock based merge mode. The SbTMVP mode is enabled/disabled by a sequence parameter set (SPS) flag. If the SbTMVP mode is enabled, the SbTMVP predictor is added as the first entry of the list of subblock based merge candidates, and followed by the affine merge candidates. The size of subblock based merge list is signalled in SPS and the maximum allowed size of the subblock based merge list is 5 in VVC.
The sub-CU size used in SbTMVP is fixed to be 8×8, and as done for affine merge mode, SbTMVP mode is only applicable to the CU with both width and height are larger than or equal to 8.
The encoding logic of the additional SbTMVP merge candidate is the same as for the other merge candidates, that is, for each CU in P or B slice, an additional RD check is performed to decide whether to use the SbTMVP candidate.
Intra block copy (IBC) is a tool adopted in HEVC extensions on SCC. It is well known that it significantly improves the coding efficiency of screen content materials. Since IBC mode is implemented as a block level coding mode, block matching (BM) is performed at the encoder to find the optimal block vector (or motion vector) for each CU. Here, a block vector is used to indicate the displacement from the current block to a reference block, which is already reconstructed inside the current picture. The luma block vector of an IBC-coded CU is in integer precision. The chroma block vector rounds to integer precision as well. When combined with AMVR, the IBC mode can switch between 1-pel and 4-pel motion vector precisions. An IBC-coded CU is treated as the third prediction mode other than intra or inter prediction modes. The IBC mode is applicable to the CUs with both width and height smaller than or equal to 64 luma samples.
At the encoder side, hash-based motion estimation is performed for IBC. The encoder performs RD check for blocks with either width or height no larger than 16 luma samples. For non-merge mode, the block vector search is performed using hash-based search first. If hash search does not return valid candidate, block matching based local search will be performed.
In the hash-based search, hash key matching (32-bit CRC) between the current block and a reference block is extended to all allowed block sizes. The hash key calculation for every position in the current picture is based on 4×4 subblocks. For the current block of a larger size, a hash key is determined to match that of the reference block when all the hash keys of all 4×4 subblocks match the hash keys in the corresponding reference locations. If hash keys of multiple reference blocks are found to match that of the current block, the block vector costs of each matched reference are calculated and the one with the minimum cost is selected.
In block matching search, the search range is set to cover both the previous and current CTUs.
At CU level, IBC mode is signalled with a flag and it can be signaled as IBC AMVP mode or IBC skip/merge mode as follows:
The BV predictors for merge mode and AMVP mode in IBC will share a common predictor list, which consist of the following elements:
For merge mode, up to first 6 entries of this list will be used; for AMVP mode, the first 2 entries of this list will be used. And the list conforms with the shared merge list region requirement (shared the same list within the SMR).
To reduce memory consumption and decoder complexity, the IBC in VVC allows only the reconstructed portion of the predefined area including the region of current CTU and some region of the left CTU.
Depending on the location of the current coding CU location within the current CTU, the following applies:
This restriction allows the IBC mode to be implemented using local on-chip memory for hardware implementations.
2.4.3 IBC Interaction with Other Coding Tools
The interaction between IBC mode and other inter coding tools in VVC, such as pairwise merge candidate, history based motion vector predictor (HMVP), combined intra/inter prediction mode (CIIP), merge mode with motion vector difference (MMVD), and geometric partitioning mode (GPM) are as follows:
Unlike in the HEVC screen content coding extension, the current picture is no longer included as one of the reference pictures in the reference picture list 0 for IBC prediction. The derivation process of motion vectors for IBC mode excludes all neighboring blocks in inter mode and vice versa. The following IBC design aspects are applied:
A virtual buffer concept is used to describe the allowable reference region for IBC prediction mode and valid block vectors. Denote CTU size as ctbSize, the virtual buffer, ibcBuf, has width being wIbcBuf=128×128/ctbSize and height hIbcBuf=ctbSize. For example, for a CTU size of 128×128, the size of ibcBuf is also 128×128; for a CTU size of 64×64, the size of ibcBuf is 256×64; and a CTU size of 32×32, the size of ibcBuf is 512×32.
The size of a VPDU is min(ctbSize, 64) in each dimension, Wv=min(ctbSize, 64).
The virtual IBC buffer, ibcBuf is maintained as follows.
For a block covering the coordinates (x, y), if the following is true for a block vector by =(bv[0], bv[1]), then it is valid; otherwise, it is not valid:
A luma block vector bvL (the luma block vector in, 1/16 fractional-sample accuracy) shall obey the following constraints:
Otherwise, bvL is considered as an invalid by.
The samples are processed in units of CTBs. The array size for each luma CTB in both width and height is CtbSizeY in units of samples.
To improve the coding efficiency, after the merge candidate list is constructed, the order of each merge candidate is adjusted according to the template matching cost. The merge candidates are arranged in the list in accordance with the template matching cost of ascending order. It is operated in the form of sub-group.
The template size (width of the left template or height of the above template) is 1. The sub-group size is 3.
We can assume the number of the merge candidates is 8. We take the first 5 merge candidates as a first subgroup and take the following 3 merge candidates as a second subgroup (i.e. the last subgroup).
More specifically, the template matching costs for the merge candidates in all subgroups except the last subgroup are computed at block 1604; then reorder the merge candidates in their own subgroups except the last subgroup at block 1606; finally, the final merge candidate list will be got at block 1608.
More specifically, if the selected merge candidate is located in the last subgroup at block 1702, the merge candidate list construction process is terminated after the selected merge candidate is derived at block 1704, no reorder is performed and the merge candidate list is not changed at block 1706; otherwise, the execution process is as follows:
The merge candidate list construction process is terminated after all the merge candidates in the selected subgroup are derived at block 1708; compute the template matching costs for the merge candidates in the selected subgroup at block 1710; reorder the merge candidates in the selected subgroup at block 1712; finally, a new merge candidate list will be got at block 1714.
For both encoder and decoder,
A template matching cost is derived as a function of T and RT, wherein T is a set of samples in the template and RT is a set of reference samples for the template.
When deriving the reference samples of the template for a merge candidate, the motion vectors of the merge candidate are rounded to the integer pixel accuracy. It can also be derived using 8 tap or 12 tap luma interpolation filter.
The reference samples of the template (RT) for bi-directional prediction are derived by weighted averaging of the reference samples of the template in reference list0 (RT0) and the reference samples of the template in reference list1 (RiT1) as follows.
where the weight of the reference template in reference list0 (8-w) and the weight of the reference template in reference list1 (w) are decided by the BCW index of the merge candidate. BCW index equal to {0, 1, 2, 3, 4} corresponds to w equal to {-2,3,4,5,10}, respectively.
If the Local Illumination Compensation (LIC) flag of the merge candidate is true, the reference samples of the template are derived with LIC method.
The template matching cost is calculated based on the sum of absolute differences (SAD) of T and RT.
The template size is 1. That means the width of the left template and/or the height of the above template is 1.
If the coding mode is MMVD, the merge candidates to derive the base merge candidates are not reordered.
If the coding mode is GPM, the merge candidates to derive the uni-prediction candidate list are not reordered.
Template matching (TM) is a decoder-side MV derivation method to refine the motion information of the current CU by finding the closest match between a template (i.e., top and/or left neighbouring blocks of the current CU) in the current picture and a block (i.e., same size to the template) in a reference picture.
In AMVP mode, an MVP candidate is determined based on template matching error to pick up the one which reaches the minimum difference between current block template and reference block template, and then TM performs only for this particular MVP candidate for MV refinement. TM refines this MVP candidate, starting from full-pel MVD precision (or 4-pel for 4-pel AMVR mode) within a [−8, +8]-pel search range by using iterative diamond search. The AMVP candidate may be further refined by using cross search with full-pel MVD precision (or 4-pel for 4-pel AMVR mode), followed sequentially by half-pel and quarter-pel ones depending on AMVR mode as specified in Table 1. This search process ensures that the MVP candidate still keeps the same MV precision as indicated by AMVR mode after TM process.
In merge mode, similar search method is applied to the merge candidate indicated by the merge index. As Table 1 shows, TM may perform all the way down to ⅛-pel MVD precision or skipping those beyond half-pel MVD precision, depending on whether the alternative interpolation filter (that is used when AMVR is of half-pel mode) is used according to merged motion information. Besides, when TM mode is enabled, template matching may work as an independent process or an extra MV refinement process between block-based and subblock-based bilateral matching (BM) methods, depending on whether BM can be enabled or not according to its enabling condition check.
At encoder side, TM merge mode will do MV refinement for each merge candidate.
Template matching prediction (TMP) is a special intra prediction mode that copies the best prediction block from the reconstructed part of the current frame, whose L-shaped templated matches the current template.
It is a coding tool that is mostly adapted for screen content coding. The prediction signal is generated at the decoder side by matching the L-shaped causal neighbor of the current block with another block in a predefined search area. This is illustrated in
Within each region, the decoder searches for the template the has least SAD with respect to the current one and uses its corresponding block as a prediction block.
The dimensions of all regions (SearchRange_w, SearchRange_h) are set proportional to the block dimension (BlkW, BlkH) in order to have a fixed number of SAD comparisons per pixel. That is:
Where ‘α’ is a constant that controls the gain/complexity trade-off.
A TIMD mode is derived from MPMs using the neighbouring template. The TIMD mode is used as an additional intra prediction method for a CU.
For each intra prediction mode in MPMs, The SATD between the prediction and reconstruction samples of the template is calculated. The intra prediction mode with the minimum SATD is selected as the TIMD mode and used for intra prediction of current CU. Position dependent intra prediction combination (PDPC) and gradient PDPC are supported in the derivation of the TIMD mode.
A flag is signalled in sequence parameter set (SPS) to enable/disable TIMD. When the flag is true, a CU level flag is signalled to indicate whether TIMD is used for the CU. The TIMD flag is signalled right after the MIP flag. If the TIMD flag is equal to true, the remaining syntax elements related to luma intra prediction mode, is skipped.
2.9.3 Interaction with New Coding Tools in ECM-1.0
When DIMD flag or MIP flag is equal to true, the TIMD flag is not signalled and set equal to false.
TIMD is allowed to be combined with ISP and MRL. When TIMD is combined with ISP or MRL and the TIMD flag is equal to true, the derived TIMD mode is used as the intra prediction mode for ISP or MRL.
When the secondary MPM is enabled, both the primary MPMs and the secondary MPMs are used to derive the TIMD mode.
6-tap interpolation filter is not used in the derivation of the TIMD mode.
During the construction of MPM list, intra prediction mode of a neighbouring block is derived as Planar when it is inter-coded. To improve the accuracy of MPM list, when a neighbouring block is inter-coded, a propagated intra prediction mode is derived using the motion vector and reference picture and used in the construction of MPM list.
Hereinafter, template is a set of reconstructed samples adjacently or non-adjacently neighboring to the current block. Reference samples of the template are derived according to the same motion information of the current block. For example, reference samples of the template are mapping of the template depend on a motion information. In this case, reference samples of the template are located by a motion vector of the motion information in a reference picture indicated by the reference index of the motion information.
When a merge candidate utilizes bi-directional prediction, the reference samples of the template of the merge candidate are denoted by RT and RT may be generated from RT0 which are derived from a reference picture in reference picture list 0 and RT1 derived from a reference picture in reference picture list 1. In one example, RT0 includes a set of reference samples on the reference picture of the current block indicated by the reference index of the merge candidate referring to a reference picture in reference list 0 with the MV of the merge candidate referring to reference list 0), In one example, RiT1 includes a set of reference samples on the reference picture of the current block indicated by the reference index of the merge candidate referring to a reference picture in reference list 1 with the MV of the merge candidate referring to reference list 1).
In one example, the reference samples of the template (RT) for bi-directional prediction are derived by equal weighted averaging of the reference samples of the template in reference list0 (RT0) and the reference samples of the template in reference list1 (RiT1). One example is as follows:
In one example, the reference samples of the template (RTbi-pred) for bi-directional prediction are derived by weighted averaging of the reference samples of the template in reference list0 (RT0) and the reference samples of the template in reference list1 (RiT1). One example is as follows:
In one example, the weight of the reference template in reference list0 such as (8−w) and the weight of the reference template in reference list1 such as (w) maybe decided by the BCW index of the merge candidate.
The merge candidates can be divided to several groups according to some criterions. Each group is called a subgroup. For example, we can take adjacent spatial and temporal merge candidates as a first subgroup and take the remaining merge candidates as a second subgroup; In another example, we can also take the first N (N>2) merge candidates as a first subgroup, take the following M (M>2) merge candidates as a second subgroup, and take the remaining merge candidates as a third subgroup. Note that the proposed methods may be applied to merge candidate list construction process for inter coded blocks (e.g., translational motion), affine coded blocks; or other motion candidate list construction process (e.g., AMVP list; IBC AMVP list; IBC merge list).
W and H are the width and height of current block (e.g., luma block). Taking merge candidate list construction process as an example in the following descriptions:
1. The merge candidates can be adaptively rearranged in the final merge candidate list according to one or some criterions.
One example is as follows:
2. Whether to and/or how to reorder the merge candidates may depend on the category of the merge candidates.
3. Whether to and/or how to reorder the merge candidates may depend on the coding mode.
4. Whether to and/or how to reorder the merge candidates may depend on the available number of adjacent spatial and/or STMVP and/or temporal merge candidates.
5. Whether the merge candidates need to be reordered or not may depend on decoded information (e.g., the width and/or height of the CU).
6. The subgroup size can be adaptive.
7. The template shape can be adaptive.
8. In above examples, the merge candidate is one candidate which is included in the final merge candidate list (e.g., after pruning).
9. The template may comprise samples of specific color component(s).
10. Whether to apply the adaptive merge candidate list reordering may depend on a message signaled in VPS/SPS/PPS/sequence header/picture header/slice header/CTU/CU/TU/PU. It may also be a region based on signaling. For example, the picture is partitioned into groups of CTU/CUs evenly or unevenly, and one flag is coded for each group to indicate whether merge candidate list reordering is applied or not.
1. The motion candidates in a motion candidate list of a block can be adaptively rearranged to derive the reordered motion candidate list according to one or some criterions, and the block is encoded/decoded according to the reordered motion candidate list.
2. How to adaptively rearrange motion candidates in a motion candidate list may depend on the decoded information, e.g., the category of a motion candidate, a category of a motion candidate list, a coding tool.
3. In one example, new MERGE/AMVP motion candidates may be generated based on the candidates reordering.
For subblock motion prediction, if the subblock size is Wsub*Hsub, the height of the above template is Ht, the width of the left template is Wt, the above template can be treated as a constitution of several sub-templates with the size of Wsub*Ht, the left template can be treated as a constitution of several sub-templates with the size of Wt*Hsub. After deriving the reference samples of each sub-template in the above similar way, the reference samples of the template are derived. Two examples are shown in
It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. For example, the term “GPM” is used to represent any coding tool that derive two sets of motion information and use the derived information and the splitting pattern to get the final prediction, e.g., TPM is also treated as GPM.
Note that the proposed methods may be applied to merge candidate list construction process for inter coded blocks (e.g., translational motion), affine coded blocks, or IBC coded blocks; or other motion candidate list construction process (e.g., normal AMVP list; affine AMVP list; IBC AMVP list).
W and H are the width and height of current block (e.g., luma block).
1. In one example, if the coding mode is TM merge, partial or full TM merge candidates may be reordered.
2. In one example, if the coding mode is a subblock based merge mode, partial or full subblock based merge candidates may be reordered.
3. In one example, if the coding mode is MMVD, the merge candidates to derive the base merge candidates may be reordered.
4. In one example, if the coding mode is MMVD, the merge candidates after the MMVD refinement may be reordered.
5. In one example, if the coding mode is affine MMVD, the merge candidates to derive the base merge candidates may be reordered.
6. In one example, if the coding mode is affine MMVD, the merge candidates after the affine MMVD refinement may be reordered.
7. In one example, if the coding mode is GMVD, the merge candidates to derive the base merge candidates may be reordered.
8. In one example, if the coding mode is GMVD, the merge candidates after the GMVD refinement may be reordered.
9. In one example, if the coding mode is GPM, the merge candidates may be reordered.
It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. For example, the term “GPM” is used to represent any coding tool that derive two sets of motion information and use the derived information and the splitting pattern to get the final prediction, e.g., TPM is also treated as GPM.
Note that the proposed methods may be applied to merge candidate list construction process for inter coded blocks (e.g., translational motion), affine coded blocks, or IBC coded blocks; or other motion candidate list construction process (e.g., normal AMVP list; affine AMVP list; IBC AMVP list).
W and H are the width and height of current block (e.g., luma block).
1. The reference samples of a template or sub-template (RT) for bi-directional prediction are derived by equal weighted averaging of the reference samples of the template or sub-template in reference list0 (RT0) and the reference samples of the template or sub-template in reference list1 (RiT1). One example is as follows:
2. The reference samples of a template or sub-template (RT) for bi-directional prediction are derived by weighted averaging of the reference samples of the template or sub-template in reference list0 (RT0) and the reference samples of the template or sub-template in reference list1 (R T1).
3. It is proposed that the reference samples of the template may be derived with LIC method.
4. It is proposed that the reference samples of the template or sub-template may be derived with OBMC method. In the following discussion, a “template” may refer to a template or a sub-template.
7. Whether to and/or how to reorder the motion candidates may depend on the category of the motion candidates.
1. In one example, the constructed affine motion candidates are not reordered.
8. In one example, the motion candidates may be divided into subgroups. Whether to and/or how to reorder the motion candidates may depend on the subgroup of the motion candidates.
9. In one example, the motion candidates which are not included in the reordering process may be treated in specified way.
10. Whether to apply the adaptive merge candidate list reordering may depend on a message signaled in VPS/SPS/PPS/sequence header/picture header/slice header/CTU/CU/TU/PU. It may also be a region based on signaling. For example, the picture is partitioned into groups of CTU/CUs evenly or unevenly, and one flag is coded for each group to indicate whether merge candidate list reordering is applied or not.
The term ‘block’ may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples/pixels. A block may be rectangular or non-rectangular.
In the disclosure, the phrase “motion candidate” may represent a merge motion candidate in a regular/extended merge list indicated by a merge candidate index, or an AMVP motion candidate in regular/extended AMVP list indicated by an AMVP candidate index, or one AMVP motion candidate, or one merge motion candidate.
In the disclosure, a motion candidate is called to be “refined” if the motion information of the candidate is modified according to information signaled from the encoder or derived at the decoder. For example, a motion vector may be refined by DMVR, FRUC, TM merge, TM AMVP, TM GPM, TM CIIP, TM affine, MMVD, GMVD, affine MMVD, BDOF and so on.
In the disclosure, the phrase “coding data refinement” may represent a refinement process in order to derive or refine the signalled/decoded/derived prediction modes, prediction directions, or signalled/decoded/derived motion information, prediction and/or reconstruction samples for a block. In one example, the refinement process may include motion candidate reordering. In the following discussion, a “template-based-coded” block may refer to a block using a template matching based method in the coding/decoding process to derive or refine coded information, such as template-matching based motion derivation, template-matching based motion list reconstruction, LIC, sign prediction, template-matching based block vector (e.g., used in IBC mode) derivation, DIMD, template-matching based non-inter (e.g., intra) prediction, etc. The template-based-coded method may be combined with any other coding tools, such as MMVD, CIIP, GPM, FRUC, Affine, BDOF, DMVR, OBMC, etc. In yet another example, the “template-based-coded” block may also refer to a block which derives or refines its decoded information based on certain rules using neighboring reconstructed samples (adjacent or non-adjacent), e.g., the DIMD method in 2.27 and the TIMD method 2.29). In the following discussion, a “bilateral-based-coded” block may refer to a block using a bilateral matching based method in the coding/decoding process to derive or refine coded information, such as bilateral-matching based motion derivation, bilateral-matching based motion list reconstruction, and etc. The bilateral-based-coded method may be combined with any other coding tools, such as MMVD, CIIP, GPM, FRUC, Affine, DMVR, and etc.
W and H are the width and height of current block (e.g., luma block). W*H is the size of current block (e.g., luma block).
In the following discussion, Shift(x, s) is defined as
Shift(x, s)=(x+offset)>>s, wherein offset is an integer such as offset=0 or offset=1<<(s−1) or offset=(1<<(s−1))−1.
In another example, offset depends on x. For example, offset=(x<0 ? (1<<(s−1)): ((1<<(s−1) −1).
1. In addition to the error measurement, it is proposed to add a regulation item in the cost calculation process.
2. It is proposed to use an error function different from SAD/MR-SAD (mean removal sum of absolute difference) for processing a template-based-coded block/bilateral-based-coded block.
3. When using the MR-X (e.g., X being SATD, SAD, SSE) based error function (e.g., MR-SAD/MR-SATD etc. al), the following may further apply:
4. The template/bilateral matching cost may be calculated by applying a cost factor to the error cost function.
5. The above methods may be applied to any coding data refinement process, e.g., for a template-based-coded block, for a bilateral-based-coded block (e.g., DMVR in VVC).
6. The template matching cost measurement may be different for different template matching refinement methods.
7. The bilateral matching cost measurement may be different for different bilateral matching refinement methods.
8. The bilateral or template matching cost may be calculated based on prediction/reference samples which are modified by a function.
The term ‘block’ may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples/pixels. A block may be rectangular or non-rectangular.
In the disclosure, the phrase “motion candidate” may represent a merge motion candidate in a regular/extended merge list indicated by a merge candidate index, or an AMVP motion candidate in regular/extended AMVP list indicated by an AMVP candidate index, or one AMVP motion candidate, or one merge motion candidate.
In the disclosure, a motion candidate is called to be “refined” if the motion information of the candidate is modified according to information signaled from the encoder or derived at the decoder. For example, a motion vector may be refined by DMVR, FRUC, TM merge, TM AMVP, TM GPM, TM CIIP, TM affine, MMVD, GMVD, affine MMVD, BDOF and so on.
In the disclosure, the phrase “coding data refinement” may represent a refinement process in order to derive or refine the signalled/decoded/derived prediction modes, prediction directions, or signalled/decoded/derived motion information, prediction and/or reconstruction samples for a block. In one example, the refinement process may include motion candidate reordering. In the following discussion, a “template-based-coded” block may refer to a block using a template matching based method in the coding/decoding process to derive or refine coded information, such as template-matching based motion derivation, template-matching based motion list reconstruction, LIC, sign prediction, template-matching based block vector (e.g., used in IBC mode) derivation, DIMD, template-matching based non-inter (e.g., intra) prediction, etc. The template-based-coded method may be combined with any other coding tools, such as MMVD, CIIP, GPM, FRUC, Affine, BDOF, DMVR, OBMC, etc. In yet another example, the “template-based-coded” block may also refer to a block which derives or refines its decoded information based on certain rules using neighboring reconstructed samples (adjacent or non-adjacent), e.g., the DIMD method in 2.27 and the TIMD method 2.29). In the following discussion, a “bilateral-based-coded” block may refer to a block using a bilateral matching based method in the coding/decoding process to derive or refine coded information, such as bilateral-matching based motion derivation, bilateral-matching based motion list reconstruction, and etc. The bilateral-based-coded method may be combined with any other coding tools, such as MMVD, CIIP, GPM, FRUC, Affine, DMVR, and etc.
W and H are the width and height of current block (e.g., luma block). W*H is the size of current block (e.g., luma block).
1. The cost definition may rely on outputs of multiple errors functions (e.g., distortion measurement methods) regarding the error/difference of two samples/blocks to be evaluated in one coding data refinement process of a current block.
3. Multiple refinement processes may be applied to one block with at least more than two different cost functions applied to at least two refinement processes.
4. Whether to use multiple refinement process, and/or how to select one or multiple error function and/or how to define the cost function and/or which samples to be involved in the error function may depend on the decoded information of a current block and/or its neighboring (adjacent or non-adjacent) blocks.
5. The above methods may be applied to any coding data refinement process, e.g., for a template-based-coded block, for a bilateral-based-coded block (e.g., DMVR in VVC).
The term ‘block’ may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples/pixels. A block may be rectangular or non-rectangular.
In the disclosure, the phrase “motion candidate” may represent a merge motion candidate in a regular/extended merge list indicated by a merge candidate index, or an AMVP motion candidate in regular/extended AMVP list indicated by an AMVP candidate index, or one AMVP motion candidate, or one merge motion candidate.
In the disclosure, a motion candidate is called to be “refined” if the motion information of the candidate is modified according to information signaled from the encoder or derived at the decoder. For example, a motion vector may be refined by DMVR, FRUC, TM merge, TM AMVP, TM GPM, TM CIIP, TM affine, MMVD, GMVD, affine MMVD, BDOF and so on.
In the disclosure, the phrase “coding data refinement” may represent a refinement process in order to derive or refine the signalled/decoded/derived prediction modes, prediction directions, or signalled/decoded/derived motion information, prediction and/or reconstruction samples for a block. In one example, the refinement process may include motion candidate reordering. In the following discussion, a “template-based-coded” block may refer to a block using a template matching based method in the coding/decoding process to derive or refine coded information, such as template-matching based motion derivation, template-matching based motion list reconstruction, LIC, sign prediction, template-matching based block vector (e.g., used in IBC mode) derivation, DIMD, template-matching based non-inter (e.g., intra) prediction, etc. The template-based-coded method may be combined with any other coding tools, such as MMVD, CIIP, GPM, FRUC, Affine, BDOF, DMVR, OBMC, etc. In yet another example, the “template-based-coded” block may also refer to a block which derives or refines its decoded information based on certain rules using neighboring reconstructed samples (adjacent or non-adjacent), e.g., the DIMD method in 2.27 and the TIMD method 2.29). In the following discussion, a “bilateral-based-coded” block may refer to a block using a bilateral matching based method in the coding/decoding process to derive or refine coded information, such as bilateral-matching based motion derivation, bilateral-matching based motion list reconstruction, and etc. The bilateral-based-coded method may be combined with any other coding tools, such as MMVD, CIIP, GPM, FRUC, Affine, DMVR, and etc.
W and H are the width and height of current block (e.g., luma block). W*H is the size of current block (e.g., luma block).
1. The error/cost evaluation in the coding data refinement process may depend on both reference samples corresponding to current block (e.g., the reference blocks used in bilateral matching) and reference samples corresponding to a template of current block.
2. Multiple refinement processes may be applied to one block with different templates applied to at least two refinement processes.
3. Whether to use multiple refinement process, and/or how to select one or multiple error function and/or how to define the cost function and/or which samples to be involved in the error function may depend on the decoded information of a current block and/or neighboring (adjacent or non-adjacent) blocks.
4. In one example, LIC may be enabled for reference list X and disabled for reference list Y.
5. The above methods may be applied to any coding data refinement process, e.g., for a template-based-coded block, for a bilateral-based-coded block (e.g., DMVR in VVC).
It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. For example, the term “GPM” is used to represent any coding tool that derive two sets of motion information and use the derived information and the splitting pattern to get the final prediction, e.g., TPM is also treated as GPM.
Note that the proposed methods may be applied to merge candidate list construction process for inter coded blocks (e.g., translational motion), affine coded blocks, TM coded blocks, or IBC coded blocks; or other motion candidate list construction process (e.g., normal AMVP list; affine AMVP list; IBC AMVP list; HMVP table).
The cost function excepting the template matching cost is also applicable for motion candidate reordering.
W and H are the width and height of current block (e.g., luma block).
1. The template/bilateral matching cost C may be calculated to be f(C) before it is used to be compared with another template matching cost.
2. The subgroup size may be different for different coding modes.
3. The template size may be different for different coding modes.
4. Whether to and/or how to reorder the motion candidates may depend on the coding modes of neighbor coded blocks.
5. The HMVP motion candidates in the HMVP table may be reordered based on template/bilateral matching etc. al.
6. Whether to and/or how to apply the disclosed methods above may be signalled at sequence level/group of pictures level/picture level/slice level/tile group level, such as in sequence header/picture header/SPS/VPS/DPS/DCI/PPS/APS/slice header/tile group header.
7. Whether to and/or how to apply the disclosed methods above may be signalled at PB/TB/CB/PU/TU/CU/VPDU/CTU/CTU row/slice/tile/sub-picture/other kinds of region contains more than one sample or pixel.
8. Whether to and/or how to apply the disclosed methods above may be dependent on coded information, such as coding mode, block size, colour format, single/dual tree partitioning, colour component, slice/picture type.
The term ‘block’ may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples/pixels. A block may be rectangular or non-rectangular.
It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. For example, the term “GPM” is used to represent any coding tool that derive two or more sets of motion information and use the derived motion information and the splitting pattern/weighting masks to get the final prediction, e.g., TPM is also treated as GPM.
Note that the proposed methods may be applied to merge candidate list construction process for inter coded blocks (e.g., translational motion), affine coded blocks, TM coded blocks, GPM coded blocks, or IBC coded blocks; or other motion candidate list construction process (e.g., normal AMVP list; affine AMVP list; IBC AMVP list; HMVP table).
The cost function excepting the template matching cost is also applicable for motion candidate reordering.
Hereinafter, template is a set of reconstructed/prediction samples adjacently or non-adjacently neighboring to the current block. Reference samples of a template (i.e. reference template) are mapping of the template in a reference picture depend on a motion information of the current block. “above template” indicates a template constructed from a set of reconstructed/prediction samples above adjacently or non-adjacently neighboring to the current block and its reference template. “left template” indicates a template constructed from a set of reconstructed/prediction samples left adjacently or non-adjacently neighboring to the current block and its reference template. “above and left template” includes both above template and left template.
In the following, in one example, a GPM candidate list where GPM candidates are directly derived from regular merge list (before or without template matching based motion refinement) is called OGPMList; a refined GPM candidate list where GPM candidates are refined by a first refining method such as template matching using the above template is called AGPMList; a refined GPM candidate list where GPM candidates are refined by a second refining method such as template matching using the left template is called LGPMList; a refined GPM candidate list where GPM candidates are refined by a third refining method such as template matching using the left and above template is called LAGPMList.
W and H are the width and height of current block (e.g., luma block).
1. It is proposed that for a GPM coded block, the coded candidate index may be corresponding to a candidate with a different candidate index in the candidate list for GPM coded blocks.
2. It is proposed that for a GPM coded block, the coded candidate index may be corresponding to a candidate from a refined candidate list for GPM coded blocks.
3. In one example, the GPM candidates may be divided into subgroups. Whether to and/or how to reorder the GPM candidates may depend on the subgroup of the GPM candidates.
4. In one example, the GPM candidates which are not included in the reordering process may be treated in specified way.
5. A GPM candidate list to be reordered may refer to
6. In above examples, the GPM coded block may be a GPM coded block with merge mode, a GPM coded block with AMVP mode.
7. Whether to and/or how to apply the disclosed methods above may be signalled at sequence level/group of pictures level/picture level/slice level/tile group level, such as in sequence header/picture header/SPS/VPS/DPS/DCI/PPS/APS/slice header/tile group header.
8. Whether to and/or how to apply the disclosed methods above may be signalled at PB/TB/CB/PU/TU/CU/VPDU/CTU/CTU row/slice/tile/sub-picture/other kinds of region contains more than one sample or pixel.
9. Whether to and/or how to apply the disclosed methods above may be dependent on coded information, such as coding mode, block size, colour format, single/dual tree partitioning, colour component, slice/picture type.
The term ‘block’ may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples/pixels. A block may be rectangular or non-rectangular.
It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. For example, the term “GPM” is used to represent any coding tool that derive two or more sets of motion information and use the derived motion information and the splitting pattern/weighting masks to get the final prediction, e.g., TPM is also treated as GPM.
Note that the proposed methods may be applied to merge candidate list construction process for inter coded blocks (e.g., translational motion), affine coded blocks, TM coded blocks, GPM coded blocks, or IBC coded blocks; or other motion candidate list construction process (e.g., normal AMVP list; affine AMVP list; IBC AMVP list; HMVP table).
The cost function excepting the template matching cost is also applicable for motion candidate reordering.
Hereinafter, template is a set of reconstructed/prediction samples adjacently or non-adjacently neighboring to the current block. Reference samples of a template (i.e. reference template) are mapping of the template in a reference picture depend on a motion information of the current block. “above template” indicates a template constructed from a set of reconstructed/prediction samples above adjacently or non-adjacently neighboring to the current block and its reference template. “left template” indicates a template constructed from a set of reconstructed/prediction samples left adjacently or non-adjacently neighboring to the current block and its reference template. “above and left template” includes both above template and left template.
In the following, in one example, a GPM candidate list where GPM candidates are directly derived from regular merge list (before or without template matching based motion refinement) is called OGPMList; a refined GPM candidate list where GPM candidates are refined by a first refining method such as template matching using the above template is called AGPMList; a refined GPM candidate list where GPM candidates are refined by a second refining method such as template matching using the left template is called LGPMList; a refined GPM candidate list where GPM candidates are refined by a third refining method such as template matching using the left and above template is called LAGPMList; Regarding the type of GPM candidates in the original GPM candidate list, the GPM candidates derived in the first step of GPM candidate list construction process in section 2.29 are called GPM-parity-based candidates; The GPM candidates derived in the second step of GPM candidate list construction process in section 2.29 are called GPM-anti-parity-based candidates; The GPM candidates derived in the third step of GPM candidate list construction process in section 2.29 are called GPM-filled candidates.
W and H are the width and height of current block (e.g., luma block).
1. In one example, if the coding mode is GPM, the merge candidates may be reordered.
2. The merge candidates can be adaptively rearranged in the final GPM candidate list according to one or some criterions.
3. When deriving the two motions for two geometric partitions, the process may be
4. Whether to and/or how to reorder the GPM candidates may depend on the category of the GPM candidates.
5. In above examples, the GPM coded block may be a GPM coded block with merge mode, a GPM coded block with AMVP mode.
6. Whether to and/or how to apply the disclosed methods above may be signalled at sequence level/group of pictures level/picture level/slice level/tile group level, such as in sequence header/picture header/SPS/VPS/DPS/DCI/PPS/APS/slice header/tile group header.
7. Whether to and/or how to apply the disclosed methods above may be signalled at PB/TB/CB/PU/TU/CU/VPDU/CTU/CTU row/slice/tile/sub-picture/other kinds of region containing more than one samples or pixels.
8. Whether to and/or how to apply the disclosed methods above may be dependent on coded information, such as coding mode, block size, GPM partition information, colour format, single/dual tree partitioning, colour component, slice/picture type.
2.20. Hash Based Motion Estimation for Screen Content Coding The VTM reference software uses hash-based motion estimation to handle the sometimes large and irregular motion in screen content. For each reference picture, hash tables corresponding to 4×4 to 64×64 block sizes are generated using a bottom-up approach as follows:
where SignalledCW[i] is the signalled number of codewords for the i-th piece.
As shown in
The luma mapping process (forward and/or inverse mapping) can be implemented using either look-up-tables (LUT) or using on-the-fly computation. If LUT is used, then FwdMapLUT and InvMapLUT can be pre-calculated and pre-stored for use at the tile group level, and forward and inverse mapping can be simply implemented as FwdMap(Ypred)=FwdMapLUT[Ypred] and InvMap(Yr)=InvMapLUT[Yr], respectively. Alternatively, on-the-fly computation may be used. Take forward mapping function FwdMap as an example. In order to figure out the piece to which a luma sample belongs, the sample value is right shifted by 6 bits (which corresponds to 16 equal pieces).
Then, the linear model parameters for that piece are retrieved and applied on-the-fly to compute the mapped luma value. Let i be the piece index, a1, a2 be InputPivot[i] and InputPivot[i+1], respectively, and b1, b2 be MappedPivot[i] and MappedPivot[i+1], respectively. The FwdMap function is evaluated as follows:
The InvMap function can be computed on-the-fly in a similar manner. Generally, the pieces in the mapped domain are not equal sized, therefore the most straightforward inverse mapping process would require comparisons in order to figure out to which piece the current sample value belongs. Such comparisons increase decoder complexity. For this reason, VVC imposes a bistream constraint on the values of the output pivot points MappedPivot[i] as follows. Assume the range of the mapped domain (for 10-bit video, this range is [0, 1023]) is divided into 32 equal pieces. If MappedPivot[i] is not a multiple of 32, then MappedPivot[i+1] and MappedPivot[i] cannot belong to the same piece of the 32 equal-sized pieces, i.e. MappedPivot[i+1]>>(BitDepthY-5) shall not be equal to MappedPivot[i]>>(BitDepthY-5). Thanks to such bitstream constraint, the InvMap function can also be carried out using a simple right bit-shift by 5 bits (which corresponds 32 equal-sized pieces) in order to figure out the piece to which the sample value belongs.
Chroma residual scaling is designed to compensate for the interaction between the luma signal and its corresponding chroma signals. Whether chroma residual scaling is enabled or not is also signalled at the slice level. If luma mapping is enabled, an additional flag is signalled to indicate if luma-dependent chroma residual scaling is enabled or not. When luma mapping is not used, luma-dependent chroma residual scaling is disabled. Further, luma-dependent chroma residual scaling is always disabled for the chroma blocks whose area is less than or equal to 4.
Chroma residual scaling depends on the average value of top and/or left reconstructed neighbouring luma samples of the current VPDU. If the current CU is inter 128×128, inter 128×64 and inter 64×128, then the chroma residual scaling factor derived for the CU associated with the first VPDU is used for all chroma transform blocks in that CU. Denote avgYr as the average of the reconstructed neighbouring luma samples (see
A non-normative reference implementation is provided in the VTM encoder to estimate the LMCS model parameters. Because VTM anchors handle SDR, HDR PQ and HDR HLG differently, the reference algorithm in VTM13 is designed differently for SDR, HDR PQ and HDR HLG sequences. For SDR and HDR HLG sequences, the encoder algorithm is based on local luma variance and optimized for PSNR metrics. For HDR PQ sequences, the encoder algorithm is based on luma values and optimized for wPSNR (weighted PSNR) metrics.
2.22. Merge Mode with MVD (MMVD) In addition to merge mode, where the implicitly derived motion information is directly used for prediction samples generation of the current CU, the merge mode with motion vector differences (MMVD) is introduced in VVC. A MMVD flag is signalled right after sending a regular merge flag to specify whether MMVD mode is used for a CU.
In MMVD, after a merge candidate is selected, it is further refined by the signalled MVDs information. The further information includes a merge candidate flag, an index to specify motion magnitude, and an index for indication of motion direction. In MMVD mode, one for the first two candidates in the merge list is selected to be used as MV basis. The MMVD candidate flag is signalled to specify which one is used between the first and second merge candidates.
Distance index specifies motion magnitude information and indicate the pre-defined offset from the starting point.
Direction index represents the direction of the MVD relative to the starting point. The direction index can represent of the four directions as shown in Table 3. It's noted that the meaning of MVD sign could be variant according to the information of starting MVs. When the starting MVs is an un-prediction MV or bi-prediction MVs with both lists point to the same side of the current picture (i.e. POCs of two references are both larger than the POC of the current picture, or are both smaller than the POC of the current picture), the sign in Table 3 specifies the sign of MV offset added to the starting MV. When the starting MVs is bi-prediction MVs with the two MVs point to the different sides of the current picture (i.e. the POC of one reference is larger than the POC of the current picture, and the POC of the other reference is smaller than the POC of the current picture), and the difference of POC in list 0 is greater than the one in list 1, the sign in Table 3 specifies the sign of MV offset added to the list0 MV component of starting MV and the sign for the list1 MV has opposite value. Otherwise, if the difference of POC in list 1 is greater than list 0, the sign in Table 3 specifies the sign of MV offset added to the list1 MV component of starting MV and the sign for the list0 MV has opposite value.
The MVD is scaled according to the difference of POCs in each direction. If the differences of POCs in both lists are the same, no scaling is needed. Otherwise, if the difference of POC in list 0 is larger than the one of list 1, the MVD for list 1 is scaled, by defining the POC difference of L0 as td and POC difference of L1 as tb, described in
MMVD is also known as Ultimate Motion Vector Expression (UMVE).
In VVC, a triangle partition mode (TPM) is supported for inter prediction. The triangle partition mode is only applied to CUs that are 8×8 or larger. The triangle partition mode is signalled using a CU-level flag as one kind of merge mode, with other merge modes including the regular merge mode, the MMVD mode, the CIIP mode and the subblock merge mode.
When this mode is used, a CU is split evenly into two triangle-shaped partitions, using either the diagonal split or the anti-diagonal split (
If triangle partition mode is used for the current CU, then a flag indicating the direction of the triangle partition (diagonal or anti-diagonal), and two merge indices (one for each partition) are further signalled. The number of maximum TPM candidate size is signalled explicitly at slice level and specifies syntax binarization for TMP merge indices. After predicting each of the triangle partitions, the sample values along the diagonal or anti-diagonal edge are adjusted using a blending processing with adaptive weights. This is the prediction signal for the whole CU, and transform and quantization process will be applied to the whole CU as in other prediction modes. Finally, the motion field of a CU predicted using the triangle partition mode is stored as in 2.23.3.
The triangle partition mode is not used in combination with SBT, that is, when the signalled triangle mode is equal to 1, the cu_sbt_flag is inferred to be 0 without signalling.
The uni-prediction candidate list is derived directly from the merge candidate list constructed according to the extended merge prediction process in section 2.1. Denote n as the index of the uni-prediction motion in the triangle uni-prediction candidate list. The LX motion vector of the n-th extended merge candidate, with X equal to the parity of n, is used as the n-th uni-prediction motion vector for triangle partition mode.
After predicting each triangle partition using its own motion, blending is applied to the two prediction signals to derive samples around the diagonal or anti-diagonal edge.
The variables numSbX and numSbY specifying the number of 4×4 blocks in the current coding block in horizontal and vertical direction are set equal to numSbX=cbWidth>>2 and numSbY=cbHeight>>2.
Where cbWidth and cbHeight specifying the width and the height of the current coding block in luma samples,
The variable minSb is set equal to min(numSbX, numSbY)-1.
The variable cbRatio is derived as follows:
For each 4×4 subblock at subblock index (xSbIdx, ySbIdx) with xSbIdx=0..numSbX −1, and ySbIdx=0..numSbY −1, the following applies:
where triangleDir specifies the partition direction.
As shown in
The motion information of P1 area is denoted as (Mv1,refIdx1); the motion information of P2 area is denoted as (Mv2,refIdx2).
In VVC, a geometric partitioning mode is supported for inter prediction. The geometric partitioning mode is signalled using a CU-level flag as one kind of merge mode, with other merge modes including the regular merge mode, the MMVD mode, the CIIP mode and the subblock merge mode. In total 64 partitions are supported by geometric partitioning mode for each possible CU size w× h=2m×2n with m, n ϵ{3···6} excluding 8×64 and 64×8.
If geometric partitioning mode is used for the current CU, then a geometric partition index indicating the partition mode of the geometric partition (angle and offset), and two merge indices (one for each partition) are further signalled. The number of maximum GPM candidate size is signalled explicitly in SPS and specifies syntax binarization for GPM merge indices. After predicting each of part of the geometric partition, the sample values along the geometric partition edge are adjusted using a blending processing with adaptive weights as in 2.24.2. This is the prediction signal for the whole CU, and transform and quantization process will be applied to the whole CU as in other prediction modes. Finally, the motion field of a CU predicted using the geometric partition modes is stored as in section 2.24.3.
The uni-prediction candidate list is derived directly from the merge candidate list constructed according to the extended merge prediction process in 3.4.1. Denote n as the index of the uni-prediction motion in the geometric uni-prediction candidate list. The LX motion vector of the n-th extended merge candidate, with X equal to the parity of n, is used as the n-th uni-prediction motion vector for geometric partitioning mode.
2.24.2 Blending along the geometric partitioning edge
After predicting each part of a geometric partition using its own motion, blending is applied to the two prediction signals to derive samples around geometric partition edge. The blending weight for each position of the CU are derived based on the distance between individual position and the partition edge.
The distance for a position (x, y) to the partition edge are derived as:
where i,j are the indices for angle and offset of a geometric partition, which depend on the signaled geometric partition index. The sign of px,j and py,j depend on angle index i.
The weights for each part of a geometric partition are derived as following:
The partIdx depends on the angle index i.
Mv1 from the first part of the geometric partition, Mv2 from the second part of the geometric partition and a combined My of Mv1 and Mv2 are stored in the motion filed of a geometric partitioning mode coded CU.
The stored motion vector type for each individual position in the motion filed are determined as:
where motionIdx is equal to d(4×+2, 4y+2), which is recalculated from equation (2-1). The partidx depends on the angle index i.
If sType is equal to 0 or 1, Mv1 or Mv2 are stored in the corresponding motion field, otherwise if sType is equal to 2, a combined My from Mv1 and Mv2 are stored. The combined My are generated using the following process:
In VVC, when a CU is coded in merge mode, if the CU contains at least 64 luma samples (that is, CU width times CU height is equal to or larger than 64), and if both CU width and CU height are less than 128 luma samples, an additional flag is signalled to indicate if the combined inter/intra prediction (CIIP) mode is applied to the current CU. As its name indicates, the CIIP prediction combines an inter prediction signal with an intra prediction signal. The inter prediction signal in the CIIP mode Pinter is derived using the same inter prediction process applied to regular merge mode; and the intra prediction signal Pintra is derived following the regular intra prediction process with the planar mode. Then, the intra and inter prediction signals are combined using weighted averaging, where the weight value is calculated depending on the coding modes of the top and left neighbouring blocks (depicted in a diagram 3700 in
When DIMD is applied, two intra modes are derived from the reconstructed neighbor samples, and those two predictors are combined with the planar mode predictor with the weights derived from the gradients.
Derived intra modes are included into the primary list of intra most probable modes (MPM), so the DIMD process is performed before the MPM list is constructed. The primary derived intra mode of a DIMD block is stored with a block and is used for MPM list construction of the neighboring blocks.
The term ‘block’ may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples/pixels. A block may be rectangular or non-rectangular.
For an IBC coded block, a block vector (BV) is used to indicate the displacement from the current block to a reference block, which is already reconstructed inside the current picture.
W and H are the width and height of current block (e.g., luma block).
The non-adjacent spatial candidates of current coding block are adjacent spatial candidates of a virtual block in the ith search round (as shown in
In the following, a BV predictor also is a BV candidate. The skip mode also is the merge mode.
The BV candidates can be divided into several groups according to some criterions. Each group is called a subgroup. For example, we can take adjacent spatial and temporal BV candidates as a first subgroup and take the remaining BV candidates as a second subgroup; In another example, we can also take the first N (N>2) BV candidates as a first subgroup, take the following M (M>2) BV candidates as a second subgroup, and take the remaining BV candidates as a third subgroup.
On usage of a BV candidate
1. A BV candidate (e.g. BV searching point or BV predictor) is disallowed to be used in the coding/decoding process of a block if it is invalid.
2. In one example, a BV candidate may be determined to be valid when it meets one of or a combination of at least one of the following conditions.
3. In one example, a BV candidate may be determined to be invalid when it violates one of or a combination of at least one of the conditions in bullet 2.
4. A BV candidate may be derived/obtained from a non-adjacent block.
5. A BV candidate may come from a spatial neighboring block, a temporal neighboring block, HMVP, pairwise, and/or STMVP candidates.
6. A BV candidate list may also consist of clipped BV candidates.
7. The BV candidate list can be used as IBC merge/AMVP candidate list.
8. In one example, subblock-based temporal block vector prediction (SbTBVP) may be supported as a BV candidate or a BV prediction mode.
9. An initial BV candidate list may be firstly derived, followed by a reordering/refined process. And the reordered/refined list is utilized in the coding/decoding process of a block.
10. The BV candidates can be adaptively rearranged in the final BV candidate list according to one or some criterions.
11. In one example, the cost disclosed in bullet 10 may be derived for a first BV candidate, which may be or may not be put into a BV candidate list.
12. In one example, for the intra TMP, the L-shaped template can be replaced with the above and left templates which excluding the above-left part (an example is shown in
In the multi-hypothesis inter prediction mode (JVET-M0425), one or more additional motion-compensated prediction signals are signaled, in addition to the conventional bi prediction signal. The resulting overall prediction signal is obtained by sample-wise weighted superposition. With the bi prediction signal Pbi and the first additional inter prediction signal/hypothesis h3, the resulting prediction signal P3 is obtained as follows:
The weighting factor α is specified by the new syntax element add_hyp_weight_idx, according to the following mapping:
Analogously to above, more than one additional prediction signal can be used. The resulting overall prediction signal is accumulated iteratively with each additional prediction signal.
The resulting overall prediction signal is obtained as the last pn (i.e., the pn having the largest index n). Within this EE, up to two additional prediction signals can be used (i.e., n is limited to 2).
The motion parameters of each additional prediction hypothesis can be signaled either explicitly by specifying the reference index, the motion vector predictor index, and the motion vector difference, or implicitly by specifying a merge index. A separate multi-hypothesis merge flag distinguishes between these two signalling modes.
For inter AMVP mode, MHP is only applied if non-equal weight in BCW is selected in bi-prediction mode.
Combination of MHP and BDOF is possible, however the BDOF is only applied to the bi-prediction signal part of the prediction signal (i.e., the ordinary first two hypotheses).
In the multi-hypothesis inter prediction mode, one or more additional prediction signals are signaled, in addition to the conventional uni/bi prediction signal. The resulting overall prediction signal is obtained by sample-wise weighted superposition. With the uni/bi prediction signal Puni/bi and the first additional inter prediction signal/hypothesis h3, the resulting prediction signal P3 is obtained as follows:
The weighting factor α is specified by the new syntax element add_hyp_weight_idx, according to the following mapping:
Note that for the additional prediction signals, in the tests CE10.1.2.a, CE10.1.2.b, and CE10.1.2.d, the concept of prediction list0/list1 is abolished, and instead one combined list is used. This combined list is generated by alternatingly inserting reference frames from list0 and list1 with increasing reference index, omitting reference frames which have already been inserted, such that double entries are avoided. In test CE10.1.2.c, only 2 different reference pictures can be used within each PU, and therefore it is indicated by one flag which reference frame is used.
Analogously to above, more than one additional prediction signal can be used. The resulting overall prediction signal is accumulated iteratively with each additional prediction signal.
The resulting overall prediction signal is obtained as the last pn (i.e., the pn having the largest index n). Within this CE, up to two additional prediction signals can be used (i.e., n is limited to 2). Note that due to the iterative accumulation approach, the number of required PU sample buffers for storing intermediate prediction signals is not increased relative to bi-prediction (i.e., two buffers are sufficient).
First, the inter modes with no explicitly signaled additional inter prediction parameters are tested. For the best two of these modes (i.e., having lowest Hadamard RD cost), additional inter prediction hypotheses are searched. For that purpose, for all combinations of the following parameters, a motion estimation with a restricted search range of 16 is performed:
For determining the best combination of these two parameters, a simplified RD cost using Hadamard distortion measure and approximated bit rate is used. The chosen parameter combination is then used to compute a more accurate RD cost, using forward transform and quantization, which is compared against the so-far best found coding mode for the current block.
2.29.2 Interaction with Other Coding Tools
2.29.2.1. Normal merge mode (non-MMVD, non-sub-block)
Multi-hypothesis inter prediction cannot be used together with BIO within one PU:
Multi-hypothesis inter prediction cannot be used together with combined intra/inter within one PU:
Multi-hypothesis inter prediction cannot be used together with triangular mode within one PU:
Overlapped Block Motion Compensation (OBMC) has previously been used in H.263. In the JEM, unlike in H.263, OBMC can be switched on and off using syntax at the CU level. When OBMC is used in the JEM, the OBMC is performed for all motion compensation (MC) block boundaries except the right and bottom boundaries of a CU. Moreover, it is applied for both the luma and chroma components. In the JEM, a MC block is corresponding to a coding block. When a CU is coded with sub-CU mode (includes sub-CU merge, affine and FRUC mode), each sub-block of the CU is a MC block. To process CU boundaries in a uniform fashion, OBMC is performed at sub-block level for all MC block boundaries, where sub-block size is set equal to 4×4, as illustrated in
When OBMC applies to the current sub-block, besides current motion vectors, motion vectors of four connected neighbouring sub-blocks, if available and are not identical to the current motion vector, are also used to derive prediction block for the current sub-block. These multiple prediction blocks based on multiple motion vectors are combined to generate the final prediction signal of the current sub-block.
Prediction block based on motion vectors of a neighbouring sub-block is denoted as PN, with N indicating an index for the neighbouring above, below, left and right sub-blocks and prediction block based on motion vectors of the current sub-block is denoted as PC. When PN is based on the motion information of a neighbouring sub-block that contains the same motion information to the current sub-block, the OBMC is not performed from PN. Otherwise, every sample of PN is added to the same sample in PC, i.e., four rows/columns of PN are added to PC. The weighting factors {¼, ⅛, 1/16, 1/32} are used for PN and the weighting factors {¾, ⅞, 15/16, 31/32} are used for PC. The exception are small MC blocks, (i.e., when height or width of the coding block is equal to 4 or a CU is coded with sub-CU mode), for which only two rows/columns of PN are added to PC. In this case weighting factors {¼, 1/81 are used for PN and weighting factors {¾, ⅞} are used for PC. For PN generated based on motion vectors of vertically (horizontally) neighbouring sub-block, samples in the same row (column) of PN are added to Pc with a same weighting factor.
In the JEM, for a CU with size less than or equal to 256 luma samples, a CU level flag is signalled to indicate whether OBMC is applied or not for the current CU. For the CUs with size larger than 256 luma samples or not coded with AMVP mode, OBMC is applied by default. At the encoder, when OBMC is applied for a CU, its impact is taken into account during the motion estimation stage. The prediction signal formed by OBMC using motion information of the top neighbouring block and the left neighbouring block is used to compensate the top and left boundaries of the original signal of the current CU, and then the normal motion estimation process is applied.
2.31. GPM with MMVD
A geometry partition mode (GPM) with MMVD (called GPM_MMVD) was proposed to further improve the coding efficiency of the GPM mode in the VVC. Specifically, in those schemes, additional MV differences (MVDs) are further applied on top of the existing GPM merge candidates to improve the precision of the MVs used by the two GPM partitions. Moreover, to reduce the signaling overhead, the MVDs are signaled in the same manner as the merge mode with MVD (MMVD) in the VVC.
Specifically, two flags are signaled to separately indicate whether additional MVD is applied to each GPM partition. When the flag of one GPM partition is true, its corresponding MVD is signaled in the same way as the MMVD, i.e., one distance index plus one direction index. To enable more MV combinations, the merge indices of two GPM partitions are allowed to be the same when the MVDs that are applied to the two partitions are not identical. Additionally, an MV pruning procedure is introduced to construct the GPM merge candidate list when GPM with MMVD is applied.
Additionally, two different sets of MVDs are supported for the GPM which are selected according to one indication flag at picture header. When the flag is equal to 0, the existing MVD set used by the MMVD, which includes 8 distances {¼-pel, ½-pel, 1-pel, 2-pel, 4-pel, 8-pel, 16-pel, 32-pel} and 4 horizontal/vertical directions, are supported for the GPM CUs in the current picture; otherwise, another MVD set, which include 9 distance {¼-pel, ½-pel, 1-pel, 2-pel, 3-pel, 4-pel, 6-pel, 8-pel, 16-pel} and 8 directions (4 horizontal/vertical directions plus 4 diagonal directions), are applied.
2.32. Geometric Partitioning Mode (GPM) with Template Matching (TM)
Template matching is applied to GPM. The method is called GPM_TM. When GPM mode is enabled for a CU, a CU-level flag is signaled to indicate whether TM is applied to both geometric partitions. Motion information for each geometric partition is refined using TM. When TM is chosen, a template is constructed using left, above or left and above neighboring samples according to partition angle, as shown in Table 4. The motion is then refined by minimizing the difference between the current template and the template in the reference picture using the same search pattern of merge mode with half-pel interpolation filter disabled.
A GPM candidate list is constructed as follows:
1. Interleaved List-0 MV candidates and List-1 MV candidates are derived directly from the regular merge candidate list, where List-0 MV candidates are higher priority than List-1 MV candidates. A pruning method with an adaptive threshold based on the current CU size is applied to remove redundant MV candidates.
2. Interleaved List-1 MV candidates and List-0 MV candidates are further derived directly from the regular merge candidate list, where List-1 MV candidates are higher priority than List-0 MV candidates. The same pruning method with the adaptive threshold is also applied to remove redundant MV candidates.
3. Zero MV candidates are padded until the GPM candidate list is full.
The GPM-MMVD and GPM-TM are exclusively enabled to one GPM CU. This is done by firstly signaling the GPM-MMVD syntax. When both two GPM-MMVD control flags are equal to false (i.e., the GPM-MMVD are disabled for two GPM partitions), the GPM-TM flag is signaled to indicate whether the template matching is applied to the two GPM partitions. Otherwise (at least one GPM-MMVD flag is equal to true), the value of the GPM-TM flag is inferred to be false.
In HEVC, only translation motion model is applied for motion compensation prediction (MCP). While in the real world, there are many kinds of motion, e.g. zoom in/out, rotation, perspective motions and the other irregular motions. In VVC, a block-based affine transform motion compensation prediction is applied. As shown
For 4-parameter affine motion model, motion vector at sample location (x, y) in a block is derived as:
For 6-parameter affine motion model, motion vector at sample location (x, y) in a block is derived as:
Where (mv0x, mv0y) is motion vector of the top-left corner control point, (mv1x, mvly) is motion vector of the top-right corner control point, and (mv2x, mv2y) is motion vector of the bottom-left corner control point.
In order to simplify the motion compensation prediction, block based affine transform prediction is applied. To derive motion vector of each 4×4 luma subblock, the motion vector of the center sample of each subblock, as shown in
As done for translational motion inter prediction, there are also two affine motion inter prediction modes: affine merge mode and affine AMVP mode.
AF_MERGE mode can be applied for CUs with both width and height larger than or equal to 8. In this mode the CPMVs of the current CU is generated based on the motion information of the spatial neighboring CUs. There can be up to five CPMVP candidates and an index is signalled to indicate the one to be used for the current CU. The following three types of CPVM candidate are used to form the affine merge candidate list:
In VVC, there are maximum two inherited affine candidates, which are derived from affine motion model of the neighboring blocks, one from left neighboring CUs and one from above neighboring CUs. The candidate blocks are shown in
Constructed affine candidate means the candidate is constructed by combining the neighbor translational motion information of each control point. The motion information for the control points is derived from the specified spatial neighbors and temporal neighbor shown in
After MVs of four control points are attained, affine merge candidates are constructed based on those motion information. The following combinations of control point MVs are used to construct in order:
The combination of 3 CPMVs constructs a 6-parameter affine merge candidate and the combination of 2 CPMVs constructs a 4-parameter affine merge candidate. To avoid motion scaling process, if the reference indices of control points are different, the related combination of control point MVs is discarded.
After inherited affine merge candidates and constructed affine merge candidate are checked, if the list is still not full, zero MVs are inserted to the end of the list.
Affine AMVP mode can be applied for CUs with both width and height larger than or equal to 16. An affine flag in CU level is signalled in the bitstream to indicate whether affine AMVP mode is used and then another flag is signalled to indicate whether 4-parameter affine or 6-parameter affine. In this mode, the difference of the CPMVs of current CU and their predictors CPMVPs is signalled in the bitstream. The affine AVMP candidate list size is 2 and it is generated by using the following four types of CPVM candidate in order:
The checking order of inherited affine AMVP candidates is same to the checking order of inherited affine merge candidates. The only difference is that, for AVMP candidate, only the affine CU that has the same reference picture as in current block is considered. No pruning process is applied when inserting an inherited affine motion predictor into the candidate list.
Constructed AMVP candidate is derived from the specified spatial neighbors shown in
If affine AMVP list candidates is still less than 2 after valid inherited affine AMVP candidates and constructed AMVP candidate are inserted, mv0, my1 and mV2 will be added, in order, as the translational MVs to predict all control point MVs of the current CU, when available. Finally, zero MVs are used to fill the affine AMVP list if it is still not full.
In VVC, the CPMVs of affine CUs are stored in a separate buffer. The stored CPMVs are only used to generate the inherited CPMVPs in affine merge mode and affine AMVP mode for the lately coded CUs. The subblock MVs derived from CPMVs are used for motion compensation, MV derivation of merge/AMVP list of translational MVs and deblocking.
To avoid the picture line buffer for the additional CPMVs, affine motion data inheritance from the CUs from above CTU is treated differently to the inheritance from the normal neighboring CUs. If the candidate CU for affine motion data inheritance is in the above CTU line, the bottom-left and bottom-right subblock MVs in the line buffer instead of the CPMVs are used for the affine MVP derivation. In this way, the CPMVs are only stored in local buffer. If the candidate CU is 6-parameter affine coded, the affine model is degraded to 4-parameter model. As shown in
2.33.4 Prediction Refinement with Optical Flow for Affine Mode
Subblock based affine motion compensation can save memory access bandwidth and reduce computation complexity compared to pixel based motion compensation, at the cost of prediction accuracy penalty. To achieve a finer granularity of motion compensation, prediction refinement with optical flow (PROF) is used to refine the subblock based affine motion compensated prediction without increasing the memory access bandwidth for motion compensation. In VVC, after the subblock based affine motion compensation is performed, luma prediction sample is refined by adding a difference derived by the optical flow equation. The PROF is described as following four steps: Step 1) The subblock-based affine motion compensation is performed to generate subblock prediction I(i,j).
Step2) The spatial gradients gx(i,j) and gy(i,j) of the subblock prediction are calculated at each sample location using a 3-tap filter [−1, 0, 1]. The gradient calculation is exactly the same as gradient calculation in BDOF.
shift1 is used to control the gradient's precision. The subblock (i.e., 4×4) prediction is extended by one sample on each side for the gradient calculation. To avoid additional memory bandwidth and additional interpolation computation, those extended samples on the extended borders are copied from the nearest integer pixel position in the reference picture.
Step 3) The luma prediction refinement is calculated by the following optical flow equation.
where the Δv(i,j) is the difference between sample MV computed for sample location (i,j), denoted by v(i,j), and the subblock MV of the subblock to which sample (i,j) belongs, as shown in
Since the affine model parameters and the sample location relative to the subblock center are not changed from subblock to subblock, Δv(i,j) can be calculated for the first subblock, and reused for other subblocks in the same CU. Let dx(i,j) and dy(i,j) be the horizontal and vertical offset from the sample location (i,j) to the center of the subblock (xSB,YSB), Δv(x,y) can be derived by the following equation,
In order to keep accuracy, the enter of the subblock (xSB,YSB) is calculated as ((WSB− 1)/2, (HSB− 1)/2), where WSB and HSB are the subblock width and height, respectively. For 4-parameter affine model,
For 6-parameter affine model,
where (v0x, v0y), (v1x, v1y), (v2x, v2y) are the top-left, top-right and bottom-left control point motion vectors, w and h are the width and height of the CU.
Step 4) Finally, the luma prediction refinement Δ1(i, j) is added to the subblock prediction I(i, j). The final prediction I′ is generated as the following equation.
PROF is not be applied in two cases for an affine coded CU: 1) all control point MVs are the same, which indicates the CU only has translational motion; 2) the affine motion parameters are greater than a specified limit because the subblock based affine MC is degraded to CU based MC to avoid large memory access bandwidth requirement.
A fast encoding method is applied to reduce the encoding complexity of affine motion estimation with PROF. PROF is not applied at affine motion estimation stage in following two situations: a) if this CU is not the root block and its parent block does not select the affine mode as its best mode, PROF is not applied since the possibility for current CU to select the affine mode as best mode is low; b) if the magnitude of four affine parameters (C, D, E, F) are all smaller than a predefined threshold and the current picture is not a low delay picture, PROF is not applied because the improvement introduced by PROF is small for this case. In this way, the affine motion estimation with PROF can be accelerated.
In affine MMVD, an affine merge candidate (which is called, base affine merge candidate) is selected, the MVs of the control points are further refined by the signalled MVD information.
The MVD information for the MVs of all the control points are the same in one prediction direction.
When the starting MVs is bi-prediction MVs with the two MVs point to the different sides of the current picture (i.e. the POC of one reference is larger than the POC of the current picture, and the POC of the other reference is smaller than the POC of the current picture), the MV offset added to the list0 MV component of starting MV and the MV offset for the list1 MV has opposite value; otherwise, when the starting MVs is bi-prediction MVs with both lists point to the same side of the current picture (i.e. POCs of two references are both larger than the POC of the current picture, or are both smaller than the POC of the current picture), the MV offset added to the list0 MV component of starting MV and the MV offset for the list1 MV are the same.
The term ‘block’ may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples/pixels. A block may be rectangular or non-rectangular.
For an IBC coded block, a block vector (BV) is used to indicate the displacement from the current block to a reference block, which is already reconstructed inside the current picture.
W and H are the width and height of current block (e.g., luma block).
It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. For example, the term “GPM” is used to represent any coding tool that derive two or more sets of motion information and use the derived motion information and the splitting pattern/weighting masks to get the final prediction, e.g., TPM may be also treated as GPM.
In the following, Mv1 and Mv2 are the motion vectors from the first part and the second part of the triangle or geometric partition.
1. In one example, the IBC merge mode with block vector differences (MBVD) may be used.
2. In one example, a new CIIP prediction mode (called CIIP_N) combines at least one IBC prediction signal and at least one prediction signal, generated by a second prediction method.
3. In one example, a triangle partition mode may be supported for IBC prediction (called TPM_IBC).
4. In one example, a geometric partitioning mode may be supported for IBC prediction (called GPM_IBC).
5. In one example, TM_AMVP for IBC (called TM_AMVP_IBC) is supported.
6. In one example, TM_merge for IBC (called TM_merge_IBC) is supported.
The current design of IBC mode can be further improved.
More IBC based modes can be supported to improve the coding efficiency of IBC mode.
The detailed inventions below should be considered as examples to explain general concepts. These inventions should not be interpreted in a narrow way. Furthermore, these inventions can be combined in any manner.
The term ‘block’ may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples/pixels. A block may be rectangular or non-rectangular.
For an IBC coded block, a block vector (BV) is used to indicate the displacement from the current block to a reference block, which is already reconstructed inside the current picture.
W and H are the width and height of current block (e.g., luma block).
It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. For example, the term “GPM” is used to represent any coding tool that derive two or more sets of motion information and use the derived motion information and the splitting pattern/weighting masks to get the final prediction, e.g., TPM may be also treated as GPM.
In the following, Mv1 and Mv2 are the motion vectors from the first part and the second part of the triangle or geometric partition.
Non-translational IBC mode
It is proposed to utilize affine motion model to predict a current block from the reconstructed samples/pixels within the same picture.
1. In one example, affine motion compensated prediction is supported for IBC mode (called Affine_IBC).
2. The block vectors of the control points used in the Affine_IBC mode may be derived according to BV(s) derived from an affine BV candidate list and BVD(s) selected from a given affine BVD candidate list.
3. In one example, the derived BV by TM_IBC is used as the base candidates for MBVD (called TM_IBC_MBVD).
4. In one example, the derived BV by TM_IBC may be used as a BV prediction candidate for non-merge IBC mode (a.k.a IBC AMVP mode).
5. In one example, multi-hypothesis IBC prediction mode (called MHP_IBC) is supported, wherein one or more additional motion-compensated prediction signals are signaled/derived, different from the conventional way wherein only uni-prediction signal is used.
6. In one example, OBMC may be applied for IBC mode.
It is proposed that BV derived from a candidate list for an IBC coded block with geometry/triangle partitions may be further refined before being used to derive the prediction signal.
7. In one example, a GPM_IBC with MBVD is supported for IBC mode (called GPM_IBC_MBVD).
8. In one example, a GPM_IBC with template matching (TM) is supported for IBC mode (called GPM_IBC_TM).
The embodiments of the present disclosure are related to IBC mode extension. As used herein, the term “block” may represent a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a coding unit (CU), a prediction unit (PU), a transform unit (TU), a prediction block (PB), a transform block (TB), or a video processing unit comprising a plurality of samples or pixels. A block may be rectangular or non-rectangular.
For an intra block copy (IBC) coded block, a block vector (BV) may be used to indicate a displacement from the current block and a reference block, which is reconstructed inside the current picture.
Wand H are the width and height of current block (e.g., luma block).
It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. For example, the term “GPM” is used to represent any coding tool that derive two or more sets of motion information and use the derived motion information and the splitting pattern/weighting masks to get the final prediction, e.g., TPM may be also treated as GPM.
In the following, Mv1 and Mv2 are the motion vectors from the first part and the second part of the triangle or geometric partition.
As shown in
At block 5304, the conversion is performed based on the IBC-based mode.
In the IBC-based mode, at least IBC related operations may be performed. In some embodiments, in the IBC-based mode, prediction samples may be at least derived from blocks of sample values of a same video region as determined by block vectors. Additionally, other principles, operations, and/or implementations may be further applied in each of the IBC-based modes proposed in the present disclosure. Some implementations related to respective IBC-based modes will be further discussed in the following.
In some embodiments, the conversion includes encoding the target video block into the bitstream. In such embodiments, the method of the present disclosure may be implemented at an encoder. In some embodiments, the conversion includes decoding the target video block from the bitstream. In such embodiments, the method of the present disclosure may be implemented at a decoder. In some embodiments, a bitstream of the video is generated based on a result of the multi-hypothesis prediction process. The bitstream may be stored in a non-transitory computer-readable recording medium.
According to embodiments of the present disclosure, it is proposed that more IBC-based modes are supported and corresponding implementations in respective IBC-based modes are provided. In this way, IBC coding may be further improved, and thus, the coding efficiency of IBC mode may be improved.
Implementations of the present disclosure can be described in view of the following clauses, the features of which can be combined in any reasonable manner.
For example, the IBC-based mode may refer to non-translational IBC mode. It is proposed to utilize affine motion model to predict a current block from the reconstructed samples or pixels within the same picture.
In some embodiments, if the IBC mode based on affine motion compensated prediction, which may also be called as an Affine_IBC, is to be applied, an affine motion field of the target video block is described by motion information of two control points, e.g., 4-parameter affine model or three control points, e.g., 6-parameter affine model.
In some embodiments, there may be two affine motion IBC prediction modes, namely affine IBC merge mode and affine IBC AMVP mode. In some embodiments, the affine IBC merge mode may be performed similar as the affine merge mode. In some other embodiments, the affine IBC AMVP mode may be performed similar as the affine AMVP mode.
In some embodiments, a BV for a pixel or for a sub-block derived from an affine model may be rounded or clipped to the integer precision. In some embodiments, a BV prediction of a control point inherited from a neighbouring block or derived from an affine model may be rounded or clipped to the integer precision.
In some embodiments, the prediction refinement with optical flow may be also supported for the affine_IBC mode. In some embodiments, the prediction refinement with optical flow for the affine_IBC mode may be performed similar as prediction refinement with optical flow for affine mode.
In some embodiments, the proposed Affine_IBC mode could be a merge mode wherein no BVD is coded. Alternatively, the Affine_IBC mode could be an inter mode wherein an indication of a BVD may be coded. Alternatively, the Affine_IBC mode could be a merge mode wherein indications of BVDs within an affine BVD candidate list may be coded or derived, such as index of a BVD is coded.
In some embodiments, the BVs of the control points used in the Affine_IBC mode may be derived according to the BV(s) derived from an affine BV candidate list and the BVD(s) selected from a given affine BVD candidate list.
In some embodiments, if the affine IBC with MBVD, which may also be called as Affine_IBC_MBVD, is to be applied, an affine IBC merge candidate is selected, the BVs of the control points may be further refined by the indications of the BVD information.. The affine IBC merge candidate may also be called as base affine IBC merge candidate.
In some embodiments, the BVD information for the BVs of all the control points may be the same. In some other embodiments, the BVD information for the BVs of at least two control points may be different.
In some embodiments, a BV for a pixel or for a sub-block derived from an affine model may be rounded or clipped to the integer precision.
In some embodiments, a BV prediction of a control point inherited from a neighbouring block or derived from an affine model may be rounded or clipped to the integer precision.
In some embodiments, the BVD information for the BVs of the control points in the Affine_IBC_MBVD mode may be different from that utilized for the translational MBVD methods.
In some embodiments, the affine BVD candidate list may only include integer BVD candidates.
On joint usage of template matching and IBC, in some embodiments, if derived BV by TM_IBC is used as the base candidates for MBVD, which may also be called as TM_IBC_MBVD, a BV may be derived based on TM_IBC which may be further refined by the signaled BVDs information. In some embodiments, the BVDs may be indicated in the same manner as MBVD. In some other embodiments, the BVDs may be signaled in the same manner as the non-merge IBC mode.
In some embodiments, a syntax element may be signaled to indicate whether the derived BV by TM_IBC is further refined by MBVD. For example, the syntax element is signaled only if TM_IBC mode is applied.
In some embodiments, the derived BV by TM_IBC may be used as a BV prediction candidate for non-merge IBC mode (which may also be called as IBC AMVP mode). In some examples, the derived BV by TM_IBC may be the only candidate for non-merge IBC mode when it is available. In some other examples, the derived BV by TM_IBC may be the k-th candidate (e.g., the first candidate) for non-merge IBC mode when it is available.
In some embodiments, a syntax element may be signaled to indicate whether the derived BV by TM_IBC may be used as a BV prediction candidate for non-merge IBC mode. For example, the syntax element is signaled only if TM_IBC mode is applied.
On multi-hypothesis IBC, in some embodiments, if the multi-hypothesis IBC prediction mode, which may also be called as MHP_IBC is to be applied, one or more additional motion-compensated prediction signals are signaled/derived, different from the conventional way wherein only uni-prediction signal is used.
In some embodiments, the resulting overall prediction signal is obtained by sample-wise weighted superposition. In some embodiments, the resulting overall prediction signal is accumulated iteratively with each additional prediction signal as follows:
In some embodiments, the resulting overall prediction signal is obtained as the last pn. That is, the pn having the largest index n. In some embodiments, two additional prediction signals may be used, i.e., n is 2. In some other embodiments, one additional prediction signals may be used, i.e., n is 1.
In some embodiments, the weighting factor for sample-wise weighted superposition a may be predefined. For example, a is set to ½.
In some embodiments, the weighting factor α may be selected from a predefined set. In some embodiments, the predefined set may be {½, ¼}, {¼, −⅛}, or {½, ¼, −⅛}.
In some embodiments, the weighting factor α may be specified by an index.
In some embodiments, for determining the best weighting factor α, a simplified RD cost using Hadamard distortion measure and approximated bit rate is used.
In some embodiments, the weighting factor α may be position-dependent for each sample. For example, for some positions, a may equal to 1. As another option, for some positions, a may equal to 0. Alternatively, for some positions, a may equal to ½.
In some embodiments, if the MHP_IBC is to be applied, the motion parameters of each additional prediction hypothesis can be indicated either explicitly by specifying the block vector predictor index and the block vector difference, which may also be called as a first indicating mode, or implicitly by specifying a merge index, which may also be called as a second indicating mode.
In some embodiments, the first indicating mode and the second indicating mode are distinguished with each other by a separate multi-hypothesis IBC merge flag. In some embodiments, the multi-hypothesis motion estimation is performed in the first indicating mode.
In some embodiments, additional IBC prediction hypotheses are searched for a predefined number of IBC modes, i.e., IBC modes having a Hadamard RD cost lower than a threshold Hadamard RD cost. For example, two best of IBC modes may be searched, i.e., having lowest Hadamard RD cost. For that purpose, for each weighting factor, a motion estimation with a restricted search range of R is performed. For example, R is set to 16.
In some embodiments, for determining the best weighting factor, a simplified RD cost using Hadamard distortion measure and approximated bit rate is used.
In some embodiments, if the MHP_IBC is to be applied, additional prediction signals can be explicitly signaled or implicitly inherited for a normal IBC merge mode, which may be referred to as a non-MBVD or a non-sub-block IBC merge. In some embodiments, all explicitly signaled additional prediction signals may use the same IBC AMVP candidate list which is generated for the first explicitly signaled additional prediction signal. In some embodiments, additional prediction signals may be explicitly signaled, but not in IBC SKIP mode. In some other embodiments, additional prediction signals may be implicitly inherited, but not in IBC SKIP mode.
In some embodiments, if the MHP_IBC is to be applied, additional prediction signals can be explicitly signaled or implicitly inherited for MBVD mode. In some embodiments, additional prediction signals can be explicitly signaled, but not in MBVD SKIP mode. In some other embodiments, additional prediction signals can be implicitly inherited, but not in MBVD SKIP mode. Alternatively, there is no inheritance/merging of additional prediction signals from merging candidates. In some embodiments, all explicitly signaled additional prediction signals may use the same AMVP candidate list which is generated for the first explicitly signaled additional prediction signal.
In some embodiments, if the MHP_IBC is to be applied, the additional prediction signals can be explicitly signaled or implicitly inherited for sub-block IBC merge mode. In some embodiments, the additional prediction signals can be explicitly signaled, but not in sub-block IBC SKIP mode. In some other embodiments, the additional prediction signals can be implicitly inherited, but not in sub-block IBC SKIP mode. Alternatively, there is no inheritance/merging of additional prediction signals from merging candidates. In some embodiments, all explicitly signaled additional prediction signals may use the same AMVP candidate list which is generated for the first explicitly signaled additional prediction signal.
In some embodiments, if the MHP_IBC is to be applied, the additional prediction signals may be explicitly signaled or implicitly inherited for non-affine IBC AMVP mode. In some embodiments, additional prediction signals can be explicitly signaled. In some embodiments, only one IBC AMVP candidate list may have to be constructed, for example, for the first additional prediction signal, i.e., a non-additional prediction signal. In some embodiments, for the additional prediction signals, the above IBC AMVP candidate list may be reused.
In some embodiments, if the MHP_IBC is to be applied, the additional prediction signals may be explicitly signaled or implicitly inherited for affine IBC AMVP mode. For example, the additional prediction signals can be explicitly signaled. In some embodiments, additional prediction signals may only support translational prediction signals.
In this case, one affine IBC AMVP candidate list may have to be constructed, for example, for the first additional prediction signal, i.e., a non-additional prediction signal. For the additional prediction signals, the above affine IBC AMVP candidate list may be reused. In some embodiments, the affine IBC top left my predictor may be used as the my predictor for the additional translational prediction signal. Alternatively, the affine IBC top right or bottom left my predictor may be used as the my predictor for the additional translational prediction signal.
In some embodiments, if the MHP_IBC is to be applied, multi-hypothesis IBC prediction may not be used together with combined IBC and inter mode or combined intra and IBC mode within one prediction unit (PU).
In some embodiments, if combined IBC and inter mode is selected with an IBC merging candidate that has additional prediction signals, those additional prediction signals may not be inherited/merged. In some embodiments, if combined intra and IBC mode is selected with an IBC merging candidate that has additional prediction signals, those additional prediction signals may not be inherited/merged.
In some embodiments, additional prediction signals may not be explicitly signaled in combined IBC and inter mode. In some embodiments, additional prediction signals may not be explicitly signaled in combined intra and IBC mode.
In some embodiments, if the MHP_IBC is to be applied, multi-hypothesis IBC prediction may not be used together with TPM_IBC or GPM_IBC within one PU.
In some embodiments, if TPM_IBC mode is selected with an IBC merging candidate that has additional prediction signals, those additional prediction signals may not be inherited/merged. In some embodiments, if GPM_IBC mode is selected with an IBC merging candidate that has additional prediction signals, those additional prediction signals may not be inherited/merged.
In some embodiments, additional prediction signals may not be explicitly signaled in TPM_IBC mode. In some embodiments, additional prediction signals may not be explicitly signaled in GPM_IBC mode.
On joint usage of OBMC and IBC, in some embodiments, if an IBC mode based on OBMC is to be applied, the motion type of current block and the neighboring block used for OBMC may be the same for at least one of CU-boundary OBMC or subblock-boundary OBMC. In some embodiments, the motion type may be IBC. In some other embodiments, the motion type may be regular inter.
In some embodiments, if an IBC mode based on OBMC is to be applied, the motion type of current block and the neighboring block used for OBMC may be different for at least one of CU-boundary OBMC or subblock-boundary OBMC. In some embodiments, one motion type may be IBC and the other motion type may be regular inter.
In some embodiments, furthermore, when and/or how to apply OBMC for IBC coded blocks may be different from those for non-IBC coded blocks. For example, the setting of weights may be different.
On extension of GPM IBC, it is proposed that BV derived from a candidate list for an IBC coded block with geometry/triangle partitions may be further refined before being used to derive the prediction signal.
In some embodiments, if an IBC mode based on geometric partitioning with the MBVD, which may also be called as GPM_IBC_MBVD, is to be applied, additional BV differences (BVDs) may be further applied on top of the existing GPM_IBC merge candidates.
In some embodiments, the BVDs may be signaled in the same manner as MBVD. In some embodiments, two flags may be signaled to separately indicate whether additional BVD is applied to each GPM_IBC partition. Alternatively, one single flag may be signaled to jointly control whether additional BVD is applied to each GPM_IBC partition. In this case, when the flag of one GPM_IBC partition is true, its corresponding BVD may be signaled in the same way as the MBVD, i.e., one distance index plus one direction index.
In some embodiments, the merge indices of two GPM_IBC partitions may be allowed to be the same when the BVDs that are applied to the two partitions are not identical.
In some embodiments, if the GPM_IBC_MBVD is to be applied, an BV pruning procedure may be introduced to construct the GPM_IBC merge candidate list when GPM_IBC with MBVD is applied.
In some embodiments, the pruning procedure may be based on a threshold. For example, if the differences of the horizontal and the vertical components for two BVs are both smaller than a threshold, one of them may be removed from the GPM_IBC list. Alternatively, if the horizontal and the vertical components for two BVs are both the same, one of them may be removed from the GPM_IBC list.
In some embodiments, the threshold may be decided by current block size. Alternatively, the threshold may be predefined.
In some embodiments, if the GPM_IBC_MBVD is to be applied, a distance index may specify motion magnitude information and indicate the pre-defined offset from the starting point. In some embodiments, an offset may be added to either horizontal component or vertical component of starting MV. In some other embodiments, an offset may be added to both horizontal component and vertical component of starting MV.
In some embodiments, the distance set may be {1-pel, 2-pel, 4-pel, 8-pel, 16-pel, 32-pel}. In some other embodiments, the distance set may be {1-pel, 2-pel, 4-pel, 8-pel, 16-pel, 32-pel, 64-pel, 128-pel}. In some other embodiments, the distance set may be {1-pel, 2-pel, 3-pel, 4-pel, 6-pel, 8-pel, 16-pel}. In some other embodiments, the distance set may be {1-pel, 2-pel, 3-pel, 4-pel, 6-pel, 8-pel, 16-pel, 32-pel, 64-pel}.
In some embodiments, if the GPM_IBC_MBVD is to be applied, a direction index represents the direction of the BVD relative to the starting point. For example, the direction index can represent of the M BVD directions.
As an example, M is set to 4. In this case, 4 horizontal directions or 4 vertical directions may be used. Alternatively, 4 diagonal directions may be used.
As another example, M is set to 8. In this case, 4 horizontal directions plus 4 diagonal directions may be used. Alternatively, 4 vertical directions plus 4 diagonal directions may be used.
In some embodiments, if an IBC mode based on geometric partitioning with template matching (TM), which may also be called as GPM_IBC_TM, is to be applied, when GPM_IBC mode is enabled for a CU, a CU-level flag may be signaled to indicate whether TM is applied to both geometric partitions. Alternatively, when GPM_IBC mode is enabled for a CU, two CU-level flags may be signaled to indicate whether TM is applied to each geometric partition.
In some embodiments, if the GPM_IBC_TM is to be applied, motion information for a geometric partition may be refined using TM. As an option, if only above template is available for current block, the GPM_IBC_TM mode can only use the above template. As another option, if only left template is available for current block, the GPM_IBC_TM mode can only use the left template. Alternatively, if both above and left templates are available for current block, the GPM_IBC_TM mode can use the left template, the above template, or both above and left templates.
In some embodiments, when TM is chosen, a template may be constructed using left, above or left and above neighboring samples according to partition angle. For example, one example is shown in Table 4.
In some embodiments, the motion may be refined by minimizing the difference between the current template and the reference template in the current picture using the same search pattern of TM merge mode.
In some embodiments, the GPM_IBC_MBVD and GPM_IBC_TM may be exclusively enabled to one GPM_IBC block.
According to embodiments of the present disclosure, it is proposed that more IBC-based modes are supported and corresponding implementations in respective IBC-based modes are provided. In this way, IBC coding may be further improved, and thus, the coding efficiency of IBC mode may be improved.
Implementations of the present disclosure can be described in view of the following clauses, the features of which can be combined in any reasonable manner.
Clause 1. A method for video processing, comprising: determining, during a conversion between a target video block of a video and a bitstream of the video, an intra block copy (IBC)-based mode to be applied for the target video block, the IBC-based mode being based on at least one of the following: an IBC mode based on affine motion compensated prediction (Affine_IBC), an affine IBC merge mode with block vector differences (MBVD), an intra template matching for IBC mode (TM_IBC), wherein a derived block vector (BV) by the TM_IBC is used as base candidates for the MBVD, an intra template matching for IBC mode (TM_IBC), wherein a derived block vector (BV) by the TM_IBC is used as BV prediction candidate for IBC non-merge mode, an IBC prediction mode based on multi-hypothesis, an IBC mode based on overlapped block motion compensation (OBMC), an IBC mode based on geometric partitioning with the MBVD, or an IBC mode based on geometric partitioning with template matching (TM); and performing the conversion based on the IBC-based mode.
Clause 2. The method of clause 1, wherein an affine motion model is utilized to predict the target video block from the reconstructed samples or pixels within the same picture.
Clause 3. The method of clause 1 or 2, wherein Affine_IBC mode is to be applied, and wherein an affine motion field of the target video block is described by motion information of two control points or three control points.
Clause 4. The method of clause 3, wherein the affine motion field of the target video block is described by the motion information of 4 parameter affine model or 6 parameter affine model.
Clause 5. The method of any of clauses 1-4, wherein the Affine_IBC mode comprises an affine IBC merge mode and affine IBC advanced motion vector prediction (AMVP) mode.
Clause 6. The method of clause 5, wherein the affine IBC merge mode is performed similar as an affine merge mode.
Clause 7. The method of clause 6, wherein the affine IBC AMVP mode is performed similar as an affine AMVP mode.
Clause 8. The method of clause 1, wherein a BV for a pixel of the target video block or for a sub-block of the target video block derived from an affine model is rounded or clipped to the integer precision.
Clause 9. The method of clause 1, wherein a BV prediction of a control point inherited from a neighbouring video block of the target video block or derived from an affine model is rounded or clipped to the integer precision.
Clause 10. The method of clause 1, wherein a prediction refinement with optical flow is used for the IBC mode based on affine motion compensated prediction.
Clause 11. The method of clause 10, wherein the prediction refinement with optical flow for the IBC mode based on affine motion compensated prediction is performed similar as a prediction refinement with optical flow for an affine mode.
Clause 12. The method of clause 1, wherein the Affine_IBC mode is a merge mode wherein no BV difference (BVD) is coded.
Clause 13. The method of clause 1, wherein the Affine_IBC mode is an inter mode wherein an indication of a BV difference (BVD) is coded.
Clause 14. The method of clause 1, wherein the Affine_IBC mode is a merge mode wherein indications of BV differences (BVDs) within an affine BVD candidate list are coded or derived.
Clause 15. The method of clause 14, wherein an index of a BVD is coded.
Clause 16. The method of clause 1, wherein block vectors of control points used in the Affine_IBC mode may be derived according to one or more BVs derived from an affine BV candidate list and one or more BV differences (BVDs) selected from a given affine BVD candidate list.
Clause 17. The method of clause 16, wherein the affine IBC MBVD mode is to be applied, and wherein an affine IBC merge candidate is selected, and BVs of control points are further refined by indicated block vector difference (BVD) information.
Clause 18. The method of clause 17, wherein the BVD information for the BVs of all control points are the same or different.
Clause 19. The method of clause 17, wherein the BVD information for the BVs of at least two control points are different.
Clause 20. The method of clause 17, wherein a BV for a pixel of the target video block or for a sub-block of the target video block derived from an affine model is rounded or clipped to an integer precision.
Clause 21. The method of clause 17, wherein a BV prediction of a control point inherited from a neighbouring block of the target video block or derived from an affine model is rounded or clipped to the integer precision.
Clause 22. The method of clause 17, wherein the BVD information for the BVs of control points in the Affine_IBC_MBVD mode is different from that utilized for a translational MBVD methods.
Clause 23 The method of clause 17, wherein the affine BVD candidate list only includes integer BVD candidates.
Clause 24. The method of clause 1, wherein if the derived BV by the TM_IBC is used as the base candidates for the MBVD, the BV is further refined by indicated block vector difference (BVD) information.
Clause 25. The method of clause 24, wherein BVDs are indicated in a same manner as MBVD.
Clause 26. The method of clause 24, wherein the BVDs are signaled in the same manner as the IBC non-merge mode.
Clause 27. The method of clause 24, wherein a syntax element indicates whether the derived BV by the TM_IBC is further refined by the MBVD.
Clause 28. The method of clause 27, wherein the syntax element is indicated only if the TM_IBC mode is applied.
Clause 29. The method of clause 1, wherein the derived BV by the TM_IBC is the only candidate for the IBC non-merge mode if the derived BV is available.
Clause 30. The method of clause 1, wherein the derived BV by the TM_IBC is the k-th candidate for the IBC non-merge mode if the derived BV is available.
Clause 31. The method of clause 30, wherein the k-th candidate is the first candidate.
Clause 32. The method of clause 1, wherein a syntax element indicates whether the derived BV by the TM_IBC is used as a BV prediction candidate for the IBC non-merge mode.
Clause 33. The method of clause 32, wherein the syntax element is indicated only if the TM_IBC mode is applied.
Clause 34. The method of clause 1, wherein the IBC prediction mode based on multi-hypothesis is to be applied, and wherein one or more additional prediction signals for motion-compensating are indicated, in addition to a conventional uni-prediction signal.
Clause 35. The method of clause 1, wherein the one or more additional prediction signals for motion-compensating are indicated or derived and different from that in a case where only uni-prediction signal is used.
Clause 36. The method of clause 34, wherein a resulting overall prediction signal is derived by a sample-wise weighted superposition.
Clause 37. The method of clause 36, wherein the resulting overall prediction signal is accumulated iteratively with each additional prediction signal as pn+i=(1−αn+1)pn+αn+1hn+1.
Clause 38. The method of clause 36, wherein resulting overall prediction signal is derived as the last weighted prediction signal having the largest index (n+1).
Clause 39. The method of clause 38, wherein one or two additional prediction signals are used.
Clause 40. The method of clause 36, wherein a weighting factor for the sample-wise weighted superposition is predefined.
Clause 41. The method of clause 40, wherein the weighting factor is set to ½.
Clause 42. The method of clause 36, wherein a weighting factor for the sample-wise weighted superposition is selected from a predefined set.
Clause 43. The method of clause 42, wherein the predefined set comprises one of {½, ¼}, {¼, −⅛}, or {½, ¼, −⅛}.
Clause 44. The method of clause 42, wherein the weighting factor is specified by an index.
Clause 45. The method of clause 42, wherein a simplified Rate Distortion (RD) cost using Hadamard distortion measure and approximated bit rate is used for determining the best weighting factor.
Clause 46. The method of clause 36, wherein a weighting factor for the sample-wise weighted superposition is position-dependent for each sample.
Clause 47. The method of clause 46, wherein the weighting factor is set to 1, 0, or ½.
Clause 48. The method of clause 36, wherein a weighting factor for the sample-wise weighted superposition is indicated from encoder to decoder.
Clause 49. The method of clause 34, wherein motion parameters of each additional prediction hypothesis are indicated by a first indicating mode in which the motion parameters of each additional prediction hypothesis are indicated explicitly by specifying a block vector predictor index and a block vector difference, or a second indicating mode in which the motion parameters of each additional prediction hypothesis are indicated implicitly by specifying a merge index.
Clause 50. The method of clause 49, wherein the first indicating mode and the second indicating mode are distinguished with each other by a separate multi-hypothesis IBC merge flag.
Clause 51. The method of clause 49, wherein multi-hypothesis motion estimation is performed in the first indicating mode.
Clause 52. The method of clause 51, wherein additional IBC prediction hypotheses are searched for a predefined number (N) of IBC modes having first N lowest Hadamard Rate Distortion (RD) costs.
Clause 53. he method of clause 51, wherein the additional IBC prediction hypotheses are searched for two of IBC modes having first two lowest Hadamard RD costs.
Clause 54. The method of clause 51, wherein a motion estimation with a restricted search range is performed for the searching.
Clause 55. The method of clause 54, wherein the restricted search range is set to 16.
Clause 56. The method of clause 51, wherein a simplified Rate Distortion (RD) cost using Hadamard distortion measure and approximated bit rate is used for determining the best weighting factor.
Clause 57. The method of clause 34, wherein the additional prediction signals are explicitly indicated or implicitly inherited for a normal IBC merge mode.
Clause 58. The method of clause 57, wherein the explicitly indicated additional prediction signals use a same IBC advanced motion vector prediction (AMVP) candidate list which is generated for a first explicitly indicated additional prediction signal.
Clause 59. The method of clause 57, wherein the additional prediction signals are explicitly indicated or implicitly inherited except for an IBC SKIP mode.
Clause 60. The method of clause 34, wherein the additional prediction signals are explicitly indicated or implicitly inherited for the MBVD mode.
Clause 61. The method of clause 60, wherein the additional prediction signals are explicitly indicated or implicitly inherited except for an MBVD IBC SKIP mode.
Clause 62. The method of clause 61, wherein there is no inheritance or merging of the additional prediction signals from merging candidates.
Clause 63. The method of clause 60, wherein all explicitly indicated additional prediction signals use the same advanced motion vector prediction (AMVP) candidate list which is generated for the first explicitly signaled additional prediction signal.
Clause 64. The method of clause 34, wherein the additional prediction signals are explicitly indicated or implicitly inherited for a sub-block IBC merge mode.
Clause 65. The method of clause 64, wherein the additional prediction signals are explicitly indicated or implicitly inherited except for an IBC SKIP mode.
Clause 66. The method of clause 65, wherein there is no inheritance or merging of the additional prediction signals from merging candidates.
Clause 67. The method of clause 64, wherein all explicitly indicated additional prediction signals use the same advanced motion vector prediction (AMVP) candidate list which is generated for the first explicitly signaled additional prediction signal.
Clause 68. The method of clause 34, wherein the additional prediction signals are explicitly indicated or implicitly inherited for a non-affine IBC AMVP mode.
Clause 69. The method of clause 68, wherein only one IBC AMVP candidate list is to be constructed.
Clause 70. The method of clause 69, wherein the only one IBC AMVP candidate list is to be constructed for a non-additional prediction signal.
Clause 71. The method of clause 69, wherein the IBC AMVP candidate list is reused for the additional prediction signals.
Clause 72. The method of clause 34, wherein the additional prediction signals are explicitly indicated or implicitly inherited for an affine IBC AMVP mode.
Clause 73. The method of clause 72, wherein the additional prediction signals only support translational prediction signals.
Clause 74. The method of clause 72, wherein an IBC AMVP candidate list is to be constructed.
Clause 75. The method of clause 74, wherein the IBC AMVP candidate list is to be constructed for a non-additional prediction signal.
Clause 76. The method of clause 74, wherein the IBC AMVP candidate list is reused for the additional prediction signals.
Clause 77. The method of any of clauses 74-76, wherein an affine IBC top left control point motion vector (MV) predictor is used as a MV predictor for the additional translational prediction signals.
Clause 78. The method of any of clauses 74-76, wherein an affine IBC top right or bottom left control point motion vector (MV) predictor is used as an MV predictor for the additional translational prediction signals.
Clause 79. The method of clause 34, wherein the IBC prediction mode with the multi-hypothesis is not used together with at least one of the following within a prediction unit (PU): a combined IBC and inter mode, or a combined intra and IBC mode.
Clause 80. The method of clause 79, wherein if the combined IBC and inter mode is selected with an IBC merging candidate that has the additional prediction signals, the additional prediction signals are not inherited or merged.
Clause 81. The method of clause 79, wherein if the combined intra and IBC mode is selected with an IBC merging candidate that has the additional prediction signals, the additional prediction signals are not inherited or merged.
Clause 82. The method of clause 79 or 80, wherein the additional prediction signals are not explicitly indicated in the combined IBC and inter mode.
Clause 83. The method of clause 79 or 81, wherein the additional prediction signals are explicitly indicated in the combined intra and IBC mode.
Clause 84. The method of clause 34, wherein the IBC prediction mode with the multi-hypothesis is not used together with at least one of the following within a prediction unit (PU): an IBC mode based on a triangle partition (TPM_IBC), or an IBC mode based on geometric partitioning (GPM_IBC).
Clause 85. The method of clause 84, wherein if the TPM_IBC mode is selected with an IBC merging candidate that has the additional prediction signals, the additional prediction signals may not be inherited or merged.
Clause 86. The method of clause 84, wherein if the GPM_IBC mode is selected with an IBC merging candidate that has the additional prediction signals, the additional prediction signals are not inherited or merged.
Clause 87. The method of clause 84 or 85, wherein the additional prediction signals are not explicitly indicated in the TPM_IBC mode.
Clause 88. The method of clause 84 or 86, wherein the additional prediction signals are not explicitly indicated in the GPM_IBC mode.
Clause 89. The method of clause 1, wherein the IBC mode based on the OBMC is to be applied, and wherein a motion type of the target video block and a neighboring video block used for the OBMC are the same for at least one of the following: a coding unit (CU) boundary OBMC, or a subblock boundary OBMC.
Clause 90. The method of clause 89, wherein the motion type is IBC or regular inter.
Clause 91. The method of clause 1, wherein the IBC mode based on the OBMC is to be applied, and wherein a motion type of the target video block and a neighboring video block used for the OBMC are different for at least one of the following: a coding unit (CU) boundary OBMC, or a subblock boundary OBMC.
Clause 92. The method of clause 91, wherein one motion type is IBC and the other motion type is regular inter.
Clause 93. The method of clause 1, wherein when and/or how to apply the OBMC for IBC coded blocks is different from those for non-IBC coded blocks.
Clause 94. The method of clause 93, wherein a setting of weights for the OBMC for the IBC coded blocks is different from that for the non-IBC coded blocks.
Clause 95. The method of clause 1, wherein the BV derived from a candidate list for an IBC coded block with geometry or triangle partitions are further refined before being used to derive the prediction signal.
Clause 96. The method of clause 1, wherein the IBC mode based on geometric partitioning (GPM_IBC) with MBVD is to be applied, and wherein additional block vector differences (BVDs) are further applied on top of an existing GPM_IBC merge candidates.
Clause 97. The method of clause 94, wherein the additional BVDs are indicated in a same manner as the MBVD.
Clause 98. The method of clause 96 or 97, wherein two flags separately indicate whether an additional BVD is applied to each GPM_IBC partition.
Clause 99. The method of clause 98, wherein one single flag is indicated to jointly control whether the additional BVD is applied to each GPM_IBC partition.
Clause 100. The method of clause 98, wherein if a flag of one GPM_IBC partition is true, a BVD corresponding to the flag is indicated in a same way as the MBVD.
Clause 101. The method of clause 100, wherein the BVD is indicated by one distance index plus one direction index.
Clause 102. The method of clause 1, wherein the IBC mode based on geometric partitioning (GPM_IBC) with MBVD is to be applied, and wherein merge indices of two GPM_IBC partitions are allowed to be the same if the block vector differences (BVDs) that are applied to the two partitions are not identical.
Clause 103. The method of clause 1, wherein the IBC mode based on geometric partitioning (GPM_IBC) with MBVD is to be applied, and wherein an BV pruning procedure is introduced to construct a GPM_IBC merge candidate list if the GPM_IBC with MBVD is applied.
Clause 104. The method of clause 103, wherein the BV pruning procedure may be based on a threshold.
Clause 105. The method of clause 104, wherein if differences of horizontal and vertical components for two BVs are both smaller than the threshold, one of them is removed from the GPM_IBC merge candidate list.
Clause 106. The method of clause 104, wherein if horizontal and vertical components for two BVs are both the same, one of them is removed from the GPM_IBC merge candidate list.
Clause 107. The method of any of clauses 104-106, wherein the threshold is decided by a size of the target video block.
Clause 108. The method of any of clauses 104-106, wherein the threshold is predefined.
Clause 109. The method of clause 1, wherein the IBC mode based on geometric partitioning (GPM_IBC) with MBVD is to be applied, and wherein a distance index specifies motion magnitude information and indicates a pre-defined offset from a starting point.
Clause 110. The method of clause 109, wherein the pre-defined offset comprises an offset added to at least one of the following: a horizontal component of a starting motion vector (MV), or a vertical component of the starting MV.
Clause 111. The method of clause 109 or 110, wherein the predefined offset is one of 1 pixel, 2 pixels, 4 pixels, 8 pixels, 16 pixels, or 32 pixels.
Clause 112. The method of clause 109 or 110, wherein the predefined offset is one of 1 pixel, 2 pixels, 4 pixels, 8 pixels, 16 pixels, 32 pixels, 64 pixels, or 128 pixels.
Clause 113. The method of clause 109 or 110, wherein the predefined offset is one of 1 pixel, 2 pixels, 3 pixels, 4 pixels, 6 pixels, 8 pixels, or 16 pixels.
Clause 114. The method of clause 109 or 110, wherein the predefined offset is one of 1 pixel, 2 pixels, 3 pixels, 4 pixels, 6 pixels, 8 pixels, 16 pixels, 32 pixels, or 64 pixels.
Clause 115. The method of clause 1, wherein the IBC mode based on geometric partitioning (GPM_IBC) with MBVD is to be applied, and wherein a direction index represents a direction of the block vector difference (BVD) relative to a starting point.
Clause 116. The method of clause 115, wherein the direction index represents a predefined number of BVD directions.
Clause 117. The method of clause 116, wherein the predefined number is set to 4.
Clause 118. The method of clause 116, wherein 2 horizontal directions and 2 vertical directions are used for the BVD directions.
Clause 119. The method of clause 116, wherein 4 diagonal directions are used for the BVD directions.
Clause 120. The method of clause 116, wherein the predefined number is set to 8.
Clause 121. The method of clause 116, wherein 4 diagonal directions plus 2 horizontal directions and 2 vertical directions are used for the BVD directions.
Clause 122. The method of clause 1, wherein the IBC mode based on geometric partitioning (GPM_IBC) with TM is to be applied, and wherein if the GPM_IBC mode is enabled for a coding unit (CU), a CU-level flag indicates whether TM is applied to both geometric partitions.
Clause 123. The method of clause 1, wherein the IBC mode based on geometric partitioning (GPM_IBC) with TM is to be applied, and wherein if the GPM_IBC mode is enabled for a coding unit (CU), two CU-level flag indicates whether TM is applied to each geometric partition.
Clause 124. The method of clause 1, wherein the IBC mode based on geometric partitioning (GPM_IBC) with TM is to be applied, and wherein motion information for at least one geometric partition is refined using the TM.
Clause 125. The method of clause 124, wherein if only above template is available for the target video block, the GPM_IBC_TM mode uses the above template.
Clause 126. The method of clause 124, wherein if only left template is available for the target video block, the GPM_IBC_TM mode uses the left template.
Clause 127. The method of clause 124, wherein if both above and left templates are available for the target video block, the GPM_IBC_TM mode uses at least one of the following: the left template, the above template, or both above and left templates.
Clause 128. The method of clause 124, wherein if the TM is chosen, a template is constructed using at least one of the following: left neighboring samples according to a partition angle, or above neighboring samples according to the partition angle.
Clause 129. The method of clause 124, wherein a motion is refined by minimizing a difference between a current template and a reference template in a target picture associated with the target video block using a same search pattern of TM merge mode.
Clause 130. The method of clause 1, wherein the IBC mode based on geometric partitioning with the MBVD and the IBC mode based on geometric partitioning with the TM are exclusively enabled to one GPM_IBC block.
Clause 131. The method of any of clauses 1-130, wherein in the IBC prediction mode, prediction samples are derived from blocks of sample values of a same video region as determined by the BVs.
Clause 132. The method of any of clauses 1-130, wherein the conversion includes encoding the target video block into the bitstream.
Clause 133. The method of any of clauses 1-131, wherein the conversion includes decoding the target video block from the bitstream.
Clause 134. An apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform a method in accordance with any of clauses 1-133.
Clause 135. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of clauses 1-133.
Clause 136. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining an intra block copy (IBC)-based mode to be applied for the target video block, the IBC-based mode being based on at least one of the following: an IBC mode based on affine motion compensated prediction, an affine IBC merge mode with block vector differences (MBVD), an intra template matching for IBC mode (TM_IBC), wherein a derived block vector (BV) by the TM_IBC is used as base candidates for the MBVD, an intra template matching for IBC mode (TM_IBC), wherein a derived block vector (BV) by the TM_IBC is used as BV prediction candidate for IBC non-merge mode, an IBC prediction mode based on multi-hypothesis, an IBC mode based on overlapped block motion compensation (OBMC), an IBC mode based on geometric partitioning with the MBVD, or an IBC mode based on geometric partitioning with template matching (TM); and generating the bitstream based on the IBC-based mode.
Clause 137. A method for storing a bitstream of a video, comprising: determining an intra block copy (IBC)-based mode to be applied for the target video block, the IBC-based mode being at least one of the following: an IBC mode based on affine motion compensated prediction, an affine IBC merge mode with block vector differences (MBVD), an intra template matching for IBC mode (TM_IBC), wherein a derived block vector (BV) by the TM_IBC is used as base candidates for the MBVD, an intra template matching for IBC mode (TM_IBC), wherein a derived block vector (BV) by the TM_IBC is used as BV prediction candidate for IBC non-merge mode, an IBC prediction mode based on multi-hypothesis, an IBC mode based on overlapped block motion compensation (OBMC), an IBC mode based on geometric partitioning with the MBVD, or an IBC mode based on geometric partitioning with template matching (TM); generating the bitstream based on the IBC-based mode; and storing the bitstream in a non-transitory computer-readable recording medium.
It would be appreciated that the computing device 5400 shown in
As shown in
In some embodiments, the computing device 5400 may be implemented as any user terminal or server terminal having the computing capability. The server terminal may be a server, a large-scale computing device or the like that is provided by a service provider. The user terminal may for example be any type of mobile terminal, fixed terminal, or portable terminal, including a mobile phone, station, unit, device, multimedia computer, multimedia tablet, Internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system (PCS) device, personal navigation device, personal digital assistant (PDA), audio/video player, digital camera/video camera, positioning device, television receiver, radio broadcast receiver, E-book device, gaming device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It would be contemplated that the computing device 5400 can support any type of interface to a user (such as “wearable” circuitry and the like).
The processing unit 5410 may be a physical or virtual processor and can implement various processes based on programs stored in the memory 5420. In a multi-processor system, multiple processing units execute computer executable instructions in parallel so as to improve the parallel processing capability of the computing device 5400. The processing unit 5410 may also be referred to as a central processing unit (CPU), a microprocessor, a controller or a microcontroller.
The computing device 5400 typically includes various computer storage medium. Such medium can be any medium accessible by the computing device 5400, including, but not limited to, volatile and non-volatile medium, or detachable and non-detachable medium. The memory 5420 can be a volatile memory (for example, a register, cache, Random Access Memory (RAM)), a non-volatile memory (such as a Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), or a flash memory), or any combination thereof. The storage unit 5430 may be any detachable or non-detachable medium and may include a machine-readable medium such as a memory, flash memory drive, magnetic disk or another other media, which can be used for storing information and/or data and can be accessed in the computing device 5400.
The computing device 5400 may further include additional detachable/non-detachable, volatile/non-volatile memory medium. Although not shown in
The communication unit 5440 communicates with a further computing device via the communication medium. In addition, the functions of the components in the computing device 5400 can be implemented by a single computing cluster or multiple computing machines that can communicate via communication connections. Therefore, the computing device 5400 can operate in a networked environment using a logical connection with one or more other servers, networked personal computers (PCs) or further general network nodes.
The input device 5450 may be one or more of a variety of input devices, such as a mouse, keyboard, tracking ball, voice-input device, and the like. The output device 5460 may be one or more of a variety of output devices, such as a display, loudspeaker, printer, and the like. By means of the communication unit 5440, the computing device 5400 can further communicate with one or more external devices (not shown) such as the storage devices and display device, with one or more devices enabling the user to interact with the computing device 5400, or any devices (such as a network card, a modem and the like) enabling the computing device 5400 to communicate with one or more other computing devices, if required. Such communication can be performed via input/output (I/O) interfaces (not shown).
In some embodiments, instead of being integrated in a single device, some or all components of the computing device 5400 may also be arranged in cloud computing architecture. In the cloud computing architecture, the components may be provided remotely and work together to implement the functionalities described in the present disclosure. In some embodiments, cloud computing provides computing, software, data access and storage service, which will not require end users to be aware of the physical locations or configurations of the systems or hardware providing these services. In various embodiments, the cloud computing provides the services via a wide area network (such as Internet) using suitable protocols. For example, a cloud computing provider provides applications over the wide area network, which can be accessed through a web browser or any other computing components. The software or components of the cloud computing architecture and corresponding data may be stored on a server at a remote position. The computing resources in the cloud computing environment may be merged or distributed at locations in a remote data center. Cloud computing infrastructures may provide the services through a shared data center, though they behave as a single access point for the users. Therefore, the cloud computing architectures may be used to provide the components and functionalities described herein from a service provider at a remote location. Alternatively, they may be provided from a conventional server or installed directly or otherwise on a client device.
The computing device 5400 may be used to implement video encoding/decoding in embodiments of the present disclosure. The memory 5420 may include one or more video coding modules 5425 having one or more program instructions. These modules are accessible and executable by the processing unit 5410 to perform the functionalities of the various embodiments described herein.
In the example embodiments of performing video encoding, the input device 5450 may receive video data as an input 5470 to be encoded. The video data may be processed, for example, by the video coding module 5425, to generate an encoded bitstream. The encoded bitstream may be provided via the output device 5460 as an output 5480.
In the example embodiments of performing video decoding, the input device 5450 may receive an encoded bitstream as the input 5470. The encoded bitstream may be processed, for example, by the video coding module 5425, to generate decoded video data. The decoded video data may be provided via the output device 5460 as the output 5480.
While this disclosure has been particularly shown and described with references to preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application as defined by the appended claims. Such variations are intended to be covered by the scope of this present application. As such, the foregoing description of embodiments of the present application is not intended to be limiting.
Number | Date | Country | Kind |
---|---|---|---|
PCT/CN2021/120511 | Sep 2021 | WO | international |
This application is a continuation of International Application No. PCT/CN2022/121154, filed on Sep. 24, 2022, which claims the benefit of International Application No. PCT/CN2021/120511 filed on Sep. 25, 2021. The entire contents of these applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/121154 | Sep 2022 | WO |
Child | 18615916 | US |