Method and apparatus for multi-hypothesis based prediction

By combining nonlinear and linear model modes in video encoding and decoding and adopting a multi-hypothesis chroma prediction method, the problem of low chroma block encoding and decoding efficiency in the existing technology is solved, and more efficient video data compression and decoding are achieved.

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

Patent Information

Application Number
CN202380021207.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-11
Filing Date
2023-02-08
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

It is difficult for existing video coding and decoding technology to effectively utilize intra prediction coding mode to improve coding and decoding efficiency when compressing video data. Especially when processing chroma blocks, redundant prediction modes lead to high bit rates and degraded video quality.

Method used

The decoder and encoder are used to combine nonlinear models and linear model modes, and are combined through cross-component linear models and multi-model linear models for chroma prediction based on multiple hypotheses to improve the encoding and decoding efficiency of chroma blocks.

Benefits of technology

By combining nonlinear and linear model modes, more efficient chroma prediction is achieved, bit rates are reduced, video quality degradation is avoided, and the overall efficiency of video encoding and decoding is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118679736A
    Figure CN118679736A
Patent Text Reader

Abstract

A method, an apparatus, and a non-transitory computer-readable storage medium for video encoding and decoding are provided. In one method, a decoder determines a non-linear model (non-LM) mode and a linear model (LM) mode for a current chroma block, where the LM mode includes a cross-component linear model (CCLM) mode and a multi-model linear model (MMLM) mode. The decoder then combines the non-LM mode and the LM mode for multi-hypothesis based chroma prediction (MCP) for the current chroma block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based upon and claims the benefit of priority of provisional application No. 63 / 309,491, filed on February 11, 2022, the entire contents of which are incorporated herein by reference for all purposes. Technical Field

[0003] The present disclosure relates to video coding and compression, and more particularly to a method and apparatus for improving coding efficiency of video blocks by applying a prediction technique based on multiple hypotheses. Background Art

[0004] Digital video is supported by various electronic devices, such as digital televisions, laptop or desktop computers, tablet computers, digital cameras, digital recording devices, digital media players, video game consoles, smart phones, video teleconferencing devices, video streaming devices, etc. Electronic devices send and receive or otherwise communicate digital video data across a communication network, and / or store digital video data on a storage device. Due to the limited bandwidth capacity of the communication network and the limited storage resources of the storage device, video codecs can be used to compress video data according to one or more video codec standards before communicating or storing video data. For example, video codec standards include Versatile Video Coding (VVC), Joint Exploration test Model (JEM), High-Efficiency Video Coding (HEVC / H.265), Advanced Video Coding (AVC / H.264), Moving Picture Expert Group (MPEG) codecs, etc. Video codecs typically use prediction methods that exploit the redundancy inherent in video data (eg, inter-frame prediction, intra-frame prediction, etc.) Video codecs aim to compress video data into a form that uses a lower bit rate while avoiding or minimizing degradation of video quality. Summary of the invention

[0005] Examples of the present disclosure provide methods and apparatus for video decoding using intra-frame prediction coding mode.

[0006] According to a first aspect of the present disclosure, a method for video decoding is provided. The method may include: obtaining, by a decoder, a nonlinear model (non-LM) mode and a linear model (LM) mode for a current chroma block, wherein the LM mode includes a cross-component linear model (CCLM) mode and a multi-model linear model (MMLM) mode; and combining, by the decoder, the non-LM mode with the LM mode for multi-hypothesis-based chroma prediction (MCP) for the current chroma block.

[0007] According to a second aspect of the present disclosure, a method for video encoding is provided. The method may include: obtaining, by an encoder, a nonlinear model (non-LM) mode and a linear model (LM) mode for a current chroma block, wherein the LM mode includes a cross-component linear model (CCLM) mode and a multi-model linear model (MMLM) mode; and combining, by the encoder, the non-LM mode with the LM mode for multi-hypothesis-based chroma prediction (MCP) for the current chroma block.

[0008] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not intended to restrict the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate examples consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0010] Figure 1 is a block diagram illustrating an exemplary system for encoding and decoding video blocks according to some embodiments of the present disclosure.

[0011] Figure 2 is a block diagram illustrating an exemplary video encoder according to some embodiments of the present disclosure.

[0012] Figure 3 is a block diagram illustrating an exemplary video decoder according to some embodiments of the present disclosure.

[0013] FIG. 4A to FIG. 4E is a block diagram illustrating how a frame may be recursively divided into multiple video blocks of different sizes and shapes according to some embodiments of the present disclosure.

[0014] Figure 5 An example of the locations of the sample points involved in the CCLM mode according to some embodiments of the present disclosure is shown.

[0015] Figure 6 An example of classifying adjacent sample points into two groups according to some embodiments of the present disclosure is shown.

[0016] Figure 7 An example of classifying adjacent sample points into two groups based on the inflection point T according to some embodiments of the present disclosure is shown.

[0017] Figure 8 An example of a selected set of pixels on which gradient analysis is performed is shown in accordance with some embodiments of the present disclosure.

[0018] Fig. 9 An example of convolution of a 3×3 Sobel gradient filter with a template is shown according to some embodiments of the present disclosure.

[0019] Fig.10 An example of prediction fusion by weighted averaging of two HoG modes and a planar mode according to some embodiments of the present disclosure is shown.

[0020] Fig.11 An example of a template and its reference samples used in TIMD according to some embodiments of the present disclosure is shown.

[0021] Fig.12 Co-located reconstructed luminance samples used in accordance with some embodiments of the present disclosure are shown.

[0022] Fig.13 is a block diagram illustrating a video decoding process according to some embodiments of the present disclosure.

[0023] Fig.14 is a block diagram illustrating a video encoding process according to some embodiments of the present disclosure.

[0024] Fig.15 is a block diagram illustrating a computing environment coupled to a user interface according to some implementations of the present disclosure. DETAILED DESCRIPTION

[0025] Reference will now be made in detail to example embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings, wherein, unless otherwise specified, the same numbers in different drawings represent the same or similar elements. The embodiments set forth in the following description of the example embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with aspects related to the present disclosure as recorded in the appended claims.

[0026] The terms used in this disclosure are only used for the purpose of describing specific embodiments and are not intended to limit the disclosure. As used in this disclosure and the appended claims, singular forms are intended to also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein is intended to represent and include any or all possible combinations of one or more associated listed items.

[0027] It should be understood that although the terms "first", "second", "third", etc. may be used herein to describe various information, the information should not be limited by these terms. These terms are only used to distinguish one type of information from another type of information. For example, without departing from the scope of the present disclosure, the first information may be referred to as the second information; and similarly, the second information may also be referred to as the first information. As used herein, the term "if" may be understood to mean "when" or "at" or "in response to a judgment", depending on the context.

[0028] Various video codec technologies 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 Universal Video Codec (VVC), 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) jointly developed by ISO / IEC MPEG and ITU-TVECG. AOMedia Video 1 (AV1) was developed by the Alliance for Open Media (AOM) as a successor to its previous standard VP9. Audio Video Coding (AVS) refers to digital audio and digital video compression standards, another video compression standard series developed by the Chinese Audio and Video Coding Standard Working Group. Most existing video codec standards are based on the well-known hybrid video codec framework, that is, block-based prediction methods (e.g., inter-frame prediction, intra-frame prediction) are used to reduce the redundancy present in video images or sequences, and transform coding is used to compress the energy of prediction errors. An important goal of video coding technology is to compress video data into a form that uses a lower bit rate while avoiding or minimizing video quality degradation.

