Method and apparatus for geometric partition patterns reordered with split patterns

By enabling or disabling the reordering of geometric partitioning modes according to the prediction mode in video encoding and decoding, the problem of insufficient encoding and decoding efficiency in the existing technology is solved, and more efficient video data compression is achieved.

CN118614059APending Publication Date: 2024-09-06BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380017803.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-21
Filing Date
2023-01-23
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing video coding and decoding standards have limitations in improving coding and decoding efficiency. Especially when using intra-frame and inter-frame prediction modes, it is difficult to effectively reorder geometric partitioning modes, thus affecting the compression performance of video data.

Method used

Enable or disable template matching-based split mode reordering based on whether intra or inter prediction is used in the geometric partition mode part of the CU during video decoding and encoding, and based on adjacent inter and intra prediction samples. Points are reordered to select the best predicted sample points.

Benefits of technology

The efficiency and quality of video encoding and decoding are improved. By optimizing the reordering strategy of the geometric partition mode, redundant data is reduced and bit rate utilization is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118614059A
    Figure CN118614059A
Patent Text Reader

Abstract

Methods, apparatuses, and non-transitory storage media for video decoding and encoding are provided. In a decoding method, a decoder obtains a first geometric partition mode (GPM) portion and a second GPM portion of a coding unit (CU). In response to determining that the first GPM portion or the second GPM portion is predicted with intra prediction, the decoder disables template matching (TM)-based GPM split mode reordering for a plurality of GPM split modes applied to the CU. Further, in response to determining that both the first GPM portion and the second GPM portion are predicted with inter prediction, the decoder enables TM-based GPM split mode reordering for the plurality of GPM split modes.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is filed based on and claims priority to U.S. Provisional Application No. 63 / 302,008, filed on January 21, 2022, entitled “Methods and Devices for Geometric Partitioning Mode with Split Modes Reordering,” the entire contents of which are incorporated by reference for all purposes. Technical Field

[0003] The present disclosure relates to video coding and compression, and in particular, but not limited to, methods and apparatus for improving coding efficiency of geometric partitioning (GPM) mode. Background Art

[0004] Various video codec techniques can be used to compress video data. Video coding is performed according to one or more video codec standards. For example, today, some well-known video codec standards include Versatile Video Codec (VVC, also known as H.266 or MPEG-I Part 3), High Efficiency Video Codec (HEVC, also known as H.265 or MPEG-H Part 2) and Advanced Video Codec (AVC, also known as H.264 or MPEG-4 Part 10), which are jointly developed by ISO / IEC MPEG and ITU-T VECG. Most existing video codec standards are based on the well-known hybrid video codec framework, that is, block-based prediction methods (e.g., inter-frame prediction, intra-frame prediction) are used to reduce the redundancy present in video images or sequences, and transform coding is used to compress the energy of prediction errors. An important goal of video coding technology is to compress video data into a form that uses a lower bit rate while avoiding or minimizing video quality degradation.

[0005] The first version of the VVC standard was completed in July 2020, providing approximately 50% bitrate savings or equivalent perceptual quality compared to the previous generation video codec standard HEVC. Although the VVC standard provides significant codec improvements over its predecessor, there is evidence that superior codec efficiency can be achieved using additional codec tools. Recently, the Joint Video Exploration Team (JVET), in collaboration with ITU-T VECG and ISO / IEC MPEG, began exploring advanced technologies that can significantly improve codec efficiency compared to VVC. In April 2021, a software code base called the Enhanced Compression Model (ECM) was established for future video codec exploration work. The ECM reference software is based on the VVC Test Model (VTM) developed by JVET for VVC, and further extends and / or improves several existing modules (e.g., intra / inter prediction, transform, loop filter, etc.). In the future, any new codec tools beyond the VVC standard will need to be integrated into the ECM platform and tested using the JVET Common Test Conditions (CTC). Summary of the invention

[0006] The present disclosure provides examples of techniques related to improving the encoding and decoding efficiency of the GPM mode during video encoding or decoding.

[0007] According to a first aspect of the present disclosure, a video decoding method is provided. In the video decoding method, a decoder may obtain a first geometric partitioning mode (GPM) portion and a second GPM portion of a coding unit (CU). In addition, the decoder may disable template matching (TM)-based GPM split mode reordering for multiple GPM split modes applied to the CU in response to determining that the first GPM portion or the second GPM portion is predicted using intra-frame prediction. In addition, the decoder may enable TM-based GPM split mode reordering for multiple GPM split modes in response to determining that both the first GPM portion and the second GPM portion are predicted using inter-frame prediction.

[0008] According to a second aspect of the present disclosure, a video encoding method is provided. In the video encoding method, an encoder may obtain a first GPM part and a second GPM part of a CU. In addition, the encoder may disable TM-based GPM split mode reordering for multiple GPM split modes applied to the CU in response to determining that the first GPM part or the second GPM part is predicted using intra-frame prediction. In addition, the encoder may enable TM-based GPM split mode reordering for multiple GPM split modes in response to determining that both the first GPM part and the second GPM part are predicted using inter-frame prediction.

[0009] According to a third aspect of the present disclosure, a video decoding method is provided. In the video decoding method, a decoder can obtain a first GPM part and a second GPM part of a CU. In addition, the decoder can obtain inter-frame prediction samples of adjacent reconstructed samples of the CU based on a motion vector associated with the first GPM part in response to determining that the first GPM part is encoded and decoded using inter-frame prediction. In addition, in response to determining that the second GPM part is encoded and decoded using intra-frame prediction, the decoder can construct an intra-frame prediction mode (IPM) list for the second GPM part, obtain a candidate intra-frame mode of the second GPM part based on the IPM list, and obtain the intra-frame prediction samples of the adjacent reconstructed samples of the CU based on the candidate intra-frame mode. Moreover, the decoder can reorder multiple GPM split modes based on the inter-frame prediction samples and intra-frame prediction samples of the adjacent reconstructed samples of the CU, select a GPM split mode from the reordered multiple GPM split modes, and obtain the prediction samples of the CU based on the selected GPM split mode.

[0010] According to a fourth aspect of the present disclosure, a video encoding method is provided. In the video encoding method, an encoder may obtain a first GPM part and a second GPM part of a CU. In addition, the encoder may obtain inter-frame prediction samples of adjacent reconstructed samples of the CU based on a motion vector associated with the first GPM part in response to determining that the first GPM part is encoded and decoded using inter-frame prediction. In addition, in response to determining that the second GPM part is encoded and decoded using intra-frame prediction, the encoder may construct an intra-frame prediction mode (IPM) list for the second GPM part, obtain a candidate intra-frame mode of the second GPM part based on the IPM list, and obtain the intra-frame prediction samples of adjacent reconstructed samples of the CU based on the candidate intra-frame mode. Moreover, the encoder may reorder multiple GPM split modes based on the inter-frame prediction samples and intra-frame prediction samples of adjacent reconstructed samples of the CU, select a GPM split mode from the reordered multiple GPM split modes, and obtain the prediction samples of the CU based on the selected GPM split mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] A more specific description of examples of the present disclosure will be presented by reference to specific examples illustrated in the accompanying drawings. Given that these drawings depict only some examples and are therefore not to be considered limiting of scope, these examples will be described and explained in more detail through the use of the accompanying drawings.

[0012] Figure 1A is a block diagram illustrating a system for encoding and decoding video blocks according to some examples of the present disclosure.

[0013] Figure 1B is a block diagram of an encoder according to some examples of the present disclosure.

[0014] Figure 1C to Figure 1F is a block diagram illustrating how a frame may be recursively partitioned into multiple video blocks of different sizes and shapes according to some examples of the present disclosure.

[0015] Figure 1G is a block diagram illustrating an exemplary video encoder according to some examples of the present disclosure.

[0016] Figure 2A is a block diagram of a decoder according to some examples of the present disclosure.

[0017] Figure 2B is a block diagram illustrating an exemplary video decoder according to some examples of the present disclosure.

[0018] Figure 3A is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.

[0019] Figure 3B is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.

[0020] Figure 3C is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.

[0021] Figure 3D is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.

[0022] Figure 3E is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.

[0023] Figure 4 Allowable GPM partitions according to some examples of the present disclosure are illustrated.

[0024] Figure 5 is a diagram illustrating the selection of a unidirectional prediction motion vector from motion vectors in a merge candidate list of a GPM according to some examples of the present disclosure.

[0025] Figure 6 is a diagram illustrating a template matching algorithm according to some examples of the present disclosure.

[0026] Figure 7 A set of selected pixels on which gradient analysis is performed according to some examples of the present disclosure is illustrated.

[0027] Figure 8 The convolution of a 3×3 Sobel gradient filter with a template according to some examples of the present disclosure is illustrated.

[0028] Fig. 9Illustrated is prediction fusion by weighted averaging of two HoG modes and a planar mode according to some examples of the present disclosure.

[0029] Fig.10 Illustrated are templates and their reference samples used in template-based intra mode derivation (TIMD) according to some examples of the present disclosure.

[0030] Fig.11 Illustrated is a mix of templates for reordering GPM split patterns according to some examples of the present disclosure.

[0031] FIG. 12A to FIG. 12C Illustrated are available intra prediction mode (IPM) candidates for a GPM with inter prediction and intra prediction according to some examples of the present disclosure.

[0032] FIG. D illustrates the presence of two forbidden combinations of intra predictions according to some examples of the present disclosure.

[0033] Fig.13 is a diagram illustrating a computing environment coupled with a user interface according to some examples of the present disclosure.

[0034] Fig.14 is a flowchart illustrating a video decoding method according to some examples of the present disclosure.

[0035] Fig.15 is a diagram illustrating some examples according to the present disclosure corresponding to Fig.14 The video decoding method shown is a flowchart of a video encoding method.

[0036] Fig.16 is a flowchart illustrating a video decoding method according to some examples of the present disclosure.

[0037] Fig.17 is a diagram illustrating some examples according to the present disclosure corresponding to Fig.16 The video decoding method shown is a flowchart of a video encoding method. DETAILED DESCRIPTION

[0038] Reference will now be made in detail to specific embodiments, examples of which are illustrated in the accompanying drawings. In the following detailed description, many non-limiting specific details are set forth to aid in understanding 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 on many types of electronic devices having digital video capabilities.

[0039] The terms used in this disclosure are only used for the purpose of describing specific embodiments and are not intended to limit the disclosure. The singular forms "a / an", "said" and "the" in this disclosure and the appended claims are also intended to include plural forms, unless otherwise clearly indicated throughout the disclosure. It should also be understood that the term "and / or" used in this disclosure refers to and includes one or any one or all possible combinations of the listed multiple related items.

[0040] References throughout this specification to "one embodiment," "an embodiment," "an example," "some embodiments," "some examples," or similar language mean that the particular feature, structure, or characteristic being described is included in at least one embodiment or example. Unless explicitly stated otherwise, features, structures, elements, or characteristics described in conjunction with one or some embodiments are also applicable to other embodiments.

[0041] Throughout the present disclosure, the terms "first", "second", "third", etc. are used as nomenclatures and are only used to refer to relevant elements, such as devices, parts, components, steps, etc., and do not imply any spatial or temporal order unless otherwise explicitly stated. For example, "first device" and "second device" may refer to two separately formed devices, or two parts, components or working states of the same device, and may be named arbitrarily.

[0042] The terms "module", "sub-module", "circuit", "sub-circuit", "circuitry", "sub-circuitry", "unit", or "subunit" may include a memory (shared, dedicated, or group) that stores code or instructions that can be executed by one or more processors. A module may include one or more circuits with or without stored code or instructions. A module or circuit may include one or more components that are directly or indirectly connected. These components may or may not be physically attached to or adjacent to each other.

[0043] As used herein, the terms "if" or "when..." may be understood to mean "at" or "in response to" depending on the context. These terms, if 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 following steps: i) when or if condition X exists, perform function or action X', and ii) when or if condition Y exists, perform function or action Y'. The method may have the ability to perform function or action X' and the ability to perform function or action Y' at the same time. Therefore, functions X' and Y' may be performed at different times in multiple executions of the method.

[0044] The unit or module may be implemented in pure software, pure hardware, or a combination of hardware and software. For example, in a pure software implementation, the unit or module may include functionally related code blocks or software components that are linked together directly or indirectly to perform a specific function.

