Candidate Derivation for Affine Merge Modes in Video Coding

By deriving affine merge candidates from non-adjacent neighboring blocks and performing similarity checks, the method enhances the accuracy of motion vectors in video coding, improving compression efficiency and video quality.

JP2024534595AActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2024518556
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-24
Filing Date
2022-09-21
Publication Date
2024-09-20
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

Existing video coding standards face challenges in accurately deriving affine merge candidates for affine motion prediction modes, leading to suboptimal compression efficiency and quality in video encoding and decoding processes.

Method used

The method involves obtaining affine candidates from non-adjacent neighboring blocks, calculating affine model parameters, and performing a similarity check to remove redundant candidates, thereby enhancing the derivation process for affine merge candidates.

Benefits of technology

This approach improves the accuracy of motion vectors for affine merge mode, resulting in better compression efficiency and video quality by diversifying the candidate pool and removing redundant options.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024534595000001
    Figure 2024534595000001
Patent Text Reader

Abstract

A method, an apparatus, and a non-transitory computer-readable storage medium thereof for video encoding are provided. The method includes obtaining one or more affine candidates from a plurality of non-adjacent neighbor blocks that are not adjacent to a current block. The method may further include obtaining one or more control point motion vectors (CPMVs) of the current block based on the one or more affine candidates.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Application No. 63 / 248,401, entitled “Candidate Derivation for Affine Merge Mode in Video Coding,” filed September 24, 2021, and incorporated by reference in its entirety for all purposes.

[0002] The present disclosure relates to video coding and compression, and in particular, 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 coding techniques may be used to compress video data. Video coding is performed according to one or more video coding standards. For example, today, some well-known video coding standards include Versatile Video Coding (VVC), High Efficiency Video Coding (HEVC, also known as H.265 or MPEG-H Part 2), and Advanced Video Coding (AVC, also known as H.264 or MPEG-4 Part 10), which are jointly developed by ISO / IEC MPEG and ITU-T VECG. AOMedia Video1 (AV1) was developed by the Alliance for Open Media (AOM) as a successor to its predecessor VP9. Audio Video Coding (AVS), referred to as the Digital Audio and Digital Video Compression Standard, is another series of video compression standards developed by the Chinese Audio and Video Coding Standards Workgroup. Most of the existing video coding standards are built on the well-known hybrid video coding framework, i.e., they use block-based prediction methods (e.g., inter-prediction, intra-prediction) to reduce the redundancy present in a video image or sequence, and transform coding to condense the energy of the prediction error. An important goal of video coding techniques is to compress video data into a format that uses a lower bit rate while avoiding or minimizing the degradation of the video quality.

[0004] The first generation of AVS standards includes the Chinese national standard "Information Technology, Advanced Audio Video Coding, Part 2: Video" (known as AVS1), and "Information Technology, Advanced Audio Video Coding Part 16: Radio Television Video" (known as AVS+). The first generation of AVS standards can provide about 50% bit rate savings with the same perceptual quality compared to the MPEG-2 standard. The AVS1 standard video part was published 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" (known as AVS2), which mainly targets the transmission of special HD TV programs. The coding efficiency of AVS2 is twice that of AVS+. AVS2 was published as a Chinese national standard in May 2016. Meanwhile, the AVS2 standard video part was submitted by the Institute of Electrical and Electronics Engineers (IEEE) as an international standard for application. The AVS3 standard is a new generation video coding standard for UHD video applications that aims to exceed the coding efficiency of the latest international standard HEVC. In March 2019, the AVS3-P2 baseline was completed at the 68th AVS meeting, and the AVS3-P2 baseline brings about 30% bitrate savings over the HEVC standard. Currently, there is one reference software called High Performance Model (HPM), which is maintained by the AVS group to show the reference implementation form 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] According to a first aspect of the present disclosure, a method of video encoding is provided. The method may include obtaining one or more affine candidates from a plurality of non-adjacent neighbor blocks that are not adjacent to a current block. Furthermore, the method may include obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more affine candidates.

[0007] According to a second aspect of the present disclosure, a method for removing affine candidates is provided. The method may include calculating a first set of affine model parameters associated with one or more CPMVs of a first affine candidate. Furthermore, the method may include calculating a second set of affine model parameters associated with one or more CPMVs of a second affine candidate. Moreover, the method may include performing a similarity check between the first affine candidate and the second affine candidate based on the first set of affine model parameters and the second set of affine model parameters.

[0008] According to a third aspect of the present disclosure, an apparatus for video encoding is provided. The apparatus includes one or more processors and a memory configured to store instructions executable by the one or more processors. Further, the one or more processors are configured to perform a method according to the first or second aspect when executing the instructions.

[0009] According to a fourth 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 first or second aspect.

[0010] A more particular description of examples of the present disclosure will now be made by reference to specific examples illustrated in the accompanying drawings, in which the examples will be described and explained with additional specificity and detail through the use of the accompanying drawings, provided that these drawings depict only some examples and therefore are not to be considered limiting in scope. [Brief description of the drawings]

[0011] [Figure 1] FIG. 2 is a block diagram of an encoder, in accordance with some examples of the present disclosure. [Diagram 2] FIG. 2 is a block diagram of a decoder, according to some examples of the present disclosure. [Figure 3A] 1A to 1C are diagrams illustrating block division in multiple types of tree structures according to some examples of the present disclosure. [Figure 3B] 1A to 1C are diagrams illustrating block division in multiple types of tree structures according to some examples of the present disclosure. [Figure 3C] 1A to 1C are diagrams illustrating block division in multiple types of tree structures according to some examples of the present disclosure. [Figure 3D] 1A to 1C are diagrams illustrating block division in multiple types of tree structures according to some examples of the present disclosure. [Figure 3E] 1A to 1C are diagrams illustrating block division in multiple types of tree structures according to some examples of the present disclosure. [Figure 4A] FIG. 1 is a diagram of a four-parameter affine model, in accordance with some examples of the present disclosure. [Figure 4B] FIG. 1 is a diagram of a four-parameter affine model, in accordance with some examples of the present disclosure. [Diagram 5] FIG. 1 is a diagram of a six-parameter affine model, in accordance with some examples of the present disclosure. [Figure 6] FIG. 13 is a diagram of adjacent neighboring blocks for inherited affine merging candidates in accordance with some examples of the present disclosure. [Figure 7] FIG. 13 is an illustration of adjacent neighboring blocks for constructing affine merging candidates, in accordance with some examples of the present disclosure. [Figure 8]FIG. 13 is an illustration of non-adjacent neighboring blocks for inherited affine merging candidates, in accordance with some examples of the present disclosure. [Figure 9] FIG. 13 is an illustration of derivation of constructed affine merge candidates using non-adjacent neighboring blocks, in accordance with some examples of the present disclosure. [Figure 10] FIG. 2 is an illustration of an orthogonal scan of non-adjacent neighboring blocks, in accordance with some examples of the present disclosure. [Figure 11] FIG. 2 is an illustration of parallel scanning of non-adjacent neighboring blocks, in accordance with some examples of the present disclosure. [Figure 12] FIG. 13 is a diagram of combined orthogonal and parallel scanning of non-adjacent neighboring blocks, according to some examples of the present disclosure. [Figure 13A] 1 is a diagram of a neighboring block having the same size as a current block, in accordance with some examples of the present disclosure. [Figure 13B] 1 is a diagram of a neighboring block having a different size than a current block, in accordance with some examples of the present disclosure. [Figure 14A] 1A and 1B are diagrams of examples 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 of the current distance, according to some examples of the present disclosure. [Figure 14B] 1A and 1B are diagrams of examples in which the left or top block of the bottom-most or right-most block in the previous distance is used as the bottom-most or right-most block of the current distance, according to some examples of the present disclosure. [Figure 15A] FIG. 13 is a diagram of scan positions at bottom-left and top-right positions used for top and left non-adjacent neighboring blocks, in accordance with some examples of the present disclosure. [Figure 15B] FIG. 13 is a diagram of a scan position at the bottom right position used for both top and left non-adjacent neighboring blocks, in accordance with some examples of the present disclosure. [Figure 15C] FIG. 13 is a diagram of a scan position at the bottom left position used for both top and left non-adjacent neighboring blocks, in accordance with some examples of the present disclosure. [Figure 15D]FIG. 13 is a diagram of a scanning position at the top right position used for both top and left non-adjacent neighboring blocks, in accordance with some examples of the present disclosure. [Figure 16] FIG. 13 is an illustration of a simplified scanning process for deriving construction merge candidates, in accordance with some examples of the present disclosure. [Figure 17] FIG. 1 illustrates a computing environment coupled with a user interface, according to some examples of the present disclosure. [Figure 18] 1 is a flowchart illustrating a method for video encoding, according to some examples of this disclosure. [Figure 19] 1 is a flowchart illustrating a method for removing affine candidates, according to some examples 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 examples of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Reference will now be made in detail to certain implementations, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details are set forth to aid in an understanding of the subject matter presented herein. However, it will be apparent to one of ordinary skill in the art that various alternatives may be used. For example, it will be apparent to one of ordinary skill in the art that the subject matter presented herein may be implemented in many types of electronic devices having digital video capabilities.

[0013] References throughout this specification to "one embodiment," "an embodiment," "an example," "some embodiments," "some examples," or similar language 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.

[0014] Throughout this disclosure, the terms "first," "second," "third," etc. are all used as nomenclature only to refer to related elements, e.g., devices, components, structures, steps, etc., and do not imply any spatial or chronological order unless expressly specified otherwise. 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, which may be arbitrarily named.

[0015] The terms "module," "sub-module," "circuit," "sub-circuit," "circuit device," "sub-circuit device," "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 or located adjacent to each other.

[0016] As used herein, the terms "if" or "when" may be understood to mean "simultaneously with" or "in response to," depending on the context. These terms, when they appear in a claim, may not indicate that the associated limitation or feature is conditional or optional. For example, a method may include the steps: i) function or action X' is performed when or if condition X exists, and ii) function or action Y' is performed when or if condition Y exists. A method may be implemented with both the ability to perform function or action X' and the ability to perform function or action Y'. Thus, functions X' and Y' may both be implemented at different times during multiple executions of the method.

[0017] A unit or module may be implemented purely by software, purely by hardware, or by a combination of hardware and software. In a purely software implementation, for example, a unit or module may include functionally related code blocks or software components that are directly or indirectly linked together to perform a particular function.

[0018] FIG. 20 is a block diagram illustrating an example system 10 for encoding and decoding video blocks in parallel, according to some implementations of the present disclosure. As shown in FIG. 20, the system 10 includes a source device 12 that generates and encodes video data to be subsequently decoded by a destination device 14. The source device 12 and the destination device 14 may include any of a wide variety of electronic devices, including desktop or laptop computers, tablet computers, smartphones, set-top boxes, digital televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, and the like. In some implementations, the source device 12 and the destination device 14 are equipped with wireless communication capabilities.

[0019] In some implementations, the destination device 14 may receive the encoded video data to be decoded over a link 16. The link 16 may include any type of communication medium or device capable of moving the encoded video data from the source device 12 to the destination device 14. In one example, the link 16 may include a communication medium to enable the source device 12 to transmit the encoded video data directly to the destination device 14 in real time. The encoded video data may be modulated according to a communication standard, such as a wireless communication protocol, and transmitted to the destination device 14. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum, or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful in facilitating communication from the source device 12 to the destination device 14.

[0020] In some other implementations, the encoded video data may be transmitted from the output interface 22 to the storage device 32. The encoded video data in the storage device 32 may then be accessed by the destination device 14 via the input interface 28. The storage device 32 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a digital versatile disc (DVD), a compact disc read-only memory (CD-ROM), flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing the encoded video data. In a further example, the storage device 32 may correspond to a file server or another intermediate storage device that may hold the encoded video data generated by the source device 12. The destination device 14 may access the stored video data from the storage device 32 via streaming or download. The file server may be any type of computer capable of storing the encoded video data and transmitting the encoded video data to the destination device 14. Exemplary file servers include web servers (e.g., for websites), file transfer protocol (FTP) servers, network attached storage (NAS) devices, or local disk drives. Destination device 14 may access the encoded video data through any standard data connection suitable for accessing the encoded video data stored in a file server, including a wireless channel (e.g., a Wireless Fidelity (Wi-Fi) connection), a wired connection (e.g., a Digital Subscriber Line (DSL), cable modem, etc.), or a combination of both. Transmission of the encoded video data from storage device 32 may be a streaming transmission, a download transmission, or a combination of both.

[0021] As shown in FIG. 20, source device 12 includes video source 18, video encoder 20, and output interface 22. Video source 18 may include sources such as a video capture device, e.g., a video camera, a video archive containing previously captured video, a video feed interface for receiving video from a video content provider, and / or a computer graphics system for generating computer graphics data as source video, or a combination of such sources. As one 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, implementations described herein may be applicable to video encoding in general and may be applied to wireless and / or wired applications.

[0022] The captured, pre-captured, or computer-generated video may be encoded by a video encoder 20. The encoded video data may be transmitted directly to destination device 14 via an output interface 22 of source device 12. The encoded video data may also (or alternatively) be stored in storage device 32 for later access by destination device 14 or other devices for decoding and / or playback. Output interface 22 may further include a modem and / or a transmitter.

[0023] 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 and 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 for use by video decoder 30 in decoding the video data. Such syntax elements may be included within the encoded video data transmitted over a communications medium, stored on a storage medium, or stored on a file server.

[0024] In some implementations, destination device 14 may include a display device 34, which can 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 another type of display device.

[0025] Video encoder 20 and video decoder 30 may operate according to a proprietary or industry standard, such as VVC, HEVC, MPEG-4, Part 10, AVC, or an extension of such a standard. It should be understood that the present application is not limited to a particular video encoding / decoding standard and may be applicable to other video encoding / decoding standards. It is generally contemplated that video encoder 20 of source device 12 may be configured to encode video data according to any of these current or future standards. Similarly, it is generally contemplated that video decoder 30 of destination device 14 may be configured to decode video data according to any of these current or future standards.

[0026] 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 circuitry, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When implemented partially in software, an electronic device may store instructions for the software on a suitable non-transitory computer readable medium and execute the instructions in hardware using one or more processors to perform the video encoding / decoding operations disclosed in this disclosure. Each of the video encoder 20 and the video decoder 30 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (codec) in the respective device.

[0027] Like HEVC, VVC is built on a block-based hybrid video coding framework. FIG. 1 is a block diagram illustrating a block-based video encoder according to some implementations of the present disclosure. In the encoder 100, the input video signal is processed in 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 splits blocks based only on quad-trees, in VVC, one coding tree unit (CTU) is split into CUs to accommodate different local characteristics based on 4 / 2 / 3-trees. Additionally, the concept of multiple split unit types in HEVC is abolished, i.e., the distinction between CU, prediction unit (PU), and transform unit (TU) no longer exists in VVC, and instead, each CU is always used as a basic unit for both prediction and transformation without further splitting. In the multiple tree structures, a CTU is first divided by a quadtree structure, and then the leaf nodes of each quadtree can be further divided by 2- and 3-ary tree structures.

[0028] 3A-3E are schematic diagrams illustrating multiple types of tree partitioning modes according to some implementations of the present disclosure. Each of FIG. 3A-3E shows five partitioning 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).

[0029] 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 already coded samples of neighboring blocks (called reference samples) in the same video picture / slice. Spatial prediction reduces spatial redundancy inherent in the video signal. Temporal prediction (also called "inter prediction" or "motion compensated prediction") predicts the current video block using pixels reconstructed from already coded video pictures. Temporal prediction reduces temporal redundancy inherent in the video signal. The temporal prediction signal for a given CU is typically signaled by one or more motion vectors (MVs) 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 sent and is used to identify which reference picture in the reference picture store the temporal prediction signal came from.

