Candidate Derivation for Affine Merge Mode in Video Coding and Decoding
By deriving affine merge candidates from non-adjacent neighboring blocks and pruning redundant options, the method enhances the accuracy of motion vectors in video encoding and decoding, improving compression efficiency and video quality.
Patent Information
- Application Number
- JP2024514503
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-06
- Filing Date
- 2022-09-06
- Publication Date
- 2024-08-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing video encoding and decoding standards, such as VVC and AVS3, face challenges in accurately deriving affine merge candidates for affine motion prediction modes, leading to suboptimal compression efficiency and video quality.
The method involves obtaining affine candidates from non-adjacent neighboring blocks, calculating affine model parameters, and performing a similarity check to prune redundant candidates, thereby enhancing the derivation process.
This approach improves the accuracy of motion vectors in affine merge modes, resulting in better compression efficiency and video quality by diversifying the candidate pool and reducing redundancy.
Smart Images

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