Method and device for candidate derivation for affine merge modes in video coding
By constructing motion vector candidates from non-adjacent blocks and using control point motion vectors, the method addresses inefficiencies in affine motion prediction, enhancing video coding efficiency and reducing data requirements.
Patent Information
- Application Number
- JP2024529446
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-23
- Filing Date
- 2022-11-23
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2042-11-23
AI Technical Summary
Existing video coding standards face challenges in efficiently compressing video data while maintaining quality, particularly in deriving accurate motion vector candidates for affine motion prediction modes, which leads to increased data requirements for motion vectors.
The method involves constructing motion vector candidates from multiple non-adjacent blocks by jointly or independently scanning different scanning areas at various distances, obtaining control point motion vectors based on these candidates, and incorporating them into candidate lists for improved affine motion prediction.
This approach enhances the accuracy of motion vector derivation, reducing the data required to represent motion information and improving the efficiency of video coding processes.
Smart Images

Figure 2024540508000001_ABST
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63 / 282,641, entitled “Methods and Devices for Candidate Derivation for Affine Merge Mode in Video Coding,” filed November 23, 2021, which is incorporated by reference in its entirety for all purposes. FIELD This disclosure relates to video coding and compression, and more particularly, but not exclusively, to methods and apparatus for improving affine merge candidate derivation for affine motion prediction modes in a video encoding or decoding process. [Background technology]
[0002] Various video coding techniques may be used to compress video data. Video coding is performed according to one or more video coding standards. For example, currently, some known video coding standards include Versatile Video Coding (VVC), High Efficiency Video Coding (HEVC, also known as H.265 or MPEG-H Part 2), and Advanced Video Coding (AVC, also known as H.264 or MPEG-4 Part 10), jointly developed by ISO / IEC MPEG and ITU-T VECG. AOMediaVideo1 (AV1) was developed by the Alliance for Open Media (AOM) as a successor to its predecessor standard VP9. Audio Video Coding (AVS), referring to digital audio and digital video compression standards, is another video compression standard series developed by the Chinese Audio and Video Coding Standard Workgroup. Most of the existing video coding standards are built on the well-known hybrid video coding framework, i.e., using block-based prediction methods (e.g., inter-prediction, intra-prediction) to reduce the redundancy present in a video image or sequence, and using transform coding to reduce the energy of the prediction error. An important goal of video coding techniques is to compress video data into a format that uses a lower bit rate while avoiding or minimizing the degradation of video quality.
[0003] The first generation AVS standard includes the Chinese national standard "Information Technology, Advanced Audio Video Coding, Part 2: Video" (known as AVS1) and "Information Technology, Advanced Audio Video Coding Part 16: Radio Television Video" (known as AVS+). It can provide about 50% bitrate saving at the same perceptual quality compared with the MPEG-2 standard. The AVS1 standard video part was promulgated as the Chinese national standard in February 2006. The second generation AVS standard includes the Chinese national standard series "Information Technology, Efficient Multimedia Coding" (known as AVS2), which is mainly targeted in the transmission of extra HD TV programs. The coding efficiency of AVS2 is twice that of AVS+. In May 2016, AVS2 was issued as the Chinese national standard. Meanwhile, the AVS2 standard video part was submitted by the Institute of Electrical and Electronics Engineers (IEEE) as one international standard for applications. The AVS3 standard is a new generation video coding standard for UHD video applications that aims to exceed the coding efficiency of the latest international standard HEVC. In March 2019, the 68th AVS meeting finalized the AVS3-P2 baseline, which provides approximately 30% bitrate savings over the HEVC standard. Currently, there is one reference software, called the High Performance Model (HPM), which is maintained by the AVS group to certify the reference implementation of the AVS3 standard. Summary of the Invention [Problem to be solved by the invention]
[0004] This disclosure provides examples of techniques related to improving motion vector candidate derivation for a motion prediction mode in a video encoding or decoding process. [Means for solving the problem]
[0005] According to a first aspect of the present disclosure, a video decoding method is provided. The method may include obtaining one or more constructed motion vector (MV) candidates from multiple non-adjacent blocks to a current block by jointly or independently scanning multiple scanning areas at one or more scanning distances, where one scanning distance may indicate a number of blocks away from one side of the current block. Furthermore, the method may include obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more constructed MV candidates.
[0006] According to a second aspect of the present disclosure, a video encoding method is provided. The method may include determining one or more constructed motion vector (MV) candidates from a plurality of non-adjacent blocks to a current block by jointly or independently scanning a plurality of scanning areas at one or more scanning distances, where one scanning distance may indicate a number of blocks away from one side of the current block. Furthermore, the method may include obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more constructed MV candidates.
[0007] According to a third aspect of the present disclosure, a video decoding method is provided. The method may include obtaining one or more MV candidates from one or more candidate lists according to a predetermined order, where the one or more candidate lists may include an affine advanced motion vector prediction (AMVP) candidate list, a regular merge candidate list, and / or an affine merge candidate list, and the one or more MV candidates are from a plurality of neighboring blocks to a current block. Further, the method may include obtaining one or more CPMVs for the current block based on the one or more MV candidates.
[0008] According to a fourth aspect of the present disclosure, a video encoding method is provided. The method may include determining one or more MV candidates from a plurality of neighboring blocks to a current block, and inserting the one or more MV candidates into one or more candidate lists according to a predetermined order, where the one or more candidate lists may include an AMVP candidate list, a regular merge candidate list, and / or an affine merge candidate list. Furthermore, the method may include obtaining one or more CPMVs for the current block based on the one or more MV candidates.
[0009] According to a fifth aspect of the present disclosure, there is provided a video decoding apparatus. The apparatus includes one or more processors and a memory configured to store instructions executable by the one or more processors. Further, the one or more processors are configured to perform a method according to the first or third aspect when the instructions are executed.
[0010] According to a sixth aspect of the present disclosure, there is provided a video encoding apparatus, the apparatus including one or more processors and a memory configured to store instructions executable by the one or more processors, the one or more processors being further configured to perform a method according to the second or fourth aspect when the instructions are executed.
[0011] According to a seventh aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium for storing computer-executable instructions which, when executed by one or more computer processors, cause the one or more computer processors to receive a bitstream and perform a method according to the first or third aspect.
[0012] According to an eighth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium for storing computer-executable instructions which, when executed by one or more computer processors, cause the one or more computer processors to perform a method according to the second or fourth aspect to encode a current block into a bitstream and transmit the bitstream.
[0013] A more particular description of the embodiments of the present disclosure will be made by reference to specific embodiments illustrated in the accompanying drawings, in which the embodiments will be described and explained with additional specificity and detail, given that the drawings are only representative of some embodiments and therefore should not be considered limiting in scope. [Brief description of the drawings]
[0014] [Figure 1A] 1 is a block diagram illustrating a system for encoding and decoding video blocks in accordance with some embodiments of the present disclosure. [Figure 1B] FIG. 2 is a block diagram of an encoder according to some embodiments of the present disclosure. [Figure 1C] 2 is a block diagram illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes, in accordance with some embodiments of the present disclosure. [Figure 1D] 2 is a block diagram illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes, in accordance with some embodiments of the present disclosure. [Figure 1E] 2 is a block diagram illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes, in accordance with some embodiments of the present disclosure. [Figure 1F] 2 is a block diagram illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes, in accordance with some embodiments of the present disclosure. [Diagram 2]FIG. 2 is a block diagram of a decoder in accordance with some embodiments of the present disclosure. [Figure 3A] 1 is a diagram illustrating block partitions within a multi-type tree structure in accordance with some embodiments of the present disclosure. [Figure 3B] 1 is a diagram illustrating block partitions within a multi-type tree structure in accordance with some embodiments of the present disclosure. [Figure 3C] 1 is a diagram illustrating block partitions within a multi-type tree structure in accordance with some embodiments of the present disclosure. [Figure 3D] 1 is a diagram illustrating block partitions within a multi-type tree structure in accordance with some embodiments of the present disclosure. [Figure 3E] 1 is a diagram illustrating block partitions within a multi-type tree structure in accordance with some embodiments of the present disclosure. [Figure 4A] FIG. 2 illustrates an example four-parameter affine model, in accordance with some embodiments of the present disclosure. [Figure 4B] FIG. 2 illustrates an example four-parameter affine model, in accordance with some embodiments of the present disclosure. [Figure 4C] FIG. 2 is a diagram illustrating positions of spatial merge candidates, according to some embodiments of the present disclosure. [Figure 4D] 1 is a diagram illustrating candidate pairs considered for redundancy check of spatial merge candidates, according to some embodiments of the present disclosure. [Figure 4E] 4 is a diagram illustrating motion vector scaling for temporal merging candidates in accordance with some embodiments of the present disclosure. [Figure 4F] FIG. 13 illustrates candidate positions for temporal merge candidates C0 and C1, according to some embodiments of the present disclosure. [Diagram 5] FIG. 2 illustrates an example six-parameter affine model, in accordance with some embodiments of the present disclosure. [Figure 6] 4 is a diagram illustrating adjacent neighboring blocks for inherited affine merging candidates, in accordance with some embodiments of the present disclosure. [Figure 7]4 is a diagram illustrating adjacent neighboring blocks for constructing affine merge candidates, in accordance with some embodiments of the present disclosure. [Figure 8] 4 is a diagram illustrating non-adjacent blocks for inherited affine merging candidates, in accordance with some embodiments of the present disclosure. [Figure 9] 4A-4C are diagrams illustrating the derivation of constructed affine merge candidates using neighboring blocks, in accordance with some embodiments of the present disclosure. [Figure 10] FIG. 2 illustrates vertical scanning of non-adjacent blocks in accordance with some embodiments of the present disclosure. [Figure 11] 4A-4C are diagrams illustrating horizontal scanning of non-adjacent blocks in accordance with some embodiments of the present disclosure. [Figure 12] FIG. 2 illustrates combined vertical and horizontal scanning of non-adjacent blocks in accordance with some embodiments of the present disclosure. [Figure 13A] 1 is a diagram illustrating a neighboring block having the same size as a current block, in accordance with some embodiments of the present disclosure. [Figure 13B] 1 is a diagram illustrating a neighboring block having a different size than a current block, in accordance with some embodiments of the present disclosure. [Figure 14A] A figure illustrating an example in which the bottom-left or top-right block of the bottom-most or right-most block in the previous distance is used as the bottom-most or right-most block of the current distance, according to some embodiments of the present disclosure. [Figure 14B] A figure illustrating an example in which the left or top block of the bottom-most or right-most block in the previous distance is used as the bottom-most or right-most block of the current distance, according to some embodiments of the present disclosure. [Figure 15A] FIG. 13 illustrates scanning positions at bottom-left and top-right positions used for top and left non-adjacent blocks according to some embodiments of the present disclosure. [Figure 15B] FIG. 13 illustrates a scanning position at the bottom right position used for both the top and left non-adjacent blocks, according to some embodiments of the present disclosure. [Figure 15C] FIG. 13 illustrates a scanning position at the bottom left position used for both the top and left non-adjacent blocks in accordance with some embodiments of the present disclosure. [Figure 15D] FIG. 13 illustrates a scanning position at the right-top position used for both the top and left non-adjacent blocks according to some embodiments of the present disclosure. [Figure 16] FIG. 10 illustrates a simplified scanning process for deriving construction merge candidates, according to some embodiments of the present disclosure. [Figure 17A] FIG. 10 illustrates an example of spatial neighborhood for deriving inherited affine merge candidates, according to some embodiments of the present disclosure. [Figure 17B] FIG. 10 illustrates an example of spatial neighborhood deriving constructed affine merge candidates, according to some embodiments of the present disclosure. [Figure 18] 1 illustrates an example of an inheritance-based derivation method for deriving candidate affine constructions, according to some embodiments of the present disclosure. [Figure 19] FIG. 1 illustrates an exemplary computing environment coupled with a user interface in accordance with some embodiments of the present disclosure. [Figure 20] 1 is a flowchart illustrating a method for video decoding according to some embodiments of the present disclosure. [Figure 21] 21 is a flowchart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG. 20 according to some embodiments of the present disclosure. [Figure 22] 1 is a flowchart illustrating a method for video decoding according to some embodiments of the present disclosure. [Figure 23] 23 is a flowchart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG. 22 according to some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Reference will now be made in detail to certain implementations, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details are set forth to aid in understanding the subject matter presented herein. However, it will be apparent to one skilled in the art that various alternatives may be used. For example, it will be apparent to one skilled in the art that the subject matter presented herein may be implemented on many types of electronic devices having digital video capabilities.
[0016] The terms used in the disclosure are adopted only for the purpose of describing certain embodiments and are not intended to limit the disclosure. The singular forms "a / an", "said" and "the" in the disclosure and the appended claims are intended to include the plural forms unless otherwise clearly indicated throughout the disclosure. Also, the term "and / or" used in the disclosure will be understood to refer to and include one or any or all possible combinations of the associated items listed.
[0017] References throughout this specification to "one embodiment," "an embodiment," "an example," "some embodiments," "some examples," or similar language mean that a particular feature, structure, or characteristic described is included in at least one embodiment or example. A feature, structure, element, or characteristic described in connection with one or some embodiments is applicable to other embodiments, unless expressly specified otherwise.
[0018] Throughout the disclosure, the terms "first," "second," "third," etc. are all used solely as nomenclature to refer to related elements, e.g., devices, components, compositions, steps, etc., without implying any spatial or chronological order, unless clearly specified otherwise. For example, a "first device" and a "second device" may refer to two separately formed devices, or two parts, components, or operating states of the same device, and may be arbitrarily named.
[0019] The terms "module," "sub-module," "circuit," "sub-circuit," "circuitry," "sub-circuitry," "unit," or "sub-unit" may include memory (shared, dedicated, or group) that stores code or instructions that can be executed by one or more processors. A module may include one or more circuits with or without stored code or instructions. A module or circuit may include one or more components that are directly or indirectly connected. The components may be physically attached or located adjacent to each other, or may not be physically attached or located.
[0020] As used herein, the terms "if" or "when" may be understood to mean "upon" or "in response to," depending on the context. When these terms appear in a claim, they may not indicate that the associated limitation or feature is conditional or optional. For example, a method may include steps where: i) function or action X' is performed when or if condition X exists; and ii) function or action Y' is performed when or if condition Y exists. A method may be implemented with both the ability to perform function or action X' and the ability to perform function or action Y'. Thus, functions X' and Y' may both be performed at different times for multiple executions of the method.
[0021] A unit or module may be implemented purely by software, purely by hardware, or by a combination of hardware and software. In a purely software implementation, for example, a unit or module may include functionally related code blocks or software components that are directly or indirectly linked together to perform a particular function.
[0022] 1A is a block diagram illustrating an example system 10 for encoding and decoding video blocks in parallel according to some implementations of the present disclosure. As shown in FIG. 1A, the system 10 includes a source device 12 that generates and encodes video data to be subsequently decoded by a destination device 14. The source device 12 and the destination device 14 may include any of a wide variety of electronic devices, including desktop or laptop computers, tablet computers, smartphones, set-top boxes, digital televisions, cameras, display devices, digital media players, video gaming consoles or video streaming devices, etc. In some implementations, the source device 12 and the destination device 14 are equipped with wireless communication capabilities.
[0023] In some implementations, the destination device 14 may receive the encoded video data to be decoded via a link 16. The link 16 may include any type of communication medium or device capable of moving the encoded video data from the source device 12 to the destination device 14. In one embodiment, the link 16 may include a communication medium to enable the source device 12 to transmit the encoded video data directly to the destination device 14 in real time. The encoded video data may be modulated according to a communication standard, such as a wireless communication protocol, and transmitted to the destination device 14. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other equipment that may be useful to facilitate communication from the source device 12 to the destination device 14.
[0024] In some other implementations, the encoded video data may be transmitted from the output interface 22 to the storage device 32. The encoded video data in the storage device 32 may then be accessed by the destination device 14 via the input interface 28. The storage device 32 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a digital versatile disc (DVD), a compact disc read-only memory (CD-ROM), flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing the encoded video data. In further embodiments, the storage device 32 may correspond to a file server or another intermediate storage device that may hold the encoded video data generated by the source device 12. The destination device 14 may access the stored video data from the storage device 32 via streaming or downloading. The file server may be any type of computer capable of storing the encoded video data and transmitting the encoded video data to the destination device 14. Exemplary file servers include web servers (e.g., for websites), file transfer protocol (FTP) servers, network attached storage (NAS) devices, or local disk drives. Destination device 14 may access the encoded video data through any standard data connection, including a wireless channel (e.g., a Wireless Fidelity (Wi-Fi) connection), a wired connection (e.g., a Digital Subscriber Line (DSL), cable modem, etc.), or a combination of both that is suitable for accessing encoded video data stored in a file server. Transmission of the encoded video data from storage device 32 may be a streaming transmission, a download transmission, or a combination of both.
[0025] As shown in FIG. 1A, source device 12 includes video source 18, video encoder 20, and output interface 22. Video source 18 may include sources such as a video supplement device, e.g., a video camera, a video archive containing previously captured video, a video feeding interface for receiving video from a video content provider, and / or a computer graphics system for generating computer graphics data as the source video, or a combination of such sources. As one example, if video source 18 is a video camera of a security surveillance system, source device 12 and destination device 14 may form a camera phone or a video phone. However, implementation aspects described in this application may be generally applicable to video coding and may be applied to wireless and / or wired applications.
[0026] The captured, pre-captured, or computer-generated video may be encoded by video encoder 20. The encoded video data may be transmitted directly to destination device 14 via output interface 22 of source device 12. The encoded video data may also (or instead) be stored in storage device 32 for later access, decoding, and / or playback by destination device 14 or other devices. Output interface 22 may further include a modem and / or a transmitter.
[0027] Destination device 14 includes an input interface 28, a video decoder 30, and a display device. Input interface 28 may include a receiver and / or modem and may receive encoded video data over link 16. The encoded video data communicated over link 16 and provided on storage device 32 may include various syntax elements generated by video encoder 20 for use by video decoder 30 in decoding the video data. Such syntax elements may be included in the encoded video data transmitted over a communications medium, stored on a storage medium, or stored on a file server.
[0028] In some implementations, destination device 14 may include a display device 34, which can be an integrated display device as well as an external display device configured to communicate with destination device 14. Display device 34 displays the decoded video data to a user and may include any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0029] Video encoder 20 and video decoder 30 may operate according to proprietary or industry standards, such as VVC, HEVC, MPEG-4, Part 10, AVC, or extensions of such standards. It should be understood that the present application is not limited to a particular video encoding / decoding standard and may be applicable to other video encoding / decoding standards. It is generally believed that video encoder 20 of source device 12 may be configured to encode video data according to those current or later standards. Similarly, it is also generally believed that video decoder 30 of destination device 14 may be configured to decode video data according to those current or later standards.
[0030] Video encoder 20 and video decoder 30 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When implemented partially in software, an electronic device may store instructions for the software on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the video encoding / decoding operations disclosed in this disclosure. Each of video encoder 20 and video decoder 30 may be included in one or more encoders or decoders, any of which may be integrated as part of an encoder / decoder (codec) combined with the respective device.
[0031] Like HEVC, VVC is built on a block-based hybrid video coding framework. FIG. 1B is a block diagram illustrating a block-based video encoder according to some implementations of the present disclosure. In the encoder 100, an input video signal is processed block by block, called a coding unit (CU). The encoder 100 may be a video encoder 20 as shown in FIG. 1A. In VTM-1.0, a CU can be up to 128×128 pixels. However, unlike HEVC, which partitions blocks only based on a quadtree, in VVC, one coding tree unit (CTU) is divided into CUs based on a quadtree / binary tree / ternary tree to fit variable local characteristics. In addition, the concept of multiple partitioning unit types in HEVC is removed, i.e., the separation of CU, prediction unit (PU), and transform unit (TU) no longer exists in VVC, and instead, each CU is always used as the basic unit for both prediction and transformation without further partitioning. In the multi-type tree structure, one CTU is first partitioned by a quadtree structure. Then, each quadtree leaf node can be further partitioned by a binary tree and a ternary tree structure.
[0032] 3A-3E are schematic diagrams illustrating a multi-type tree division mode according to some implementations of the present disclosure. Each of FIGs. 3A-3E shows five division types, including a quadrant (FIG. 3A), a vertical bisection (FIG. 3B), a horizontal bisection (FIG. 3C), a vertical extended trisection (FIG. 3D), and a horizontal extended trisection (FIG. 3E).
[0033] For each given video block, spatial prediction and / or temporal prediction may be performed. Spatial prediction (or "intra prediction") uses pixels from samples of already coded neighboring blocks (called reference samples) in the same video picture / slice to predict the current video block. Spatial prediction reduces spatial redundancy inherent in the video signal. Temporal prediction (also called "inter prediction" or "motion compensated prediction") uses reconstructed pixels from already coded video pictures to predict the current video block. Temporal prediction reduces temporal redundancy inherent in the video signal. The temporal prediction signal for a given CU is typically signaled by one or more motion vectors (MVs), which indicate the amount and direction of motion between the current CU and its temporal references. In addition, if multiple reference pictures are supported, one reference picture index is additionally transmitted, which is used to identify which reference picture in the reference picture store the temporal prediction signal comes from.
[0034] After spatial and / or temporal prediction, an intra / inter mode decision circuit 121 in the encoder 100 chooses the best prediction mode, for example, based on a rate-distortion optimization method. The block predictor 120 is then subtracted from the current video block, and the resulting prediction residual is decorrelated using the transform circuit 102 and the quantization circuit 104. The resulting quantized residual coefficients are inverse quantized by the inverse quantization circuit 116 and inverse transformed by the inverse transform circuit 118 to form a reconstructed residual, which is then added back to the prediction block to form a reconstructed signal for the CU. Additionally, in-loop filtering 115, such as a deblocking filter, sample adaptive offset (SAO), and / or an adaptive in-loop filter (ALF), may be applied to the reconstructed CU before it is placed in a reference picture store of a picture buffer 117 and used to code a subsequent video block. To form the output video bitstream 114, the coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are all sent to the entropy coding unit 106 to be further compressed and packed to form the bitstream.
[0035] For example, blocking filters are available in the current version of VVC, along with AVC and HEVC. In HEVC, an additional in-loop filter called SAO is defined to further improve coding efficiency. In the current version of the VVC standard, yet another in-loop filter called ALF is being actively investigated and has a good chance of being included in the final standard.
[0036] These in-loop filter operations are optional. Performing these operations helps to improve coding efficiency and visual quality. They may also be turned off as a decision made by the encoder 100 to save computational complexity.
[0037] It should be noted that intra prediction is normally based on unfiltered reconstructed pixels, and inter prediction is based on filtered reconstructed pixels if those filter options are turned on by the encoder 100.
[0038] FIG. 2 is a block diagram illustrating a block-based video decoder 200 that can be used in conjunction with many video coding standards. The decoder 200 is similar to the reconstruction-related section present in the encoder 100 of FIG. 1B. The block-based video decoder 200 can be the video decoder 30 as shown in FIG. 1A. In the decoder 200, an incoming video bitstream 201 is first decoded through entropy decoding 202 to derive quantized coefficient levels and prediction-related information. The quantized coefficient levels are then processed through inverse quantization 204 and inverse transform 206 to obtain a reconstructed prediction residual. The block predictor mechanism, implemented in an intra / inter mode selector 212, is configured to perform either intra prediction 208 or motion compensation 210 based on the decoded prediction information. A set of unfiltered reconstructed pixels is obtained by summing the reconstructed prediction residual from the inverse transform 206 and the prediction output generated by the block predictor mechanism using a summer 214.
[0039] The reconstructed blocks may further pass through an in-loop filter 209 before being stored in a picture buffer 213, which serves as a reference picture store. The reconstructed video in the picture buffer 213 may be transmitted to drive a display device and may be used to predict later video blocks. In situations where the in-loop filter 209 is turned on, a filtering operation is performed on those reconstructed pixels to derive the final reconstructed video output 222.
[0040] In the current VVC and AVS3 standards, the motion information of the currently coded block is either copied from spatial or temporal neighboring blocks specified by the merge candidate index or obtained by explicit signaling of motion estimation. The focus of this disclosure is to improve the accuracy of motion vectors for affine merge mode by improving the derivation method of affine merge candidates. To facilitate the description of this disclosure, the existing affine merge mode design in the VVC standard is used as an example to promote the proposed idea. Although the existing affine mode design in the VVC standard is used as an example throughout this disclosure, it will be noted by those skilled in the art of modern video coding technology that the proposed technology can also be applied to different designs of affine motion prediction mode or other coding tools with the same or similar design spirit.
[0041] In a typical video coding process, a video sequence typically includes an ordered set of frames or pictures. Each frame may include three sample arrays, denoted as SL, SCb, and SCr. SL is a two-dimensional array of luma samples. SCb is a two-dimensional array of Cb chroma samples. SCr is a two-dimensional array of Cr chroma samples. In other instances, a frame may be monochrome and therefore include only one two-dimensional array of luma samples.
[0042] As shown in FIG. 1C, video encoder 20 (or, more specifically, a partitioning unit in a prediction processing unit of video encoder 20) generates an encoded representation of a frame by first partitioning the frame into a set of CTUs. A video frame may include an integer number of CTUs ordered consecutively in a raster scan order from left to right and top to bottom. Each CTU is a maximum logical coding unit, and the width and height of the CTU are signaled by video encoder 20 in a sequence parameter set, such that all CTUs in a video sequence have the same size, which is one of 128×128, 64×64, 32×32, and 16×16. However, it should be noted that the present application is not necessarily limited to a particular size. As shown in FIG. 1D, each CTU may include one CTB of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements used to code the samples of the coding tree blocks. The syntax elements describe the nature of the different types of coded blocks of pixels units and how the video sequence may be reconstructed at video decoder 30, including inter or intra prediction, intra prediction mode, motion vectors, and other parameters. For monochrome pictures or pictures with three separate color planes, the CTU may include syntax elements used to code a single coding tree block and samples of the coding tree block. A coding tree block may be an N by N block of samples.
[0043] To achieve better performance, video encoder 20 may recursively perform tree partitioning, such as binary tree partitioning, ternary tree partitioning, quad tree partitioning, or a combination thereof, on the coding tree blocks of the CTU to partition the CTU into smaller CUs. As depicted in FIG. 1E, 64×64 CTU 400 is first partitioned into four smaller CUs, each of which has a block size of 32×32. Among the four smaller CUs, CU 410 and CU 420 are each partitioned by block size into four 16×16 CUs. Two 16×16 CUs 430 and 440 are each further partitioned by block size into four 8×8 CUs. FIG. 1F depicts a quad tree data structure illustrating the final result of the partitioning process of CTU 400 as depicted in FIG. 1E, where each leaf node of the quad tree corresponds to one CU of a respective size ranging from 32×32 to 8×8. Similar to the CTU depicted in FIG. 1D, each CU may include a CB of luma samples, and two corresponding coding blocks of chroma samples for identically sized frames, and syntax elements used to code the samples of the coding blocks. In monochrome pictures or pictures with &3 separate color planes, a CU may include a single coding block and syntax structures used to code the samples of the coding block. It should be noted that the quadtree partition depicted in FIG. 1E-1F is for illustrative purposes only, and one CTU may be divided into CUs based on quadtree / ternary tree / binary tree partitioning to fit variable local characteristics. In a multi-type tree structure, one CTU is partitioned by a quadtree structure, and each quadtree leaf CU may be further partitioned into binary tree and ternary tree structures. As shown in FIGS. 3A-3E, there are five possible partition types of a coding block having width W and height H, namely, quadtree partition, horizontal binary tree partition, vertical binary tree partition, horizontal ternary tree partition, and vertical ternary tree partition.
[0044] In some implementations, video encoder 20 may further partition the coding blocks of a CU into one or more M×N PBs. A PB is a rectangular (square or non-square) block of samples to which the same prediction, inter or intra, is applied. A PU of a CU may include a PB of luma samples, two corresponding PBs of chroma samples, and syntax elements used to predict the PBs. In a monochrome picture or a picture with three separate color planes, a PU may include a single PB and syntax elements used to predict the PBs. Video encoder 20 may generate predictive luma, Cb and Cr blocks for the luma, Cb and Cr PBs for each PU of the CU.
[0045] Video encoder 20 may use intra prediction or inter prediction to generate predictive blocks for a PU. If video encoder 20 uses intra prediction to generate predictive blocks for a PU, video encoder 20 may generate predictive blocks for the PU based on decoded samples of a frame associated with the PU. If video encoder 20 uses inter prediction to generate predictive blocks for a PU, video encoder 20 may generate predictive blocks for the PU based on decoded samples of one or more frames other than the frame associated with the PU.
[0046] After video encoder 20 generates predictive luma, Cb, and Cr blocks for one or more PUs of a CU, video encoder 20 may generate a luma residual block for the CU by subtracting the predictive luma block of the CU from its original luma coding block, such that each sample in the luma residual block of the CU indicates a difference between a luma sample in one of the predictive luma blocks of the CU and a corresponding sample in the original luma coding block of the CU. Similarly, video encoder 20 may generate a Cb residual block and a Cr residual block for the CU, such that each sample in the Cb residual block of the CU indicates a difference between a Cb sample in one of the predictive Cb blocks of the CU and a corresponding sample in the original Cb coding block of the CU, and each sample in the Cr residual block of the CU indicates a difference between a Cr sample in one of the predictive Cr blocks of the CU and a corresponding sample in the original Cr coding block of the CU.
[0047] Further, as illustrated in FIG. 1E, video encoder 20 may use quadtree partitioning to decompose the luma, Cb, and Cr residual blocks of a CU into one or more luma, Cb, and Cr transform blocks, respectively. A transform block is a rectangular (square or non-square) block of samples to which an identical transform is applied. A TU of a CU may include a transform block of luma samples, two corresponding transform blocks of chroma samples, and syntax elements used to transform the transform block samples. Thus, each TU of a CU may be associated with a luma transform block, a Cb transform block, and a Cr transform block. In some embodiments, the luma transform block associated with a TU may be a sub-block of the luma residual block of the CU. The Cb transform block may be a sub-block of the Cb residual block of the CU. The Cr transform block may be a sub-block of the Cr residual block of the CU. In a monochrome picture or a picture with three separate color planes, a TU may include a single transform block and syntax structures used to transform samples of the transform block.
[0048] Video encoder 20 may apply one or more transforms to a luma transform block of a TU to generate a luma coefficient block for the TU. The coefficient block may be a two-dimensional array of transform coefficients. The transform coefficients may be scalar quantities. Video encoder 20 may apply one or more transforms to a Cb transform block of the TU to generate a Cb coefficient block for the TU. Video encoder 20 may apply one or more transforms to a Cr transform block of the TU to generate a Cr coefficient block for the TU.
[0049] After generating a coefficient block (e.g., a luma coefficient block, a Cb coefficient block, or a Cr coefficient block), video encoder 20 may quantize the coefficient block. Quantization generally refers to a process in which transform coefficients are quantized to potentially reduce the amount of data used to represent the transform coefficients and provide further compression. After video encoder 20 quantizes the coefficient block, video encoder 20 may entropy encode syntax elements indicating the quantized transform coefficients. For example, video encoder 20 may perform CABAC on the syntax elements indicating the quantized transform coefficients. Finally, video encoder 20 may output a bitstream including a sequence of bits forming a representation of the coded frame and associated data, which is either stored in storage device 32 or transmitted to destination device 14.
[0050] After receiving the bitstream generated by video encoder 20, video decoder 30 may parse the bitstream to obtain syntax elements from the bitstream. Video decoder 30 may reconstruct a frame of video data based at least in part on the syntax elements obtained from the bitstream. The process of reconstructing the video data is generally reciprocal to the encoding process performed by video encoder 20. For example, video decoder 30 may perform an inverse transform on coefficient blocks associated with the TUs of the current CU to reconstruct residual blocks associated with the TUs of the current CU. Video decoder 30 also reconstructs the coding blocks of the current CU by adding samples of predictive blocks for the PUs of the current CU to corresponding samples of transform blocks of the TUs of the current CU. After reconstructing the coding blocks for each CU of the frame, video decoder 30 may reconstruct the frame.
[0051] As mentioned above, video coding achieves video compression mainly using two modes, namely, intra-frame prediction (or intra prediction) and inter-frame prediction (or inter prediction). It should be noted that IBC is considered as either intra-frame prediction or a third mode. Between the two modes, inter-frame prediction contributes more to coding efficiency than intra-frame prediction due to the use of motion vectors to predict a current video block from a reference video block.
[0052] However, ever improving video data capture techniques and more refined video block sizes for preserving content within the video data also substantially increases the amount of data required to represent the motion vectors for the current frame. One way to overcome this challenge is to take advantage of the fact that a group of neighboring CUs in both spatial and temporal domains not only have similar video data for prediction purposes, but also the motion vectors between those neighboring CUs are similar. Thus, it is possible to use the motion information of spatially neighboring CUs and / or temporally co-located CUs as an approximation of the motion information (e.g., motion vector) of the current CU by utilizing their spatial and temporal correlations, also referred to as the "motion vector predictor (MVP)" of the current CU.
[0053] Instead of encoding the actual motion vector of the current CU determined by the motion estimation unit as described above in connection with FIG. 1B into the video bitstream, the motion vector predictor of the current CU is subtracted from the actual motion vector of the current CU to produce a motion vector difference (MVD) for the current CU. By doing so, the motion vectors determined by the motion estimation unit for each CU of a frame do not need to be encoded into the video bitstream, and the amount of data used to represent motion information in the video bitstream can be significantly reduced.
[0054] Similar to the process of choosing a predictive block in a reference frame during inter-frame prediction of a code block, a set of rules is required to build a motion vector candidate list (also known as a "merge list") for a current CU using those potential candidate motion vectors associated with spatially neighboring CUs and / or temporally co-located CUs of the current CU, and then select one member from the motion vector candidate list as the motion vector predictor for the current CU. By doing so, there is no need to transmit the motion vector candidate list itself from video encoder 20 to video decoder 30, and the index of the selected motion vector predictor in the motion vector candidate list is sufficient for video encoder 20 and video decoder 30 to use the same motion vector predictor in the motion vector candidate list to encode and decode the current CU.
[0055] Affine Model In HEVC, only the translational motion model is applied for motion compensated prediction. In the real world, there exist many kinds of motions, e.g., zoom in / out, rotation, depth motion, and other irregular motions. In VVC and AVS3, affine motion compensated prediction is applied by signaling one flag for each inter-coded block to indicate whether the translational motion model or the affine motion model is applied for inter prediction. In the current VVC and AVS3 designs, two affine modes, including a 4-parameter affine mode and a 6-parameter affine mode, are supported for one affine-coded block.
[0056] The 4-parameter affine model has the following parameters: two parameters for translational motion in horizontal and vertical directions respectively, one parameter for zoom motion, and one parameter for rotational motion for both directions. In this model, the horizontal zoom parameter is equal to the vertical zoom parameter, and the horizontal rotation parameter is equal to the vertical rotation parameter. To achieve a better match of the motion vectors and affine parameters, the affine parameters will be derived from two MVs (also called control point motion vectors (CPMVs)) located at the top left and top right corners of the current block. As shown in Figures 4A-4B, the affine motion field of a block is described by two CPMVs (V0, V1). Based on the control point motion, the motion field of one affine coded block (v x ,v y )teeth,
number
[0057] The 6-parameter affine mode has the following parameters: two parameters for translation in horizontal and vertical directions, two parameters for zoom and rotation in horizontal direction, and another two parameters for zoom and rotation in vertical direction. The 6-parameter affine motion model is coded by three CPMVs. As shown in Fig. 5, the three control points of one 6-parameter affine block are located at the top-left, top-right, and bottom-left corners of the block. The motion at the top-left control point is related to translation motion, the motion at the top-right control point is related to rotation and zoom motion in horizontal direction, and the motion at the bottom-left control point is related to rotation and zoom motion in vertical direction. Compared with the 4-parameter affine motion model, the rotation and zoom motions in horizontal direction of the 6-parameters cannot be the same as those in vertical direction. Assuming (V0,V1,V2) are the MVs of the top-left, top-right, and bottom-left corners of the current block in Fig. 5, the motion vectors (v x ,v y )teeth,
number
[0058] Affine Merge Mode In affine merge mode, the CPMV for the current block is not explicitly signaled, but is derived from neighboring blocks. In particular, in this mode, motion information of spatial neighboring blocks is used to generate the CPMV for the current block. The affine merge mode candidate list has a limited size. For example, in the current VVC design, there may be a maximum of five candidates. The encoder may evaluate and choose the best candidate index based on a rate-distortion optimization algorithm. The chosen candidate index is then signaled to the decoder side. The affine merge candidate may be determined in three ways. In the first way, the affine merge candidate may be inherited from a neighboring affine coded block. In the second way, the affine merge candidate may be constructed from a translation MV from a neighboring block. In the third way, the zero MV is used as the affine merge candidate.
[0059] There may be at most two candidates for the inherited method, which are taken from the neighboring block located at the bottom left of the current block (e.g., the scanning order is from A0 to A1 as shown in FIG. 6) and the neighboring block located at the top right of the current block (e.g., the scanning order is from B0 to B2 as shown in FIG. 6) if available.
[0060] For the constructed method, the candidates are combinations of adjacent translational MVs, which can be generated by two steps.
[0061] Step 1: Obtain four translational MVs, including MV1, MV2, MV3, and MV4, from the available neighbors. MV1: MV from one of the three adjacent blocks close to the top left corner of the current block. As shown in Figure 7, the scanning order is B2, B3, and A2. MV2: MV from one of the two adjacent blocks close to the top right corner of the current block. As shown in FIG. 7, the scanning order is B1 and B0. MV3: MV from one of the two adjacent blocks close to the bottom left corner of the current block. As shown in Figure 7, the scanning order is A1 and A0. MV4: MV from the temporally co-located neighbor block near the bottom right corner of the current block. As shown in the figure, the neighbor block is T.
[0062] Step 2: Derive combinations based on the four translational MVs from step 1. Combination 1: MV1, MV2, MV3, Combination 2: MV1, MV2, MV4, Combination 3: MV1, MV3, MV4, Combination 4: MV2, MV3, MV4, Combination 5: MV1, MV2, Combination 6: MV1, MV3.
[0063] When the merge candidate list is not full after filling it with inheritance and construction candidates, zero MV is inserted at the end of the list.
[0064] Affine AMVP mode Affine Advanced Motion Vector Prediction (AMVP) mode can be applied for CUs with both width and height of 16 or more. An affine flag at the CU level is signaled in the bitstream to indicate whether affine AMVP mode is used, and then another flag is signaled to indicate whether it is 4-parameter affine or 6-parameter affine. In this mode, the difference between the CPMV of the current CU and their predictor CPMVP is signaled in the bitstream. The affine AVMP candidate list size is 2, and the affine AMVP candidate list is signaled by using the following four types of CPMV candidates in the following order: - inherited affine AMVP candidates extrapolated from the CPMVs of neighboring CUs, - A constructed affine AMVP candidate CPMVP derived using the translational MVs of neighboring CUs, - Translational MVs from adjacent CUs, - Temporal MV from co-located CUs, - Zero MV.
[0065] The checking order of inherited affine AMVP candidates is the same as that of inherited affine merge candidates. The only difference is that for AMVP candidates, only affine CUs with the same reference picture as the current block are considered. No pruning process is applied when inserting inherited affine motion predictors into the candidate list.
[0066] The constructed AMVP candidate is derived from the same spatial neighborhood as for the affine merge mode. The same checking order is used as is done for affine merge candidate construction. In addition, the reference picture indexes of the neighboring blocks are also checked. The first block in the checking order that is inter-coded and has the same reference picture as the current CU is used. If the current CU is coded with a 4-parameter affine mode and both mv0 and mv1 are available, mv0 and mv1 are added to the affine AMVP candidate list as one candidate. If the current CU is coded with a 6-parameter affine mode and all three CPMVs are available, they are added to the affine AMVP candidate list as one candidate. Otherwise, the constructed AMVP candidate is set as not available.
[0067] After the valid inherited affine AMVP candidates and constructed AMVP candidates are inserted, if the affine AMVP list candidates are still less than 2, mv0, mv1, and mv2 are added in order to predict all control point MVs of the current CU as translation MVs, when available. Finally, if it is still not full, zero MVs are used to fill the affine AMVP list.
[0068] Regular Intermerge Mode In some embodiments, the canonical intermerge candidate list is constructed by including the following five types of candidates, in order: (1) Spatial MVP from spatially adjacent CUs, (2) Temporal MVP from co-located CUs, (3) History-based MVP from a first-in-first-out (FIFO) table, (4) Pairwise average MVP, and (5) Zero MV.
[0069] The size of the merge list is signaled in the Sequence Parameter Set header; the maximum allowed size of the merge list is 6. For each CU code in the merge mode, the index of the best merge candidate is coded using Truncated Unary Binary (TU). The first bin of the merge index is context coded, and bypass coding is used for the other bins.
[0070] The derivation process for each category of merging candidates is provided above. In some embodiments, parallel derivation of merging candidate lists may be supported for all CUs within a certain size of an area.
[0071] Spatial candidate derivation The derivation of spatial merge candidates in VVC is identical to that in HEVC, except that the positions of the first two merge candidates are swapped. A maximum of four merge candidates are selected from among the candidates located at the positions represented in FIG. 4C. The order of derivation is B0, A0, B1, A1, and B2. When one or more CUs in positions B0, A0, B1, A1 are not available (e.g., because they belong to another slice or tile) or are intra-coded, only position B2 is considered. After the candidate in position A1 is added, the addition of the remaining candidates is subjected to a redundancy check, which ensures that candidates with identical motion information are eliminated from the list so that coding efficiency is improved. In order to reduce computational complexity, not all possible candidate pairs are considered in the mentioned redundancy check. Instead, only the pairs linked with the arrows in FIG. 4D are considered, and only the candidates are added to the list if the corresponding candidates used for the redundancy check do not have identical motion information. FIG. 4D illustrates candidate pairs considered for redundancy check of spatial merging candidates.
[0072] Temporal candidate derivation In this step, only one candidate is added to the list. In particular, in this derivation of the temporal merge candidate, a scaled motion vector is derived based on the co-located CU belonging to the co-located reference picture. The reference picture list and reference index to be used for the derivation of the co-located CU are explicitly signaled in the slice header. The scaled motion vector for the temporal merge candidate is obtained as illustrated by the dotted line in FIG. 4E and is scaled from the motion vector of the co-located CU using POC distances, tb and td, where tb is defined to be the POC difference between the reference picture of the current picture and the current picture, and td is defined to be the POC difference between the reference picture of the co-located picture and the co-located picture. The reference picture index of the temporal merge candidate is set equal to zero.
[0073] The position for the temporal candidate is selected between candidates C0 and C1, as depicted in Figure 4F. If the CU in position C0 is not available, is intra-coded, or is outside the current row of the CTU, then position C1 is used. Otherwise, position C0 is used in the derivation of the temporal merge candidate.
[0074] History-Based Merge Candidate Deriving History-based MVP (HMVP) merge candidates are added to the merge list after spatial MVP and temporal motion vector prediction (TMVP). In this method, the motion information of a previously coded block is stored in a table and used as the MVP for the current CU. The table with multiple HMVP candidates is maintained during the encoding / decoding process. The table is reset (emptied) when a new CTU row is faced. Whenever there is a non-sub-block inter-coded CU, the associated motion information is added to the last entry of the table as a new HMVP candidate.
[0075] The HMVP table size S may be set to 6, which indicates that up to 5 History-Based MVP (HMVP) candidates may be added to the table. When inserting a new motion candidate into the table, a constrained first-in-first-out (FIFO) rule is utilized, and a redundancy check is first applied to find if an identical HMVP exists in the table. If so, the identical HMVP is removed from the table, all subsequent HMVP candidates are moved forward, and the identical HMVP is inserted into the last entry of the table.
[0076] HMVP candidates are used in the merge candidate list construction process. The most recent few HMVP candidates in the table are checked in order and inserted into the candidate list after the TMVP candidate. Redundancy checks are applied to HMVP candidates for spatial or temporal merge candidates.
[0077] To reduce the number of operations for redundancy checking, the following simplifications are introduced: First, the last two entries in the table are checked for redundancy with respect to each of the A1 and B1 spatial candidates. Second, the process of building a merge candidate list from HMVP is completed when the total number of available merge candidates reaches a maximum of the allowed merge candidates minus one.
[0078] Pairwise average merging candidate derivation A pairwise average candidate is generated by averaging a predefined pair of candidates in an existing merge candidate list using the first two merge candidates. The first merge candidate may be defined as p0Cand and the second merge candidate may be defined as p1Cand, respectively. The averaged motion vector is calculated separately according to the availability of motion vectors in p0Cand and p1Cand for each reference list. If both motion vectors in one list are available, they are averaged even when those two motion vectors point to different reference pictures and that reference picture is set to the one in p0Cand, if only one motion vector is available, it uses the one directly and keeps this list invalid if no motion vector is available. Also, if the half-pel interpolation filter index of p0Cand and p1Cand is different, it is set to 0.
[0079] When the merge list is not full after the pairwise average merge candidates are added, zero MVPs are inserted at the end of the merge list until the maximum number of merge candidates is reached.
[0080] For current video standards VVC and AVS, only adjacent neighboring blocks are used to derive affine merge candidates for the current block, as shown in Figures 6 and 7 for inheritance and construction candidates, respectively. To increase the diversity of merge candidates and further exploit spatial correlation, it is straightforward to extend the coverage of neighboring blocks from adjacent areas to non-adjacent areas.
[0081] In the current video standards VVC and AVS, each affine inheritance candidate is derived from one neighboring block with affine motion information, while each affine construction candidate is derived from two or three neighboring blocks with translational motion information. To further exploit spatial correlation, new candidate derivation methods that combine affine and translational motion can be investigated.
[0082] The candidate derivation method proposed for the affine merge mode can be extended to other coding modes, such as the affine AMVP mode and the canonical merge mode.
[0083] In this disclosure, the candidate derivation process for the affine merge mode may be extended by using not only adjacent neighboring blocks but also non-adjacent blocks. The detailed methods may be summarized in the following aspects, including affine merge candidate pruning, non-adjacent neighbor-based derivation process for affine inheritance merge candidates, non-adjacent neighbor-based derivation process for affine construct merge candidates, inheritance-based derivation method for affine construct merge candidates, HMVP-based derivation method for affine construct merge candidates, and candidate derivation methods for affine AMVP mode and regular merge mode.
[0084] Affine Merge Candidate Pruning As the affine merge candidate list in typical video coding standards usually has a limited size, candidate pruning is a necessary process to remove redundant ones. This pruning process is necessary for both affine merge inheritance candidates and construction candidates. As explained in the introduction, the CPMV of the current block is not directly used for affine motion compensation. Instead, the CPMV needs to be transformed into a translational MV at the position of each sub-block within the current block. The transformation process is performed by adhering to a general affine model, as shown below:
number
[0085] For the 6-parameter affine model, three CPMVs are available, designated V0, V1, and V2. The six model parameters a, b, c, d, e, and f are then
number
[0086] For a four-parameter affine model, when the top-left corner CPMV and top-right corner CPMV, designated V0 and V1, are available, the six parameters a, b, c, d, e, and f are
number
[0087] For a four-parameter affine model, when the top-left corner CPMV and bottom-left corner CPMV, designated V0 and V2, are available, the six parameters a, b, c, d, e, and f are
number
[0088] In the above equations (4), (5), and (6), w and h represent the width and height of the current block, respectively.
[0089] When two merge candidate sets of CPMV are compared for redundancy checking, it is proposed to check the similarity of the six affine model parameters. Therefore, the candidate pruning process can be performed in two steps.
[0090] In step 1, given two candidate sets of CPMVs, corresponding affine model parameters for each candidate set are derived. More specifically, the two candidate sets of CPMVs can be represented by two sets of affine model parameters, e.g., (a1, b1, c1, d1, e1, f1) and (a2, b2, c2, d2, e2, f2).
[0091] In step 2, a similarity check is performed between the two sets of affine model parameters based on one or more predefined thresholds. In one embodiment, when the absolute values of (a1-a2), (b1-b2), (c1-c2), (d1-d2), (e1-e2, and (f1-f2) are all below a positive threshold, such as a value of 1, the two candidates are considered to be similar and one of them may be pruned / removed and not placed in the merge candidate list.
[0092] In some embodiments, the divide or right shift operation in step 1 may be removed to simplify the computation in the CPMV pruning process.
[0093] In particular, the model parameters of c, d, e, and f can be calculated without dividing by the width w and height h of the current block. For example, taking the above equation (4) as an example, the approximate model parameters of c', d', e', and f' can be calculated as the following equation (7):
number
[0094] In the case where only two CPMVs are available, some of the model parameters are derived from other parts of the model parameters that depend on the width or height of the current block. In this case, the model parameters can be transformed to take into account the influence of the width and height. For example, in the case of equation (5), the approximate model parameters of c', d', e', and f' can be calculated based on the following equation (8): In the case of equation (6), the approximate model parameters of c', d', e', and f' can be calculated based on the following equation (9):
number
number
[0095] In step 2 above, a threshold is needed to evaluate the similarity between two candidate sets of CPMV. There may be multiple ways to define the threshold. In one embodiment, the threshold may be defined per comparable parameter. Table 1 is one example of this embodiment showing the threshold defined per comparable model parameter. In another embodiment, the threshold may be defined by considering the size of the currently coded block. Table 2 is one example of this embodiment showing the threshold defined by the size of the currently coded block.
[0096] [Table 1]
[0097] [Table 2]
[0098] In another embodiment, the thresholds may be defined by considering the weight or height of the current block. Tables 3 and 4 are examples of this embodiment. Table 3 shows the thresholds defined by the width of the current coding block, and Table 4 shows the thresholds defined by the height of the current coding block.
[0099] [Table 3]
[0100] [Table 4]
[0101] In another embodiment, the threshold may be defined as a group of fixed values. In another embodiment, the threshold may be defined by any combination of the above embodiments. In one example, the threshold may be defined by considering different parameters as well as the weight and height of the current block. Table 5 is one example of this embodiment showing the threshold defined by the height of the currently coded block. It will be noted that in any of the above proposed embodiments, the comparable parameters may represent any parameters defined in any of the formulas from equations (4) to (9), if necessary.
[0102] [Table 5]
[0103] The advantage of using transformed affine model parameters for candidate redundancy check is that it results in a unified similarity check process for candidates with different affine model types, for example, one merge candidate may use a 6-parameter affine model with 3 CPMVs and another candidate may use a 4-parameter affine model with 2 CPMVs, it takes into account the different influence of each CPMV in the merge candidate when deriving the target MV in each sub-block, and it provides the similarity significance of the two affine merge candidates relative to the width and height of the current block.
[0104] Non-proximal neighbor-based resolution process for affine inheritance merge candidates For inheritance merge candidates, the non-neighbor-based derivation process can be performed in three steps: Step 1 is for candidate scanning; Step 2 is for CPMV projection; Step 3 is for candidate pruning.
[0105] In step 1, non-adjacent blocks are scanned and selected by the following method.
[0106] Scanning Area and Distance In some embodiments, the non-adjacent blocks may be scanned from the area to the left and the area above the current coding block, and the scanning distance may be defined as the number of coding blocks from the scanning position to the left or top side of the current coding block.
[0107] As shown in Figure 8, multiple lines of non-adjacent blocks may be scanned, either to the left or above the current coding block. The distances shown in Figure 8 represent the number of coding blocks from each candidate position to the left or top side of the current block. For example, an area with "distance 2" on the left side of the current block indicates that the candidate neighboring blocks located within this area are two blocks away from the current block. Similar indications may be applied to other scanning areas with different distances.
[0108] In one or more embodiments, the non-adjacent blocks at each distance may have the same block size as the currently coded block, as shown in FIG. 13A. As shown in FIG. 13A, the non-adjacent blocks 1301 on the left and 1302 on the top have the same size as the currently coded block 1303. In some embodiments, the non-adjacent blocks at each distance may have a different block size than the currently coded block, as shown in FIG. 13B. The neighboring block 1304 is a neighboring block adjacent to the currently coded block 1303. As shown in FIG. 13B, the non-adjacent blocks 1305 on the left and 1306 on the top have the same size as the currently coded block 1307. The neighboring block 1308 is a neighboring block adjacent to the currently coded block 1307.
[0109] It will be noted that when the non-adjacent blocks at each distance have the same block size as the currently coded block, the value of the block size is adaptively changed according to the partition granularity in each different area in the image. It will be noted that when the non-adjacent blocks at each distance have a different block size than the currently coded block, the value of the block size can be predefined as a constant value, such as 4×4, 8×8, or 16×16. The 4×4 non-adjacent motion fields shown in Figures 10 and 12 are examples in this case, and the motion fields can be considered as special cases of sub-blocks, but are not limited thereto.
[0110] Similarly, the non-adjacent coding blocks shown in Figure 11 may have different sizes as well. In one embodiment, the non-adjacent coding blocks may have a size as the current coding block that is adaptively changed. In another embodiment, the non-adjacent coding blocks may have a predefined size with a fixed value, such as 4x4, 8x8, or 16x16.
[0111] Based on the defined scanning distance, the total size of the scanning area on either the left or the top of the current encoding clock may be determined by a configurable distance value. In one or more embodiments, the maximum scanning distance on the left and top side may use the same value or different values. FIG. 13 shows an example where the maximum distance on both the left and top sides share the same value of 2. The maximum scanning distance value(s) may be determined by the encoder side and may be signaled in the bitstream. Alternatively, the maximum scanning distance value(s) may be predefined as a fixed value(s), such as a value of 2 or 4. When the maximum scanning distance is predefined as a value of 4, it indicates that the scanning process is completed when the candidate list is full, or all non-adjacent blocks with a maximum distance of 4 have been scanned, whichever comes first.
[0112] In one or more embodiments, within each scanning area at a particular distance, the start and end neighboring blocks may be position dependent.
[0113] In some embodiments, for the left scanning area, the starting neighboring block may be the adjacent lower left block of the starting neighboring block of the neighboring scanning area with a shorter distance. For example, as shown in FIG. 8, the starting neighboring block of the "Distance 2" scanning area on the left side of the current block is the adjacent lower left neighboring block of the "Distance 1" scanning area. The ending neighboring block may be the adjacent left block of the ending neighboring block of the upper scanning area with a shorter distance. For example, as shown in FIG. 8, the ending neighboring block of the "Distance 2" scanning area on the left side of the current block is the adjacent left neighboring block of the ending neighboring block of the "Distance 1" scanning area on the current block.
[0114] Similarly, for the upper scanning area, the starting neighboring block may be the neighboring right-top block of the starting neighboring block of the neighboring scanning area with the shorter distance, and the ending neighboring block may be the neighboring left-top block of the ending neighboring block of the neighboring scanning area with the shorter distance.
[0115] Scanning Order When neighboring blocks are scanned in non-contiguous areas, certain order or / and rules may be followed to determine the selection of the scanned neighboring blocks.
[0116] In some embodiments, the left area may be scanned first, followed by scanning the area above. As shown in Figure 8, three lines of non-adjacent areas on the left side (e.g., from distance 1 to distance 3) may be scanned first, followed by scanning three lines of non-adjacent areas above the current block.
[0117] In some embodiments, the left area and the top area may be scanned alternately. For example, as shown in FIG. 8, the left scanning area with "Distance 1" is scanned first, followed by scanning the top area with "Distance 1".
[0118] For scanning areas located on the same side (e.g., left or top areas), the scanning order is from the area with the shortest distance to the area with the longest distance. This order can be flexibly combined with other embodiments of the scanning order. For example, the left and top areas can be scanned alternately, and the order for the areas on the same side is scheduled to be from the shortest distance to the longest distance.
[0119] Within each scanning area at a particular distance, a scanning order may be defined. In one embodiment, for the left scanning area, scanning may start from the lower neighboring block to the top neighboring block. For the top scanning area, scanning may start from the right block to the left block.
[0120] Scanning completed For inheritance merge candidates, the neighboring blocks coded by affine mode are defined as qualified candidates. In some embodiments, the scanning process may be performed iteratively. For example, scanning performed in a particular area at a particular distance may be stopped in an instance when the first X qualified candidates are identified, where X is a predefined positive value. For example, as shown in FIG. 8, scanning in the left scanning area with distance 1 may be stopped when the first one or more qualified candidates are identified. Then, the next iteration of the scanning process is started by targeting another scanning area regulated by a predefined scanning order / rule.
[0121] In some embodiments, the scanning process may be performed continuously, for example, scanning performed within a particular area at a particular distance may be stopped in instances when all covered neighboring blocks have been scanned and no more qualified candidates have been identified or a maximum allowed number of candidates has been reached.
[0122] During the candidate scanning process, the non-adjacent block of each candidate is determined and scanned by adhering to the scanning method proposed above. For easier implementation, the non-adjacent block of each candidate can be indicated and specified by a specific scanning position. Once the specific scanning area and distance are determined by adhering to the method proposed above, the scanning position can be determined accordingly based on the following method.
[0123] In one method, the bottom left and top right positions are used for the top and left non-adjacent blocks, as shown in FIG. 15A.
[0124] Alternatively, the bottom right position is used for both the top and left non-adjacent blocks, as shown in FIG. 15B.
[0125] Alternatively, the bottom left position is used for both the top and left non-adjacent blocks, as shown in FIG. 15C.
[0126] Alternatively, the right-top position is used for both the top and left non-adjacent blocks, as shown in FIG. 15D.
[0127] For easier illustration, in Figures 15A to 15D, each non-adjacent block is assumed to have the same block size as the current block. Without loss of generality, this illustration can be easily extended to non-adjacent blocks with different block sizes.
[0128] Furthermore, step 2 may utilize the same process of CPMV projection as used in the current AVS and VVC standards, where it is assumed that the current block shares the same affine model with the selected neighboring block, and then the coordinates of two or three corner pixels (e.g., if the current block uses a 4-parameter model, two coordinates (top left pixel / sample location and top right pixel / sample location) are used, and if the current block uses a 6-parameter model, three coordinates (top left pixel / sample location, top right pixel / sample location, and bottom left pixel / sample location) are used) are plugged into equation (1) or (2), depending on whether the neighboring block is coded with a 4-parameter or 6-parameter affine model, to generate two or three CPMVs.
[0129] In step 3, any qualified candidate identified in step 1 and converted in step 2 may undergo a similarity check against all existing candidates already in the merge candidate list. The details of the similarity check have already been explained in the "Affine Merge Candidate Pruning" section above. If the newly qualified candidate is found to be similar to any existing candidate in the candidate list, then this newly qualified candidate is removed / pruned.
[0130] Non-neighborhood-based derivation process for affine-constructed merge candidates In the case of deriving inherited merge candidates, one neighboring block is identified at a time, and this single neighboring block needs to be coded in affine mode and may contain two or three CPMVs. In the case of deriving constructed merge candidates, two or three neighboring blocks are identified at a time, and each identified neighboring block does not need to be coded in affine mode, and only one translational MV is taken from this block.
[0131] FIG. 9 presents an example in which construct affine merge candidates can be derived by using non-adjacent blocks. In FIG. 9, A, B, and C are the geographic positions of three non-adjacent blocks. A virtual coding block is formed using the position of A as the top left corner, the position of B as the top right corner, and the position of C as the bottom left corner. Considering a virtual CU as an affine coded block, the MVs at positions A', B', and C' can be derived by adhering to equation (3), and the model parameters (a, b, c, d, e, f) can be calculated by the translation MVs at positions A, B, and C. Once derived, the MVs at positions A', B', and C' can be used as the three CPMVs for the current block, and the existing process of generating construct affine merge candidates (the one used in AVS and VVC standards) can be used.
[0132] For constructed merge candidates, the non-neighbor-based derivation process may be performed in five steps. The non-neighbor-based derivation process may be performed in five steps in a device such as an encoder or a decoder: Step 1 is for candidate scanning; Step 2 is for affine model determination; Step 3 is for CPMV projection; Step 4 is for candidate generation; and Step 5 is for candidate pruning. In Step 1, non-neighbor blocks may be scanned and selected by the following method:
[0133] Scanning Area and Distance In some embodiments, to maintain rectangular coding blocks, the scanning process is performed only for two non-adjacent blocks, and the third non-adjacent block may depend on the horizontal and vertical positions of the first and second non-adjacent blocks.
[0134] In some embodiments, as shown in Figure 9, the scanning process is performed only for the positions of B and C. The position of A can be uniquely determined by the horizontal position of C and the vertical position of B.
[0135] To form a valid hypothetical coding block, position A may need to be at least valid. The validity of position A may be defined as whether motion information at position A is available or not. In one embodiment, the coding block located at position A may need to be coded in inter mode so that motion information is available to form a hypothetical coding block.
[0136] In some embodiments, the scanning areas and distances may be defined according to a particular scanning direction.
[0137] In some embodiments, the scanning direction may be perpendicular to the side of the current block. One example is shown in Figure 10, where the scanning area is defined as one line of contiguous motion fields to the left or top of the current block. The scanning distance is defined as the number of motion fields from the scanning position to the side of the current block. It should be noted that the size of the motion field may depend on the maximum granularity of the applicable video coding standard. In the example shown in Figure 10, the size of the motion field is assumed to be aligned with the current VVC standard and set to 4x4.
[0138] In some embodiments, the scanning direction may be parallel to the sides of the current block. One example is shown in Figure 11, where the scanning area is defined as one line of contiguous coding blocks to the left or above the current block.
[0139] In some embodiments, the scanning direction can be a combination of vertical and horizontal scanning to the side of the current block. One example is shown in FIG. 12. As shown in FIG. 12, the scanning direction can also be a combination of parallel and diagonal. Scanning at position B starts from left to right, then in a diagonal direction to the block to the left and above. Scanning at position B repeats as shown in FIG. 12. Similarly, scanning at position C starts from the top to the bottom, then in a diagonal direction to the block to the left and above. Scanning at position C repeats as shown in FIG. 12.
[0140] Scanning Order In some embodiments, the scanning order may be defined as from a position with a smaller distance to a position with a larger distance to the current coding block, which may be applied in the case of vertical scanning.
[0141] In some embodiments, the scanning order may be defined as a fixed pattern. This fixed pattern scanning order may be used for candidate positions with similar distances. One example is the case of horizontal scanning. In one example, the scanning order may be defined as a top-bottom direction for the left scanning area and a left-to-right direction for the top scanning area, similar to the example shown in FIG. 11.
[0142] For the case of a combined scanning method, the scanning order can be a combination of fixed pattern and distance dependent, similar to the example shown in FIG.
[0143] Scanning completed For constructing merge candidates, the qualified candidates do not need to be affine encoded since only translational MVs are required.
[0144] Depending on the number of candidates required, the scanning process may be concluded when the first X qualified candidates have been identified, where X is a positive value.
[0145] As shown in Fig. 9, three corners named A, B, and C are needed to form a virtual coding block. For easier implementation, the scanning process in step 1 may be performed only to identify non-adjacent blocks located at corners B and C, and the coordinate of A may be accurately determined by taking the horizontal coordinate of C and the vertical coordinate of B. In this way, the formed virtual coding block is constrained to be rectangular. In the case where either the B or C point is not available, e.g., outside the boundary, or the motion information in the non-adjacent blocks corresponding to B or C is not available (e.g., the block is coded in intra mode or screen-content mode case), the horizontal or vertical coordinate of C may be defined as the horizontal or vertical coordinate, respectively, of the top-left point of the current block.
[0146] In another embodiment, when corner B and / or corner C are initially determined from the scanning process in step 1, the non-adjacent blocks located at corners B and / or C may be identified accordingly. Second, the position(s) of corners B and / or C may be reset to a pivot point within the corresponding non-adjacent block, such as the center of mass of each non-adjacent block. For example, the center of mass may be defined as the geometric center of each adjacent block.
[0147] As shown in Fig. 9, when the scanning process is performed for corners B and C, the process can be performed jointly or independently. In an embodiment of independent scanning, the scanning method proposed before can be applied separately for corners B and C. In an embodiment of joint scanning, there can be different methods as follows:
[0148] In one embodiment, pairwise scanning may be performed. In one example of pairwise scanning, the candidate positions for corners B and C advance simultaneously. For easier illustration and without loss of generality, FIG. 17B will be taken as an example. As shown in FIG. 17B, the scanning for corner B starts in a bottom-up direction from a first non-adjacent block located on the upper side of the current block. The scanning for corner C starts in a right-left direction from a first non-adjacent block located on the left side of the current block. Thus, in the example shown in FIG. 17B, the pairwise scanning may be defined as the candidate positions for both B and C advance by one unit of step size, where one unit of step size is defined as the height of the current coding block for corner B and the width of the current coding block for corner C.
[0149] In another embodiment, an alternative scanning may be performed. In one example of alternative scanning, the candidate positions for corners B and C advance alternately. In one step, only the position of B or C may advance, and the position of C or B remains unchanged. In one example, the position of corner B may increase incrementally from the first non-adjacent block to a distance in a maximum number of non-adjacent blocks, and the position of corner C remains in the first non-adjacent block. In the next round, the position of corner C moves to the second non-adjacent block, and the position of corner B traverses again from the beginning to the maximum value. The rounds continue until all combinations have been traversed.
[0150] For the purpose of unification, the methods of defining scanning areas and distances, scanning order, and scanning completion proposed for deriving inheritance merge candidates may be fully or partially reused for deriving construction merge candidates. In one or more embodiments, the same methods defined for inheritance merge candidate scanning, including but not limited to scanning areas and distances, scanning order, and scanning completion, may be fully reused for construction merge candidate scanning.
[0151] In some embodiments, the same method defined for inheritance merge candidate scanning can be partially reused for construction merge candidate scanning. Figure 16 shows an example of this case. In Figure 16, the block size of each non-adjacent block is the same as the current block, which is defined similarly as inheritance candidate scanning, but the overall process is a simplified version since the scanning at each distance is limited to only one block.
[0152] 17A-17B show another embodiment of this case, in which both the non-adjacent inheritance merge candidates and the non-adjacent construction merge candidates are defined with the same block size as the current coding block, and the scanning order, scanning area, and scanning completion condition may be defined differently.
[0153] In FIG. 17A, the maximum distance for the non-close neighbor on the left is 4 coding blocks and the maximum distance for the non-close neighbor on the top is 5 coding blocks. Also, at each distance, the scanning direction is bottom-up for the left side and right-left for the top side. In FIG. 17B, the maximum distance for the non-close neighbor is 4 for both the left side and the top side. Additionally, scanning at certain distances is not available because there is only one block at each distance. In FIG. 17A, if M qualified candidates are identified, the scanning operation within each distance may be completed. The value of M may be a predefined fixed value, such as a value of 1 or any other positive integer, or a signaled value determined by the encoder, or a configurable value at the encoder or decoder. In one embodiment, the value of M may be the same as the merge candidate list size.
[0154] 17A-17B, when N qualified candidates are identified, scanning operations at different distances may be completed. The value of N may be a predefined fixed value, such as a value of 1 or any other positive integer, or a signaled value determined by the encoder, or a configurable value in the encoder or decoder. In one embodiment, the value of N may be the same as the merge candidate list size. In another embodiment, the value of N may be the same as the value of M.
[0155] In both Figures 17A and 17B, non-close spatial neighbors having a closer distance to the current block may be prioritized, which indicates that a non-close spatial neighbor with distance i is scanned or checked before a neighbor with distance i+1, where i may be a non-negative integer representing a particular distance.
[0156] At a particular distance, at most two non-close spatial neighbors are used, which means that at most one neighbor from one side of the current block, e.g., left and top, is selected for inheritance or construction candidate derivation if available. As shown in Figure 17A, the checking order of the left and top neighbors is bottom-top and right-left, respectively. For Figure 17B, this rule can also be applied, the difference being that at any particular distance, there can be only one option per side of the current block.
[0157] For a construction candidate, the positions of one left and top non-adjacent spatial neighbor are first determined independently, as shown in Fig. 17B. Then, the position of the left-top neighbor, which can surround a rectangular virtual block together with the left and top non-adjacent neighbors, can be determined accordingly. Then, as shown in Fig. 9, the motion information of the three non-adjacent neighbors is used to form CPMVs at the left-top (A), right-top (B), and left-bottom (C) of the virtual block, which are finally projected to the current CU to generate a corresponding construction candidate.
[0158] In step 2, the translational MVs at the positions of the selected candidates after step 1 are evaluated and an appropriate affine model can be determined. For easier illustration and without loss of generality, Figure 9 is again used as an example.
[0159] Due to factors such as hardware constraints, implementation complexity, and different reference indexes, the scanning process may be completed before a sufficient number of candidates are identified. For example, motion information of the motion fields in one or more of the selected candidates after step 1 may not be available.
[0160] If motion information of all three candidates is available, the corresponding hypothetical coding block represents a 6-parameter affine model. If motion information of one of the three candidates is not available, the corresponding hypothetical coding block represents a 4-parameter affine model. If motion information of more than one of the three candidates is not available, the corresponding hypothetical coding block may be unusable to represent a valid affine model.
[0161] In some embodiments, if motion information is not available for the top left corner of the virtual coding block, e.g., corner A in FIG. 9, or if motion information is not available for both the top right corner, e.g., corner B in FIG. 9, and the bottom left corner, e.g., corner C in FIG. 9, the virtual block may be set as invalid and may be unusable for representing a valid model, and then steps 3 and 4 may be skipped during the current iteration.
[0162] In some embodiments, if either the top right corner, e.g., corner B in FIG. 9, or the bottom left corner, e.g., corner C in FIG. 9, is not available, but not both, then the virtual block may represent a valid 4-parameter affine model.
[0163] In step 3, if the hypothetical coding block is capable of representing a valid affine model, the same projection process used for the inheritance merge candidates may be used.
[0164] In one or more embodiments, the same projection process used for the inheritance merge candidates may be used: in this case, the 4-parameter model represented by the hypothetical coding block from step 2 is projected onto a 4-parameter model for the current block, and the 6-parameter model represented by the hypothetical coding block from step 2 is projected onto a 6-parameter model for the current block.
[0165] In some embodiments, the affine model represented by the virtual coding block from step 2 is always projected onto a 4-parameter model or a 6-parameter model for the current block.
[0166] It will be noted that according to equations (5) and (6), there can be two types of 4-parameter affine models: type A is where the top-left corner CPMV and top-right corner CPMV, referred to as V0 and V1, are available, and type B is where the top-left corner CPMV and bottom-left corner CPMV, referred to as V0 and V2, are available.
[0167] In one or more embodiments, the type of the projected 4-parameter affine model is the same type of the 4-parameter affine model represented by the virtual coding block. For example, if the affine model represented by the virtual coding block from step 2 is a 4-parameter affine model of type A or B, then the projected affine model for the current block is also of type A or B, respectively.
[0168] In some embodiments, the 4-parameter affine model represented by the hypothetical coding block from step 2 is always projected to a 4-parameter model of the same type for the current block. For example, a 4-parameter affine model of type A or B represented by the hypothetical coding block is always projected to a 4-parameter affine model of type A.
[0169] In step 4, based on the projected CPMV after step 3, in one embodiment, the same candidate generation process used in the current VVC or AVS standard may be used. In another embodiment, the temporal motion vectors used in the candidate generation process used in the current VVC or AVS standard may not be used for the non-adjacent block based derivation method. When a temporal motion vector is not used, it indicates that the generated combination does not include any temporal motion vector.
[0170] In step 5, any newly generated candidate after step 4 may undergo a similarity check against all existing candidates already in the merge candidate list. The details of the similarity check have already been explained in the "Affine Merge Candidate Pruning" section. If the newly generated candidate is found to be similar to any existing candidate in the candidate list, the newly generated candidate is removed or pruned.
[0171] An Inheritance-Based Derivation Method for Affine Construct Merge Candidates For each affine inheritance candidate, all motion information is inherited from one selected spatial neighboring block coded in affine mode. The inherited information includes CPMV, reference index, prediction direction, affine model type, etc. On the other hand, for each affine construction candidate, all motion information is constructed from two or three selected spatial or temporal neighboring blocks, and the selected neighboring block is not coded in affine mode, and only translational motion information is needed from the selected neighboring block.
[0172] In this section, a new candidate derivation method is disclosed that combines features of inheritance and construction candidates.
[0173] In some embodiments, the combination of inheritance and construction may be achieved by separating the affine model parameters into different groups, with one group of affine parameters inherited from one neighboring block and another group of affine parameters inherited from the other neighboring block.
[0174] In one embodiment, the parameters of one affine model are constructed from two groups. As shown in formula (3), the affine model may include six parameters, including a, b, c, d, e, and f. The translational parameters {a, b} may represent one group, and the non-translational parameters {c, d, e, f} may represent another group. With this grouping method, the two groups of parameters may be inherited independently from two different neighboring blocks in a first step, and then concatenated / constructed to be a complete affine model in a second step. In this case, the group with non-translational parameters needs to be inherited from one affine coded neighboring block, and the group with translational parameters may be from any inter-coded neighboring block that may or may not be coded in affine mode. It will be noted that the affine coded neighboring blocks may be selected from adjacent affine neighboring blocks or non-adjacent affine neighboring blocks based on the scanning method previously proposed for the affine inheritance candidate, such as the method shown in Figure 17A, the scanning method / rules including scanning area and distance, scanning order, and scanning completion used in the section "Non-adjacent Neighbor Based Derivation Process for Affine Inheritance Merge Candidates", and the scanning method may be performed for both adjacent neighboring blocks or non-adjacent blocks. Alternatively, the affine coded neighboring blocks may not physically exist but may be virtually constructed from regular inter coded neighboring blocks, such as the method shown in Figure 17B, the scanning method / rules including scanning area and distance, scanning order, and scanning completion used in the section "Non-adjacent Neighbor Based Derivation Process for Affine Construct Merge Candidates".
[0175] In some embodiments, the neighboring blocks associated with each group may be determined in different ways. In one way, the neighboring blocks for the different groups of parameters may be all from non-adjacent neighboring areas and the scanning method may be designed similar to the previously proposed method for non-adjacent neighbor-based derivation processing. In another way, the neighboring blocks for the different groups of parameters may be all from adjacent neighboring areas and the scanning method may be the same as the current VVC or AVS video standard. In another way, the neighboring blocks for the different groups of parameters may be partial from adjacent areas and partial from non-adjacent neighboring areas.
[0176] When several groups of affine parameters are combined to build a new candidate, there may be several rules to be observed. The first one is the eligibility criteria. In one embodiment, the related neighboring block or block(s) per group may be checked whether they use the same reference picture for at least one direction or both directions. In another embodiment, the related neighboring block or block(s) per group may be checked whether they use the same precision / resolution for motion vectors.
[0177] The second is a construction formula. In one embodiment, the CPMV of a new candidate can be derived in the following formula:
number
[0178] In another embodiment, the CPMV of the new candidate may be derived in the following manner:
number
[0179] FIG. 18 shows an example of an inheritance-based derivation method for deriving an affine construction candidate. In FIG. 18, there are three steps for deriving an affine construction candidate. In step 1, according to a certain grouping strategy, an encoder or decoder may perform scanning of adjacent neighboring blocks and non-adjacent blocks for each group. In the case of FIG. 18, two groups are defined, neighboring 1 is coded in affine mode and provides non-translational affine parameters, and neighboring 2 provides translational affine parameters. Neighboring 1 may be obtained according to the process in the section "Non-adjacent Neighbor-Based Derivation Process for Affine Inheritance Merge Candidate" as shown in FIG. 15A-15D and 17A, and neighboring 1 may be adjacent luma or non-adjacent block of the current block. Furthermore, neighboring 2 may be obtained according to the process as shown in FIG. 16 and 17B.
[0180] In step 2, the parameters and positions determined in step 1 may define a specific affine model that can derive different CPMVs according to the coordinates (x, y) of the CPMVs. For example, as shown in FIG. 18, the non-translational parameters {c, d, e, f} may be obtained based on the neighbor 1 obtained in step 1, and the translational parameters {a, b} may be obtained based on the neighbor 2 obtained in step 1. Furthermore, the distance parameters Δw, Δh may thus be obtained based on the position (x1, y1) of the current block and the position (x2, y2) of the neighbor 2. The distance parameters Δw, Δh may indicate the horizontal and vertical distances between the current block and neighbor 1 or neighbor 2, respectively. For example, the distance parameters Δw, Δh may indicate the horizontal distance (x1-x2) between the current block and neighbor 2, and the vertical distance (y1-y2) between the current block and neighbor 2, respectively. In particular, Δw=x1-x2, Δh=y1-y2.
[0181] In step 3, two or three CPMVs are derived for the currently coded block, and the currently coded block may be constructed to form new affine candidates.
[0182] In some embodiments, other prediction information may be further constructed. If a neighboring block is checked to have the same direction and / or reference picture, the prediction direction (e.g., bi-predictive or uni-predictive) and the index of the reference picture may be the same as the related neighboring block. Instead, the prediction information is determined by reusing the least overlapping information among the related neighboring blocks from different groups. For example, if only one direction reference index from one neighboring block is the same as the same direction reference index of the other neighboring block, the prediction direction of the new candidate is determined as uni-predictive, and the same reference index and direction are reused.
[0183] An HMVP-Based Deriving Method for Affine Construct Merge Candidates In the case of adjacent neighbor-based derivation processing, already defined in the current video standards VVC and AVS and described in the above section and in FIG. 7, a fixed order of scanning for adjacent neighbors is performed to identify two or three adjacent neighbor blocks. In the case of non-adjacent neighbor-based derivation processing, as proposed in the previous section and in FIG. 17B, two non-adjacent neighbors are identified during another fixed order of scanning. In other words, for both adjacent neighbor-based derivation methods and non-adjacent neighbor-based derivation methods, a certain depth of local scanning is necessary to identify the number of neighbors. This scanning process relies on local buffering around each current block and also incurs a certain amount of computational complexity.
[0184] On the other hand, as described in the introduction section, the HMVP merge mode is already adopted in current VVC and AVS, and the translational motion information from neighboring blocks is already stored in the history table. In this case, the scanning process can be replaced by searching the HMVP table.
[0185] Therefore, instead of the scanning method as shown in Fig. 17B and Fig. 18 for the previously proposed non-adjacent neighbor-based derivation process and inheritance-based derivation process, the translational motion information can be obtained from the HMVP table. However, to subsequently derive affine construction candidates, position information, width, height, and reference information are also required, which may be accessible if the current HMVP table can be modified. Therefore, it is proposed to extend the HMVP table to store additional information in addition to the motion information of each historical neighbor. In one embodiment, the additional information may include the position of the affine or non-affine neighboring block, or affine motion information such as CPMV or equivalent regular motion derived from CPMV (for example, this regular motion may be from an interior sub-block of the affine coded neighboring block), reference index, etc.
[0186] Candidate Derivation Methods for Affine AMVP and Regular Merge Modes As explained in the above section, for affine AMVP mode, an affine candidate list is also needed to derive the CPMV predictor. As a result, all the above proposed derivation methods can be applied to the affine AMVP mode as well. The only difference is that when the above proposed derivation methods are applied in AMVP, the selected neighboring block should have the same reference picture index as the currently coded block.
[0187] For the regular merge mode, the candidate list is also built only with translational candidate MVs, not with CPMVs. In this case, all the above proposed derivation methods can still be applied by adding an additional derivation step, which is to derive a translational MV for the current block, which can be realized by selecting a specific rotation position (x,y) within the current block, and can adhere to the same equation (3). In other words, to derive the CPMV of an affine block, the positions of the three corners of the block can be used as the rotation position (x,y) in equation (3), and to derive the translational MV of a regular inter-coded block, the center position of the block can be used as the rotation position (x,y) in equation (3). Once the translational MV is derived for the current block, it can be inserted into the candidate list as another candidate.
[0188] When new candidates are derived based on the methods proposed above for affine AMVP and regular merge modes, the replacements of the new candidates may be reordered.
[0189] In one embodiment, a newly derived candidate may be inserted into the affine AMVP candidate list by adhering to the following order: (1) inherited from adjacent spatial neighbors; (2) constructed from adjacent spatial neighbors; (3) inherited from non-proximate spatial neighbors; (4) constructed from non-proximate spatial neighbors; (5) translational MVs from adjacent spatial neighbors; (6) temporal MVs from adjacent temporal neighbors, and (7) Zero MV.
[0190] In another embodiment, a newly derived candidate may be inserted into the affine AMVP candidate list by adhering to the following order: (1) inherited from adjacent spatial neighbors; (2) constructed from adjacent spatial neighbors; (3) inherited from non-proximate spatial neighbors; (4) translational MVs from adjacent spatial neighbors; (5) constructed from non-proximal spatial neighbors; (6) temporal MVs from adjacent temporal neighbors, and (7) Zero MV.
[0191] In another embodiment, a newly derived candidate may be inserted into the affine AMVP candidate list by adhering to the following order: (1) inherited from adjacent spatial neighbors; (2) constructed from adjacent spatial neighbors; (3) translational MVs from adjacent spatial neighbors; (4) inherited from non-proximate spatial neighbors; (5) constructed from non-proximal spatial neighbors; (6) temporal MVs from adjacent temporal neighbors, and (7) Zero MV.
[0192] In another embodiment, a newly derived candidate may be inserted into the affine AMVP candidate list by adhering to the following order: (1) inherited from adjacent spatial neighbors; (2) constructed from adjacent spatial neighbors; (3) translational MVs from adjacent spatial neighbors; (4) Temporal MVs from adjacent temporal neighbors, (5) inherited from non-proximate spatial neighbors; (6) constructed from non-proximate spatial neighbors, and (7) Zero MV.
[0193] In one embodiment, newly derived candidates may be inserted into the canonical merge candidate list by adhering to the following order: (1) Spatial MVP from adjacent spatial neighbors, (2) Temporal MVP from adjacent co-located neighbors, (3) spatial MVP from non-close spatial neighbors, (4) Inheritance MVP from non-neighboring spatially affine neighbors, (5) Constructing MVP from non-proximate spatial neighbors (6) History-based MVP from FIFO tables, (7) Pairwise average MVP, and (8) Zero MV.
[0194] Reordering the affine merge candidate list In one embodiment, non-adjacent spatial merge candidates may be inserted into the affine merge candidate list by adhering to the following order: 1. Sub-block based temporal motion vector prediction (SbTMVP) candidate if available, 2. Inherited from adjacent neighbors, 3. Inherited from non-adjacent neighbors, 4. Built from adjacent neighbors, 5. Built from non-adjacent neighbors, 6. Zero MV.
[0195] In another embodiment, non-close spatial merge candidates may be inserted into the affine merge candidate list by adhering to the following order: 1. SbTMVP candidate if available, 2. inherited from close neighbors, 3. constructed from close neighbors, 4. inherited from non-close neighbors, 5. constructed from non-close neighbors, 6. zero MV.
[0196] In another embodiment, non-adjacent spatial merge candidates may be inserted into the affine merge candidate list by adhering to the following order: 1. SbTMVP candidates if available, 2. inherited from adjacent neighbors, 3. constructed from adjacent neighbors, 4. one set of zero MVs, 5. inherited from non-adjacent neighbors, 6. constructed from non-adjacent neighbors, 7. remaining zero MVs if the list is still not full.
[0197] In another embodiment, non-close spatial merge candidates may be inserted into the affine merge candidate list by adhering to the following order: 1. SbTMVP candidate if available, 2. inherited from close neighbors, inherited from neighbors not closer by a distance less than X, 4. constructed from close neighbors, 5. constructed from neighbors not closer by a distance less than Y, 6. inherited from neighbors not closer by a distance greater than X, 7. constructed from neighbors not closer by a distance greater than Y, 8. zero MV. In this embodiment, the values X and Y may be predefined fixed values, such as a value of 2, or signaled values determined by the encoder, or configurable values at the encoder or decoder. In one embodiment, the value of X may be the same as the value of Y. In another embodiment, the value of N may be different from the value of M.
[0198] In some embodiments, when a new candidate is derived by using an inheritance-based derivation method that constructs a CPMV by combining affine motion and translational MVs, the placement of this new candidate may depend on the placement of other constructed candidates.
[0199] In one embodiment, for different construction candidates, the reordering of the affine merge candidate list may adhere to the following order: (1) constructed from adjacent spatial neighbors; (2) constructed from combining adjacent spatially affine neighbors and translational MVs, (3) constructed from non-proximate spatial neighbors, and (4) It is constructed from combining non-neighboring spatially affine neighbors and translational MVs.
[0200] In another embodiment, for different construction candidates, the reordering of the affine merge candidate list may adhere to the following order: (1) constructed from adjacent spatial neighbors; (2) constructed from non-proximate spatial neighbors; (3) constructed from combining adjacent spatially affine neighbors and translational MVs; and (4) It is constructed from combining non-neighboring spatially affine neighbors and translational MVs.
[0201] 19 illustrates a computing environment (or computing device) 1910 coupled to a user interface 1960. The computing environment 1910 can be part of a data processing server. In some embodiments, the computing device 1910 can perform any of the various methods or processes (encoding / decoding methods or processes) described below according to various embodiments of the present disclosure. The computing environment 1910 can include a processor 1920, a memory 1940, and an I / O interface 1950.
[0202] The processor 1920 typically controls the overall operation of the computing environment 1910, such as operations associated with display, data acquisition, data communication, and image processing. The processor 1920 may include one or more processors for executing instructions to perform all or part of the steps in the methods described above. Moreover, the processor 1920 may include one or more modules that facilitate interaction between the processor 1920 and other components. The processor may be a central processing unit (CPU), a microprocessor, a single chip machine, or a GPU, etc.
[0203] The memory 1940 is configured to store various types of data to support the operation of the computing environment 1910. The memory 1940 may include predefined software 1942. Examples of such data include instructions for any application or method operating on the computing environment 1910, video data sets, image data, etc. The memory 1940 may be implemented by using any type of volatile or non-volatile memory device, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk, or a combination thereof.
[0204] The I / O interface 1950 provides an interface between the processor 1920 and peripheral interface modules, such as a keyboard, a click wheel, and buttons. The buttons may include, but are not limited to, a home button, a start scan button, and a stop scan button. The I / O interface 1950 may be coupled with an encoder and a decoder.
[0205] In some embodiments, a non-transitory computer readable storage medium is also provided that includes a number of programs, such as contained in memory 1940, executable by processor 1920 in computing environment 1910 to perform the methods described above. For example, the non-transitory computer readable storage medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.
[0206] A non-transitory computer-readable storage medium has stored thereon a plurality of programs for execution by a computing device having one or more processors, the plurality of programs, when executed by the one or more processors, causing the computing device to perform the above-described method for motion prediction.
[0207] In some embodiments, the computing environment 1910 may be implemented with one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic circuits (PLDs), field programmable gate arrays (FPGAs), graphical processing units (GPUs), controllers, microcontrollers, microprocessors, or other electronic components for performing the methods described above.
[0208] FIG. 20 is a flowchart illustrating a method for video decoding according to an embodiment of the present disclosure.
[0209] In step 2001, the processor 1920 at the decoder side may obtain one or more constructed MV candidates from multiple non-adjacent blocks to the current block by jointly or independently scanning multiple scanning areas at one or more scanning distances, where one scanning distance may indicate the number of blocks away from one side of the current block.
[0210] In step 2002, the processor 1920 may obtain one or more CPMVs for the current block based on one or more construction MV candidates.
[0211] In some embodiments, one or more construction MV candidates may be obtained according to the derivation methods as shown in Figures 17B, 16, and 9-12.
[0212] In particular, as shown in Figures 9-12, a first scanning area is scanned in a first direction perpendicular to a first side of a current block at a first scanning distance, and the multiple scanning areas include a first scanning area and a second scanning area, and the one or more scanning distances include the first scanning distance and the second scanning distance, so as to obtain a first construction MV candidate. As shown in Figures 17B, 16, and 9-12, the first side may be the left side of the current block, and the second side may be the top side of the current block.
[0213] Further, the second scanning area is scanned in a second direction perpendicular to the second side of the current block at the second scanning distance to obtain a second construction MV candidate. Then, a virtual block is obtained based on the first candidate position of the first construction MV candidate and the second candidate position of the second construction MV candidate, and a third candidate position is determined for the third construction MV candidate based on the first and second candidate positions and the virtual block. Moreover, one or more CPMVs are obtained for the virtual block based on the translation MVs at the first candidate position, the second candidate position, and the third candidate position, and one or more CPMVs can be obtained for the current block based on the one or more CPMVs for the virtual block by using the same projection process used for the succession candidate derivation.
[0214] In some embodiments, based on motion information at a first candidate position for a first constructed MV candidate, a second candidate position for a second constructed MV candidate, or a third candidate position for a third constructed MV candidate, a virtual block may be determined to be valid or not. For example, motion information at position A may be used to determine whether a virtual block is valid or not. In particular, the validity of position A may be defined as whether motion information at position A is available or not. In one embodiment, a coding block located at position A may need to be coded in inter mode so that motion information is available to form a virtual coding block.
[0215] In another embodiment, in response to determining that the motion information at the first candidate position or the second candidate position is not available, the virtual block may be determined to be invalid. For example, when a coding block located at the first candidate position for the first constructed MV candidate or the second candidate position for the second constructed MV candidate (e.g., B or C in FIG. 9) is coded in intra mode or screen-content mode, the motion information at the two positions is not available, and thus the virtual block is not valid.
[0216] In some embodiments, the processor 1920 may independently scan multiple scanning areas at one or more scanning distances by alternately scanning the left scanning area and the top scanning area to obtain one or more left constructed MV candidates and one or more top constructed MV candidates, where the multiple scanning areas include the left scanning area and the top scanning area.
[0217] In some embodiments, the processor 1920 may alternately scan the left scanning area and the top scanning area to obtain one or more left building MV candidates and one or more top building MV candidates by alternately scanning the left scanning area and the top scanning area by alternately advancing the first left candidate position and the first top candidate position to obtain one or more left building MV candidates and one or more top building MV candidates.
[0218] For example, the processor 1920 may scan a left scanning area in a first direction perpendicular to the left side of the current block at a first scanning distance to obtain a first left built MV candidate, and may scan a top scanning area in a second direction perpendicular to the top side of the current block at a second scanning distance to obtain a first top built MV candidate, and may obtain a first virtual block based on the first left candidate position of the first left built MV candidate and the first top candidate position of the first top built MV candidate. A first left-top candidate position for the first left-top construction MV candidate may be determined based on the projection, the first top candidate position, and the first virtual block, one or more CPMVs for the first virtual block may be obtained based on the translation MV at the first left candidate position, the first top candidate position, and the first left-top candidate position, and one or more CPMVs for the current block may be obtained based on the one or more CPMVs of the first virtual block by using the same projection process used for inheritance candidate derivation.
[0219] In some embodiments, assuming that a first left constructed MV candidate (e.g., corner C) is obtained, the processor 1920 may further progressively advance the first top candidate position (e.g., the position of corner B) by a second scanning distance along the second direction to obtain one or more second top constructed MV candidates, may obtain a second virtual block based on the second top candidate position and the first left candidate position of the one second top constructed MV candidate, may determine a second left-top candidate position for the second left-top constructed MV candidate based on the second top candidate position, the first left candidate position, and the second virtual block, may obtain one or more CPMVs for the second virtual block based on the translation MVs at the second top candidate position, the first left candidate position, and the second left-top candidate position, and may obtain one or more CPMVs for the current block based on the one or more CPMVs of the second virtual block by using the same projection process used for succession candidate derivation.
[0220] In some embodiments, the position of corner B may increase incrementally from the first non-adjacent block to a distance of a maximum number of non-adjacent non-adjacent blocks. For example, the one or more second best constructed MV candidates may include a second best constructed MV candidate at a distance of a maximum number of blocks away from the top side of the current block.
[0221] In some embodiments, after corner B is gradually increased to the maximum number, in the next round, the processor 1920 may advance the first left candidate position (e.g., the position of corner C) by a first scanning distance along the first direction to obtain a second left built MV candidate, may obtain a third virtual block based on the first top candidate position of the first top built MV candidate and the second left candidate position of the second left built MV candidate, may determine a third left-top candidate position for the third left-top built MV candidate based on the second left candidate position, the first top candidate position, and the third virtual block, may obtain one or more CPMVs for the third virtual block based on the translation MVs at the second left candidate position, the first top candidate position, and the third left-top candidate position, and may obtain one or more CPMVs for the current block based on one or more CPMVs of the third virtual block by using the same projection process used for succession candidate derivation.
[0222] In this round, the position of corner B may be traversed again from the first value to the maximum value. For example, the processor 1920 may progressively advance the first top candidate position by a second scanning distance along the second direction to obtain one or more third top building MV candidates, obtain a fourth virtual block based on the third top candidate position and the second left candidate position of one third top building MV candidate, obtain one or more CPMVs for the fourth virtual block based on the translation MVs at the third top candidate position, the second left candidate position, and the fourth left-top candidate position, and obtain one or more CPMVs for the current block based on one or more CPMVs of the fourth virtual block by using the same projection process used for the succession candidate derivation. The one or more third top building MV candidates may include the third top building MV candidates at the distance of the maximum number of blocks away from the top side of the current block.
[0223] In some embodiments, the processor 1920 may jointly scan multiple scanning areas at one or more scanning distances by pairwise scanning the left scanning area and the top scanning area to obtain multiple left construction MV candidates and multiple top construction MV candidates, and the multiple scanning areas may include the left scanning area and the top scanning area.
[0224] In particular, the processor 1920 may advance the left candidate position a first scanning distance from the left side of the current block along a first direction perpendicular to the left to obtain a left built MV candidate, advance the top candidate position a second scanning distance from the top side of the current block along a second direction perpendicular to the top to obtain a top built MV candidate, obtain a virtual block based on the left candidate position of the left built MV candidate and the top candidate position of the top built MV candidate, determine a top-left candidate position for the top-left built MV candidate based on the left candidate position, the top candidate position, and the virtual block, obtain one or more CPMVs for the virtual block based on the translation MVs at the first candidate position, the second candidate position, and the third candidate position, and obtain one or more CPMVs for the current block based on the one or more CPMVs of the virtual block by using the same projection process used for inheritance candidate derivation.
[0225] In some embodiments, the first scanning distance may be the width of the current block and the second scanning distance may be the height of the current block.
[0226] FIG. 21 is a flow chart illustrating a method for video encoding that corresponds to the method for video decoding as shown in FIG.
[0227] In step 2101, the processor 1920 on the encoder side may determine one or more constructed MV candidates from multiple non-adjacent blocks to the current block by jointly or independently scanning multiple scanning areas at one or more scanning distances, where one scanning distance may indicate the number of blocks away from one side of the current block.
[0228] In step 2102, the processor 1920 may obtain one or more CPMVs for the current block based on the one or more construction MV candidates.
[0229] In some embodiments, one or more construction MV candidates may be obtained according to the derivation methods as shown in Figures 17B, 16, and 9-12.
[0230] In particular, as shown in Figures 9-12, a first scanning area is scanned in a first direction perpendicular to a first side of a current block at a first scanning distance, and the multiple scanning areas include a first scanning area and a second scanning area, and the one or more scanning distances include the first scanning distance and the second scanning distance, so as to obtain a first construction MV candidate. As shown in Figures 17B, 16, and 9-12, the first side may be the left side of the current block, and the second side may be the top side of the current block.
[0231] Further, the second scanning area is scanned in a second direction perpendicular to the second side of the current block at the second scanning distance to obtain a second construction MV candidate.Then, a virtual block is obtained based on the first candidate position of the position of the first construction MV candidate and the second candidate position of the second construction MV candidate, and a third candidate position is determined for the third construction MV candidate based on the first and second candidate positions and the virtual block.In addition, one or more CPMVs can be obtained for the virtual block based on the translation MVs at the first candidate position, the second candidate position, and the third candidate position, and one or more CPMVs can be obtained for the current block based on the one or more CPMVs for the virtual block by using the same projection process used for the succession candidate derivation.
[0232] In some embodiments, the processor 1920 may independently scan multiple scanning areas at one or more scanning distances by alternately scanning the left scanning area and the top scanning area to obtain one or more left constructed MV candidates and one or more top constructed MV candidates, where the multiple scanning areas include the left scanning area and the top scanning area.
[0233] In some embodiments, the processor 1920 may alternately scan the left scanning area and the top scanning area to obtain one or more left building MV candidates and one or more top building MV candidates by alternately scanning the left scanning area and the top scanning area by alternately advancing the first left candidate position and the first top candidate position to obtain one or more left building MV candidates and one or more top building MV candidates.
[0234] For example, the processor 1920 may scan a left scanning area in a first direction perpendicular to the left side of the current block at a first scanning distance to obtain a first left built MV candidate, and may scan a top scanning area in a second direction perpendicular to the top side of the current block at a second scanning distance to obtain a first top built MV candidate, and may obtain a first virtual block based on the first left candidate position of the first left built MV candidate and the first top candidate position of the first top built MV candidate. A first left-top candidate position for the first left-top construction MV candidate may be determined based on the projection, the first top candidate position, and the first virtual block, one or more CPMVs for the first virtual block may be obtained based on the translation MV at the first left candidate position, the first top candidate position, and the first left-top candidate position, and one or more CPMVs for the current block may be obtained based on the one or more CPMVs of the first virtual block by using the same projection process used for inheritance candidate derivation.
[0235] In some embodiments, assuming that a first left constructed MV candidate (e.g., corner C) is obtained, the processor 1920 may further progressively advance the first top candidate position (e.g., the position of corner B) by a second scanning distance along the second direction to obtain one or more second top constructed MV candidates, may obtain a second virtual block based on the second top candidate position and the first left candidate position of the one second top constructed MV candidate, may determine a second left-top candidate position for the second left-top constructed MV candidate based on the second top candidate position, the first left candidate position, and the second virtual block, may obtain one or more CPMVs for the second virtual block based on the translation MVs at the second top candidate position, the first left candidate position, and the second left-top candidate position, and may obtain one or more CPMVs for the current block based on the one or more CPMVs of the second virtual block by using the same projection process used for succession candidate derivation.
[0236] In some embodiments, the position of corner B may increase incrementally from the first non-adjacent block to a distance of a maximum number of non-adjacent non-adjacent blocks. For example, the one or more second best constructed MV candidates may include a second best constructed MV candidate at a distance of a maximum number of blocks away from the top side of the current block.
[0237] In some embodiments, after corner B is gradually increased to the maximum number, in the next round, the processor 1920 may advance the first left candidate position (e.g., the position of corner C) by a first scanning distance along the first direction to obtain a second left built MV candidate, may obtain a third virtual block based on the first top candidate position of the first top built MV candidate and the second left candidate position of the second left built MV candidate, may determine a third left-top candidate position for the third left-top built MV candidate based on the second left candidate position, the first top candidate position, and the third virtual block, may obtain one or more CPMVs for the third virtual block based on the translation MVs at the second left candidate position, the first top candidate position, and the third left-top candidate position, and may obtain one or more CPMVs for the current block based on one or more CPMVs of the third virtual block by using the same projection process used for succession candidate derivation.
[0238] In this round, the position of corner B may be traversed again from the first value to the maximum value. For example, the processor 1920 may progressively advance the first top candidate position by a second scanning distance along the second direction to obtain one or more third top building MV candidates, obtain a fourth virtual block based on the third top candidate position and the second left candidate position of one third top building MV candidate, obtain one or more CPMVs for the fourth virtual block based on the translation MVs at the third top candidate position, the second left candidate position, and the fourth left-top candidate position, and obtain one or more CPMVs for the current block based on one or more CPMVs of the fourth virtual block by using the same projection process used for the succession candidate derivation. The one or more third top building MV candidates may include the third top building MV candidates at the distance of the maximum number of blocks away from the top side of the current block.
[0239] In some embodiments, the processor 1920 may jointly scan multiple scanning areas at one or more scanning distances by pairwise scanning the left scanning area and the top scanning area to obtain multiple left construction MV candidates and multiple top construction MV candidates, and the multiple scanning areas may include the left scanning area and the top scanning area.
[0240] In particular, the processor 1920 may advance the left candidate position a first scanning distance from the left side of the current block along a first direction perpendicular to the left to obtain a left built MV candidate, advance the top candidate position a second scanning distance from the top side of the current block along a second direction perpendicular to the top to obtain a top built MV candidate, obtain a virtual block based on the left candidate position of the left built MV candidate and the top candidate position of the top built MV candidate, determine a top-left candidate position for the top-left built MV candidate based on the left candidate position, the top candidate position, and the virtual block, obtain one or more CPMVs for the virtual block based on the translation MVs at the first candidate position, the second candidate position, and the third candidate position, and obtain one or more CPMVs for the current block based on the one or more CPMVs of the virtual block by using the same projection process used for inheritance candidate derivation.
[0241] In some embodiments, the first scanning distance may be the width of the current block and the second scanning distance may be the height of the current block.
[0242] FIG. 22 is a flowchart illustrating a method for video decoding according to an embodiment of the present disclosure.
[0243] In step 2201, the processor 1920 at the decoder side may obtain one or more MV candidates from one or more candidate lists according to a predetermined order, where the one or more candidate lists may include an AMVP candidate list, a regular merge candidate list, and / or an affine merge candidate list, and the one or more MV candidates are from multiple adjacent blocks to the current block.
[0244] In some implementations, the one or more MV candidates may include one or more inherited non-adjacent MV candidates obtained from multiple non-adjacent spatial neighboring blocks to the current block using an inheritance-based derivation method such as shown in Figures 8, 13A-13B, 14A-14B, 15A-15D, and 17A. Additionally, the one or more MV candidates may include one or more constructed non-adjacent MV candidates obtained from multiple non-adjacent spatial neighboring blocks using a construction-based derivation method such as shown in Figures 9-12, 16, and 17B.
[0245] In some embodiments, the processor 1920 may obtain one or more inherited non-adjacent MV candidates prior to the one or more constructed non-adjacent MV candidates from the affine AMVP candidate list.
[0246] In some embodiments, the affine AMVP candidate list may further include one or more neighboring MV candidates, including one or more inherited neighboring MV candidates and one or more constructed neighboring MV candidates, where the one or more neighboring MV candidates are obtained from a plurality of adjacent spatially neighboring blocks adjacent to the current block. The processor 1920 may obtain one or more inherited non-neighboring MV candidates and one or more constructed non-neighboring MV candidates after the one or more inherited neighboring MV candidates and one or more constructed neighboring MV candidates from the affine AMVP candidate list, as discussed in the "Candidate Derivation Method for Affine AMVP and Regular Merge Mode" section. For example, the predetermined order may include the order described in the "Candidate Derivation Method for Affine AMVP and Regular Merge Mode" section.
[0247] In some embodiments, the affine AMVP candidate list may further include one or more temporal MVs obtained from multiple adjacent temporal neighboring blocks adjacent to the current block, and the processor 1920 may obtain from the affine AMVP candidate list one or more temporal MV candidates after the one or more constructed non-adjacent MV candidates or before the one or more inherited non-adjacent MV candidates.
[0248] In some embodiments, the affine AMVP candidate list may further include one or more translational MV candidates obtained from multiple adjacent spatial neighboring blocks, and the processor 1920 may obtain one or more translational MV candidates from the affine AMVP candidate list according to one of the following orders: obtaining one or more translational MV candidates after one or more constructed non-adjacent MV candidates from the affine AMVP candidate list, obtaining one or more translational MV candidates between one or more inherited non-adjacent MV candidates and one or more constructed non-adjacent MV candidates from the affine AMVP candidate list, or obtaining one or more translational MV candidates before one or more temporal MV candidates from the affine AMVP candidate list.
[0249] In some examples, the one or more MV candidates may include one or more non-adjacent spatial motion vector prediction (MVP) candidates, one or more inherited non-adjacent MVP candidates, and one or more constructed non-adjacent MVP candidates. The processor 1920 may obtain one or more non-adjacent spatial MVP candidates from multiple non-adjacent spatial neighboring blocks to the current block, may obtain one or more inherited non-adjacent MVP candidates from multiple non-adjacent spatial neighboring blocks using an inheritance-based derivation method, may obtain one or more constructed non-adjacent MVP candidates from multiple non-adjacent spatial neighboring blocks using a construction-based derivation method, may obtain one or more non-adjacent spatial MVP candidates before the one or more inherited non-adjacent MV candidates from a regular merge candidate list, and may obtain one or more inherited non-adjacent MV candidates before the one or more constructed non-adjacent MV candidates from a regular merge candidate list.
[0250] In some examples, the one or more MV candidates may include multiple constructed MV candidates, including one or more constructed adjacent MV candidates and one or more constructed non-adjacent MV candidates, and the processor 1920 may obtain one or more constructed adjacent MV candidates before the one or more constructed non-adjacent MV candidates from the affine merge candidate list, as discussed in the "Reordering Affine Merge Candidate List" section. In those examples, when a new candidate is derived by using an inheritance-based derivation method that constructs a CPMV by combining affine motion and translational MVs, the placement of the new candidate may depend on the placement of other constructed candidates.
[0251] In some embodiments, the one or more MV candidates may include one or more first construction MV candidates obtained based on a plurality of spatially adjacent blocks, one or more second construction MV candidates obtained based on a plurality of spatially adjacent blocks, and a plurality of translational MVs. The processor 1920 may obtain one or more first construction MV candidates before the one or more second construction MV candidates from the affine merge candidate list, as discussed in the "Reordering Affine Merge Candidate List" section. In those embodiments, when a new candidate is derived by using an inheritance-based derivation method that constructs a CPMV by combining affine motion and translational MVs, the placement of the new candidate may depend on the placement of other construction candidates.
[0252] In step 2202, the processor 1920 may obtain one or more CPMVs for the current block based on the one or more MV candidates.
[0253] FIG. 23 is a flow chart illustrating a method for video encoding corresponding to the decoding method as illustrated in FIG.
[0254] In step 2301, the processor 1920 at the encoder side may determine one or more MV candidates from multiple neighboring blocks to the current block.
[0255] In some implementations, the one or more MV candidates may include one or more inherited non-adjacent MV candidates obtained from multiple non-adjacent spatial neighboring blocks to the current block using an inheritance-based derivation method such as shown in Figures 8, 13A-13B, 14A-14B, 15A-15D, and 17A. Additionally, the one or more MV candidates may include one or more constructed non-adjacent MV candidates obtained from multiple non-adjacent spatial neighboring blocks using a construction-based derivation method such as shown in Figures 9-12, 16, and 17B.
[0256] In step 2302, the processor 1920 may insert one or more MV candidates into one or more candidate lists according to a predetermined order, where the one or more candidate lists may include an AMVP candidate list, a regular merge candidate list, and / or an affine merge candidate list.
[0257] In some embodiments, the processor 1920 may insert, into the affine AMVP candidate list, one or more inherited non-adjacent MV candidates before the one or more constructed non-adjacent MV candidates.
[0258] In some embodiments, the affine AMVP candidate list may further include one or more neighboring MV candidates, including one or more inherited neighboring MV candidates and one or more constructed neighboring MV candidates, where the one or more neighboring MV candidates are obtained from a plurality of adjacent spatially neighboring blocks adjacent to the current block. The processor 1920 may insert the one or more inherited non-neighboring MV candidates and the one or more constructed non-neighboring MV candidates into the affine AMVP candidate list after the one or more inherited neighboring MV candidates and the one or more constructed neighboring MV candidates, as discussed in the "Candidate Derivation Method for Affine AMVP and Regular Merge Mode" section. For example, the predetermined order may include the order described in the "Candidate Derivation Method for Affine AMVP and Regular Merge Mode" section.
[0259] In some embodiments, the affine AMVP candidate list may further include one or more temporal MV candidates obtained from multiple adjacent temporal neighboring blocks adjacent to the current block, and the processor 1920 may insert one or more temporal MV candidates into the affine AMVP candidate list after the one or more constructed non-adjacent MV candidates or before the one or more inherited non-adjacent MV candidates.
[0260] In some embodiments, the affine AMVP candidate list may further include one or more translational MV candidates obtained from multiple adjacent spatial neighboring blocks, and the processor 1920 may insert one or more translational MV candidates into the affine AMVP candidate list according to one of the following orders: inserting one or more translational MV candidates into the affine AMVP candidate list after one or more constructed non-adjacent MV candidates, inserting one or more translational MV candidates into the affine AMVP candidate list between one or more inherited non-adjacent MV candidates and one or more constructed non-adjacent MV candidates, or inserting one or more translational MV candidates into the affine AMVP candidate list before one or more temporal MV candidates.
[0261] In some examples, the one or more MV candidates may include one or more non-adjacent spatial motion vector prediction (MVP) candidates, one or more inherited non-adjacent MVP candidates, and one or more constructed non-adjacent MVP candidates. The processor 1920 may obtain one or more non-adjacent spatial MVP candidates from multiple non-adjacent spatial neighboring blocks to the current block, may obtain one or more inherited non-adjacent MVP candidates from multiple non-adjacent spatial neighboring blocks using an inheritance-based derivation method, may obtain one or more constructed non-adjacent MVP candidates from multiple non-adjacent spatial neighboring blocks using a construction-based derivation method, may insert the one or more non-adjacent spatial MVP candidates before the one or more inherited non-adjacent MV candidates into the regular merge candidate list, and may insert the one or more inherited non-adjacent MV candidates before the one or more constructed non-adjacent MV candidates into the regular merge candidate list.
[0262] In some examples, the one or more MV candidates may include multiple constructed MV candidates, including one or more constructed adjacent MV candidates and one or more constructed non-adjacent MV candidates, and the processor 1920 may insert the one or more constructed adjacent MV candidates before the one or more constructed non-adjacent MV candidates in the affine merge candidate list, as discussed in the "Reordering Affine Merge Candidate List" section. In those examples, when a new candidate is derived by using an inheritance-based derivation method that constructs a CPMV by combining affine motion and translational MVs, the placement of the new candidate may depend on the placement of other constructed candidates.
[0263] In some embodiments, the one or more MV candidates may include one or more first construction MV candidates obtained based on a plurality of spatially adjacent blocks, one or more second construction MV candidates obtained based on a plurality of spatially adjacent blocks, and a plurality of translational MVs. The processor 1920 may insert the one or more first construction MV candidates before the one or more second construction MV candidates into the affine merge candidate list, as discussed in the "Reordering Affine Merge Candidate List" section. In those embodiments, when a new candidate is derived by using an inheritance-based derivation method that constructs a CPMV by combining affine motion and translational MVs, the placement of the new candidate may depend on the placement of other construction candidates.
[0264] In step 2303, the processor 1920 may obtain one or more CPMVs for the current block based on the one or more MV candidates.
[0265] In some embodiments, an apparatus for video coding is provided. The apparatus includes a processor 1920 and a memory 1940 configured to store instructions executable by the processor, the instructions being configured to, when executed, perform any of the methods illustrated in Figures 20-23.
[0266] In some other embodiments, a non-transitory computer-readable storage medium having instructions stored thereon is provided. When the instructions are executed by the processor 1920, the instructions cause the processor to perform any of the methods illustrated in Figures 20-23. In one embodiment, a number of programs may be executed by the processor 1920 in the computing environment 1910 to receive (e.g., from the video encoder 20 in Figure 2) a bitstream or data stream including encoded video information (e.g., video blocks representing encoded video frames, and / or one or more associated syntax elements, etc.) and to perform the decoding method described above in accordance with the received bitstream or data stream. In another embodiment, the programs may be executed by the processor 1920 in the computing environment 1910 to perform the encoding methods described above for encoding video information (e.g., video blocks representing encoded video frames, and / or one or more associated syntax elements, etc.) into a bitstream or data stream, and may also be executed by the processor 1920 in the computing environment 1910 to transmit the bitstream or data stream (e.g., to the video decoder 30 in FIG. 3). Alternatively, a non-transitory computer-readable storage medium may store therein a bitstream or data stream including encoded video information (e.g., video blocks representing encoded video frames, and / or one or more associated syntax elements, etc.) generated by an encoder (e.g., the video encoder 20 in FIG. 2) using, for example, the encoding methods described above, for use by a decoder (e.g., the video decoder 30 in FIG. 3) in decoding video data. The non-transitory computer-readable storage medium may be, for example, a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, or an optical data storage device.
[0267] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure, including such departures from the disclosure, which adhere to its general principles as come within known or customary practice in the art. It is intended that the specification and examples be considered as illustrative only.
[0268] It will be appreciated that the present disclosure is not limited to the exact embodiments described above and illustrated in the accompanying drawings, but various modifications and changes can be made without departing from the scope thereof.
Claims
1. 1. A video decoding method, comprising: Obtaining one or more constructed motion vector (MV) candidates from a plurality of non-adjacent blocks to a current block by jointly or independently scanning a plurality of scanning areas at one or more scanning distances, where one scanning distance indicates a number of blocks away from one side of the current block; obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more construction MV candidates; A method comprising:
2. Scanning a first scanning area in a first direction perpendicular to a first side of the current block at a first scanning distance to obtain a first construction MV candidate, the plurality of scanning areas including the first scanning area and a second scanning area, and the one or more scanning distances including the first scanning distance and a second scanning distance; Scanning the second scanning area in a second direction perpendicular to a second side of the current block at the second scanning distance to obtain a second construction MV candidate; obtaining a virtual block based on a first candidate position of the first construction MV candidate and a second candidate position of the second construction MV candidate; determining a third candidate position for a third construction MV candidate based on the first and second candidate positions and the virtual block; obtaining one or more CPMVs for the virtual block based on translational MVs at the first candidate position, the second candidate position, and the third candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs for the virtual block by using the same projection process used for inheritance candidate derivation; The method of claim 1 further comprising:
3. Independently scanning the plurality of scanning areas at the one or more scanning distances includes: Scanning a left scanning area and a top scanning area alternately to obtain one or more left building MV candidates and one or more top building MV candidates, the plurality of scanning areas including the left scanning area and the top scanning area; The method of claim 1.
4. Scanning the left scanning area and the top scanning area alternately to obtain the one or more left building MV candidates and the one or more top building MV candidates includes: scanning the left scanning area and the top scanning area alternately by alternately advancing a first left candidate position and a first top candidate position to obtain the one or more left building MV candidates and the one or more top building MV candidates; The method according to claim 3.
5. Scanning the left scanning area in a first direction perpendicular to a left side of the current block at a first scanning distance to obtain a first left building MV candidate; Scanning the top scanning area in a second direction perpendicular to a top side of the current block at a second scanning distance to obtain a first top building MV candidate; obtaining a first virtual block based on a first left candidate position of the first left building MV candidate and a first top candidate position of the first top building MV candidate; determining a first left-top candidate position for a first left-top building MV candidate based on the first left candidate position, the first top candidate position, and the first virtual block; obtaining the one or more CPMVs for the first virtual block based on translational MVs at the first left candidate position, the first top candidate position, and the first left-top candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the first virtual block by using the same projection process used for inheritance candidate derivation; The method of claim 3 further comprising:
6. progressively advancing the first top candidate position by the second scanning distance along the second direction to obtain one or more second top building MV candidates; Obtaining a second virtual block based on a second top candidate position and the first left candidate position of a second top building MV candidate; determining a second left-top candidate position for a second left-top building MV candidate based on the second top candidate position, the first left candidate position, and the second virtual block; obtaining the one or more CPMVs for the second virtual block based on translational MVs at the second top candidate position, the first left candidate position, and the second left-top candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the second virtual block by using the same projection process used for inheritance candidate derivation; The method of claim 5 further comprising:
7. The method of claim 6 , wherein the one or more second top building MV candidates include a second top building MV candidate at a distance of a maximum number of blocks away from a top side of the current block.
8. advancing the first left candidate position by the first scanning distance along the first direction to obtain a second left building MV candidate; obtaining a third virtual block based on the first top candidate position of the first top building MV candidate and the second left candidate position of the second left building MV candidate; determining a third left-top candidate position for a third left-top building MV candidate based on the second left candidate position, the first top candidate position, and the third virtual block; obtaining one or more CPMVs for the third virtual block based on translational MVs at the second left candidate position, the first top candidate position, and the third left-top candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the third virtual block by using the same projection process used for inheritance candidate derivation; The method of claim 6 further comprising:
9. progressively advancing the first top candidate position by the second scanning distance along the second direction to obtain one or more third top building MV candidates; Obtaining a fourth virtual block based on a third top candidate position and the second left candidate position of a third top building MV candidate; determining a fourth left-top candidate position for a fourth left-top building MV candidate based on the third top candidate position, the second left candidate position, and the fourth virtual block; obtaining one or more CPMVs for the fourth virtual block based on translational MVs at the third top candidate position, the second left candidate position, and the fourth left-top candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the fourth virtual block by using the same projection process used for inheritance candidate derivation; The method of claim 8 further comprising:
10. The method of claim 9 , wherein the one or more third top building MV candidates include a third top building MV candidate at a distance of a maximum number of blocks away from the top side of the current block.
11. The method of claim 1, wherein jointly scanning the multiple scanning areas at the one or more scanning distances includes pairwise scanning a left scanning area and a top scanning area to obtain multiple left building MV candidates and multiple top building MV candidates, and the multiple scanning areas include the left scanning area and the top scanning area.
12. advancing a left candidate position a first scanning distance from a left side of the current block along a first direction perpendicular to the left side to obtain a left building MV candidate; advancing a top candidate position a second scanning distance from a top side of the current block along a second direction perpendicular to the left side to obtain a top building MV candidate; obtaining a virtual block based on the left candidate position of the left building MV candidate and the top candidate position of the top building MV candidate; determining a top-left candidate position for a top-left building MV candidate based on the left candidate position, the top candidate position, and the virtual block; obtaining one or more CPMVs for the virtual block based on translational MVs at the first candidate position, the second candidate position, and the third candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the virtual block by using the same projection process used for inheritance candidate derivation; The method of claim 11 further comprising:
13. The method of claim 12 , wherein the first scanning distance is a width of the current block and the second scanning distance is a height of the current block.
14. 3. The method of claim 2, further comprising determining whether the virtual block is valid based on motion information at the first candidate position for the first building MV candidate, motion information at the second candidate position for the second building MV candidate, or motion information at the third candidate position for the third building MV candidate.
15. 15. The method of claim 14, further comprising: determining that the virtual block is valid in response to determining that a coding block located at the third candidate position for the third building MV candidate is coded in inter mode.
16. 15. The method of claim 14, further comprising: determining that the virtual block is not valid in response to determining that a coding block located at the first candidate position for the first building MV candidate or the second candidate position for the second building MV candidate is coded in intra mode or screen-content mode.
17. 1. A video encoding method, comprising: determining one or more candidate constructed motion vectors (MVs) from a plurality of non-adjacent blocks to a current block by jointly or independently scanning a plurality of scanning areas at one or more scanning distances, where one scanning distance indicates a number of blocks away from one side of the current block; obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more construction MV candidates; A method comprising:
18. scanning a first scanning area in a first direction perpendicular to a first side of the current block at a first scanning distance to determine a first construction MV candidate, the plurality of scanning areas including the first scanning area and a second scanning area, and the one or more scanning distances including the first scanning distance and a second scanning distance; scanning the second scanning area in a second direction perpendicular to a second side of the current block at the second scanning distance to determine second building MV candidates; obtaining a virtual block based on a first candidate position of the first construction MV candidate and a second candidate position of the second construction MV candidate; determining a third candidate position for a third construction MV candidate based on the first and second candidate positions and a virtual block; obtaining one or more CPMVs for the virtual block based on translational MVs at the first candidate position, the second candidate position, and the third candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs for the virtual block by using the same projection process used for inheritance candidate derivation; 20. The method of claim 17, further comprising:
19. Independently scanning the plurality of scanning areas at the one or more scanning distances includes: scanning a left scanning area and a top scanning area alternately to determine one or more left building MV candidates and one or more top building MV candidates, the plurality of scanning areas including the left scanning area and the top scanning area; 20. The method of claim 17.
20. Scanning the left scanning area and the top scanning area alternately to determine the one or more left building MV candidates and the one or more top building MV candidates includes: scanning the left scanning area and the top scanning area alternately by alternately advancing a first left candidate position and a first top candidate position to determine the one or more left building MV candidates and the one or more top building MV candidates; 20. The method of claim 19.
21. scanning the left scanning area in a first direction perpendicular to a left side of the current block at a first scanning distance to determine a first left building MV candidate; scanning the top scanning area in a second direction perpendicular to a top side of the current block at a second scanning distance to determine a first top building MV candidate; obtaining a first virtual block based on a first left candidate position of the first left building MV candidate and a first top candidate position of the first top building MV candidate; determining a first left-top candidate position for a first left-top building MV candidate based on the first left candidate position, the first top candidate position, and the first virtual block; obtaining the one or more CPMVs for the first virtual block based on translational MVs at the first left candidate position, the first top candidate position, and the first left-top candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the first virtual block by using the same projection process used for inheritance candidate derivation; 20. The method of claim 19, further comprising:
22. progressively advancing the first top candidate position by the second scanning distance along the second direction to determine one or more second top building MV candidates; Obtaining a second virtual block based on a second top candidate position and the first left candidate position of a second top building MV candidate; determining a second left-top candidate position for a second left-top building MV candidate based on the second top candidate position, the first left candidate position, and the second virtual block; obtaining the one or more CPMVs for the second virtual block based on translational MVs at the second top candidate position, the first left candidate position, and the second left-top candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the second virtual block by using the same projection process used for inheritance candidate derivation; 22. The method of claim 21 further comprising:
23. 23. The method of claim 22, wherein the one or more second top building MV candidates include a second top building MV candidate at a distance of a maximum number of blocks away from a top side of the current block.
24. advancing the first left candidate position by the first scanning distance along the first direction to determine a second left building MV candidate; obtaining a third virtual block based on the first top candidate position of the first top building MV candidate and the second left candidate position of the second left building MV candidate; determining a third left-top candidate position for a third left-top building MV candidate based on the second left candidate position, the first top candidate position, and the third virtual block; obtaining one or more CPMVs for the third virtual block based on translational MVs at the second left candidate position, the first top candidate position, and the third left-top candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the third virtual block by using the same projection process used for inheritance candidate derivation; 23. The method of claim 22, further comprising:
25. progressively advancing the first top candidate position by the second scanning distance along the second direction to determine one or more third top building MV candidates; Obtaining a fourth virtual block based on a third top candidate position and the second left candidate position of a third top building MV candidate; determining a fourth left-top candidate position for a fourth left-top building MV candidate based on the third top candidate position, the second left candidate position, and the fourth virtual block; obtaining one or more CPMVs for the fourth virtual block based on translational MVs at the third top candidate position, the second left candidate position, and the fourth left-top candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the fourth virtual block by using the same projection process used for inheritance candidate derivation; 25. The method of claim 24, further comprising:
26. 26. The method of claim 25, wherein the one or more third top building MV candidates include a third top building MV candidate at a distance of a maximum number of blocks away from the top side of the current block.
27. The method of claim 17, wherein jointly scanning the multiple scanning areas at the one or more scanning distances includes pairwise scanning a left scanning area and a top scanning area to determine a plurality of left building MV candidates and a plurality of top building MV candidates, the multiple scanning areas including the left scanning area and the top scanning area.
28. advancing a left candidate position a first scanning distance from a left side of the current block along a first direction perpendicular to the left side to determine a left building MV candidate; advancing a top candidate position a second scanning distance from a top side of the current block along a second direction perpendicular to the left side to determine a top building MV candidate; obtaining a virtual block based on the left candidate position of the left building MV candidate and the top candidate position of the top building MV candidate; determining a top-left candidate position for a top-left building MV candidate based on the left candidate position, the top candidate position, and the virtual block; obtaining one or more CPMVs for the virtual block based on translational MVs at the first candidate position, the second candidate position, and the third candidate position; obtaining the one or more CPMVs for the current block based on the one or more CPMVs of the virtual block by using the same projection process used for inheritance candidate derivation; 28. The method of claim 27, further comprising:
29. 30. The method of claim 28, wherein the first scanning distance is a width of the current block and the second scanning distance is a height of the current block.
30. 20. The method of claim 18, further comprising determining whether the virtual block is valid based on motion information at the first candidate position for the first building MV candidate, motion information at the second candidate position for the second building MV candidate, or motion information at the third candidate position for the third building MV candidate.
31. 31. The method of claim 30, further comprising: determining that the virtual block is valid in response to determining that a coding block located at the third candidate position for the third building MV candidate is coded in inter mode.
32. The method of claim 30, further comprising: determining that the virtual block is not valid in response to determining that a coding block located at the first candidate position for the first building MV candidate or the second candidate position for the second building MV candidate is coded in intra mode or screen-content mode.
33. 1. A video decoding method, comprising: Obtaining one or more motion vector (MV) candidates from one or more candidate lists according to a predetermined order, the one or more candidate lists including an affine advanced motion vector prediction (AMVP) candidate list, a regular merge candidate list, and an affine merge candidate list, the one or more MV candidates being from a plurality of neighboring blocks to a current block; obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more MV candidates; A method comprising:
34. The one or more MV candidates include one or more inherited non-adjacent MV candidates and one or more constructed non-adjacent MV candidates; The method comprises: obtaining the one or more inherited non-adjacent MV candidates from a plurality of non-proximate spatial neighboring blocks to the current block using an inheritance-based derivation method; obtaining the one or more constructed non-adjacent MV candidates from the plurality of non-adjacent spatially neighboring blocks using a construction-based derivation method; obtaining the one or more inherited non-adjacent MV candidates prior to the one or more constructed non-adjacent MV candidates from the affine AMVP candidate list; 34. The method of claim 33, further comprising:
35. The affine AMVP candidate list further includes one or more neighboring MV candidates, including one or more inherited neighboring MV candidates and one or more constructed neighboring MV candidates, the one or more neighboring MV candidates being obtained from a plurality of adjacent spatial neighboring blocks adjacent to the current block; The method further includes obtaining the one or more inherited non-adjacent MV candidates and the one or more constructed non-adjacent MV candidates subsequent to the one or more inherited adjacent MV candidates and the one or more constructed adjacent MV candidates from the affine AMVP candidate list.
35. The method of claim 34.
36. The affine AMVP candidate list further includes one or more temporal MV candidates obtained from a plurality of adjacent temporal neighboring blocks adjacent to the current block; The method further includes obtaining the one or more temporal MV candidates after the one or more constructed non-adjacent MV candidates or before the one or more inherited non-adjacent MV candidates from the affine AMVP candidate list.
36. The method of claim 35.
37. The affine AMVP candidate list further includes one or more translational MV candidates obtained from the plurality of adjacent spatial neighboring blocks; The method comprises: The following order: obtaining the one or more translational MV candidates subsequent to the one or more constructed non-adjacent MV candidates from the affine AMVP candidate list; obtaining the one or more translational MV candidates between the one or more inherited non-adjacent MV candidates and the one or more constructed non-adjacent MV candidates from the affine AMVP candidate list; or obtaining the one or more translational MV candidates prior to the one or more temporal MV candidates from the affine AMVP candidate list; 37. The method of claim 36, further comprising obtaining the one or more translational MV candidates from the affine AMVP candidate list according to one of:
38. the one or more MV candidates include one or more non-adjacent spatial motion vector prediction (MVP) candidates, one or more inherited non-adjacent MVP candidates, and one or more constructed non-adjacent MVP candidates; The method comprises: obtaining the one or more non-proximate spatial MVP candidates from a plurality of non-proximate spatial neighboring blocks to a current block; obtaining the one or more inherited non-adjacent MVP candidates from the plurality of non-adjacent spatially neighboring blocks using an inheritance-based derivation method; obtaining the one or more constructed non-adjacent MVP candidates from the plurality of non-adjacent spatially neighboring blocks using a construction-based derivation method; obtaining the one or more non-adjacent spatial MVP candidates prior to the one or more inherited non-adjacent MV candidates from the regular merge candidate list; obtaining the one or more inherited non-adjacent MV candidates prior to the one or more constructed non-adjacent MV candidates from the regular merge candidate list; 34. The method of claim 33, further comprising:
39. The one or more MV candidates include a plurality of constructed MV candidates, including one or more constructed adjacent MV candidates and one or more constructed non-adjacent MV candidates; The method further includes obtaining the one or more constructed adjacent MV candidates prior to the one or more constructed non-adjacent MV candidates from the affine merge candidate list.
34. The method of claim 33.
40. The one or more MV candidates include one or more first construction MV candidates obtained based on a plurality of spatially adjacent blocks, one or more second construction MV candidates obtained based on the plurality of spatially adjacent blocks, and a plurality of translational MVs; The method further includes obtaining the one or more first construction MV candidates prior to the one or more second construction MV candidates from the affine merge candidate list.
34. The method of claim 33.
41. 1. A video encoding method, comprising: determining one or more motion vector (MV) candidates from a plurality of neighboring blocks to a current block; inserting the one or more MV candidates into one or more candidate lists according to a predetermined order, the one or more candidate lists including an affine advanced motion vector prediction (AMVP) candidate list, a regular merge candidate list, and an affine merge candidate list; obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more MV candidates; A method comprising:
42. The one or more MV candidates include one or more inherited non-adjacent MV candidates and one or more constructed non-adjacent MV candidates; The method comprises: determining the one or more inherited non-adjacent MV candidates from a plurality of non-adjacent spatial neighboring blocks to the current block using an inheritance-based derivation method; determining the one or more constructed non-adjacent MV candidates from the plurality of non-adjacent spatially neighboring blocks using a construction-based derivation method; inserting the one or more inherited non-adjacent MV candidates before the one or more constructed non-adjacent MV candidates into the affine AMVP candidate list; 42. The method of claim 41, further comprising:
43. The affine AMVP candidate list further includes one or more neighboring MV candidates, including one or more inherited neighboring MV candidates and one or more constructed neighboring MV candidates, wherein the one or more neighboring MV candidates are determined from a plurality of adjacent spatial neighboring blocks adjacent to the current block; The method further includes inserting the one or more inherited non-adjacent MV candidates and the one or more constructed non-adjacent MV candidates after the one or more inherited adjacent MV candidates and the one or more constructed adjacent MV candidates into the affine AMVP candidate list.
43. The method of claim 42.
44. The affine AMVP candidate list further includes one or more temporal MV candidates determined from a plurality of adjacent temporal neighboring blocks adjacent to the current block; The method further comprises inserting the one or more temporal MV candidates after the one or more constructed non-adjacent MV candidates or after the one or more inherited non-adjacent MV candidates into the affine AMVP candidate list.
44. The method of claim 43.
45. the affine AMVP candidate list further includes one or more translational MV candidates determined from the plurality of adjacent spatial neighboring blocks; The method comprises: The following order: inserting the one or more translational MV candidates after the one or more constructed non-adjacent MV candidates into the affine AMVP candidate list; inserting the one or more translational MV candidates between the one or more inherited non-adjacent MV candidates and the one or more constructed non-adjacent MV candidates into the affine AMVP candidate list; or inserting the one or more translational MV candidates before the one or more temporal MV candidates into the affine AMVP candidate list; 45. The method of claim 44, further comprising inserting the one or more translational MV candidates into the affine AMVP candidate list according to one of:
46. the one or more MV candidates include one or more non-adjacent spatial motion vector prediction (MVP) candidates, one or more inherited non-adjacent MVP candidates, and one or more constructed non-adjacent MVP candidates; The method comprises: determining the one or more non-proximate spatial MVP candidates from a plurality of non-proximate spatial neighboring blocks to a current block; determining the one or more inherited non-adjacent MVP candidates from the plurality of non-adjacent spatially neighboring blocks using an inheritance-based derivation method; determining the one or more constructed non-adjacent MVP candidates from the plurality of non-adjacent spatially neighboring blocks using a construction-based derivation method; inserting the one or more non-adjacent spatial MVP candidates before the one or more inherited non-adjacent MV candidates into the regular merge candidate list; inserting the one or more inherited non-adjacent MV candidates before the one or more constructed non-adjacent MV candidates into the regular merge candidate list; 42. The method of claim 41, further comprising:
47. The one or more MV candidates include a plurality of constructed MV candidates, including one or more constructed adjacent MV candidates and one or more constructed non-adjacent MV candidates; The method further includes inserting the one or more constructed adjacent MV candidates before the one or more constructed non-adjacent MV candidates into the affine merge candidate list.
42. The method of claim 41.
48. The one or more MV candidates include one or more first construction MV candidates determined based on a plurality of spatially adjacent blocks, one or more second construction MV candidates determined based on the plurality of spatially adjacent blocks, and a plurality of translational MVs; The method further includes inserting the one or more first construction MV candidates before the one or more second construction MV candidates into the affine merge candidate list.
42. The method of claim 41.
49. 1. A video decoding device, comprising: one or more processors; a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors; The one or more processors are configured, when the instructions are executed, to perform a method according to any one of claims 1 to 16 and claims 33 to 40. Device.
50. 1. A video encoding device, comprising: one or more processors; a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors; The one or more processors are configured, when the instructions are executed, to perform a method according to any one of claims 17 to 32 and claims 41 to 48. Device.
51. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to receive a bitstream and perform a method according to any one of claims 1 to 16 and claims 33 to 40 based on the bitstream.
52. A non-transitory computer-readable storage medium for storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform the method of any one of claims 17 to 32 and claims 41 to 48 to encode a current block into a bitstream and transmit the bitstream.