[0030] After spatial and / or temporal prediction, an intra / inter mode decision circuitry device 121 of the encoder 100 chooses the best prediction mode, for example based on a rate-distortion optimization method. The block predictor 120 is then subtracted from the current video block, and the resulting prediction residual is decorrelated using the transform circuitry device 102 and the quantization circuitry device 104. The resulting quantized residual coefficients are inverse quantized by the inverse quantization circuitry device 116 and inverse transformed by the inverse transform circuitry device 118 to form a reconstructed residual, which is then added back to the prediction block to form a reconstructed signal for the CU. Furthermore, in-loop filtering 115, such as a deblocking filter, sample adaptive offset (SAO), and / or an adaptive in-loop filter (ALF), may be applied to the reconstructed CU before it is placed in a reference picture store of the picture buffer 117 and used to encode future video blocks. To form the output video bitstream 114, the coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are all sent to the entropy coding unit 106 to be further compressed and packed to form the bitstream.

[0031] For example, a deblocking filter is available in AVC, HEVC, and the current version of VVC. In HEVC, an additional in-loop filter called SAO is defined to further improve coding efficiency. In the current version of the VVC standard, yet another in-loop filter called ALF is actively investigated and is likely to be included in the final standard.

[0032] These in-loop filter operations are optional. Implementing these operations helps improve coding efficiency and visual quality. They may also be turned off as decisions made by the encoder 100 to reduce computational complexity.

[0033] Note that intra prediction is typically based on unfiltered reconstructed pixels, while inter prediction is based on filtered reconstructed pixels if these filter options are turned on by the encoder 100.

[0034] FIG. 2 is a block diagram illustrating a block-based video decoder 200 that can be used in conjunction with many video coding standards. The decoder 200 is similar to the reconstruction-related section residing in the encoder 100 of FIG. 1. The block-based video decoder 200 may be the video decoder 30 as shown in FIG. 20. In the decoder 200, an incoming video bitstream 201 is first decoded through entropy decoding 202 to derive quantization coefficient levels and prediction-related information. The quantization coefficient levels are then processed through inverse quantization 204 and inverse transform 206 to obtain a reconstructed prediction residual. A block predictor mechanism implemented in an intra / inter mode selector 212 is configured to perform intra prediction 208 or motion compensation 210 based on the decoded prediction information. A set of unfiltered reconstructed pixels is obtained by summing the reconstructed prediction residual from the inverse transform 206 and the predictive output generated by the block predictor mechanism using an adder 214.

[0035] The reconstructed blocks may further pass through an in-loop filter 209 and then be stored in a picture buffer 213, which acts as a reference picture store. The reconstructed video in the picture buffer 213 may be sent to drive a display device and may also be used to predict future video blocks. In situations where the in-loop filter 209 is turned on, a filtering operation is performed on these reconstructed pixels to derive the final reconstructed video output 222.

[0036] In the current VVC and AVS3 standards, the motion information of the current coding block is either copied from spatial or temporal neighboring blocks specified by the merge candidate index, or obtained by explicit signaling of motion estimation. The main objective of this disclosure is to improve the accuracy of motion vectors for affine merge mode by improving the derivation method of affine merge candidates. To facilitate the description of this disclosure, the existing affine merge mode design in the VVC standard is used as an example to illustrate the proposed idea. Although the existing affine mode design in the VVC standard is used as an example throughout this disclosure, it should be noted by those skilled in the art of modern video coding technology that the proposed technology is also applicable to different designs of affine motion prediction modes or other coding tools with the same or similar design spirit.

[0037] Affine Model In HEVC, only the translation motion model is applied for motion compensated prediction. Meanwhile, there are many kinds of motions in the real world, e.g., zoom in / out, rotation, viewpoint motion, and other irregular motions. In VVC and AVS3, affine motion compensated prediction is applied by signaling one flag per inter-coded block to indicate whether the translation motion model or the affine motion model is applied for inter prediction. In the current VVC and AVS3 design, two affine modes are supported for one affine-coded block, including a 4-parameter affine mode and a 6-parameter affine mode.

[0038] The four-parameter affine model has two parameters for translational motion in horizontal and vertical directions, one parameter for zoom motion, and one parameter for rotational motion 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 achieve better adaptation of the motion vectors and affine parameters, these affine parameters will be derived from two MVs (also called control point motion vectors (CPMVs)) located at the top-left and top-right corners of the current block. As shown in Figures 4A-4B, the affine motion field of a block is represented by two CPMVs (V0, V1). Based on the control point motion, the motion field of one affine coded block (v x ,v y )teeth,

number

[0039] The 6-parameter affine mode has the following parameters: two parameters for translation in horizontal and vertical directions, two parameters for horizontal zoom and rotation movements, and another two parameters for vertical zoom and rotation movements. The 6-parameter affine motion model is coded with three CPMVs. As shown in Fig. 5, the three control points of one 6-parameter affine block are at the top-left, top-right, and bottom-left corners of the block. The motion at the top-left control point is related to translation motion, the motion at the top-right control point is related to horizontal rotation and zoom motion, and the motion at the bottom-left control point is related to vertical rotation and zoom motion. Compared with the 4-parameter affine motion model, the 6-parameter horizontal rotation and zoom motion may not be the same as that of vertical rotation and zoom motion. Assuming (V0,V1,V2) are the MVs at the top-left, top-right, and bottom-left corners of the current block in Fig. 5, the sub-block (v x ,vy ) The motion vector for each control point is calculated using the three MVs at the control points.

number

[0040] Affine Merge Mode In affine merge mode, the CPMV of the current block is not explicitly signaled but is derived from the neighboring blocks. Specifically, in this mode, the motion information of the spatial neighboring blocks is used to generate the CPMV of the current block. The affine merge mode candidate list has a limited size. For example, in the current VVC design, there may 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 candidates can be determined in three ways. In the first way, the affine merge candidates may be inherited from the neighboring affine coded blocks. In the second way, the affine merge candidates may be constructed from the translation MVs from the neighboring blocks. In the third way, zero MV is used as the affine merge candidate.

[0041] For the inheritance method, there may be up to two candidates, which are taken from the neighboring block at the bottom left of the current block (e.g., the scanning order is A0 to A1 as shown in FIG. 6) and the neighboring block at the top right of the current block (e.g., the scanning order is B0 to B2 as shown in FIG. 6), if available.

[0042] For the construction method, the candidates are combinations of translational MVs of neighbors, which can be generated by two steps.

[0043] Step 1: Obtain four translational MVs, including MV1, MV2, MV3, and MV4 from available neighbors. MV1: MV from one of the three adjacent blocks near the top-left corner of the current block. As shown in Figure 7, the scan order is B2, B3, and A2. MV2: MV from one of the two adjacent blocks near the top right corner of the current block. As shown in Figure 7, the scan order is B1 and B0. MV3: MV from one of the two adjacent blocks near the bottom-left corner of the current block. As shown in FIG. 7, the scan order is A1 and A0. MV4: MV from the temporally aligned neighboring block near the bottom right corner of the current block. As shown in this figure, the neighboring block is T.

[0044] Step 2: Derive combinations based on the four translational MVs from step 1. Combination 1: MV1, MV2, MV3, Combination 2: MV1, MV2, MV4, Combination 3: MV1, MV3, MV4, Combination 4: MV2, MV3, MV4, Combination 5: MV1, MV2, Combination 6: MV1, MV3.

[0045] When the merge candidate list is not full after filling it with inheritance and construction candidates, zero MV is inserted at the end of the list.

[0046] For the current video standards VVC and AVS, for inheritance and construction candidates respectively, only adjacent neighboring blocks are used to derive affine merge candidates for the current block, as shown in Figures 6 and 7. To increase the diversity of merge candidates and further explore spatial correlations, it is straightforward to extend the coverage of neighboring blocks from adjacent to non-adjacent areas.

[0047] In this disclosure, the candidate derivation process for the affine merge mode is extended by using not only adjacent neighboring blocks but also non-adjacent neighboring blocks. The detailed method may be outlined in three aspects, including affine merge candidate elimination, non-adjacent neighbor-based derivation process for affine inheritance merge candidates, and non-adjacent neighbor-based derivation process for affine construction merge candidates.

[0048] Affine Merge Candidate Removal Since the affine merge candidate list in a typical video coding standard usually has a limited size, candidate elimination is an essential process to remove redundant candidates. This elimination process is necessary for both affine merge inheritance candidates and construction candidates. As explained in the introduction section, the CPMV of the current block is not directly used for affine motion compensation. Instead, the CPMV needs to be transformed into a translational MV at each sub-block location in the current block. The transformation process is performed by following a general affine model, as shown below:

number

[0049] For the six-parameter affine model, three CPMVs are available, designated V0, V1, and V2. The six model parameters a, b, c, d, e, and f are then

number

[0050] For the four-parameter affine model, when the CPMV of the top-left corner and the CPMV of the top-right corner, designated V0 and V1, are available, the six parameters a, b, c, d, e, and f are

number

[0051] For the four-parameter affine model, when the CPMV of the top-left corner and the CPMV of the bottom-left corner, designated V0 and V2, are available, the six parameters a, b, c, d, e, and f are

number

[0052] In the above equations (4), (5), and (6), w and h represent the width and height of the current block, respectively.

[0053] 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 elimination process can be carried out in two steps.

[0054] In step 1, for two candidate sets of CPMV, corresponding affine model parameters for each candidate set are derived. More specifically, the two candidate sets of CPMV 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).

[0055] In step 2, a similarity check is performed between the two sets of affine model parameters based on one or more predefined thresholds. In one embodiment, when the absolute values ​​of (a1-a2), (b1-b2), (c1-c2), (d1-d2), (e1-e2), and (f1-f2) are all below a positive threshold, such as a value of 1, the two candidates are considered to be similar and one of them can be removed / deleted and not added to the merge candidate list.

[0056] In some embodiments, the division or right shift operation in step 1 may be removed to simplify the calculations in the CPMV removal process.

[0057] Specifically, the model parameters c, d, e, and f may be calculated without dividing by the width w and height h of the current block. For example, taking the above equation (4), the approximate model parameters c', d', e', and f' may be calculated as shown in the following equation (7):

number

[0058] In the case where only two CPMVs are available, some of the model parameters are derived from other parts of the model parameters, and the model parameters 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 the width and height. For example, in the case of equation (5), the approximate model parameters c', d', e', and f' may be calculated based on equation (8) below. In the case of equation (6), the approximate model parameters c', d', e', and f' may be calculated based on equation (9) below.

number

[0059] 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.

[0060] [Table 1]

[0061] [Table 2]

[0062] 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.

[0063] [Table 3]

[0064] [Table 4]

[0065] In another embodiment, the threshold may be defined as a group of fixed values. In another embodiment, the threshold may be defined in any combination of the above embodiments. In one example, the threshold may be defined by considering different parameters and the weight and height of the current block. Table 5 is one example of this embodiment, showing the threshold defined by the height of the current coding block. It is noted that in any of the above proposed embodiments, the comparable parameters may represent any parameters defined in any equation from equation (4) to equation (9), if necessary.

[0066] [Table 5]

[0067] Benefits of using the transformed affine model parameters for candidate redundancy check include creating a unified similarity check process for candidates with different affine model types, e.g., one merge candidate may use a 6-parameter affine model with 3 CPMVs while another candidate may use a 4-parameter affine model with 2 CPMVs, taking into account the different influence of each CPMV in the merge candidate when deriving the target MV per sub-block, and providing the importance of the similarity of the two affine merge candidates with respect to the width and height of the current block.

[0068] Non-adjacent neighbor-based derivation process for affine inheritance merge candidates For inheritance merge candidates, the non-adjacent neighbor-based derivation process may be performed in three steps: Step 1 involves candidate scanning; Step 2 involves CPMV projection; and Step 3 involves candidate elimination.

[0069] In step 1, non-adjacent neighboring blocks are scanned and selected in the following manner:

[0070] Scanning area and distance In some examples, non-adjacent neighboring blocks may be scanned from the area to the left and the area above the current coding block, and the scanning distance may be defined as the number of coding blocks from the scanning position to the left or top side of the current coding block.

[0071] As shown in Figure 8, multiple lines of non-adjacent neighboring blocks may be scanned to the left or top of the current coding block. The distances shown in Figure 8 represent the number of coding blocks from each candidate location to the left or top side of the current block. For example, an area with "distance 2" to the left of the current block indicates that the candidate neighboring blocks in this area are two blocks away from the current block. Similar instructions may be applied to other scan areas with different distances.

[0072] 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 left non-adjacent neighboring block 1301 and the upper non-adjacent neighboring block 1302 have the same size as the current block 1303. In some embodiments, the non-adjacent neighboring blocks at each distance may have a different block size than the current coding block, as shown in FIG. 13B. Neighboring block 1304 is a neighboring block to the current block 1303. As shown in FIG. 13B, the left non-adjacent neighboring block 1305 and the upper non-adjacent neighboring block 1306 have the same size as the current block 1307. Neighboring block 1308 is a neighboring block to the current block 1307.

[0073] Note that when the non-adjacent neighboring blocks in 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 of different areas in the image. Note that when the non-adjacent neighboring blocks in each distance have a block size different from 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.

[0074] Based on the defined scan distance, the overall size of the scan area to the left or top of the current encoding clock may be determined with a configurable distance value. In one or more embodiments, the left and top maximum scan distances may use the same or different values. FIG. 13 shows an example where both the left and top maximum distances share the same value of 2. The maximum scan distance value may be determined at the encoder side and signaled in the bitstream. Alternatively, the maximum scan distance value may be predefined as a fixed value, such as a value of 2 or 4. When the maximum scan distance is predefined as a value of 4, this indicates that the scan process is finished when the candidate list is full or when all non-adjacent neighboring blocks with a distance of at most 4 have been scanned, whichever occurs first.

[0075] In one or more embodiments, the beginning and ending adjacent blocks within each scan area at a particular distance may be position dependent.

[0076] In some embodiments, for the left scan area, the start neighbor block may be the neighboring lower left block of the start neighbor block of the neighbor scan area with the smaller distance. For example, as shown in FIG. 8, the start neighbor block of the "distance 2" scan area on the left of the current block is the neighboring lower left block of the start neighbor block of the "distance 1" scan area. The end neighbor block may be the neighboring left block of the end neighbor block of the top scan area with the smaller distance. For example, as shown in FIG. 8, the end neighbor block of the "distance 2" scan area on the left of the current block is the neighboring left block of the end neighbor block of the "distance 1" scan area above the current block.

[0077] Similarly, for the top scan area, the start neighbor block may be the top-right neighbor block of the start neighbor block of the adjacent scan area with the smaller distance, and the end neighbor block may be the top-left neighbor block of the end neighbor block of the adjacent scan area with the smaller distance.

[0078] Scan Order When adjacent blocks in a non-adjacent area are scanned, the selection of adjacent blocks to be scanned may be determined according to a particular order and / or rules.

[0079] In some embodiments, the left area may be scanned first, followed by scanning the area above. As shown in Figure 8, three lines of the non-adjacent area on the left (e.g., from distance 1 to distance 3) may be scanned first, followed by scanning three lines of the non-adjacent area above the current block.

[0080] In some embodiments, the left area and the top area may alternatively be scanned. For example, as shown in FIG. 8, the left scan area with "distance 1" is scanned first, followed by scanning the top area with "distance 1".

[0081] For scan areas on the same side (e.g., left or top areas), the scan order is from the area with the smallest distance to the area with the largest distance. This order may be flexibly combined with other embodiments of the scan order. For example, alternatively, the left and top areas may be scanned, and the order of the areas on the same side is scheduled to be from the smallest distance to the largest distance.

[0082] Within each scan area at a particular distance, a scan order may be defined. In one embodiment, for the left scan area, the scan may start from the bottom neighboring block to the top neighboring block. For the top scan area, the scan may start from the right block to the left block.

[0083] Scan End In case of inheritance merge candidates, adjacent blocks coded in affine mode are defined as eligible candidates. In some embodiments, the scanning process may be performed iteratively. For example, a scan performed in a certain area at a certain distance may be stopped the moment the first X eligible candidates are identified, where X is a predefined positive value. For example, as shown in FIG. 8, a scan in the left scan area with distance 1 may be stopped when the first eligible candidate or candidates are identified. Then, the next iteration of the scanning process is started by targeting another scan area as prescribed by a predefined scanning order / rule.

[0084] In some embodiments, the scanning process may be performed continuously, for example, scanning performed in a particular area at a particular distance may be stopped the moment all covered adjacent blocks are scanned and no more eligible candidates are identified or a maximum allowed number of candidates is reached.

[0085] During the candidate scanning process, the non-adjacent neighboring blocks of each candidate are determined and scanned by following the proposed scanning method above. As a simpler implementation, the non-adjacent neighboring blocks of each candidate may be indicated or located at a specific scanning position. Once the specific scanning area and distance are determined by following the proposed method above, the scanning position may be appropriately determined based on the following method.

[0086] In one method, as shown in FIG. 15A, the bottom-left and top-right locations are used for the top and left non-adjacent neighboring blocks, respectively.

[0087] Alternatively, the bottom right position is used for both the top and left non-adjacent neighboring blocks, as shown in FIG. 15B.

[0088] Alternatively, the bottom left position is used for both the top and left non-adjacent neighboring blocks, as shown in FIG. 15C.

[0089] Alternatively, the top right position is used for both the top and left non-adjacent neighboring blocks, as shown in FIG. 15D.

[0090] As a simpler illustration, in Figures 15A-15D, it is assumed that each non-adjacent neighboring block has the same block size as the current block. Without loss of generality, this illustration may be easily extended to non-adjacent neighboring blocks having different block sizes.

[0091] Additionally, step 2 may utilize the same CPMV projection process as used in the current AVS and VVC standards, in which the current block is assumed to share the same affine model with the selected neighboring blocks, and then the coordinates of the two or three corner pixels (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 plugged into equation (1) or (2), depending on whether the neighboring blocks are coded with a four-parameter or six-parameter affine model, to generate two or three CPMVs.

[0092] In step 3, any eligible candidate identified in step 1 and transformed in step 2 may pass a similarity check against all existing candidates already in the merge candidate list. The details of the similarity check have already been explained in the Affine Merge Candidate Removal section above. If the new eligible candidate is found to be similar to any existing candidate in the candidate list, then this new eligible candidate is deleted / removed.

[0093] Non-adjacent neighbor-based derivation process for affine construction merging candidates In the case of deriving inheritance merge candidates, one neighboring block is identified at a time, and this single neighboring block needs to be coded in affine mode and may contain two or three CPMVs. In the case of deriving construction merge 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 taken from this block.

[0094] Figure 9 presents an example in which construct affine merge candidates may be derived by using non-adjacent neighboring blocks. In Figure 9, A, B, and C are the geographic locations of three non-adjacent neighboring blocks. A virtual coding block is formed by using the location of A as the top-left corner, the location of B as the top-right corner, and the location of C as the bottom-left corner. Considering a virtual CU as an affine coding block, the MVs at the locations of A', B', and C' may be derived by following equation (3), and the model parameters (a, b, c, d, e, f) may be calculated with the translation MVs at the locations of A, B, and C. Once derived, the MVs at the locations of A', B', and C' may be used as the three CPMVs of the current block, and the existing process of generating construct affine merge candidates (the one used in AVS and VVC standards) may be used.

[0095] For constructed merge candidates, the non-adjacent neighbor based derivation process may be implemented in five steps. The non-adjacent neighbor based derivation process may be implemented in a device such as an encoder or a decoder in five steps. Step 1 relates to candidate scanning; step 2 relates to affine model determination; step 3 relates to CPMV projection; step 4 relates to candidate generation; and step 5 relates to candidate removal. In step 1, non-adjacent neighbor blocks may be scanned and selected in the following manner:

[0096] Scan Area and Distance In some embodiments, to maintain a rectangular coding block, the scanning process is performed only for 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.

[0097] In some embodiments, as shown in Figure 9, the scanning process is performed only for the positions of B and C. The position of A 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.

[0098] In some embodiments, the scan direction may be perpendicular to a side of the current block. One example is shown in FIG. 10, where the scan area is defined as one line of continuous motion fields to the left or top of the current block. The scan distance is defined as the number of motion fields from the scan position to the side of the current block. Note that the size of the motion fields 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 fields is aligned with the current VVC standard and set to be 4x4.

[0099] In some embodiments, the scan direction may be parallel to a side of the current block. One example is shown in Figure 11, where the scan area is defined as one line of contiguous coding blocks to the left or above the current block.

[0100] In some embodiments, the scan direction may be a combination of perpendicular and parallel scans to the sides of the current block. One example is shown in FIG. 12. As shown in FIG. 12, the scan direction may also be a combination of parallel and diagonal. The scan at position B starts moving from left to right and then diagonally to the block to the left and above. The scan at position B will repeat as shown in FIG. 12. Similarly, the scan at position C starts moving from top to bottom and then diagonally to the block to the left and above. The scan at position C will repeat as shown in FIG. 12.

[0101] Scan Order In some embodiments, the scan order may be defined from a position with a smaller distance to a position with a larger distance with respect to the current coding block, which may be applied in the case of an orthogonal scan.

[0102] 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 a top-down direction for the left scan area, or a left-to-right direction for the above scan area, as in the example shown in FIG. 11.

[0103] In the case of a combined scanning method, the scanning order may be a combination of fixed pattern and distance dependent, such as the example shown in FIG.

[0104] Scan End For constructed merge candidates, eligible candidates do not need to be affine coded since only translational MV is required.

[0105] Depending on the number of candidates requested, the scanning process may be terminated when the first X eligible candidates have been identified, where X is a positive value.

[0106] As shown in Fig. 9, three corners named A, B, and C are needed to form a virtual coding block. As a simpler implementation, the scanning process in step 1 may be performed only to identify the non-adjacent neighboring blocks at corners B and C, while the coordinates of A may be precisely determined by taking the horizontal coordinate of C and the vertical coordinate of B. In this way, the formed virtual coding block is restricted to be rectangular. If the B or C points are unavailable, e.g., outside the boundary, or if 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.

[0107] For unification, the methods of defining scan areas and distances, scan order, and scan termination proposed for deriving inheritance merge candidates may be fully or partially reused for deriving construction merge candidates. In one or more embodiments, the same methods defined for inheritance merge candidate scans, including but not limited to scan areas and distances, scan order, and scan termination, may be fully reused for construction merge candidate scans.

[0108] In some embodiments, the same method defined for inheritance merge candidate scanning may be partially reused for construction merge candidate scanning. Figure 16 shows an example of this case. In Figure 16, the block size for each non-adjacent neighbor block is the same as the current block and is defined similarly to the inheritance candidate scanning, but it is a simplified version of the overall process since the scanning at each distance is limited to just one block.

[0109] In step 2, the translational MVs at the positions of the selected candidates after step 1 may be evaluated and a suitable affine model may be determined. For a simpler illustration, without loss of generality, Figure 9 is used again as an example.

[0110] Due to factors such as hardware constraints, implementation complexity, and different reference indexes, the scanning process may be terminated before a sufficient number of candidates are identified, for example, motion information for the motion fields in one or more of the selected candidates after step 1 may not be available.

[0111] If motion information for all three candidates is available, the corresponding hypothetical coding block represents a 6-parameter affine model. If motion information for one of the three candidates is unavailable, the corresponding hypothetical coding block represents a 4-parameter affine model. If motion information for two or more of the three candidates is unavailable, the corresponding hypothetical coding block may not be able to represent a valid affine model.

[0112] In some embodiments, if motion information is unavailable at the top left corner of the virtual coding block, e.g., corner A in FIG. 9, or if motion information is unavailable at both the top right corner, e.g., corner B in FIG. 9, and the bottom left corner, e.g., corner C in FIG. 9, the virtual block is set to be invalid and may not be able to represent a valid model, and then steps 3 and 4 may be skipped for the current iteration.

[0113] In some embodiments, if 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 may represent a valid four-parameter affine model.

[0114] In step 3, if the hypothetical coding block can represent a valid affine model, the same projection process used for the inheritance merge candidates may be used.

[0115] In one or more embodiments, the same projection process used for the inheritance merge candidates may be used, in this case the four-parameter model represented by the hypothetical coding block from step 2 is projected onto a four-parameter model for the current block, and the six-parameter model represented by the hypothetical coding block from step 2 is projected onto a six-parameter model for the current block.

[0116] In some embodiments, the affine model represented by the virtual coding block from step 2 is always projected onto a four-parameter model or a six-parameter model for the current block.

[0117] Note that according to equations (5) and (6), there are two types of 4-parameter affine models: type A is the one where the CPMV of the top-left corner and the CPMV of the top-right corner, designated as V0 and V1, are available, and type B is the one where the CPMV of the top-left corner and the CPMV of the bottom-left corner, designated as V0 and V2, are available.

[0118] In one or more embodiments, the type of the projected 4-parameter affine model is the same type of the 4-parameter affine model represented in the virtual coding block. For example, if the affine model represented in the virtual coding block from step 2 is a 4-parameter affine model of type A or B, then the projected affine model for the current block is also of type A or B, respectively.

[0119] In some embodiments, the 4-parameter affine model represented in the virtual coding block from step 2 is always projected onto the same type of 4-parameter model for the current block. For example, a 4-parameter affine model of type A or B represented in the virtual coding block is always projected onto a 4-parameter affine model of type A.

[0120] In step 4, based on the projected CPMV after step 3, in one example, 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 for the current VVC or AVS standard may not be used for the non-adjacent neighbor block-based derivation method. When the temporal motion vectors are not used, this indicates that the generated combination does not include any temporal motion vectors.

[0121] In step 5, any newly generated candidate after step 4 may pass a similarity check against all existing candidates already in the merge candidate list. The details of similarity check have already been explained in the Affine Merge Candidate Removal section. If the newly generated candidate is found to be similar to any existing candidate in the candidate list, then this newly generated candidate is deleted or removed.

[0122] 17 illustrates a computing environment (or computing device) 1710 coupled with a user interface 1760. The computing environment 1710 can be part of a data processing server. In some embodiments, the computing device 1710 can perform any of the various methods or processes (e.g., encoding / decoding methods or processes) as described above according to various examples of the present disclosure. The computing environment 1710 can include a processor 1720, a memory 1740, and an I / O interface 1750.

[0123] The processor 1720 typically controls the overall operation of the computing environment 1710, such as operations associated with display, data acquisition, data communication, and image processing. The processor 1720 may include one or more processors for executing instructions to perform all or a portion of the steps in the methods described above. Moreover, the processor 1720 may include one or more modules that facilitate interaction between the processor 1720 and other components. The processor may be a central processing unit (CPU), a microprocessor, a single chip machine, a GPU, etc.

[0124] The memory 1740 is configured to store various types of data to support the operation of the computing environment 1710. The memory 1740 may include predefined software 1742. Examples of such data include instructions, video data sets, image data, etc. for any application or method operated on the computing environment 1710. The memory 1740 may be implemented by using any type or combination of volatile or non-volatile memory devices, 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 or optical disks, etc.

[0125] The I / O interface 1750 provides an interface between the processor 1720 and peripheral interface modules 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 1750 can be coupled to an encoder and a decoder.

[0126] In some embodiments, a non-transitory computer readable storage medium is also provided having a number of programs, such as those contained in memory 1740, executable by processor 1720 in computing environment 1710 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.

[0127] A non-transitory computer-readable storage medium stores a plurality of programs for execution by a computing device having one or more processors, the plurality of programs, when executed by the one or more processors, causing the computing device to perform the above-described method for motion prediction.

[0128] In some embodiments, the computing environment 1710 may be implemented with 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.

[0129] FIG. 18 is a flowchart illustrating a method for video encoding according to an example of this disclosure.

[0130] In step 1801, the processor 1720 may obtain one or more affine candidates from a plurality of non-adjacent neighbor blocks that are not adjacent to the current block or CU.

[0131] In some examples, the multiple 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.

[0132] In some examples, the processor 1720 may obtain one or more affine candidates according to a scanning rule.

[0133] In some examples, the scan rule may be determined based on at least one scan area, at least one scan distance, and a scan order.

[0134] In some examples, at least one scan distance indicates a number of blocks away from a side of a current block.

[0135] In some examples, one of the multiple non-adjacent neighbor blocks at one of the at least one scan distances may have the same size as the current block, as shown in FIG. 13A, or may have a different size than the current block, as shown in FIG. 13B.

[0136] In some examples, the at least one scan area may include a first scan area and a second scan area, the first scan area is determined according to a first maximum scan distance indicating a maximum number of blocks away from a first side of a current block, the second scan area is determined according to a second maximum scan distance indicating a maximum number of blocks away from a second side of a current block, and the first maximum scan distance is the same as or different from the second maximum scan distance. In some examples, the first maximum scan distance or the second maximum scan distance may be set as a fixed value, such as 3, 4, etc.

[0137] For example, the first scan area may be the left area of ​​the current block 1303, and the first maximum scan distance is three blocks away from the left side of the current block 1303. That is, block 1301 is at the first maximum scan distance, i.e., three blocks away from the left side of the current block 1303. Furthermore, the second scan area may be the upper area of ​​the current block 1303, and the second maximum scan distance is three blocks away from the top or upper side of the current block 1303. That is, block 1302 is at the second maximum scan distance, i.e., three blocks away from the top / upper side of the current block 1303.

[0138] In some examples, the encoder may signal the first maximum scan distance and the second maximum scan distance in a bitstream to be sent to the decoder.

[0139] In some examples, the processor 1720 may stop scanning at least one scan area as terminating the scan in response to determining that the first or second maximum scan distance is equal to a fixed value and in response to determining that the candidate list is full or all non-adjacent neighbor blocks within the first or second maximum scan distance have been scanned.

[0140] In some examples, the processor 1720 may scan a plurality of non-adjacent neighbor blocks in the first scan area to obtain one or more non-adjacent neighbor blocks coded in affine mode, and determine the one or more non-adjacent neighbor blocks coded in affine mode as one or more affine candidates.

[0141] In some examples, the processor 1720 may scan from a first starting non-adjacent neighbor block along a scanning line parallel to the left side of the current block, where the first starting non-adjacent block is the bottom block in the first scan area and the block in the first scan area is a first scanning distance away from the left side of the current block, e.g., D2 in FIG. 14A.

[0142] In some examples, the first beginning non-adjacent block may be at the bottom and to the left of the second beginning non-adjacent neighbor block in the second scan area, and the block in the second scan area may be at a second scan distance away from the left side of the current block, as shown in Figure 14A, e.g., D1 in Figure 14A. In some other examples, the first beginning non-adjacent block may be at the left of the second beginning non-adjacent neighbor block in the second scan area, and the block in the second scan area may be at a second scan distance away from the left side of the current block, as shown in Figure 14B.

[0143] In some examples, the processor 1720 may scan from a third beginning non-adjacent neighbor block along a scan line parallel to the top of the current block, where the third beginning non-adjacent block may be a right block in the first scan area, and the block in the first scan area may be at a first scan distance, such as D2 in FIG. 14A, away from the top of the current block.

[0144] In some examples, the third beginning non-adjacent block may be on top and to the right of the fourth beginning non-adjacent neighbor block in the second scan area, and the block in the second scan area may be at a second scan distance, e.g., D1 in Figure 14A, away from the top of the current block, as shown in Figure 14A. In other examples, the third beginning non-adjacent block may be to the right of the fourth beginning non-adjacent neighbor block in the second scan area, and the block in the second scan area may be at a second scan distance, e.g., D1 in Figure 14A, away from the top of the current block, as shown in Figure 14B.

[0145] In some examples, the processor 1720 can place the non-adjacent neighbor blocks at the scan positions. For example, in a simpler implementation, the non-adjacent neighbor blocks of each candidate may be indicated or located at a particular scan position.

[0146] In some examples, the scan positions may include a bottom left position of the non-adjacent neighbor block in the second scan area above the current block as shown in FIG. 15A, a top right position of the non-adjacent neighbor block in the first scan area to the left of the current block as shown in FIG. 15A, a bottom right position of the non-adjacent neighbor block in the first scan area or the second scan area as shown in FIG. 15B, a bottom left position of the non-adjacent neighbor block in the first scan area or the second scan area as shown in FIG. 15C, and a top right position of the non-adjacent neighbor block in the first scan area or the second scan area as shown in FIG. 15D.

[0147] In some examples, the processor 1720 may obtain a first candidate position for the first affine candidate and a second candidate position for the second affine candidate based on the scan rule, determine a third candidate position for the third affine candidate based on the first and second candidate positions, obtain a virtual block based on the first candidate position, the second candidate position, and the third candidate position, obtain 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 obtain two or three CPMVs of the current block based on the three CPMVs of the virtual block by using the same projection process used for the successor candidate derivation.

[0148] In some examples, the virtual block may be a rectangular coding block, and the third candidate position may be determined based on the vertical position of the first candidate position and the horizontal position of the second candidate position. For example, the virtual block may be a virtual block including positions A, B, and C as shown in FIG.

[0149] In some examples, in response to determining that the first candidate position or the second candidate position is unavailable, or in response to determining that motion information at the first candidate position or the second candidate position is unavailable, the processor 1720 may determine the vertical position of the third candidate position as the vertical position of the top-left point of the current block and determine the horizontal position of the third candidate position as the horizontal position of the top-left point of the current block.

[0150] In some examples, in response to determining that motion information is unavailable at the first, second, or third candidate positions, the processor 1720 may determine that the virtual block cannot represent a valid affine model.

[0151] In some examples, the processor 1720 may determine that the virtual block can represent a valid affine model in response to determining that at least one motion information at the first or second candidate location is available.

[0152] In some examples, the one or more affine candidates may include one or more affine inheritance candidates and one or more affine construction candidates, and the processor 1720 may further obtain the one or more affine inheritance candidates according to a first scanning rule and obtain the one or more affine construction candidates according to a second scanning rule, where the second scanning rule is fully or partially the same as the first scanning rule.

[0153] In some examples, the processor 1720 may further determine a second scan rule based on the at least one second scan area, the at least one second scan distance, and the second scan order, and scan the at least one second scan area at each distance equal to the same block size as the current block.

[0154] In some examples, in response to determining that the virtual block represents a first type affine model, the processor 1720 may obtain two or three CPMVs of the current block based on the three CPMVs of the virtual block by using the same projection process used for inheritance candidate derivation, including by projecting the first type affine model represented by the virtual block onto the first type affine model for the current block, such that the processor 1720 may obtain two or three CPMVs of the current block based on the three CPMVs of the virtual block, or the processor 1720 may determine that the virtual block represents a second type affine model. In response to determining that the virtual block represents an affine model of the current block, processor 1720 may obtain two or three CPMVs of the current block based on the three CPMVs of the virtual block by projecting the second type affine model represented by the virtual block onto an affine model of the second type for the current block, or processor 1720 may obtain two or three CPMVs of the current block based on the three CPMVs of the virtual block by projecting the affine model represented by the virtual block onto an affine model of the type for the current block, where the type of the current block is the first type or the second type.

[0155] In step 1802, the processor 1720 may obtain one or more CPMVs for the current block based on one or more affine candidates.

[0156] FIG. 19 is a flowchart illustrating a method for removing affine candidates according to an example of this disclosure.

[0157] In step 1901, the processor 1720 may calculate a first set of affine model parameters associated with one or more CPMVs of a first affine candidate.

[0158] In step 1902, the processor 1720 may calculate a second set of affine model parameters associated with one or more CPMVs of the second affine candidate.

[0159] In step 1903, the processor 1720 may perform a similarity check between the first affine candidate and the second affine candidate based on the first set of affine model parameters and the second set of affine model parameters.

[0160] In some examples, in response to determining that the first set of affine model parameters is similar to the second set of affine model parameters, the processor 1720 may determine that the first affine candidate is similar to the second affine candidate and remove one of the first affine candidate and the second affine candidate.

[0161] In some examples, the processor 1720 may determine that the first affine candidate is similar to the second affine candidate in response to determining that the plurality of differences are each less than a plurality of thresholds, the plurality of differences including a difference between a parameter of the first set of affine model parameters and a corresponding parameter of the second set of affine model parameters.

[0162] In some examples, the multiple thresholds may be determined according to a first set of affine model parameters comparable to a second set of affine model parameters, such as those shown in Table 1.

[0163] In some examples, the thresholds may be determined according to a size of the current block. For example, the thresholds may be determined according to a width or height of the current block, such as shown in Tables 2, 3, or 4. As another example, the thresholds may be determined as a group of fixed values, such as shown in Table 5.

[0164] In some examples, the processor 1720 may calculate one or more affine model parameters of a first set of affine model parameters associated with one or more CPMVs of a first affine candidate according to a width and height of the current block, and calculate one or more affine model parameters of a second set of affine model parameters associated with one or more CPMVs of a second affine candidate according to a width and height of the current block.

[0165] In some examples, an apparatus for video encoding is provided. The apparatus includes a processor 1720 and a memory 1740 configured to store instructions executable by the processor, the processor being configured to, upon execution of the instructions, perform a method as illustrated in FIG.

[0166] In some other examples, a non-transitory computer-readable storage medium is provided having instructions stored thereon that, when executed by the processor 1720, cause the processor to perform a method such as that illustrated in FIG.

[0167] In some examples, an apparatus for video encoding is provided. The apparatus includes a processor 1720 and a memory 1740 configured to store instructions executable by the processor, the processor being configured to, upon execution of the instructions, perform a method as illustrated in FIG.

[0168] In some other examples, a non-transitory computer-readable storage medium is provided having instructions stored thereon that, when executed by the processor 1720, cause the processor to perform a method such as that illustrated in FIG.

[0169] Other examples of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the present disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure in accordance with its general principles and including departures from the present disclosure as come within known or customary practice in the art. It is intended that the specification and examples be considered merely illustrative.

[0170] It will be understood that the disclosure is not limited to the precise examples described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope of the disclosure.

Claims

1. 1. A method of video encoding, comprising: obtaining one or more affine candidates from a plurality of non-adjacent neighbor blocks that are not adjacent to the current block; obtaining one or more control point motion vectors (CPMVs) for the current block based on the one or more affine candidates; 23. A method of video encoding comprising:

2. The step of obtaining one or more affine candidates comprises: obtaining said one or more affine candidates according to a scanning rule; The method of claim 1 , comprising:

3. determining the scanning rule based on at least one scanning area, at least one scanning distance, and a scanning order; The method of claim 2 , further comprising:

4. The method of claim 3 , wherein the at least one scan distance indicates a number of blocks away from a side of the current block.

5. The method of claim 4 , wherein one of the plurality of non-adjacent neighbor blocks located at one of the at least one scanning distance has the same size as the current block.

6. The method of claim 5 , wherein one of the plurality of non-adjacent neighbor blocks at one of the at least one scan distance has a different size than the current block.

7. determining said at least one scan area according to said at least one scan distance; The method of claim 3 further comprising:

8. 8. The method of claim 7, wherein the at least one scan area includes a first scan area and a second scan area, the first scan area is determined according to a first maximum scan distance indicating a maximum number of blocks away from a first side of the current block, and the second scan area is determined according to a second maximum scan distance indicating a maximum number of blocks away from a second side of the current block, and the first maximum scan distance is the same as or different from the second maximum scan distance.

9. signaling, by an encoder, the first maximum scan distance and the second maximum scan distance. The method of claim 8 further comprising:

10. Predetermining the first maximum scan distance or the second maximum scan distance as a fixed value. The method of claim 8 further comprising:

11. ceasing scanning of the at least one scan area in response to determining that the first maximum scan distance or the second maximum scan distance is equal to four, in response to determining that a candidate list including the one or more affine candidates is full, or in response to determining that all non-adjacent neighbor blocks within the first maximum scan distance and the second maximum scan distance have been scanned. The method of claim 10 further comprising:

12. scanning a plurality of non-adjacent neighbor blocks in a first scan area to obtain one or more non-adjacent neighbor blocks coded in an affine mode; determining said one or more non-adjacent neighboring blocks coded in affine mode as said one or more affine candidates; The method of claim 4 further comprising:

13. scanning from a first beginning non-adjacent neighbor block along a scanning line parallel to a left side of the current block, the first beginning non-adjacent block being a bottom-most block in a first scan area, the block in the first scan area being a first scanning distance away from the left side of the current block; The method of claim 4 further comprising:

14. 14. The method of claim 13, wherein the first beginning non-adjacent block is at the bottom and to the left of a second beginning non-adjacent neighbor block in a second scan area, the block in the second scan area being a second scan distance away from the left side of the current block.

15. 14. The method of claim 13, wherein the first beginning non-adjacent block is to the left of a second beginning non-adjacent neighbor block in a second scan area, the block in the second scan area being a second scan distance away from the left side of the current block.

16. scanning from a third beginning non-adjacent neighbor block along a scan line parallel to a top side of the current block, the third beginning non-adjacent block being a right block in a first scan area, the block in the first scan area being a first scan distance away from the top side of the current block; The method of claim 5 further comprising:

17. 17. The method of claim 16, wherein the third beginning non-adjacent block is on top and to the right of a fourth beginning non-adjacent neighbor block in a second scan area, the block in the second scan area being a second scan distance away from the top side of the current block.

18. 17. The method of claim 16, wherein the third beginning non-adjacent block is to the right of a fourth beginning non-adjacent neighbor block in a second scan area, the block in the second scan area being a second scan distance away from the top side of the current block.

19. Step of placing non-adjacent neighbor blocks in scanning positions The method of claim 4 further comprising:

20. The scanning position is a bottom left position of the non-adjacent neighbor block in a second scan area above the current block; a top right location of the non-adjacent neighbor block in a first scan area to the left of the current block; a bottom right position of the non-adjacent neighbor block in the first scan area or the second scan area; a bottom left position of the non-adjacent neighbor block in the first scan area or in the second scan area; or the top right position of the non-adjacent neighbor block in the first scan area or in the second scan area; 20. The method of claim 19, comprising one of the following locations:

21. obtaining a first candidate position for the first affine candidate and a second candidate position for the second affine candidate based on a scan rule; determining a third candidate position based on the first and second candidate positions for a third affine candidate; obtaining a virtual block based on the first candidate location, the second candidate location, and the third candidate location; 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; obtaining two or three CPMVs of the current block based on the three CPMVs of the virtual block by using the same projection process used for inherited candidate derivation; The method of claim 1 further comprising:

22. 22. The method of claim 21, wherein the virtual block is a rectangular coding block, and the third candidate location is determined based on a vertical position of the first candidate location and a horizontal position of the second candidate location.

23. 22. The method of claim 21, further comprising the steps of: in response to determining that the first candidate position or the second candidate position is unavailable, or in response to determining that motion information at the first candidate position or the second candidate position is unavailable, determining a vertical position of the third candidate position as the vertical position of a top-left point of the current block, and determining a horizontal position of the third candidate position as the horizontal position of the top-left point of the current block.

24. determining that the virtual block cannot represent a valid affine model in response to determining that motion information at the first, second, or third candidate locations is unavailable.

22. The method of claim 21 further comprising:

25. determining that the virtual block can represent a valid affine model in response to determining that at least one motion information at the first or second candidate locations is available.

22. The method of claim 21 further comprising:

26. the one or more affine candidates include one or more affine inheritance candidates and one or more affine construction candidates; The method further comprising: obtaining the one or more affine succession candidates according to a first scanning rule; obtaining the one or more affine construction candidates according to a second scanning rule, the second scanning rule being completely or partially the same as the first scanning rule; The method of claim 1 further comprising:

27. determining the second scan rule based on at least one second scan area, at least one second scan distance, and a second scan order; scanning the at least one second scan area at a distance equal to the same block size as the current block; 27. The method of claim 26, further comprising:

28. obtaining two or three CPMVs of the current block based on the three CPMVs of the virtual block by using the same projection process used for succession candidate derivation, in response to determining that the virtual block represents an affine model of a first type, obtaining the two or three CPMVs of the current block based on the three CPMVs of the virtual block by projecting the affine model of the first type represented by the virtual block onto the affine model of the first type for the current block; in response to determining that the virtual block represents an affine model of a second type, obtaining the two or three CPMVs of the current block based on the three CPMVs of the virtual block by projecting the affine model of the second type represented by the virtual block onto the affine model of the second type of the current block; or obtaining the two or three CPMVs of the current block based on the three CPMVs of the virtual block by projecting an affine model represented by the virtual block onto an affine model of a type of the current block, the type of the current block being the first type or the second type; 22. The method of claim 21, further comprising at least one of:

29. 1. A method for removing affine candidates, comprising the steps of: calculating a first set of affine model parameters associated with one or more control point motion vectors (CPMVs) of a first affine candidate; calculating a second set of affine model parameters associated with one or more CPMVs of the second affine candidate; performing a similarity check between the first affine candidate and the second affine candidate based on the first set of affine model parameters and the second set of affine model parameters; A method for removing affine candidates, comprising:

30. determining, in response to determining that the first set of affine model parameters is similar to the second set of affine model parameters, that the first affine candidate is similar to the second affine candidate; and removing one of the first affine candidate and the second affine candidate.

30. The method of claim 29, further comprising:

31. determining that the first affine candidate is similar to the second affine candidate in response to determining that a plurality of differences are less than a plurality of thresholds, the plurality of differences including a difference between a parameter of the first set of affine model parameters and a corresponding parameter of the second set of affine model parameters.

31. The method of claim 30, further comprising:

32. 32. The method of claim 31, wherein the plurality of thresholds are determined according to the first set of affine model parameters comparable to the second set of affine model parameters.

33. The method of claim 31 , wherein the plurality of thresholds are determined according to a size of a current block.

34. The method of claim 31 , wherein the multiple thresholds are determined according to a width or height of a current block.

35. The method of claim 31 , wherein the plurality of thresholds is determined as a group of fixed values.

36. calculating one or more affine model parameters of the first set of affine model parameters associated with the one or more CPMVs of the first affine candidate according to a width and height of a current block; calculating one or more affine model parameters of the second set of affine model parameters associated with the one or more CPMVs of the second affine candidate according to the width and the height of the current block; 30. The method of claim 29, further comprising:

37. 1. An apparatus for video encoding, comprising: one or more processors; a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors; Equipped with Apparatus for video encoding, wherein said one or more processors are configured to perform a method according to any one of claims 1 to 36 upon execution of said instructions.

38. 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 the method of any one of claims 1 to 36.

Citation Information

Patent Citations

  • Motion Vector Prediction

    JP2020523853A