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 merge mode with block vector difference (MBVD), a combined prediction mode based on an IBC mode and at least one further prediction mode, an IBC mode based on triangle partitioning, an IBC mode based on geometric partitioning, an IBC advanced motion vector prediction (AMVP) mode based on template matching (TM), and an IBC merge mode based on TM; and performing the conversion based on the IBC 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 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 merge mode with block vector difference (MBVD), a combined prediction mode based on an IBC mode and at least one further prediction mode, an IBC mode based on triangle partitioning, an IBC mode based on geometric partitioning, an IBC advanced motion vector prediction (AMVP) mode based on template matching (TM), or an IBC merge mode based on 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 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 merge mode with block vector difference (MBVD), a combined prediction mode based on an IBC mode and at least one further prediction mode, an IBC mode based on triangle partitioning, an IBC mode based on geometric partitioning, an IBC advanced motion vector prediction (AMVP) mode based on template matching (TM), or an IBC merge mode based on 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. Example Environment
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.
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 Ai, Bi, Ci, Di and Ei 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 Ai, Bi, Ci, Di and Ei 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:
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 (RT1) 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 1/8-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 ‘a’ 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, RT1 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 (RT1). 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 (RT1). 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:
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).
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).
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).
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)
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)
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).
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).
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).
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:
To enable efficient search for matched blocks, the structure of inverted index is used, where hash values are used as to index into a table, and the table entries contain all the blocks with the same hash value as the corresponding table index. The blocks corresponding a given table index are stored as a linked list. Two CRC values, one 16-bit hash and the other 24-bit hash, are calculated for each block. The two hash values are calculated in a similar way but using different CRC truncated polynomials. The first 16-bit CRC value is used as the inverted index. The second 24-bit hash value is stored together with the blocks to resolve hash conflicts in the case more than one matching blocks are found. To reduce the length of the hash table, the hash values of all “simple” blocks (defined as a block with only one sample value in each row or column) are excluded from the hash table.
In motion estimation, if the current block is a square block (except for 128×128 blocks), its hash values are calculated. Then, the encoder queries the corresponding hash table. If hash match is found, the matched block is used as the reference. If the current block is a rectangle block of size N×M (and without loss of generality assume M>N), it will be divided into several non-overlapping square subblocks of size N×N.
For inter coding, the hash-based motion search is performed before testing all coding modes. In addition, encoder will reuse the MVs of the hash mode as the starting point candidates in the normal motion estimation process. If the hash-based motion vector exists, which indicates that the block most likely contains screen content, fractional motion estimation is skipped.
To accelerate the encoder, coding modes other than the skip and merge part of ETM_MERGE_SKIP, ETM_AFFINE, and ETM_MERGE_GPM modes and finer-granularity block splitting are skipped if all of the following conditions are satisfied:
In VVC, a coding tool called the luma mapping with chroma scaling (LMCS) is added as a new processing block before the loop filters. LMCS has two main components: 1) in-loop mapping of the luma component based on adaptive piecewise linear models; 2) for the chroma components, luma-dependent chroma residual scaling is applied.
2.21.1 Luma Mapping with Piecewise Linear Model
The in-loop mapping of the luma component adjusts the dynamic range of the input signal by redistributing the codewords across the dynamic range to improve compression efficiency. Luma mapping makes use of a forward mapping function, FwdMap, and a corresponding inverse mapping function, InvMap. The FwdMap function is signalled using a piecewise linear model with 16 equal pieces. InvMap function does not need to be signalled and is instead derived from the FwdMap function.
The luma mapping model is signalled in the adaptation parameter set (APS) syntax structure with aps_params_type set equal to 1 (LMCS_APS). Up to 4 LMCS APS's can be used in a coded video sequence. Only 1 LMCS APS can be used for a picture. The luma mapping model is signalled using piecewise linear model. The piecewise linear model partitions the input signal's dynamic range into 16 equal pieces, and for each piece, its linear mapping parameters are expressed using the number of codewords assigned to that piece. Take 10-bit input as an example. Each of the 16 pieces will have 64 codewords assigned to it by default. The signalled number of codewords is used to calculate the scaling factor and adjust the mapping function accordingly for that piece. At the slice level, an LMCS enable flag is signalled to indicate if the LMCS process as depicted in
Each i-th piece, i=0 . . . 15, of the FwdMap piecewise linear model is defined by two input pivot points InputPivot[ ] and two output (mapped) pivot points MappedPivot[ ].
The InputPivot[ ] and MappedPivot[ ] are computed as follows (assuming 10-bit video):
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
Unlike luma mapping, which is performed on the sample basis, CscaleInv is a constant value for the entire chroma block. With CscaleInv, chroma residual scaling is applied as follows:
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.
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 ρx,j and ρy,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(4x+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
The CIIP prediction is formed as follows:
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.
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 description below should be considered as examples to explain general concepts. These embodiments should not be interpreted in a narrow way. Furthermore, these embodiments 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.
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.
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.
As shown in
At block 4504, 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.
In some embodiments, if the IBC MBVD mode is determined to be applied, in the IBC MBVD mode, a BV may be generated based on at least one IBC merge candidate, which may be further refined based on block vector difference (BVD) information. In some embodiments, the BVD information comprises signaled BVD information.
In some embodiments, the BVD information comprises at least one IBC merge candidate index, at least one indication (such as index) for at least one motion magnitude, at least one indication (such as index) for at least one motion direction, or any other suitable BVD information.
In some embodiments, in the IBC MBVD mode, at least one from the candidates in the IBC merge list may be selected to be used as BV basis. At least one MBVD candidate index may be signaled to specify which candidate(s) is (are) used among the IBC merge candidates.
In some embodiments, the at least one IBC merge candidate may be selected from an IBC merge candidate list to be used as BV basis. The at least one MBVD candidate index may be included in the bitstream to specify which at least one IBC merge candidate(is) is selected among the IBC merge candidates.
In some embodiments, a MBVD candidate index may be included in the bitstream to specify a selected IBC merge candidate among a first predetermined number (e.g., N) of IBC merge candidates in the IBC merge candidate list. For example, the MBVD candidate index is signaled to specify which one is used among the first N IBC merge candidates. In some embodiments, N is set to two. In some embodiments, the MBVD candidate index may be binarized as a truncated code, with a maximum value equal to N−1.
In some embodiments, the IBC merge candidate list may be reordered before being used. The at least one IBC merge candidate may be selected from the reordered IBC merge candidate list.
In some embodiments, in the BVD information, the at least one indication for at least one motion magnitude may comprise a distance index to specify motion magnitude information. The distance index may indicate a predefined offset from a starting point.
In some embodiments, the predefined offset may comprise an offset added to either a horizontal component or a vertical component of a starting BV. In some embodiments, the predefined offset may comprise an offset added to both a horizontal component and a vertical component of a starting BV.
In some embodiments, the predefined offset may be one of 1 pixel, 2 pixels, 4 pixels, 8 pixels, 16 pixels, 32 or pixels. In some embodiments, the predefined offset may be selected from a first offset group (or a first distance set) of {1-pel, 2-pel, 4-pel, 8-pel, 16-pel, 32-pel}, where “-pel” means “pixel” or “pixels”. In some embodiments, the distance index indicating the predefined offset may be selected from a first index group comprising respective distance indices corresponding to offsets within the first offset group. An example relation of distance indices and predefined offsets is specified in above Table 4.
In some embodiments, the predefined offset may be one of 1 pixel, 2 pixels, 4 pixels, 8 pixels, 16 pixels, 32 pixels, 64 pixels, or 128 pixels. In some embodiments, the predefined offset may be selected from a second offset group of {1-pel, 2-pel, 4-pel, 8-pel, 16-pel, 32-pel, 64-pel, 128-pel}. In some embodiments, the distance index indicating the predefined offset may be selected from a second index group comprising respective distance indices corresponding to offsets within the second offset group. An example relation of distance indices and predefined offsets is specified in above Table 5.
In some embodiments, the predefined offset may be one of 1 pixel, 2 pixels, 3 pixels, 4 pixels, 6 pixels, 8 pixels, or 16 pixels. In some embodiments, the predefined offset may be selected from a third offset group of {1-pel, 2-pel, 3-pel, 4-pel, 6-pel, 8-pel, 16-pel}. In some embodiments, the distance index may be selected from a third index group comprising respective distance indices corresponding to offsets within the third offset group. An example relation of distance indices and predefined offsets is specified in above Table 6.
In some embodiments, the predefined offset may be one of 1 pixel, 2 pixels, 3 pixels, 4 pixels, 6 pixels, 8 pixels, 16 pixels, 32 pixels, or 64 pixels. In some embodiments, the predefined offset may be selected from a fourth offset group of {1-pel, 2-pel, 3-pel, 4-pel, 6-pel, 8-pel, 16-pel, 32-pel, 64-pel}. In some embodiments, the distance index may be selected from a fourth index group comprising respective distance indices corresponding to offsets within the fourth offset group. An example relation of distance indices and predefined offsets is specified in above Table 7.
In some embodiments, a relation between respective distance indices and offsets (e.g., any of the relations in Tables 4 to 7) may be indicated from an encoder for the video to a decoder for the video. In some embodiments, the relation may be signaled at a sequence level, a picture level, a slice level, a coding tree unit (CTU) level, a coding unit (CU) level, or any other suitable level.
In some embodiments, the distance index may be binarized based on at least one of the following: unary coding, truncated unary coding, exponential-Golomb code, truncated exponential-Golomb code, fixed length code, or any other binarization method.
In some embodiments, in the MVD information, the at least one indication for at least one motion direction may comprise a direction index indicating a predefined direction of BVD relative to a starting point. In some embodiments, the direction index represents an BVD direction among a second predetermined number (e.g., M) of BVD directions.
In some embodiments, the second predetermined number M may be set to four. In some embodiments, four BVD directions may comprise four horizontal/vertical directions. In some embodiments, the four BVD directions may comprise four diagonal directions.
In some embodiments, if four BVD directions may comprise four horizontal/vertical directions, the direction index may be one of a first direction index (e.g., index 0), a second direction index (e.g., index 1), a third direction index (e.g., index 2), or a fourth direction index (e.g., index 4). In an example, the above-mentioned four direction indices may form a first direction index group. Index 0 may indicate a positive sign of a BV offset in a horizontal component, and a vertical component may be a default value, such as zero. For example, index 0 may indicate (offset, 0) as BVD. Index 1 may indicate a negative sign of the BV offset in the horizontal component, and the vertical component may be a default value, such as zero. For example, index 1 may indicate (−offset, 0) as BVD. Index 2 may indicate a positive sign of the BV offset in a vertical component, and the horizontal component may be a default value, such as zero. For example, index 2 may indicate (0, offset) as BVD. Index 3 may indicate a negative sign of the BV offset in the vertical component, and the horizontal component may be a default value, such as zero. For example, index 3 may indicate (0, −offset) as BVD. An example relation of direction indices and directions may be specified in Table 8.
In some embodiments, the direction index may be one of a first direction index (e.g., index 0), a second direction index (e.g., index 1), a third direction index (e.g., index 2), or a fourth direction index (e.g., index 4). In an example, the above-mentioned four direction indices may form a second direction index group. Index 0 may indicate a positive sign of a BV offset in a horizontal component and a positive sign of the BV offset in a vertical component. For example, index 0 may indicate (offset, offset) as the BVD. Index 1 may indicate a positive sign of the BV offset in the horizontal component and a negative sign of the BV offset in the vertical component. For example, index 1 may indicate (offset, −offset) as the BVD. Index 2 may indicate a negative sign of the BV offset in the horizontal component and a positive sign of the BV offset in the vertical component. For example, index 2 may indicate (−offset, offset) as the BVD. Index 3 may indicate a negative sign of the BV offset in the horizontal component and a negative sign of the BV offset in the vertical component. For example, index 3 may indicate (−offset, −offset) as the BVD. An example relation of direction indices and directions may be specified in Table 9.
In some embodiments, the second predetermined number of M may be eight, and the second predetermined number of BVD directions comprise four horizontal/vertical directions, and four diagonal directions. In some embodiments, the direction index may be one of the four indices in the above first direction index group and second direction index group. Specifically, the direction index may be one of index 0, index 1, index 2, index 3, index, 4, index 5, index 6, or index 7, which may form a third direction index group.
Index 0 may indicate a positive sign of a BV offset in a horizontal component, and zero in the vertical component, for example, (offset, 0) as BVD. Index 1 may indicate a negative sign of the BV offset in the horizontal component, and zero in the vertical component, for example, (−offset, 0) as BVD. Index 2 may indicate a positive sign of the BV offset in a vertical component, and zero in the horizontal component, for example, (0, offset) as BVD. Index 3 may indicate a negative sign of the BV offset in the vertical component, and zero in the horizontal component, for example, (0, −offset) as BVD. Index 4 may indicate a positive sign of a BV offset in a horizontal component and a positive sign of the BV offset in a vertical component, for example, (offset, offset) as BVD. Index 5 may indicate a positive sign of the BV offset in the horizontal component and a negative sign of the BV offset in the vertical component, for example, (offset, −offset) as BVD. Index 6 may indicate a negative sign of the BV offset in the horizontal component and a positive sign of the BV offset in the vertical component, for example, (−offset, offset) as BVD. Index 7 may indicate a negative sign of the BV offset in the horizontal component and a negative sign of the BV offset in the vertical component, for example, (−offset, −offset). An example relation of direction indices and directions may be specified in Table 10.
In some embodiments, the direction index may be binarized based on unary coding, truncated unary coding, exponential-Golomb code, truncated exponential-Golomb code, fixed length code, or any other binarization method.
In some embodiments, in the IBC MBVD mode, the number of motion magnitudes (or distances) and/or the number of motion direction(s) may be determined based on at least one of the following: a resolution of a picture, a configuration of a coding process, or BVD information of at least one neighbouring block of the target video block.
In some embodiments, the at least one neighbouring block of which BVDs are used may comprise an above neighbouring block and a left neighbouring block (see
In some embodiments, the at least one neighbouring block may comprise at least one adjacent spatial neighbouring block. The at least one adjacent spatial neighbouring block may include at least one of the following: a left spatial neighbouring block, an above spatial neighbouring block, an above-right spatial neighbouring block, a bottom-left spatial neighbouring block, or an above-left spatial neighbouring block (see
In some embodiments, alternatively, in the IBC MBVD mode, the number of the at least one motion magnitude and/or the number of the at least one motion direction may be indicated from an encoder for the video to a decoder for the video. In some embodiments, the number may be signaled at one of a sequence level, a picture level, a slice level, a coding tree unit (CTU) level, a coding unit (CU) level, or any other suitable level.
In some embodiments, in the IBC MBVD mode, the generated BV may be a valid BV within a valid range of BV. In some cases, the candidates, motion directions, and/or motion magnitudes used in the IBC MBVD mode which may produce a BV out of the valid range may be excluded from BVD information set to be selected or signaled. As such, it may ensure that the generated BV is valid. In some embodiments, as an alternative, if a BV derived from the BVD information is out of a valid range of BV, a clipping process may be performed on the BV out of the valid range, to clip the BV to be within the valid range. In some embodiments, as an alternative, the BV may be generated according to a bitstream conformance constraint, the bitstream conformance constraint specifying the BV to be within a valid range of BV.
In some embodiments, the IBC-based mode may comprise the combined prediction mode based on an IBC mode and at least one further prediction mode. This mode may be considered as a new CIIP mode which combines at least one IBC prediction and at least one further prediction (referred to as “CIIP_N”). In some embodiments, the at least one further prediction mode may comprise an intra-prediction mode or an inter-prediction mode.
In some embodiments, if the CIIP_N mode is determined to be applied to the target video block, at least one first prediction block for the target video block may be generated based on the IBC mode, and at least one second prediction block for the target video block may be generated based on the at least one further prediction mode. The at least one first prediction block may also be referred to as a first prediction signal, or an IBC prediction signal or block. The at least one second prediction block may also be referred to as a second prediction signal.
Then a target prediction block for the target video block may be determined at least based on a weighted combination of the at least one first prediction block and the at least one second prediction block. In some embodiments, the target prediction signal may be determined further based on an offset, the offset being an integer. In some examples, the at least one first prediction block and the at least one second prediction block may be combined by weighted averaging as follows:
In the above equation, a value of the weighted parameter wt is used to weight the second prediction block Psec, and (2N−wt) is used to weight the first prediction block PIBC. In some embodiments, the offset may be an integer such as 2N>>1.
In some embodiments, the predetermined value N may be 2 although other value may also be configured.
In some embodiments, a value of the weight parameter wt may be predefined. In some embodiments, the value of the weight parameter may be set to 2 although other value may also be predefined.
In some embodiments, a value of the weight parameter wt may be determined based on a position for a sample. That is, the value of the weight parameter wt may be position-dependent for each sample. In some embodiments, for some positions, a value of the weight parameter wt may be determined as a value calculated from the predetermined value N. For example, wt may be determined as the predetermined value N power of 2, i.e., wt=2N, In some embodiments, for some positions, wt=0.
In some embodiments, a value of the weight parameter wt may be indicated or signaled from an encoder for the video to a decoder for the video.
In some embodiments, the at least one first prediction block may be generated using an IBC prediction process applied in an IBC merge mode. That is, the at least one first prediction block (or IBC prediction signal) in the CIIP_N mode PIBC may be derived using the same IBC prediction process applied to regular IBC merge mode.
In some embodiments, if the CIIP_N mode combines the IBC mode and the intra-prediction mode, the at least one further prediction block PSec may be derived following a regular intra prediction process, and the combined prediction mode may be called CIIP_N1. In some embodiments, the intra-prediction mode may comprise a planar prediction mode. In some embodiments, the intra-prediction mode may comprise an intra-prediction mode which may be implicitly derived by decoder side intra mode derivation (DIMD). In some embodiments, the intra-prediction mode may comprise an intra-prediction mode which is implicitly derived by template-based intra mode derivation (TIMD).
In some embodiments, in the CIIP_N1 mode, a value of the weight parameter may be determined based on at least one coding mode of at least one neighbouring block of the target video block. Alternatively, or in addition, in the CIIP_N1 mode, a value of the weight parameter may be determined based on availability of at least one neighbouring block of the target video block. In some embodiments, a value of the weight parameter may be calculated depending on coding modes of the top and left neighbouring blocks of the target video block (e.g., shown in
In some embodiments, in the CIIP_N1 mode, a value of the weight parameter may be calculated as follows. Specifically, the weight parameter may be set to a first value (e.g., 3) if both the top neighbouring block and the left neighbouring block are available and are intra coded. The weight parameter may be set to a second value (e.g., 2) if one of the top neighbouring block and the left neighbouring block is available and is intra coded. The weight parameter may be set to a third value (e.g., 1) if none of the top neighbouring block and the left neighbouring block is available and is intra coded. As an example, if the top neighbouring block is available and is intra coded, then a first parameter related to the top neighbouring block (isIntraTop) may be set to 1, otherwise, isIntraTop may be set to 0. Further, if the left neighbouring block is available and intra coded, then a second parameter related to the left neighbouring block (isIntraLeft) may be set to 1, otherwise, isIntraLeft may be set to 0. Then if (isIntraLeft+isIntraTop) is equal to 2, the weight parameter wt may be set to 3. Otherwise, if (isIntraLeft+isIntraTop) is equal to 1, the weight parameter wt may be set to 2. For other value of (isIntraLeft+isIntraTop), the weight parameter wt may be set to 1.
In some embodiments, if the CIIP_N mode combines the IBC mode and the inter-prediction mode, the at least one further prediction block Psec may be derived using the same inter prediction process applied to a regular merge mode, and the combined prediction mode may be called CIIP_N2. In some embodiments, in the CIIP_N2 mode, a value of the weight parameter may be determined based on at least one coding mode of at least one neighbouring block of the target video block. Alternatively, or in addition, a value of the weight parameter may be determined based on availability of at least one neighbouring block of the target video block. In some embodiments, a value of the weight parameter may be calculated depending on coding modes of the top and left neighbouring blocks of the target video block (e.g., as shown in
In some embodiments, in the CIIP_N2 mode, a value of the weight parameter may be calculated as follows. Specifically, the weight parameter may be set to a first value (e.g., 1) if both the top neighbouring block and the left neighbouring block are available and are IBC coded. The weight parameter may be set to a second value (e.g., 2) if one of the top neighbouring block and the left neighbouring block is available and is IBC coded. The weight parameter may be set to a third value (e.g., 3) if none of the top neighbouring block and the left neighbouring block is available and is IBC coded. As an example, if the top neighbouring block is available and IBC coded, then a first parameter related to the top neighbouring block (isIBCTop) may be set to 1, otherwise, isIBCTop may be set 0. If the left neighbouring block is available and IBC coded, then a second parameter related to the left neighbouring block (isIBCLeft) may be to 1, otherwise, isIBCLeft may be set 0. Then if (isIBCLeft+isIBCTop) is equal to 2, the weight parameter wt may be set to 1. Otherwise, if (isIBCLeft+isIBCTop) is equal to 1, the weight parameter wt may be set to 2. For other value of (isIBCLeft+isIBCTop), the weight parameter wt may be set to 3.
In some embodiments, in the CIIP_N mode, an IBC merge candidate may be selected from an IBC merge candidate list; and a first prediction block may be determined based on the IBC merge candidate. In some embodiments, an IBC merge candidate index is included in the bitstream to specify which one is selected for use among the IBC merge candidates.
In some embodiments, the IBC merge candidate index may be included in the bitstream to specify the selected IBC merge candidate among a third predetermined number (e.g., N) of IBC merge candidates in the IBC merge candidate list. For example, an IBC candidate index may be signaled to specify which one is used among the first N IBC merge candidates.
In some embodiments, the third predetermined number N may be a predefined value, for example, N may be set to 4. In some embodiments, the third predetermined number N may be set to a valid number of IBC merge candidates in the IBC merge candidate list. In some embodiments, the third predetermined number N may set to the number of full rate distortion (RD) for IBC merge. In some embodiments, the third predetermined number N may set to the number of full RD for IBC merge plus an integer.
In some embodiments, the third predetermined number N may be indicated (or signaled) from an encoder for the video to a decoder for the video. In some embodiments, the IBC merge candidate list may be reordered before being used. An IBC merge candidate may be selected from the reordered IBC merge candidate list.
In some embodiments, the third predetermined number N of IBC merge candidates may be determined from the IBC merge candidate list according to an ascending order of sum of absolute transformed differences (SATD) costs of IBC merge candidates. An IBC candidate index may be signaled to specify which one is used among the first N IBC merge candidates in an ascending order of SATD costs of IBC merge candidates. In some embodiments, the IBC merge candidates may be reordered before calculating the SATD costs.
In some embodiments, if the combined mode combines an IBC mode and an inter-prediction mode, a regular merge candidate may be selected from a regular merge candidate list to be selected for inter prediction, to generate a second prediction block for the target video block. In some embodiments, a merge candidate index may be included in the bitstream to specify the selected regular merge candidate. This merge candidate index may be signaled to specify which one is used among the regular merge candidates.
In some embodiments, a merge candidate index may be included in the bitstream to specify the selected regular merge candidate among a fourth predetermined number (e.g., N) of regular merge candidates in the regular merge candidate list. This merge candidate index may be signaled to specify which one is used among the first N regular merge candidates. In one example, the regular merge candidates may be reordered before being used. A regular merge candidate may be selected from the reordered regular merge candidate list to generate a second prediction block in the CIIP_N mode.
In some embodiments, the fourth predetermined number N may be set to a predefined value, for example, four, or any other suitable value. In some embodiments, the fourth predetermined number N may be set to a valid number of regular merge candidates in the regular merge candidate list. In some embodiments, the fourth predetermined number N may be set to the number of full RD for inter merge. In some embodiments, the fourth predetermined number N may be set to the number of full RD for inter merge plus an integer. In some embodiments, the fourth predetermined number N may be indicated from an encoder for the video to a decoder for the video.
In some embodiments, the fourth predetermined number of regular merge candidates may be determined from the regular merge candidate list according to an ascending order of SATD costs of regular merge candidates. A merge candidate index may be signaled to specify which one is used among the first N regular merge candidates in the ascending order of SATD costs. In some embodiments, the regular merge candidate list may be reordered before calculating the SATD costs. In one example, N may be set to 4. In one example, N may be set to the valid number of regular merge candidates in the regular merge list. In one example, N may be set to the number of full RD for inter merge. In one example, N may be set to the number of full RD for inter merge plus an integer.
In some embodiments, whether the combined prediction mode (e.g., CIIP_N mode or CIIP_N2 mode) is applied and/or an applying scheme of this mode may be determined based on coding information related to the target video block. The applying scheme may indicate how the CIIP_N mode or CIIP_N2 mode is applied.
In some embodiments, the coding information related to the target video block may include block dimensions, a quantization parameter (QP), a coding mode(s) of at least one neighboring block of the target video block, and/or other coding information. In some embodiments, if the target video block is coded in a merge mode, a flag may be included in the bitstream to indicate if the combined prediction mode is applied to the target video block based on some conditions being satisfied. The merge mode considered here may include an IBC merge mode or a regular merger mode.
In some embodiments, the conditions for including the flag may be based on the block dimension. In some embodiments, when the target video block is coded in an IBC merge mode, if a size of the target video block is larger than or equal to a first threshold, then a flag may be signaled to indicate if the CIIP_N mode is applied to the target video block. In some examples, the first threshold may comprise a threshold total number of luma samples contained in the target video block. For example, if the target video block contains at least P luma samples (that is, block width times block height is equal to or larger than P), a flag may be signaled to indicate if the CIIP_N mode is applied to the target video block. In one example, P may be set to 64. In other examples, P may be set to any other suitable values.
In some embodiments related to the block dimension, when the target video block is coded in an IBC merge mode, if both a block width and a block height of the target video block is less than or equal to a second threshold, then a flag may be signaled to indicate if the CIIP_N mode is applied to the target video block. In some examples, the second threshold may comprise a threshold number of luma samples in block width or block height. For example, if both block width and block height are less than Q luma samples, a flag may be signaled to indicate if the CIIP_N mode is applied to the target video block. In one example, Q may be set to 128. In one example, Q may be set to 64. In other examples, Q may be set to any other suitable values.
In some embodiments, the above two conditions (the first threshold for the block size and the second threshold for the block width and height) may be used together.
In some embodiments, when the target video block is coded in a regular merge mode, if a size of the target video block is larger than or equal to a first threshold, then a flag may be signaled to indicate if the CIIP_N2 mode is applied to the target video block. In some examples, the first threshold may comprise a threshold total number of luma samples contained in the target video block. For example, if the target video block contains at least P luma samples (that is, block width times block height is equal to or larger than P), a flag may be signaled to indicate if the CIIP_N2 mode is applied to the target video block. In one example, P may be set to 64. In other examples, P may be set to any other suitable values.
In some embodiments related to the block dimension, when the target video block is coded in a regular merge mode, if both a block width and a block height of the target video block is less than or equal to a second threshold, then a flag may be signaled to indicate if the CIIP_N2 mode is applied to the target video block. In some examples, the second threshold may comprise a threshold number of luma samples in block width or block height. For example, if both block width and block height are less than Q luma samples, a flag may be signaled to indicate if the CIIP_N2 mode is applied to the target video block. In one example, Q may be set to 128. In one example, Q may be set to 64. In other examples, Q may be set to any other suitable values.
In some embodiments, the above two conditions (the first threshold for the block size and the second threshold for the block width and height) may be used together.
In some embodiments, in the IBC mode based on triangle partitioning, a triangle partition mode (TPM) may be supported for IBC prediction. The IBC mode based on triangle partitioning may be called TPM_IBC mode. In some embodiments, in the IBC mode based on geometric partitioning, a geometric partitioning mode (GPM) may be supported for IBC prediction. The IBC mode based on geometric partitioning may be called GPM_IBC mode.
In either of the TPM_IBC mode or the GPM_IBC mode, the target video block may be split into a first partition and a second partition along a splitting line. In the TPM_IBC mode, the splitting line for splitting the target video block may comprise a diagonal line or an anti-diagonal line.
In some embodiments, in the TPM_IBC mode, the target video block may be split evenly into two triangle-shaped partitions, using either the diagonal split or the anti-diagonal split (as shown in
In some embodiments, in the TPM_IBC mode, each partition in the target video block may be IBC-predicted using its own motion. Specifically, a first prediction partition for the first partition may be determined using IBC prediction based on first motion information for the first partition; and a second prediction partition for the second partition may be determined using IBC prediction based on second motion information for the second partition.
In some embodiments, in the TPM_IBC mode, uni-prediction motion information for each partition may be derived from a uni-prediction IBC candidate list, to be determined as the first motion information and/or the second motion information. In some embodiments, the uni-prediction IBC candidate list may be derived directly from at least a part or all of an IBC merge candidate list. In some embodiments, the uni-prediction IBC candidate list may be reordered before being used. The uni-prediction motion information may be derived from the reordered uni-prediction IBC candidate list.
In some embodiments, in the TPM_IBC mode, after the first and the second prediction partitions are determined, prediction values of samples along the splitting line (e.g., the diagonal line or anti-diagonal line) may be adjusted using a blending processing with respective weights for the samples. In some embodiments, the weights may be adaptively decided by the distances between the samples and the splitting line. An example for determining the weights may refer to section 2.23.2.
In some embodiments, as an alternative, in the TPM_IBC mode, prediction values of samples along the splitting line may not be adjusted using the blending processing. Instead, a sample along the splitting line may only be predicted based on one of the first and second prediction partitions.
In some embodiments, for motion field storage in the TPM_IBC mode, if a stored motion vector type (represented as “sType”) in an area is set to a first value, the first motion information is stored in a corresponding motion field, and if the stored motion vector type in an area is set to a second value or a third value, the second motion information is stored in the corresponding motion field. In some embodiments, the first value is equal to 0, the second value is equal to 1, and the third value is equal to 2. In an example, if sType is equal to 0, Mv1 may be stored in the corresponding motion field; otherwise, if sType is equal to 1 or 2, Mv2 may be stored. In an example, the calculation of sType is the same as that for inter TPM.
In some embodiments, for signaling of the TPM_IBC mode, an indication of the TPM_IBC mode may be indicated in the bitstream using a CU-level flag as a type of an IBC merge mode.
In some embodiments, for signaling of the TPM_IBC mode, if the TPM_IBC mode is determined to be applied to the target video block (or the current CU), a flag indicating a direction of triangle partitioning (e.g., diagonal or anti-diagonal) may be indicated in the bitstream. Alternatively, or in addition, a first merge index for the first partition and a second merge index for the second partition split from the target video block may also be indicated in the bitstream.
In some embodiments, for signaling of the TPM_IBC mode, if the TPM_IBC mode is determined to be applied to the target video block (or the current CU), a triangle partition index indicating a partition mode of triangle partitioning may be indicated in the bitstream. Alternatively, or in addition, a first merge index for the first partition and a second merge index for the second partition split from the target video block may also be indicated in the bitstream.
In some embodiments, in the GPM_IBC mode, the target video block may be split into the first and second partitions by a geometrically located straight line (e.g. as shown in
In some embodiments, each of the two partitions derived by the geometrical partitioning may be IBC-predicted using its own motion. Specifically, a first prediction partition for the first partition may be determined using IBC prediction based on first motion information for the first partition; and a second prediction partition for the second partition may be determined using IBC prediction based on second motion information for the second partition.
In some embodiments, in the GPM_IBC mode, uni-prediction motion information for each partition may be derived from a uni-prediction IBC candidate list, to be determined as the first motion information and/or the second motion information. In some embodiments, the uni-prediction IBC candidate list may be derived directly from at least a part or all of an IBC merge candidate list. In some embodiments, the uni-prediction IBC candidate list may be reordered before being used. The uni-prediction motion information may be derived from the reordered uni-prediction IBC candidate list.
In some embodiments, in the GPM_IBC mode, after the first and the second prediction partitions are determined, prediction values of samples along the splitting line (e.g., the geometrically located straight line) may be adjusted using a blending processing with respective weights for the samples. In some embodiments, the weights may be adaptively decided by the distances between the samples and the splitting line. An example for determining the weights may refer to section 2.24.2.
In some embodiments, as an alternative, in the GPM_IBC mode, prediction values of samples along the splitting line may not be adjusted using the blending processing. Instead, a sample along the splitting line may only be predicted based on one of the first and second prediction partitions.
In some embodiments, for motion field storage in the GPM_IBC mode, if a stored motion vector type (represented as “sType”) in a motion field is set to a first value, the first motion information or the second motion information is stored in the motion field, and wherein if the stored motion vector type is set to a second value, the second motion information is stored in the motion field. In an example, if sType is equal to 0 or 1, Mv1 or Mv2 may be stored in the corresponding motion field; otherwise, if sType is equal to 2, Mv2 may be stored. In an example, In one example, the calculation of sType is the same as that for inter GPM.
In some embodiments, for signaling of the GPM_IBC mode, an indication of the GPM_IBC mode may be indicated in the bitstream using a CU-level flag as a type of an IBC merge mode.
In some embodiments, for signaling of the GPM_IBC mode, if the GPM_IBC mode is determined to be applied to the target video block (or the current CU), a geometric partition index indicating the partition mode of the geometric partition (angle and offset) may be indicated in the bitstream. Alternatively, or in addition, a first merge index for the first partition and a second merge index for the second partition split from the target video block may also be indicated in the bitstream.
In some embodiments, an IBC AMVP mode based on TM (called TM_AMVP_IBC) may be determined to be applied to the target video block. In some embodiments, in the TM_AMVP_IBC mode, a fifth predetermined number (K) of IBC MVP candidates may be determined by performing template matching. In some examples, the template matching is to select the fifth predetermined number of IBC MVP candidates having the first fifth predetermined number of minimum differences between a current block template and a reference block template from an IBC AMVP list. In some embodiments, K IBC MVP candidates reaching the first K minimum differences between current block template and reference block template may be selected from the IBC AMVP list. In some embodiments, K IBC MVP candidates may comprise a selected set of start-point candidates.
In some embodiments, the template matching (TM) may be performed for the selected set of start-point candidates for MV refinement. In some embodiments, TM may refine a start-point candidate by starting from a full-pel MVD precision within a search range. As an example, the full-pel MVD precision may comprise 4-pel for 4-pel AMVR mode.
In some embodiments, a start-point candidate may be fined within the search range by using iterative diamond search. In some embodiments, the search range may be a [−8, +8]-pel search range. In some embodiments, during the iterative diamond search, a sixth predetermined number (e.g., M) of search rounds may be performed until a center searching point has a minimum matching cost for a diamond search pattern, as shown in
In some embodiments, a selected start-point candidate may be further refined by using cross search with a full-pel MVD precision. As an example, the full-pel MVD precision may be 4-pel for a 4-pel AMVR mode. In some embodiments, one search round is used for cross search pattern as shown in
In some embodiments, in the TM_AMVP_IBC mode, the fifth predetermined number K of refined IBC MVP candidates may be generated, and one of them may be selected.
In some embodiments, the selecting of the refined IBC MVP candidate may be indicated or signaled from an encoder of the video to a decoder of the video. In some embodiments, if K is one, information about the selecting may not be indicated from the encoder to the decoder. In some embodiments, if at least one refined IBC MVP candidates by template matching is available, the K refined IBC MVP candidates may be used as candidates for the TM_AMVP_IBC mode. Otherwise, if no refined IBC MVP candidates by template matching is available, the first K existing IBC AMVP candidates without refinement may be used.
In some embodiments, a starting point for a block matching based local search or hash-based search of IBC mode may be determined as the selected refined IBC MVP candidate.
In some embodiments, a BV derived by intra template matching for IBC (TM_IBC) may be used as the starting point for a block matching based local search or hash-based search of IBC mode.
In some embodiments, if IBC adaptive motion vector resolution (AMVR) is enabled, a refined IBC AMVP candidate in a MVD precision is reused in at least one further MVD precision. In some embodiments, the refined IBC AMVP candidate in a full-pel MVD precision is reused in a 4-pel MVD precision.
In some embodiments, the IBC merge mode based on TM (called TM_merge_IBC) may be supported and to be applied for the target video block. In some embodiments, in the TM_merge_IBC mode, a seventh predetermined number (e.g., K) of IBC merge candidates may be determined by performing template matching. In some examples, the template matching is to select the seventh predetermined number of IBC merge candidates having the first seventh predetermined number of minimum differences between a current block template and a reference block template from an IBC merge list. In some embodiments, K IBC merge candidates reaching the first K minimum difference between current block template and reference block template may be selected from the IBC merge list. In some embodiments, K IBC merge candidates may comprise a selected set of start-point candidates.
In some embodiments, the template matching (TM) may be performed for the selected set of start-point candidates for MV refinement. In some embodiments, TM may refine a start-point candidate by starting from a full-pel MVD precision within a search range. In some embodiments, TM may refine a start-point candidate by starting from a 4-pel MVD precision within a search range for a 4-pel AMVR mode.
In some embodiments, a selected start-point candidate may be refined within the search range by using iterative diamond search. In some embodiments, the search range may be a [−8, +8]-pel search range. In some embodiments, during the iterative diamond search, a sixth predetermined number (e.g., M) of search rounds may be performed until a center searching point has a minimum matching cost for a diamond search pattern, as shown in
In some embodiments, a selected start-point candidate may be further refined by using cross search with a full-pel MVD precision. In some embodiments, a selected start-point candidate may be further refined by using cross search with a 4-pel MVD precision for a 4-pel AMVR mode. In some embodiments, one search round is used for cross search pattern as shown in
In some embodiments, in the TM_merge_IBC mode, the fifth predetermined number K of refined IBC merge candidates may be generated, and one of them may be selected.
In some embodiments, the selecting of the refined IBC merge candidate may be indicated or signaled from an encoder of the video to a decoder of the video. In some embodiments, if K is one, information about the selecting may not be indicated from the encoder to the decoder. In some embodiments, if at least one refined IBC merge candidates by template matching is available, the K refined IBC merge candidates may be used as candidates for the TM_merge_IBC mode. Otherwise, if no refined IBC merge candidates by template matching is available, the TM_merge_IBC mode may be invalid. In some embodiments, the best TM refined IBC merge candidate may be selected by a criterion. In some examples, the criterion may be based on a RD decision.
In some embodiments, the template matching may be performed for IBC merge candidates for MV refinement, to obtain TM refined IBC merge candidates. Then, the best TM refined IBC merge candidate may be selected by a criterion. In some examples, the criterion may be based on a RD decision.
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 merge mode with block vector difference (MBVD), a combined prediction mode based on an IBC mode and at least one further prediction mode, an IBC mode based on triangle partitioning, an IBC mode based on geometric partitioning, an IBC advanced motion vector prediction (AMVP) mode based on template matching (TM), or an IBC merge mode based on TM; and performing the conversion based on the IBC-based mode.
Clause 2. The method of clause 1, wherein the IBC MBVD mode is to be applied, the method further comprising: generating, in the IBC MBVD mode, a block vector (BV) based on at least one IBC merge candidate; and refining the BV based on block vector difference (BVD) information.
Clause 3. The method of clause 2, wherein the BVD information comprises at least one of the following: at least one IBC merge candidate index, at least one indication for at least one motion magnitude, at least one indication for at least one motion direction.
Clause 4. The method of clause 2 or 3, wherein the BV is within a valid range of BV, and wherein BVD information for driving a BV out of the valid range of BV is excluded from BVD information set to be selected or signaled.
Clause 5. The method of any of clauses 2-4, wherein generating the BV comprises: in accordance with a determination that a BV derived from the BVD information is out of a valid range of BV, applying a clipping process to the BV out of the valid range, to obtain a BV within the valid range.
Clause 6. The method of any of clauses 2-4, wherein generating the BV comprises: generating the BV according to a bitstream conformance constraint, the bitstream conformance constraint specifying the BV to be within a valid range of BV.
Clause 7. The method of any of clauses 2-6, further comprising: selecting the at least one IBC merge candidate from an IBC merge candidate list, and wherein at least one MBVD candidate index is included in the bitstream to specify the at least one selected IBC merge candidate.
Clause 8. The method of clause 7, wherein a MBVD candidate index is included in the bitstream to specify a selected IBC merge candidate among a first predetermined number of IBC merge candidates in the IBC merge candidate list.
Clause 9. The method of clause 8, wherein the first predetermined number is two.
Clause 10. The method of clause 8 or 9, wherein the MBVD candidate index is binarized as a truncated code, with a maximum value equal to the first predetermined number minus one.
Clause 11. The method of any of clauses 7-10, wherein selecting the at least one IBC merge candidate comprises: reordering the IBC merge candidate list; and selecting at least one IBC merge candidate from the reordered IBC merge candidate list.
Clause 12. The method of clause 3, wherein the at least one indication for at least one motion magnitude comprises a distance index indicating a predefined offset from a starting point.
Clause 13. The method of clause 12, wherein the predefined offset comprises an offset added to a horizontal component or a vertical component of a starting block vector (BV).
Clause 14. The method of clause 12, wherein the predefined offset comprises an offset added to both a horizontal component and a vertical component of a starting BV.
Clause 15. The method of clause 12, wherein the predefined offset is one of 1 pixel, 2 pixels, 4 pixels, 8 pixels, 16 pixels, or 32 pixels.
Clause 16. The method of clause 12, 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 17. The method of clause 12, wherein the predefined offset is one of 1 pixel, 2 pixels, 3 pixels, 4 pixels, 6 pixels, 8 pixels, or 16 pixels.
Clause 18. The method of clause 12, 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 19. The method of any of clauses 12-18, wherein a relation between respective distance indices and predefined offsets is indicated from an encoder for the video to a decoder for the video at one of a sequence level, a picture level, a slice level, a coding tree unit (CTU) level, or a coding unit (CU) level.
Clause 20. The method of clause 3, wherein the at least one indication for at least one motion direction comprises a direction index indicating a predefined direction of BVD relative to a starting point, and wherein the direction index represents an BVD direction among a second predetermined number of BVD directions.
Clause 21. The method of clause 20, wherein the second predetermined number is four or eight.
Clause 22. The method of clause 21, wherein the second predetermined number is four, and the second predetermined number of BVD directions comprise four horizontal/vertical directions, or four diagonal directions.
Clause 23. The method of clause 22, wherein the direction index is one of the following: a first direction index indicating a positive sign of a block vector (BV) offset in a horizontal component, a second direction index indicating a negative sign of the BV offset in the horizontal component, a third direction index indicating a positive sign of the BV offset in a vertical component, or a fourth direction index indicating a negative sign of the BV offset in the vertical component.
Clause 24. The method of clause 22, wherein the second predetermined number is four, and the direction index is one of the following: a first direction index indicating a positive sign of a block vector (BV) offset in a horizontal component and a positive sign of the BV offset in a vertical component, a second direction index indicating a positive sign of the BV offset in the horizontal component and a negative sign of the BV offset in the vertical component, a third direction index indicating a negative sign of the BV offset in the horizontal component and a positive sign of the BV offset in the vertical component, or a fourth direction index indicating a negative sign of the BV offset in the horizontal component and a negative sign of the BV offset in the vertical component.
Clause 25. The method of clause 21, wherein the second predetermined number is eight, and the second predetermined number of BVD directions comprise four horizontal/vertical directions, and four diagonal directions.
Clause 26. The method of clause 25, wherein the direction index is one of the following: a first direction index indicating a positive sign of a block vector (BV) offset in a horizontal component, a second direction index indicating a negative sign of the BV offset in the horizontal component, a third direction index indicating a positive sign of the BV offset in a vertical component, a fourth direction index indicating a negative sign of the BV offset in the vertical component, a fifth direction index indicating a positive sign of a motion vector (BV) offset in a horizontal component and a positive sign of the BV offset in a vertical component, a sixth direction index indicating a positive sign of the BV offset in the horizontal component and a negative sign of the BV offset in the vertical component, a seventh direction index indicating a negative sign of the BV offset in the horizontal component and a positive sign of the BV offset in the vertical component, or an eighth direction index indicating a negative sign of the BV offset in the horizontal component and a negative sign of the BV offset in the vertical component.
Clause 27. The method of clause 12 or clause 20, wherein at least one of the distance index or the direction index is binarized based on at least one of the following: unary coding, truncated unary coding, exponential-Golomb code, truncated exponential-Golomb code, or fixed length code.
Clause 28. The method of clause 3, wherein the number of the at least one motion magnitude and/or the number of the at least one motion direction is determined based on at least one of the following: a resolution of a picture, a configuration of a coding process, or BVD information of at least one neighbouring block of the target video block.
Clause 29. The method of clause 28, wherein the at least one neighbouring block comprises an above neighbouring block and a left neighbouring block.
Clause 30. The method of clause 28, wherein the at least one neighbouring block comprises at least one adjacent spatial neighbouring block, the at least one adjacent spatial neighbouring block comprising at least one of the following: a left spatial neighbouring block, an above spatial neighbouring block, an above-right spatial neighbouring block, a bottom-left spatial neighbouring block, or an above-left spatial neighbouring block.
Clause 31. The method of any of clauses 28-30, wherein the number of the at least one motion magnitude and/or the number of the at least one motion direction is indicated from an encoder for the video to a decoder for the video at one of a sequence level, a picture level, a slice level, a coding tree unit (CTU) level, or a coding unit (CU) level.
Clause 32. The method of clause 1, wherein the combined prediction mode based on an IBC mode and at least one further prediction mode is to be applied, and the at least one further prediction mode comprises an intra-prediction mode or an inter-prediction mode.
Clause 33. The method of clause 32, wherein the intra-prediction mode comprises one of the following: a planar prediction mode, an intra-prediction mode derived by decoder side intra mode derivation (DIMD), or an intra-prediction mode derived by template-based intra mode derivation (TIMD).
Clause 34. The method of clause 1, wherein the combined prediction mode based on an IBC mode and at least one further prediction mode is to be applied, and the method further comprising: generating at least one first prediction block for the target video block based on the IBC mode; generating at least one second prediction block for the target video block based on the at least one further prediction mode; determining a target prediction block for the target video block at least based on a weighted combination of the at least one first prediction block and the at least one second prediction block.
Clause 35. The method of clause 34, wherein the target prediction signal is determined further based on an offset, the offset being an integer.
Clause 36. The method of clause 34, wherein at least one first weight of the at least one first prediction block and at least one second weight of the at least one second prediction block are determined based on a weight parameter and a predetermined value.
Clause 37. The method of any of clauses 34-36, wherein the target prediction block is determined by: PCIIP_N ((2N−wt)*PIBC+wt*Psec+offset)>>N, where PCIIP_N represents the target prediction block, PIBC represents a first prediction block, Psec represents a second prediction block, offset represents the offset, wt represents the weight parameter, and N represents the predetermined value.
Clause 38. The method of clause 36 or 37, wherein the predetermined value is 2.
Clause 39. The method of any of clauses 36-38, wherein a value of the weight parameter is predefined or is determined based on a position for a sample.
Clause 40. The method of clause 39, wherein the value of the weight parameter is predefined to 2.
Clause 41. The method of clause 39, wherein a value of the weight parameter for a first position is determined as the predetermined value power of 2, and a value of the weight parameter for a second position is determined as zero.
Clause 42. The method of any of clauses 35-41, wherein a value of the weight parameter is indicated from an encoder for the video to a decoder for the video.
Clause 43. The method of clause 34, wherein generating the at least one first prediction block based on the IBC mode comprises: generating the at least one first prediction block using an IBC prediction process applied in an IBC merge mode.
Clause 44. The method of any of clauses 36-38, wherein a value of the weight parameter is determined based on at least one of the following: availability of at least one neighbouring block of the target video block, and at least one coding mode of at least one neighbouring block of the target video block.
Clause 45. The method of clause 44, wherein the at least one neighbouring block comprises a top neighbouring block and a left neighbouring block.
Clause 46. The method of cl Clause 45, wherein the value of the weight parameter is determined based on the following: setting the weight parameter to a first value if both the top neighbouring block and the left neighbouring block are available and are intra coded or IBC coded; setting the weight parameter to a second value if one of the top neighbouring block and the left neighbouring block is available and is intra coded or IBC coded; and setting the weight parameter to a third value if none of the top neighbouring block and the left neighbouring block is available and is intra coded or IBC coded.
Clause 47. The method of clause 34, wherein generating the at least one first prediction block for the target video block based on the IBC mode comprises: selecting an IBC merge candidate from an IBC merge candidate list; and generating a first prediction block based on the IBC merge candidate, and wherein an IBC merge candidate index is included in the bitstream to specify the selected IBC merge candidate.
Clause 48. The method of clause 47, wherein the IBC merge candidate index is included in the bitstream to specify the selected IBC merge candidate among a third predetermined number of IBC merge candidates in the IBC merge candidate list.
Clause 49. The method of clause 48, wherein the third predetermined number is set to one of the following: a predefined value of four, a valid number of IBC merge candidates in the IBC merge candidate list, the number of full rate distortion (RD) for IBC merge, or the number of full RD for IBC merge plus an integer.
Clause 50. The method of clause 48 or 49, wherein the third predetermined number is indicated from an encoder for the video to a decoder for the video.
Clause 51. The method of any of clauses 48-50, wherein the third predetermined number of IBC merge candidates are determined from the IBC merge candidate list according to an ascending order of sum of absolute transformed differences (SATD) costs of IBC merge candidates.
Clause 52. The method of any of clauses 47-50, wherein selecting an IBC merge candidate from an IBC merge candidate list comprises: reordering the IBC merge candidate list; and selecting the IBC merge candidate from the reordered IBC merge candidate list.
Clause 53. The method of clause 52, wherein the SATD costs are determined after the IBC merge candidate list is reordered.
Clause 54. The method of clause 34, wherein the at least one further prediction mode comprises an inter-prediction mode, and wherein generating the at least one second prediction block for the target video block comprises: selecting a regular merge candidate from a regular merge candidate list; and generating a second prediction block based on the regular merge candidate, and wherein a merge candidate index is included in the bitstream to specify the selected regular merge candidate.
Clause 55. The method of clause 54, wherein the merge candidate index is included in the bitstream to specify the selected regular merge candidate among a fourth predetermined number of regular merge candidates in the regular merge candidate list.
Clause 56. The method of clause 55, wherein the fourth predetermined number is set to one of the following: a predefined value of four, a valid number of regular merge candidates in the regular merge candidate list, the number of full RD for inter merge, or the number of full RD for inter merge plus an integer.
Clause 57. The method of clause 55 or 56, wherein the fourth predetermined number is indicated from an encoder for the video to a decoder for the video.
Clause 58. The method of any of clauses 55-57, wherein the fourth predetermined number of regular merge candidates are determined from the regular merge candidate list according to an ascending order of SATD costs of regular merge candidates.
Clause 59. The method of any of clauses 55-58, wherein selecting a regular merge candidate from a regular merge candidate list comprises: reordering the regular merge candidate list; and selecting the regular merge candidate from the reordered regular merge candidate list.
Clause 60. The method of clause 58, wherein the SATD costs are determined after the regular merge candidate list is reordered.
Clause 61. The method of clause 1, wherein determining the IBC-based mode to be applied comprises: determining, based on coding information related to the target video block, whether the combined prediction mode is to be applied and/or an applying scheme of the combined prediction mode.
Clause 62. The method of clause 61, wherein the coding information comprises at least one of the following: a block dimension, a quantization parameter (QP), or a coding mode of at least one neighboring block of the target video block.
Clause 63. The method of clause 62, wherein if the target video block is coded in a merge mode, a flag is included in the bitstream to indicate if the combined prediction mode is applied to the target video block based on at least one of the following: a size of the target video block is larger than or equal to a first threshold, or a block width and a block height of the target video block is less than or equal to a second threshold.
Clause 64. The method of clause 63, wherein the merge mode comprises an IBC merge mode or a regular merge mode.
Clause 65. The method of clause 63 or 64, wherein the first threshold comprises 64 luma samples.
Clause 66. The method of any of clauses 63-65, wherein the second threshold comprises 128 luma samples or 64 luma samples.
Clause 67. The method of clause 1, further comprising: in the IBC mode based on triangle partitioning or the IBC mode based on geometric partitioning, splitting the target video block into a first partition and a second partition along a splitting line.
Clause 68. The method of clause 67, wherein in the IBC mode based on triangle partitioning, the splitting line comprises a diagonal line or an anti-diagonal line.
Clause 69. The method of clause 67, wherein in the IBC mode based on geometric partitioning, the splitting line comprises a geometrically located straight line.
Clause 70. The method of any of clauses 67-69, further comprising: determining, using IBC prediction, a first prediction partition for the first partition based on first motion information for the first partition; and determining, using IBC prediction, a second prediction partition for the second partition based on second motion information for the second partition.
Clause 71. The method of clause 70, further comprising: deriving uni-prediction motion information from a uni-prediction IBC candidate list to obtain the first motion information and the second motion information.
Clause 72. The method of clause 70, wherein the uni-prediction IBC candidate list is derived from at least a part of an IBC merge candidate list.
Clause 73. The method of clause 71 or 72, wherein deriving the uni-prediction motion information comprises: reordering the uni-prediction IBC candidate list; and deriving the uni-prediction motion information from the reordered uni-prediction IBC candidate list.
Clause 74. The method of any of clauses 70-73, further comprising: after the first and the second prediction partitions are determined, adjusting prediction values of samples along the splitting line using a blending processing with respective weights for the samples.
Clause 75. The method of clause 74, wherein a weight for a sample is determined based on a distance between the sample and the splitting line.
Clause 76. The method of any of clauses 70-73, further comprising: determining a prediction value of a sample along the splitting line based on one of the first and the second prediction partitions.
Clause 77. The method of any of clauses 70-76, wherein if a stored motion vector type in an area is set to a first value, the first motion information is stored in a corresponding motion field, and wherein if the stored motion vector type in an area is set to a second value or a third value, the second motion information is stored in the corresponding motion field, and wherein the first value is equal to 0, the second value is equal to 1, and the third value is equal to 2.
Clause 78. The method of any of clauses 69-77, wherein an indication of the IBC mode based on triangle partitioning or geometric partitioning is indicated in the bitstream using a CU-level flag as a type of an IBC merge mode.
Clause 79. The method of any of clauses 67-78, wherein if the IBC mode based on triangle partitioning is determined to be applied to the target video block, at least one of the following is indicated in the bitstream: a flag indicating a direction of triangle partitioning, a triangle partition index indicating a partition mode of triangle partitioning, a first merge index for the first partition, or a second merge index for the second partition.
Clause 80. The method of any of clauses 67-78, wherein if the IBC mode based on geometric partitioning is applied to the target video block, at least one of the following is indicated in the bitstream: a geometric partition index indicating a partition mode for geometric partitioning, a first merge index for the first partition, or a second merge index for the second partition.
Clause 81. The method of clause 1, further comprising: determining, in an IBC AMVP mode based on TM, a fifth predetermined number of IBC MVP candidates by performing template matching, the fifth predetermined number of IBC MVP candidates having the first fifth predetermined number of minimum differences between a current block template and a reference block template from an IBC AMVP list.
Clause 82. The method of clause 81, wherein the fifth predetermined number of IBC MVP candidates comprises a selected set of start-point candidates.
Clause 83. The method of clause 82, further comprising: performing the template matching for the selected set of start-point candidates for MV refinement.
Clause 84. The method of clause 83, wherein performing the template matching comprises: refining a start-point candidate by starting from a full-pel MVD precision within a search range.
Clause 85. The method of Clause 83, wherein performing the template matching comprises: refining a start-point candidate by starting from a 4-pel MVD precision within a search range for a 4-pel adaptive motion vector resolution (AMVR) mode.
Clause 86. The method of clause 84 or 85, wherein refining the start-point candidate comprises: refining the start-point candidate within the search range by using iterative diamond search.
Clause 87. The method of clause 86, wherein during the iterative diamond search, a sixth predetermined number of search rounds are performed until a center searching point has a minimum matching cost for a diamond search pattern.
Clause 88. The method of clause 87, wherein the sixth predetermined number comprises a maximum value of unsigned int or 375.
Clause 89. The method of clause 84, further comprising: further refining the start-point candidate by using cross search with a full-pel MVD precision.
Clause 90. The method of Clause 85, wherein performing the template matching comprises: further refining the start-point candidate by using cross search with a 4-pel MVD precision for a 4-pel AMVR mode.
Clause 91. The method of clause 89 or 90, wherein one search round is used for a cross search pattern.
Clause 92. The method of any of clauses 81-91, further comprising: generating the fifth predetermined number of refined IBC MVP candidates, and selecting one of the fifth predetermined number of refined IBC MVP candidates.
Clause 93. The method of clause 92, wherein information about the selecting is indicated from an encoder of the video to a decoder of the video.
Clause 94. The method of clause 93, wherein if the fifth predetermined number is one, the information about the selecting is not indicated.
Clause 95. The method of any of clauses 92-94, further comprising: if at least one refined IBC MVP candidates by template matching is available, determining the fifth predetermined number of refined IBC MVP candidates as candidates for the IBC AMVP mode based on TM; and if no refined IBC MVP candidates by template matching is unavailable, determining the fifth predetermined number of existing IBC MVP candidates without refinement as candidates for the AMVP IBC mode based on TM.
Clause 96. The method of clause 92, wherein a starting point for a block matching based local search or hash-based search is determined as the selected refined IBC MVP candidate, or a BV derived by intra template matching for IBC (TM_IBC).
Clause 97. The method of clause 92, wherein if IBC adaptive motion vector resolution (AMVR) is enabled, a refined IBC AMVP candidate in a MVD precision is reused in at least one further MVD precision.
Clause 98. The method of clause 97, wherein the refined IBC AMVP candidate in a full-pel MVD precision is reused in a 4-pel MVD precision.
Clause 99. The method of clause 1, further comprising: determining, in the IBC merge mode based on TM, a seventh predetermined number of IBC merge candidates by performing template matching, the seventh predetermined number of IBC merge candidates having the first seventh predetermined number of minimum differences between a current block template and a reference block template from an IBC merge list.
Clause 100. The method of clause 99, wherein the seventh predetermined number of IBC merge candidates comprises a selected set of start-point candidates.
Clause 101. The method of clause 100, further comprising: performing the template matching for the selected set of start-point candidates for MV refinement.
Clause 102. The method of clause 101, wherein performing the template matching comprises: refining a start-point candidate by starting from a full-pel MVD precision within a search range.
Clause 103. The method of clause 102, wherein refining the start-point candidate comprises: refining the start-point candidate within the search range by using iterative diamond search.
Clause 104. The method of clause 103, wherein during the iterative diamond search, an eighth predetermined number of search rounds are performed until a center searching point has a minimum matching cost for a diamond search pattern.
Clause 105. The method of clause 104, wherein the eighth predetermined number comprises a maximum value of unsigned int or 375.
Clause 106. The method of any of clauses 102-105, further comprising: further refining the start-point candidate by using cross search with a full-pel MVD precision.
Clause 107. The method of clause 106, wherein one search round is used for a cross search pattern.
Clause 108. The method of any of clauses 99-107, further comprising: generating the seventh predetermined number of refined IBC merge candidates, and selecting one of the seventh predetermined number of refined IBC merge candidates.
Clause 109. The method of clause 108, wherein information about the selecting is indicated from an encoder of the video to a decoder of the video.
Clause 110. The method of clause 109, wherein if the seventh predetermined number is one, the information about the selecting is not indicated.
Clause 111. The method of any of clauses 108-110, further comprising: if at least one refined IBC merge candidates by template matching is available, determining the seventh predetermined number of refined IBC merge candidates as candidates for the IBC merge mode based on TM; and if no refined IBC merge candidates by template matching is available, determining that the IBC merge mode based on TM is invalid.
Clause 112. The method of any of clauses 108-111, wherein selecting the refined IBC merge candidate comprises: selecting the refined IBC merge candidate based on a RD decision.
Clause 113. The method of clause 99, further comprising: performing the template matching for all IBC merge candidates for MV refinement, to obtain TM refined IBC merge candidates.
Clause 114. The method of clause 113, further comprising: selecting one of the TM refined IBC merge candidates based on a RD decision.
Clause 115. The method of any of clauses 1-114, wherein in the IBC-based mode, prediction samples are at least derived from blocks of sample values of a same video region as determined by block vectors.
Clause 116. The method of any of clauses 1-115, wherein the conversion includes encoding the target video block into the bitstream.
Clause 117. The method of any of clauses 1-115, wherein the conversion includes decoding the target video block from the bitstream.
Clause 118. 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-117.
Clause 119. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of clauses 1-117.
Clause 120. 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 merge mode with block vector difference (MBVD), a combined prediction mode based on an IBC mode and at least one further prediction mode, an IBC mode based on triangle partitioning, an IBC mode based on geometric partitioning, an IBC advanced motion vector prediction (AMVP) mode based on template matching (TM), or an IBC merge mode based on TM; and generating the bitstream based on the IBC-based mode.
Clause 121. 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 merge mode with block vector difference (MBVD), a combined prediction mode based on an IBC mode and at least one further prediction mode, an IBC mode based on triangle partitioning, an IBC mode based on geometric partitioning, an IBC advanced motion vector prediction (AMVP) mode based on template matching (TM), or an IBC merge mode based on 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 4600 shown in
As shown in
In some embodiments, the computing device 4600 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 4600 can support any type of interface to a user (such as “wearable” circuitry and the like).
The processing unit 4610 may be a physical or virtual processor and can implement various processes based on programs stored in the memory 4620. 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 4600. The processing unit 4610 may also be referred to as a central processing unit (CPU), a microprocessor, a controller or a microcontroller.
The computing device 4600 typically includes various computer storage medium. Such medium can be any medium accessible by the computing device 4600, including, but not limited to, volatile and non-volatile medium, or detachable and non-detachable medium. The memory 4620 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 4630 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 4600.
The computing device 4600 may further include additional detachable/non-detachable, volatile/non-volatile memory medium. Although not shown in
The communication unit 4640 communicates with a further computing device via the communication medium. In addition, the functions of the components in the computing device 4600 can be implemented by a single computing cluster or multiple computing machines that can communicate via communication connections. Therefore, the computing device 4600 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 4650 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 4660 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 4640, the computing device 4600 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 4600, or any devices (such as a network card, a modem and the like) enabling the computing device 4600 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 4600 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 4600 may be used to implement video encoding/decoding in embodiments of the present disclosure. The memory 4620 may include one or more video coding modules 4625 having one or more program instructions. These modules are accessible and executable by the processing unit 4610 to perform the functionalities of the various embodiments described herein.
In the example embodiments of performing video encoding, the input device 4650 may receive video data as an input 4670 to be encoded. The video data may be processed, for example, by the video coding module 4625, to generate an encoded bitstream. The encoded bitstream may be provided via the output device 4660 as an output 4680.
In the example embodiments of performing video decoding, the input device 4650 may receive an encoded bitstream as the input 4670. The encoded bitstream may be processed, for example, by the video coding module 4625, to generate decoded video data. The decoded video data may be provided via the output device 4660 as the output 4680.
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/118625 | Sep 2021 | WO | international |
This application is a continuation of International Application No. PCT/CN2022/119053, filed on Sep. 15, 2022, which claims the benefit of International Application No. PCT/CN2021/118625 filed on Sep. 15, 2021. The entire contents of these applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/119053 | Sep 2022 | WO |
Child | 18607244 | US |