Embodiments of the present disclosure relates generally to video processing techniques, and more particularly, to reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP).
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 video coding techniques is generally expected to be further improved.
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, for a conversion between a current video block of a video and a bitstream of the video, whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of the current video block; and performing the conversion based on the determining. The method in accordance with the first aspect of the present disclosure adjusts the RRIBC coded HMVP candidates. In this way, the coding efficiency and coding effectiveness can be improved.
In a second aspect, another method for video processing is proposed. The method comprises: determining, for a conversion between a current video block of a video and a bitstream of the video, information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of the current video block; storing the information in a buffer; and performing the conversion based on the information. The method in accordance with the second aspect of the present disclosure determines and stores information of IBC-HMVP candidate. In this way, the coding efficiency and coding effectiveness can be improved.
In a third aspect, an apparatus for video processing is proposed. The apparatus comprises a processor and a non-transitory memory with instructions thereon. The instructions upon execution by the processor, cause the processor to perform a method in accordance with the first or the second aspect of the present disclosure.
In a fourth aspect, a non-transitory computer-readable storage medium is proposed. The non-transitory computer-readable storage medium stores instructions that cause a processor to perform a method in accordance with the first or the second aspect of the present disclosure.
In a fifth aspect, another non-transitory computer-readable recording medium is proposed. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. The method comprises: determining whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of a current video block of the video; and generating the bitstream based on the determining.
In a sixth aspect, a method for storing a bitstream of a video is proposed. The method comprises: determining whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of a current video block of the video; generating the bitstream based on the determining; and storing the bitstream in a non-transitory computer-readable recording medium.
In a seventh aspect, another non-transitory computer-readable recording medium is proposed. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. The method comprises: determining information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of a current video block of the video; storing the information in a buffer; and generating the bitstream based on the information.
In an eighth aspect, a method for storing a bitstream of a video is proposed. The method comprises: determining information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of a current video block of the video; storing the information in a buffer; generating the bitstream based on the information; and storing the bitstream in a non-transitory computer-readable recording medium.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Through the following detailed description with reference to the accompanying drawings, the above and other objectives, features, and advantages of example embodiments of the present disclosure will become more apparent. In the example embodiments of the present disclosure, the same reference numerals usually refer to the same components.
Throughout the drawings, the same or similar reference numerals usually refer to the same or similar elements.
Principle of the present disclosure will now be described with reference to some embodiments. It is to be understood that these embodiments are described only for the purpose of illustration and help those skilled in the art to understand and implement the present disclosure, without suggesting any limitation as to the scope of the disclosure. The disclosure described herein can be implemented in various manners other than the ones described below.
In the following description and claims, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skills in the art to which this disclosure belongs.
References in the present disclosure to “one embodiment,” “an embodiment,” “an example embodiment,” and the like indicate that the embodiment described may include a particular feature, structure, or characteristic, but it is not necessary that every embodiment includes the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an example embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
It shall be understood that although the terms “first” and “second” etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term “and/or” includes any and all combinations of one or more of the listed terms.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises”. “comprising”, “has”, “having”, “includes” and/or “including”, when used herein, specify the presence of stated features, elements, and/or components etc., but do not preclude the presence or addition of one or more other features, elements, components and/or combinations thereof.
The video source 112 may include a source such as a video capture device. Examples of the video capture device include, but are not limited to, an interface to receive video data from a video content provider, a computer graphics system for generating video data, and/or a combination thereof.
The video data may comprise one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. The I/O interface 116 may include a modulator/demodulator and/or a transmitter. The encoded video data may be transmitted directly to destination device 120 via the I/O interface 116 through the network 130A. The encoded video data may also be stored onto a storage medium/server 130B for access by destination device 120.
The destination device 120 may include an I/O interface 126, a video decoder 124, and a display device 122. The I/O interface 126 may include a receiver and/or a modem. The I/O interface 126 may acquire encoded video data from the source device 110 or the storage medium/server 130B. The video decoder 124 may decode the encoded video data. The display device 122 may display the decoded video data to a user. The display device 122 may be integrated with the destination device 120, or may be external to the destination device 120 which is configured to interface with an external display device.
The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVC) standard and other current and/or further standards.
The video encoder 200 may be configured to implement any or all of the techniques of this disclosure. In the example of
In some embodiments, the video encoder 200 may include a partition unit 201, a prediction 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 prediction unit 202 may include an intra block copy (IBC) unit. The IBC unit may perform prediction 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 prediction (CIIP) mode in which the prediction is based on an inter prediction signal and an intra prediction 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-prediction.
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 prediction (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 prediction 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 prediction 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 the interaction of RRIBC and other coding tools in image/video coding. It may be applied to the existing video coding standard like HEVC, VVC, and 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 January 2021, JVET established an Exploration Experiment (EE), targeting at enhanced compression efficiency beyond VVC capability with novel traditional algorithms. Soon later, ECM was built as the common software base for longer-term exploration work towards the next generation video coding standard.
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:
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.1.1.2 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 bv=(bv[0], bv[1]), then it is valid; otherwise, it is not valid:
VVC supports block differential pulse coded modulation (BDPCM) for screen content coding. At the sequence level, a BDPCM enable flag is signalled in the SPS; this flag is signalled only if the transform skip mode (described in the next section) is enabled in the SPS.
When BDPCM is enabled, a flag is transmitted at the CU level if the CU size is smaller than or equal to MaxTsSize by MaxTsSize in terms of luma samples and if the CU is intra coded, where MaxTsSize is the maximum block size for which the transform skip mode is allowed. This flag indicates whether regular intra coding or BDPCM is used. If BDPCM is used, a BDPCM prediction direction flag is transmitted to indicate whether the prediction is horizontal or vertical. Then, the block is predicted using the regular horizontal or vertical intra prediction process with unfiltered reference samples. The residual is quantized and the difference between each quantized residual and its predictor, i.e. the previously coded residual of the horizontal or vertical (depending on the BDPCM prediction direction) neighbouring position, is coded.
For a block of size M (height)×N (width), let ri,j, 0≤i≤M−1, 0≤j≤N−1 be the prediction residual. Let Q(ri,j), 0≤i≤M−1, 0≤j≤N−1 denote the quantized version of the residual ri,j. BDPCM is applied to the quantized residual values, resulting in a modified M×N array {tilde over (R)} with elements {tilde over (r)}i,j, where {tilde over (r)}i,j is predicted from its neighboring quantized residual value. For vertical BDPCM prediction mode, for 0≤j≤(N−1), the following is used to derive {tilde over (r)}i,j:
For horizontal BDPCM prediction mode, for 0≤i≤(M−1), the following is used to derive {tilde over (r)}i,j:
At the decoder side, the above process is reversed to compute Q(ri,j), 0≤i≤M−1, 0≤j≤N−1, as follows:
The inverse quantized residuals, Q−1 (Q(ri,j)), are added to the intra block prediction values to produce the reconstructed sample values.
The predicted quantized residual values {tilde over (r)}i,j are sent to the decoder using the same residual coding process as that in transform skip mode residual coding. For lossless coding, if slice_ts_residual_coding_disabled_flag is set to 1, the quantized residual values are sent to the decoder using regular transform residual coding as described in section 2.2.2. In terms of the MPM mode for future intra mode coding, horizontal or vertical prediction mode is stored for a BDPCM-coded CU if the BDPCM prediction direction is horizontal or vertical, respectively. For deblocking, if both blocks on the sides of a block boundary are coded using BDPCM, then that particular block boundary is not deblocked.
VVC allows the transform skip mode to be used for luma blocks of size up to MaxTsSize by MaxTsSize, where the value of MaxTsSize is signaled in the PPS and can be at most 32. When a CU is coded in transform skip mode, its prediction residual is quantized and coded using the transform skip residual coding process. This process is modified from the transform coefficient coding process described in section 2.2.2. In transform skip mode, the residuals of a TU are also coded in units of non-overlapped subblocks of size 4×4. For better coding efficiency, some modifications are made to customize the residual coding process towards the residual signal's characteristics. The following summarizes the differences between transform skip residual coding and regular transform residual coding:
The bins in scan passes #1 and #2 (the first scan pass and the greater-than-x scan pass) are context coded until the maximum number of context coded bins in the TU have been exhausted. The maximum number of context coded bins in a residual block is limited to 1.75*block_width*block_height, or equivalently, 1.75 context coded bins per sample position on average. The bins in the last scan pass (the remainder scan pass) are bypass coded. A variable, RemCcbs, is first set to the maximum number of context-coded bins for the block and is decreased by one each time a context-coded bin is coded. While RemCcbs is larger than or equal to four, syntax elements in the first coding pass, which includes the sig_coeff_flag, coeff_sign_flag, abs_level_gt1_flag and par_level_flag, are coded using context-coded bins. If RemCcbs becomes smaller than 4 while coding the first pass, the remaining coefficients that have yet to be coded in the first pass are coded in the remainder scan pass (pass #3).
After completion of first pass coding, if RemCcbs is larger than or equal to four, syntax elements in the second coding pass, which includes abs_level_gt3_flag, abs_level_gt5_flag, abs_level_gt7_flag, and abs_level_gt9_flag, are coded using context coded bins. If the RemCcbs becomes smaller than 4 while coding the second pass, the remaining coefficients that have yet to be coded in the second pass are coded in the remainder scan pass (pass #3).
Further, for a block not coded in the BDPCM mode, a level mapping mechanism is applied to transform skip residual coding until the maximum number of context coded bins has been reached. Level mapping uses the top and left neighbouring coefficient levels to predict the current coefficient level in order to reduce signalling cost. For a given residual position, denote absCoeff as the absolute coefficient level before mapping and absCoeffMod as the coefficient level after mapping. Let X0 denote the absolute coefficient level of the left neighbouring position and let X1 denote the absolute coefficient level of the above neighbouring position. The level mapping is performed as follows:
Then, the absCoeffMod value is coded as described above. After all context coded bins have been exhausted, level mapping is disabled for all remaining scan positions in the current block.
In VVC, the palette mode is used for screen content coding in all of the chroma formats supported in a 4:4:4 profile (that is, 4:4:4, 4:2:0, 4:2:2 and monochrome). When palette mode is enabled, a flag is transmitted at the CU level if the CU size is smaller than or equal to 64×64, and the amount of samples in the CU is greater than 16 to indicate whether palette mode is used. Considering that applying palette mode on small CUs introduces insignificant coding gain and brings extra complexity on the small blocks, palette mode is disabled for CU that are smaller than or equal to 16 samples. A palette coded coding unit (CU) is treated as a prediction mode other than intra prediction, inter prediction, and intra block copy (IBC) mode.
If the palette mode is utilized, the sample values in the CU are represented by a set of representative colour values. The set is referred to as the palette. For positions with sample values close to the palette colours, the palette indices are signalled. It is also possible to specify a sample that is outside the palette by signalling an escape symbol. For samples within the CU that are coded using the escape symbol, their component values are signalled directly using (possibly) quantized component values. This is illustrated in
For coding of the palette, a palette predictor is maintained. The palette predictor is initialized to 0 at the beginning of each slice for non-wavefront case. For WPP case, the palette predictor at the beginning of each CTU row is initialized to the predictor derived from the first CTU in the previous CTU row so that the initialization scheme between palette predictors and CABAC synchronization is unified. For each entry in the palette predictor, a reuse flag is signalled to indicate whether it is part of the current palette in the CU. The reuse flags are sent using run-length coding of zeros. After this, the number of new palette entries and the component values for the new palette entries are signalled. After encoding the palette coded CU, the palette predictor will be updated using the current palette, and entries from the previous palette predictor that are not reused in the current palette will be added at the end of the new palette predictor until the maximum size allowed is reached. An escape flag is signaled for each CU to indicate if escape symbols are present in the current CU. If escape symbols are present, the palette table is augmented by one and the last index is assigned to be the escape symbol.
In a similar way as the coefficient group (CG) used in transform coefficient coding, a CU coded with palette mode is divided into multiple line-based coefficient group, each consisting of m samples (i.e., m=16), where index runs, palette index values, and quantized colors for escape mode are encoded/parsed sequentially for each CG. Same as in HEVC, horizontal or vertical traverse scan can be applied to scan the samples, as shown in
The encoding order for palette run coding in each segment is as follows: For each sample position, I context coded bin run_copy_flag=0 is signalled to indicate if the pixel is of the same mode as the previous sample position, i.e., if the previously scanned sample and the current sample are both of run type COPY_ABOVE or if the previously scanned sample and the current sample are both of run type INDEX and the same index value. Otherwise, run_copy_flag=1 is signaled. If the current sample and the previous sample are of different modes, one context coded bin copy_above_palette_indices_flag is signaled to indicate the run type, i.e., INDEX or COPY_ABOVE, of the current sample. Here, decoder doesn't have to parse run type if the sample is in the first row (horizontal traverse scan) or in the first column (vertical traverse scan) since the INDEX mode is used by default. With the same way, decoder doesn't have to parse run type if the previously parsed run type is COPY_ABOVE. After palette run coding of samples in one coding pass, the index values (for INDEX mode) and quantized escape colors are grouped and coded in another coding pass using CABAC bypass coding. Such separation of context coded bins and bypass coded bins can improve the throughput within each line CG.
For slices with dual luma/chroma tree, palette is applied on luma (Y component) and chroma (Cb and Cr components) separately, with the luma palette entries containing only Y values and the chroma palette entries containing both Cb and Cr values. For slices of single tree, palette will be applied on Y, Cb, Cr components jointly, i.e., each entry in the palette contains Y, Cb, Cr values, unless when a CU is coded using local dual tree, in which case coding of luma and chroma is handled separately. In this case, if the corresponding luma or choma blocks are coded using palette mode, their palette is applied in a way similar to the dual tree case (this is related to non-4:4:4 coding and will be further explained in section 2.1.4.1).
For slices coded with dual tree, the maximum palette predictor size is 63, and the maximum palette table size for coding of the current CU is 31. For slices coded with dual tree, the maximum predictor and palette table sizes are halved, i.e., maximum predictor size is 31 and maximum table size is 15, for each of the luma palette and the chroma palette. For deblocking, the palette coded block on the sides of a block boundary is not deblocked.
Palette mode in VVC is supported for all chroma formats in a similar manner as the palette mode in HEVC SCC.
For non-4:4:4 content, the following customization is applied:
At the encoder side, the following steps are used to produce the palette table of the current CU
Given the palette table of the current CU, the encoder selects the palette index of each sample position in the CU. For each sample position, the encoder checks the RD cost of all index values corresponding to the palette table entries, as well as the index representing the escape symbol, and selects the index with the smallest RD cost using the following equation:
After deciding the index map of the current CU, each entry in the palette table is checked to see if it is used by at least one sample position in the CU. Any unused palette entry will be removed.
After the index map of the current CU is decided, trellis RD optimization is applied to find the best values of run_copy_flag and run type for each sample position by comparing the RD cost of three options: same as the previously scanned position, run type COPY_ABOVE, or run type INDEX. When calculating the SAD values, sample values are scaled down to 8 bits, unless the CU is coded in lossless mode, in which case the actual input bit depth is used to calculate the SAD. Further, in the case of lossless coding, only rate is used in the rate-distortion optimization steps mentioned above (because lossless coding incurs no distortion).
In HEVC SCC extension, adaptive color transform (ACT) was applied to reduce the redundancy between three color components in 444 chroma format. The ACT is also adopted into the VVC standard to enhance the coding efficiency of 444 chroma format coding. Same as in HEVC SCC, the ACT performs in-loop color space conversion in the prediction residual domain by adaptively converting the residuals from the input color space to YCgCo space.
In HEVC SCC extension, the ACT supports both lossless and lossy coding based on lossless flag (i.e., cu_transquant_bypass_flag). However, there is no flag signalled in the bitstream to indicate whether lossy or lossless coding is applied. Therefore, YCgCo-R transform is applied as ACT to support both lossy and lossless cases. The YCgCo-R reversible colour transform is shown as below.
Since the YCgCo-R transform are not normalized. To compensate the dynamic range change of residuals signals before and after color transform, the QP adjustments of (−5, 1, 3) are applied to the transform residuals of Y, Cg and Co components, respectively. The adjusted quantization parameter only affects the quantization and inverse quantization of the residuals in the CU. For other coding processes (such as deblocking), original QP is still applied. Additionally, because the forward and inverse color transforms need to access the residuals of all three components, the ACT mode is always disabled for separate-tree partition and ISP mode where the prediction block size of different color component is different. Transform skip (TS) and block differential pulse coded modulation (BDPCM), which are extended to code chroma residuals, are also enabled when the ACT is applied.
To avoid brutal R-D search in both the original and converted color spaces, the following fast encoding algorithms are applied in the VTM reference software to reduce the encoder complexity when the ACT is enabled.
Intra template matching prediction (Intra TMP) is a special intra prediction mode that copies the best prediction block from the reconstructed part of the current frame, whose L-shaped template matches the current template. For a predefined search range, the encoder searches for the most similar template to the current template in a reconstructed part of the current frame and uses the corresponding block as a prediction block. The encoder then signals the usage of this mode, and the same prediction operation is performed at the decoder side.
SAD is used as a cost function.
Within each region, the decoder searches for the template that 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) to have a fixed number of SAD comparisons per pixel. That is:
Where ‘a’ is a constant that controls the gain/complexity trade-off. In practice, ‘a’ is equal to 5.
The Intra template matching tool is enabled for CUs with size less than or equal to 64 in width and height. This maximum CU size for Intra template matching is configurable.
The Intra template matching prediction mode is signaled at CU level through a dedicated flag when DIMD is not used for current CU.
2.1.7 IBC with Template Matching (IBC-TM)
In ECM-5.0, Template Matching with IBC is used for both IBC merge mode and IBC AMVP mode.
The IBC-TM merge list has been modified compared to the one used by regular IBC merge mode such that the candidates are selected according to a pruning method with a motion distance between the candidates as in the regular TM merge mode. The ending zero motion fulfillment (which is a nonsense regarding Intra coding) has been replaced by motion vectors to the left (−W, 0), top (0,−H) and top-left (−W,−H), where W is the width and H the height of the current CU.
In the IBC-TM merge mode, the selected candidates are refined with the Template Matching method prior to the RDO or decoding process. The IBC-TM merge mode has been put in competition with the regular IBC merge mode and a TM-merge flag is signaled.
In the IBC-TM AMVP mode, up to 3 candidates are selected from the IBC-TM merge list. Each of those 3 selected candidates are refined using the Template Matching method and sorted according to their resulting Template Matching cost. Only the 2 first ones are then considered in the motion estimation process as usual.
In ECM-5.0, the HMVP table size for IBC is increased to 25. After up to 20 IBC merge candidates are derived with full pruning, they are reordered together. After reordering, the first 6 candidates with the lowest template matching costs are selected as the final candidates in the IBC merge list.
In ECM-4.0, Block Vector Difference (BVD) shares the same binarization method with Motion Vector Difference (MVD). For each component, greater than 0, greater than 1 flags are signalled followed by the bypass coded remaining magnitude binarized with EG1 code.
In ECM-5.0, the greater than 1 flag is removed and the first 5 bins of the EGI prefix are context coded, all other bins are kept bypass coded.
At the JVET-Z meeting, a Reconstruction-Reordered IBC (RR-IBC) mode was proposed for screen content video coding. When it is applied, the samples in a reconstruction block are flipped according to a flip type of the current block. At the encoder side, the original block is flipped before motion search and residual calculation, while the prediction block is derived without flipping. At the decoder side, the reconstruction block is flipped back to restore the original block.
Two flip methods, horizontal flip and vertical flip, are supported for RR-IBC coded blocks. A syntax flag is firstly signalled for an IBC AMVP coded block, indicating whether the reconstruction is flipped, and if it is flipped, another flag is further signaled specifying the flip type. For IBC merge, the flip type is inherited from neighbouring blocks, without syntax signalling. Considering the horizontal or vertical symmetry, the current block and the reference block are normally aligned horizontally or vertically. Therefore, when a horizontal flip is applied, the vertical component of the BV is not signaled and inferred to be equal to 0. Similarly, the horizontal component of the BV is not signaled and inferred to be equal to 0 when a vertical flip is applied.
To better utilize the symmetry property, a flip-aware BV adjustment approach is applied to refine the block vector candidate. For example, as shown in
The detailed embodiments 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.
In the following disclosure, a block may refer to a coding block (CB), a coding unit (CU), a prediction block (PB), a prediction unit (PU), a transform block (TB), a transform unit (TU), a sub-block, a sub-CU, a coding tree unit (CTU), a coding tree block (CTB), or a coding group (CG).
In the following disclosure, a region may refer to any video unit, such as a picture, a slice or a block. A region may also refer to a non-rectangular region, such as a triangular.
In the following disclosure, W and H represents the width and height of a mentioned rectangular region.
The detailed embodiments 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 terms ‘video unit’ or ‘coding unit’ may represent a picture, a slice, a tile, a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB.
The terms ‘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.
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.
The detailed embodiments 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 terms ‘video unit’ or ‘coding unit’ may represent a picture, a slice, a tile, a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB.
The terms ‘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.
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.
The detailed embodiments 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 terms ‘video unit’ or ‘coding unit’ may represent a picture, a slice, a tile, a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB.
The terms ‘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.
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.
In ECM-5.0, the HMVP table size for IBC is increased to 25, and the HMVP candidate may be far away from the current video unit. How to handle the interaction between RRIBC and history-based motion vector prediction (e.g., HMVP) needs to be considered.
The detailed embodiments 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 terms ‘video unit’ or ‘coding unit’ may represent a picture, a slice, a tile, a coding tree block (CTB), a coding tree unit (CTU), a coding block (CB), a CU, a PU, a TU, a PB, a TB.
The terms ‘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.
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.
At block 1210, whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of the current video block is determined. At block 1220, the conversion is performed based on the determining. In some embodiments, the conversion may include encoding the current video block into the bitstream. Alternatively, or in addition, in some embodiments, the conversion may include decoding the current video block from the bitstream.
The method 1200 enables adjusts the RRIBC coded HMVP candidate based on a determination of whether to adjust the RRIBC coded HMVP candidate. In this way, coding effectiveness and coding efficiency can thus be improved.
In some embodiments, at block 1210, whether a motion adjustment is to be applied to the RRIBC coded HMVP candidate may be determined based on a predefined condition for candidate adjustment.
In some embodiments, if the RRIBC coded HMVP candidate satisfies the predefined condition for candidate adjustment, the RRIBC coded HMVP candidate is adjusted by the motion adjustment, the conversion being performed based on the adjusted RRIBC coded HMVP candidate.
In some embodiments, if the RRIBC coded HMVP candidate does not satisfy the predefined condition for candidate adjustment, the conversion is performed based on the RRIBC coded HMVP candidate without adjusting the RRIBC coded HMVP candidate.
In some embodiments, at block 1220, the RRIBC coded HMVP candidate may be adjusted based on the determining, and the conversion may be performed based on the adjusted RRIBC coded HMVP candidate.
In some embodiments, the RRIBC coded HMVP candidate is in an HMVP table.
In some embodiments, the RRIBC coded HMVP candidate is adjusted by a motion adjustment. For example, at least one RRIBC coded HMVP candidate in the HMVP table may use motion adjustment.
In some embodiments, wherein a motion adjustment is not applied to the RRIBC coded HMVP candidate. For example, at least one RRIBC coded HMVP candidate in the HMVP table doesn't use motion adjustment.
In some embodiments, the conversion may be performed based on the RRIBC coded HMVP candidate without adjusting the RRIBC coded HMVP candidate. For example, at least one RRIBC coded HMVP candidate may be directly used for the current video unit.
In some embodiments, the current video block is coded by an RRIBC based intra block copy-advanced motion vector prediction (IBC-AMVP) mode.
In some embodiments, the conversion is performed based on the adjusted RRIBC coded HMVP candidate without determining whether to adjust the RRIBC coded HMVP candidate. For example, the RRIBC coded HMVP candidate may be always adjusted.
In some embodiments, determining whether to adjust the RRIBC coded HMVP candidate comprises: in accordance with a determination that a first flip type of the current video block is the same with a second flip type of the RRIBC coded HMVP candidate, determining to adjust the RRIBC coded HMVP candidate.
In some embodiments, the conversion is performed based on motion information of the RRIBC coded HMVP candidate without adjusting the motion information of the RRIBC coded HMVP candidate.
In some embodiments, determining whether to adjust the RRIBC coded HMVP candidate comprises: in accordance with a determination that a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, determining to adjust the RRIBC coded HMVP candidate.
In some embodiments, if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed based on the RRIBC coded HMVP candidate without adjusting the RRIBC coded HMVP candidate.
In some embodiments, if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed without using motion information of the RRIBC coded HMVP candidate.
In some embodiments, the current video block is coded by an RRIBC based intra block copy-merge (IBC-MERGE) mode.
In some embodiments, the conversion is performed based on the adjusted RRIBC coded HMVP candidate without determining whether to adjust the RRIBC coded HMVP candidate. For example, the RRIBC coded HMVP candidate may be always adjusted.
In some embodiments, the conversion is performed based on motion information of the RRIBC coded HMVP candidate without adjusting the motion information of the RRIBC coded HMVP candidate.
In some embodiments, determining whether to adjust the RRIBC coded HMVP candidate comprises: in accordance with a determination that a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, determining to adjust the RRIBC coded HMVP candidate.
In some embodiments, if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed based on the RRIBC coded HMVP candidate without adjusting the RRIBC coded HMVP candidate.
In some embodiments, if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed without using motion information of the RRIBC coded HMVP candidate.
In some embodiments, if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed based on a flip type of the RRIBC coded HMVP candidate.
In some embodiments, a flip type of the RRIBC coded HMVP candidate is no flip, and the conversion is performed based on the flip type.
In some embodiments, adjusting the RRIBC coded HMVP candidate comprises: adding a motion shift to the RRIBC coded HMVP candidate.
In some embodiments, the RRIBC coded HMVP candidate is adjusted based on at least one of: a block dimension of the current video block, or a location of the current video block.
In some embodiments, the location of the current video block comprises at least one of: a position of a center sample of the current video block, or a position of a top-left sample of the current video block.
In some embodiments, the RRIBC coded HMVP candidate is adjusted based on at least one of: a block dimension of a neighbor video block, the RRIBC coded HMVP candidate being determined based on the neighbor video block, or a location of the neighbor video block.
In some embodiments, the location of the neighbor video block comprises at least one of: a position of a center sample of the neighbor video block, or a position of a top-left sample of the neighbor video block.
In some embodiments, if the RRIBC coded HMVP candidate satisfies a predefined condition for motion information, the conversion is performed based on motion information of the RRIBC coded HMVP candidate.
In some embodiments, if the RRIBC coded HMVP candidate does not satisfy the predefined condition for motion information, the conversion is performed without using the motion information and a flip type of the RRIBC coded HMVP candidate.
In some embodiments, if the current video block is coded by a first prediction mode, a flip type of the RRIBC coded HMVP candidate is used for the current video block.
In some embodiments, the first prediction mode comprises at least one of: an intra block copy-merge (IBC-MERGE) mode, or an intra block copy-advanced motion vector prediction (IBC-AMVP) mode.
In some embodiments, the method 1200 further comprises: determining whether the flip type is used for the current video block based on a predefined condition for flip type.
In some embodiments, the predefined condition for flip type is based on a distance between the RRIBC coded HMVP candidate and the current video block.
In some embodiments, if the distance is less than or equal to a threshold distance, the flip type is used for the current video block.
In some embodiments, if the flip type is not used for the current video block, the flip type is no flip.
In some embodiments, if an HMVP candidate is not used for the current video block, the HMVP candidate is not allowed to be used for the current video block.
In some embodiments, at least one of a predefined condition for candidate adjustment, a predefined condition for motion information, or a predefined condition for flip type is based on at least one of the following: a coding mode of the current video block, a flip type of the RRIBC coded HMVP candidate, a flip type of the current video block, a distance between the RRIBC coded HMVP candidate and the current video block, a location of the current video block, a width of the current video block, a height of the current video block, a location of a neighbor video block associated with the RRIBC coded HMVP candidate, a width of the neighbor video block, or a height of the neighbor video block.
In some embodiments, the coding mode of the current video block comprises at least one of: an intra block copy-merge (IBC-MERGE) mode, or an intra block copy-advanced motion vector prediction (IBC-AMVP) mode.
In some embodiments, the distance between the RRIBC coded HMVP candidate and the current video block is based on a block location of the RRIBC coded HMVP candidate and a block location of the current video block.
In some embodiments, the block location of the current video block is based on a location of a center sample of the current video block, or a location of a top-left sample of the current video block.
In some embodiments, the block location of the RRIBC coded HMVP candidate is based on a location of a center sample of the RRIBC coded HMVP candidate, or a location of a top-left sample of the RRIBC coded HMVP candidate.
In some embodiments, if the distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed based on adjusted motion information of the RRIBC coded HMVP candidate.
In some embodiments, if the distance between the RRIBC coded HMVP candidate and the current video block is greater than or equal to a threshold distance, the conversion is performed based on motion information of the RRIBC coded HMVP candidate without adjusting the motion information.
In some embodiments, if the distance between the RRIBC coded HMVP candidate and the current video block is greater than or equal to a threshold distance, the conversion is performed without using motion information of the RRIBC coded HMVP candidate.
In some embodiments, if the distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, a flip type of the RRIBC coded HMVP candidate is used for the current video block.
In some embodiments, if the distance between the RRIBC coded HMVP candidate and the current video block is greater than or equal to a threshold distance, a flip type of the RRIBC coded HMVP candidate is no flip, the flip type being used for the current video block.
In some embodiments, the threshold distance is based on a block dimension of the current video block.
In some embodiments, the block dimension of the current video block comprises at least one of: a width of the current video block, a height of the current video block, the number of samples in the current video block, or the number of pixels in the current video block.
In some embodiments, the threshold distance is based on a block dimension of the RRIBC coded HMVP candidate.
In some embodiments, the block dimension of the RRIBC coded HMVP candidate comprises at least one of: a width of the RRIBC coded HMVP candidate, a height of the RRIBC coded HMVP candidate, the number of samples in the RRIBC coded HMVP candidate, or the number of pixels in the RRIBC coded HMVP candidate.
In some embodiments, the location of the current video block comprises a center location of the current video block, or a top-left location of the current video block.
In some embodiments, the location of the neighbor video block comprises a center location of the neighbor video block, or a top-left location of the neighbor video block.
In some embodiments, at least one of the predefined condition for candidate adjustment, the predefined condition for motion information, or the predefined condition for flip type is based on at least one of the following: abs (curX+curW>>1−candCenterX)<=FACTOR*curW, or abs (curY+curH>>1−candCenterY)<=FACTOR*curH, wherein curX denotes a first coordinate of a top-left location of the current video block, curY denotes a second coordinate of the top-left location of the current video block, curW denotes a width of the current video block, curH denotes a height of the current video block, candCenterX denotes a third coordinate of a center position of the neighbor video block, candCenterY denotes a fourth coordinate of the center position of the neighbor video block, FACTOR denotes a scaling factor, and abs( ) denotes a metric for an absolute value.
In some embodiments, the scaling factor comprises one of: 1.0, 1.2, 1.5, 1.8, or 2.0. In some embodiments, the scaling factor comprises one of: a floating-point value, or an integer.
According to further embodiments of the present disclosure, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. In the method, whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of a current video block of the video is determined. The bitstream is generated based on the determining.
According to still further embodiments of the present disclosure, a method for storing bitstream of a video is provided. In the method, whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of a current video block of the video is determined. The bitstream is generated based on the determining. The bitstream is stored in a non-transitory computer-readable recording medium.
At block 1310, information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of the current video block is determined. At block 1320, the information is stored in a buffer.
At block 1330, the conversion is performed based on the information. In some embodiments, the conversion may include encoding the current video block into the bitstream. Alternatively, or in addition, in some embodiments, the conversion may include decoding the current video block from the bitstream.
The method 1300 enables determines information of an IBC-HMVP candidate such as block location or block dimension information of the IBC-HMVP candidate, and stores the information in a buffer. In this way, the stored information can be used for adjustment of the HMVP candidate. Coding effectiveness and coding efficiency can thus be improved.
In some embodiments, the information comprises at least one of: a block location of the IBC-HMVP candidate, or a block dimension of the IBC-HMVP candidate.
In some embodiments, the block location of the IBC-HMVP candidate comprises at least one of: a position of a center sample of the IBC-HMVP candidate, or a position of a top-left sample of the IBC-HMVP candidate.
In some embodiments, the block dimension of the IBC-HMVP candidate comprises at least one of: a width of the IBC-HMVP candidate, or a height of the IBC-HMVP candidate.
In some embodiments, if the IBC-HMVP candidate is coded by reconstructed reordered intra block copy (RRIBC), the information of the IBC-HMVP candidate is stored in the buffer.
In some embodiments, the information of the IBC-HMVP candidate is stored associated with a history-based motion vector prediction (HMVP) table.
According to further embodiments of the present disclosure, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. In the method, information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of a current video block of the video is determined. The information is stored in a buffer. The bitstream is generated based on the information.
According to still further embodiments of the present disclosure, a method for storing bitstream of a video is provided. In the method, information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of a current video block of the video is determined. The information is stored in a buffer. The bitstream is generated based on the information. The bitstream is stored in a non-transitory computer-readable recording medium.
It is to be understood that the above method 1200 and/or method 1300 may be used in combination or separately. Any suitable combination of these methods may be applied. Scope of the present disclosure is not limited in this regard.
By using these methods 1200 and 1300 separately or in combination, the video coding process may be improved by adjusting RRIBC coded HMVP candidate. In this way, the coding effectiveness and coding efficiency can 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, for a conversion between a current video block of a video and a bitstream of the video, whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of the current video block; and performing the conversion based on the determining.
Clause 2. The method of clause 1, wherein determining whether to adjust the RRIBC coded HMVP candidate comprises: determining whether a motion adjustment is to be applied to the RRIBC coded HMVP candidate based on a predefined condition for candidate adjustment.
Clause 3. The method of clause 2, wherein if the RRIBC coded HMVP candidate satisfies the predefined condition for candidate adjustment, the RRIBC coded HMVP candidate is adjusted by the motion adjustment, the conversion being performed based on the adjusted RRIBC coded HMVP candidate.
Clause 4. The method of clause 2, wherein if the RRIBC coded HMVP candidate does not satisfy the predefined condition for candidate adjustment, the conversion is performed based on the RRIBC coded HMVP candidate without adjusting the RRIBC coded HMVP candidate.
Clause 5. The method of any of clauses 1-4, wherein performing the conversion based on the determining comprises: adjusting the RRIBC coded HMVP candidate based on the determining; and performing the conversion based on the adjusted RRIBC coded HMVP candidate.
Clause 6. The method of clause 5, wherein the RRIBC coded HMVP candidate is in an HMVP table.
Clause 7. The method of clause 6, wherein the RRIBC coded HMVP candidate is adjusted by a motion adjustment.
Clause 8. The method of clause 6, wherein a motion adjustment is not applied to the RRIBC coded HMVP candidate.
Clause 9. The method of any of clauses 1-8, wherein performing the conversion based on the determining comprises: performing the conversion based on the RRIBC coded HMVP candidate without adjusting the RRIBC coded HMVP candidate.
Clause 10. The method of any of clauses 1-9, wherein the current video block is coded by an RRIBC based intra block copy-advanced motion vector prediction (IBC-AMVP) mode.
Clause 11. The method of clause 10, wherein the conversion is performed based on the adjusted RRIBC coded HMVP candidate without determining whether to adjust the RRIBC coded HMVP candidate.
Clause 12. The method of clause 10, wherein determining whether to adjust the RRIBC coded HMVP candidate comprises: in accordance with a determination that a first flip type of the current video block is the same with a second flip type of the RRIBC coded HMVP candidate, determining to adjust the RRIBC coded HMVP candidate.
Clause 13. The method of clause 10, wherein the conversion is performed based on motion information of the RRIBC coded HMVP candidate without adjusting the motion information of the RRIBC coded HMVP candidate.
Clause 14. The method of clause 10, wherein determining whether to adjust the RRIBC coded HMVP candidate comprises: in accordance with a determination that a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, determining to adjust the RRIBC coded HMVP candidate.
Clause 15. The method of clause 10, wherein if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed based on the RRIBC coded HMVP candidate without adjusting the RRIBC coded HMVP candidate.
Clause 16. The method of clause 10, wherein if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed without using motion information of the RRIBC coded HMVP candidate.
Clause 17. The method of any of clauses 1-9, wherein the current video block is coded by an RRIBC based intra block copy-merge (IBC-MERGE) mode.
Clause 18. The method of clause 17, wherein the conversion is performed based on the adjusted RRIBC coded HMVP candidate without determining whether to adjust the RRIBC coded HMVP candidate.
Clause 19. The method of clause 17, wherein the conversion is performed based on motion information of the RRIBC coded HMVP candidate without adjusting the motion information of the RRIBC coded HMVP candidate.
Clause 20. The method of clause 17, wherein determining whether to adjust the RRIBC coded HMVP candidate comprises: in accordance with a determination that a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, determining to adjust the RRIBC coded HMVP candidate.
Clause 21. The method of clause 17, wherein if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed based on the RRIBC coded HMVP candidate without adjusting the RRIBC coded HMVP candidate.
Clause 22. The method of clause 17, wherein if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed without using motion information of the RRIBC coded HMVP candidate.
Clause 23. The method of any of clauses 17-22, wherein if a distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed based on a flip type of the RRIBC coded HMVP candidate.
Clause 24. The method of any of clauses 17-23, wherein a flip type of the RRIBC coded HMVP candidate is no flip, and the conversion is performed based on the flip type.
Clause 25. The method of any of clauses 1-24, wherein adjusting the RRIBC coded HMVP candidate comprises: adding a motion shift to the RRIBC coded HMVP candidate.
Clause 26. The method of any of clauses 1-25, wherein the RRIBC coded HMVP candidate is adjusted based on at least one of: a block dimension of the current video block, or a location of the current video block.
Clause 27. The method of clause 26, wherein the location of the current video block comprises at least one of: a position of a center sample of the current video block, or a position of a top-left sample of the current video block.
Clause 28. The method of any of clauses 1-27, wherein the RRIBC coded HMVP candidate is adjusted based on at least one of: a block dimension of a neighbor video block, the RRIBC coded HMVP candidate being determined based on the neighbor video block, or a location of the neighbor video block.
Clause 29. The method of clause 28, wherein the location of the neighbor video block comprises at least one of: a position of a center sample of the neighbor video block, or a position of a top-left sample of the neighbor video block.
Clause 30. The method of any of clauses 1-29, wherein if the RRIBC coded HMVP candidate satisfies a predefined condition for motion information, the conversion is performed based on motion information of the RRIBC coded HMVP candidate.
Clause 31. The method of clause 30, wherein if the RRIBC coded HMVP candidate does not satisfy the predefined condition for motion information, the conversion is performed without using the motion information and a flip type of the RRIBC coded HMVP candidate.
Clause 32. The method of any of clauses 1-31, wherein if the current video block is coded by a first prediction mode, a flip type of the RRIBC coded HMVP candidate is used for the current video block.
Clause 33. The method of clause 32, wherein the first prediction mode comprises at least one of: an intra block copy-merge (IBC-MERGE) mode, or an intra block copy-advanced motion vector prediction (IBC-AMVP) mode.
Clause 34. The method of clause 32 or clause 33, further comprising: determining whether the flip type is used for the current video block based on a predefined condition for flip type.
Clause 35. The method of clause 34, wherein the predefined condition for flip type is based on a distance between the RRIBC coded HMVP candidate and the current video block.
Clause 36. The method of clause 35, wherein if the distance is less than or equal to a threshold distance, the flip type is used for the current video block.
Clause 37. The method of any of clauses 34-36, wherein if the flip type is not used for the current video block, the flip type is no flip.
Clause 38. The method of any of clauses 1-37, wherein if an HMVP candidate is not used for the current video block, the HMVP candidate is not allowed to be used for the current video block.
Clause 39. The method of any of clauses 1-38, wherein at least one of a predefined condition for candidate adjustment, a predefined condition for motion information, or a predefined condition for flip type is based on at least one of the following: a coding mode of the current video block, a flip type of the RRIBC coded HMVP candidate, a flip type of the current video block, a distance between the RRIBC coded HMVP candidate and the current video block, a location of the current video block, a width of the current video block, a height of the current video block, a location of a neighbor video block associated with the RRIBC coded HMVP candidate, a width of the neighbor video block, or a height of the neighbor video block.
Clause 40. The method of clause 39, wherein the coding mode of the current video block comprises at least one of: an intra block copy-merge (IBC-MERGE) mode, or an intra block copy-advanced motion vector prediction (IBC-AMVP) mode.
Clause 41. The method of clause 39 or clause 40, wherein the distance between the RRIBC coded HMVP candidate and the current video block is based on a block location of the RRIBC coded HMVP candidate and a block location of the current video block.
Clause 42. The method of clause 41, wherein the block location of the current video block is based on a location of a center sample of the current video block, or a location of a top-left sample of the current video block.
Clause 43. The method of clause 41, wherein the block location of the RRIBC coded HMVP candidate is based on a location of a center sample of the RRIBC coded HMVP candidate, or a location of a top-left sample of the RRIBC coded HMVP candidate.
Clause 44. The method of any of clauses 39-43, wherein if the distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, the conversion is performed based on adjusted motion information of the RRIBC coded HMVP candidate.
Clause 45. The method of any of clauses 39-43, wherein if the distance between the RRIBC coded HMVP candidate and the current video block is greater than or equal to a threshold distance, the conversion is performed based on motion information of the RRIBC coded HMVP candidate without adjusting the motion information.
Clause 46. The method of any of clauses 39-43, wherein if the distance between the RRIBC coded HMVP candidate and the current video block is greater than or equal to a threshold distance, the conversion is performed without using motion information of the RRIBC coded HMVP candidate.
Clause 47. The method of any of clauses 39-43, wherein if the distance between the RRIBC coded HMVP candidate and the current video block is less than or equal to a threshold distance, a flip type of the RRIBC coded HMVP candidate is used for the current video block.
Clause 48. The method of any of clauses 39-43, wherein if the distance between the RRIBC coded HMVP candidate and the current video block is greater than or equal to a threshold distance, a flip type of the RRIBC coded HMVP candidate is no flip, the flip type being used for the current video block.
Clause 49. The method of any of clauses 44-48, wherein the threshold distance is based on a block dimension of the current video block.
Clause 50. The method of clause 49, wherein the block dimension of the current video block comprises at least one of: a width of the current video block, a height of the current video block, the number of samples in the current video block, or the number of pixels in the current video block.
Clause 51. The method of any of clauses 44-50, wherein the threshold distance is based on a block dimension of the RRIBC coded HMVP candidate.
Clause 52. The method of clause 51, wherein the block dimension of the RRIBC coded HMVP candidate comprises at least one of: a width of the RRIBC coded HMVP candidate, a height of the RRIBC coded HMVP candidate, the number of samples in the RRIBC coded HMVP candidate, or the number of pixels in the RRIBC coded HMVP candidate.
Clause 53. The method of any of clauses 39-52, wherein the location of the current video block comprises a center location of the current video block, or a top-left location of the current video block.
Clause 54. The method of any of clauses 39-53, wherein the location of the neighbor video block comprises a center location of the neighbor video block, or a top-left location of the neighbor video block.
Clause 55. The method of any of clauses 39-54, wherein at least one of the predefined condition for candidate adjustment, the predefined condition for motion information, or the predefined condition for flip type is based on at least one of the following: abs (curX+curW>>1−candCenterX)<=FACTOR*curW, or abs (curY+curH>>1−candCenterY)<=FACTOR*curH, wherein curX denotes a first coordinate of a top-left location of the current video block, curY denotes a second coordinate of the top-left location of the current video block, curW denotes a width of the current video block, curH denotes a height of the current video block, candCenterX denotes a third coordinate of a center position of the neighbor video block, candCenterY denotes a fourth coordinate of the center position of the neighbor video block, FACTOR denotes a scaling factor, and abs( ) denotes a metric for an absolute value.
Clause 56. The method of clause 55, wherein the scaling factor comprises one of: 1.0, 1.2, 1.5, 1.8, or 2.0.
Clause 57. The method of clause 55, wherein the scaling factor comprises one of: a floating-point value, or an integer.
Clause 58. A method for video processing, comprising: determining, for a conversion between a current video block of a video and a bitstream of the video, information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of the current video block; storing the information in a buffer; and performing the conversion based on the information.
Clause 59. The method of clause 58, wherein the information comprises at least one of: a block location of the IBC-HMVP candidate, or a block dimension of the IBC-HMVP candidate.
Clause 60. The method of clause 59, wherein the block location of the IBC-HMVP candidate comprises at least one of: a position of a center sample of the IBC-HMVP candidate, or a position of a top-left sample of the IBC-HMVP candidate.
Clause 61. The method of clause 59, wherein the block dimension of the IBC-HMVP candidate comprises at least one of: a width of the IBC-HMVP candidate, or a height of the IBC-HMVP candidate.
Clause 62. The method of any of clauses 58-61, wherein if the IBC-HMVP candidate is coded by reconstructed reordered intra block copy (RRIBC), the information of the IBC-HMVP candidate is stored in the buffer.
Clause 63. The method of any of clauses 58-62, wherein the information of the IBC-HMVP candidate is stored associated with a history-based motion vector prediction (HMVP) table.
Clause 64. The method of any of clauses 1-63, wherein the conversion includes encoding the current video block into the bitstream.
Clause 65. The method of any of clauses 1-63, wherein the conversion includes decoding the current video block from the bitstream.
Clause 66. An apparatus for video processing 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-65.
Clause 67. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of clauses 1-65.
Clause 68. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by an apparatus for video processing, wherein the method comprises: determining whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of a current video block of the video; and generating the bitstream based on the determining.
Clause 69. A method for storing a bitstream of a video, comprising: determining whether to adjust a reconstructed reordered intra block copy (RRIBC) coded history-based motion vector prediction (HMVP) candidate of a current video block of the video; generating the bitstream based on the determining; and storing the bitstream in a non-transitory computer-readable recording medium.
Clause 70. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by an apparatus for video processing, wherein the method comprises: determining information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of a current video block of the video; storing the information in a buffer; and generating the bitstream based on the information.
Clause 71. A method for storing a bitstream of a video, comprising: determining information of an intra block copy-history-based motion vector prediction (IBC-HMVP) candidate of a current video block of the video; storing the information in a buffer; generating the bitstream based on the information; and storing the bitstream in a non-transitory computer-readable recording medium.
It would be appreciated that the computing device 1400 shown in
As shown in
In some embodiments, the computing device 1400 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 1400 can support any type of interface to a user (such as “wearable” circuitry and the like).
The processing unit 1410 may be a physical or virtual processor and can implement various processes based on programs stored in the memory 1420. 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 1400. The processing unit 1410 may also be referred to as a central processing unit (CPU), a microprocessor, a controller or a microcontroller.
The computing device 1400 typically includes various computer storage medium. Such medium can be any medium accessible by the computing device 1400, including, but not limited to, volatile and non-volatile medium, or detachable and non-detachable medium. The memory 1420 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 1430 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 1400.
The computing device 1400 may further include additional detachable/non-detachable, volatile/non-volatile memory medium. Although not shown in
The communication unit 1440 communicates with a further computing device via the communication medium. In addition, the functions of the components in the computing device 1400 can be implemented by a single computing cluster or multiple computing machines that can communicate via communication connections. Therefore, the computing device 1400 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 1450 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 1460 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 1440, the computing device 1400 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 1400, or any devices (such as a network card, a modem and the like) enabling the computing device 1400 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 1400 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 1400 may be used to implement video encoding/decoding in embodiments of the present disclosure. The memory 1420 may include one or more video coding modules 1425 having one or more program instructions. These modules are accessible and executable by the processing unit 1410 to perform the functionalities of the various embodiments described herein.
In the example embodiments of performing video encoding, the input device 1450 may receive video data as an input 1470 to be encoded. The video data may be processed, for example, by the video coding module 1425, to generate an encoded bitstream. The encoded bitstream may be provided via the output device 1460 as an output 1480.
In the example embodiments of performing video decoding, the input device 1450 may receive an encoded bitstream as the input 1470. The encoded bitstream may be processed, for example, by the video coding module 1425, to generate decoded video data. The decoded video data may be provided via the output device 1460 as the output 1480.
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/CN2022/097483 | Jun 2022 | WO | international |
This application is a continuation of International Application No. PCT/CN2023/098942, filed on Jun. 7, 2023, which claims the benefit of International Application No. PCT/CN2022/097483 filed on Jun. 7, 2022. The entire contents of these applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2023/098942 | Jun 2023 | WO |
Child | 18972634 | US |