Method and apparatus for geometric partition pattern with adaptive mixing
By using the hybrid area index and predicted sample weight value of geometric partition mode in video encoding and decoding, the problem of low video encoding and decoding efficiency in the existing technology is solved, and more efficient video data compression and decoding are achieved.
Patent Information
- Application Number
- CN202380019343.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-14
- Filing Date
- 2023-02-14
- Publication Date
- 2024-09-06
AI Technical Summary
Existing video coding and decoding standards have limitations in improving coding and decoding efficiency. Especially when processing video data, it is difficult to significantly reduce the bit rate while maintaining video quality.
Geometric Partition Mode (GPM) is used for video encoding and decoding. By using the hybrid area index of the geometric partition mode and the weight value of the predicted sample points in the video decoding and encoding process, the prediction and encoding of motion vectors are optimized, thereby improving the encoding and decoding efficiency.
Through the application of geometric partitioning mode, the efficiency of video encoding and decoding is significantly improved, the bit rate is reduced, while maintaining high standards of video quality, and is suitable for the optimization of future video encoding and decoding standards.
Smart Images

Figure CN118614060A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is filed based on and claims priority to U.S. Provisional Application No. 63 / 310,093, filed on February 14, 2022, entitled “Methods and Devices for Geometric Partitioning Mode with Adaptive Blending,” the entire text of which is incorporated by reference. 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 codec 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 geometric partitioning mode (GPM) mixed region index at a specific level associated with a picture, wherein the GPM mixed region index indicates a mixed region width in a set of mixed region widths. In addition, the decoder may obtain one or more weight values for prediction samples of a mixed GPM mode based on the mixed region width indicated by the GPM mixed index. In addition, the decoder may obtain a GPM prediction value based on the one or more weight values.
[0008] According to a second aspect of the present disclosure, a video encoding method is provided. In the video encoding method, an encoder may signal a GPM mixed region index at a specific level associated with a picture, wherein the GPM mixed region index indicates a mixed region width in a set of mixed region widths. In addition, the encoder may obtain one or more weight values for prediction samples of a mixed GPM mode based on the mixed region width indicated by the GPM mixed index. In addition, the encoder may obtain a GPM prediction value based on the one or more weight values.
[0009] According to a third aspect of the present disclosure, a video decoding method is provided. In the video decoding method, a decoder may obtain a plurality of first prediction samples of neighboring reconstruction samples of a coding unit (CU) based on a motion vector associated with a first GPM part of the CU, and obtain a plurality of second prediction samples of neighboring reconstruction samples of the CU based on a motion vector associated with a second GPM part of the CU. In addition, the decoder may obtain a plurality of mixed prediction samples of the neighboring reconstruction samples based on the first prediction sample, the second prediction sample, and a plurality of mixed region widths, and reorder the plurality of mixed region widths based on the distortion cost between the plurality of mixed prediction samples associated with each mixed region width and the reconstructed neighboring samples of the current CU to obtain a reordered mixed region width list. In addition, the decoder may obtain a GPM mixed region index, and obtain a mixed region width based on the GPM mixed region index and the reordered mixed region width list. In addition, the decoder may obtain one or more weight values for the first prediction sample and the second prediction sample of the mixed GPM mode based on the mixed region width, and obtain a GPM prediction value based on the one or more weight values.
[0010] According to a fourth aspect of the present disclosure, a video encoding method is provided. In the video encoding method, the encoder may obtain multiple first prediction samples of neighboring reconstruction samples of the CU based on a motion vector associated with a first GPM part of the CU, and obtain multiple second prediction samples of neighboring reconstruction samples of the CU based on a motion vector associated with a second GPM part of the CU. In addition, the encoder may obtain multiple mixed prediction samples of the neighboring reconstruction samples based on the first prediction sample, the second prediction sample and multiple mixed area widths, and reorder the multiple mixed area widths based on the distortion cost between the multiple mixed prediction samples associated with each mixed area width and the reconstructed neighboring samples of the current CU to obtain a reordered mixed area width list. In addition, the encoder may obtain a GPM mixed area index, and obtain a mixed area width based on the GPM mixed area index and the reordered mixed area width list. In addition, the encoder may obtain one or more weight values for the first prediction sample and the second prediction sample of the mixed GPM mode based on the mixed area width, and obtain a GPM prediction value based on the one or more weight values.
[0011] According to a fifth aspect of the present disclosure, a video decoding device is provided, comprising one or more processors and a memory, wherein the memory is coupled to the one or more processors and configured to store instructions executable by the one or more processors. In addition, when executing the instructions, the one or more processors are configured to perform the method of the first aspect or the third aspect.
[0012] According to a sixth aspect of the present disclosure, a video encoding device is provided, comprising one or more processors and a memory, wherein the memory is coupled to the one or more processors and configured to store instructions executable by the one or more processors. In addition, when executing the instructions, the one or more processors are configured to execute the method of the second aspect or the fourth aspect.
[0013] According to the seventh aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by one or more computer processors, the one or more computer processors receive a bit stream and execute the method of the first aspect or the third aspect based on the bit stream.
[0014] According to an eighth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by one or more computer processors, the one or more computer processors execute the method of the second aspect or the fourth aspect above to encode a CU into a bit stream and transmit the bit stream. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] 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 and detail through the use of the accompanying drawings.
[0016] Figure 1A is a block diagram illustrating a system for encoding and decoding video blocks according to some examples of the present disclosure.
[0017] Figure 1B is a block diagram of an encoder according to some examples of the present disclosure.
[0018] 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.
[0019] Figure 1G is a block diagram illustrating an exemplary video encoder according to some examples of the present disclosure.
[0020] Figure 2A is a block diagram of a decoder according to some examples of the present disclosure.
[0021] Figure 2B is a block diagram illustrating an exemplary video decoder according to some examples of the present disclosure.
[0022] Figure 3A is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.
[0023] Figure 3B is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.
[0024] Figure 3C is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.
[0025] Figure 3D is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.
[0026] Figure 3E is a diagram illustrating block partitioning in a multi-type tree structure according to some examples of the present disclosure.
[0027] Figure 4 Allowable GPM partitions according to some examples of the present disclosure are illustrated.
[0028] 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.
[0029] Figure 6 is a diagram illustrating a template matching algorithm according to some examples of the present disclosure.
[0030] Figure 7 A set of selected pixels on which gradient analysis is performed according to some examples of the present disclosure is illustrated.
[0031] Figure 8 The convolution of a 3×3 Sobel gradient filter with a template is illustrated according to some examples of the present disclosure.
[0032] Fig. 9 Illustrated is prediction fusion by weighted averaging of two HoG modes and one planar mode according to some examples of the present disclosure.
[0033] 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.
[0034] Fig.11 Illustrated is a mix of templates for reordering GPM split patterns according to some examples of the present disclosure.
[0035] FIG. 12A to FIG. 12CIllustrated are available intra prediction mode (IPM) candidates for a GPM with inter prediction and intra prediction according to some examples of the present disclosure.
[0036] Fig.12D It is illustrated that there are two forbidden combinations of intra prediction according to some examples of the present disclosure.
[0037] Fig.13 is a diagram illustrating a computing environment coupled with a user interface according to some examples of the present disclosure.
[0038] Fig.14 The distance from any location within a block to a partition edge is illustrated according to some examples of the present disclosure.
[0039] Fig.15 Distances from integer positions obtained by quantizing arbitrary positions to partition edges according to some examples of the present disclosure are illustrated.
[0040] Fig.16 Soft-mix regions with a width of θ luma samples defined on both sides of a partition edge according to some examples of the present disclosure are illustrated.
[0041] Fig.17 is a flowchart illustrating a video decoding method according to some examples of the present disclosure.
[0042] Fig.18 is a diagram illustrating some examples according to the present disclosure corresponding to Fig.17 The video decoding method shown is a flowchart of a video encoding method.
[0043] Fig.19 is a flowchart illustrating a video decoding method according to some examples of the present disclosure.
[0044] Fig. 20 is a diagram illustrating some examples according to the present disclosure corresponding to Fig.19 The video decoding method shown is a flowchart of a video encoding method. DETAILED DESCRIPTION
[0045] 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.
[0046] 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.
[0047] 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.
[0048] Throughout this disclosure, the terms "first", "second", "third", etc. are used as nomenclatures and are only used to refer to related 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.
[0049] The terms "module", "sub-module", "circuit", "sub-circuit", "circuitry", "sub-circuitry", "unit", or "sub-unit" 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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 (e.g., 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 this application may be generally applicable to video encoding and decoding and may be applied to wireless and / or wired applications.
[0056] 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.
[0057] 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.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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 ).
[0063] 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.
[0064] 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 dequantized by the dequantization 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 coding 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] The reconstructed block may further pass through the loop filter 209 and then be stored in the 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 to obtain a final reconstructed video output 222.
[0070] 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 prediction coding and inter-frame prediction coding on video blocks within a video frame. Intra-frame prediction coding relies on spatial prediction to reduce or remove spatial redundancy of video data within a given video frame or picture. Inter-frame prediction coding relies 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".
[0071] 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 for video block reconstruction, an inverse transform processing unit 60, and an adder 62. 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.
[0072] 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 coding mode or an inter-frame prediction coding 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.
[0073] 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 size 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.
[0074] 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.
[0075] In order to select an appropriate intra-prediction coding mode for the current video block, intra-prediction processing unit 46 within prediction processing unit 41 may perform intra-prediction coding of 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 may perform inter-prediction coding of 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 coding mode for each block of video data.
[0076] In some embodiments, motion estimation unit 42 determines the inter-prediction mode for the current video frame according to a predetermined pattern within the sequence of video frames by generating a motion vector that 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 motion estimation unit 42 is the process of generating motion vectors that estimates the motion of video blocks. The motion vectors may, for example, indicate the displacement of a video block within a current video frame or picture relative to a prediction block within a reference frame associated with a current block encoded within the current frame. The predetermined pattern may designate video frames in the sequence as P frames or B frames. 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 motion estimation unit 42 determines motion vectors for inter prediction, or may utilize motion estimation unit 42 to determine the block vector.
[0077] The prediction block of the video block may be or may correspond to a block or reference block of a reference frame, which 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 the value of the sub-integer pixel position of the reference frame stored in the DPB 64. For example, the video encoder 20 may insert the value of a quarter pixel position, an eighth pixel position, or other fractional pixel position of the reference frame. Therefore, the motion estimation unit 42 may perform a motion search relative to the full pixel position and the fractional pixel position and output a motion vector with fractional pixel accuracy.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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 in accordance with 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 sub-integer pixel positions.
[0082] 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, 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 to form pixel difference values. The pixel difference values forming the residual video block may include luma component differences and chroma component differences.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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.
[0087] 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 sub-integer pixel values for use in motion estimation.
[0088] 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.
[0089] 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.
[0090] 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).
[0091] 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 coding mode or an inter-frame prediction coding 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 by 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.
[0092] 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.
[0093] 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.
[0094] When the video frame is encoded as an inter-frame prediction coded (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.
[0095] In some examples, when a video block is encoded 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.
[0096] 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.
[0097] 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.
[0098] 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.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] 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, Cb, and Cr blocks for the luma, Cb, and Cr PBs of each PU of the CU.
[0106] 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.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] 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.
[0115] 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.
[0116] Similar to all previous video codec standards, ECM is built on a block-based hybrid video codec framework. The present invention aims to further improve the codec efficiency of the symbol prediction tool applied in ECM.
[0117] Geometric Partitioning Model (GPM)
[0118] 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.
[0119] When this mode is used, the CU is split into two parts by a geometrically positioned straight line, such as Figure 4 As 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.
[0120] One-way prediction candidate list construction
[0121] 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.
[0122] Blending along geometric partition edges
[0123] 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.
[0124] like Fig.14 The distance (or displacement) d(x) from any position in the block to the edge (or partition boundary) of the partition c ,y c ) is mathematically defined in the form of the Hessian norm.
[0125]
[0126] Among them, x c and c Indicates the position relative to the center of the block; represents the angle parameter, and ρ represents the offset parameter of the partition boundary.
[0127] In practical applications, in order to implement displacement calculation, the angle parameter and the offset parameter are quantized into integers, that is,
[0128] d(x c ,y c )=((x c +ρ x,j )cosLut[i])>>3+((y c +ρ y,j )cosLut[(i+8)%32])>>3
[0129] Among them, ρ x,j and ρ y,j is the offset quantized according to the width and height of the block; and cosLut[i] represents the cosine lookup table quantized for angle parameter index i.
[0130] Finally, the continuous sample point positions (x c ,y c ) is quantized to integer positions (m,n), and the displacement d(m,n) is given by d(m,n)=((m+ρ x.j )<<1-w+1)cosLut[i]+((n+ρ y,j )<<1-h+1)cosLut[(i+8)%32].
[0131] Fig.15 A corresponding example is shown in .
[0132] The quantized d(m,n) and d(x c ,y c ) is given by the following formula
[0133]
[0134] like Fig.16 As shown in FIG. 1 , a soft mixing region with a width of θ luminance samples is defined on both sides of the partition boundary. Outside the soft mixing region, only weight values 0 or 8 can be selected. In the soft mixing region, a ramp function is used to calculate the weight value ω(x c ,y c )
[0135]
[0136] The ramp function is also quantized to integer positions to obtain the weight values ω(m,n) used in the mixing process of GPM, that is,
[0137] ω(m,n)=Clip3(0,8,(d(m,n)+32+4)》》3)
[0138] Two mixing matrices (W0 and W1) are generated using the values at these different locations. The GPM prediction is given by
[0139]
[0140] GPM signal transmission design
[0141] According to the current 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 4As shown). After that, two syntax elements merge_gpm_idx0 and merge_gpm_idx1 are transmitted by signal to indicate the indexes 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". According to the current GPM design, in order to make the two unidirectional MVs more different, the two indexes cannot be the same. Based on such prior knowledge, the unidirectional prediction merge index of the first GPM partition is first transmitted by signal and used as a prediction value to reduce the signal transmission 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 transmitted by signal. Otherwise (the second unidirectional prediction merge index is greater than the first unidirectional prediction merge index), its value is subtracted by one before being transmitted to the bitstream by signal. On the decoder side, the first unidirectional prediction merge index is first decoded. Then, for decoding of the second unidirectional prediction merge index, if the resolved value is less than the first unidirectional prediction merge index, the second unidirectional prediction merge index is set equal to the resolved value; otherwise (the resolved value is equal to or greater than the first unidirectional prediction merge index), the second unidirectional prediction merge index is set equal to the resolved value plus one. Table 1 illustrates the existing syntax elements used for GPM mode in the current VVC specification.
[0142] Table 1 Existing GPM syntax elements in the merged data syntax table of the VVC specification
[0143]
[0144] On the other hand, in the current GPM design, truncated unary codes are used for the binarization of the two unidirectional prediction merge indexes (i.e., merge_gpm_idx0 and merge_gpm_idx1). Additionally, since the two unidirectional prediction merge indexes cannot be the same, different maximum values are used to truncate the codewords of the two unidirectional prediction merge indexes, 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 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 element is binarized by a fixed length code and a truncated binary code in VVC.
[0145] Motion signal transmission for regular inter-frame mode
[0146] 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_l1zero_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.
[0147] Bidirectional prediction with CU-level weights
[0148] 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:
[0149] P'(i,j)=((8-w)·P0(i,j)+w·P1(i,j)+4)>>3
[0150] 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 the weight 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 solving illumination change problems 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 bidirectional predicted CUs in the slice are not signaled and are inferred to be 4 (i.e., equal weights are applied).
[0151] Template Matching
[0152] 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, as described below.
[0153] 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.
[0154] Table 2
[0155]
[0156] In merge mode, a similar search method is applied to the merge candidates indicated by the merge index. As shown in Table 2 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 be performed all the way to 1 / 8 pixel MVD accuracy or skip those merge candidates that exceed half-pixel MVD accuracy.
[0157] Decoder-side intra mode derivation (DIMD)
[0158] 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 obtain 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 the classic intra coding mode.
[0159] In order to get the intra prediction mode of a block, a set of neighboring pixels must first be selected and gradient analysis performed on the selected set of neighboring pixels. 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 of the template to be determined, assuming that there is a high probability that the main angular direction is the same as the main angular direction of the current block (and this is the core premise of the present disclosure). Therefore, a simple 3×3 Sobel gradient filter can be used, which is defined by the following matrices, which are convolved with the template:
[0160] as well as
[0161] 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.
[0162] 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:
[0163] G=|G x |+|G y | and
[0164] 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.
[0165] 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.
[0166] 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.
[0167] Template-based Intra Mode Derivation (TIMD)
[0168] 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.
[0169] 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:
[0170] costMode2<2*costMode1.
[0171] If this condition is true, then fusion is applied, otherwise only mode 1 is used.
[0172] The weight of a mode is calculated based on its SATD cost as follows:
[0173] Weight 1 = costMode2 / (costMode1 + costMode2)
[0174] Weight 2 = 1 - Weight 1.
[0175] Geometric Partitioning Mode Using Template Matching (TM)
[0176] In ECM, template matching (TM) is applied based on the geometric partition 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, respectively. The GPM merge candidate list is constructed as follows.
[0177] 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.
[0178] 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.
[0179] In another example, zero MV candidates are filled until the GPM candidate list is full.
[0180] 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.
[0181] Table 3
[0182]
[0183] 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.
[0184] Reordering of GPM splitting patterns based on template matching
[0185] 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 by each GPM codec 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.
[0186] 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.
[0187] After generating the corresponding reference templates of the two GPM partitions in the codec unit, the reordering method of the GPM split mode is a two-step process as follows.
[0188] 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;
[0189] Second, the TM costs are re-sorted in ascending order and the best N candidates are marked as available split patterns.
[0190] 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 differences are as follows.
[0191] First, the sample point positions on the template (relative to the original positions of the CU) are used to derive weights.
[0192] 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.
[0193] GPM with inter-frame prediction and intra-frame prediction
[0194] In the example of GPM design, two unidirectional predictions of inter prediction are used to generate the final prediction. JVET-X0166 and JVET-Y0065 proposed a method to combine inter prediction and intra prediction of GPM.
[0195] In GPM with inter prediction and intra prediction, the final prediction samples are generated by weighting the inter prediction samples and intra prediction samples for each GPM separation 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 intra prediction and intra prediction shown is restricted in the proposed method to reduce the signal transmission 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 hybrid region to further improve the codec performance.
[0196] 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.
[0197] 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.
[0198] Table 4
[0199]
[0200] In the current GPM design, soft blending regions are defined to generate soft blending masks (or blending matrices). But the width θ of the blending region (i.e., blending strength) is hard-coded to be 2 luma samples on each side of the partition boundary. This may not be suitable for all content types.
[0201] For example, for screen content, objects usually contain sharper edges, which requires sharper blending (i.e., a smaller blending area width θ). On the contrary, for some natural content, the edges of objects may be less sharp and have a feathering effect, so less sharp blending (i.e., a larger blending area width θ) is required.
[0202] Furthermore, in the current GPM design, the blending weight values are chosen in the range of [0, 8] (i.e., 3-bit precision when 0 is not considered, or 4-bit precision when 0 is considered). The bit depth (precision) of the blending weight values may be too low to accurately express the true blending region.
[0203] In the present disclosure, methods and apparatus are provided for adaptively selecting the mixing strength or width θ of the soft-mix region for a GPM mixing operation.
[0204] In some examples, as described above, in the current GPM design, the weight values in the mixing matrix are given by
[0205]
[0206] as well as
[0207] ω(m,n)=Clip3(0,8,(d(m,n)+32+4)>>3).
[0208] More generally, the weights are given by
[0209]
[0210] Where b represents the bit depth of the weight value precision. Note that in this solution we express the bit depth by excluding 0 as an example. That is, if b=3, the allowed weight value is in the range of [0, 8].
[0211] Then the generalized quantitative form is given
[0212]
[0213] In order to adaptively select the GPM blending strength for different types of video content (i.e., for sharper or less sharp moving object boundaries), it is necessary to first predefine several useful blending strength (or blending area width) values on the encoder and decoder sides. Note that the blending width is usually 0 or a shiftable value (i.e., 2^n, where n is equal to 1, 2, 3...)θ, which can simplify the hardware implementation. In one example, three blending widths θ=0, θ=1, and θ=2 luma samples are used in the solution.
[0214] In some examples, a blend width index (or flag if only two different blend width values are defined) indicating the blend strength used is signaled in a high-level syntax, such as in a picture header or slice header. In the case of picture header signaling, each picture can have a different GPM blend width, while in the case of slice header signaling, each slice can have a different GPM blend width. Table 5 below gives an example picture header syntax table. As shown in Table 5, the syntax element ph_gpm_blending_idx in bold italics is used as a blend width index in the picture header.
[0215] Table 5
[0216]
[0217] In addition, on top of the introduced solution, an adaptive blending enable flag may be further added in the high-level syntax. That is, when adaptive blending is enabled (i.e., the adaptive blending enable flag is true or equal to one), the blend index syntax element is signaled, otherwise, when the adaptive blending flag is disabled (i.e., the adaptive blending enable flag is false or equal to another value), the blend index is not signaled and is set to a default value. An example syntax table is shown in Table 6. The syntax element ph_gpm_blending_idx may be a blend index syntax element, and the syntax element ph_gpm_adaptive_blending may be an adaptive blending enable flag.
[0218] Table 6
[0219]
[0220]
[0221] When ph_gpm_blending_idx is not present, it is inferred to be equal to a fixed value, such as 2.
[0222] In addition, the bit depth of the mixing weight value is not limited to 3 bits. For example, 5-bit precision (ie, the value range is [0, 32]) can be used to further improve the encoding and decoding efficiency.
[0223] In some other examples, based on the following generalized weight value calculation equation
[0224]
[0225] Different mixing area width values (or mixing strengths) may be predefined at the encoder side and the decoder side. For example, θ=0, θ=1, and θ=2 luma samples may be used.
[0226] In these examples, CU-level adaptation is performed. That is, on the decoder side, each CU (coding block) obtains a GPM blending width index from the bitstream, which indicates which blending width value the current CU will use. On the encoder side, all possible blending widths can be used to generate GPM prediction values, the best mode is selected based on the RD cost, and the corresponding index is transmitted in the bitstream with a signal. Compared with Solution 1, CU-level blending width adaptation provides a higher degree of freedom, and GPM can be used to better fit the boundaries of moving objects. An example syntax element table is shown in Table 7. As shown in Table 7, gpm_blending_idx[x0][y0] indicates the GPM blending width index obtained by each CU from the bitstream.
[0227] Table 7
[0228]
[0229] In some examples, gpm_blending_idx may be signaled using one or more context models, depending on the number of signaled bins or other rules.
[0230] In addition, a high-level syntax gpm blend enable flag can be combined with these examples. That is, the GPM blend enable flag can be signaled in a picture header or a slice header. When this flag is true, the GPM blend index will be signaled at the CU level. Otherwise, when the GPM blend enable flag is false, the GPM blend index is not signaled and is inferred to be equal to a default value, such as 2 luma samples. Example syntax tables are shown in Tables 8 and 9. As shown in Table 8, ph_gpm_adaptive_blending represents the GPM blend enable flag signaled in the picture header, and gpm_blending_idx[x0][y0] represents the GPM blend index.
[0231] Table 8
[0232]
[0233] Table 9
[0234]
[0235] In addition, the bit depth of the mixing weight value is not limited to 3 bits. For example, 5-bit precision (ie, the value range is [0, 32]) can be used to further improve the encoding and decoding efficiency.
[0236] In some examples, the weight value is calculated based on the following generalized equation
[0237]
[0238] Different mixing area width values (or mixing strengths) may be predefined at the encoder side and the decoder side. For example, θ=0, θ=1, and θ=2 luma samples will be used.
[0239] In these examples, the blend width can be adaptively selected at the CU level.However, a template matching approach can also be used to decide which blend to use at the encoder and decoder side.
[0240] That is, on the decoder side, the gpm partition mode (split mode) and merge index can be first parsed from the bitstream, and the motion information can be reconstructed.
[0241] The template of the current block can be constructed using the reconstructed samples in the current picture (ie, samples from the top or left of the current block). In one example, assuming the template size is N, the top template requires W×N samples, and the left template requires N×H samples.
[0242] Depending on the reconstructed motion information, two templates may also be generated for the two prediction values of the GPM. These templates may have the same size as the template of the current block. These templates may be generated by interpolation from the reference picture, where the interpolation may be the same or different from the interpolation used when generating the two GPM prediction values.
[0243] In some examples, the two templates of the two prediction values can be blended together to generate several blending templates using several predefined blending width values, for example, θ=0, θ=1, and θ=2 luma samples. The blending matrices for these templates can be generated using the resolved partitioning pattern and using the same method as the blending matrix used to generate the GPM prediction value.
[0244] The distortion cost between the mixed template and the template of the current block can be calculated. In one example, the cost calculation is SAD. The corresponding mixed width with the lowest template distortion cost can be regarded as the optimal mixed width of the current block. Finally, the mixed width can be used to generate a mixed matrix of the GPM prediction value of the current block.
[0245] On the encoder side, for all possible candidates, the template matching process is the same as in the decoder. That is, a template of the current block and templates of two predicted values are generated. The two templates of the predicted values are mixed together using several predefined mixing width values. The distortion cost value between the mixed template and the template of the current block is calculated. The corresponding mixing width with the lowest cost is used for the mixing mask generation of the current test candidate.
[0246] In addition, the high-level syntax gpm mix enable flag in solution 1 can be combined with these examples. For example, the GPM mix enable flag can be signaled in a picture header or a slice header. When the flag is true, the gpm mix width value is derived based on the template matching method described at the encoder and decoder sides. Otherwise, when the flag is false, the default mix width value is used when generating the mix matrix, for example, θ=2 luma samples.
[0247] In addition, the bit depth of the mixing weight value is not limited to 3 bits. For example, 5-bit precision (ie, the value range is [0, 32]) can be used to further improve the encoding and decoding efficiency.
[0248] In some examples, the weight value is calculated based on the following generalized equation
[0249]
[0250] Different mixing area width values (or mixing strengths) may be predefined at the encoder side and the decoder side. For example, θ=0, θ=1, and θ=2 luma samples will be used.
[0251] Similar to some of the examples above, the mixed width list can be sorted using a template matching method. At the same time, the mixed width value index can also be signaled in a similar manner to some of the examples above.
[0252] At the decoder side, the gpm partition mode (split mode) and merge index can be parsed from the bitstream first, and the motion information can be reconstructed. At the same time, the gpm mixed index syntax element can also be parsed from the bitstream, and the maximum possible value of the gpm mixed index can be equal to or less than the number of predefined mixed width values minus one.
[0253] The template of the current block can be constructed using the reconstructed samples in the current picture (ie, samples from the top or left of the current block). In one example, assuming the template size is N, the top template requires W×N samples, and the left template requires N×H samples.
[0254] Depending on the reconstructed motion information, two templates may also be generated for the two prediction values of the GPM. These templates may have the same size as the template of the current block. These templates may be generated by interpolation from the reference picture, where the interpolation may be the same or different from the interpolation used when generating the two GPM prediction values.
[0255] The two templates of the two prediction values need to be blended together to generate several blending templates using several predefined blending width values, for example, θ = 0, θ = 1, and θ = 2 luma samples. The blending matrices for these templates can be generated using the resolved partitioning pattern and using the same method as the blending matrix used to generate the GPM prediction value.
[0256] In some examples, a distortion cost between a hybrid template and a template of a current block may be calculated. An example method for cost calculation is SAD. The corresponding hybrid width values are arranged in ascending order based on the template cost. For example, the hybrid width value with the smallest template cost will be placed at the first position in the list; the hybrid width value with the largest template cost will be placed at the end of the list. Depending on the parsed hybrid width value index, the hybrid width finally used may be obtained. For example, when the parsed hybrid width index is equal to 0, the first hybrid width value in the reordered hybrid width value list is used.
[0257] In some examples, the maximum possible value of the GPM mix index can be equal to or less than the number of predefined mix width values minus one. And the mix index can be signaled using one or more context models. When the maximum possible value of the GPM mix index is equal to the number of predefined mix width values minus one, the mix reordering of mix width values based on template matching is advantageous for context-based binary arithmetic coding, which will introduce additional coding gain. When the maximum possible value of the gpm mix index is less than the number of predefined mix width values minus one, the signaling overhead (signaling cost) of the GPM mix index is small, which will also bring additional coding gain.
[0258] In addition, the high-level syntax gpm mix enable flag can also be combined with these examples. For example, the GPM mix enable flag can be signaled in the picture header or slice header. When the flag is true, the GPM mix width value is derived based on the described template matching method and the additional signaled gpm mix index at the encoder side and the decoder side. Otherwise, when the flag is false, the default mix width value, for example, θ=2 luma samples, can be used when generating the mix matrix without using the additional signaled GPM mix index.
[0259] In addition, the bit depth of the mixing weight value may not be limited to 3 bits. For example, 5-bit precision (ie, a value range of [0, 32]) may be used to further improve the encoding and decoding efficiency.
[0260] 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.
[0261] 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.
[0262] 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.
[0263] 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.
[0264] 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.
[0265] 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.
[0266] 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.
[0267] Fig.17 is a flowchart illustrating a video decoding method according to an example of the present disclosure.
[0268] In step 1701 , at the decoder side, the processor 1320 may obtain a GPM mixed region index at a specific level associated with a picture, wherein the GPM mixed region index indicates a mixed region width from among a set of mixed region widths.
[0269] In some examples, the specific level may be a picture level, a slice level, a CU level, etc. Thus, when the index is at the picture level, the GPM mixed region index may be signaled in the picture header, and when the index is at the slice level, the GPM mixed region index may be signaled in the slice header.
[0270] In some examples, the GPM blending region index may be the blending width index ph_gpm_blending_idx in Table 5 or Table 6. The blending region width may be expressed as follows: Fig.16 The mixing width θ is shown.
[0271] In some examples, processor 1320 may obtain a GPM blend region index signaled at a CU level, wherein the GPM blend region index indicates a blend region width applied to a current CU.
[0272] In some examples, processor 1320 may obtain a GPM blended region index signaled at a first level higher than the CU level, wherein the first level comprises a picture level or a slice level. Additionally, processor 1320 may determine that a blended region width applies to a picture in response to determining that the GPM blended region index is signaled at the picture level, and processor 1320 may determine that a blended region width applies to a slice in response to determining that the GPM blended region index is signaled at the picture level.
[0273] In some examples, processor 1320 may obtain a GPM adaptive mixing syntax element indicating whether adaptive mixing is enabled at a particular level. In addition, processor 1320 may determine that a GPM hybrid region index is signaled in response to determining that the GPM adaptive mixing syntax element is enabled, and determine that a GPM hybrid region index is not signaled in response to determining that the GPM adaptive mixing syntax element is disabled.
[0274] In some examples, the set of blending region widths may include a plurality of predefined values.
[0275] In some examples, the plurality of predefined values may include a blending region width of half, one, two, four, and eight samples on each side of a GPM partition. In some examples, the blending region width is half, one, two, four, and eight luma samples on each side of a GPM partition, such as Fig.16 shown.
[0276] In some examples, processor 1320 may infer that the value of the GPM hybrid region index is a fixed value in response to determining that the GPM hybrid region index does not exist.
[0277] In some examples, the fixed value may be equal to the mixing region width of two samples on each side of the GPM partition.
[0278] In step 1702, the processor 1320 may obtain one or more weight values for prediction samples of a hybrid GPM mode based on a hybrid region width indicated by a GPM hybrid index.
[0279] In some examples, the processor 1320 may obtain one or more weight values with an increased bit depth. For example, the bit depth of the hybrid weight value is not limited to 3 bits, and 5 bits of precision (ie, a value range of [0, 32]) may be used to further improve the encoding and decoding efficiency.
[0280] In step 1703, the processor 1320 may obtain a GPM prediction value based on one or more weight values.
[0281] Fig.18 is a diagram corresponding to Fig.17 The video decoding method shown is a flowchart of a video encoding method.
[0282] In step 1801 , at the encoder side, the processor 1320 may signal a GPM mixing region index at a specific level associated with a picture, wherein the GPM mixing region index indicates a mixing region width from a set of mixing region widths.
[0283] In some examples, the specific level may be a picture level, a slice level, a CU level, etc. Thus, when the index is at the picture level, the GPM mixed region index may be signaled in the picture header, and when the index is at the slice level, the GPM mixed region index may be signaled in the slice header.
[0284] In some examples, the GPM blending region index may be the blending width index ph_gpm_blending_idx in Table 5 or Table 6. The blending region width may be expressed as follows: Fig.16 The mixing width θ is shown.
[0285] In some examples, processor 1320 may signal a GPM blend region index at the CU level, where the GPM blend region index indicates a blend region width applied to the current CU.
[0286] In some examples, processor 1320 may signal the GPM blended region index at a first level higher than the CU level, wherein the first level comprises a picture level or a slice level. Additionally, processor 1320 may determine that the blended region width applies to the picture in response to determining that the GPM blended region index is signaled at the picture level, and processor 1320 may determine that the blended region width applies to the slice in response to determining that the GPM blended region index is signaled at the picture level.
[0287] In some examples, processor 1320 may signal a GPM adaptive mix syntax element indicating whether adaptive mix is enabled at a particular level. In addition, processor 1320 may determine that a GPM hybrid region index is signaled in response to determining that the GPM adaptive mix syntax element is enabled, and determine that a GPM hybrid region index is not signaled in response to determining that the GPM adaptive mix syntax element is disabled.
[0288] In some examples, the set of blending region widths may include a plurality of predefined values.
[0289] In some examples, the plurality of predefined values may include a blending region width of half, one, two, four, and eight samples on each side of a GPM partition. In some examples, the blending region width is half, one, two, four, and eight luma samples on each side of a GPM partition, such as Fig.16 shown.
[0290] In some examples, the processor 1320 may obtain one or more weight values with an increased bit depth. For example, the bit depth of the hybrid weight value is not limited to 3 bits, and 5 bits of precision (ie, a value range of [0, 32]) may be used to further improve the encoding and decoding efficiency.
[0291] In some examples, processor 1320 may infer that the value of the GPM hybrid region index is a fixed value in response to determining that the GPM hybrid region index does not exist.
[0292] In some examples, the fixed value may be equal to the mixing region width of two samples on each side of the GPM partition.
[0293] In step 1802, the processor 1320 may obtain one or more weight values for prediction samples of a hybrid GPM mode based on a hybrid region width indicated by a GPM hybrid index.
[0294] In step 1803, the processor 1320 may obtain a GPM prediction value based on one or more weight values.
[0295] Fig.19 is a flowchart illustrating a video decoding method according to an example of the present disclosure.
[0296] In step 1901, at the decoder side, the processor 1320 may obtain a plurality of first prediction samples of neighboring reconstructed samples of the CU based on a motion vector associated with a first GPM portion of the CU, and obtain a plurality of second prediction samples of neighboring reconstructed samples of the CU based on a motion vector associated with a second GPM portion of the CU.
[0297] In step 1902, the processor 1320 may obtain a plurality of mixed prediction samples adjacent to the reconstructed sample based on the first prediction sample, the second prediction sample, and a plurality of mixed region widths.
[0298] In some examples, the plurality of blending region widths may include a plurality of predefined values.
[0299] In step 1903, the processor 1320 may reorder multiple mixed region widths based on the distortion cost between multiple mixed prediction samples associated with each mixed region width and reconstructed neighboring samples of the current CU to obtain a reordered mixed region width list.
[0300] In some examples, the plurality of hybrid region widths may be reordered based on ascending order of distortion cost.
[0301] In step 1904, the processor 1320 may obtain a GPM mixing region index, and then obtain a mixing region width based on the GPM mixing region index and the reordered mixing region width list.
[0302] In step 1905 , the processor 1320 may obtain one or more weight values for the first prediction sample and the second prediction sample of the mixed GPM mode based on the mixed region width.
[0303] In some examples, processor 1320 may obtain one or more weight values at an increased bit depth.
[0304] In step 1905, the processor 1320 may obtain a GPM prediction value based on one or more weight values.
[0305] In some examples, the processor 1320 may obtain a GPM adaptive mixing syntax element indicating whether adaptive mixing is enabled at a specific level. In addition, the processor 1320 may perform reordering on multiple hybrid prediction samples in response to determining that the GPM adaptive mixing syntax element is enabled, and infer that the hybrid region width is a fixed value.
[0306] In some examples, processor 1320 may determine that the mixed region width is associated with the lowest distortion cost in response to determining that the GPM mixed region index is equal to 0.
[0307] Fig. 20is a diagram illustrating some examples according to the present disclosure corresponding to Fig.19 The video decoding method shown is a flowchart of a video encoding method.
[0308] In step 2001, at the encoder side, the processor 1320 may obtain a plurality of first prediction samples of neighboring reconstructed samples of the CU based on a motion vector associated with a first GPM portion of the CU, and obtain a plurality of second prediction samples of neighboring reconstructed samples of the CU based on a motion vector associated with a second GPM portion of the CU.
[0309] In step 2002, the processor 1320 may obtain a plurality of mixed prediction samples adjacent to the reconstructed sample based on the first prediction sample, the second prediction sample and a plurality of mixed region widths.
[0310] In some examples, the plurality of blending region widths may include a plurality of predefined values.
[0311] In step 2003, the processor 1320 may reorder multiple mixed region widths based on the distortion cost between multiple mixed prediction samples associated with each mixed region width and reconstructed neighboring samples of the current CU to obtain a reordered mixed region width list.
[0312] In some examples, the plurality of hybrid region widths may be reordered based on ascending order of distortion cost.
[0313] In step 2004, the processor 1320 may obtain a GPM mixing region index, and the decoder may obtain a mixing region width based on the GPM mixing region index and the reordered mixing region width list.
[0314] In step 2005, the processor 1320 may obtain one or more weight values for the first prediction sample and the second prediction sample of the mixed GPM mode based on the mixed region width.
[0315] In some examples, processor 1320 may obtain one or more weight values at an increased bit depth.
[0316] In step 2005, the processor 1320 may obtain a GPM prediction value based on one or more weight values.
[0317] In some examples, the processor 1320 may obtain a GPM adaptive mixing syntax element indicating whether adaptive mixing is enabled at a specific level. In addition, the processor 1320 may perform reordering on multiple hybrid prediction samples in response to determining that the GPM adaptive mixing syntax element is enabled, and infer that the hybrid region width is a fixed value.
[0318] In some examples, processor 1320 may determine that the mixed region width is associated with the lowest distortion cost in response to determining that the GPM mixed region index is equal to 0.
[0319] 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.17 or Fig.19 Any of the methods shown in .
[0320] 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.18 or Fig. 20 Any of the methods shown in .
[0321] 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 17 to 20 In one example, multiple programs can be executed by a processor 1320 in a computing environment 1310 to receive (e.g., from Figure 1G The 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 2BThe 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.
[0322] 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.
[0323] 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 video decoding method, the method comprising: Obtaining, by a decoder, a geometric partitioning mode (GPM) mixed region index at a specific level associated with a picture, wherein the GPM mixed region index indicates a mixed region width from a set of mixed region widths; obtaining, by the decoder and based on a mixing region width indicated by the GPM mixing index, one or more weight values for prediction samples of a mixed GPM mode; and A GPM prediction value is obtained by the decoder and based on the one or more weight values.
2. The method of claim 1, further comprising: A GPM mixing region index signaled at a coding unit (CU) level is obtained by the decoder, wherein the GPM mixing region index indicates a mixing region width applied to a current CU.
3. The method of claim 1, further comprising: Obtaining, by the decoder, a GPM mixing region index signaled at a first level higher than a coding unit (CU) level, wherein the first level comprises a picture level or a slice level; In response to determining that the GPM blending region index is signaled at the picture level, determining that the blending region width applies to the picture; and In response to determining that the GPM mixing region index is signaled at the stripe level, determining the mixing region width applies stripes.
4. The method of claim 1, further comprising: obtaining, by the decoder at the specific level, a GPM adaptive mix syntax element indicating whether adaptive mixing is enabled; In response to determining that the GPM adaptive hybrid syntax element is enabled, determining that the GPM hybrid region index is signaled; and In response to determining that the GPM adaptive mixing syntax element is disabled, it is determined that the GPM mixing region index is not signaled.
5. The method of claim 1, wherein: The set of blending region widths includes a plurality of predefined values.
6. The method of claim 5, wherein: The plurality of predefined values include mixing region widths of half, one, two, four, and eight samples on each side of the GPM partition.
7. The method of claim 1, further comprising: The one or more weight values are obtained by the decoder at an increased bit depth.
8. The method of claim 1, further comprising: In response to determining that the GPM mixing region index does not exist, the decoder infers that the value of the GPM mixing region index is a fixed value.
9. The method of claim 8, wherein: The fixed value is equal to the mixing area width of two samples on each side of the GPM partition.
10. A video encoding method, the method comprising: Signaling, by an encoder, a geometric partitioning mode (GPM) mixed-region index at a specific level associated with a picture, wherein the GPM mixed-region index indicates a mixed-region width from a set of mixed-region widths; obtaining, by the encoder and based on a mixing region width indicated by the GPM mixing index, one or more weight values for prediction samples of a mixed GPM mode; and A GPM prediction value is obtained by the encoder and based on the one or more weight values.
11. The method of claim 10, further comprising: The GPM mixing region index is signaled by the encoder at a coding unit (CU) level, wherein the GPM mixing region index indicates a mixing region width applied to a current CU.
12. The method of claim 10, further comprising: Signaling, by the encoder, the GPM mixing region index at a first level higher than a coding unit (CU) level, wherein the first level comprises a picture level or a slice level; In response to determining that the GPM blending region index is signaled at the picture level, determining that the blending region width applies to the picture; and In response to determining that the GPM mixing region index is signaled at the stripe level, determining the mixing region width applies stripes.
13. The method of claim 10, further comprising: signaling, by the encoder at the particular level, a GPM adaptive mixing syntax element indicating whether adaptive mixing is enabled; In response to determining that the GPM adaptive hybrid syntax element is enabled, determining that the GPM hybrid region index is signaled; and In response to determining that the GPM adaptive mixing syntax element is disabled, it is determined that the GPM mixing region index is not signaled.
14. The method of claim 10, wherein: The set of blending region widths includes a plurality of predefined values.
15. The method of claim 14, wherein: The plurality of predefined values include mixing region widths of half, one, two, four, and eight samples on each side of the GPM partition.
16. The method of claim 10, further comprising: The one or more weight values are obtained by the encoder at an increased bit depth.
17. The method of claim 10, further comprising: In response to determining that the GPM mixing region index does not exist, the encoder infers that the value of the GPM mixing region index is a fixed value.
18. The method of claim 14, wherein: The fixed value is equal to the mixing area width of two samples on each side of the GPM partition.
19. A video decoding method, the method comprising: Obtaining, by a decoder, a plurality of first prediction samples of neighboring reconstructed samples of a coding unit CU based on a motion vector associated with a first GPM portion of the CU, and obtaining a plurality of second prediction samples of neighboring reconstructed samples of the CU based on a motion vector associated with a second GPM portion of the CU; The decoder obtains a plurality of mixed prediction samples of the adjacent reconstruction samples based on the first prediction samples, the second prediction samples and a plurality of mixed area widths; Reordering, by the decoder, the plurality of mixed region widths based on distortion costs between a plurality of mixed prediction samples associated with each mixed region width and reconstructed neighboring samples of the current CU to obtain a reordered mixed region width list; Obtaining, by the decoder, a GPM mixing region index, and obtaining, by the decoder, a mixing region width based on the GPM mixing region index and the reordered mixing region width list; obtaining, by the decoder and based on the mixing region width, one or more weight values for the first prediction sample and the second prediction sample for a mixed GPM mode; as well as A GPM prediction value is obtained by the decoder and based on the one or more weight values.
20. The method of claim 19, wherein: The plurality of mixed region widths are reordered based on an ascending order of the distortion costs.
21. The method of claim 19, wherein: The plurality of mixing region widths includes a plurality of predefined values.
22. The method of claim 19, further comprising: The one or more weight values are obtained by the decoder at an increased bit depth.
23. The method of claim 19, further comprising: Obtaining, by the decoder at a particular level, a GPM adaptive mix syntax element indicating whether adaptive mixing is enabled; In response to determining that the GPM adaptive hybrid syntax element is enabled, performing reordering on the plurality of hybrid prediction samples; as well as In response to determining that the GPM adaptive mixing syntax element is disabled, the mixing region width is inferred by the decoder to be a fixed value.
24. The method of claim 19, further comprising: In response to determining that the GPM mixed region index is equal to 0, determining, by the decoder, that the mixed region width is associated with a minimum distortion cost.
25. A video encoding method, the method comprising: The encoder obtains a plurality of first prediction samples of neighboring reconstructed samples of a coding unit CU based on a motion vector associated with a first GPM portion of the CU, and obtains a plurality of second prediction samples of neighboring reconstructed samples of the CU based on a motion vector associated with a second GPM portion of the CU; The encoder obtains a plurality of mixed prediction samples adjacent to a reconstruction sample based on the first prediction sample, the second prediction sample and a plurality of mixed region widths; The encoder reorders the plurality of mixed region widths based on a distortion cost between a plurality of mixed prediction samples associated with each mixed region width and a reconstructed neighboring sample of the current CU to obtain a reordered mixed region width list; Obtaining, by the encoder, a GPM mixing region index, and obtaining, by the encoder, a mixing region width based on the GPM mixing region width index and the reordered mixing region width list; Obtaining, by the encoder and based on the mixing region width, one or more weight values for the first prediction sample and the second prediction sample for a mixed GPM mode; as well as A GPM prediction value is obtained by the encoder and based on the one or more weight values.
26. The method of claim 25, wherein: The plurality of mixing region widths includes a plurality of predefined values.
27. The method of claim 25, wherein: The plurality of mixed region widths are reordered based on an ascending order of the distortion costs.
28. The method of claim 25, further comprising: The one or more weight values are obtained by the encoder at an increased bit depth.
29. The method of claim 25, further comprising: a GPM adaptive mixing syntax element signaled by the encoder at a particular level indicating whether adaptive mixing is enabled; In response to determining that the GPM adaptive hybrid syntax element is enabled, performing, by the encoder, reordering the plurality of hybrid prediction samples; as well as In response to determining that the GPM adaptive mixing syntax element is disabled, the mixing region width is inferred by the encoder to be a fixed value.
30. The method of claim 25, further comprising: In response to determining that the GPM mixed region index is equal to 0, determining, by the encoder, that the mixed region width is associated with a minimum distortion cost.
31. 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 described in any one of claims 1 to 9 and 19 to 24.
32. 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 described in any one of claims 10 to 18 and 25 to 30.
33. 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 9 and 19 to 24 based on the bit stream.
34. 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 10 to 18 and 25 to 30 to encode the CU into a bitstream and transmit the bitstream.
Citation Information
Cited By
Image processing method, processing equipment and storage medium
CN121125987A
