Method, apparatus and medium for video processing
By deriving an affine model for non-adjacent affine motion candidates using a motion vector set, the method addresses the challenge of improving coding efficiency and performance in video processing, achieving enhanced video encoding outcomes.
Patent Information
- Application Number
- JP2024557494
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-03-30
- Filing Date
- 2023-03-29
- Publication Date
- 2025-04-15
AI Technical Summary
Existing video coding techniques face challenges in improving coding efficiency and performance, particularly in effectively handling non-adjacent affine motion candidates in video units.
The proposed method involves deriving an affine model for non-adjacent affine motion candidates of video units based on a motion vector set, which includes an affine parameter set and generates a bitstream using this model.
This approach enhances coding efficiency and performance by effectively modeling and encoding non-adjacent affine motion candidates, leading to improved video processing outcomes.
Smart Images

Figure 2025510962000001_ABST
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present disclosure relate generally to video processing techniques, and more particularly, to history-based affine model inheritance. [Background technology]
[0002] Nowadays, digital video functions are applied in various aspects of people's lives. Several kinds of video compression technologies, such as MPEG-2, MPEG-4, ITU-TH.263, ITU-TH.264 / MPEG-4 Part10 Advanced Video Coding (AVC), ITU-TH.265 high efficiency video coding (HEVC) standard, and versatile video coding (VVC) standard, have been proposed for video encoding / decoding. However, in general, the coding efficiency of video coding technologies is expected to be further improved. Summary of the Invention
[0003] SUMMARY OF THE DISCLOSURE Embodiments of the present disclosure provide a solution for video processing.
[0004] In a first aspect, a method for video processing is proposed. The method includes: deriving an affine model for non-adjacent affine motion candidates of a video unit based on a motion vector set during conversion between a video unit of a video and a bitstream of the video unit, the affine model including an affine parameter set; and performing conversion based on the affine model. In this way, coding efficiency and performance can be improved.
[0005] In a second aspect, an apparatus for video processing is proposed, the apparatus comprising a processor and a non-transitory memory having instructions thereon, the instructions, when executed by the processor, causing the processor to perform a method according to the first aspect of the present disclosure.
[0006] In a third aspect, a non-transitory computer-readable storage medium is proposed. The non-transitory computer-readable storage medium stores instructions for causing a processor to perform the method according to the first aspect of the present disclosure.
[0007] In a fourth aspect, another non-transitory computer-readable storage medium is proposed, which stores a bitstream of a video generated by a method performed by an apparatus for video processing, the method including: deriving an affine model for non-adjacent affine motion candidates of a video unit of the video based on a set of motion vectors, the affine model including a set of affine parameters; and generating a bitstream based on a first and a second motion candidate.
[0008] In a fifth aspect, a method for storing a bitstream of a video is proposed, the method includes: deriving an affine model for non-adjacent affine motion candidates of a video unit of the video based on a set of motion vectors, the affine model including a set of affine parameters, generating a bitstream based on first and second motion candidates, and storing the bitstream in a non-transitory computer-readable recording medium.
[0009] This Summary is provided to introduce in a simplified form some concepts 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. [Brief description of the drawings]
[0010] The above and other objects, features, and advantages of exemplary embodiments of the present disclosure will become more apparent through the following detailed description taken in conjunction with the accompanying drawings, in which like reference numerals generally refer to like components. [Figure 1] FIG. 1 shows a block diagram illustrating an example video coding system according to some embodiments of the present disclosure. [Diagram 2] 1 shows a block diagram illustrating a first exemplary video encoder according to some embodiments of the present disclosure. [Diagram 3] FIG. 2 shows a block diagram illustrating an exemplary video decoder according to some embodiments of the present disclosure. [Figure 4] 1 illustrates sub-block based prediction. [Figure 5a] Simplified affine motion models are shown, with FIG. 5a showing a four-parameter affine model. [Figure 5b] A simplified affine motion model is shown in FIG. 5b, which shows a six-parameter affine model. [Figure 6] The affine MVF for each subblock is shown. [Figure 7a] Figure 7a shows the candidates for AF_MERGE. [Figure 7b] Figure 7b shows the candidates for AF_MERGE. [Figure 8] Shows candidate positions for affine merge mode. [Figure 9] Shows candidate positions for affine merge mode. [Figure 10a] 10A shows an example of dividing a CU into two triangular prediction units (two division patterns), and FIG. 10A shows a 135-degree partition type. [Figure 10b] 10A shows an example of splitting a CU into two triangular prediction units (two splitting patterns), with FIG. 10b showing a 45-degree splitting pattern. [Figure 11] Indicates the location of nearby blocks. [Figure 12] 13 shows an example of a CU to which a first set of weighting coefficients is applied. [Figure 13]4 shows an example of storing motion vectors. [Figure 14] 1 shows a decoding flowchart according to the proposed HMVP method. [Figure 15] An example of updating a table in the proposed HMVP method is given. [Figure 16] The UMVE exploration process is shown. [Figure 17] UMVE search points are shown. [Figure 18] 1 shows a mapping between distance index and distance offset. [Figure 19] An example of deriving the CPMV from the MVs of neighboring blocks and a parameter set stored in a buffer is shown below. [Figure 20] 1 shows examples of possible positions for collocated unit blocks. [Figure 21] Indicates the position in a 4x4 basic block. [Figure 22] The sub-blocks at the right and bottom boundaries are shown shaded. [Figure 23a] Possible positions for deriving the MVs stored in the sub-blocks at the right and bottom boundaries are shown. [Figure 23b] Possible positions for deriving the MVs stored in the sub-blocks at the right and bottom boundaries are shown. [Figure 23c] Possible positions for deriving the MVs stored in the sub-blocks at the right and bottom boundaries are shown. [Figure 23d] Possible positions for deriving the MVs stored in the sub-blocks at the right and bottom boundaries are shown. [Figure 24] 1 shows possible positions for deriving the MV prediction. [Figure 25a] 13 shows the spatial neighborhood for deriving inherited affine merge candidates. [Figure 25b] 1 shows the spatial neighborhood for deriving constructed affine merge candidates. [Figure 26] 1 shows a schematic diagram of affine merge candidates constructed from non-adjacent neighborhoods. [Figure 27a]13 illustrates example block locations according to some embodiments of the present disclosure. [Figure 27b] 13 illustrates example block locations according to some embodiments of the present disclosure. [Figure 28] 13 illustrates example block locations according to some embodiments of the present disclosure. [Figure 29] 1 illustrates an example of a HPAC according to an exemplary embodiment of the present disclosure. [Diagram 30] 1 shows a flowchart of a method for video processing according to an embodiment of the present disclosure. [Diagram 31] 1 illustrates a block diagram of a computing device in which various embodiments of the present disclosure may be implemented.Throughout the drawings, the same or similar reference characters generally refer to the same or similar elements. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Next, the principles of the present disclosure will be described with reference to some embodiments. It should be understood that these embodiments are described for illustrative purposes only, to help those skilled in the art understand and practice the present disclosure, and do not imply any limitations on the scope of the present disclosure. The disclosure described herein can be implemented in various forms other than those described below.
[0012] In the following description and claims, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs.
[0013] References in this disclosure to "one embodiment," "embodiment," "exemplary embodiment," and the like indicate that the described embodiment may include a particular feature, structure, or characteristic, but not all embodiments need to include the particular feature, structure, or characteristic. Moreover, such phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in connection with an exemplary embodiment, it is submitted that it is within the knowledge of one of ordinary skill in the art to affect such feature, structure, or characteristic in connection with other embodiments, whether or not explicitly described.
[0014] In this specification, terms such as "first" and "second" may be used to describe various elements, but it should be understood that these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element can be referred to as a second element, and similarly, a second element can be referred to as a first element, without departing from the scope of the exemplary embodiments. As used herein, the term "and / or" includes any and all combinations of one or more of the listed terms.
[0015] The terms used herein are for the purpose of describing particular embodiments only and are not intended to limit the exemplary embodiments. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It is further understood that as used herein, the terms "comprises," "comprising," "has," "having," "includes," and / or "including" specify the presence of stated features, elements, and / or components, etc., but do not exclude the presence or addition of one or more other features, elements, components, and / or combinations thereof.
[0016] Example Environment 1 is a block diagram illustrating an example video coding system 100 that may utilize techniques of this disclosure. As shown, video coding system 100 may include a source device 110 and a destination device 120. Source device 110 may also be referred to as a video encoding device, and destination device 120 may also be referred to as a video decoding device. In operation, source device 110 may be configured to generate encoded video data, and destination device 120 may be configured to decode the encoded video data generated by source device 110. Source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.
[0017] Video source 112 may include sources such as video capture devices, examples of which include, but are not limited to, an interface for receiving video data from a video content provider, a computer graphics system for generating video data, and / or combinations thereof.
[0018] The video data may include 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 bit sequence that forms a coded representation of the video data. The bitstream may include coded pictures and associated data. A coded picture is a coded representation of a picture. The associated data may include a sequence parameter set, a picture parameter set, and other syntax structures. The I / O interface 116 may include a modulator / demodulator and / or a transmitter. The coded video data may be transmitted directly to the destination device 120 via the I / O interface 116 through the network 130A. The coded video data may also be stored in a storage medium / server 130B for access by the destination device 120.
[0019] Destination device 120 may include an I / O interface 126, a video decoder 124, and a display device 122. I / O interface 126 may include a receiver and / or a modem. I / O interface 126 may obtain encoded video data from source device 110 or storage medium / server 130B. Video decoder 124 may decode the encoded video data. Display device 122 may display the decoded video data to a user. Display device 122 may be integrated with destination device 120 or may be external to destination device 120 configured to interface with an external display device.
[0020] 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, the Versatile Video Coding (VVC) standard, and other current and / or future standards.
[0021] FIG. 2 is a block diagram illustrating an example of a video encoder 200, which may be an example of the video encoder 114 in the system 100 shown in FIG. 1, according to some embodiments of the disclosure.
[0022] Video encoder 200 may be configured to implement any or all of the techniques of this disclosure. In the example of FIG. 2, video encoder 200 includes multiple functional components. The techniques described in this disclosure may be shared among various components of video encoder 200. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.
[0023] In some embodiments, the video encoder 200 may include a division unit 201, a prediction unit 202, which may include a mode selection 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 coding unit 214.
[0024] In other examples, video encoder 200 may include more, fewer, or different functional components. In one example, prediction unit 202 may include an intra block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode, where at least one reference picture is the picture in which the current video block is located.
[0025] Furthermore, some components, such as the motion estimation unit 204 and the motion compensation unit 205, may be integrated, but are depicted separately in the example of FIG. 2 for ease of explanation.
[0026] Division unit 201 may divide a picture into one or more video blocks. Video encoder 200 and video decoder 300 may support a variety of video block sizes.
[0027] The mode selection unit 203 may select one of the coding modes (intra or inter), for example based on the error result, and provide the generated intra-coded or inter-coded blocks to the residual generation unit 207 to generate residual block data and to the reconstruction unit 212 to reconstruct coded blocks for use as reference pictures. In some examples, the mode selection unit 203 may select a combination of intra and inter prediction (CIIP) mode, in which prediction is performed based on an inter prediction signal and an intra prediction signal. The mode selection unit 203 may also select a resolution of the motion vectors of the blocks (e.g., sub-pixel accuracy or integer pixel accuracy) in the case of inter prediction.
[0028] To perform inter prediction on the current video block, 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. 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 buffer 213 other than the picture associated with the current video block.
[0029] Motion estimation unit 204 and motion compensation unit 205 may perform different operations on a current video block depending on whether the current video block is in an I slice, a P slice, or a B slice, for example. As used herein, an "I slice" may refer to a portion of a picture that is composed of macroblocks, all of which are based on macroblocks in the same picture. Additionally, as used herein, in some aspects, a "P slice" and a "B slice" may refer to a portion of a picture that is composed of macroblocks that are independent of macroblocks in the same picture.
[0030] In some examples, motion estimation unit 204 may perform unidirectional prediction on the current video block, and motion estimation unit 204 may search reference pictures of list 0 or list 1 for reference video blocks for the current video block. Motion estimation unit 204 may then generate a reference index indicating a reference picture in list 0 or list 1 that contains the reference video block, and a motion vector indicating a spatial displacement between the current video block and the reference video block. Motion estimation unit 204 may output the reference index, the prediction direction indicator, and the motion vector as motion information for the current video block. Motion compensation unit 205 may generate a predicted video block for the current video block based on the reference video block indicated by the motion information of the current video block.
[0031] Alternatively, in other examples, motion estimation unit 204 may perform bidirectional prediction for the current video block. Motion estimation unit 204 may search reference pictures in list 0 for a reference video block for the current video block and also search reference pictures in list 1 for another reference video block for the current video block. Motion estimation unit 204 may then generate reference indexes indicating reference pictures in list 0 and list 1 that contain reference video blocks and motion vectors indicating spatial displacements between the reference video blocks and the current video block. Motion estimation unit 204 may output the reference index and the motion vector for the current video block as motion information for the current video block. Motion compensation unit 205 may generate a predicted video block for the current video block based on the reference video block indicated by the motion information of the current video block.
[0032] In some examples, motion estimation unit 204 may output a full set of motion information for a decoder's decoding process. Alternatively, in some embodiments, motion estimation unit 204 may signal the motion information of the current video block by reference to motion information of another video block. For example, 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.
[0033] In one example, motion estimation unit 204 may indicate, in a syntax structure associated with the current video block, a value that indicates to video decoder 300 that the current video block has the same motion information as another video block.
[0034] In another example, motion estimation unit 204 may identify another video block and a motion vector difference (MVD) in a syntax structure associated with the current video block. The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the pointed-to video block. Video decoder 300 may use the motion vector of the pointed-to video block and the motion vector difference to determine the motion vector of the current video block.
[0035] As mentioned above, video encoder 200 may predictively signal motion vectors. Two examples of predictive signaling techniques that may be implemented by video encoder 200 include advanced motion vector prediction (AMVP) and merge mode signaling.
[0036] Intra prediction unit 206 may perform intra prediction on the current video block. When intra prediction unit 206 performs intra prediction on the current video block, it may generate predictive data for the current video block based on decoded samples of other video blocks in the same picture. The predictive data for the current video block may include a predicted video block and various syntax elements.
[0037] Residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., as indicated by a minus sign) the predicted video block(s) of the current video block from the current video block. The residual data for the current video block may include residual video blocks that correspond to different sample components of the samples in the current video block.
[0038] In other examples, for the current video block, such as in skip mode, residual data for the current video block may not be present and residual generation unit 207 may not perform a subtraction operation.
[0039] 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 related to the current video block.
[0040] After transform processing unit 208 generates a transform coefficient video block associated with the current video block, 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.
[0041] Inverse quantization unit 210 and inverse transform unit 211 may apply inverse quantization and inverse transform, respectively, to the transform coefficient video block to reconstruct a residual video block from the transform coefficient video block. Reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by prediction unit 202 to generate a reconstructed video block related to the current video block for storage in buffer 213.
[0042] After reconstruction unit 212 reconstructs the video blocks, a loop filtering operation may be performed to reduce video blocking artifacts in the video blocks.
[0043] The entropy encoding unit 214 may receive data from other functional components of the video encoder 200. Upon receiving the data, the entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy-coded data, and output a bitstream that includes the entropy-coded data.
[0044] FIG. 3 is a block diagram illustrating an example of a video decoder 300, which may be an example of the video decoder 124 in the system 100 shown in FIG. 1, according to some embodiments of the disclosure.
[0045] The video decoder 300 may be configured to perform any or all of the techniques described in this disclosure. In the example of FIG. 3, the video decoder 300 includes multiple functional components. The techniques described in this disclosure may be shared among various components of the video decoder 300. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.
[0046] 3, the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, a reconstruction unit 306, and a buffer 307. The video decoder 300 may, in some examples, perform a decoding path that is generally the inverse of the encoding path described with respect to the video encoder 200.
[0047] The entropy decoding unit 301 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., coded 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 determine such information, for example, by performing AMVP and merge mode. AMVP includes deriving multiple most probable candidates based on data from neighboring PB and reference pictures and is used. The motion information typically includes horizontal and vertical motion vector displacement values, one or two reference picture indexes, and an identification of which reference picture list is associated with each index in case of a prediction region in a B slice. As used herein, in some aspects, "merge mode" may refer to deriving motion information from spatially or temporally neighboring blocks.
[0048] The motion compensation unit 302 generates motion compensated blocks and may optionally perform interpolation based on an interpolation filter. An identifier for the interpolation filter used with sub-pixel precision may be included in the syntax element.
[0049] The motion compensation unit 302 may calculate sub-integer pixel interpolated values of the reference block using an interpolation filter used by the video encoder 200 during encoding of the video block. The motion compensation unit 302 may determine the interpolation filter used by the video encoder 200 according to received syntax information and generate the predictive block using the interpolation filter.
[0050] The motion compensation unit 302 may use at least a portion of the syntax information to determine the size of blocks used to code the frame(s) and / or slice(s) of the coded video sequence, partition information describing how each macroblock of a picture of the coded video sequence is partitioned, a mode indicating how each partition is coded, one or more reference frames (and reference frame lists) for each inter-coded block, and other information for decoding the coded 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 may be either an entire picture or a region of a picture.
[0051] The intra prediction unit 303 may form a prediction block from spatially adjacent blocks, e.g., using an intra prediction mode received in the bitstream. The inverse quantization unit 304 inverse quantizes, or dequantizes, the quantized video block coefficients provided in the bitstream and decoded by the entropy decoding unit 301. The inverse transform unit 305 applies an inverse transform.
[0052] Reconstruction unit 306 may obtain a decoded block, for example, by summing the residual block with a corresponding prediction block generated by motion compensation unit 302 or intra prediction unit 303. If desired, a deblocking filter may be applied to filter the decoded block to remove blockiness artifacts. The decoded video block is stored in buffer 307 to provide reference blocks for subsequent motion compensation / intra prediction, and to generate decoded video for presentation on a display device.
[0053] Some exemplary embodiments of the present disclosure are described in detail below. It should be understood that section headings are used herein for ease of understanding and are not intended to limit the embodiments disclosed in a section to that section alone. Furthermore, although certain embodiments are described with reference to Versatile Video Coding or other specific video codecs, the disclosed techniques are applicable to other video coding techniques. Furthermore, although some embodiments describe video coding steps in detail, it should be understood that the corresponding step of decoding, which undoes the coding, is performed by a decoder. Furthermore, the term video processing encompasses video coding or compression, video decoding or decompression, and video transcoding, which represents video pixels from one compressed format to another compressed format or at a different compressed bit rate. 1. Overview The present disclosure relates to video / image coding techniques. In particular, the present disclosure relates to affine prediction in video / image coding. The present disclosure may be applied to existing video coding standards such as HEVC and VVC, and may also be applied to future video / image coding standards and video / image codecs. 2. Introduction Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, ISO / IEC developed MPEG-1 and MPEG-4 Visual, and the two organizations jointly developed H.262 / MPEG-2 Video, H.264 / MPEG-4 AVC (Advanced Video Coding), and H.265 / HEVC (H.265 / HEVC, https: / / www.itu.int / rec / T-REC-H.265) standards. Video coding standards after H.262 are based on a hybrid video coding structure in which temporal prediction + transform coding is employed. In order to explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, many new methods have been adopted by JVET and put into reference software named JEM (Joint Exploration Model) (JEM-7.0: https: / / jvet.hhi.fraunhofer.de / svn / svn_HMJEMSoftware / tags / HM-16.6-JEM-7.0) (VTM-2.0.1: https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-2.0.1.) In April 2018, JVET (Joint Video Expert Team) was established between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) to work on the VVC standard, which targets a 50% bitrate reduction compared to HEVC. The latest version of the VVC draft, Versatile Video Coding (Draft 2), can be found at: http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 11_Ljubljana / wg11 / JVET-K1001-v7.zip. The latest reference software for VVC, named VTM, can be found at: https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-2.1. Sub-block-based prediction was first introduced into video coding standards by HEVC Annex I (3D-HEVC) (H.265 / HEVC, https: / / www.itu.int / rec / T-REC-H.265). In sub-block-based prediction, a block such as a coding unit (CU) or a prediction unit (PU) is divided into several non-overlapping sub-blocks. Different sub-blocks are assigned different motion information such as reference indexes or motion vectors (MV), and motion compensation (MC) is performed for each sub-block separately. Figure 4 shows the concept of sub-block-based prediction. To explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, many new methods (J. Chen, E. Alshina, GJ Sullivan, J.-R. Ohm, J. Boyce, “Algorithm description of Joint Exploration Test Model 7 (JEM7) ,” JVET-G1001, Aug. 2017) have been adopted by JVET and put into reference software named Joint Exploration Model (JEM) (JEM-7.0: https: / / jvet.hhi.fraunhofer.de / svn / svn_HMJEMSoftware / tags / HM-16.6-JEM-7.0). In JEM, sub-block-based prediction is adopted in several coding tools, such as affine prediction, ATMVP (Alternative temporal motion vector prediction), STMVP (Spatial-Temporal motion vector prediction), BIO (Bi-directional Optical flow), and FRUC (Frame-Rate Up Conversion). Affine prediction is also adopted in VVC. 2.1 Affine Prediction In HEVC, only a translational motion model is applied for motion compensation prediction (MCP). Meanwhile, in the real world, various motions exist, such as zoom-in / zoom-out, rotation, perspective motion, and other irregular motions. In VVC, a simplified affine transformation motion compensation prediction is applied. As shown in Fig. 5a-5b, the affine motion field of a block is described by two (for the four-parameter affine model) or three (for the six-parameter affine model) control point motion vectors. The motion vector field (MVF) of a block is described by the four-parameter affine model in equation (1) (where the four parameters are defined as the variables a, b, e, f) and the six-parameter affine model in equation (2) (where the four parameters are defined as the variables a, b, c, d, e, f), respectively, by the following equations:
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
[0054] 5. Embodiments A history-parameter table (HPT) is established. An entry in the HPT stores affine parameters a, b, c, and d, each of which is represented as a 16-bit signed integer. Entries in the HPT are classified by reference list and reference index. Each reference list is supported in the HPT, and up to five reference indices are supported for each reference list. The category of the HPT (denoted as HPTCat) is calculated as follows: HPTCat(RefList,RefIdx)=5×RefList+min(RefIdx,4) Here, RefList and RefIdx represent the reference picture list (0 or 1) and the corresponding reference index, respectively. For each category, up to two entries can be stored. Therefore, there are a total of 20 entries in the HPT. At the beginning of each CTU row, the number of entries for each category is initialized as zero. Reference List RefList cur and RefIdx cur After decoding an affine coded CU with category HPTCat(RefList cur ,RefIdx cur ) to update entries in the A history-parameter-based affine candidate (HPAC) is derived from the neighboring 4x4 blocks, denoted by A0, A1, B0, B1 or B2 in Fig. 29, and the affine parameter set stored in the corresponding entry in the HPT. Formally, the MV of the current block at position (x,y) is calculated as follows:
number
[0055] Figure 29 shows an example of how to derive HPAC from block A0. The affine parameters {a0, b0, c0, d0} are the affine parameters of category HPTIdx(RefList A0 ,refIdx0 A0 ) is copied directly from one entry in the affine HPT. The affine parameters from the HPT are used to derive the CPMV for the merge HPAC or AMVP HPAC, with the center position of A0 as the base position and the MV of block A0 as the base MV. The HPAC can be put into a subblock-based merge candidate list, an affine AMVP candidate list. In response to the new HPAC, the size of the subblock-based merge candidate list is increased from 5 to 9.
[0056] 30 shows a flowchart of a method 3000 for video processing according to an embodiment of the present disclosure. The method 3000 is performed during conversion between video units of a video and a bitstream of a video.
[0057] In block 3010, during conversion between a video unit of a video and a bitstream of the video unit, an affine model for non-adjacent affine motion candidates of the video unit is derived based on the set of motion vectors. The affine model includes a set of affine parameters.
[0058] At block 3020, the transformation is performed based on an affine model. In some embodiments, the transformation may include encoding the video units into a bitstream. Alternatively or additionally, the transformation may include decoding the video units from the bitstream.
[0059] The method 3000 allows deriving affine models for non-adjacent affine motion candidates, which can improve coding efficiency and performance.
[0060] In some embodiments, the motion vector set is a corner location motion vector (CPMV). The motion vector set may be derived from at least one non-adjacent block of a video unit. In one example, assume that MV0 and / or MV1 and / or MV2 are CPMVs (which may be fetched or derived from at least one non-adjacent block) used to derive at least one affine model in the non-adjacent affine construction candidate.
[0061] In some embodiments, the affine parameter set includes at least one of the following affine parameters:
number
[0062] In some embodiments, the first block and the second block are in the same block row. Alternatively or additionally, the first block and the third block are in the same block column. In some embodiments, at least one of the first block, the second block, or the third block is a non-adjacent block of the current block of the video unit.
[0063] In some embodiments, the affine model is derived based on a shift operation. In other words, a division operation may be replaced with a shift. For example, the affine parameter set includes at least one of the following affine parameters:
number
[0064] In some embodiments, PW=2 WB Or PH=2 HBis satisfied, the division operation for deriving the affine model is replaced with a shift operation, where WB=log2(PW), HB=log2(PH), P represents the calculation precision and is an integer, PW represents the first distance between the first block and the second block, PH represents the second distance between the first block and the third block, WB represents a variable derived based on PW, and HB represents a variable derived based on PH.
[0065] In some embodiments, the affine model is derived based on a lookup table. In other words, the lookup table may be used to replace a division operation when deriving an affine model for a non-adjacent affine construction candidate. In some embodiments, PW is PW=2 WB or pH is not PH=2. HB and (b) are not of the form: where WB=log2(PW), HB=log2(PH), where P is the calculation precision and is an integer.
[0066] In some embodiments, the affine parameter set includes at least one of the following affine parameters:
number
[0067] In some embodiments, WI is derived based on PW. For example, WI is equal to PW. Alternatively or additionally, HI is derived based on PH. For example, HI is equal to PH. In this case, PW=2 WB, or pH=2 HB .
[0068] In some embodiments, the lookup table is at least partially shared with another coding tool, for example, the other coding tool is a cross-component linear model (CCLM).
[0069] In some embodiments, the affine model is derived based on a first algorithm used to replace a division operation in another coding tool. WB If the pH is not in the form of PH=2, HB If the model is not of the form:
[0070] According to a further embodiment of the present disclosure, there is provided a non-transitory computer-readable recording medium storing a bitstream of a video generated by a method performed by an apparatus for video processing, the method including: deriving an affine model for non-adjacent affine motion candidates of a video unit of the video based on a set of motion vectors, the affine model including a set of affine parameters; and generating a bitstream based on first and second motion candidates.
[0071] According to yet another embodiment of the present disclosure, a method for storing a bitstream of a video is provided, the method including: deriving an affine model for non-adjacent affine motion candidates of a video unit of the video based on a set of motion vectors, the affine model including a set of affine parameters, generating a bitstream based on first and second motion candidates, and storing the bitstream in a non-transitory computer-readable recording medium.
[0072] Implementations of the present disclosure can be described in terms of the following clauses, the features of which can be combined in any reasonable manner.
[0073] Clause 1. A method for video processing, comprising: during conversion between a video unit of a video and a bitstream of the video unit, deriving an affine model for non-adjacent affine motion candidates of the video unit based on a set of motion vectors, the affine model including a set of affine parameters, and performing the conversion based on the affine model.
[0074] Clause 2. The method of clause 1, wherein the set of motion vectors are corner location motion vectors (CPMVs) and the set of motion vectors are derived from at least one non-adjacent block of the video unit.
[0075] 3. The affine parameter set includes at least one of the following affine parameters:
number
[0076] Clause 4. The method of clause 3, wherein the first block and the second block are in the same block row, and / or the first block and the third block are in the same block column.
[0077] Clause 5. The method of clause 3, wherein at least one of the first block, the second block, or the third block is a non-adjacent block of the current block of the video unit.
[0078] Clause 6. The method of clause 1, wherein the affine model is derived based on a shift operation.
[0079] Clause 7. The affine parameter set includes at least one of the following affine parameters:
number
[0080] Section 8.PW=2 WB , or pH=2 HB where WB=log2(PW), HB=log2(PH), P represents a calculation precision and is an integer, and the division operations for deriving the affine model are replaced by the shift operations if at least one of the following conditions is satisfied:
[0081] Clause 9. The method of clause 1, wherein the affine model is derived based on a look-up table.
[0082] Item 10. PW is PW=2 WB or pH is not PH=2. HB10. The method of claim 9, wherein if at least one of the following conditions is satisfied: WB=log2(PW), HB=log2(PH), P represents a calculation precision and is an integer, PW represents a first distance between a first block and a second block, PH represents a second distance between the first block and a third block, WB represents a variable derived based on PW, and HB represents a variable derived based on PH.
[0083] Clause 11. The affine parameter set includes at least one of the following affine parameters:
number
[0084] Item 12. WI is derived based on PW and / or HI is derived based on PH, where PW=2 WB , or pH=2 HB 12. The method according to claim 11.
[0085] Clause 13. The method of clause 12, wherein WI is equal to PW and / or HI is equal to PH.
[0086] Clause 14. The method of clause 9, wherein the lookup table is at least partially shared with another coding tool.
[0087] Clause 15. The method of clause 14, wherein the other coding tool is a cross-component linear model (CCLM).
[0088] Clause 16. The method of clause 1, wherein the affine model is derived based on a first algorithm used to replace a division operation in another coding tool.
[0089] 17. PW is PW=2 WB If the pH is not in the form of PH=2, HB 17. The method of claim 16, wherein if the first algorithm is not of the form:
[0090] Clause 18. An apparatus for video processing comprising a processor and a non-transitory memory having instructions thereon, the instructions, when executed by the processor, causing the processor to perform a method according to any one of clauses 1 to 17.
[0091] Clause 19. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform the method of any one of clauses 1 to 17.
[0092] Clause 20. A non-transitory computer-readable recording medium storing a bitstream of video generated by a method performed by an apparatus for video processing, the method including: deriving an affine model for non-adjacent affine motion candidates of a video unit of the video based on a set of motion vectors, the affine model including a set of affine parameters; and generating the bitstream based on the first motion candidate and a second motion candidate.
[0093] Clause 21. A method for storing a bitstream of a video, comprising: deriving an affine model for non-adjacent affine motion candidates of a video unit of the video based on a set of motion vectors, the affine model including a set of affine parameters; generating the bitstream based on the first motion candidate and a second motion candidate; and storing the bitstream in a non-transitory computer-readable recording medium.
[0094] Exemplary Devices 31 illustrates a block diagram of a computing device 3100 in which various embodiments of the disclosure may be implemented. The computing device 3100 may be implemented as or included in the source device 110 (or video encoder 114 or 200) or the destination device 120 (or video decoder 124 or 300).
[0095] It should be understood that the computing device 3100 shown in FIG. 31 is for illustrative purposes only and is not intended to suggest any limitation on the functionality and scope of the embodiments of the present disclosure.
[0096] 31, the computing device 3100 includes a general-purpose computing device 3100. The computing device 3100 may include at least one or more processors or processing units 3110, a memory 3120, a storage unit 3130, one or more communication units 3140, one or more input devices 3150, and one or more output devices 3160.
[0097] In some embodiments, the computing device 3100 may be implemented as any user terminal or server terminal having computing capabilities. The server terminal may be a server provided by a service provider, a large-scale computing device, etc. The user terminal may be, for example, any type of mobile, fixed, or portable terminal, including a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device, or any combination thereof, further including accessories and peripherals of these devices, or any combination thereof. It is contemplated that the computing device 3100 may support any type of interface to a user, such as "wearable" circuitry.
[0098] The processing unit 3110 may be a physical processor or a virtual processor and may perform various processes based on programs stored in the memory 3120. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to increase the parallel processing capabilities of the computing device 3100. The processing unit 3110 may also be referred to as a central processing unit (CPU), a microprocessor, a controller, or a microcontroller.
[0099] The computing device 3100 typically includes a variety of computer storage media. Such media may be any media accessible by the computing device 3100, including but not limited to volatile and non-volatile media, or removable and non-removable media. The memory 3120 may be volatile memory (e.g., registers, cache, Random Access Memory (RAM)), non-volatile memory (Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), or flash memory, etc.), or any combination thereof. The storage unit 3130 may be any removable or non-removable media and may include machine-readable media such as memory, flash memory drives, magnetic disks, or other media that may be used to store information and / or data and that are accessible within the computing device 3100.
[0100] The computing device 3100 may further include other removable / non-removable, volatile / non-volatile memory media. Although not shown in Figure 31, it is possible to provide a magnetic disk drive for reading from and / or writing to a removable, non-volatile magnetic disk, and an optical disk drive for reading from and / or writing to a removable, non-volatile optical disk. In such a case, each drive may be connected to a bus (not shown) via one or more data media interfaces.
[0101] The communication unit 3140 communicates with further computing devices via a communication medium. Furthermore, the functionality of the components in the computing device 3100 may be implemented by a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the computing device 3100 may operate in a networked environment using logical connections with one or more other servers, networked personal computers (PCs), or even more general network nodes.
[0102] The input device 3150 may be one or more of a variety of input devices such as a mouse, a keyboard, a tracking ball, a voice input device, etc. The output device 3160 may be one or more of a variety of output devices such as a display, a speaker, a printer, etc. The communication unit 3140 allows the computing device 3100 to further communicate with one or more external devices (not shown), such as a storage device and a display device, with one or more devices that allow a user to interact with the computing device 3100, or with any device (such as a network card, a modem, etc.) that allows the computing device 3100 to communicate with one or more other computing devices as needed. Such communication may be performed via an input / output (I / O) interface (not shown).
[0103] In some embodiments, instead of being integrated into a single device, some or all of the components of the computing device 3100 may be located in a cloud computing architecture. In a cloud computing architecture, the components may be provided remotely and may cooperate to implement the functionality described in this disclosure. In some embodiments, cloud computing provides computing, software, data access and storage services without the end user needing to be aware of the physical location or configuration of the systems or hardware providing these services. In various embodiments, cloud computing provides services over a wide area network (such as the Internet) using appropriate protocols. For example, a cloud computing provider provides applications accessible through a web browser or any other computing component over the wide area network. The software or components of the cloud computing architecture and corresponding data may be stored on a server located at a remote location. The computing resources of the cloud computing environment may be consolidated or distributed across locations in a remote data center. The cloud computing infrastructure may act as a single access point for users, but provide services through a shared data center. Thus, a cloud computing architecture may be used to provide the components and functionality described herein from a remote service provider. Alternatively, they may be provided from a traditional server or installed directly or otherwise on a client device.
[0104] The computing device 3100 may be used to perform video encoding / decoding in embodiments of the present disclosure. The memory 3120 may include one or more video coding modules 3125 having one or more program instructions. These modules are accessible and executable by the processing unit 3110 to perform the functions of the various embodiments described herein.
[0105] In an example embodiment performing video encoding, the input device 3150 may receive video data as input 3170 to be encoded. The video data may be processed, for example, by the video coding module 3125 to generate an encoded bitstream. The encoded bitstream may be provided as output 3180 via the output device 3160.
[0106] In an example embodiment performing video decoding, the input device 3150 may receive an encoded bitstream as an input 3170. The encoded bitstream may be processed, for example, by the video coding module 3125 to generate decoded video data. The decoded video data may be provided as output 3180 via the output device 3160.
[0107] Although the present disclosure has been particularly shown and described with reference 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 the present application. Thus, the foregoing description of the embodiments of the present application is not intended to be limiting.
Claims
1. deriving an affine model for non-adjacent affine motion candidates of the video unit based on a set of motion vectors during conversion between a video unit of a video and a bitstream of the video unit, the affine model including a set of affine parameters; performing the transformation based on the affine model; and 13. A method for video processing comprising:
2. The set of motion vectors are corner location motion vectors (CPMVs); and The method of claim 1 , wherein the set of motion vectors is derived from at least one non-adjacent block of the video unit.
3. The set of affine parameters includes at least one of the following affine parameters: [0010] where a, b, c, d represent affine parameters, pw represents a first distance between a first block and a second block, ph represents a second distance between the first block and a third block, and mv 0 represents a first motion vector derived from the first block, mv 1 represents a second motion vector derived from the second block, and mv 2 The method of claim 1 , wherein v represents a third motion vector derived from the third block, v represents the vertical direction, and h represents the horizontal direction.
4. the first block and the second block are in the same block row; and / or The method of claim 3 , wherein the first block and the third block are in the same block column.
5. 4. The method of claim 3, wherein at least one of the first block, the second block, or the third block is a non-adjacent block of a current block of the video unit.
6. The method of claim 1 , wherein the affine model is derived based on a shift operation.
7. The set of affine parameters includes at least one of the following affine parameters: [0025] where a, b, c, and d are affine parameters, and WB = log 2 (PW), HB=log 2 (PH), P represents the calculation precision and is an integer, mv 0 represents a first motion vector derived from the first block, mv 1 represents a second motion vector derived from the second block, and mv 2 The method of claim 6 , wherein v represents a third motion vector derived from the third block, v represents the vertical direction, h represents the horizontal direction, W represents the width, and H represents the height.
8. PW=2 WB , or pH=2 HB is satisfied, the division operations for deriving the affine model are replaced by the shift operations; Here, WB=log 2 (PW), HB=log 2 7. The method of claim 6, wherein (PH), P represents a calculation precision and is an integer.
9. The method of claim 1 , wherein the affine model is derived based on a look-up table.
10. PW is PW=2 WB or the pH is not in the form of PH=2 HB and if at least one of the following conditions is satisfied: Here, WB=log 2 (PW), HB=log 2 10. The method of claim 9, wherein (PH), P represents a calculation precision and is an integer, PW represents a first distance between a first block and a second block, PH represents a second distance between the first block and a third block, WB represents a variable derived based on PW, and HB represents a variable derived based on PH.
11. The set of affine parameters includes at least one of the following affine parameters: [0030] where a, b, c, and d are affine parameters, T is the lookup table, B is an integer representing the precision, and mv 0 represents a first motion vector derived from the first block, mv 1 represents a second motion vector derived from the second block, and mv 2 The method of claim 9 , wherein WI and HI represent a third motion vector derived from a third block, and WI and HI are parameters.
12. WI is derived based on PW, and / or HI is derived based on PH, Here, PW=2 WB , or pH=2 HB The method of claim 11, wherein
13. WI is equal to PW, and / or The method of claim 12, wherein HI is equal to PH.
14. The method of claim 9 , wherein the lookup table is at least partially shared with another coding tool.
15. The method of claim 14 , wherein the another coding tool is a cross-component linear model (CCLM).
16. The method of claim 1 , wherein the affine model is derived based on a first algorithm used to replace division operations in another coding tool.
17. PW is PW=2 WB If the pH is not in the form of PH=2, HB 17. The method of claim 16, wherein if x is not of the form:
18. An apparatus for video processing comprising a processor and a non-transitory memory having instructions thereon, the instructions, when executed by the processor, causing the processor to perform a method according to any one of claims 1 to 17.
19. A non-transitory computer readable storage medium storing instructions for causing a processor to perform the method of any one of claims 1 to 17.
20. 1. A non-transitory computer-readable recording medium storing a bitstream of video generated by a method performed by an apparatus for video processing, the method comprising: deriving an affine model for non-adjacent affine motion candidates for a video unit of the video based on a set of motion vectors, the affine model including a set of affine parameters; generating the bitstream based on a first motion candidate and a second motion candidate; A non-transitory computer-readable recording medium comprising:
21. 1. A method for storing a video bitstream, comprising: deriving an affine model for non-adjacent affine motion candidates for a video unit of the video based on a set of motion vectors, the affine model including a set of affine parameters; generating the bitstream based on a first motion candidate and a second motion candidate; storing the bitstream on a non-transitory computer readable recording medium; A method for storing a bitstream of a video, comprising: