Candidate Derivation for Affine Merge Mode in Video Coding and Decoding
By deriving motion vector candidates from non-adjacent neighboring blocks and applying pruning and similarity checks, the method addresses the challenge of inaccurate affine merge candidates in video encoding, improving compression efficiency and quality.
Patent Information
- Application Number
- JP2024519344
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-29
- Filing Date
- 2022-09-29
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2042-09-29
AI Technical Summary
Existing video encoding and decoding standards, such as VVC and AVS3, face challenges in accurately deriving affine merge candidates for affine motion prediction modes, leading to suboptimal compression efficiency and quality.
The method involves obtaining motion vector candidates from non-adjacent neighboring blocks based on defined scan distances and distances, and using these to derive control point motion vectors, while incorporating pruning and similarity checks to enhance the diversity and accuracy of affine merge candidates.
This approach improves the accuracy of motion vectors in affine merge modes, enhancing video compression efficiency and quality by expanding the candidate pool beyond adjacent blocks, thereby reducing redundancy and improving bit rate savings.
Smart Images

Figure 2024533775000001
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to U.S. Provisional Patent Application No. 63 / 250,184, filed September 29, 2021, and entitled "Candidate Derivation for Affine Merge Mode in Video Coding," the entire contents of which are incorporated herein by reference. [Technical field]
[0002] FIELD This disclosure relates to video encoding / decoding 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]
[0003] Various video encoding and decoding techniques can be used to compress video data. Video encoding and decoding is performed according to one or more video encoding and decoding standards. For example, some well-known video encoding and decoding standards today include Generic Video Coding and Decoding (VVC), High Efficiency Video Coding and Decoding (HEVC, also known as H.265 or MPEG-H Part 2), and Advanced Video Coding and Decoding (AVC, also known as H.264 or MPEG-4 Part 10), jointly developed by ISO / IEC MPEG and ITU-T VECG. AO Media Video 1 (AV1) was developed by the Alliance for Open Media (AOM) as a successor to the predecessor standard VP9. Audio Video Coding and Decoding (AVS), referring to digital audio and digital video compression standards, is another video compression standard series developed by the Chinese Audio and Video Coding Standards Workgroup. Many of the existing video encoding and decoding standards are built on the well-known hybrid video encoding and decoding framework, such as 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 compress the energy of prediction errors, etc. One important goal of video encoding and decoding technology is to compress video data into a format that uses a lower bit rate while avoiding or minimizing the degradation of video quality.
[0004] The first generation of AVS standards includes the Chinese national standard "Information Technology, Advanced Audio-Video Coding and Decoding, Part 2: Video" (known as AVS1) and "Information Technology, Advanced Audio-Video Coding and Decoding, Part 16: Radio-Television Video" (known as AVS+). Compared with the MPEG-2 standard, it can save about 50% bitrate with the same perceptual quality. The video part of the AVS1 standard was promulgated as a Chinese national standard in February 2006. The second generation of AVS standards includes a series of Chinese national standards "Information Technology, Efficient Multimedia Coding" (also simply called AVS2), which is mainly targeted at the transmission of additional HD TV programs. The coding efficiency of AVS2 is twice that of AVS+. In May 2016, AVS2 was published as a Chinese national standard. Meanwhile, the video part of the AVS2 standard was submitted by the Institute of Electrical and Electronics Engineers (IEEE) as one of the international standards for applications. The AVS3 standard is a new generation of video coding and decoding standard for UHD video applications, aiming to exceed the coding efficiency of the latest international standard HEVC. In March 2019, the 68th AVS Conference finalized the AVS3-P2 baseline, which saves about 30% bitrate over the HEVC standard. Currently, there is one reference software called High Performance Model (HPM), which is maintained by the AVS group to demonstrate the reference implementation of the AVS3 standard. Summary of the Invention
[0005] This disclosure provides example techniques for improving affine merge candidate derivation for affine motion prediction modes in a video encoding or decoding process.
[0006] In a first aspect of the present disclosure, a method of video decoding is provided. The method may include obtaining one or more motion vector candidates from a plurality of non-adjacent neighboring blocks of a current block based on at least one scanning distance, where one of the at least one scanning distance may indicate a number of blocks away from a side of the current block, and the number is a positive integer. Furthermore, the method may include obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more motion vector candidates.
[0007] In a second aspect of the present disclosure, there is provided a method for video encoding, which may include determining one or more motion vector candidates from a plurality of non-adjacent neighboring blocks of a current block based on at least one scanning distance, where one of the at least one scanning distances may indicate a number of blocks away from a side of the current block, and the number is a positive integer. Furthermore, the method may include obtaining one or more CPMVs of the current block based on the one or more motion vector candidates.
[0008] In a third aspect of the present disclosure, there is provided an apparatus for video decoding, the apparatus comprising one or more processors and a memory configured to store instructions executable by the one or more processors, the one or more processors further configured to, upon execution of the instructions, perform a method according to the first aspect.
[0009] In a fourth aspect of the present disclosure, there is provided an apparatus for video encoding, the apparatus comprising one or more processors and a memory configured to store instructions executable by the one or more processors, the one or more processors further configured to, upon execution of the instructions, perform a method according to the second aspect.
[0010] In a fifth aspect of the present disclosure, there is provided 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 perform a method according to the first aspect.
[0011] In a sixth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium 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 aspect. [Brief description of the drawings]
[0012] The embodiments of the present disclosure will be more particularly described with reference to specific embodiments illustrated in the accompanying drawings, which are considered to be merely illustrative of some embodiments and are not to be considered limiting in scope, and which will be used to explain those embodiments with additional specificity and detail.
[0013] [Figure 1] FIG. 2 is a block diagram of an encoder according to some embodiments of the present disclosure. [Diagram 2] FIG. 2 is a block diagram of a decoder according to some embodiments of the present disclosure. [Figure 3A] FIG. 2 illustrates a block partition of a multi-type tree structure according to some embodiments of the present disclosure. [Figure 3B] FIG. 2 illustrates a block partition of a multi-type tree structure according to some embodiments of the present disclosure. [Figure 3C] FIG. 2 illustrates a block partition of a multi-type tree structure according to some embodiments of the present disclosure. [Figure 3D] FIG. 2 illustrates a block partition of a multi-type tree structure according to some embodiments of the present disclosure. [Figure 3E] FIG. 2 illustrates a block partition of a multi-type tree structure according to some embodiments of the present disclosure. [Figure 4A]1 illustrates a four-parameter affine model according to some embodiments of the present disclosure. [Figure 4B] 1 illustrates a four-parameter affine model according to some embodiments of the present disclosure. [Diagram 5] 1 illustrates a six-parameter affine model according to some embodiments of the present disclosure. [Figure 6] 1 illustrates adjacent neighboring blocks of inherited affine merging candidates in accordance with some embodiments of the present disclosure. [Figure 7] 1 illustrates adjacent neighboring blocks of constructed affine merge candidates in accordance with some embodiments of the present disclosure. [Figure 8] 1 illustrates non-adjacent neighboring blocks of inherited affine merging candidates, in accordance with some embodiments of the present disclosure. [Figure 9] FIG. 13 illustrates the derivation of constructed affine merge candidates using non-adjacent neighboring blocks, in accordance with some embodiments of the present disclosure. [Figure 10] 1 illustrates a vertical scan of non-adjacent neighboring blocks according to some embodiments of the present disclosure. [Figure 11] 1 illustrates parallel scanning of non-adjacent neighboring blocks according to some embodiments of the present disclosure. [Figure 12] 1 illustrates a combination of vertical and parallel scanning of non-adjacent neighboring blocks according to some embodiments of the present disclosure. [Figure 13A] 1 illustrates a neighboring block having the same size as a current block, in accordance with some embodiments of the present disclosure. [Figure 13B] 1 illustrates neighboring blocks having a different size than the current block, in accordance with some embodiments of the present disclosure. [Figure 14A] 13 illustrates an example in which the block to the lower left or upper right of the bottom-most or right-most block in the previous distance is used as the bottom-most or right-most block in the current distance, according to some embodiments of the present disclosure. [Figure 14B] 13 illustrates an example in which the block to the left or top of the bottom-most or right-most block in the previous distance is used as the bottom-most or right-most block in the current distance, according to some embodiments of the present disclosure. [Figure 15A] 13 illustrates scan positions at the bottom-left and top-right positions used for the top non-adjacent neighboring block and the left non-adjacent neighboring block, according to some embodiments of the present disclosure. [Figure 15B] 13 illustrates a scan position at the bottom right position used for both the upper non-adjacent neighboring block and the left non-adjacent neighboring block, according to some embodiments of the present disclosure. [Figure 15C] 13 illustrates a scan position at the bottom left position used for both the upper non-adjacent neighboring block and the left non-adjacent neighboring block in accordance with some embodiments of the present disclosure. [Figure 15D] 13 illustrates a scan position at the top right position used for both the upper non-adjacent neighboring block and the left non-adjacent neighboring block, according to some embodiments of the present disclosure. [Figure 16] 1 illustrates a simplified scanning process for deriving constructed merge candidates according to some embodiments of the present disclosure. [Figure 17A] 1 illustrates spatial neighboring blocks from which inherited affine merge candidates are derived, according to some embodiments of the present disclosure. [Figure 17B] 1 illustrates spatial neighborhood blocks from which constructed affine merge candidates are derived, according to some embodiments of the present disclosure. [Figure 18] FIG. 1 illustrates a computing environment coupled to a user interface in accordance with some embodiments of the present disclosure. [Figure 19] 1 is a flowchart illustrating a method of video encoding and decoding according to some embodiments of the present disclosure. [Figure 20] FIG. 1 is a block diagram illustrating a system for encoding and decoding video blocks in accordance with some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Reference will now be made in detail to specific embodiments, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details are set forth in order to provide a thorough understanding of the subject matter disclosed herein. However, it will be apparent to one skilled in the art that various alternative embodiments may be used. For example, it will be apparent to one skilled in the art that the subject matter disclosed herein may be implemented in multiple types of electronic devices having digital video capabilities.
[0015] Throughout this specification, reference to "one embodiment," "one embodiment," "one example," "some embodiments," "some examples," or similar terminology means 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 also applicable to other embodiments, unless expressly stated otherwise.
[0016] Throughout this disclosure, all terms such as "first," "second," "third," etc. are used solely as nomenclature to refer to related elements, e.g., devices, components, compositions, steps, etc., without implying any spatial or chronological order, unless otherwise specified. For example, a "first device" and a "second device" may refer to two separately formed devices or two parts, components, or operational states of the same device, and may be arbitrarily named.
[0017] The terms "module," "sub-module," "circuit," "sub-circuit," "circuit system," "sub-circuit system," "unit," or "sub-unit" may include memory (shared, dedicated, or group) that stores code or instructions executable 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. These components may or may not be physically attached to each other or located adjacent to each other.
[0018] As used herein, the terms "if" or "when" may be understood to mean "when" or "depending on," depending on the context. These terms, when they appear in the claims, may not indicate that the associated limitation or feature is conditional or optional. For example, a method may include: i) performing function or action X' if or if condition X exists; and ii) performing function or action Y' if or if condition Y exists. The method may be implemented by 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 realized in multiple executions of the method at different times.
[0019] A unit or module may be implemented entirely in software, entirely in hardware, or by a combination of hardware and software. In an entirely software implementation, for example, a unit or module may include functionally related code blocks or software components that are directly or indirectly linked to perform a particular function.
[0020] Figure 20 is a block diagram illustrating an example system 10 for concurrent encoding and decoding of video blocks according to some embodiments of the present disclosure. As shown in Figure 20, system 10 includes a source device 12 that generates and encodes video data that is subsequently decoded by a destination device 14. Source device 12 and destination device 14 may include any of a variety of electronic devices, including desktop or laptop computers, tablet computers, smartphones, set-top boxes, digital televisions, cameras, displays, digital media players, video game consoles, video streaming devices, etc. In some embodiments, source device 12 and destination device 14 are equipped with wireless communication capabilities.
[0021] In some embodiments, destination device 14 may receive the encoded video data to be decoded via link 16. Link 16 may include any type of communication medium or device capable of moving encoded video data from source device 12 to destination device 14. In one embodiment, link 16 may include a communication medium that allows source device 12 to transmit encoded video data directly to 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 destination device 14. The communication medium may include any wireless communication medium 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 routers, switches, base stations, or any other equipment that may be useful in facilitating communication from source device 12 to destination device 14.
[0022] In some other embodiments, the encoded video data may be transmitted from output interface 22 to storage device 32. The encoded video data in storage device 32 may then be accessed by destination device 14 via input interface 28. 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 that stores encoded video data. In further embodiments, storage device 32 may correspond to a file server or other intermediate storage device that may store the encoded video data generated by source device 12. Destination device 14 may access the stored video data from storage device 32 via streaming or download. The file server may be any type of computer capable of storing the encoded video data and transmitting the encoded video data to destination device 14. Exemplary file servers include a web server (e.g., for a website), a file transfer protocol (FTP) server, a network attached storage (NAS) device, or a local disk drive. 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), a cable modem, etc.), or a combination of both, suitable for accessing the encoded video data stored on a file server. The transmission of the encoded video data from storage device 32 may be a streaming transmission, a download transmission, or a combination of both.
[0023] As shown in Fig. 20, source device 12 includes a video source 18, a video encoder 20, and an output interface 22. Video source 18 may include sources such as a video capture device, such as a video camera, a video archive containing previously captured video, a video feed interface receiving video from a video content provider, and / or a computer graphics system generating computer graphics data as source video, or a combination of these sources. As an example, if video source 18 is a video camera in a security surveillance system, source device 12 and destination device 14 may form a camera phone or video phone. However, the embodiments described herein may be applicable to video encoding and decoding in general, and may also be applicable to wireless and / or wired applications.
[0024] 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 alternatively) be stored in storage device 32 for later access and decoding and / or playback by destination device 14 or another device. Output interface 22 may further include a modem and / or a transmitter.
[0025] Destination device 14 includes an input interface 28, a video decoder 30, and a display device 34. Input interface 28 may include a receiver and / or modem to receive encoded video data over link 16. The encoded video data communicated over link 16 or provided to storage device 32 may include various syntax elements generated by video encoder 20 that are used by video decoder 30 in decoding the video data. Such syntax elements may be included within the encoded video data that is transmitted over a communications medium, stored on a storage medium, or stored on a file server.
[0026] In some embodiments, destination device 14 may include a display device 34, which may be an integrated display device and 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 other types of display devices.
[0027] Video encoder 20 and video decoder 30 may operate according to proprietary or industry standards, such as, for example, VVC, HEVC, MPEG-4, Part 10, AVC, or extensions of those standards. It should be understood that the present application is not limited to a particular video encoding / decoding standard, but is applicable to other video encoding / decoding standards. It is contemplated that video encoder 20 of source device 12 may generally be configured to encode video data according to any of these current or future standards. Similarly, it is contemplated that video decoder 30 of destination device 14 may generally be configured to decode video data according to any of these current or future standards.
[0028] Each of the video encoder 20 and the video decoder 30 may 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. If implemented partially in software, the 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 the video encoder 20 and the video decoder 30 may be included in one or more encoders or decoders, or any may be integrated within the respective device as part of a combined encoder / decoder (CODEC).
[0029] Similar to HEVC, VVC is built on a block-based hybrid video encoding and decoding framework. FIG. 1 is a block diagram illustrating a block-based video encoder according to some embodiments of the present disclosure. In the encoder 100, an input video signal is processed by blocks called coding units (CUs). The encoder 100 may be a video encoder 20 as shown in FIG. 20. In VTM-1.0, a CU can be up to 128×128 pixels. However, unlike HEVC, which divides blocks based on quadtrees only, in VVC, one coding tree unit (CTU) is divided into CUs based on quadtrees / binary trees / tertile trees to adapt to different local characteristics. Furthermore, the concept of multiple division unit types in HEVC is removed, i.e., the separation of CUs, prediction units (PUs), and transform units (TUs) no longer exists in VVC, instead, each CU is always used as a basic unit for both prediction and transformation without further division. In the multi-type tree structure, first, one CTU is divided by a quadtree structure. Each quadtree leaf node can then be further divided by binary and ternary tree structures.
[0030] 3A-3E are schematic diagrams illustrating a multi-type tree partition mode according to some embodiments of the present disclosure. Each of FIGs. 3A-3E illustrates five partition types, including 4-partition (FIG. 3A), vertical 2-partition (FIG. 3B), horizontal 2-partition (FIG. 3C), vertical extended 3-partition (FIG. 3D), and horizontal extended 3-partition (FIG. 3E).
[0031] For each given video block, spatial prediction and / or temporal prediction may be performed. Spatial prediction (or "intra prediction") predicts the current video block using pixels from samples (called reference samples) of already coded neighboring blocks in the same video picture / slice. Spatial prediction reduces spatial redundancy inherent in video signals. Temporal prediction (also called "inter prediction" or "motion compensated prediction") predicts the current video block using reconstructed pixels from already coded video pictures. Temporal prediction reduces temporal redundancy inherent in video signals. The temporal prediction signal for a given CU is typically signaled by one or more motion vectors (MVs) that indicate the amount and direction of motion between the current CU and its temporal reference. Also, 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 is from.
[0032] After spatial prediction and / or temporal prediction, an intra / inter mode decision circuit 121 of the encoder 100 selects an optimal 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 obtained prediction residual is decorrelated using the transform circuit 102 and the quantization circuit 104. The obtained 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 to the prediction block to form a reconstructed signal of the CU. Furthermore, in-loop filtering 115, such as a deblocking filter, a sample adaptive offset (SAO), and / or an adaptive in-loop filter (ALF), can be applied to the reconstructed CU before it is put into a reference picture store of a picture buffer 117 and used to encode future video blocks. To form the output video bitstream 114, Forecast related information 110( Coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients etc.) are all sent to the entropy coding unit 106 where they are further compressed and packed to form a bitstream.
[0033] For example, deblocking filters are available in the latest versions of AVC, HEVC, and VVC. In HEVC, an additional in-loop filter called SAO has been defined to further improve coding efficiency. For the latest version of the VVC standard, another in-loop filter called ALF is being actively researched and is likely to be included in the final standard.
[0034] These in-loop filter operations are selectable. Performing these operations helps improve coding efficiency and visual quality. These operations may be turned off as a decision provided by the encoder 100 to reduce computational complexity.
[0035] Note that when these filter options are turned on by the encoder 100, intra prediction is typically based on unfiltered reconstructed pixels, whereas inter prediction is based on filtered reconstructed pixels.
[0036] FIG. 2 is a block diagram showing a block-based video decoder 200 that can be used in combination with many video encoding and decoding standards. The decoder 200 is similar to the reconstruction-related parts present in the encoder 100 of FIG. 1. The block-based video decoder 200 may be a video decoder 30, as shown in FIG. 20. In the decoder 200, an input video bitstream 201 is first decoded by an entropy decoding 202 to derive quantized coefficient levels and prediction-related information. The quantized coefficient levels are then processed by an inverse quantization 204 and an inverse transform 206 to obtain a reconstructed prediction residual. A block predictor mechanism implemented in an intra / inter mode selection 212 is configured to perform intra prediction 208 or motion compensation 210 based on the decoded prediction information. An unfiltered reconstructed pixel set is obtained by adding the reconstructed prediction residual from the inverse transform 206 and the prediction output generated by the block predictor mechanism using an adder 214.
[0037] The reconstructed blocks may further pass through an in-loop filter 209 before being stored in a picture buffer 213, which acts as a reference picture store. The reconstructed video in the picture buffer 213 may be used to predict future video blocks as well as transmitted to drive a display device. If the in-loop filter 209 is turned on, it performs a filtering operation on these reconstructed pixels to derive the final reconstructed video output 222.
[0038] In the current VVC and AVS3 standards, the motion information of the current coding block is copied from a spatial or temporal neighboring block identified by a merge candidate index, or obtained by explicit signaling of motion estimation. The focus of this disclosure is to improve the accuracy of the motion vector of the affine merge mode by improving the derivation method of the affine merge candidate. To facilitate the description of this disclosure, the existing affine merge mode design in the VVC standard is used as an example to explain the proposed idea. It should be noted that although the existing affine mode design in the VVC standard is used as an example throughout this disclosure, it is obvious to those skilled in the art that the proposed technology can also be applied to different designs of affine motion prediction modes or other coding tools with the same or similar design ideas.
[0039] Affine Mode In HEVC, only the translational motion model is applied to the motion compensated prediction. In the real world, there are various motions, such as zoom in / zoom out, rotation, viewpoint 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 to the inter prediction. In the current VVC and AVS3 design, two affine modes, including a 4-parameter affine mode and a 6-parameter affine mode, are supported for one affine-coded block.
[0040] In the four-parameter affine model, there are two parameters used for horizontal and vertical translational motions, one parameter used for zoom motion, and one parameter used for rotational motions in 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 better align the motion vectors and affine parameters, these affine parameters are 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 and 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 ) is written as follows:
number
[0041] In the six-parameter affine mode, there are two parameters used for horizontal and vertical translational motion, two parameters used for horizontal zoom and rotational motion, and another two parameters used for vertical zoom and rotational motion. The six-parameter affine motion model is coded by three CPMVs. As shown in FIG. 5, the three control points of one six-parameter affine block are located at the top left corner, top right corner and bottom left corner of the block. The top left control point motion is related to translational motion, the top right control point motion is related to horizontal rotation and zoom motion, and the bottom left control point motion is related to vertical rotation and zoom motion. Compared with the four-parameter affine motion model, the horizontal rotation and zoom motion of the six-parameter affine motion may not be the same as the vertical motion. Suppose (v0,v1,v2) are the MVs of the top left corner, top right corner and bottom left corner of the current block in FIG. 5, the motion vectors (v x ,v y ) is derived using the three MVs of the control point as follows:
number
[0042] Affine Merge Mode In affine merge mode, the CPMV of the current block is not explicitly signaled but is derived from neighboring blocks. Specifically, in this mode, motion information of spatially neighboring blocks is used to generate the CPMV of the current block. The candidate list for affine merge mode has a finite size. For example, in the current VVC design, there can be up to five candidates. The encoder may evaluate and select the best candidate index based on a rate-distortion optimization algorithm. The selected candidate index is then signaled to the decoder side. The affine merge candidate can be determined in three ways. In the first method, the affine merge candidate may be inherited from the neighboring affine coded blocks. In the second method, the affine merge candidate is constructed from the translation MV from the neighboring blocks. In the third method, the zero MV is used as the affine merge candidate.
[0043] There can be up to two candidates for the inheritance method, which are taken from a neighboring block located at the bottom left of the current block (e.g., as shown in FIG. 6, the scanning order is from A0 to A1) and a neighboring block located at the top right of the current block (e.g., as shown in FIG. 6, the scanning order is from B0 to B2), if available.
[0044] In the construction method, the candidates are combinations of the translational MVs of neighboring blocks and may be generated in the following two steps.
[0045] In step 1, four translational MVs, including MV1, MV2, MV3 and MV4, are obtained from the available neighboring blocks. For MV1, it is the MV from one of the three neighboring blocks close to the top-left corner of the current block. As shown in Figure 7, the scan order is B2, B3, A2. For MV2, it is the MV from one of the two neighboring blocks close to the top right corner of the current block. As shown in Figure 7, the scan order is B1, B0. For MV3, it is the MV from one of the two neighboring blocks close to the bottom left corner of the current block. As shown in Figure 7, the scan order is A1, A0. For MV4, the MV is from the temporally aligned block of the neighboring block that is close to the bottom right corner of the current block. As shown in the figure, the neighboring block is T.
[0046] In step 2, combinations are derived based on the four translational MVs from step 1. Combination 1 is MV1, MV2, and MV3. Combination 2 is MV1, MV2, and MV4. Combination 3 is MV1, MV3, and MV4. Combination 4 is MV2, MV3, and MV4. Combination 5 is MV1, MV2. Combination 6 is MV1, MV3.
[0047] After being filled with inheritance and construction candidates, if the merge candidate list is not full, insert zero MV at the end of the list.
[0048] In current video standards VVC and AVS, for inheritance and construction candidates, respectively, only the immediate neighboring blocks are used to derive affine merging candidates for the current block, as shown in Figures 6 and 7. To increase the diversity of merging candidates and further explore spatial correlation, the coverage of the neighboring blocks is extended from adjacent regions directly to non-adjacent regions.
[0049] In this disclosure, the candidate derivation process of the affine merge mode is extended by using not only adjacent neighboring blocks but also non-adjacent neighboring blocks. The detailed method may be summarized into three aspects, including pruning of affine merge candidates, non-adjacent neighboring block-based derivation process of inherited affine merge candidates, and non-adjacent neighboring block-based derivation process of constructed affine merge candidates.
[0050] Pruning Affine Merge Candidates Since the affine merge candidate list in common video coding standards usually has a finite size, candidate pruning is an essential process to remove redundant candidates. This pruning process is necessary for both inheritance and construction candidates of affine merges. As explained in the introduction section, the CPMV of the current block is directly used for affine motion compensation. Instead, the CPMV needs to be transformed into a translational MV at the position of each sub-block in the current block. The transformation process is performed according to a general affine model, as shown below.
number
[0051] where (a,b) are delta translation parameters, (c,d) are horizontal delta zoom and rotation parameters, (e,f) are vertical delta zoom and rotation parameters, (x,y) are the horizontal and vertical distances (e.g., the coordinates (x,y) shown in FIG. 5) of the pivot position (e.g., center or top-left corner) of the sub-block relative to the top-left corner of the current block, and (v x ,v y ) is the target translation MV of the subblock.
[0052] For a six-parameter affine model, three CPMVs are available, called V0, V1, and V2. Then, the six model parameters, a, b, c, d, e, and f, can be calculated as follows:
number
[0053] For a four-parameter affine model, if the top-left and top-right corner CPMVs, called V0 and V1, are available, the six parameters a, b, c, d, e, and f can be calculated as follows:
number
[0054] For the four-parameter affine model, if the top-left corner CPMV and the bottom-left corner CPMV, called V0 and V2, are available, the six parameters a, b, c, d, e, and f can be calculated as follows:
number
[0055] In the above equations (4), (5), and (6), w and h represent the width and height of the current block, respectively.
[0056] When two merge candidate sets of CPMV are compared for redundancy check, it is proposed to check the similarity of six affine model parameters. Therefore, the candidate pruning process can be performed in two steps.
[0057] In step 1, given two candidate sets of CPMVs, affine model parameters corresponding to each candidate set are derived. More specifically, the two candidate sets of CPMVs may be represented by two sets of affine model parameters, e.g., (a1, b1, c1, d1, e1, f1) and (a2, b2, c2, d2, e2, f2).
[0058] In step 2, a similarity check between the two sets of affine model parameters is performed based on one or more predefined thresholds. In one embodiment, if the absolute values of (a1-a2), (b1-b2), (c1-c2), (d1-d2), (e1-e2) and (f1-f2) are all less than a positive threshold, such as value 1, then the two candidates are considered to be similar and one of them can be pruned / removed from the merge candidate list.
[0059] In some embodiments, the division or right shift operation in step 1 may be removed to simplify the computations in the CPMV pruning process.
[0060] JPEG2024533775000056.jpg21165
number
[0061] If 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 may be transformed to take into account the effects of width and height. For example, in the case of equation (5), the approximate model parameters of c', d', e', and f' may be calculated based on the following equation (8). In the case of equation (6), the approximate model parameters of c', d', e', and f' may be calculated based on the following equation (9).
number
number
[0062] JPEG2024533775000060.jpg25166
[0063] In step 2 above, a threshold is needed to evaluate the similarity between the two candidate sets of CPMV. There may be multiple ways to define the threshold. In one embodiment, the threshold may be defined for each comparable parameter. Table 1 is an example of this embodiment, showing the threshold defined for each comparable model parameter. In another embodiment, the threshold may be defined taking into account the size of the current coding block. Table 2 is an example of this embodiment, showing the threshold defined by the size of the current coding block.
[0064] [Table 1]
[0065] [Table 2]
[0066] In another embodiment, the thresholds may be defined taking into account 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.
[0067] [Table 3]
[0068] [Table 4]
[0069] In another embodiment, the threshold may be defined as a set of fixed values. In another embodiment, the threshold may be defined by any combination of the above embodiments. In one embodiment, the threshold is determined by various parameters, the weight of the current block and Width andThe thresholds may be defined by taking into account the height of the current coding block. Table 5 is an example of this embodiment, showing the thresholds defined by the height of the current coding block. Note that in any of the above proposed embodiments, the comparable parameters may represent any of the parameters defined in any of Equations (4) to (9), as appropriate.
[0070] [Table 5]
[0071] Advantages of using the transformed affine model parameters for candidate redundancy checking include creating a unified similarity checking process for candidates with different affine model types, e.g., 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; taking into account the different influences of each CPMV in the merge candidate when deriving the target MV in each sub-block; and providing the importance of the similarity of the two affine merge candidates relative to the width and height of the current block.
[0072] Inherited non-adjacent neighborhood block based derivation process of affine merging candidates For inherited merge candidates, the non-adjacent neighborhood based derivation process may be performed in three steps: Step 1 is used to scan the candidates, Step 2 is used to project the CPMV, and Step 3 is used to prune the candidates.
[0073] In step 1, scan and select non-adjacent neighboring blocks in the following manner.
[0074] Scanning Area and Distance In some embodiments, the non-adjacent neighboring blocks may be scanned from the left and top regions of 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 edge of the current coding block.
[0075] As shown in Figure 8, multiple lines of non-adjacent neighboring 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 edge of the current block. For example, an area with "distance 2" at the left edge of the current block indicates that the candidate neighboring block located in this area is two blocks away from the current block. Similar instructions may be applied to other scanning areas with different distances.
[0076] In one or more embodiments, the non-adjacent neighboring blocks at each distance may have the same block size as the current coding block, as shown in FIG. 13A. As shown in FIG. 13A, the non-adjacent neighboring block 1301 on the left side and the non-adjacent neighboring block 1302 on the top side have the same size as the current block 1303. In some embodiments, as shown in FIG. 13B, the non-adjacent neighboring blocks at each distance may have a different block size than the current coding block. Neighboring block 1304 is an adjacent neighboring block to the current block 1303. As shown in FIG. 13B, the non-adjacent neighboring block 1305 on the left side and the non-adjacent neighboring block 1306 on the top side are adjacent to the current block 1307. different Neighborhood blocks 1308 are adjacent neighboring blocks to the current block 1307.
[0077] If the non-adjacent neighboring blocks at each distance have the same block size as the current coding block, the value of the block size is adaptively changed according to the division granularity for each different region in the image. If the non-adjacent neighboring blocks at each distance have a different block size than the current coding block, the value of the block size may be predefined as a constant value such as 4×4, 8×8, or 16×16. The 4×4 non-adjacent motion field shown in Figures 10 and 12 is an example of this case, and the motion field may be considered as a special case of a sub-block, but is not limited thereto.
[0078] Similarly, the non-adjacent coding blocks shown in Figure 11 may also have different sizes. In one embodiment, the non-adjacent coding blocks may have the same size as the current coding block, which may be adaptively changed. In another embodiment, the non-adjacent coding blocks may have a predefined size, including a fixed value such as 4x4, 8x8, or 16x16.
[0079] Based on the defined scan distance, the total size of the scan area either to the left or above the current encoding clock may be determined by a configurable distance value. In one or more embodiments, the maximum scan distances for the left and top sides may use the same value or different values. A-Figure 13B shows an example where the maximum distances for both the left and top edges share the same value of 2. The maximum scanning distance value may be determined by the encoder side and signaled in the bitstream. Alternatively, the maximum scanning distance value may be predefined as a fixed value, such as value 2 or 4. If the maximum scanning distance is predefined as value 4, it indicates that the scanning process ends on a first-come, first-served basis when the candidate list is full or when all non-adjacent neighboring blocks with distance at most 4 have been scanned.
[0080] In one or more embodiments, within each scan region at a particular distance, the starting neighborhood block and the ending neighborhood block may be positionally related.
[0081] In some embodiments, for the left side scanning area, the starting neighbor block may be the neighboring bottom-left block of the starting neighbor block of the neighbor scanning area with a smaller distance. For example, as shown in FIG. 8, the starting neighbor block of the "distance 2" scanning area on the left side of the current block is the neighboring bottom-left block of the starting neighbor block of the "distance 1" scanning area. The ending neighbor block is the neighboring bottom-left block of the ending neighbor block of the upper scanning area with a smaller distance. above For example, as shown in FIG. 8, the end neighbor block of the "distance 2" scanning area on the left side of the current block may be the adjacent left block of the end neighbor block of the "distance 1" scanning area above the current block. above It is a side neighboring block.
[0082] Similarly, for a top-side scanning area, the starting neighboring block may be the neighboring top-right block of the starting neighboring block of the adjacent scanning area with the smaller distance, and the ending neighboring block may be the neighboring top-left block of the ending neighboring block of the adjacent scanning area with the smaller distance.
[0083] Traversal Order When neighboring blocks are scanned in a non-contiguous region, the selection of neighboring blocks to be scanned may be determined according to a certain order and / or rules.
[0084] In some embodiments, the left region may be scanned first, and then the upper region may be scanned. As shown in FIG. 8, the left side 3-line non-adjacent region (e.g., from distance 1 to distance 3) may be scanned first, and then the upper 3-line non-adjacent region of the current block may be scanned.
[0085] In some embodiments, the left region and the upper region may be scanned alternately, for example, first scanning the left scan region with "distance 1", and then scanning the upper region with "distance 1", as shown in FIG.
[0086] For the scanning areas located on the same side (such as the left side area or the upper area), the scanning order is from the area with the smallest distance to the area with the largest distance. This order can be flexibly combined with other embodiments of the scanning order. For example, the left side area and the upper area can be scanned alternately, and the order for the areas on the same side is scheduled to be from the smallest distance to the largest distance.
[0087] Within each scan region at a particular distance, a scan order may be defined. In one embodiment, for the left scan region, scanning may start from the bottom neighbor block to the top neighbor block. For the top scan region, scanning may start from the right block to the left block.
[0088] Scan End For the inherited merge candidates, the neighboring blocks coded in affine mode are defined as suitable candidates. In some embodiments, the scanning process may be performed in an alternating manner. For example, the scanning performed in a particular region at a certain distance may be stopped when the first X suitable candidates are identified, where X is a predefined positive value. For example, as shown in FIG. 8, the scanning in the left scanning region with distance 1 may be stopped when the previous one or more suitable candidates are identified. Then, the next iteration of the scanning process is started by targeting another scanning region controlled by a predefined scanning order / rule.
[0089] In some embodiments, the scanning process may be performed continuously, for example, the scanning performed in a particular area at a particular distance may stop when all covered neighboring blocks have been scanned and no more suitable candidates are identified, or a maximum allowed number of candidates has been reached.
[0090] During the candidate scanning process, the non-adjacent neighboring blocks of each candidate are determined and scanned by the proposed scanning method. For easier implementation, the non-adjacent neighboring blocks of each candidate can be indicated or located by a specific scanning position. After the proposed method determines a specific scanning area and distance, the scanning position can be determined accordingly based on the following method.
[0091] In one method, as shown in FIG. 15A, the bottom left and top right locations are used for the upper and left non-adjacent neighboring blocks, respectively.
[0092] Alternatively, as shown in FIG. 15B, the bottom right location is used for both the upper non-adjacent neighboring block and the left non-adjacent neighboring block.
[0093] Alternatively, as shown in FIG. 15C, the bottom left location is used for both the upper non-adjacent neighboring block and the left non-adjacent neighboring block.
[0094] Alternatively, the top right location is used for both the upper non-adjacent neighboring block and the left non-adjacent neighboring block, as shown in FIG. 15D.
[0095] For convenience of explanation, in Figures 15A to 15D, each non-adjacent neighboring block is assumed to have the same block size as the current block. Without loss of generality, this explanation can be easily extended to non-adjacent neighboring blocks with different block sizes.
[0096] Furthermore, step 2 may utilize the same CPMV projection process used in the current AVS and VVC standards, in which, assuming that the current block and the selected neighboring blocks share the same affine model, two or three corner pixel coordinates (e.g., if the current block uses a four-parameter model, two coordinates (top-left pixel / sample location and top-right pixel / sample location) are used, and if the current block uses a six-parameter model, three coordinates (top-left pixel / sample location, top-right pixel / sample location, and bottom-left pixel / sample location) are used) are substituted into equation (1) or (2) to generate two or three CPMVs, depending on whether the neighboring blocks are coded with a four-parameter affine model or a six-parameter affine model.
[0097] In step 3, a similarity check may be performed between any suitable candidate identified in step 1 and transformed in step 2 and all existing candidates already present in the merge candidate list. Details of the similarity check have already been discussed in the Pruning Affine Merge Candidates section above. If a new suitable candidate is found to be similar to an existing candidate in the candidate list, then this new suitable candidate is removed / pruned.
[0098] A non-adjacent neighborhood-based derivation process for constructed affine merge candidates When deriving inherited merging candidates, one neighboring block at a time is identified, and this single neighboring block needs to be coded in affine mode and may contain two or three CPMVs. When deriving constructed merging candidates, two or three neighboring blocks may be identified at a time, and each identified neighboring block does not need to be coded in affine mode, and only one translational MV is retrieved from this block.
[0099] JPEG2024533775000066.jpg51165
[0100] For the constructed merge candidates, the non-adjacent neighbor block based derivation process may be performed in five steps. The non-adjacent neighbor block based derivation process may be performed in five steps in a device such as an encoder or a decoder. Step 1 is candidate scanning. Step 2 is affine model determination. Step 3 is CPMV projection. Step 4 is candidate generation. Step 5 is candidate pruning. In step 1, non-adjacent neighbor blocks may be scanned and selected by the following method:
[0101] Scanning Area and Distance In some embodiments, in order to maintain a rectangular coding block, the scanning process is performed for only two non-adjacent neighboring blocks, and the third non-adjacent neighboring block may depend on the horizontal and vertical positions of the first and second non-adjacent neighboring blocks.
[0102] In some embodiments, as shown in Fig. 9, the scanning process is performed only for the position of B and the position of C. The position of A may be uniquely determined by the horizontal position of C and the vertical position of B. In this case, the scanning area and distance may be defined according to a specific scanning direction.
[0103] In some embodiments, the scan direction may be perpendicular to an edge of the current block. An example is shown in Fig. 10, where the scan area is defined as one line of continuous motion field to the left or above the current block. The scan distance is defined as the number of motion fields from the scan position to the edge of the current block. Note that the size of the motion field may depend on the maximum granularity of the applicable video coding standard. In the example shown in Fig. 10, it is assumed that the size of the motion field is set to 4x4 to match the current VVC standard.
[0104] In some embodiments, the scan direction may be parallel to the edges of the current block. One example is shown in Figure 11, where the scan region is defined as one line of contiguous coding blocks to the left or above the current block.
[0105] In some embodiments, the scan direction may be a combination of vertical and parallel scans to the edge of the current block. An example is shown in FIG. 12. As shown in FIG. 12, the scan direction may be a combination of parallel and diagonal. The scan at position B starts from left to right and then diagonally to the left block and top block. The scan at position B repeats as shown in FIG. 12. Similarly, the scan at position C starts from top to bottom and then diagonally to the left block and top block. The scan at position C repeats as shown in FIG. 12.
[0106] Traversal Order In some embodiments, the scan order may be defined as an order from a position with a small distance to the current coding block to a position with a large distance to the current coding block, which order may be applied in the case of vertical scanning.
[0107] In some embodiments, the scan order may be defined as a fixed pattern. This fixed pattern scan order may be used for candidate locations with similar distances. One example is the case of parallel scanning. In one example, the scan order may be defined as an order from top to bottom for the left scan area, and from left to right for the top scan area, as in the example shown in FIG. 11.
[0108] For a combined scanning method, the scanning order may be a combination of fixed pattern and distance dependent, such as the example shown in FIG.
[0109] Scan End For the constructed merge candidates, there is no need to affine-code the proper candidates since only the translational MVs are required.
[0110] Depending on the number of candidates required, the scanning process may terminate when the first X suitable candidates have been identified, where X is a positive value.
[0111] As shown in FIG. 9, three corners named A, B, and C are required to form a virtual coding block. For ease of implementation, only the scanning process of step 1 can be performed to identify the non-adjacent neighboring blocks located at corners B and C, and the coordinate of A can be accurately determined by obtaining the horizontal coordinate of C and the vertical coordinate of B. In this way, the formed virtual coding block is restricted to a rectangle. If either the B point or the C point is unavailable, e.g., outside the boundary, or the motion information of the non-adjacent neighboring blocks corresponding to B or C is unavailable, the horizontal or vertical coordinate of C may be defined as the horizontal or vertical coordinate of the top-left point of the current block, respectively.
[0112] In another embodiment, first, when corner B and / or corner C are determined from the scanning process of step 1, non-adjacent neighboring blocks may be identified that are located at corner B and / or corner C accordingly. Then, the positions of corner B and / or corner C may be reset to a pivot point within the corresponding non-adjacent neighboring block, such as the center of mass of each non-adjacent neighboring block. For example, the center of mass may be defined as the geometric center of each neighboring block.
[0113] For purposes of uniformity, the methods of defining the scan area and distance, scan order, and scan end proposed for deriving the inherited merge candidate may be fully or partially reused for deriving the constructed merge candidate. In one or more embodiments, the same methods defined for the inherited merge candidate traversal, including but not limited to the scan area and distance, scan order, and scan end, may be fully reused for the constructed merge candidate traversal.
[0114] In some embodiments, the same method defined for the inherited merge candidate scan may be partially reused for the constructed merge candidate scan. Figure 16 shows an example of this case. In Figure 16, the block size of each non-adjacent neighbor block is the same as the current block and is similarly defined as the inherited candidate scan, but the overall process is a simplified version because the scan at each distance is limited to only one block.
[0115] Figures 17A and 17B show another example of this case, where both the inherited non-adjacent merging candidates and the constructed non-adjacent merging candidates are defined with the same block size as the current coding block, but the scan order, scan region, and scan end condition may be defined differently.
[0116] In FIG. 17A, the maximum distance of non-adjacent neighboring blocks on the left side is 4 coding blocks, while the maximum distance of non-adjacent neighboring blocks on the top side is 5 coding blocks. Also, the scanning direction at each distance is from bottom to top on the left side and from right to left on the top side. In FIG. 17B, the maximum distance of non-adjacent neighboring blocks is 4 on both the left side and the top side. Also, scanning at a particular distance is unavailable since there is only one block at each distance. In FIG. 17A, the scanning operation within each distance can be terminated if M suitable candidates are identified. The value of M can be a predefined fixed value, such as the value 1 or any other positive integer, a signal value determined by the encoder, or a value configurable at the encoder or decoder. In one embodiment, the value of M can be the same as the size of the merge candidate list.
[0117] 17A and 17B, the scanning operation at different distances may be terminated if N suitable candidates are identified. The value of N may be a predefined fixed value, such as the value 1 or any other positive integer, a signal value determined by the encoder, or a value configurable in the encoder or decoder. In one embodiment, the value of N may be the same as the size of the merge candidate list. In another embodiment, the value of N may be the same as the value of M.
[0118] In both Figures 17A and 17B, non-adjacent spatial neighboring blocks at distances closer to the current block may be prioritized, indicating that a non-adjacent spatial neighboring block at distance i is scanned or checked before a neighboring block at distance i+1, where i is a non-negative integer representing a particular distance.
[0119] At a particular distance, at most two non-adjacent spatial neighboring blocks are used, which means that at most one neighboring block from one side (e.g., left and top) of the current block is selected for inheritance or construction candidate derivation, if available. As shown in Figure 17A, the checking order of the left side neighboring block and the top side neighboring block is from bottom to top and from right to left, respectively. For Figure 17B, this rule may also be applied, with the difference being that at any particular distance, there may be only one choice for each side of the current block.
[0120] For the construction candidate, as shown in Fig. 17B, first, the positions of one left non-adjacent spatial neighbor block and one upper non-adjacent spatial neighbor block are determined independently. Then, the position of the upper left neighbor block is determined, so that the rectangular virtual block can be surrounded together with the left non-adjacent neighbor block and the upper non-adjacent neighbor block. Then, as shown in Fig. 9, the motion information of the three non-adjacent neighbor blocks is used to form a CPMV at the upper left (A), upper right (B), and lower left (C) of the virtual block, and finally projected to the current CU to generate the corresponding construction candidate.
[0121] In step 2, the translational MVs at the positions of the candidates selected after step 1 can be evaluated to determine an appropriate affine model. For ease of illustration without loss of generality, Fig. 9 is used again as an example.
[0122] Factors such as hardware constraints, implementation complexity, different reference indexes, etc. may cause the scanning process to terminate before a sufficient number of candidates are identified. For example, motion information for the motion fields of one or more of the candidates selected after step 1 may not be available.
[0123] If the motion information of all three candidates is available, the corresponding hypothetical coding block represents a six-parameter affine model. If the motion information of one of the three candidates is unavailable, the corresponding hypothetical coding block represents a four-parameter affine model. If the motion information of one or more of the three candidates is unavailable, the corresponding hypothetical coding block may not represent a valid affine model.
[0124] In some embodiments, if motion information for the top left corner of a virtual coding block, e.g., corner A in FIG. 9, is unavailable, or if motion information 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, is unavailable, the virtual block can be set as invalid and no valid model can be represented, and steps 3 and 4 may be skipped for the current iteration.
[0125] 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 unavailable, but not both, the virtual block can represent a valid four-parameter affine model.
[0126] In step 3, if the hypothetical coding block can represent a valid affine model, the same projection process used for the inherited merging candidates may be used.
[0127] In one or more embodiments, the same projection process used for the inherited merge candidates may be used, where the four-parameter model represented by the hypothetical coding block from step 2 is projected onto the four-parameter model of the current block, and the six-parameter model represented by the hypothetical coding block from step 2 is projected onto the six-parameter model of the current block.
[0128] In some embodiments, the affine model represented by the hypothetical coding block from step 2 is always projected onto the four-parameter model or the six-parameter model of the current block.
[0129] According to equations (5) and (6), there are two types of four-parameter affine models, where type A is one in which the CPMVs in the upper left corner and the CPMVs in the upper right corner, called V0 and V1, are available, and type B is one in which the CPMVs in the upper left corner and the CPMVs in the lower left corner, called V0 and V2, are available.
[0130] In one or more embodiments, the type of the projected 4-parameter affine model is the same type as 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 type B, then the projected affine model of the current block will also be type A or type B, respectively.
[0131] In some embodiments, a four-parameter affine model represented by a hypothetical coding block from step 2 is always projected onto a four-parameter model of the same type of the current block, e.g., a four-parameter affine model of type A or type B represented by a hypothetical coding block is always projected onto a four-parameter affine model of type A.
[0132] 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 of the current VVC or AVS standard may not be used in the non-adjacent neighbor block based derivation method. When no temporal motion vectors are used, it is indicated that the generated combination does not include a temporal motion vector.
[0133] In step 5, a similarity check may be performed between the newly generated candidate after step 4 and all existing candidates already present in the merge candidate list. The details of the similarity check have already been discussed in the Pruning Affine Merge Candidates section. If the newly generated candidate is found to be similar to an existing candidate in the candidate list, then this newly generated candidate is removed or pruned.
[0134] Reordering affine merge candidate lists In one embodiment, non-adjacent spatial merge candidates may be inserted into the affine merge candidate list by following the following order: 1, sub-block based temporal motion vector prediction (SbTMVP) candidates if available, 2, inherited from adjacent neighboring blocks, 3, inherited from non-adjacent neighboring blocks, 4, constructed from adjacent neighboring blocks, 5, constructed from non-adjacent neighboring blocks, 6, zero MV.
[0135] In another embodiment, non-adjacent spatial merge candidates may be inserted into the affine merge candidate list by following the following order: 1, SbTMVP candidates if available, 2, inherited from adjacent neighbors, 3, constructed from adjacent neighbors, 4, inherited from non-adjacent neighbors, 5, constructed from non-adjacent neighbors, 6, zero MV.
[0136] In another embodiment, non-adjacent spatial merge candidates may be inserted into the affine merge candidate list by following the 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, zero MVs otherwise if the list is not yet full.
[0137] In another embodiment, non-adjacent spatial merge candidates may be inserted into the affine merge candidate list by following the order: 1, SbTMVP candidates if available, 2, inherited from adjacent neighbors, 3, inherited from non-adjacent neighbors at distance less than X, 4, constructed from adjacent neighbors, 5, constructed from non-adjacent neighbors at distance less than Y, 6, inherited from non-adjacent neighbors at distance greater than X, 7, constructed from non-adjacent neighbors at distance greater than Y, 8, zero MV. In this embodiment, the values X and Y may be predefined fixed values, such as the value 2, signal values determined by the encoder, or values configurable at the encoder or decoder. In one embodiment, the value of X may be the same as the value of Y. In another embodiment, X The value of is Y may differ from the value of
[0138] 18 illustrates a computing environment (or computing device) 1810 coupled to a user interface 1860. The computing environment 1810 may be part of a data processing server. In some embodiments, the computing device 1810 may perform any of the various methods or processes (e.g., encoding / decoding methods or processes) according to various embodiments of the present disclosure as described above. The computing environment 1810 may include a processor 1820, a memory 1840, and an I / O interface 1850.
[0139] The processor 1820 typically controls the overall operation of the computing environment 1810, such as operations related to display, data acquisition, data communication, and image processing. The processor 1820 may include one or more processors for executing instructions to perform all or a portion of the steps of the methods described above. The processor 1820 may also include one or more modules that facilitate interaction between the processor 1820 and other components. The processor may be a central processing unit (CPU), a microprocessor, a single chip machine, a GPU, etc.
[0140] The memory 1840 is configured to store various types of data to support the operation of the computing environment 1810. The memory 1840 may include predefined software 1842. Examples of such data include instructions for any application or method operating on the computing environment 1810, video data sets, image data, etc. The memory 1840 may be implemented by using any type of volatile or non-volatile memory device, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk, or a combination thereof.
[0141] The I / O interface 1850 provides an interface between the processor 1820 and a peripheral interface module, such as a keyboard, a click wheel, buttons, etc. 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 1850 may be coupled to an encoder and a decoder.
[0142] In some embodiments, a non-transitory computer readable storage medium is also provided that includes a number of programs, such as those contained in memory 1840, executable by processor 1820 in computing environment 1810 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, optical data storage device, etc.
[0143] A non-transitory computer-readable storage medium stores a number of programs that are executed by a computing device having one or more processors, the programs, when executed by the one or more processors, cause the computing device to perform the motion prediction method described above.
[0144] In some embodiments, the computing environment 1810 may be implemented using one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), graphical processing units (GPUs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0145] FIG. 19 is a flowchart illustrating a video encoding method according to one embodiment of the present disclosure.
[0146] In step 1901, the processor 1820 may obtain or determine one or more MV candidates from multiple non-adjacent neighboring blocks to the current block based on at least one scanning distance, where one of the at least one scanning distances may indicate a number of blocks away from one side of the current block, and the number is a positive integer.
[0147] In step 1902, the processor 1820 may obtain one or more CPMVs for the current block based on the one or more MV candidates.
[0148] In some embodiments, the non-adjacent neighboring blocks may include non-adjacent coding blocks such as those shown in Figures 11, 12, 13A, 13B, 14A, 14B, 15A-15D, and 16.
[0149] In some embodiments, the processor 1820 may obtain one or more MV candidates according to a scanning rule. The one or more MV candidates may include, but are not limited to, affine candidates or regular candidates.
[0150] In some embodiments, the scanning rule may be determined based on at least one scanning area, at least one scanning distance, and at least one scanning direction, i.e., the processor 1820 may obtain one or more MV candidates based on the scanning rule including at least one scanning area, at least one scanning distance, and at least one scanning direction.
[0151] In some embodiments, the non-adjacent neighboring blocks located at least one scanning distance away have the same size as the current block, as shown in FIG. 13A, or a different size than the current block, as shown in FIG. 13B.
[0152] In some embodiments, the at least one scanning area may include a first scanning area and a second scanning area, the first scanning area is determined according to a first maximum scanning distance indicating a maximum number of blocks away from a first side of the current block, and the second scanning area is determined according to a second maximum scanning distance indicating a maximum number of blocks away from a second side of the current block, and further, the first maximum scanning distance may be the same as or different from the second maximum scanning distance. In some embodiments, the first maximum scanning distance or the second maximum scanning distance may be set as a fixed value. For example, the first maximum scanning distance may be 4, and the second maximum scanning distance may be 5.
[0153] For example, as shown in Figure 17A, the first scanning area may be the left side area of the current block, and the first maximum scanning distance is 4 blocks away from the left side of the current block, and the second scanning area may be the top side area of the current block, and the second maximum scanning distance is 5 blocks away from the top side of the current block.
[0154] In some embodiments, the at least one scanning direction may include a first scanning direction and a second scanning direction, and the processor 1820 may further scan the first scanning area in the first scanning direction and scan the second scanning area in the second scanning direction.
[0155] In some embodiments, as shown in FIG. 17A, the first scanning direction may be from bottom to top parallel to the first side, and the second scanning direction may be from right to left parallel to the second side.
[0156] In some embodiments, the processor 1820 may stop scanning at least one scanning area to obtain one or more candidate motion vectors in response to determining that a termination condition is appropriate.
[0157] In some embodiments, the termination condition may include determining that the number of one or more motion vector candidates has reached a predetermined value, which may include at least one of a positive integer, a signal value determined by the encoder, a value configurable at the encoder or decoder, or a candidate list size value including one or more MV candidates.
[0158] In some embodiments, the processor 1820 may scan at least one scanning area at a first scanning distance before scanning at least one scanning area at a second scanning distance, the second scanning distance being one block greater than the first scanning distance, i.e., non-adjacent spatial neighboring blocks at a distance closer to the current block may be prioritized.
[0159] In some embodiments, the processor 1820 may scan a first scanning area at a first scanning distance to obtain a first MV candidate and scan a second scanning area at a second scanning distance to obtain a second MV candidate, where the number of the first MV candidates and the second MV candidates is less than or equal to two.
[0160] In some embodiments, the one or more MV candidates may include one or more MV inheritance candidates and one or more MV construction candidates. The processor 1820 may obtain the one or more MV inheritance candidates according to a first scanning rule and obtain the one or more MV construction candidates according to a second scanning rule, where the second scanning rule may be completely or partially the same as the first scanning rule.
[0161] In some embodiments, the processor 1820 may determine a second scanning rule based on at least one second scanning area and at least one second scanning distance, and the at least one second scanning area may include a left scanning area and an upper scanning area. Further, the processor 1820 may scan the left scanning area from right to left in a direction perpendicular to the first side to obtain a first motion vector construction candidate at the first scanning distance, scan the upper scanning area from bottom to top in a direction perpendicular to the second side to obtain a second MV construction candidate at the second scanning distance, obtain a virtual block based on a first candidate position of the first MV construction candidate and a second candidate position of the second MV construction candidate, determine a third candidate position of the third MV construction candidate based on the first candidate position, the second candidate position and the virtual block, and obtain two or three CPMVs of the current block based on the three CPMVs of the virtual block using the same projection process used to derive the successor candidate.
[0162] In some embodiments, the first candidate location, the second candidate location, and the third candidate location are pivot points within the first MV construction candidate, the second MV construction candidate, and the third MV construction candidate, respectively. The first candidate location and the second candidate location may be location B and location C, as shown in Figure 9. The third candidate location may be location A, as shown in Figure 9.
[0163] In some embodiments, the processor 1820 may insert one or more MV candidates into the candidate list according to a predetermined order, as described in the section Reordering the Affine Merge Candidate List.
[0164] In some embodiments, the one or more MV candidates may include one or more MV inheritance candidates and one or more MV construction candidates, and the processor 1820 may insert the one or more MV inheritance candidates before the one or more MV construction candidates in the candidate list.
[0165] In some embodiments, the candidate list may include one or more SbTMVP candidates and one or more zero MVs, where the one or more MV candidates are inserted after the one or more SbTMVP candidates and before the zero MVs.
[0166] In some embodiments, the candidate list may further include one or more adjacent MV candidates, including one or more adjacent MV inheritance candidates and one or more adjacent MV construction candidates, where the one or more adjacent MV candidates are from multiple adjacent neighboring blocks adjacent to the current block.
[0167] In some embodiments, the processor 1820 may insert one or more adjacent MV inheritance candidates before one or more adjacent MV construction candidates in the candidate list, and may insert one or more adjacent motion vector construction candidates before one or more motion vector inheritance candidates in the candidate list.
[0168] In some embodiments, the processor 1820 may insert one or more zero MVs in the candidate list between one or more neighboring motion vector construction candidates and one or more motion vector inheritance candidates.
[0169] In some embodiments, the one or more motion vector candidates may include one or more motion vector inheritance candidates and one or more motion vector construction candidates, the one or more motion vector inheritance candidates may include at least one first motion vector inheritance candidate having a scanning distance less than a first threshold and at least one second motion vector inheritance candidate having a scanning distance greater than the first threshold, and the one or more motion vector construction candidates may include at least one first motion vector construction candidate having a scanning distance less than a second threshold and at least one second motion vector construction candidate having a scanning distance greater than the second threshold. In some embodiments, the processor 1820 may insert the at least one first motion vector inheritance candidate before the at least one second motion vector inheritance candidate in the candidate list, and insert the at least one first motion vector construction candidate before the at least one second motion vector construction candidate in the candidate list.
[0170] In some embodiments, the processor 1820 may insert one or more adjacent motion vector inheritance candidates into the candidate list before the at least one first motion vector inheritance candidate, insert one or more adjacent motion vector construction candidates into the candidate list after the at least one first motion vector inheritance candidate and before the at least one first motion vector construction candidate, and insert at least one second motion vector inheritance candidate into the candidate list before the at least one second motion vector construction candidate.
[0171] In some embodiments, the first and second thresholds may be the same as or different from one another, and the first and second thresholds each include at least one of a positive integer, a signal value determined by an encoder, or a value configurable by an encoder or a decoder.
[0172] In some embodiments, an apparatus for video encoding is provided, the apparatus including a processor 1820 and a memory 1840 configured to store instructions executable by the processor, the processor being configured, upon execution of the instructions, to perform a method as shown in FIG.
[0173] In some other embodiments, a non-transitory computer readable storage medium is provided that stores instructions that, when executed by the processor 1820, cause the processor to perform a method such as that shown in FIG.
[0174] Other embodiments of the present 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 present disclosure in accordance with its general principles, including departures from the present disclosure that come within known or customary practice in the art. It is intended that the specification and examples be considered as merely illustrative.
[0175] It will be understood that the present disclosure is not strictly limited to the embodiments described above and illustrated by the accompanying drawings, and that various modifications and changes can be made thereto without departing from the scope of the present disclosure.
Claims
1. obtaining one or more candidate motion vectors from a plurality of non-adjacent neighboring blocks of a current block based on at least one scanning distance, where one of the at least one scanning distances indicates a number of blocks away from one side of the current block, and the number is a positive integer; obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more candidate motion vectors.
2. The method of claim 1 , further comprising: the plurality of non-adjacent neighboring blocks located at the at least one scanning distance having a same size as the current block.
3. The method of claim 1 , further comprising: the plurality of non-adjacent neighboring blocks located at the at least one scanning distance having a different size than the current block.
4. obtaining the one or more motion vector candidates based on a scanning rule including at least one scanning area, at least one scanning distance, and at least one scanning direction; 2. The method of claim 1, wherein the at least one scanning area includes a first scanning area and a second scanning area, the first scanning area being determined according to a first maximum scanning distance indicating a maximum number of blocks away from a first side of the current block, and the second scanning area being determined according to a second maximum scanning distance indicating a maximum number of blocks away from a second side of the current block, and the first maximum scanning distance being the same as or different from the second maximum scanning distance.
5. The method of claim 4 , further comprising predetermining the first maximum scan distance or the second maximum scan distance as a fixed value.
6. The method of claim 5 , wherein the first maximum scan distance is four and the second maximum scan distance is five.
7. the at least one scanning direction includes a first scanning direction and a second scanning direction; The method comprises: scanning the first scanning area in the first scanning direction; The method of claim 4 , further comprising: scanning the second scan area in the second scan direction.
8. The method of claim 7 , wherein the first scanning direction is from bottom to top parallel to the first side, and the second scanning direction is from right to left parallel to the second side.
9. The method of claim 4 , further comprising: in response to determining that a termination condition is appropriate, ceasing scanning the at least one scanning area to obtain the one or more candidate motion vectors.
10. The termination condition is: determining that a number of the one or more candidate motion vectors has reached a predetermined value, the predetermined value being: A positive integer, the signal value determined by the encoder, A value that can be set by the encoder or decoder, or a size value of a candidate list including the one or more motion vector candidates.
11. 5. The method of claim 4, further comprising the step of scanning the at least one scan area at a first scan distance before scanning the at least one scan area at a second scan distance, the second scan distance being one block greater than the first scan distance.
12. scanning the first scanning area at a first scanning distance to obtain a first motion vector candidate; 5. The method of claim 4, further comprising: scanning the second scanning area at a second scanning distance to obtain second motion vector candidates, wherein the number of the first motion vector candidates and the second motion vector candidates is two or less.
13. the one or more motion vector candidates include one or more motion vector inheritance candidates and one or more motion vector construction candidates; The method comprises: obtaining the one or more motion vector succession candidates according to a first scanning rule; The method of claim 1 , further comprising: obtaining the one or more motion vector construction candidates according to a second scanning rule, the second scanning rule being completely or partially the same as the first scanning rule.
14. determining the second scanning rule based on at least one second scanning area and at least one second scanning distance, the at least one second scanning area including a left scanning area and an upper scanning area; Scanning the left scanning area from right to left in a direction perpendicular to the first side to obtain a first motion vector construction candidate at a first scanning distance; Scanning the upper scanning area from bottom to top in a direction perpendicular to the second side to obtain a second motion vector construction candidate at a second scanning distance; obtaining a virtual block based on a first candidate position of the first motion vector construction candidate and a second candidate position of the second motion vector construction candidate; determining a third candidate position of a third motion vector construction candidate based on the first candidate position, the second candidate position and the virtual block; obtaining three CPMVs of the virtual block based on translation MVs at the first candidate position, the second candidate position, and the third candidate position; and obtaining two or three CPMVs of the current block based on three CPMVs of the virtual block using the same projection process used to derive succession candidates.
15. The method of claim 14 , wherein the first candidate position, the second candidate position, and the third candidate position are pivot points within the first motion vector construction candidate, the second motion vector construction candidate, and the third motion vector construction candidate, respectively.
16. The method of claim 1 , further comprising inserting the one or more candidate motion vectors into a candidate list according to a predetermined order.
17. the one or more motion vector candidates include one or more motion vector inheritance candidates and one or more motion vector construction candidates; The method comprises: The method of claim 16 , further comprising inserting the one or more motion vector inheritance candidates in the candidate list before the one or more motion vector construction candidates.
18. 18. The method of claim 17, wherein the candidate list includes one or more sub-block-based temporal motion vector prediction (SbTMVP) candidates and one or more zero motion vectors (MVs), the one or more motion vector candidates being inserted after the one or more SbTMVP candidates and before the zero MVs.
19. 20. The method of claim 18, wherein the candidate list further includes one or more adjacent motion vector candidates, including one or more adjacent motion vector inheritance candidates and one or more adjacent motion vector construction candidates, the one or more adjacent motion vector candidates being from a plurality of adjacent neighboring blocks adjacent to the current block.
20. inserting the one or more neighboring motion vector inheritance candidates in the candidate list before the one or more neighboring motion vector construction candidates; 20. The method of claim 19, further comprising: inserting the one or more adjacent motion vector construction candidates in the candidate list before the one or more motion vector inheritance candidates.
21. 20. The method of claim 19, further comprising inserting one or more zero MVs in the candidate list between the one or more adjacent motion vector construction candidates and the one or more motion vector inheritance candidates.
22. the one or more motion vector candidates include one or more motion vector inheritance candidates and one or more motion vector construction candidates; the one or more motion vector succession candidates include at least one first motion vector succession candidate having a scanning distance less than a first threshold and at least one second motion vector succession candidate having a scanning distance greater than the first threshold; the one or more motion vector construction candidates include at least one first motion vector construction candidate having a scanning distance less than a second threshold and at least one second motion vector construction candidate having a scanning distance greater than the second threshold; The method comprises: inserting the at least one first motion vector succession candidate before the at least one second motion vector succession candidate in the candidate list; 20. The method of claim 19, further comprising: inserting the at least one first motion vector construction candidate before the at least one second motion vector construction candidate in the candidate list.
23. inserting the one or more adjacent motion vector inheritance candidates in front of the at least one first motion vector inheritance candidate in the candidate list; inserting the one or more adjacent motion vector construction candidates in the candidate list after the at least one first motion vector succession candidate and before the at least one first motion vector construction candidate; 23. The method of claim 22, further comprising: inserting the at least one second motion vector inheritance candidate in the candidate list before the at least one second motion vector construction candidate.
24. The first threshold value and the second threshold value are the same as or different from each other, The first threshold and the second threshold are, A positive integer, the signal value determined by the encoder, or 24. The method of claim 23, comprising at least one of the values being configurable at an encoder or a decoder.
25. determining one or more candidate motion vectors from a plurality of non-adjacent neighboring blocks to a current block based on at least one scanning distance, where one of the at least one scanning distances indicates a number of blocks away from a side of the current block, the number being a positive integer; and obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more motion vector candidates.
26. 26. The method of claim 25, further comprising: the plurality of non-adjacent neighboring blocks located at the at least one scanning distance having a same size as the current block.
27. 26. The method of claim 25, further comprising: the plurality of non-adjacent neighboring blocks located at the at least one scanning distance having a different size than the current block.
28. determining the one or more candidate motion vectors based on a scanning rule including at least one scanning area, at least one scanning distance, and at least one scanning direction; 26. The method of claim 25, wherein the at least one scanning area includes a first scanning area and a second scanning area, the first scanning area being determined according to a first maximum scanning distance indicating a maximum number of blocks away from a first side of the current block, and the second scanning area being determined according to a second maximum scanning distance indicating a maximum number of blocks away from a second side of the current block, the first maximum scanning distance being the same as or different from the second maximum scanning distance.
29. 30. The method of claim 28, further comprising predetermining the first maximum scan distance or the second maximum scan distance as a fixed value.
30. 30. The method of claim 29, wherein the first maximum scan distance is four and the second maximum scan distance is five.
31. the at least one scanning direction includes a first scanning direction and a second scanning direction; The method comprises: scanning the first scanning area in the first scanning direction; 30. The method of claim 28, further comprising: scanning the second scan area in the second scan direction.
32. 32. The method of claim 31, wherein the first scan direction is from bottom to top parallel to the first side and the second scan direction is from right to left parallel to the second side.
33. 30. The method of claim 28, further comprising: in response to determining that a termination condition is appropriate, ceasing scanning the at least one scan area to obtain the one or more candidate motion vectors.
34. The termination condition is: determining that a number of the one or more candidate motion vectors has reached a predetermined value, the predetermined value being: A positive integer, the signal value determined by the encoder, A value that can be set by the encoder or decoder, or 34. The method of claim 33, comprising at least one of a size value of a candidate list including the one or more motion vector candidates.
35. 30. The method of claim 28, further comprising the step of scanning the at least one scan area at a first scan distance before scanning the at least one scan area at a second scan distance, the second scan distance being one block greater than the first scan distance.
36. scanning the first scanning area at a first scanning distance to obtain a first motion vector candidate; 30. The method of claim 28, further comprising: scanning the second scanning area at a second scanning distance to obtain second motion vector candidates, wherein the number of the first motion vector candidates and the second motion vector candidates is two or less.
37. the one or more motion vector candidates include one or more motion vector inheritance candidates and one or more motion vector construction candidates; The method comprises: determining the one or more motion vector succession candidates according to a first scanning rule; 26. The method of claim 25, further comprising: obtaining the one or more motion vector construction candidates according to a second scanning rule, the second scanning rule being completely or partially the same as the first scanning rule.
38. determining the second scanning rule based on at least one second scanning area and at least one second scanning distance, the at least one second scanning area including a left scanning area and an upper scanning area; Scanning the left scanning area from right to left in a direction perpendicular to the first side to obtain a first motion vector construction candidate at a first scanning distance; Scanning the upper scanning area from bottom to top in a direction perpendicular to the second side to obtain a second motion vector construction candidate at a second scanning distance; determining a virtual block based on a first candidate position of the first motion vector construction candidate and a second candidate position of the second motion vector construction candidate; determining a third candidate position of a third motion vector construction candidate based on the first candidate position, the second candidate position and the virtual block; determining three CPMVs of the virtual block based on translation MVs at the first candidate location, the second candidate location, and the third candidate location; 38. The method of claim 37, further comprising: determining two or three CPMVs of the current block based on three CPMVs of the virtual block using the same projection process used to derive succession candidates.
39. 39. The method of claim 38, wherein the first candidate location, the second candidate location, and the third candidate location are pivot points within the first motion vector construction candidate, the second motion vector construction candidate, and the third motion vector construction candidate, respectively.
40. 26. The method of claim 25, further comprising inserting the one or more candidate motion vectors into a candidate list according to a predetermined order.
41. the one or more motion vector candidates include one or more motion vector inheritance candidates and one or more motion vector construction candidates; The method comprises:
41. The method of claim 40, further comprising inserting the one or more motion vector inheritance candidates in the candidate list before the one or more motion vector construction candidates.
42. 42. The method of claim 41, wherein the candidate list includes one or more sub-block-based temporal motion vector prediction (SbTMVP) candidates and one or more zero motion vectors (MVs), the one or more motion vector candidates being inserted after the one or more SbTMVP candidates and before the zero MVs.
43. 43. The method of claim 42, wherein the candidate list further includes one or more adjacent motion vector candidates, including one or more adjacent motion vector inheritance candidates and one or more adjacent motion vector construction candidates, the one or more adjacent motion vector candidates being from a plurality of adjacent neighboring blocks adjacent to the current block.
44. inserting the one or more neighboring motion vector inheritance candidates in the candidate list before the one or more neighboring motion vector construction candidates; 44. The method of claim 43, further comprising: inserting the one or more adjacent motion vector construction candidates in the candidate list before the one or more motion vector inheritance candidates.
45. 44. The method of claim 43, further comprising inserting one or more zero MVs in the candidate list between the one or more adjacent motion vector construction candidates and the one or more motion vector inheritance candidates.
46. the one or more motion vector candidates include one or more motion vector inheritance candidates and one or more motion vector construction candidates; the one or more motion vector succession candidates include at least one first motion vector succession candidate having a scanning distance less than a first threshold and at least one second motion vector succession candidate having a scanning distance greater than the first threshold; the one or more motion vector construction candidates include at least one first motion vector construction candidate having a scanning distance less than a second threshold and at least one second motion vector construction candidate having a scanning distance greater than the second threshold; The method comprises: inserting the at least one first motion vector succession candidate before the at least one second motion vector succession candidate in the candidate list; 44. The method of claim 43, further comprising: inserting the at least one first motion vector construction candidate before the at least one second motion vector construction candidate in the candidate list.
47. inserting the one or more adjacent motion vector inheritance candidates in front of the at least one first motion vector inheritance candidate in the candidate list; inserting the one or more adjacent motion vector construction candidates in the candidate list after the at least one first motion vector succession candidate and before the at least one first motion vector construction candidate; 47. The method of claim 46, further comprising: inserting the at least one second motion vector inheritance candidate in the candidate list before the at least one second motion vector construction candidate.
48. The first threshold value and the second threshold value are the same as or different from each other, The first threshold and the second threshold are, A positive integer, the signal value determined by the encoder, or 48. The method of claim 47, comprising at least one of the values being configurable at an encoder or decoder.
49. 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; Apparatus for video decoding, wherein the one or more processors are configured to perform a method according to any one of claims 1 to 24, upon execution of the instructions.
50. 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; Apparatus for video encoding, wherein the one or more processors are configured to perform a method according to any one of claims 25 to 48 upon execution of the instructions.
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 perform the method of any one of claims 1 to 24.
52. 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 perform the method of any one of claims 25 to 48.
Citation Information
Patent Citations
Motion Vector Prediction
JP2020523853A