[0045] Figure 1A is a block diagram illustrating an exemplary system 10 for encoding and decoding video blocks in parallel according to some embodiments of the present disclosure. Figure 1A As shown, system 10 includes a source device 12 that generates and encodes video data to be decoded at a later time by a destination device 14. Source device 12 and destination device 14 may include any of a variety of electronic devices, including a desktop or laptop computer, a tablet computer, a smart phone, a set-top box, a digital television, a camera, a display device, a digital media player, a video game console, a video streaming device, etc. In some implementations, source device 12 and destination device 14 are equipped with wireless communication capabilities.

[0046] In some embodiments, the destination device 14 may receive the encoded video data to be decoded via the 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 for enabling 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 and transmitted to the destination device 14 according to a communication standard such as a wireless communication protocol. 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 a portion of a packet-based network such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other device that may be used to facilitate communication from the source device 12 to the destination device 14.

[0047] In some other embodiments, the encoded video data may be transferred from the output interface 22 to the storage device 32. Subsequently, the destination device 14 may access the encoded video data in the storage device 32 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), a flash memory, a volatile memory or a non-volatile memory, or any other suitable digital storage medium for storing encoded video data. In a further example, the storage device 32 may correspond to a file server or another intermediate storage device that can save the encoded video data generated by the source device 12. The destination device 14 may access the video data stored in the storage device 32 via streaming or downloading. The file server may be any type of computer capable of storing the encoded video data and transmitting the encoded video data to the destination device 14. Exemplary file servers include 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. The destination device 14 may access the encoded video data through any standard data connection, including a wireless channel suitable for accessing the encoded video data stored on a file server (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. The transmission of the encoded video data from the storage device 32 may be a streaming transmission, a download transmission, or a combination of both.

[0048] like Figure 1A As shown, source device 12 includes a video source 18, a video encoder 20, and an output interface 22. Video source 18 may include a source such as a video capture device, such as a 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 an example, if video source 18 is a camera of a security monitoring system, source device 12 and destination device 14 may form a camera phone or a video phone. However, the embodiments described in the present application may be generally applicable to video encoding and decoding and may be applied to wireless and / or wired applications.

[0049] 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 on 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.

[0050] Destination device 14 includes input interface 28, video decoder 30, and display device 34. Input interface 28 may include a receiver and / or a modem and receives encoded video data via link 16. The encoded video data transmitted via link 16 or provided on storage device 32 may include various syntax elements generated by video encoder 20 for use by video decoder 30 in decoding the video data. Such syntax elements may be included within the encoded video data transmitted over a communication medium, stored on a storage medium, or stored on a file server.

[0051] In some implementations, destination device 14 may include a display device 34, which may be an integrated display device or 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.

[0052] The video encoder 20 and the 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 specific video encoding / decoding standard and may be applicable to other video encoding / decoding standards. It is generally contemplated that the video encoder 20 of the source device 12 may be configured to encode the video data according to any of these current or future standards. Similarly, it is also generally contemplated that the video decoder 30 of the destination device 14 may be configured to decode the video data according to any of these current or future standards.

[0053] The video encoder 20 and the video decoder 30 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When implemented partially in software, the electronic device can store instructions for the software in a suitable non-transitory computer-readable medium and use one or more processors to execute the instructions in hardware to perform the video encoding / decoding operations disclosed in the present disclosure. Each of the video encoder 20 and the video decoder 30 can be included in one or more encoders or decoders, either of which can be integrated as part of a combined encoder / decoder (CODEC) in a corresponding device.

[0054] Like HEVC, VVC is built on a block-based hybrid video codec framework. Figure 1B 1 is a block diagram illustrating a block-based video encoder according to some embodiments of the present disclosure. In the encoder 100, the input video signal is processed block by block (referred to as a coding unit (CU)). The encoder 100 may be as follows: Figure 1A Video encoder 20 shown. In VTM-1.0, a CU can be up to 128×128 pixels. However, unlike HEVC, which partitions blocks based solely on a quadtree, in VVC, a coding tree unit (CTU) is split into multiple CUs to accommodate different local characteristics based on quad / bin / ternary trees. In addition, the concept of multiple partition unit types in HEVC has been removed, that is, there is no longer a division of CU, prediction unit (PU), and transform unit (TU) in VVC; instead, each CU is always used as a basic unit for both prediction and transformation without further partitioning. In a multi-type tree structure, a CTU is first partitioned according to a quadtree structure. Then, each quadtree leaf node can be further partitioned according to a binary tree structure and a ternary tree structure.

[0055] FIG. 3A to FIG. 3E is a schematic diagram illustrating a multi-type tree partitioning mode according to some embodiments of the present disclosure. FIG. 3A to FIG. 3E Five partition types are shown, including quad partition ( Figure 3A ), vertical binary partition ( Figure 3B ), horizontal binary partitioning ( Figure 3C ), vertical trident partition ( Figure 3D ) and horizontal three-pronged partitioning ( Figure 3E ).

[0056] For each given video block, spatial prediction and / or temporal prediction can be performed. Spatial prediction (or "intra-frame prediction") uses pixels from samples (called reference samples) of already coded neighboring blocks in the same video picture / strip to predict the current video block. Spatial prediction reduces the spatial redundancy inherent in the video signal. Temporal prediction (also known as "inter-frame prediction" or "motion compensated prediction") uses reconstructed pixels from already coded video pictures to predict the current video block. Temporal prediction reduces the temporal redundancy inherent in the video signal. The temporal prediction signal for a given CU is typically represented by one or more motion vectors (MVs) that indicate the amount and direction of motion between the current CU and its temporal reference. Similarly, if multiple reference pictures are supported, a reference picture index is additionally sent, which is used to identify which reference picture in the reference picture storage the temporal prediction signal comes from.

[0057] After spatial prediction and / or temporal prediction, the intra / inter mode decision circuit 121 in the encoder 100 selects the best prediction mode, for example, based on a rate-distortion optimization method. Then, the block prediction value 120 is subtracted from the current video block; and the resulting prediction residual is decorrelated using the transform circuit 102 and the quantization circuit 104. The resulting quantized residual coefficients are inversely quantized by the inverse quantization circuit 116, and the quantized residual coefficients are inversely transformed by the inverse transform circuit 118 to form a reconstructed residual, which is then added back to the prediction block to form a reconstructed signal of the CU. Further, before the reconstructed CU is placed in the reference picture storage of the picture buffer 117 and used for encoding and decoding future video blocks, loop filtering 115, such as a deblocking filter, sample adaptive offset (SAO) and / or adaptive loop filter (ALF), can be applied to the reconstructed CU. To form the output video bitstream 114, the codec mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are sent to the entropy coding unit 106 for further compression and packing to form a bitstream.

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

[0059] These loop filter operations are optional. Performing these operations helps improve coding efficiency and visual quality. Encoder 100 can also decide to turn off these operations to save computational complexity.

[0060] It should be noted that if these filter options are turned on by the encoder 100, intra prediction is typically based on unfiltered reconstructed pixels, while inter prediction is based on filtered reconstructed pixels.

[0061] Figure 2A is a block diagram illustrating a block-based video decoder 200 that can be used in conjunction with many video codec standards. The decoder 200 is located at Figure 1B The block-based video decoder 200 may be similar to the reconstruction-related part in the encoder 100. Figure 1AThe video decoder 30 shown. In the decoder 200, the incoming video bitstream 201 is first decoded by entropy decoding 202 to obtain quantization coefficient levels and prediction related information. Then, the quantization coefficient levels are processed by inverse quantization 204 and inverse transform 206 to obtain reconstructed prediction residuals. The block prediction value mechanism implemented in the 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 with the prediction output generated by the block prediction value mechanism using an adder 214.

[0062] The reconstructed block may be further passed through a loop filter 209 before being stored in a picture buffer 213 used as a reference picture storage. The reconstructed video in the picture buffer 213 may be sent to drive a display device and used to predict future video blocks. When the loop filter 209 is turned on, a filtering operation is performed on these reconstructed pixels, thereby obtaining a final reconstructed video output 222.

[0063] Figure 1G is a block diagram illustrating another exemplary video encoder 20 according to some embodiments described in the present application. The video encoder 20 can perform intra-frame and inter-frame prediction coding and decoding of video blocks within video frames. Intra-frame prediction coding and decoding rely on spatial prediction to reduce or remove spatial redundancy of video data within a given video frame or picture. Inter-frame prediction coding and decoding rely on temporal prediction to reduce or remove temporal redundancy of video data within adjacent video frames or pictures of a video sequence. It should be noted that in the field of video coding and decoding, the term "frame" can be used as a synonym for the term "image" or "picture".

[0064] like Figure 1GAs shown in , the video encoder 20 includes a video data memory 40, a prediction processing unit 41, a decoded picture buffer (DPB) 64, an adder 50, a transform processing unit 52, a quantization unit 54, and an entropy coding unit 56. The prediction processing unit 41 further includes a motion estimation unit 42, a motion compensation unit 44, a partition unit 45, an intra-frame prediction processing unit 46, and an intra-frame block copy (BC) unit 48. In some embodiments, the video encoder 20 also includes an inverse quantization unit 58, an inverse transform processing unit 60, and an adder 62 for video block reconstruction. A loop filter 63 such as a deblocking filter can be located between the adder 62 and the DPB 64 to filter the block boundaries to remove blocking artifacts from the reconstructed video. In addition to the deblocking filter, another loop filter (such as a sample adaptive offset (SAO) filter and / or an adaptive loop filter (ALF)) can also be used to filter the output of the adder 62. In some examples, the loop filter may be omitted and the decoded video blocks may be provided directly by adder 62 to DPB 64. Video encoder 20 may take the form of fixed or programmable hardware units, or may be partitioned among one or more of the illustrated fixed or programmable hardware units.

[0065] Video data memory 40 may store video data to be encoded by components of video encoder 20. For example, video data may be stored in memory 40. Figure 1A The video source 18 shown obtains video data in the video data memory 40. The DPB 64 is a buffer that stores reference video data (e.g., reference frames or pictures) for encoding the video data by the video encoder 20 (e.g., in an intra-frame prediction codec mode or an inter-frame prediction codec mode). The video data memory 40 and the DPB 64 can be formed by any of a variety of memory devices. In various examples, the video data memory 40 can be on-chip with other components of the video encoder 20, or off-chip relative to those components.

[0066] like Figure 1GAs shown in , after receiving the video data, the partition unit 45 within the prediction processing unit 41 partitions the video data into video blocks. The partitioning may also include partitioning the video frame into strips, tiles (e.g., video block sets), or other larger coding units (CUs) according to a predefined partitioning structure (e.g., a quadtree (QT) structure associated with the video data). A video frame is or may be viewed as a two-dimensional array or matrix of samples having sample values. The samples in the array may also be referred to as pixels (pixels or pels). Many samples in the horizontal and vertical directions (or axes) of the array or picture define the size and / or resolution of the video frame. For example, a video frame may be divided into multiple video blocks using QT partitioning. A video block is again or may be viewed as a two-dimensional array or matrix of samples having sample values, but its dimension is smaller than a video frame. Many samples in the horizontal and vertical directions (or axes) of a video block define the size of the video block. The video block can be further divided into one or more block partitions or sub-blocks (which can again form blocks) by, for example, iteratively using QT partitioning, binary tree (BT) partitioning or ternary tree (TT) partitioning or any combination thereof. It should be noted that the term "block" or "video block" used herein can be a part of a frame or picture, in particular a rectangular (square or non-square) part. For example, with reference to HEVC and VVC, a block or video block can be or correspond to a coding tree unit (CTU), a CU, a prediction unit (PU) or a transform unit (TU), and / or can be or correspond to a corresponding block (e.g., a coding tree block (CTB), a coding block (CB), a prediction block (PB) or a transform block (TB)) and / or corresponds to a sub-block.

[0067] Prediction processing unit 41 may select one of a plurality of possible prediction coding modes for the current video block based on the error results (e.g., coding rate and distortion level), such as one of a plurality of intra-frame prediction coding modes or one of a plurality of inter-frame prediction coding modes. Prediction processing unit 41 may provide the resulting intra-frame prediction coding block or inter-frame prediction coding block to adder 50 to generate a residual block, and to adder 62 to reconstruct the coded block for subsequent use as part of a reference frame. Prediction processing unit 41 also provides syntax elements such as motion vectors, intra-frame mode indicators, partition information, and other such syntax information to entropy coding unit 56.

[0068] In order to select an appropriate intra-frame prediction coding mode for the current video block, intra-frame prediction processing unit 46 within prediction processing unit 41 may perform intra-frame prediction coding on the current video block relative to one or more neighboring blocks in the same frame as the current block to be encoded to provide spatial prediction. Motion estimation unit 42 and motion compensation unit 44 within prediction processing unit 41 perform inter-frame prediction coding on the current video block relative to one or more prediction blocks in one or more reference frames to provide temporal prediction. Video encoder 20 may perform multiple encoding passes, for example, to select an appropriate codec mode for each block of video data.

[0069] In some embodiments, the motion estimation unit 42 determines the inter-frame prediction mode of the current video frame by generating a motion vector according to a predetermined pattern within the sequence of video frames, wherein the motion vector indicates the displacement of a video block within the current video frame relative to a prediction block within a reference video frame. Motion estimation performed by the motion estimation unit 42 is the process of generating motion vectors, which estimates the motion of video blocks. The motion vector may, for example, indicate the displacement of a video block within the current video frame or picture relative to a prediction block within a reference frame, wherein the prediction block is relative to the current block encoded and decoded within the current frame. The predetermined pattern may designate the video frames in the sequence as P frames or B frames. The intra BC unit 48 may determine a vector (e.g., a block vector) for intra BC encoding in a manner similar to the manner in which the motion estimation unit 42 determines the motion vector for inter-frame prediction, or the motion estimation unit 42 may be utilized to determine the block vector.

[0070] The prediction block of the video block may be or may correspond to a block or reference block of a reference frame that is considered to closely match the video block to be encoded in terms of pixel difference values, which may be determined by the sum of absolute differences (SAD), the sum of squared differences (SSD), or other difference metrics. In some embodiments, the video encoder 20 may calculate values ​​for segmented integer pixel positions of the reference frame stored in the DPB 64. For example, the video encoder 20 may insert values ​​for quarter pixel positions, eighth pixel positions, or other fractional pixel positions of the reference frame. Thus, the motion estimation unit 42 may perform motion searches relative to full pixel positions and fractional pixel positions and output motion vectors with fractional pixel accuracy.

[0071] Motion estimation unit 42 calculates a motion vector for a video block in an inter-prediction coded frame by comparing the position of the video block to the position of a prediction block of a reference frame selected from a first reference frame list (List 0) or a second reference frame list (List 1), each of which identifies one or more reference frames stored in DPB 64. Motion estimation unit 42 sends the calculated motion vector to motion compensation unit 44 and then to entropy encoding unit 56.

[0072] The motion compensation performed by the motion compensation unit 44 may involve obtaining or generating a prediction block based on the motion vector determined by the motion estimation unit 42. After receiving the motion vector of the current video block, the motion compensation unit 44 may locate the prediction block pointed to by the motion vector in one of the reference frame lists, obtain the prediction block from the DPB 64 and forward the prediction block to the adder 50. The adder 50 then forms a residual video block with pixel difference values ​​by subtracting the pixel values ​​of the prediction block provided by the motion compensation unit 44 from the pixel values ​​of the current video block being encoded. The pixel difference values ​​forming the residual video block may include luminance component difference values ​​or chrominance component difference values ​​or both. The motion compensation unit 44 may also generate syntax elements associated with the video block of the video frame for use by the video decoder 30 when decoding the video block of the video frame. The syntax elements may include, for example, syntax elements defining a motion vector for identifying the prediction block, any flag indicating a prediction mode, or any other syntax information described herein. Note that the motion estimation unit 42 and the motion compensation unit 44 may be highly integrated, but are illustrated separately for conceptual purposes.

[0073] In some embodiments, the intra BC unit 48 may generate a vector and obtain a prediction block in a manner similar to that described above in conjunction with the motion estimation unit 42 and the motion compensation unit 44, but wherein the prediction block is in the same frame as the current block being encoded, and wherein the vector is referred to as a block vector relative to the motion vector. Specifically, the intra BC unit 48 may determine an intra prediction mode for encoding the current block. In some examples, the intra BC unit 48 may encode the current block using various intra prediction modes, for example, during separate encoding passes, and test its performance through rate-distortion analysis. Next, the intra BC unit 48 may select an appropriate intra prediction mode to use among the various tested intra prediction modes and generate an intra mode indicator accordingly. For example, the intra BC unit 48 may calculate a rate-distortion value using rate-distortion analysis for various tested intra prediction modes and select an intra prediction mode with the best rate-distortion characteristic among the tested modes as the appropriate intra prediction mode to be used. The rate-distortion analysis generally determines the amount of distortion (or error) between a coded block and the original, uncoded block (coded to produce the coded block) and the bit rate (i.e., the number of bits) used to produce the coded block. Intra BC unit 48 may calculate a ratio based on the distortion and rate for each coded block to determine which intra-prediction mode exhibits the best rate-distortion value for the block.

[0074] In other examples, intra BC unit 48 may use motion estimation unit 42 and motion compensation unit 44 in whole or in part to perform such functions for intra BC prediction according to embodiments described herein. In either case, for intra block copying, the prediction block may be a block that is considered to closely match the block to be encoded in terms of pixel differences, which may be determined by SAD, SSD, or other difference metrics, and identification of the prediction block may include calculating values ​​for piecewise integer pixel positions.

[0075] Regardless of whether the prediction block is from the same frame according to intra-frame prediction or from different frames according to inter-frame prediction, the video encoder 20 can form a residual video block by subtracting the pixel values ​​of the prediction block from the pixel values ​​of the current video block being encoded and decoded to form pixel difference values. The pixel difference values ​​forming the residual video block may include luminance component differences and chrominance component differences.

[0076] As described above, the intra-prediction processing unit 46 may perform intra-prediction on the current video block as an alternative to the inter-prediction performed by the motion estimation unit 42 and the motion compensation unit 44, or the intra-block copy prediction performed by the intra BC unit 48. Specifically, the intra-prediction processing unit 46 may determine an intra-prediction mode for encoding the current block. To this end, the intra-prediction processing unit 46 may encode the current block using various intra-prediction modes, for example, during a separate encoding pass, and the intra-prediction processing unit 46 (or a mode selection unit in some examples) may select an appropriate intra-prediction mode from the tested intra-prediction modes to use. The intra-prediction processing unit 46 may provide information indicating the selected intra-prediction mode of the block to the entropy encoding unit 56. The entropy encoding unit 56 may encode the information indicating the selected intra-prediction mode in the bitstream.

[0077] After prediction processing unit 41 determines a prediction block for the current video block via inter-prediction or intra-prediction, adder 50 forms a residual video block by subtracting the prediction block from the current video block. The residual video data in the residual block may be included in one or more TUs and provided to transform processing unit 52. Transform processing unit 52 transforms the residual video data into residual transform coefficients using a transform such as a discrete cosine transform (DCT) or a conceptually similar transform.

[0078] Transform processing unit 52 may send the resulting transform coefficients to quantization unit 54. Quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process may also reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, quantization unit 54 may then perform a scan of the matrix including the quantized transform coefficients. Alternatively, entropy encoding unit 56 may perform the scan.

[0079] After quantization, entropy coding unit 56 entropy encodes the quantized transform coefficients into a video bitstream using, for example, context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), syntax-based context adaptive binary arithmetic coding (SBAC), probability interval partitioned entropy (PIPE) coding, or other entropy coding methods or techniques. The encoded bitstream may then be transmitted to a video bitstream such as Figure 1A The video decoder 30 shown, or archive it to Figure 1A The data is stored in the storage device 32 as shown for later transmission to or retrieval by the video decoder 30. The entropy coding unit 56 may also entropy encode the motion vectors and other syntax elements of the current video frame being encoded.