[0029] The first generation of AVS standards includes the Chinese national standard "Information Technology Advanced Audio and Video Codec Part 2: Video" (referred to as AVS1) and "Information Technology Advanced Audio and Video Codec Part 16: Broadcasting and Television Video" (referred to as AVS+). Compared with the MPEG-2 standard, it can provide about 50% bit rate savings at the same perceptual quality. The second generation of AVS standards includes the Chinese national standard "Information Technology High Efficiency Multimedia Codec" (referred to as AVS2), which is mainly aimed at the transmission of ultra-high-definition television programs. The codec efficiency of AVS2 is twice that of AVS+. In May 2016, AVS2 was released as a Chinese national standard. At the same time, the video part of the AVS2 standard was submitted by the Institute of Electrical and Electronics Engineers (IEEE) as an international standard for application. The AVS3 standard is a new generation of video codec standards for UHD video applications, aiming to exceed the codec efficiency of the latest international standard HEVC. In March 2019, at the 68th AVS meeting, the AVS3-P2 baseline was completed, which provides about 30% bit rate savings compared to the HEVC standard. Currently, there is a reference software called High Performance Model (HPM) maintained by the AVS group to demonstrate a reference implementation of the AVS3 standard.

[0030] Figure 1 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 1 As shown in , system 10 includes a source device 12 that generates and encodes video data to be later decoded by a destination device 14. Source device 12 and destination device 14 may include any of a wide variety of electronic devices, including desktop or laptop computers, tablet computers, smart phones, set-top boxes, digital televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some implementations, source device 12 and destination device 14 are equipped with wireless communication capabilities.

[0031] In some embodiments, the target 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 target device 14. In one example, the link 16 may include a communication medium that enables the source device 12 to send the encoded video data directly to the target device 14 in real time. The encoded video data may be modulated according to a communication standard (such as a wireless communication protocol) and sent to the target device 14. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a portion of a packet-based network (e.g., 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 conducive to facilitating communication from the source device 12 to the target device 14.

[0032] In some other embodiments, the encoded video data may be sent from the output interface 22 to the storage device 32. Subsequently, the encoded video data in the storage device 32 may be accessed by the target device 14 via the input interface 28. The storage device 32 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a digital versatile disk (DVD), a compact disc read-only memory (CD-ROM), a flash memory, a volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data. In another example, the storage device 32 may correspond to a file server or another intermediate storage device that can store the encoded video data generated by the source device 12. The target device 14 can access the stored video data from the storage device 2 via streaming or downloading. The file server can be any type of computer capable of storing encoded video data and sending the encoded video data to the target 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 target device 14 may access the encoded video data through any standard data connection suitable for accessing the encoded video data stored on the file server, including a wireless channel (e.g., a Wireless Fidelity (Wi-Fi) connection), a wired connection (e.g., a Digital Subscriber Line (DSL), a cable modem, etc.), or a combination of both. 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 a streaming transmission and a download transmission.

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

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

[0035] Target 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 communicated 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 in the encoded video data sent over a communication medium, stored on a storage medium, or stored on a file server.

[0036] In some embodiments, the target device 14 may include a display device 34, which may be an integrated display device and an external display device configured to communicate with the target device 14. The display device 34 displays the decoded video data to the 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.

[0037] The video encoder 20 and the video decoder 30 may operate according to a proprietary standard or an industry standard (e.g., 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 believed that the video encoder 20 of the source device 12 may be configured to encode video data according to any of these current standards or future standards. Similarly, it is also generally believed that the video decoder 30 of the target device 14 may be configured to decode video data according to any of these current standards or future standards.

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

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

[0040] like Figure 2As shown in FIG. 1 , 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 also includes a motion estimation unit 42, a motion compensation unit 44, a partition unit 45, an intra-frame prediction processing unit 46, and an intra-frame block copy (BC) unit 48. In some embodiments, the video encoder 20 also includes an inverse quantization unit 58, an inverse transform processing unit 60, and an adder 62 for video block reconstruction. A loop filter 63 (such as a deblocking filter) may 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 using a deblocking filter, additional loop filters, such as a Sample Adaptive Offset (SAO) filter and / or an Adaptive in-Loop Filter (ALF), may be used to filter the output of adder 62. In some examples, the loop filter may be omitted, and the decoded video block may be provided directly by adder 62 to DPB 64. Video encoder 20 may take the form of a fixed or programmable hardware unit, or may be distributed in one or more of the illustrated fixed or programmable hardware units.

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

[0042] like Figure 2As shown in , after receiving the video data, the partitioning unit 45 within the prediction processing unit 41 partitions the video data into video blocks. This partitioning operation may also include partitioning the video frame into strips, tiles (e.g., a set of video blocks) or other larger coding units (Coding Unit, CU) according to a predefined splitting structure associated with the video data (e.g., a quadtree (Quad-Tree, QT) structure). A video frame is or can be considered to be a two-dimensional array or matrix of samples with sample values. The samples in the array may also be referred to as pixels or pels. The number of samples in the horizontal and vertical directions (or axes) of the array or picture defines the size and / or resolution of the video frame. The video frame may be divided into multiple video blocks by (for example) using QT partitioning. A video block is also or can be considered to be a two-dimensional array or matrix of samples with sample values, but the size of the video block is smaller than the video frame. The number of samples in the horizontal and vertical directions (or axes) of the video block defines the size of the video block. The video block may be further divided into one or more block partitions or sub-blocks (which may 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" as used herein may be a portion of a frame or picture, in particular a rectangular (square or non-square) portion. With reference to, for example, HEVC and VVC, a block or video block may be or correspond to a coding tree unit (CTU), a CU, a prediction unit (PU) or a transform unit (TU) and / or may be or correspond to a corresponding block, such as a coding tree block (CTB), a coding block (CB), a prediction block (PB) or a transform block (TB) and / or correspond to a sub-block.

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

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

[0045] In some embodiments, motion estimation unit 42 determines the inter-prediction mode for a current video frame by generating a motion vector according to a predetermined pattern within a sequence of video frames, the motion vector indicating 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 a motion vector that estimates the motion for a video block. For example, a motion vector may indicate the displacement of a video block within a current video frame or picture relative to a prediction block within a reference frame, the prediction block in the reference frame relative to the current block being encoded in the current frame. The predetermined pattern may designate video frames in a sequence as P frames or B frames. Intra BC unit 48 may determine a vector (e.g., a block vector) for intra BC coding in a manner similar to the motion vectors determined by motion estimation unit 42 for inter prediction, or may utilize motion estimation unit 42 to determine the block vector.

[0046] In terms of pixel differences, the prediction block of the video block may be or may correspond to a block or reference block of a reference frame that closely matches the video block to be encoded, and the pixel difference may be determined by the sum of absolute differences (SAD), the sum of square differences (SSD), or other difference metrics. In some embodiments, the video encoder 20 may calculate values ​​for sub-integer pixel positions of the reference frame stored in the DPB 64. For example, the video encoder 20 may interpolate values ​​for quarter-pixel positions, eighth-pixel positions, or other fractional pixel positions of the reference frame. Therefore, the motion estimation unit 42 may perform a motion search relative to the full pixel positions and the fractional pixel positions and output a motion vector with fractional pixel accuracy.

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

[0048] The motion compensation performed by the motion compensation unit 44 may involve extracting or generating a prediction block based on the motion vector determined by the motion estimation unit 42. After receiving the motion vector for 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, retrieve 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 of 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 a luma difference component or a chroma difference component 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 a 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 shown separately for conceptual purposes.

[0049] In some embodiments, the intra BC unit 48 may generate vectors and extract prediction blocks in a manner similar to that described above in conjunction with the motion estimation unit 42 and the motion compensation unit 44, but these prediction blocks are in the same frame as the current block being encoded, and these vectors are referred to as block vectors rather than motion vectors. Specifically, the intra BC unit 48 may determine the intra prediction mode to be used to encode the current block. In some examples, the intra BC unit 48 may encode the current block using various intra prediction modes, for example, during different encoding passes, and test their performance through rate-distortion analysis. Next, the intra BC unit 48 may select a suitable 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 rate-distortion values ​​for the various tested intra prediction modes using rate-distortion analysis, and select the intra prediction mode with the best rate-distortion characteristics among the tested modes as the suitable intra prediction mode to use. The rate-distortion analysis generally determines the amount of distortion (or error) between a coded block and the original uncoded block that was encoded to generate the coded block, as well as the bit rate (i.e., the number of bits) used to generate the coded block. Intra BC unit 48 may calculate ratios from the distortions and rates for the various coded blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block.

[0050] In other examples, intra BC unit 48 may use, in whole or in part, motion estimation unit 42 and motion compensation unit 44 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.

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

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

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

[0054] 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 on the matrix including the quantized transform coefficients. Optionally, entropy encoding unit 56 may perform the scan.

[0055] 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 partitioning entropy (PIPE) coding, or another entropy coding method or technique. The encoded bitstream may then be sent to a video bitstream such as Figure 1 The video decoder 30 shown, or archived as Figure 1 The video frame may be stored in storage device 32 as shown for later transmission to or retrieval by video decoder 30. Entropy encoding unit 56 may also entropy encode motion vectors and other syntax elements for the current video frame being encoded.

[0056] 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 for use in generating reference blocks for predicting other video blocks. As noted 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.

[0057] Adder 62 adds the reconstructed residual block to the motion compensated prediction block generated by motion compensation unit 44 to generate 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.

[0058] Figure 3 30 is a block diagram showing an 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 combined Figure 2The encoding process is substantially the inverse of the decoding 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.

[0059] In some examples, units of the video decoder 30 may be tasked to perform embodiments of the present application. In addition, in some examples, embodiments of the present disclosure may be dispersed in one or more of the multiple 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).

[0060] The video data memory 79 may store video data, such as an encoded video bitstream, to be decoded by other components of the video decoder 30. The video data stored in the video data memory 79 may be obtained, for example, from the storage device 32, from a local video source (such as a camera), via a wired or wireless network communication of video data, or by accessing a physical data storage medium (e.g., a flash drive or 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 by the video decoder 30 when decoding the video data (e.g., in an intra-frame or inter-frame prediction decoding mode). The video data memory 79 and the DPB 92 may be formed by any of a variety of memory devices, such as 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. Figure 3 9 as two different components of video decoder 30. However, it will be apparent to those skilled in the art that video data memory 79 and DPB 92 may be provided by the same memory device or separate memory devices. In some examples, video data memory 79 may be on-chip with other components of video decoder 30, or off-chip relative to those components.

[0061] During the decoding process, the video decoder 30 receives an encoded video bitstream representing video blocks 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 quantization 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.

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

[0063] 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 for 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 of the prediction blocks may be generated from a reference frame within one of the reference frame lists. The video decoder 30 may construct the reference frame lists, List 0 and List 1, using a default construction technique based on the reference frames stored in the DPB 92.

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

[0065] The motion compensation unit 82 and / or the intra BC unit 85 determine prediction information for 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 a prediction block for the current video block being decoded. 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) for decoding the video block of the video frame, the inter prediction frame type (e.g., B or P), the construction information for one or more of the reference frame lists for the frame, the motion vector for each inter prediction encoded video block of the frame, the inter prediction state for each inter prediction encoded video block of the frame, and other information for decoding the video block in the current video frame.

[0066] Similarly, the intra BC unit 85 may use some of the received syntax elements, such as a flag to determine whether the current video block is predicted using intra BC mode, construction information of which video blocks of the frame are within the reconstruction region and should be stored in the DPB 92, a block vector for each intra BC predicted video block of the frame, an intra BC prediction state for each intra BC predicted video block of the frame, and other information for decoding the video blocks in the current video frame.

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

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

[0069] 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 for the current video block by adding the residual block from the inverse transform processing unit 88 to 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) may be located between the adder 90 and the DPB 92 to further process the decoded video block. In some examples, the loop filter 91 may be omitted, and the decoded video block may 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 may also store the decoded video for later presentation on a display device (e.g., Figure 1 on a display device 34).

[0070] In a typical video encoding and decoding process, a video sequence usually 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 cases, a frame may be monochrome and therefore include only a two-dimensional array of luma samples.

[0071] like Figure 4A As shown in , the video encoder 20 (or more specifically, the partitioning unit 45) 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, 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 4B As shown in , each CTU may include one CTB for luma samples, two corresponding coding tree blocks for chroma samples, and syntax elements for encoding and decoding samples of the coding tree blocks. The syntax elements describe the properties of different types of units of coding pixel 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 samples of the coding tree block. The coding tree block may be an N×N sample block.

[0072] To achieve better performance, 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 4C As depicted in , a 64×64 CTU 400 is first partitioned into four smaller CUs, each CU having a block size of 32×32. Among the four smaller CUs, CU 410 and CU 420 are partitioned into four CUs of a block size of 16×16, respectively. Two 16×16 CUs 430 and CU 440 are further partitioned into four CUs of a block size of 8×8, respectively. Figure 4D Depicted is a diagram showing Figure 4C The quadtree data structure of the final result of the partitioning process of CTU 400 depicted in FIG. 4 is a quadtree data structure, each leaf node of the quadtree corresponds to a CU of each size ranging from 32×32 to 8×8. Figure 4BEach CU may include a CB of luma samples and two corresponding coding blocks of chroma samples of the same size frame, and syntax elements for encoding and decoding the samples of the coding blocks. In a monochrome picture or a picture 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 4C and Figure 4D The quadtree partitioning depicted in FIG is for illustrative purposes only, and one CTU may be split into CUs based on quadtree / ternary tree / binary tree partitioning to adapt to varying local characteristics. In a multi-type tree structure, one CTU is divided by a quadtree structure, and each quadtree leaf CU may be further divided by a binary tree structure and a ternary tree structure. Figure 4E As shown, there are five possible partition types for a coding block with a width of W and a height of H, namely, four-way partitioning, horizontal binary partitioning, vertical binary partitioning, horizontal ternary partitioning, and vertical ternary partitioning.

[0073] In some examples, the video encoder 20 may further divide the coding block of the CU into one or more M×N PBs. A PB is a rectangular (square or non-square) block of samples to which the same prediction (inter or intra) is applied. The PU of a CU may include a PB of luma samples, two corresponding PBs of chroma samples, 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 a predicted luma block, a predicted Cb block, and a predicted Cr block for the luma PB, Cb PB, and Cr PB of each PU of the CU.

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

[0075] After the video encoder 20 generates the predicted luma block, the predicted Cb block, and the predicted Cr block for one or more PUs of a CU, the video encoder 20 may generate a luma residual block for the CU by subtracting the predicted luma block of the CU from the original luma coding block of the CU, 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 for 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.

[0076] In addition, if Figure 4C As shown in , the video encoder 20 may use quadtree partitioning to decompose the luma residual block, Cb residual block and Cr residual block of the CU into one or more luma transform blocks, Cb transform blocks and Cr transform blocks, respectively. A transform block is a rectangular (square or non-square) sample block to which the same transform is applied. A TU of a CU may include a transform block of luma samples, two corresponding transform blocks of chroma samples, and syntax elements for transforming the transform block samples. Therefore, 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 the samples of the transform block.

[0077] The video encoder 20 may apply one or more transforms to the luma transform block of the TU to generate a luma coefficient block for 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 for 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 for the TU.

[0078] After generating a coefficient block (e.g., a luma coefficient block, a Cb coefficient block, or a Cr coefficient block), video encoder 20 may quantize the coefficient block. Quantization generally refers to a process in which transform coefficients are quantized to potentially reduce the amount of data used to represent the transform coefficients, thereby providing further compression. After video encoder 20 quantizes the coefficient block, video encoder 20 may entropy encode syntax elements indicating the quantized transform coefficients. For example, video encoder 20 may perform CABAC on the syntax elements indicating the quantized transform coefficients. Finally, video encoder 20 may output a bitstream including a sequence of bits that form a representation of an encoded frame and associated data, and the bitstream is stored in storage device 32 or sent to target device 14.

[0079] 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 the video data is generally the inverse 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 samples of the prediction block for the PU of the current CU to corresponding samples of the transform block of the TU of the current CU. After reconstructing the coding block for each CU of the frame, the video decoder 30 may reconstruct the frame.

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

[0081] However, with the ever-improving video data capture technology and more refined video block sizes for retaining details in the 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 both the spatial domain and the temporal domain have similar video data for prediction purposes, but the motion vectors between these neighboring CUs are also similar. Therefore, 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 by exploring the spatial and temporal correlation of the spatially neighboring CUs and / or the temporally co-located CUs, which is also referred to as the "motion vector predictor (MVP)" of the current CU.

[0082] Instead of combining as above Figure 2 The actual motion vector of the current CU determined by the motion estimation unit 42 is encoded into the video bitstream, and the motion vector predictor of the current CU is subtracted from the actual motion vector of the current CU to generate the motion vector difference (MVD) of the current CU. By doing so, the motion vector determined by the motion estimation unit 42 for each CU of the frame does not need to be encoded into the video bitstream, and the amount of data used to represent motion information in the video bitstream can be significantly reduced.

[0083] As in the process of selecting a prediction block in a reference frame during inter-frame prediction of a coding block, both the video encoder 20 and the video decoder 30 need to adopt a set of rules for constructing a motion vector candidate list (also called a "merge list") of the current CU using those potential candidate motion vectors associated with the spatial neighboring CUs and / or the temporal co-located CUs of the current CU, and then selecting a member from the motion vector candidate list as the motion vector predictor of the current CU. By doing so, the motion vector candidate list itself does not need to be sent from the video encoder 20 to the video decoder 30, and the index of the selected motion vector predictor in the motion vector candidate list is sufficient for the video encoder 20 and the video decoder 30 to use the same motion vector predictor in the motion vector candidate list to encode and decode the current CU.

[0084] Cross-component linear model prediction

[0085] In order to reduce cross-component redundancy, a cross-component linear model (CCLM) prediction mode is used in VVC, in which the chrominance samples of the same CU are predicted based on the reconstructed luma samples using the following linear model:

[0086] pred C (i,j)=α·rec L ′(i,j)+ β (3-1)

[0087] where pred C (i,j) represents the predicted chroma sample in CU and rec L (i, j) represents the downsampled reconstructed luma sample of the same CU.

[0088] The CCLM parameters (α and β) are derived using up to four adjacent chroma samples and their corresponding downsampled luma samples. Assuming the current chroma block size is W×H, W' and H' are set to:

[0089] When the LM mode is applied, W'=W, H'=H;

[0090] When the LM-A mode is applied, W'=W+H;

[0091] When the LM-L mode is applied, H'=H+W;

[0092] The adjacent position above is represented as S[0,-1]…S[W'-1,-1], and the adjacent position on the left is represented as S[-1,0]…S[-1,H'-1]. Then the four sample points are selected as:

[0093] When LM mode is applied and both upper and left neighboring samples are available, S[W' / 4,-1], S[3×W' / 4,-1], S[-1,H' / 4], S[-1,3×H' / 4];

[0094] When LM-A mode is applied or only the upper adjacent sample points are available, S[W' / 8,-1], S[3×W' / 8,-1], S[5×W' / 8,-1], S[7×W' / 8,-1];

[0095] When LM-L mode is applied or only the adjacent samples on the left are available, S[-1,H' / 8], S[-1,3×H' / 8], S[-1,5×H' / 8], S[-1,7×H' / 8];

[0096] The four adjacent luma samples at the selected position are downsampled and compared four times to find the two larger values: x 0 A and x 1 A , and two smaller values: x 0 B and x 1 B Their corresponding chrominance sample values ​​are represented by y 0 A ,y 1 A ,y 0 B and 1 B .

[0097] Then x A 、x B ,y A and B is exported as:

[0098] X a =(x 0 A +x 1 A +1)>>1;X b =(x 0 B +x1 B +1)>>1;Y a =(y 0 A +y 1 A +1)>>1;Y b =(y 0 B +y 1 B +1)>>1

[0099] (3-2)

[0100] Finally, the linear model parameters α and β are obtained according to the following equations.

[0101]

[0102] β=Y b -α·X b (3-4)

[0103] Figure 5 An example of left and upper samples of a current block involved in the CCLM mode and the positions of the samples is shown.

[0104] The division operation for calculating the parameter α is implemented using a lookup table. In order to reduce the memory required to store the table, the diff value (the difference between the maximum and minimum values) and the parameter α are represented by exponential notation. For example, diff is approximated using a 4-bit significant part and an exponent. Therefore, the table for 1 / diff is simplified to 16 elements for 16 significant digit values, as shown below:

[0105] DivTable[]={0,7,6,5,5,4,4,3,3,2,2,1,1,1,1,0} (3-5)

[0106] This will have the benefit of reducing the complexity of the calculations as well as the memory size required to store the required tables.

[0107] In addition to being used to calculate linear model coefficients, the upper template and the left template can also be used alternatively for the other two LM modes, called LM_A mode and LM_L mode.

[0108] In LM_T mode, only the upper template is used to calculate the linear model coefficients. To obtain more samples, the upper template is expanded to (W+H) samples. In LM_L mode, only the left template is used to calculate the linear model coefficients. To obtain more samples, the left template is expanded to (H+W) samples.

[0109] In LM_LT mode, the linear model coefficients are calculated using the left template and the upper template.

[0110] To match the chroma sample locations for 4:2:0 video sequences, two types of downsampling filters are applied to the luma samples to achieve a 2 to 1 downsampling ratio in both the horizontal and vertical directions. The choice of downsampling filter is specified by the SPS level flag. The two downsampling filters correspond to "type 0" content and "type 2" content, respectively:

[0111]

[0112] Note that when the upper reference line is at a CTU boundary, only one luma line (common line buffer in intra prediction) is used to make the downsampled luma samples.

[0113] This parameter calculation is performed as part of the decoding process, not just as an encoder search operation. Therefore, no syntax is used to convey the α and β values ​​to the decoder.

[0114] For chroma intra mode encoding and decoding, a total of 8 intra modes are allowed for chroma intra mode encoding and decoding. These modes include five traditional intra modes and three cross-component linear model modes (CCLM, LM_A, and LM_L). The chroma mode signaling and derivation process are shown in Table 1-1. Chroma mode encoding and decoding depends directly on the intra prediction mode of the corresponding luminance block. Since separate block partitioning structures for luminance components and chrominance components are enabled in the I stripe, one chroma block can correspond to multiple luminance blocks. Therefore, for the chroma DM mode, the intra prediction mode of the corresponding luminance block covering the center position of the current chroma block is directly inherited.

[0115] Table 1-1 Chroma prediction modes derived from luma mode when CCLM is enabled

[0116]

[0117] Regardless of the value of sps_cclm_enabled_flag, a single binarization table is used, as shown in Table 1-2.

[0118] Table 1-2 Unified binarization table for chroma prediction mode

[0119]

[0120] In Table 1-2, the first binary bit indicates whether it is normal mode (0) or LM mode (1). If it is LM mode, the next binary bit indicates whether it is LM_CHROMA (0). If it is not LM_CHROMA, the next 1 binary bit indicates whether it is LM_L (0) or LM_A (1). For this case, when sps_cclm_enabled_flag is 0, the first binary bit of the binarization table for the corresponding intra_chroma_pred_mode can be discarded before entropy coding. Or, in other words, the first binary bit is inferred to be 0 and therefore not coded. This single binarization table is used for the case where sps_cclm_enabled_flag is equal to 0 and 1. The first two binary bits in Table 1-2 are context coded with their own context model, and the remaining binary bits are bypass coded.

[0121] In addition, to reduce luma-chroma delay in dual trees, when a 64×64 luma CT node is split with Not Split (and ISP is not used for 64×64 CU) or QT, chroma CUs in 32×32 / 32×16 chroma CT nodes are allowed to use CCLM as follows:

[0122] If a 32x32 chroma node is not partitioned or is split with a QT partition, all chroma CUs in the 32x32 node may use CCLM.

[0123] If a 32x32 chroma node is split with horizontal BT, and the 32x16 child node is not split or uses vertical BT split, then all chroma CUs in the 32x16 chroma node may use CCLM.

[0124] Under all other luma and chroma coding tree partitioning conditions, CCLM is not allowed for chroma CUs.

[0125] During ECM development, the simplified derivation (min-max approximation) of α and β is removed. Instead, the model parameters α and β are derived using a linear least squares solution between the causal reconstructed data of the downsampled luma samples and the causal chroma samples.

[0126]

[0127]

[0128] Among them, Rec C (i) and Rec' L (i) indicates the reconstructed chroma samples and downsampled luminance samples around the target block, and I indicates the total number of samples of neighboring data.

[0129] Multi-model linear model prediction

[0130] In ECM-1.0, a multi-model LM (MMLM) prediction mode is proposed, in which the chrominance samples of the same CU are predicted based on the reconstructed luminance samples by using the following two linear models:

[0131]

[0132] where pred C (i, j) represents the predicted chroma sample in the CU, and rec L ′(i,j) represents the downsampled reconstructed luma sample of the same CU. Threshold is calculated as the average value of adjacent reconstructed luma samples. Figure 6 An example of classifying adjacent samples into two groups based on Threshold is shown. For each group, parameters αi and βi (where i is equal to 1 and 2, respectively) are derived from the linear relationship between the luminance and chrominance values ​​of two samples, which are the minimum luminance samples A(X) in the group. A ,Y A ) and the maximum brightness sample B(X B ,Y B ). Here, X A , Y A is the x-coordinate value (i.e., brightness value) and y-coordinate value (i.e., chrominance value) of sample point A, and X B , Y B are the x-coordinate value and y-coordinate value of sample point B. The linear model parameters α and β are obtained according to the following equations.

[0133]

[0134] β=yyA-αXA

[0135] This method is also called the min-max method. The division in the above equation can be avoided and replaced with multiplication and shift.

[0136] For coding blocks with a square shape, the above two equations are directly applied. For non-square coding blocks, the neighboring samples of the longer boundary are first subsampled to have the same number of samples as the shorter boundary.

[0137] In addition to the scenario where the upper template and the left template are used together to calculate the linear model coefficients, the two templates can also be used alternatively in the other two MMLM modes, referred to as MMLM_A and MMLM_L modes.

[0138] In MMLM_A mode, only pixel samples in the upper template are used to calculate the linear model coefficients. To obtain more samples, the upper template is expanded to a size of (W+W). In MMLM_L mode, only pixel samples in the left template are used to calculate the linear model coefficients. To obtain more samples, the left template is expanded to a size of (H+H).

[0139] Note that when the upper reference line is at a CTU boundary, only one luma line (which is stored in the line buffer for intra prediction) is used to make the downsampled luma samples.

[0140] For chroma intra mode coding, a total of 11 intra modes are allowed for chroma intra mode coding. These modes include five traditional intra modes and six cross-component linear model modes (CCLM, LM_A, LM_L, MMLM, MMLM_A, and MMLM_L). The chroma mode signaling and derivation process are shown in Table 3. The chroma mode coding and decoding depends directly on the intra prediction mode of the corresponding luminance block. Since the separate block partitioning structure for the luminance component and the chrominance component is enabled in the I stripe, a chroma block can correspond to multiple luminance blocks. Therefore, for the chroma DM mode, the intra prediction mode of the corresponding luminance block covering the center position of the current chroma block is directly inherited.