[0080] Inverse quantization unit 58 and inverse transform processing unit 60 apply inverse quantization and inverse transform, respectively, to reconstruct the residual video block in the pixel domain to generate a reference block for predicting other video blocks. As described above, motion compensation unit 44 may generate a motion compensated prediction block from one or more reference blocks of a frame stored in DPB 64. Motion compensation unit 44 may also apply one or more interpolation filters to the prediction block to calculate segmented integer pixel values ​​for use in motion estimation.

[0081] Adder 62 adds the reconstructed residual block to the motion compensated prediction block produced by motion compensation unit 44 to produce a reference block for storage in DPB 64. The reference block may then be used as a prediction block by intra BC unit 48, motion estimation unit 42, and motion compensation unit 44 to inter-predict another video block in a subsequent video frame.

[0082] Figure 2B 1 is a block diagram illustrating another exemplary video decoder 30 according to some embodiments of the present application. The video decoder 30 includes a video data memory 79, an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, an adder 90, and a DPB 92. The prediction processing unit 81 further includes a motion compensation unit 82, an intra-frame prediction unit 84, and an intra-frame BC unit 85. The video decoder 30 may perform the above-mentioned Figure 1G The decoding process is the reverse of the encoding process described with respect to video encoder 20. For example, motion compensation unit 82 may generate prediction data based on motion vectors received from entropy decoding unit 80, and intra-prediction unit 84 may generate prediction data based on intra-prediction mode indicators received from entropy decoding unit 80.

[0083] In some examples, units of the video decoder 30 may be assigned to perform embodiments of the present application. Likewise, in some examples, embodiments of the present disclosure may be divided between one or more units of the video decoder 30. For example, the intra BC unit 85 may perform embodiments of the present application alone or in combination with other units of the video decoder 30 (such as the motion compensation unit 82, the intra prediction unit 84, and the entropy decoding unit 80). In some examples, the video decoder 30 may not include the intra BC unit 85, and the functions of the intra BC unit 85 may be performed by other components of the prediction processing unit 81 (such as the motion compensation unit 82).

[0084] The video data memory 79 may store video data to be decoded by other components of the video decoder 30, such as an encoded video bitstream. For example, the video data stored in the video data memory 79 may be obtained from a storage device 32, a local video source (such as a camera) via a wired or wireless network transmission of the video data or by accessing a physical data storage medium (e.g., a flash drive or a hard disk). The video data memory 79 may include a coded picture buffer (CPB) that stores encoded video data from an encoded video bitstream. The DPB 92 of the video decoder 30 stores reference video data for use in decoding the video data by the video decoder 30 (e.g., in an intra-frame prediction codec mode or an inter-frame prediction codec mode). The video data memory 79 and the DPB 92 may be formed by any of a variety of memory devices, such as a dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. For illustrative purposes, the video data memory 79 and the DPB 92 are shown in FIG. 1 . Figure 2B 92 are depicted as two different components of the video decoder 30. However, it will be apparent to those skilled in the art that the video data memory 79 and the DPB 92 may be provided by the same memory device or separate memory devices. In some examples, the video data memory 79 may be on-chip with other components of the video decoder 30, or off-chip relative to those components.

[0085] During the decoding process, the video decoder 30 receives an encoded video bitstream representing a video block of an encoded video frame and associated syntax elements. The video decoder 30 may receive syntax elements at the video frame level and / or the video block level. The entropy decoding unit 80 of the video decoder 30 entropy decodes the bitstream to generate quantized coefficients, motion vectors or intra-frame prediction mode indicators, and other syntax elements. The entropy decoding unit 80 then forwards the motion vectors or intra-frame prediction mode indicators and other syntax elements to the prediction processing unit 81.

[0086] When a video frame is encoded as an intra-frame prediction coded (I) frame or for intra-frame coded prediction blocks in other types of frames, the intra-frame prediction unit 84 of the prediction processing unit 81 can generate prediction data for a video block of the current video frame based on the signaled intra-frame prediction mode and reference data from a previously decoded block of the current frame.

[0087] When the video frame is encoded and decoded as an inter-frame prediction codec (i.e., B or P) frame, the motion compensation unit 82 of the prediction processing unit 81 generates one or more prediction blocks of the video block of the current video frame based on the motion vectors and other syntax elements received from the entropy decoding unit 80. Each prediction block can be generated from a reference frame in one of the reference frame lists. The video decoder 30 can construct the reference frame lists: List 0 and List 1 based on the reference frames stored in the DPB 92 using a default construction technique.

[0088] In some examples, when a video block is encoded or decoded according to the intra BC mode described herein, intra BC unit 85 of prediction processing unit 81 generates a prediction block for the current video block based on the block vector and other syntax elements received from entropy decoding unit 80. The prediction block may be within a reconstructed region of the same picture as the current video block defined by video encoder 20.

[0089] The motion compensation unit 82 and / or the intra BC unit 85 determine the prediction information of the video block of the current video frame by parsing the motion vector and other syntax elements, and then use the prediction information to generate the prediction block of the decoded current video block. For example, the motion compensation unit 82 uses some of the received syntax elements to determine the prediction mode (e.g., intra prediction or inter prediction) used to encode the video block of the video frame, the inter prediction frame type (e.g., B or P), the construction information of one or more reference frame lists in the reference frame list of the frame, the motion vector of each inter prediction encoded video block of the frame, the inter prediction state of each inter prediction encoded video block of the frame, and other information for decoding the video block in the current video frame.

[0090] Similarly, the intra BC unit 85 may use some of the received syntax elements (e.g., flags) to determine that the current video block is predicted using the intra BC mode, construction information that video blocks of the frame are within the reconstructed region and should be stored in the DPB 92, block vectors for each intra BC predicted video block of the frame, intra BC prediction status for each intra BC predicted video block of the frame, and other information for decoding the video blocks in the current video frame.

[0091] Motion compensation unit 82 may also perform interpolation using interpolation filters to calculate interpolated values ​​for sub-integer pixels of a reference block, as used by video encoder 20 during encoding of the video block. In this case, motion compensation unit 82 may determine the interpolation filters used by video encoder 20 from the received syntax elements and use the interpolation filters to produce a prediction block.

[0092] Inverse quantization unit 86 inverse quantizes the quantized transform coefficients provided in the bitstream and entropy decoded by entropy decoding unit 80, using the same quantization parameters calculated by video encoder 20 for each video block in the video frame to determine the degree of quantization. Inverse transform processing unit 88 applies an inverse transform (e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process) to the transform coefficients to reconstruct the residual block in the pixel domain.

[0093] After the motion compensation unit 82 or the intra BC unit 85 generates a prediction block for the current video block based on the vector and other syntax elements, the adder 90 reconstructs the decoded video block of the current video block by summing the residual block from the inverse transform processing unit 88 and the corresponding prediction block generated by the motion compensation unit 82 and the intra BC unit 85. A loop filter 91 (such as a deblocking filter, an SAO filter, and / or an ALF) can be positioned between the adder 90 and the DPB 92 to further process the decoded video block. In some examples, the loop filter 91 can be omitted and the decoded video block can be provided directly to the DPB 92 by the adder 90. The decoded video blocks in a given frame are then stored in the DPB 92, which stores reference frames for subsequent motion compensation of the next video block. The DPB 92 or a memory device separate from the DPB 92 can also store the decoded video for later presentation on a display such as a video player. Figure 1A On a display device such as display device 34.

[0094] In the current VVC and AVS3 standards, the motion information of the current coding block is either copied from the spatial or temporal neighboring blocks specified by the merge candidate index, or obtained through an explicit signal of motion estimation. The focus of the present 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. For the convenience of describing the present disclosure, the existing affine merge mode design in the VVC standard is used as an example to illustrate the proposed ideas. Please note that although the existing affine mode design in the VVC standard is used as an example throughout the disclosure, for technicians in the field of modern video coding and decoding technology, the proposed technology can also be applied to different designs of affine motion prediction modes or other coding and decoding tools with the same or similar design spirit.

[0095] In a typical video encoding and decoding process, a video sequence typically includes an ordered set of frames or pictures. Each frame may include three sample arrays, denoted as SL, SCb, and SCr. SL is a two-dimensional array of luma samples. SCb is a two-dimensional array of Cb chroma samples. SCr is a two-dimensional array of Cr chroma samples. In other examples, a frame may be monochrome and therefore include only a two-dimensional array of luma samples.

[0096] like Figure 1C As shown, the video encoder 20 (or more specifically, a partition unit in a prediction processing unit of the video encoder 20) generates an encoded representation of a frame by first partitioning the frame into a set of CTUs. A video frame may include an integer number of CTUs sequentially ordered from left to right and from top to bottom in a raster scan order. Each CTU is the largest logical coding unit, and the width and height of the CTU are signaled by the video encoder 20 in a sequence parameter set so that all CTUs in a video sequence have the same size, i.e., one of 128×128, 64×64, 32×32, and 16×16. It should be noted, however, that the present application is not necessarily limited to a particular size. As Figure 1D As shown, each CTU may include a luma sample CTB, two corresponding chroma sample coding tree blocks, and syntax elements for encoding and decoding the samples of the coding tree blocks. The syntax elements describe the properties of different types of units of pixel coding blocks and how the video sequence can be reconstructed at the video decoder 30, including inter-frame prediction or intra-frame prediction, intra-frame prediction mode, motion vectors and other parameters. In a monochrome picture or a picture with three separate color planes, a CTU may include a single coding tree block and syntax elements for encoding and decoding the samples of the coding tree block. The coding tree block may be an N×N sample block.

[0097] To achieve better performance, the video encoder 20 may recursively perform tree partitioning (such as binary tree partitioning, ternary tree partitioning, quadtree partitioning, or a combination thereof) on the coding tree block of the CTU and divide the CTU into smaller CUs. Figure 1E As shown, a 64×64 CTU 400 is first divided into four smaller CUs, each with a block size of 32×32. Among the four smaller CUs, CU 410 and CU 420 are each divided into four 16×16 CUs by block size. Two 16×16 CUs 430 and 440 are each further divided into four 8×8 CUs by block size. Figure 1F Depicted diagram Figure 1E The quadtree data structure of the final result of the partitioning process of the CTU 400 depicted in FIG. 4 is shown in FIG. 4 , with each leaf node of the quadtree corresponding to a CU having a corresponding size ranging from 32×32 to 8×8. Figure 1DEach CU may include a luma sample CB and two corresponding chroma sample coding blocks (with the same size of the frame), as well as syntax elements for encoding and decoding the samples of the coding blocks. In monochrome pictures or pictures with three separate color planes, a CU may include a single coding block and syntax structures for encoding and decoding the samples of the coding block. It should be noted that Figure 1E to Figure 1F The quadtree partitioning depicted in FIG is for illustration purposes only, and a CTU can be partitioned into multiple CUs to accommodate different local characteristics based on quadtree / ternary tree / binary tree partitioning. In the multi-type tree structure, a CTU is partitioned according to a quadtree structure, and each quadtree leaf CU can be further partitioned according to a binary tree structure or a ternary tree structure. FIG. 3A to FIG. 3E As shown, there are five possible partition types for a coding block with width W and height H, namely, quadrifugal partition, horizontal binary partition, vertical binary partition, horizontal trifugal partition and vertical trifugal partition.

[0098] In some embodiments, the video encoder 20 may further partition the coding block of the CU into one or more M×N PBs. A PB is a rectangular (square or non-square) sample block to which the same prediction (inter or intra) is applied. The PU of a CU may include a luma sample PB, two corresponding chroma sample PBs, and syntax elements for predicting the PBs. In a monochrome picture or a picture with three separate color planes, the PU may include a single PB and a syntax structure for predicting the PB. The video encoder 20 may generate predicted luma blocks, Cb blocks, and Cr blocks for the luma PB, Cb PB, and Cr PB of each PU of the CU.

[0099] Video encoder 20 may use intra prediction or inter prediction to generate a prediction block for a PU. If video encoder 20 uses intra prediction to generate a prediction block for a PU, video encoder 20 may generate the prediction block for the PU based on decoded samples of a frame associated with the PU. If video encoder 20 uses inter prediction to generate a prediction block for a PU, video encoder 20 may generate the prediction block for the PU based on decoded samples of one or more frames other than the frame associated with the PU.

[0100] After the video encoder 20 generates the predicted luma, Cb, and Cr blocks of one or more PUs of a CU, the video encoder 20 may generate a luma residual block of the CU by subtracting the predicted luma block of the CU from its original luma coding block, so that each sample in the luma residual block of the CU indicates the difference between a luma sample in one of the predicted luma blocks of the CU and a corresponding sample in the original luma coding block of the CU. Similarly, the video encoder 20 may generate a Cb residual block and a Cr residual block of the CU, respectively, so that each sample in the Cb residual block of the CU indicates the difference between a Cb sample in one of the predicted Cb blocks of the CU and a corresponding sample in the original Cb coding block of the CU, and each sample in the Cr residual block of the CU may indicate the difference between a Cr sample in one of the predicted Cr blocks of the CU and a corresponding sample in the original Cr coding block of the CU.

[0101] In addition, if Figure 1E As illustrated, the video encoder 20 may use quadtree partitioning to decompose the luma, Cb, and Cr residual blocks of a CU into one or more luma, Cb, and Cr transform blocks, respectively. A transform block is a rectangular (square or non-square) block of samples to which the same transform is applied. A TU of a CU may include a luma sample transform block, two corresponding chroma sample transform blocks, and syntax elements for transforming transform block samples. Thus, each TU of a CU may be associated with a luma transform block, a Cb transform block, and a Cr transform block. In some examples, the luma transform block associated with a TU may be a sub-block of the luma residual block of the CU. The Cb transform block may be a sub-block of the Cb residual block of the CU. The Cr transform block may be a sub-block of the Cr residual block of the CU. In a monochrome picture or a picture with three separate color planes, a TU may include a single transform block and a syntax structure for transforming samples of a transform block.

[0102] The video encoder 20 may apply one or more transforms to the luma transform block of the TU to generate a luma coefficient block of the TU. The coefficient block may be a two-dimensional array of transform coefficients. The transform coefficient may be a scalar. The video encoder 20 may apply one or more transforms to the Cb transform block of the TU to generate a Cb coefficient block of the TU. The video encoder 20 may apply one or more transforms to the Cr transform block of the TU to generate a Cr coefficient block of the TU.

[0103] After generating a coefficient block (e.g., a luma coefficient block, a Cb coefficient block, or a Cr coefficient block), the video encoder 20 may quantize the coefficient block. Quantization generally refers to the process of quantizing transform coefficients to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. After the video encoder 20 quantizes the coefficient block, the video encoder 20 may entropy encode the syntax elements indicating the quantized transform coefficients. For example, the video encoder 20 may perform CABAC on the syntax elements indicating the quantized transform coefficients. Ultimately, the video encoder 20 may output a bitstream including a sequence of bits forming a representation of a coded frame and associated data, which is stored in the storage device 32 or transmitted to the destination device 14.

[0104] After receiving the bitstream generated by the video encoder 20, the video decoder 30 may parse the bitstream to obtain syntax elements from the bitstream. The video decoder 30 may reconstruct a frame of video data based at least in part on the syntax elements obtained from the bitstream. The process of reconstructing video data is generally the opposite of the encoding process performed by the video encoder 20. For example, the video decoder 30 may perform an inverse transform on a coefficient block associated with a TU of the current CU to reconstruct a residual block associated with the TU of the current CU. The video decoder 30 also reconstructs the coding block of the current CU by adding the samples of the prediction block of the PU of the current CU to the corresponding samples of the transform block of the TU of the current CU. After reconstructing the coding block of each CU of the frame, the video decoder 30 may reconstruct the frame.

[0105] As mentioned above, video codecs mainly use two modes, i.e., intra-frame prediction (or intra-prediction) and inter-frame prediction (or inter-prediction) to achieve video compression. It should be noted that IBC can be considered as intra-frame prediction or a third mode. Between these two modes, inter-frame prediction contributes more to codec efficiency than intra-frame prediction because it uses motion vectors to predict the current video block from a reference video block.

[0106] However, with the continuous improvement of video data capture technology and finer video block sizes for retaining details in video data, the amount of data required to represent the motion vector of the current frame has also increased significantly. One way to overcome this challenge is to benefit from the fact that not only a group of neighboring CUs in the spatial and temporal domains have similar video data for prediction purposes, but also the motion vectors between these neighboring CUs are similar. Therefore, by exploring the spatial and temporal correlation of CUs, the motion information of spatially neighboring CUs and / or temporally co-located CUs can be used as an approximation of the motion information (e.g., motion vector) of the current CU, which is also called the "motion vector predictor" (MVP) of the current CU.

[0107] Instead, it will be combined as above Figure 1B The actual motion vector of the current CU determined by the motion estimation unit is encoded into a video bit stream, and the motion vector prediction value of the current CU is subtracted from the actual motion vector of the current CU to generate a motion vector difference (MVD) of the current CU. In this way, there is no need to encode the motion vector determined by the motion estimation unit for each CU of the frame into a video bit stream, and the amount of data used to represent the motion information in the video bit stream can be significantly reduced.

[0108] Like the process of selecting a prediction block in a reference frame during inter-frame prediction of a coding block, a set of rules need to be adopted by both the video encoder 20 and the video decoder 30 for constructing a motion vector candidate list (also referred to as a "merge list") of the current CU using those potential candidate motion vectors associated with spatially neighboring CUs and / or temporally co-located CUs of the current CU, and then selecting a member from the motion vector candidate list as the motion vector prediction value of the current CU. In doing so, the motion vector candidate list itself does not need to be transmitted from the video encoder 20 to the video decoder 30, and the index of the selected motion vector prediction value within the motion vector candidate list is sufficient for the video encoder 20 and the video decoder 30 to use the same motion vector prediction value within the motion vector candidate list to encode and decode the current CU.

[0109] Geometric Partitioning Model (GPM)

[0110] In VVC, inter prediction supports geometric partition mode. Geometric partition mode is signaled as a special merge mode by a CU level flag. In the current GPM design, for each possible CU size with width and height not less than 8 and not greater than 64 (excluding 8×64 and 64×8), GPM mode supports a total of 64 partitions.

[0111] When this mode is used, the CU is split into two parts by the geometric positioning line, such as Figure 4As shown. The position of the split line is mathematically derived from the angle and offset parameters of the specific partition. Each part of the geometric partition in the CU is inter-predicted using its own motion; each partition only allows unidirectional prediction, that is, each part has one motion vector and one reference index. Unidirectional prediction motion constraints are applied to ensure that only two motion compensated predictions are required for each CU, as with traditional bidirectional prediction. If a geometric partition mode is used for the current CU, a geometric partition index indicating the partition mode (angle and offset) of the geometric partition and two merge indices (one for each partition) are further signaled. The value of the maximum GPM candidate size is explicitly signaled at the sequence level.

[0112] One-way prediction candidate list construction

[0113] To get a unidirectional prediction motion vector for a geometric partition, first directly get a unidirectional prediction candidate list from the regular merge candidate list generation process. Denote n as the index of the unidirectional prediction motion in the geometric unidirectional prediction candidate list. Use the LX motion vector of the nth merge candidate (x equals the parity of n) as the nth unidirectional prediction motion vector for the geometric partition mode. These motion vectors are in Figure 5 In the case where the corresponding LX motion vector of the n-th extended merge candidate does not exist, the L(1-X) motion vector of the same candidate is used as the unidirectional prediction motion vector of the geometric partition mode.

[0114] Blending along geometric partition edges

[0115] After obtaining each geometric partition using its own motion, blending is applied to the two unidirectional prediction signals to obtain samples around the edges of the geometric partitions. The blending weight for each position of the CU is obtained based on the distance from each individual sample position to the corresponding partition edge.

[0116] GPM signaling design

[0117] In some examples of GPM design, the use of GPM is indicated by signaling a flag at the CU level. The flag is signaled only when the current CU is encoded or decoded by merge mode or skip mode. Specifically, when the flag is equal to one, it indicates that the current CU is predicted by GPM. Otherwise (the flag is equal to zero), the CU is encoded or decoded by another merge mode, such as normal merge mode, merge mode with motion vector difference, combined inter and intra prediction, etc. When GPM is enabled for the current CU, a syntax element (i.e., merge_gpm_partition_idx) is further signaled to indicate the applied geometric partitioning mode (which specifies the direction of the straight line that splits the CU into two partitions and the offset relative to the CU center, such as Figure 4). Afterwards, two syntax elements merge_gpm_idx0 and merge_gpm_idx1 are signaled to indicate the indices of the unidirectional prediction merge candidates for the first GPM partition and the second GPM partition. More specifically, these two syntax elements are used to determine the unidirectional MVs of the two GPM partitions according to the unidirectional prediction merge list described in the section "Unidirectional Prediction Merge List Construction".

[0118] In some examples of GPM design, in order to make the two unidirectional MVs more different, the two indexes cannot be the same. Based on such a priori knowledge, the unidirectional prediction merge index of the first GPM partition is first signaled and used as a prediction value to reduce the signaling overhead of the unidirectional prediction merge index of the second GPM partition. In detail, if the second unidirectional prediction merge index is less than the first unidirectional prediction merge index, its initial value is directly signaled. Otherwise (the second unidirectional prediction merge index is greater than the first unidirectional prediction merge index), its value is subtracted by one before being signaled to the bitstream. On the decoder side, the first unidirectional prediction merge index is first decoded. Then, for the decoding of the second unidirectional prediction merge index, if the parsed value is less than the first unidirectional prediction merge index, the second unidirectional prediction merge index is set to be equal to the parsed value; otherwise (the parsed value is equal to or greater than the first unidirectional prediction merge index), the second unidirectional prediction merge index is set to be equal to the parsed value plus one. Table 1 illustrates the existing syntax elements used for the GPM mode in the current VVC specification.

[0119] Table 1 Existing GPM syntax elements in the merged data syntax table of the VVC specification

[0120]

[0121] In some examples of GPM design, truncated unary codes are used for binarization of two unidirectional prediction merge indices (i.e., merge_gpm_idx0 and merge_gpm_idx1). Additionally, since the two unidirectional prediction merge indices cannot be the same, different maximum values ​​are used to truncate the codewords of the two unidirectional prediction merge indices, and for merge_gpm_idx0 and merge_gpm_idx1, the different maximum values ​​are set equal to MaxGPMMergeCand–1 and MaxGPMMergeCand-2, respectively. MaxGPMMergeCand is the number of candidates in the unidirectional prediction merge list. On the decoder side, when the received value of merge_gpm_idx1 is equal to or greater than the value of merge_gpm_idx0, the value of merge_gpm_idx1 will be increased by 1, given that the values ​​of merge_gpm_idx0 and merge_gpm_idx1 cannot be the same. When the GPM mode is applied, two different binarization methods are applied to translate the syntax merge_gpm_partition_idx into a binary bit string. Specifically, the syntax elements are binarized by fixed-length codes and truncated binary codes in VVC.

[0122] Motion signaling for regular inter-mode

[0123] Similar to the HEVC standard, in addition to the merge / skip mode, both VVC and AVS3 allow an inter-frame CU to explicitly specify its motion information in the bitstream. In general, the motion information signaling in both VVC and AVS3 remains the same as in the HEVC standard. Specifically, an inter-frame prediction syntax (i.e., inter_pred_idc) is first signaled to indicate whether the prediction signal is from list L0, list L1, or both. For each reference list used, the corresponding reference picture is identified by signaling a reference picture index ref_idx_lx (x=0, 1) of the corresponding reference list, and the corresponding MV is represented by an MVP index mvp_lx_flag (x=0, 1), which is used to select the MV prediction value (MVP), followed by its motion vector difference (MVD) between the target MV and the selected MVP. In addition, in the VVC standard, a control flag mvd_l1_zero_flag is signaled at the slice level. When mvd_l1_zero_flag is equal to 0, L1 MVD is signaled in the bitstream; otherwise (when mvd_l1_zero_flag flag is equal to 1), L1 MVD is not signaled and its value is always inferred to be zero at the encoder and decoder.

[0124] Bidirectional prediction with CU-level weights

[0125] In previous standards before VVC and AVS3, when weighted prediction (WP) is not applied, the bidirectional prediction signal is generated by averaging the unidirectional prediction signals obtained from two reference pictures. In VVC, in order to improve the efficiency of bidirectional prediction, a tool codec, namely bidirectional prediction with CU level weights (BCW), is introduced. Specifically, instead of simple averaging, the bidirectional prediction in BCW is extended by allowing weighted averaging of two prediction signals, as depicted below:

[0126] P'(i,j)=((8-w)·P0(i,j)+w·P1(i,j)+4)>>3

[0127] In VVC, when the current picture is a low-latency picture, the weight of a BCW coding block is allowed to be selected from a set of predefined weight values ​​w∈{-2,3,4,5,10}, and a weight of 4 represents the traditional bidirectional prediction case where the two unidirectional prediction signals are equally weighted. For low latency, only 3 weights w∈{3,4,5} are allowed. In general, although WP and BCW have some similarities in design, both codec tools are dedicated to addressing illumination changes at different granularities. However, because the interaction between WP and BCW may complicate the VVC design, it is not allowed to enable both tools at the same time. Specifically, when WP is enabled for a slice, the BCW weights of all bidirectionally predicted CUs in the slice are not signaled and are inferred to be 4 (i.e., equal weights are applied).

[0128] Template Matching

[0129] Template matching (TM) is a decoder-side MV derivation method for refining the motion information of the current CU by finding the best match between a template consisting of the top and left neighboring reconstructed samples of the current CU and a reference block (i.e., the same size as the template) in a reference picture. Figure 6 As shown, an MV is searched around the initial motion of the current CU in the [-8, +8] pixel search range. The best match can be defined as the MV that achieves the lowest matching cost, such as the sum of absolute differences (SAD), the sum of absolute transform differences (SATD), etc. between the current template and the reference template. There are two different ways to apply the TM mode to inter-frame coding.

[0130] In AMVP mode, MVP candidates are determined based on template matching differences to pick the one that achieves the minimum difference between the current block template and the reference block template, and then TM performs MV refinement only on this specific MVP candidate. TM refines this MVP candidate by using an iterative diamond search starting with full-pixel MVD accuracy (or 4 pixels for 4-pixel AMVR mode) within a [-8, +8] pixel search range. The AMVP candidate can be further refined according to the AMVR mode by using a cross search with full-pixel MVD accuracy (or 4 pixels for 4-pixel AMVR mode), followed by half-pixel and quarter-pixel accuracy in sequence, as specified in Table 2 below. This search process ensures that the MVP candidate still maintains the same MV accuracy as indicated by the AMVR mode after the TM process.

[0131] Table 2

[0132]

[0133] In merge mode, a similar search method is applied to the merge candidates indicated by the merge index. As shown in the table above, depending on whether an alternative interpolation filter is used based on the merged motion information (used when AMVR adopts half-pixel mode), TM can perform all the way to 1 / 8 pixel MVD accuracy or skip those merge candidates that exceed half-pixel MVD accuracy.

[0134] Decoder-side intra mode derivation (DIMD)

[0135] DIMD is an intra coding tool in which the luma intra prediction mode (IPM) is not transmitted via the bitstream. Instead, it is derived in the same way at the encoder and decoder using previously coded / decoded pixels. The DIMD method performs texture gradient processing to get the 2 best modes. These two modes and the planar mode are then applied to the block and their predictions are weighted averaged. The selection of DIMD is signaled in the bitstream for intra coded blocks using a flag. At the decoder, if the DIMD flag is true, the same previously coded neighboring pixels are used to derive the intra prediction mode during reconstruction. If not true, the intra prediction mode is parsed from the bitstream as in classic intra coding and decoding mode.

[0136] In order to find the intra prediction mode for a block, a set of neighboring pixels must first be selected on which to perform gradient analysis. For normative purposes, these pixels should be in the pool of decoded / reconstructed pixels. Figure 7As shown, a template can be selected that surrounds the current block with T pixels to the left and T pixels above. Next, a gradient analysis can be performed on the pixels of the template. This allows the main angular direction to be determined for the template, assuming that it is likely to be the same as the main angular direction of the current block. In addition, a simple 3×3 Sobel gradient filter can be used, which is defined by the following matrices, which are convolved with the template:

[0137] and

[0138] For each pixel of the template, each of these two matrices can be point-wise multiplied with a 3×3 window centered at the current pixel and consisting of its 8 direct neighbors, and the results can be summed. Thus, two values ​​Gx (from the product with Mx) and Gy (from the product with My) corresponding to the gradient at the current pixel can be obtained in the horizontal direction and the vertical direction, respectively.

[0139] Figure 8 The convolution process is shown. Pixel 801 is the current pixel. Pixel 803 and pixel 801 are pixels that can be gradient analyzed. Pixel 802 is a pixel that cannot be gradient analyzed due to the lack of some neighbors. Pixel 804 is an available (reconstructed) pixel outside the template considered for gradient analysis of pixel 803. If pixel 804 is not available (for example, because the block is too close to the picture boundary), gradient analysis will not be performed on all pixels 803 using this pixel 804. For each pixel 803, the intensity (G) and orientation (O) of the gradient can be calculated using Gx and Gy as follows:

[0140] G=|G x |+|G y | and

[0141] The orientation of the gradient is then converted to an intra-frame angle prediction mode, which is used to index a histogram (initialized to zero first). The histogram values ​​in this intra-frame angle mode are increased by G. For each intra-frame angle mode, once all pixels 803 in the template have been processed, the histogram will contain the cumulative value of the gradient intensity. The IPM corresponding to the two highest histogram bars is selected for the current block. If the maximum value in the histogram is 0 (meaning that gradient analysis cannot be performed, or the area constituting the template is flat), the DC mode is selected as the intra-frame prediction mode for the current block.

[0142] The two IPMs corresponding to the two highest Histogram of Oriented Gradients (HoG) bars are combined with the plane mode. Prediction fusion is applied as a weighted average of the above three prediction values. For this purpose, the weight of the plane is fixed to 21 / 64 (~1 / 3). Then, the remaining weight of 43 / 64 (~2 / 3) is shared between the two HoG IPMs in a manner proportional to the amplitude of their HoG bars. Fig. 9 Visualize the process.

[0143] The derived intra modes are included in the master list of intra most probable modes (MPMs), so the DIMD process is performed before building the MPM list. The master derived intra modes of a DIMD block are stored with the block and used for MPM list construction for neighboring blocks.

[0144] Template-based Intra Mode Derivation (TIMD)

[0145] For each intra mode in MPM, calculate Fig.10 The sum of absolute transform differences (SATD) between the predicted samples and the reconstructed samples of the template area shown in , and the intra mode with the smallest SATD cost of the first two modes is selected, and then they are merged with the weights, and this weighted intra prediction is used to encode the current CU.

[0146] The costs of the two selected modes are compared to a threshold, and in the test a cost factor of 2 is applied as follows:

[0147] costMode2<2*costMode1.

[0148] If this condition is true, then fusion is applied, otherwise only mode 1 is used.

[0149] The weight of a mode is calculated based on its SATD cost as follows:

[0150] weight1=costMode2 / (costMode1+costMode2)

[0151] weight2=1-weight1.

[0152] Geometric Partitioning Mode Using Template Matching (TM)

[0153] In ECM, template matching (TM) is applied based on the geometric partitioning mode. When GPM is enabled for the current CU, two sets of unidirectional motion information of GPM are obtained for each part of GPM from the GPM merge candidate list. The GPM merge candidate list is constructed as follows:

[0154] In one example, interleaved list 0 MV candidates and list 1 MV candidates are directly obtained from the regular merge candidate list, wherein list 0 MV candidates have a higher priority than list 1 MV candidates. A pruning method in which an adaptive threshold is based on the current CU size is applied to remove redundant MV candidates.

[0155] In another example, interleaved list 1 MV candidates and list 0 MV candidates are further obtained directly from the conventional merge candidate list, wherein the list 1 MV candidate has a higher priority than the list 0 MV candidate. The same pruning method using adaptive threshold is also applied to remove redundant MV candidates.

[0156] In another example, zero MV candidates are filled until the GPM candidate list is full.

[0157] A CU level flag may be further signaled to indicate that TM is enabled for GPM, i.e., the two motion vectors of GPM are further refined using template matching. During this template matching, one of the following template types will be used for refinement, i.e., above (A), left (L), above and left (A+L) of the current block. In the current solution of ECM3.1 (extracted from JVETW0065), the template type is selected based on the angle parameter of GPM as shown in Table 3 below.

[0158] Table 3

[0159]

[0160] The motion is then refined by minimizing the difference between the current template and the template in the reference picture using the same search pattern with the merge mode of the half-pixel interpolation filter disabled.

[0161] Reordering of GPM splitting patterns based on template matching

[0162] In VVC and ECM-3.1, there are 64 GPM splitting modes, and a fixed-length binary code is used to signal the splitting mode used for each GPM coding unit (CU). This codec approach may mean that all GPM splitting modes are considered as equally probable events, so fixed-length codes can be used for signaling accordingly.

[0163] A template matching based GPM split pattern reordering method was first proposed in JVET's paper JVET-Y0135. The template matching cost of each GPM split pattern is calculated, and the split patterns are reordered based on the cost on both the encoder side and the decoder side. Only the best N (where N is less than or equal to 64) candidates are available. A variable length code such as a Golomb-Rice code is used instead of a fixed length binary code to signal the GPM pattern index.

[0164] After generating corresponding reference templates for two GPM partitions in a coding unit, the reordering method of the GPM split pattern is a two-step process as follows.

[0165] First, the reference templates of the two GPM partitions are mixed using the corresponding weights of the split pattern (i.e., 64 mixed reference templates are generated), and the corresponding TM costs of these mixed reference templates are calculated;

[0166] Second, re-sort the TM costs in ascending order and mark the best N candidates as available split patterns.

[0167] like Fig.11 As shown, the edge on the template extends from the edge of the current CU. The calculation of the corresponding weights used in the template blending process is similar to the GPM weight derivation process. The only difference is as follows.

[0168] First, the sample point positions on the template (relative to the original positions of the CU) are used to derive weights.

[0169] In addition, the weights are mapped to 0 and 8 before use depending on which is closer, so the edges on the template are clear to simplify calculations during template blending.

[0170] GPM with inter-frame and intra-frame prediction

[0171] In the example of GPM design, inter prediction with two unidirectional predictions is used to generate the final prediction. JVET-X0166 and JVET-Y0065 proposed a method to combine inter and intra prediction of GPM.

[0172] In GPM with inter prediction and intra prediction, the final prediction samples are generated by weighting the inter prediction samples and intra prediction samples of each GPM partition area. Each part contains a flag to indicate whether inter prediction or intra prediction is used. The inter prediction samples are obtained by the same scheme as the current GPM, while the intra prediction samples are obtained by the intra prediction mode (IPM) candidate list and the index transmitted by the encoder with a signal. The IPM candidate list size is predefined as 3. The available IPM candidates are parallel angle mode (parallel mode) for GPM block boundaries, vertical angle mode (vertical mode) for GPM block boundaries, and FIG. 12A to FIG. 12C In addition, Fig.12D The GPM with inter prediction and intra prediction shown is restricted in the proposed method to reduce the signaling overhead of IPM and avoid the increase of intra prediction circuit size on hardware decoder. In addition, direct motion vector and IPM storage are introduced in the GPM mixed region to further improve the codec performance.

[0173] In addition, the IPM list within the GPM frame can be further improved by the DIMD, TIMD and angle modes of neighboring blocks. More specifically, the parallel mode is first used in the IPM list, and then the IPM candidates of the neighbors' TIMD, DIMD and angle modes are used, thereby performing pruning between the candidates.

[0174] As for the derivation of neighboring patterns, there are a maximum of five positions of available neighboring blocks, but these positions are restricted by the GPM block boundary angles, as shown in Table 4 below.

[0175] Table 4

[0176]

[0177] The current GPM with split mode reordering is designed only for the case of two inter predictions. That is, both parts of the GPM must be predicted by inter prediction. Based on the MV parsed from the signaled merge index, templates of the two parts are first generated from the reference picture. These two templates are blended using a blend mask to generate the final template used in the template matching based GPM split mode reordering, which is similar to the regular GPM blend mask and depends on the partition mode.

[0178] However, the latest GPM design allows a combination of inter prediction and intra prediction. That is, part of the GPM can be predicted by inter prediction as before, and another part can be predicted by intra prediction. The intra prediction mode is obtained from an intra prediction mode (IPM) list of size 3, where the best intra mode is pointed to by an index parsed from the bitstream.

[0179] For the current design, it may not be possible to directly use template matching based GPM split mode reordering on top of GPM with inter and intra combined modes, because the intra prediction mode is not used to generate the corresponding template of the final template in the hybrid process.

[0180] In the present disclosure, a solution for combining the template matching based GPM split pattern reordering method with the GPM inter-frame and intra-frame combining method is provided.

[0181] In some examples, the intra prediction part and the inter prediction part of the GPM may exhibit different behaviors. Inter prediction is often used in moving objects to reduce temporal redundancy in the video signal, while intra prediction may be used to predict static backgrounds to reduce spatial redundancy. If the final template of the split mode is generated using GPM blending between the inter prediction template and the intra prediction template, the template may not be comparable to the template (reconstructed samples) of the current block. Using this template to calculate the cost and reordering the split mode of the GPM may produce unexpected results and cause codec losses.

[0182] In some examples, if one part of the GPM is predicted using intra, the template matching based GPM split mode reordering is disabled and the GPM mode index is encoded and decoded using equal length codes without context codec bits. Otherwise (if both parts of the GPM are predicted using inter), the template matching based GPM split mode reordering is applied as in the current design to read the GPM split mode at both the encoder and decoder sides, and the GPM mode index with the lowest template cost among the N best candidates is encoded and decoded using the Golomb-Rice code with context codec bits. Table 5 shows the GPM related syntax for VVC, which is from the VVC specification (JVET-T2001-v2).

[0183] Table 5 GPM-related syntax elements in VVC specification

[0184]

[0185] Table 6 shows an example syntax table for the combinations provided in this disclosure.

[0186] Table 6 Examples of GPM related syntax elements

[0187]

[0188]

[0189] The italicized syntax elements (both bold and non-bold) in Table 6 illustrate the solution provided in the present disclosure. The syntax elements gpm_part0_intra_flag and gpm_part1_intra_flag indicate that part 0 and part 1 of the GPM are intra-predicted. If one part of the GPM partition mode uses intra-prediction, the regular partition index syntax element gpm_partition_idx is signaled, otherwise (in the case where both parts use inter-prediction) the partition index of the reordered GPM split mode (gpm_partition_sig_idx) is signaled. The regular partition index (gpm_partition_idx) has possible values ​​from 0 to the maximum number of GPM partition modes minus 1 (e.g., 63) and is encoded and decoded using a fixed length code. The partition index of the reordered GPM split mode (gpm_partition_sig_idx) has possible values ​​from 0 to the best N minus 1 (e.g., 15 if N is equal to 16). Table 6 shows only one example of the syntax elements. The names of syntax elements and the coding structure between syntax elements are not limited to the example in Table 6.

[0190] In some examples, the GPM split mode reordering method can also be applied on the basis of the combination of GPM inter-frame and intra-frame prediction, assuming that the intra-frame prediction part of the GPM has a similar structure as the inter-frame prediction part. In this case, it is necessary to generate a template based on intra-frame prediction, which is used in the template mixing process of the GPM split mode reordering.

[0191] In some examples, at the decoder side, an intra mode index of a GPM intra prediction part is parsed; an IPM list is constructed for the GPM intra prediction part; and an optimal intra mode for GPM intra prediction is obtained based on the intra mode index and the constructed IPM list.

[0192] During the generation of intra-prediction blocks, Fig.10 Same as shown, an extra L1 line on the top and an extra L2 line on the left of the current block are extended, where the size of L1 and L2 is equal to the template size used in the GPM split mode reordering, for example, L1 is equal to 1 and L2 is equal to 1. Based on the reconstructed samples and the resolved best intra prediction mode for GPM intra prediction, the intra prediction value of GPM and its template are generated.

[0193] The generation of inter-frame templates is the same as the current design in the GPM split mode reordering method, that is, based on the parsed MV, the corresponding template is interpolated according to the samples of the reference picture.

[0194] In the current design of the GPM split mode reordering method, the inter-frame template and the intra-frame template are mixed using a template mixing mask to generate a final template, which is compared with the template of the current block of each GPM split mode in terms of distortion cost (e.g., SAD). The split modes of the GPM are reordered accordingly.

[0195] In some examples, for both a regular GPM (i.e., both parts are predicted by inter) and a GPM with inter and intra combination (i.e., one part of the GPM is predicted by intra and the other part of the GPM is predicted by inter) as shown in Table 7, only the partition index (gpm_partition_sig_idx) of the reordered GPM splitting mode needs to be signaled. The partition index (gpm_partition_sig_idx) of the reordered GPM splitting mode can use an existing syntax element (gpm_partition_idx), i.e., replace the existing syntax element (gpm_partition_idx) with the partition index (gpm_partition_sig_idx) of the reordered GPM splitting mode. The partition index (gpm_partition_sig_idx) of the reordered GPM splitting mode has possible values ​​from 0 to the best N minus 1 (e.g., 15 if N is equal to 16). Table 7 shows only one example of the syntax element. The names of the syntax elements and the coding and decoding structures between the syntax elements may not be limited to the example in Table 7.

[0196] Table 7 Examples of GPM related syntax elements

[0197]

[0198] Fig.13 A computing environment (or computing device) 1310 coupled to a user interface 1360 is shown. The computing environment 1310 may be part of a data processing server. In some embodiments, the computing device 1310 may perform any of the various methods or processes (such as encoding / decoding methods or processes) described above according to various examples of the present disclosure. The computing environment 1310 may include a processor 1320, a memory 1340, and an I / O interface 1350.

[0199] The processor 1320 generally controls the overall operation of the computing environment 1310, such as operations associated with display, data acquisition, data communication, and image processing. The processor 1320 may include one or more processors for executing instructions to perform all or some steps in the above method. In addition, the processor 1320 may 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 microcomputer, a GPU, etc.

[0200] 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 predetermined 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 using any type of volatile or non-volatile memory device or combination thereof, 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.

[0201] I / O interface 1350 provides an interface between processor 1320 and peripheral interface modules (such as keyboard, click wheel, buttons, etc.). Buttons may include but are not limited to a home button, a start scan button, and a stop scan button. I / O interface 1350 may be coupled to an encoder and a decoder.

[0202] In some embodiments, a non-transitory computer-readable storage medium is also provided, the non-transitory computer-readable storage medium includes a plurality of programs, the programs are included in the memory 1340, and can be executed by the processor 1320 in the computing environment 1310 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

[0203] The non-transitory computer-readable storage medium stores a plurality of programs for execution by a computing device having one or more processors, wherein the plurality of programs, when executed by the one or more processors, causes the computing device to perform the above-mentioned motion prediction method.

[0204] 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), graphics processing units (GPUs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0205] Fig.14 is a flowchart illustrating a video decoding method according to an example of the present disclosure.

[0206] In step 1401 , the processor 1320 may obtain a first GPM part and a second GPM part of a CU at a decoder side.

[0207] In step 1402 , the processor 1320 may disable TM-based GPM split mode reordering for multiple GPM split modes (ie, multiple GPM modes) applied to the CU in response to determining that the first GPM portion or the second GPM portion is predicted using intra prediction.

[0208] In some examples, multiple GPM split modes (ie, multiple GPM modes) may include Figure 4 The GPM mode shown can be applied to CU. Figure 4 Multiple GPM modes are illustrated, in each mode, a CU is split into two parts using a split line corresponding to different angle and offset parameters.

[0209] In some examples, processor 1320 may decode a GPM mode index indicating a first GPM split mode selected from a plurality of GPM split modes using an equal-length code without context coding bins in response to determining that the first GPM portion or the second GPM portion is predicted using intra prediction.

[0210] In step 1403, the processor 1320 may enable TM-based GPM split mode reordering for multiple GPM split modes in response to determining that both the first GPM portion and the second GPM portion are predicted using inter prediction.

[0211] In some examples, the processor 1320 may decode a GPM mode index indicating a second GPM split mode selected from one or more reordered GPM split modes based on a reference template of the first GPM portion and the second GPM portion using a variable length code with a context encoding binary bit in response to determining that both the first GPM portion and the second GPM portion are predicted using inter-frame prediction. One or more reordered GPM split modes may be selected from a plurality of GPM split modes and may be reordered based on TM cost. For example, the one or more reordered GPM split modes may include some or all of the GPM split modes in the plurality of split modes, and the ordering of the one or more reordered GPM split modes may be different from the ordering of the corresponding GPM split modes in the plurality of GPM split modes. In some examples, the one or more reordered GPM split modes may be N-1 GPM split modes (e.g., N is equal to 16), i.e., the 15 GPM split modes selected as the best after reordering. Note that N may be any number not greater than the total number of GPM split modes.

[0212] In some examples, the processor 1320 may determine whether the first GPM part is predicted using intra prediction based on the first GPM intra syntax element. Similarly, the processor 1320 may determine whether the second GPM part is predicted using intra prediction based on the second GPM intra syntax element. As shown in Table 6, the first GPM intra syntax element and the second GPM intra syntax element may be gpm_part0_intra_flag and gpm_part1_intra_flag, respectively.

[0213] In some examples, processor 1320 may obtain a first partition index syntax element indicating a first GPM split mode in response to determining that the first GPM portion or the second GPM portion is predicted using intra prediction. In some examples, the first partition index syntax element is encoded and decoded using a fixed length code. As shown in Table 6, the first partition index syntax element may be a regular partition index (gpm_partition_idx).

[0214] In some examples, processor 1320 may obtain a second partition index syntax element indicating a second GPM splitting mode in response to determining that both the first GPM part and the second GPM part are predicted using inter prediction. In some examples, the second partition index syntax element is encoded using a variable length code. As shown in Table 6, the second partition index syntax element may be a partition index (gpm_partition_sig_idx) of the reordered GPM splitting mode.

[0215] Fig.15 is a diagram corresponding to Fig.14 The video decoding method shown is a flowchart of a video encoding method.

[0216] In step 1501 , the processor 1320 may obtain a first GPM part and a second GPM part of a CU at an encoder side.

[0217] In step 1502 , the processor 1320 may disable TM-based GPM split mode reordering for a plurality of GPM split modes applied to the CU in response to determining that the first GPM portion or the second GPM portion is predicted using intra prediction.

[0218] In some examples, multiple GPM split modes (ie, multiple GPM modes) may include Figure 4 The GPM mode shown can be applied to CU. Figure 4 Multiple GPM modes are illustrated, in each mode, a CU is split into two parts using a split line corresponding to different angle and offset parameters.

[0219] In some examples, processor 1320 may encode a GPM mode index indicating a first GPM split mode selected from a plurality of GPM split modes using an equal length code without context coding bins in response to determining that the first GPM portion or the second GPM portion is predicted using intra prediction.

[0220] In step 1503, the processor 1320 may enable TM-based GPM splitting mode reordering for multiple GPM splitting modes in response to determining that both the first GPM portion and the second GPM portion are predicted using inter-frame prediction.

[0221] In some examples, the processor 1320 may encode a GPM mode index indicating a second GPM split mode selected from one or more reordered GPM split modes based on a reference template of the first GPM part and the second GPM part using a variable length code with a context encoding binary bit in response to determining that both the first GPM part and the second GPM part are predicted using inter-frame prediction. One or more reordered GPM split modes may be selected from a plurality of GPM split modes and may be reordered based on TM cost. For example, the one or more reordered GPM split modes may include some or all of the GPM split modes in the plurality of split modes, and the ordering of the one or more reordered GPM split modes may be different from the ordering of the corresponding GPM split modes in the plurality of GPM split modes. In some examples, the one or more reordered GPM split modes may be N-1 GPM split modes (e.g., N is equal to 16), i.e., the 15 GPM split modes selected as the best after reordering. Note that N may be any number not greater than the total number of GPM split modes.

[0222] In some examples, processor 1320 may signal a first GPM intra syntax element to indicate whether the first GPM part is predicted using intra prediction. Similarly, processor 1320 may signal a second GPM intra syntax element to indicate whether the second GPM part is predicted using intra prediction. As shown in Table 6, the first GPM intra syntax element and the second GPM intra syntax element may be gpm_part0_intra_flag and gpm_part1_intra_flag, respectively.

[0223] In some examples, processor 1320 may signal a first partition index syntax element indicating a first GPM split mode in response to determining that the first GPM portion or the second GPM portion is predicted using intra prediction. In some examples, the first partition index syntax element is encoded using a fixed length code. As shown in Table 6, the first partition index syntax element may be a regular partition index (gpm_partition_idx).

[0224] In some examples, processor 1320 may signal a second partition index syntax element indicating a second GPM splitting mode in response to determining that both the first GPM part and the second GPM part are predicted using inter prediction. In some examples, the second partition index syntax element is encoded using a variable length code. As shown in Table 6, the second partition index syntax element may be a partition index (gpm_partition_sig_idx) of the reordered GPM splitting mode.

[0225] Fig.16 is a flowchart illustrating a video decoding method according to an example of the present disclosure.

[0226] In step 1601 , the processor 1320 may obtain a first GPM part and a second GPM part of a CU at a decoder side.

[0227] The processor 1320 may determine at step 1602-1 that the first GPM portion is encoded and decoded using inter-frame prediction. After determining that the first GPM portion is encoded and decoded using inter-frame prediction, the processor 1320 may obtain inter-frame prediction samples of neighboring reconstructed samples of the CU based on the motion vector associated with the first GPM portion at step 1602-2. As discussed above, the neighboring reconstructed samples of the CU may include the top or left neighboring reconstructed samples of the CU, such as Figure 6 , Fig.11 and FIG. 12A to FIG. 12C as shown in any one of the following.

[0228] The processor 1320 may determine at step 1603-1 that the second GPM part is encoded and decoded using intra prediction. After determining that the second GPM part is encoded and decoded using intra prediction, the processor 1320 may construct an IPM list for the second GPM part at step 1603-2. The processor 1320 may further obtain a candidate intra mode for the second GPM part based on the IPM list at step 1603-3, and obtain an intra prediction sample of a neighboring reconstructed sample of the CU based on the candidate intra mode at step 1603-4.

[0229] In some examples, as discussed above, the candidate intra-mode may be the best intra-mode pointed to by an index parsed from a bitstream received from an encoder.

[0230] In step 1604 , the processor 1320 may reorder multiple GPM split modes (ie, multiple GPM modes) based on inter-prediction samples and intra-prediction samples of adjacent reconstructed samples of the CU.

[0231] In some examples, multiple GPM split modes (ie, multiple GPM modes) may include Figure 4 The GPM mode shown can be applied to CU. Figure 4 Multiple GPM modes are illustrated, in each mode, a CU is split into two parts using a split line corresponding to different angle and offset parameters.

[0232] In step 1605 , the processor 1320 may select a GPM splitting mode from the reordered plurality of GPM splitting modes.

[0233] In some examples, the processor 1320 may further obtain a third partition syntax element indicating an index of the selected GPM split mode, obtain a distortion cost for each of the multiple GPM split modes applied to the CU based on the inter-prediction samples and the intra-prediction samples of the adjacent reconstructed samples of the CU, and reorder the multiple GPM split modes based on the distortion costs of the multiple GPM split modes. As shown in Table 7, the third partition syntax element may be a syntax element gpm_partition_sig_idx.

[0234] In some examples, processor 1320 may select a GPM splitting mode from a plurality of GPM splitting modes that are reordered based on the third partition syntax elements.

[0235] In step 1606 , the processor 1320 may obtain prediction samples of the CU based on the selected GPM split mode.

[0236] In some examples, processor 1320 may parse a first GPM syntax element indicating whether the first GPM portion is predicted using inter-frame prediction or intra-frame prediction, and determine that the first GPM portion is encoded and decoded using inter-frame prediction in response to determining that the first GPM syntax element is equal to a first value. For example, when the first GPM syntax element is equal to the first value, the first GPM portion is encoded and decoded using inter-frame prediction, and when the first GPM syntax element is equal to the second value, the first GPM portion is encoded and decoded using intra-frame prediction.

[0237] Similarly, the processor 1320 may parse a second GPM syntax element indicating whether the second GPM portion is predicted using inter-frame prediction or intra-frame prediction, and determine that the second GPM portion is encoded and decoded using intra-frame prediction in response to determining that the second GPM syntax element is equal to a second value. For example, when the second GPM syntax element is equal to a first value, the second GPM portion is encoded and decoded using inter-frame prediction, and when the second GPM syntax element is equal to a second value, the first GPM portion is encoded and decoded using intra-frame prediction.

[0238] Fig.17 is a diagram corresponding to Fig.16 The video decoding method shown is a flowchart of a video encoding method.

[0239] In step 1701 , the processor 1320 may obtain a first GPM part and a second GPM part of a CU at an encoder side.

[0240] The processor 1320 may determine at step 1702-1 that the first GPM portion is encoded and decoded using inter-frame prediction. After determining that the first GPM portion is encoded and decoded using inter-frame prediction, the processor 1320 may obtain inter-frame prediction samples of neighboring reconstructed samples of the CU based on the motion vector associated with the first GPM portion at step 1702-2. As discussed above, the neighboring reconstructed samples of the CU may include the top or left neighboring reconstructed samples of the CU, such as Figure 6 , Fig.11 and FIG. 12A to FIG. 12C as shown in any one of the following.

[0241] The processor 1320 may determine at step 1703-1 that the second GPM portion is encoded and decoded using intra-frame prediction. After determining that the second GPM portion is encoded and decoded using intra-frame prediction, the processor 1320 may construct an IPM list for the second GPM portion at step 1703-2. The processor 1320 may further obtain a candidate intra-frame mode for the second GPM portion based on the IPM list at step 1703-3, and obtain an intra-frame prediction sample of a neighboring reconstructed sample of the CU based on the candidate intra-frame mode at step 1703-4.

[0242] In some examples, as discussed above, the candidate intra-mode may be the best intra-mode pointed to by an index parsed from a bitstream received from an encoder.

[0243] In step 1704 , the processor 1320 may reorder a plurality of GPM split modes (ie, a plurality of GPM modes) based on inter-prediction samples and intra-prediction samples of adjacent reconstructed samples of the CU.

[0244] In some examples, multiple GPM split modes (ie, multiple GPM modes) may include Figure 4 The GPM mode shown can be applied to CU. Figure 4 Multiple GPM modes are illustrated, in each mode, a CU is split into two parts using a split line corresponding to different angle and offset parameters.

[0245] In step 1705 , the processor 1320 may select a GPM splitting mode from the reordered plurality of GPM splitting modes.

[0246] In some examples, the processor 1320 may further obtain a third partition syntax element indicating an index of the selected GPM split mode, obtain a distortion cost for each of the multiple GPM split modes applied to the CU based on the inter-prediction samples and the intra-prediction samples of the adjacent reconstructed samples of the CU, and reorder the multiple GPM split modes based on the distortion costs of the multiple GPM split modes. As shown in Table 7, the third partition syntax element may be a syntax element gpm_partition_sig_idx.

[0247] In some examples, processor 1320 may select a GPM splitting mode from a plurality of GPM splitting modes that are reordered based on the third partition syntax elements.

[0248] In step 1706 , the processor 1320 may obtain prediction samples of the CU based on the selected GPM split mode.

[0249] In some examples, processor 1320 may signal a first GPM syntax element indicating whether the first GPM portion is predicted using inter prediction or intra prediction. Similarly, processor 1320 may signal a second GPM syntax element indicating whether the second GPM portion is predicted using inter prediction or intra prediction.

[0250] In some examples, a device for video decoding is provided. The device includes a processor 1320 and a memory 1340, the memory being configured to store instructions executable by the processor; wherein the processor is configured to perform the following when executing the instructions: Fig.14 or Fig.16 Any of the methods illustrated in .

[0251] In some examples, a device for video encoding is provided. The device includes a processor 1320 and a memory 1340, the memory being configured to store instructions executable by the processor; wherein the processor is configured to perform the following when executing the instructions: Fig.15 or Fig.17 Any of the methods illustrated in .

[0252] In some other examples, a non-transitory computer-readable storage medium having instructions stored therein is provided. When the instructions are executed by the processor 1320, the instructions cause the processor to perform the following steps: Figures 14 to 17 In one example, multiple programs can be executed by a processor 1320 in a computing environment 1310 to receive (e.g., from Figure 1GThe video encoder 20 in the computing environment 1310 includes a bit stream or data stream of encoded video information (e.g., video blocks representing encoded video frames and / or one or more associated syntax elements, etc.), and can also be executed by the processor 1320 in the computing environment 1310 to perform the above decoding method according to the received bit stream or data stream. In another example, multiple programs can be executed by the processor 1320 in the computing environment 1310 to perform the above encoding method to encode video information (e.g., video blocks representing video frames and / or one or more associated syntax elements, etc.) into a bit stream or data stream, and can also be executed by the processor 1320 in the computing environment 1310 to transmit the bit stream or data stream (e.g., to Figure 2B Alternatively, a non-transitory computer-readable storage medium may have stored therein a bitstream or data stream including a video decoder 30 in the encoder (e.g., Figure 1G The video encoder 20 in the embodiment uses the encoded video information (e.g., video blocks representing encoded video frames and / or one or more associated syntax elements, etc.) generated by the above encoding method for the decoder (e.g., Figure 2B The video decoder 30 in the video decodes the video data. The non-transitory computer-readable storage medium may be, for example, a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0253] Other examples 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 changes, uses or adaptations of the disclosure made in accordance with its general principles, including deviations from the present disclosure within known or customary practices in the art. It is intended that the specification and examples be considered exemplary only.

[0254] It should be understood that the present disclosure is not limited to the exact examples described above and shown in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims

1. A method for video decoding, the method comprising: Obtaining, by a decoder, a first geometric partition mode (GPM) portion and a second GPM portion of a coding unit (CU); In response to determining that the first GPM portion or the second GPM portion is predicted using intra prediction, disabling, by the decoder, template matching (TM) based GPM split mode reordering for a plurality of GPM split modes applied to the CU; and In response to determining that both the first GPM portion and the second GPM portion are predicted using inter-frame prediction, the TM-based GPM split mode reordering is enabled by the decoder for the plurality of GPM split modes.

2. The method of claim 1, further comprising: In response to determining that the first GPM portion or the second GPM portion is predicted using the intra prediction, decoding, by the decoder and using an equal length code without context codec bins, a GPM mode index indicating a first GPM split mode selected from the plurality of GPM split modes; as well as In response to determining that both the first GPM part and the second GPM part are predicted using the inter-frame prediction, the GPM mode index is decoded by the decoder and using a variable length code with context coding binary bits, and the GPM mode index indicates a second GPM split mode selected from one or more reordered GPM split modes based on a reference template of the first GPM part and the second GPM part, wherein the one or more reordered GPM split modes are from the multiple GPM split modes and are reordered based on TM cost.

3. The method of claim 1, further comprising: determining, by the decoder and based on a first GPM intra syntax element, whether the first GPM portion is predicted using the intra prediction; as well as A determination is made, by the decoder and based on a second GPM intra syntax element, whether the second GPM portion is predicted using the intra prediction.

4. The method of claim 2, further comprising: In response to determining that the first GPM part or the second GPM part is predicted using the intra-frame prediction, the decoder obtains a first partition index syntax element for indicating the first GPM split mode, wherein the first partition index syntax element is encoded and decoded using a fixed length code.

5. The method of claim 2, further comprising: In response to determining that both the first GPM part and the second GPM part are predicted using the inter-frame prediction, the decoder obtains a second partition index syntax element for indicating the second GPM split mode, wherein the second partition index syntax element is encoded and decoded using a variable length code.

6. A method for video encoding, the method comprising: Obtaining, by an encoder, a first geometric partition mode (GPM) portion and a second GPM portion of a coding unit (CU); In response to determining that the first GPM portion or the second GPM portion is predicted using intra prediction, disabling, by the encoder, template matching (TM) based GPM split mode reordering for a plurality of GPM split modes applied to the CU; and In response to determining that both the first GPM portion and the second GPM portion are predicted using inter-frame prediction, the TM-based GPM split mode reordering is enabled by the encoder for the plurality of GPM split modes.

7. The method of claim 6, further comprising: In response to determining that the first GPM portion or the second GPM portion is predicted using the intra prediction, encoding, by the encoder and using an equal-length code without context codec bins, a GPM mode index indicating a first GPM split mode selected from the plurality of GPM split modes; as well as In response to determining that both the first GPM part and the second GPM part are predicted using the inter-frame prediction, the GPM mode index is encoded by the encoder using a variable length code with context coding binary bits, and the GPM mode index indicates a second GPM split mode selected from one or more reordered GPM split modes based on a reference template of the first GPM part and the second GPM part, wherein the one or more reordered GPM split modes are from the multiple GPM split modes and are reordered based on TM cost.

8. The method of claim 6, further comprising: signaling, by the encoder, a first GPM intra syntax element to indicate whether the first GPM portion is predicted using the intra prediction; as well as A second GPM intra syntax element is signaled by the encoder to indicate whether the second GPM portion is predicted using the intra prediction.

9. The method of claim 7, further comprising: In response to determining that the first GPM part or the second GPM part is predicted using the intra-frame prediction, the encoder transmits a first partition index syntax element indicating the first GPM split mode using a signal, wherein the first partition index syntax element is encoded and decoded using a fixed length code.

10. The method of claim 7, further comprising: In response to determining that both the first GPM part and the second GPM part are predicted using the inter-frame prediction, the encoder transmits a second partition index syntax element indicating the second GPM split mode using a signal, wherein the second partition index syntax element is encoded and decoded using a variable length code.

11. A method for video decoding, the method comprising: Obtaining, by a decoder, a first geometric partition mode (GPM) portion and a second GPM portion of a coding unit (CU); In response to determining that the first GPM portion is encoded and decoded using inter-frame prediction, obtaining, by the decoder, inter-frame prediction samples of neighboring reconstructed samples of the CU based on a motion vector associated with the first GPM portion; In response to determining that the second GPM portion is encoded and decoded using intra prediction, constructing, by the decoder, an intra prediction mode (IPM) list for the second GPM portion; obtaining, by the decoder and based on the IPM list, candidate intra-modes for the second GPM portion; Obtaining, by the decoder and based on the candidate intra mode, intra prediction samples of adjacent reconstructed samples of the CU; as well as Reordering, by the decoder, a plurality of GPM split modes based on inter-prediction samples and intra-prediction samples of the adjacent reconstructed samples of the CU; Selecting, by the decoder, a GPM splitting mode from the reordered plurality of GPM splitting modes; as well as The decoder obtains prediction samples of the CU based on the selected GPM splitting mode.

12. The method of claim 11, further comprising: parsing, by the decoder, a first GPM syntax element indicating whether the first GPM portion is predicted using inter prediction or intra prediction; as well as A determination is made by the decoder that the first GPM portion is encoded and decoded using inter-frame prediction in response to determining that the first GPM syntax element is equal to a first value.

13. The method of claim 11, further comprising: parsing, by the decoder, a second GPM syntax element indicating whether the second GPM portion is predicted using inter prediction or intra prediction; as well as The second GPM portion is determined, by the decoder in response to determining that the second GPM syntax element is equal to a second value, to be encoded using intra-frame prediction.

14. The method of claim 11, wherein: Reordering the plurality of GPM split modes based on the inter-frame prediction samples and the intra-frame prediction samples of the adjacent reconstructed samples of the CU further comprises: Obtaining, by the decoder, a third partition syntax element indicating an index of a selected GPM splitting mode; Obtaining, by the decoder and for each of a plurality of GPM splitting modes applied to the CU, a distortion cost based on the inter-prediction samples and the intra-prediction samples of the neighboring reconstructed samples of the CU; and reordering, by the decoder, the plurality of GPM splitting modes based on distortion costs of the plurality of GPM splitting modes; and The selecting, by the decoder, the one GPM splitting mode from the reordered multiple GPM splitting modes comprises: The GPM splitting mode is selected, by the decoder and based on the third partition syntax element, from the reordered plurality of GPM splitting modes.

15. A method for video encoding, the method comprising: Obtaining, by an encoder, a first geometric partition mode (GPM) portion and a second GPM portion of a coding unit (CU); In response to determining that the first GPM portion is encoded and decoded using inter-frame prediction, the encoder obtains inter-frame prediction samples of neighboring reconstructed samples of the CU based on a motion vector associated with the first GPM portion; In response to determining that the second GPM portion is encoded and decoded using intra prediction, constructing, by the encoder, an intra prediction mode (IPM) list for the second GPM portion; obtaining, by the encoder and based on the IPM list, candidate intra-modes for the second GPM part; Obtaining, by the encoder and based on the candidate intra mode, intra prediction samples of the adjacent reconstructed samples of the CU; as well as Reordering, by the encoder, a plurality of GPM split modes based on the inter-prediction samples and the intra-prediction samples of the adjacent reconstructed samples of the CU; selecting, by the encoder, a GPM splitting mode from the reordered plurality of GPM splitting modes; and The encoder obtains prediction samples of the CU based on the selected GPM splitting mode.

16. The method of claim 15, further comprising: A first GPM syntax element is signaled by the encoder indicating whether the first GPM portion is predicted using inter prediction or intra prediction.

17. The method of claim 15, further comprising: A second GPM syntax element is signaled by the encoder indicating whether the second GPM portion is predicted using inter prediction or intra prediction.

18. The method of claim 15, wherein: Reordering the multiple GPM split modes based on the inter-frame prediction samples and the intra-frame prediction samples of the adjacent reconstructed samples of the CU further includes: Obtaining, by the encoder, a third partition syntax element indicating an index of a selected GPM splitting mode; Obtaining, by the encoder and for each GPM splitting mode from a plurality of GPM splitting modes applied to the CU, a distortion cost based on the inter-prediction samples and the intra-prediction samples of the neighboring reconstructed samples of the CU; and reordering, by the encoder, the plurality of GPM splitting modes based on distortion costs of the plurality of GPM splitting modes; and The step of selecting, by the encoder, the one GPM splitting mode from the reordered multiple GPM splitting modes comprises: The GPM splitting mode is selected, by the encoder and based on the third partition syntax element, from the reordered plurality of GPM splitting modes.

19. An apparatus for video decoding, the apparatus comprising: one or more processors; as well as a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors, Wherein, when executing the instructions, the one or more processors are configured to perform the method as claimed in any one of claims 1 to 5 and 11 to 14.

20. An apparatus for video encoding, the apparatus comprising: one or more processors; as well as a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors, Wherein, when executing the instructions, the one or more processors are configured to perform the method as claimed in any one of claims 6 to 10 and 15 to 18.

21. A non-transitory computer-readable storage medium for storing computer-executable instructions, which, when executed by one or more computer processors, cause the one or more computer processors to receive a bit stream and perform the method of any one of claims 1 to 5 and 11 to 14 based on the bit stream.

22. A non-transitory computer-readable storage medium for storing computer-executable instructions, which, when executed by one or more computer processors, cause the one or more computer processors to perform the method of any one of claims 6 to 10 and 15 to 18 to encode the CU into a bitstream and transmit the bitstream.