[0141] Table 3. Chroma prediction mode derived from luma mode when MMLM is enabled

[0142]

[0143] Adaptively enable LM and MMLM for prediction

[0144] The MMLM and LM modes can also be used together in an adaptive manner. For MMLM, the two linear models are as follows:

[0145]

[0146] where pred C (i,j) represents the predicted chroma sample in CU and rec L ′(i,j) represents the downsampled reconstructed luma sample of the same CU. Threshold can be simply determined based on the luma average and chroma average as well as their minimum and maximum values. Figure 7 An example of classifying adjacent samples into two groups based on the inflection point T indicated by the arrow is shown. The linear model parameters α1 and β1 are derived from the straight-line relationship between the luminance value and the chrominance value from the two samples, which are the minimum luminance sample A(X A ,Y A ) and Threshold(X T , Y TThe linear model parameters α2 and β2 are derived from the linear relationship between the luminance and chrominance values ​​from two sample points, which are the maximum luminance sample point B(X B ,Y B ) and Threshold(X T ,Y T ). Here, X A , Y A is the x-coordinate value (i.e., brightness value) and y-coordinate value (i.e., chrominance value) of sample point A, and X B , Y B is the x-coordinate value and y-coordinate value of sample point B. The linear model parameter α for each group i and β i (where i is equal to 1 and 2 respectively) is obtained according to the following equation.

[0147]

[0148] β2=Y T -α2X T

[0149] For coding blocks with a square shape, the above equation is directly applied. For non-square coding blocks, the neighboring samples of the longer boundary are first subsampled to have the same number of samples as the shorter boundary.

[0150] In addition to the scenario where the upper template and the left template are used together to determine the linear model coefficients, the two templates can also be used alternatively for two other MMLM modes, namely MMLM_A and MMLM_L modes.

[0151] In MMLM_A mode, only pixel samples in the upper template are used to calculate the linear model coefficients. To obtain more samples, the upper template is expanded to a size of (W+W). In MMLM_L mode, only pixel samples in the left template are used to calculate the linear model coefficients. To obtain more samples, the left template is expanded to a size of (H+H).

[0152] Note that when the upper reference line is at a CTU boundary, only one luma line (which is stored in the line buffer for intra prediction) is used to make the downsampled luma samples.

[0153] For chroma intra mode codec, there is a conditional check for selecting LM mode (CCLM, LM_A and LM_L) or multi-model LM mode (MMLM, MMLM_A and MMLM_L). The conditional check is as follows:

[0154]

[0155] Where BlkSizeThresLM Indicates the minimum block size for LM mode and BlkSizeThres MM represents the minimum block size of the MMLM mode. The symbol d represents a predetermined threshold. In one example, d may take a value of 0. In another example, d may take a value of 8.

[0156] For chroma intra mode encoding and decoding, a total of 8 intra modes are allowed for chroma intra mode encoding and decoding. These modes include five traditional intra modes and three cross-component linear model modes. The chroma mode signaling and derivation process are shown in Table 1-1. It is worth noting that for a given CU, if it is encoded and decoded in linear model mode, whether it is a conventional single model LM mode or an MMLM mode is determined based on the above-mentioned conditional check. Unlike the case shown in Table 3, there is no separate MMLM mode to be signaled. Chroma mode encoding and decoding depends directly on the intra prediction mode of the corresponding luminance block. Since separate block partitioning structures for luminance components and chrominance components are enabled in the I stripe, one chroma block can correspond to multiple luminance blocks. Therefore, for the chroma DM mode, the intra prediction mode of the corresponding luminance block covering the center position of the current chroma block is directly inherited.

[0157] Decoder-side Intra Mode Derivation (DIMD)

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

[0159] In order to derive the intra prediction mode for a block, we must first select a set of neighboring pixels for which we will perform gradient analysis. For normative purposes, these pixels should be in the decoded / reconstructed pixel pool. Figure 8As shown in , we select a template that surrounds the current block T pixels to the left and T pixels up. Next, we perform a gradient analysis on the pixels of the template. This allows the determination of the principal direction for the template, which we assume (and this is the core premise of our method) has a high probability of being the same as the principal direction of the current block. Therefore, we use a simple 3×3 Sobel gradient filter defined by the following matrix that will be convolved with the template:

[0160]

[0161] For each pixel of the template, we multiply each of these two matrices point-by-point with a 3×3 window centered on the current pixel and consisting of the 8 direct neighbors of the current pixel, and sum the results. Thus, we obtain two values ​​Gx corresponding to the gradient at the current pixel in the horizontal direction and the vertical direction, respectively (from the gradient with M x multiplied) and Gy (from M y multiply).

[0162] Fig. 9 The convolution process is shown. The blue pixel is the current pixel. The red pixels (including blue) are pixels that can be gradient analyzed. The gray pixels are pixels that cannot be gradient analyzed due to the lack of some neighbors. The purple pixels are available (reconstructed) pixels outside the template under consideration, which are used for gradient analysis of red pixels. In the case where the purple pixel is not available (for example, because the block is too close to the boundary of the picture), the gradient analysis of all red pixels using the purple pixel is not performed. For each red pixel, we use Gx and Gy to calculate the strength (G) and direction (O) of the gradient, as follows:

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

[0164] The direction of the gradient is then converted to an intra-frame angular prediction mode, which is used to index the histogram (initialized to zero first). The histogram values ​​in this intra-frame angular mode are increased by G. Once all red pixels in the template have been processed, the histogram will contain the cumulative value of the gradient strength for each intra-frame angular mode. 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 that makes up the template is flat), 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) bins are combined with the plane mode. Prediction fusion is applied as a weighted average of the above three predictors. For this purpose, the weight of the plane is fixed to 21 / 64 (~1 / 3). The remaining weight 43 / 64 (~2 / 3) is then shared between the two HoG IPMs in proportion to the magnitude of their HoG bins. Fig.10 The process was visualized.

[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.11 The sum of absolute transformed differences (SATD) between the predicted samples and the reconstructed samples of the template area shown, and the intra modes of the first two modes with the smallest SATD cost are selected, and then they are merged with the weights, and this weighted intra prediction is used to encode and decode the current CU.

[0169] The cost of the two selected patterns is compared to the threshold. 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 weights of the modes are calculated according to their SATD costs as follows:

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

[0174] weight2=1-weight1.

[0175] Although CCLM / MMLM / DIMD / TIMD modes can improve intra prediction efficiency, there is still room for further improvement of their performance. In addition, for existing DIMD / TIMD designs, they are only used as luma intra prediction modes. However, the luma component usually retains rich textures, and the luma samples can be highly correlated with the chroma samples. This inter-sample correlation (AC correlation) can benefit the multi-hypothesis-based prediction of CCLM / MMLM / DIMD / TIMD modes and can bring additional coding efficiency.

[0176] Multi-hypothesis-based Chroma Prediction (MCP)

[0177] The focus of the present invention provides a method and apparatus for improving the coding efficiency of chroma intra prediction, which includes a decoder-side derived chroma intra prediction mode (TIMD chroma) and a fusion of non-LM mode and LM mode (i.e., CCLM and MMLM), which is called multi-hypothesis based chroma prediction (MCP). The "Combination" section provides an example of the proposed combination. The process of generating LM predicted chroma samples is the same as CCLM / MMLM (original least squares method, simplified minimum-maximum method, etc.). The method of generating non-LM mode is provided in the "Non-LM Mode" section.

[0178] Please note that although the existing CCLM design in the VVC standard is used as the basic CCLM method in the following description, for those skilled in the art of video coding, the proposed multi-hypothesis-based method described in this disclosure can also be applied to other prediction codec tools with similar design spirit. For example, for the prediction of chrominance from luma (CfL) in the AV1 standard, the proposed MCP can also be applied by adding other predictions to the final prediction.

[0179] Note that Y / Cb / Cr can also be expressed as Y / U / V in the video coding area.

[0180] Note that if the video is in RGB format, the proposed MCP can also be applied by simply mapping the YUV symbols to GBR, for example in the following paragraphs.

[0181] Note that the drawings in this disclosure can be combined with all examples mentioned in this disclosure.

[0182] Note that the disclosed methods can be applied independently or in combination.

[0183] Fig.131 is a block diagram illustrating a video decoding method according to some embodiments of the present disclosure. In step 1302, the decoder obtains a nonlinear model (non-LM) mode and a linear model (LM) mode for a current chroma block, wherein the LM mode includes a cross-component linear model (CCLM) mode and a multi-model linear model (MMLM) mode. In step 1304, the decoder then combines the non-LM mode and the LM mode for multi-hypothesis-based chroma prediction (MCP) for the current chroma block.

[0184] Fig.14 1 is a block diagram illustrating a video encoding method according to some embodiments of the present disclosure. In step 1402, the encoder obtains a nonlinear model (non-LM) mode and a linear model (LM) mode for a current chroma block, wherein the LM mode includes a cross-component linear model (CCLM) mode and a multi-model linear model (MMLM) mode. In step 1404, the encoder then combines the non-LM mode and the LM mode for multi-hypothesis-based chroma prediction (MCP) for the current chroma block.

[0185] Non-LM mode

[0186] Non-LM mode M0: TIMD chroma mode.

[0187] TIMD chroma mode proposes to extend template-based intra mode derivation to intra chroma codec. Similar to TIMD for luma, a template consisting of neighboring samples of the current chroma block is also used to derive the chroma intra prediction mode. The derived TIMD chroma mode can be a regular intra prediction mode (within the range of 67 modes or 134 modes).

[0188] Non-LM mode M1: cross-component TIMD mode.

[0189] The cross-component TIMD chroma mode uses the TIMD derivation method to derive the chroma intra prediction mode of the current block based on the co-located reconstructed luma samples. Specifically, the template (i.e., Fig.12 The SATD between the predicted samples and the reconstructed samples of the template example shown in is then used to perform chroma intra prediction of the current chroma block.

[0190] Note that if the use of cross-component TIMD mode is indicated in the bitstream, when the intra-prediction mode derived from the cross-component TIMD mode is the same as the intra-prediction mode derived from the DM mode, the intra-prediction mode with the second smallest SATD is used as the cross-component TIMD mode.

[0191] Non-LM mode M2: DM mode.

[0192] combination

[0193] Combination C0: Combined planar mode and LM mode predictions.

[0194] (1) Generate pred through plane mode C (i,j), where pred C (i,j) represents the predicted chrominance sample

[0195] (2) Generate lmpred through CCLM / MMLM mode C (i,j), where lmpred C (i,j) represents the predicted chrominance sample

[0196] (3) Calculate the weight of each mode, weight1, weight2 = 1-weight1

[0197] (4) Through pred C (i,j)×weight1+lmpred C (i,j)×weight2 generates the final predictor

[0198] Combination C1: Combined angular mode and LM mode predictions.

[0199] (1) Generate apred by angle mode C (i,j), where apred C (i,j) represents the predicted chrominance sample

[0200] (2) Generate lmpred through CCLM / MMLM mode C (i,j), where lmpred C (i,j) represents the predicted chrominance sample

[0201] (3) Calculate the weight of each mode, weight1, weight2 = 1-weight1

[0202] (4) Through apred C (i,j)×weight1+lmpred C (i,j)×weight2 generates the final predictor

[0203] For example,

[0204] (1) Generate apred by angle mode C (i,j), where apred C (i,j) represents the predicted chrominance sample

[0205] (2) Generate lmpred through CCLM / MMLM mode C(i,j), where lmpred C (i,j) represents the predicted chrominance sample

[0206] (3) Calculate the weight of each mode, weight1 = 1 / 2, weight2 = 1 / 2

[0207] (4) Through apred C (i,j)×weight1+lmpred C (i,j)×weight2 generates the final predictor

[0208] Combination C3: Combined TIMD mode and LM mode prediction.

[0209] For example,

[0210] (1) Generate tpred through TIMD mode (using M0 or M1) C (i,j), where tpred C (i,j) represents the predicted chrominance sample

[0211] (2) Generate lmpred through CCLM / MMLM mode C (i,j), where lmpred C (i,j) represents the predicted chrominance sample

[0212] (3) Calculate the weight of each mode, weight1, weight2 = 1-weight1

[0213] (4) Through tpred C (i,j)×weight1+lmpred C (i,j)×weight2 generates the final predictor

[0214] Combination C4: Combined DIMD mode and LM mode prediction.

[0215] For example,

[0216] (1) Generate dpred through DIMD mode C (i,j), where dpred C (i,j) represents the predicted chrominance sample

[0217] (2) Generate lmpred through CCLM / MMLM mode C (i,j), where lmpred C (i,j) represents the predicted chrominance sample

[0218] (3) Calculate the weight of each mode, weight1, weight2 = 1-weight1

[0219] (4) Through dpred C (i,j)×weight1+lmpred C (i,j)×weight2 generates the final predictor

[0220] Combination C5: Combined DM and LM mode prediction.

[0221] For example,

[0222] (1) Generate dpred through DM mode C (i,j), where dpred C (i,j) represents the predicted chrominance sample

[0223] (2) Generate lmpred through CCLM / MMLM mode C (i,j), where lmpred C (i,j) represents the predicted chrominance sample

[0224] (3) Calculate the weight of each mode, weight1, weight2 = 1-weight1

[0225] (4) Through dpred C (i,j)×weight1+lmpred C (i,j)×weight2 generates the final predictor

[0226] Fig.15 A computing environment 1610 is shown coupled to a user interface 1650. The computing environment 1610 may be part of a data processing server. The computing environment 1610 includes a processor 1620, a memory 1630, and an input / output (I / O) interface 1640.

[0227] The processor 1620 generally controls the overall operation of the computing environment 1610, such as operations associated with display, data acquisition, data communication, and image processing. The processor 1620 may include one or more processors to execute instructions to perform all or some steps in the above method. In addition, the processor 1620 may include one or more modules that facilitate interaction between the processor 1620 and other components. The processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, a graphics processing unit (GPU), etc.

[0228] The memory 1630 is configured to store various types of data to support the operation of the computing environment 1610. The memory 1630 may include predetermined software 1632. Examples of such data include instructions for any application or method operating on the computing environment 1610, video data sets, image data, etc. The memory 1630 may be implemented by using any type of volatile or non-volatile memory device or a 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.

[0229] I / O interface 1640 provides an interface between processor 1620 and peripheral interface modules such as a 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 1640 may be coupled to an encoder and a decoder.

[0230] In an embodiment, a non-transitory computer-readable storage medium is also provided, which includes multiple programs, for example, included in the memory 1630, which can be executed by the processor 1620 in the computing environment 1610 to perform the above method. In one example, the multiple programs can be executed by the processor 1620 in the computing environment 1610 to receive (for example, from Figure 2 The video encoder 20 in the computing environment 1610 receives a bitstream or data stream including 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 1620 in the computing environment 1610 to perform the above-mentioned decoding method according to the received bitstream or data stream. In another example, multiple programs can be executed by the processor 1620 in the computing environment 1610 to perform the above-mentioned encoding method, encode the video information (e.g., video blocks representing video frames and / or one or more associated syntax elements, etc.) into a bitstream or data stream, and can also be executed by the processor 1620 in the computing environment 1610 to send a bitstream or data stream (e.g., to a Figure 3 Optionally, a non-transitory computer-readable storage medium may store therein a bit stream or a data stream, the bit stream or the data stream comprising a video decoder 30 in the encoder (e.g., Figure 2 The video encoder 20 in FIG. 1 generates a video signal for a decoder (eg, Figure 3 The video decoder 30 in the video decoder 30) in decoding the video data (e.g., video blocks representing encoded video frames and / or associated one or more syntax elements, etc.). The non-transitory computer-readable storage medium can 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.

[0231] In an embodiment, a computing device is also provided, which includes: one or more processors (e.g., processor 1620); and a non-transitory computer-readable storage medium or memory 1630 storing multiple programs executable by the one or more processors, wherein the one or more processors are configured to perform the above-mentioned method when executing the multiple programs.

[0232] In an embodiment, a computer program product is also provided, which includes multiple programs in memory 1630, for example, and the multiple programs can be executed by processor 1620 in computing environment 1610 to perform the above method. For example, the computer program product may include a non-transitory computer-readable storage medium.

[0233] In an embodiment, the computing environment 1610 may be implemented using one or more ASICs, DSPs, digital signal processing devices (DSPDs), programmable logic devices (PLDs), FPGAs, GPUs, controllers, microcontrollers, microprocessors, or other electronic components for executing the above methods.

[0234] The description of the present disclosure has been presented for purposes of illustration and is not intended to be exhaustive or limited to the present disclosure. Many modifications, variations, and alternative embodiments will be apparent to one of ordinary skill in the art having the benefit of the teachings presented in the foregoing description and the associated drawings.

[0235] Unless otherwise specifically stated, the order of the steps of the method according to the present disclosure is intended to be illustrative only, and the steps of the method according to the present disclosure are not limited to the order specifically described above, but may be changed according to actual conditions. In addition, at least one step of the method according to the present disclosure may be adjusted, combined or deleted according to actual requirements.

[0236] The examples are chosen and described in order to explain the principles of the present disclosure and to enable other persons skilled in the art to understand the various embodiments of the present disclosure and to best utilize the basic principles and various embodiments with various modifications suitable for the specific use contemplated. Therefore, it should be understood that the scope of the present disclosure is not limited to the specific examples of the disclosed embodiments, and modifications and other embodiments are intended to be included within the scope of the present disclosure.

Claims

1. A method for video decoding, comprising: Obtaining, by a decoder, a non-linear model (non-LM) mode and a linear model (LM) mode for a current chroma block, wherein the LM mode comprises a cross-component linear model (CCLM) mode and a multi-model linear model (MMLM) mode; as well as The non-LM mode is combined with the LM mode by the decoder for multi-hypothesis based chroma prediction (MCP) for the current chroma block.

2. The method for video decoding according to claim 1, wherein obtaining the non-LM mode further comprises: A template-based intra mode derivation (TIMD) chroma mode is obtained as the non-LM mode for the current chroma block, wherein the TIMD chroma mode is derived using a template including neighboring samples of the current chroma block.

3. The method for video decoding according to claim 1, wherein obtaining the non-LM mode further comprises: A cross-component TIMD mode is obtained as the non-LM mode for the current chroma block, wherein the cross-component TIMD mode is derived based on the co-located reconstructed luma samples.

4. The method for video decoding according to claim 3, further comprising: Calculate the sum of absolute transformation differences (SATD) between the predicted and reconstructed samples of the template; as well as An intra prediction mode having a minimum SATD is obtained as the cross-component TIMD mode for performing chroma intra prediction of the current chroma block.

5. The method for video decoding according to claim 4, further comprising: In response to determining that the intra prediction mode obtained from the cross-component TIMD mode is the same as the intra prediction mode derived from the derived mode (DM) mode, an intra prediction mode having a second minimum SATD is obtained as the cross-component TIMD mode for performing chroma intra prediction of the current chroma block.

6. The method for video decoding according to claim 1, wherein obtaining the non-LM mode further comprises: A derived mode DM mode is obtained as the non-LM mode for the current chrominance block, wherein the DM mode is derived based on the co-located reconstructed luma samples.

7. The method for video decoding according to claim 1, further comprising: Obtaining a first predicted chrominance sample point by a planar mode; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

8. The method for video decoding according to claim 1, further comprising: Obtaining a first predicted chrominance sample point through an angle mode; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

9. The method for video decoding according to claim 1, further comprising: Obtaining a first predicted chrominance sample by using a template-based intra mode derivation (TIMD) mode; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

10. The method for video decoding according to claim 1, further comprising: Obtaining a first predicted chroma sample by a decoder-side intra mode derivation (DIMD) mode; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

11. The method for video decoding according to claim 1, further comprising: Obtaining a first predicted chrominance sample by deriving a mode DM; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

12. A method for video encoding, comprising: Obtaining, by an encoder, a non-linear model (non-LM) mode and a linear model (LM) mode for a current chroma block, wherein the LM mode comprises a cross-component linear model (CCLM) mode and a multi-model linear model (MMLM) mode; as well as The non-LM mode is combined with the LM mode by the encoder for multi-hypothesis based chroma prediction (MCP) for the current chroma block.

13. The method for video encoding according to claim 12, wherein obtaining the non-LM mode further comprises: A template-based intra mode derivation (TIMD) chroma mode is obtained as the non-LM mode for the current chroma block, wherein the TIMD chroma mode is derived using a template including neighboring samples of the current chroma block.

14. The method for video encoding according to claim 12, wherein obtaining the non-LM mode further comprises: A cross-component TIMD mode is obtained as the non-LM mode for the current chroma block, wherein the cross-component TIMD mode is derived based on the co-located reconstructed luma samples.

15. The method for video encoding according to claim 14, further comprising: Calculate the sum of absolute transformation differences (SATD) between the predicted and reconstructed samples of the template; as well as An intra prediction mode having a minimum SATD is obtained as the cross-component TIMD mode for performing chroma intra prediction of the current chroma block.

16. The method for video encoding according to claim 15, further comprising: In response to determining that the intra prediction mode obtained from the cross-component TIMD mode is the same as the intra prediction mode derived from the derived mode (DM) mode, an intra prediction mode having a second minimum SATD is obtained as the cross-component TIMD mode for performing chroma intra prediction of the current chroma block.

17. The method for video encoding according to claim 12, wherein obtaining the non-LM mode further comprises: A derived mode (DM) mode is obtained as the non-LM mode for the current chroma block, wherein the DM mode is derived based on co-located reconstructed luma samples.

18. The method for video encoding according to claim 12, further comprising: Obtaining a first predicted chrominance sample point by a planar mode; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

19. The method for video encoding according to claim 12, further comprising: Obtaining a first predicted chrominance sample point through an angle mode; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

20. The method for video encoding according to claim 12, further comprising: Obtaining a first predicted chrominance sample by using a template-based intra mode derivation (TIMD) mode; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

21. The method for video encoding according to claim 12, further comprising: Obtaining a first predicted chroma sample by a decoder-side intra mode derivation (DIMD) mode; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

22. The method for video encoding according to claim 12, further comprising: Obtaining a first predicted chrominance sample by deriving a mode DM; Obtain a second predicted chrominance sample point by using the CCLM mode or the MMLM mode; as well as A final prediction factor for the current chrominance block is obtained by calculating a weighted average of the first predicted chrominance samples and the second predicted chrominance samples.

23. An apparatus comprising: one or more processors; as well as a memory configured to store instructions executable by the one or more processors; Wherein the one or more processors are configured to perform the method according to any one of claims 1-22 when executing the instructions.

24. 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 according to any one of claims 1-11 based on the bit stream.

25. 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 according to any one of claims 12 to 22 to encode a current video block into a bitstream and send the bitstream.

26. A non-transitory computer-readable storage medium having stored thereon a bit stream generated by the method for video encoding according to claims 12-22.

Citation Information

Cited By

  • Encoding method, decoding method, encoder, decoder, and storage medium

    WO2026097291A1