Improved intra prediction fusion

Through intra prediction fusion technology, the weights of multiple intra prediction modes are derived, which solves the problem of low intra prediction fusion efficiency in the existing technology and improves encoding and decoding efficiency and prediction accuracy.

CN118633279APending Publication Date: 2024-09-10TENCENT AMERICA LLC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202380019452.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-10-18
Filing Date
2023-10-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing video coding and decoding technology is difficult to effectively improve coding and decoding efficiency during the intra-frame prediction fusion process. Especially in the fusion of multiple intra-frame prediction modes, the inefficient design of weight derivation results in low coding and decoding efficiency.

Method used

By deriving the weights of multiple intra prediction modes, intra prediction fusion technology is used, including DIMD mode and conventional intra prediction mode, TIMD mode and conventional intra prediction mode, SGPM and conventional intra prediction mode, CCLM/CCCM/MMLM Fusion with conventional intra prediction modes to generate the final intra prediction block.

Benefits of technology

The fusion encoding and decoding efficiency of multiple intra prediction modes is improved, and the prediction accuracy and encoding and decoding performance are improved through weighting processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118633279A_ABST
    Figure CN118633279A_ABST
Patent Text Reader

Abstract

Aspects of the present disclosure include methods and apparatus for video coding. One of the apparatuses includes processing circuitry that receives a current block in a code stream. The current block is predicted with an intra prediction fusion including a plurality of candidate intra prediction modes. The processing circuitry determines, for each of a plurality of candidate intra prediction modes, a respective candidate prediction value for a sample in the current block. The processing circuitry derives weights for a respective plurality of candidate intra prediction modes based on intra prediction modes used to encode neighboring blocks of the current block. The processing circuitry predicts a sample in the current block by a weighted sum of candidate prediction values associated with the plurality of candidate intra prediction modes according to the derived weights.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the priority benefit of U.S. Patent Application No. 18 / 381,415, “Modified Intra Prediction Fusion,” filed on October 18, 2023, which claims the priority benefit of U.S. Provisional Application No. 63 / 417,650, “Modified Intra Prediction Fusion,” filed on October 19, 2022, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This disclosure describes embodiments generally related to video coding. Background Art

[0003] The background description provided herein is intended to generally present the context of the present disclosure. To the extent that the work of the presently named inventors described in the background section and in various aspects of this specification is performed, it is not intended to be prior art at the time of filing of the present disclosure, and it is never expressly or impliedly admitted to be prior art of the present disclosure.

[0004] Image / video compression can help transmit image / video data with minimal quality degradation on different devices, storage, and networks. In some examples, video codec techniques can compress video based on spatial and temporal redundancy. In an example, a video codec can use a technique called intra-frame prediction that can compress images based on spatial redundancy. For example, intra-frame prediction can use reference data from the current picture being reconstructed for sample prediction. In another example, a video codec can use a technique called inter-frame prediction that can compress images based on temporal redundancy. For example, inter-frame prediction can predict samples in the current picture from a previously reconstructed picture using motion compensation. Motion compensation can be indicated by a motion vector (MV). Summary of the invention

[0005] Aspects of the present disclosure include methods and apparatus for video encoding / decoding. In some examples, an apparatus for video decoding includes a processing circuit. The processing circuit receives a current block in a code stream. The current block is predicted using multiple candidate intra-frame prediction modes. For example, the current block is predicted using an intra-frame prediction fusion including multiple candidate intra-frame prediction modes. The processing circuit determines individual candidate prediction values ​​for samples in the current block for each of the multiple candidate intra-frame prediction modes, and derives weights of the corresponding multiple candidate intra-frame prediction modes based on the intra-frame prediction mode used to encode neighboring blocks of the current block. The processing circuit predicts the samples in the current block by a weighted sum of the candidate prediction values ​​associated with the multiple candidate intra-frame prediction modes based on the derived weights.

[0006] In an example, the processing circuit determines a frequency of applying a plurality of candidate intra prediction modes to encode a neighboring block based on an intra prediction mode used to encode the neighboring block, and derives a weight of one of the plurality of candidate intra prediction modes based on the determined frequency.

[0007] In an example, the processing circuit derives a horizontal weight for one of a plurality of candidate intra prediction modes, derives a vertical weight for one of a plurality of candidate intra prediction modes, and derives a weight for one of a plurality of candidate intra prediction modes based on the derived horizontal weight and the derived vertical weight.

[0008] In an example, the processing circuit determines a frequency of applying one of a plurality of candidate intra-frame prediction modes to encode a left-neighboring block among neighboring blocks based on one or more of the intra-frame prediction modes used to encode the left-neighboring block, and derives a horizontal weight of one of the plurality of candidate intra-frame prediction modes based on the determined frequency.

[0009] In an example, the processing circuit determines a frequency of applying one of a plurality of candidate intra-prediction modes to encode a top-neighboring block among neighboring blocks based on one or more of the intra-prediction modes used to encode the top-neighboring block, and derives a vertical weight of one of the plurality of candidate intra-prediction modes based on the determined frequency.

[0010] In the example, the processing circuit derives a first weight of a horizontal weight and a second weight of a vertical weight based on the relative coordinates of the sample relative to the coordinates of the upper left corner in the current block, and derives a weight of one of a plurality of candidate intra-prediction modes based on a weighted sum of the derived horizontal weight and the derived vertical weight using the first weight and the second weight, respectively.

[0011] In an example, the processing circuitry derives a weight for one of the plurality of candidate intra-prediction modes based on a bilinear interpolation of the horizontal weight, the vertical weight, the default horizontal weight, and the default vertical weight.

[0012] In an example, multiple candidate intra-frame prediction modes include one or more of a DC mode, a planar mode, an intra-frame directional prediction mode, a decoder-side intra-frame mode derivation (DIMD) mode, a template-based intra-frame mode derivation (TIMD) mode, a cross-component linear model (CCLM), a convolutional cross-component model (CCCM), and a multi-model linear mode (MMLM).

[0013] In an example, the processing circuitry derives weights of the corresponding plurality of candidate intra prediction modes based on neighboring reconstructed samples of the current block, the neighboring reconstructed samples comprising reconstructed samples within at least one row of the current block.

[0014] In an example, the processing circuit calculates a histogram of edge directions of the current block based on neighboring reconstructed samples of the current block. The histogram of edge directions indicates respective frequencies of edge directions. The processing circuit derives a weight of one of a plurality of candidate intra-frame prediction modes based on the frequency of one of the edge directions. One of the plurality of candidate intra-frame prediction modes is associated with one of the edge directions.

[0015] In an example, the processing circuit calculates template matching costs between a current template including neighboring reconstructed samples of a current block and respective ones of the current templates indicated by a plurality of candidate intra prediction modes, and derives weights of the plurality of candidate intra prediction modes based on the respective template matching costs.

[0016] In an example, the processing circuit calculates a histogram of left edge directions of the current block based on left adjacent reconstructed samples of the current block. The histogram of left edge directions indicates respective frequencies of left edge directions. The processing circuit derives a horizontal weight of one of a plurality of candidate intra prediction modes based on the frequency of one of the left edge directions. One of the plurality of candidate intra prediction modes is associated with one of the left edge directions.

[0017] In an example, the processing circuit calculates a histogram of top edge directions of the current block based on top adjacent reconstructed samples of the adjacent reconstructed samples of the current block. The histogram of top edge directions indicates respective frequencies of the top edge directions. The processing circuit derives a vertical weight of one of a plurality of candidate intra-frame prediction modes based on the frequency of one of the top edge directions. One of the plurality of candidate intra-frame prediction modes is associated with one of the top edge directions.

[0018] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions that, when executed by a computer, cause the computer to perform a method for video decoding / encoding. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Further features, properties, and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which:

[0020] Figure 1 is a schematic diagram of an exemplary block diagram of a communication system (100).

[0021] Figure 2 is a schematic diagram of an exemplary block diagram of a decoder.

[0022] Figure 3 is a schematic diagram of an exemplary block diagram of an encoder.

[0023] Figure 4 An intra prediction mode according to an embodiment of the present disclosure is shown.

[0024] Figure 5 An intra prediction mode according to an embodiment of the present disclosure is shown.

[0025] Figure 6 An example of 4 reference lines 0 to 3 adjacent to a coding block unit according to an embodiment of the present disclosure is shown.

[0026] Figure 7 An example of template-based intra mode derivation (TIMD) is shown.

[0027] Figure 8 An example of decoder-side intra mode derivation (DIMD) is shown.

[0028] Fig. 9 An example of determining weights based on horizontal weights and vertical weights is shown.

[0029] Fig.10 A flowchart outlining a process according to some embodiments of the present disclosure is shown.

[0030] Fig.11 A flow chart outlining another process according to some embodiments of the present disclosure is shown.

[0031] Fig.12 A flowchart outlining a process according to some embodiments of the present disclosure is shown.

[0032] Fig.13 A flow chart outlining another process according to some embodiments of the present disclosure is shown.

[0033] Fig.14 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION

[0034] Figure 1 A block diagram of a video processing system (100) in some examples is shown. The video processing system (100) is an example of an application of the disclosed subject matter, a video encoder and a video decoder in a streaming environment. The disclosed subject matter can be equally applicable to other video-enabled applications including, for example, video conferencing, digital television, streaming services, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.

[0035] The video processing system (100) includes an acquisition subsystem (113), which may include a video source (101), such as a digital camera, which creates, for example, an uncompressed video picture stream (102). In an embodiment, the video picture stream (102) includes samples captured by the digital camera. Compared to the encoded video data (104) (or the encoded video bitstream), the video picture stream (102) is depicted as a thick line to emphasize the high data volume of the video picture stream, and the video picture stream (102) can be processed by an electronic device (120), which includes a video encoder (103) coupled to the video source (101). The video encoder (103) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. Compared to the video picture stream (102), the encoded video data (104) (or the encoded video bitstream (104)) is depicted as a thin line to emphasize the lower amount of data of the encoded video data (104) (or the encoded video bitstream (104)), which can be stored on the streaming server (105) for future use. One or more streaming client subsystems, such as Figure 1 A client subsystem (106) and a client subsystem (108) in a streaming server (105) may access a streaming server (105) to retrieve a copy (107) and a copy (109) of encoded video data (104). The client subsystem (106) may include, for example, a video decoder (110) in an electronic device (130). The video decoder (110) decodes the incoming copy (107) of the encoded video data and generates an output video picture stream (111) that can be presented on a display (112) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (104), the video data (107), and the video data (109) (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T H.265. In an embodiment, the video codec standard under development is informally referred to as Versatile Video Coding (VVC), and the disclosed subject matter may be used in the context of the VVC standard.

[0036] It should be noted that the electronic device (120) and the electronic device (130) may include other components (not shown). For example, the electronic device (120) may include a video decoder (not shown), and the electronic device (130) may also include a video encoder (not shown).

[0037] Figure 2An exemplary block diagram of a video decoder (210) is shown. The video decoder (210) may be disposed in an electronic device (230). The electronic device (230) may include a receiver (231) (eg, a receiving circuit). The video decoder (210) may be used to replace Figure 1 A video decoder (110) of an embodiment.

[0038] The receiver (231) may receive one or more encoded video sequences, which are included in a bitstream to be decoded by a video decoder (210), for example; in one embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the decoding of other encoded video sequences. The encoded video sequence may be received from a channel (201), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (231) may receive the encoded video data as well as other data, such as encoded audio data and / or auxiliary data streams, which may be forwarded to their respective consuming entities (not shown). The receiver (231) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (215) may be coupled between the receiver (231) and the entropy decoder / parser (220) (hereinafter referred to as "parser (220)"). In some applications, the buffer memory (215) is part of the video decoder (210). In other cases, the buffer memory (215) may be set outside the video decoder (210) (not shown). In other cases, a buffer memory (not shown) is set outside the video decoder (210) to, for example, prevent network jitter, and another buffer memory (215) may be configured inside the video decoder (210) to, for example, handle broadcast timing. When the receiver (231) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous network, it may not be necessary to configure the buffer memory (215), or the buffer memory may be made smaller. Of course, in order to use on a service packet network such as the Internet, a buffer memory (215) may also be required. The buffer memory may be relatively large and may have an adaptive size, and may be at least partially implemented in an operating system or a similar element (not shown) outside the video decoder (210).

[0039] The video decoder (210) may include a parser (220) to reconstruct symbols (221) from the encoded video sequence. The types of symbols include information for managing the operation of the video decoder (210) and potential information for controlling a display device such as a display device (212) (e.g., a display screen) that is not part of the electronic device (230) but can be coupled to the electronic device (230), such as Figure 2As shown in . The control information for the display device may be a parameter set fragment (not indicated) of Supplemental Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (220) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (220) may extract a subgroup parameter set of at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (220) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.

[0040] The parser (220) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (215), thereby creating symbols (221).

[0041] Depending on the type of coded video picture or part of coded video picture (e.g., inter-picture and intra-picture, inter-block and intra-block) and other factors, the reconstruction of symbol (221) may involve multiple different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed by parser (220) from the coded video sequence. For the sake of brevity, such subgroup control information flow between parser (220) and the multiple units below is not described.

[0042] In addition to the functional blocks already mentioned, the video decoder (210) can be conceptually subdivided into several functional units as described below. In a practical embodiment operating under commercial constraints, many of these units interact closely with each other and can be integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.

[0043] The first unit is a sealer / inverse transform unit (251). The sealer / inverse transform unit (251) receives quantized transform coefficients as symbols (221) from the parser (220) and control information, including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (251) can output a block including sample values, which can be input into an aggregator (255).

[0044] In some cases, the output samples of the scaler / inverse transform unit (251) may belong to an intra-coded block. An intra-coded block is a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-picture prediction unit (252). In some cases, the intra-picture prediction unit (252) generates a block of the same size and shape as the block being reconstructed using surrounding reconstructed information extracted from a current picture buffer (258). For example, the current picture buffer (258) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (255) adds the prediction information generated by the intra-prediction unit (252) to the output sample information provided by the scaler / inverse transform unit (251) on a per-sample basis.

[0045] In other cases, the output samples of the scaler / inverse transform unit (251) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (253) may access the reference picture memory (257) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (221), these samples may be added to the output of the scaler / inverse transform unit (251) (in this case referred to as residual samples or residual signals) by the aggregator (255) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (253) from the address in the reference picture memory (257) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (253) in the form of the symbols (221), for example, including X, Y and reference picture components. Motion compensation may also include interpolation of sample values ​​extracted from the reference picture memory (257) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.

[0046] The output samples of the aggregator (255) may be employed by various loop filtering techniques in a loop filter unit (256). The video compression techniques may include in-loop filter techniques controlled by parameters included in an encoded video sequence (also referred to as an encoded video bitstream) and available to the loop filter unit (256) as symbols (221) from the parser (220). The video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, and to previously reconstructed and loop filtered sample values.

[0047] The output of the loop filter unit (256) may be a sample stream that may be output to a display device (212) and stored in a reference picture memory (257) for subsequent inter-picture prediction.

[0048] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (220)), the current picture buffer (258) may become part of the reference picture memory (257), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.

[0049] The video decoder (210) may perform decoding operations according to a predetermined video compression technique, such as in the ITU-T H.265 standard. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the encoded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.

[0050] In an embodiment, the receiver (231) may receive additional (redundant) data along with the encoded video. The additional data may be part of the encoded video sequence. The additional data may be used by the video decoder (210) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.

[0051] Figure 3 An exemplary block diagram of a video encoder (303) is shown. The video encoder (303) is disposed in an electronic device (320). The electronic device (320) includes a transmitter (340) (eg, a transmission circuit). The video encoder (303) may be used to replace Figure 1 A video encoder (103) in an embodiment.

[0052] The video encoder (303) can be used to obtain the video source (301) (not Figure 3 In another embodiment, the video source (301) is a part of the electronic device (320) to receive video samples, and the video source can collect video images to be encoded by the video encoder (303). In another embodiment, the video source (301) is a part of the electronic device (320).

[0053] The video source (301) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (303), wherein the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (301) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (301) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of individual pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The following description focuses on the samples.

[0054] According to an embodiment, the video encoder (303) may encode and compress pictures of a source video sequence into an encoded video sequence (343) in real time or under any other time constraints as required. Implementing an appropriate encoding speed is a function of the controller (350). In some embodiments, the controller (350) controls other functional units as described below and is functionally coupled to these units. For the sake of simplicity, couplings are not shown in the figure. The parameters set by the controller (350) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, group of pictures (group of pictures, GOP) layout, maximum motion vector search range, etc. The controller (350) can be used to have other suitable functions that are related to the video encoder (303) optimized for a certain system design.

[0055] In some embodiments, the video encoder (303) operates in a coding loop. As a simple description, in embodiments, the coding loop may include a source encoder (330) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (333) embedded in the video encoder (303). The decoder (333) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder creates sample data. The reconstructed sample stream (sample data) is input to a reference picture memory (334). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (334) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values ​​that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, such as due to channel errors) is also used in some related technologies.

[0056] The operation of the "local" decoder (333) may be combined with, for example, Figure 4 The "remote" decoder described in detail for the video decoder (310) is identical. However, additional brief reference is made to Figure 4 , when symbols are available and the entropy encoder (345) and parser (320) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (310), including the buffer memory (315) and the parser (320), may not be fully implemented in the local decoder (333).

[0057] In one embodiment, any decoder techniques other than parsing / entropy decoding present in a decoder are present in the corresponding encoder in the same or substantially the same functional form. Therefore, the disclosed subject matter focuses on decoder operation. The description of encoder techniques can be simplified because encoder techniques are reciprocal to the decoder techniques described comprehensively. A more detailed description in some areas is provided below.

[0058] During operation, in some embodiments, the source encoder (330) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (332) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.

[0059] The local video decoder (333) may decode the encoded video data that may be designated as a reference picture based on the symbol created by the source encoder (330). The operation of the encoding engine (332) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 3 When the video sequence is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (333) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture memory (334). In this way, the video encoder (303) may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.

[0060] The predictor (335) may perform a prediction search for the encoding engine (332). That is, for a new picture to be encoded, the predictor (335) may search the reference picture memory (334) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new picture. The predictor (335) may operate pixel-by-pixel based on sample blocks to find a suitable prediction reference. In some cases, based on the search results obtained by the predictor (335), it may be determined that the input picture may have prediction references taken from a plurality of reference pictures stored in the reference picture memory (334).

[0061] The controller (350) may manage encoding operations of the source encoder (330), including, for example, setting parameters and subgroup parameters for encoding video data.

[0062] The outputs of all the above functional units may be entropy encoded in an entropy encoder (345). The entropy encoder (345) converts the symbols generated by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.

[0063] The transmitter (340) may buffer the encoded video sequence created by the entropy encoder (345) in preparation for transmission over a communication channel (360), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (340) may combine the encoded video data from the video encoder (303) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).

[0064] The controller (350) may manage the operation of the video encoder (303). During encoding, the controller (350) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:

[0065] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source.Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures.

[0066] A predictive picture (P picture) may be a picture that may be encoded and decoded using intra prediction or inter prediction that predicts sample values ​​of each block using one motion vector and a reference index.

[0067] Bidirectional predictive pictures (B pictures) can be pictures that can be encoded and decoded using intra prediction or inter prediction, which uses two motion vectors and reference indices to predict sample values ​​for each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstructing a single block.

[0068] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or the blocks may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.

[0069] The video encoder (303) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (303) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.

[0070] In an embodiment, the transmitter (340) may transmit additional data when transmitting the encoded video. The source encoder (330) may include such data as part of the encoded video sequence. The additional data may include other forms of redundant data such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, supplemental enhancement information (SEI) messages, visual usability information (VUI) parameter set fragments, etc.

[0071] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often simplified to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an embodiment, a particular picture being encoded / decoded is divided into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.

[0072] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture that are both before the current picture in the video in decoding order (but may be in the past and future in display order, respectively). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. Specifically, the block may be predicted by a combination of the first reference block and the second reference block.

[0073] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.

[0074] According to some embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed in blocks. For example, according to the HEVC standard, pictures in a video picture sequence are divided into coding tree units (CTUs) for compression, and the CTUs in the pictures have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Furthermore, each CTU can be split into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In an embodiment, each CU is analyzed to determine the prediction type for the CU, such as an inter-prediction type or an intra-prediction type. In addition, depending on temporal and / or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luma prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values ​​(e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.

[0075] It should be noted that the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using any suitable technology. In an embodiment, the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using one or more processors that execute software instructions.

[0076] In video coding such as HEVC and VVC, multiple intra prediction modes can be used for intra prediction. Figure 4 The intra-frame prediction modes (e.g., 35 intra-frame prediction modes such as used in HEVC) according to an embodiment of the present disclosure are shown. In an example, such as in HEVC, there are 35 intra-frame prediction modes (e.g., a total of 35 intra-frame prediction modes). Figure 4 , among the 35 intra prediction modes, mode 10 is a horizontal mode, mode 26 is a vertical mode, and mode 2, mode 18, and mode 34 are diagonal modes. The intra prediction mode can be signaled by three most probable modes (MPMs) and 32 remaining modes.

[0077] Figure 5 An intra prediction mode according to an embodiment of the present disclosure, such as the intra prediction mode defined in VVC draft 2, is shown. Figure 5 In the example of VVC, there are 95 intra prediction modes (e.g., 95 intra prediction modes in total). In the example, the 95 intra prediction modes are indicated by modes -14 to 80. For example, mode 18 is a horizontal mode, mode 50 is a vertical mode, and mode 2, mode 34, and mode 66 are diagonal modes. Modes -1 to -14 and modes 67 to 80 may be referred to as wide angle intra prediction (WAIP) modes.

[0078] Multi-line intra prediction can be applied to video codecs. In multi-line intra prediction, more reference lines (e.g., more than the reference lines adjacent to the current block to be encoded) can be used for intra prediction. The encoder can decide and signal which reference line is used to generate the intra predictor. The reference line index can be signaled before the intra prediction mode. In an example, only the most probable mode is allowed when a non-zero reference line index is signaled. Figure 6 An example of four reference lines 0 to 3 adjacent to a coding block unit (e.g., block) (601) according to an embodiment of the present disclosure is shown. In an embodiment, each reference line includes six segments, namely segments A to F, and an upper left reference sample. In the example, segments A and F are filled with the closest samples from segments B and E, respectively.

[0079] Template-based intra mode derivation (TIMD) can use the reference sample of the current CU as a template and select an intra mode associated with TIMD from a set of candidate intra prediction modes. For example, the selected intra mode can be determined as the best intra mode based on a cost function. Figure 7 As shown, the neighboring reconstructed samples of the current CU (702) can be used as a template (704). The reconstructed samples in the template (704) can be compared with the predicted samples of the template (704). The predicted samples can be generated using the reference samples (706) of the template (704). The reference samples (706) can be neighboring reconstructed samples around the template (704). The cost function can be used to calculate the cost (or distortion) between the predicted samples and the reconstructed samples in the template (704) based on a corresponding one of the set of candidate intra-frame prediction modes. The intra-frame prediction mode with the minimum cost (or distortion) can be selected as the intra-frame prediction mode (e.g., the best intra-frame prediction mode) for intra-frame prediction of the current CU (702).

[0080] Spatial geometry partition mode (SGPM) can be used for intra prediction. SGPM can be an intra mode of an inter-frame codec tool similar to GPM. In SGPM, according to the partition mode, the block can be partitioned into two partitions along the partition boundary. In an example, the partition mode is one of the partition modes indicated by the partition mode index. Two corresponding prediction parts can be generated from the intra prediction process. In an example, mixing (e.g., adaptive mixing) is used in SGPM, and the prediction value of the sample within a certain distance from the partition boundary can be determined by using the weighted average of the first prediction value and the second prediction value generated from the two intra prediction modes according to the weights of the two intra prediction modes.

[0081] When decoder-side intra mode derivation (DIMD) is applied, N intra modes may be derived from reconstructed neighboring samples around the current block (801), and the N predictors obtained using the N intra modes may be combined with the planar mode predictors with corresponding weights. The weights may be derived from gradients such as those computed using a histogram of gradients (HoG). Figure 8 An example of DIMD is shown. HoG calculations may be performed by applying filters (e.g., horizontal and vertical Sobel filters) to pixels in a template (802) surrounding a current block (801). The template (802) may include reconstructed neighbor samples surrounding the current block (801). In the example, the width of the template is 3. In the example, pixels in the middle row of the template (802) (marked in gray) may be included in the HoG calculations. Reference Figure 8, a window (803) around the pixel (805) can be used to determine a gradient associated with the pixel (805). The window (803) can have a size of 3×3, with the pixel (805) at the center of the window (803). The horizontal gradient and the vertical gradient can be obtained using, for example, horizontal and vertical Sobel filters, respectively. A direction or orientation can be obtained from the horizontal gradient and the vertical gradient. An intra-frame prediction mode (IPM) associated with the direction can be determined. Subsequently, a histogram (also called HoG) of the IPM can be obtained (810). The IPM corresponding to the N highest histogram bars can be selected for the current block (801).

[0082] In some examples, a particular intra-frame prediction mode may not be able to effectively and accurately model local textures, and the fusion of multiple intra-frame prediction modes can improve the prediction accuracy. However, inefficient design of weight derivation when combining multiple intra-frame prediction samples may lead to lower codec efficiency. The present disclosure includes a set of advanced video codec techniques, such as a method for deriving weights (or weights) of multiple intra-frame prediction modes to improve the codec efficiency of the fusion of multiple intra-frame prediction modes. More specifically, a method for deriving weights of multiple intra-frame prediction modes when applying intra-frame prediction fusion is described.

[0083] In this disclosure, the term intra prediction fusion may refer to any situation when multiple intra prediction modes are used to generate predictions for a block and derive one residual block. Examples may include, but are not limited to, fusion between DIMD mode and conventional intra prediction mode; fusion between TIMD mode and conventional intra prediction mode; SGPM (or spatial GPM, where two intra prediction modes are signaled for one coding block); fusion of two conventional intra prediction modes; and fusion of cross component linear model (CCLM) / convolutional cross component model (CCCM) / multi-model linear mode (MMLM) and conventional intra prediction mode.

[0084] In the present disclosure, the term "intra prediction fusion" or the term "fusion of multiple intra prediction modes" may refer to the case when multiple intra prediction modes are used to predict a block (such as generating a prediction block of a block). Multiple intra prediction modes may be used to derive a residual block.

[0085] Conventional intra prediction modes may include reference Figures 4 to 5 The intra prediction modes described in the specification include DC mode, planar mode, intra directional prediction mode (also called angular prediction mode or angular mode). Conventional intra prediction modes can be used with Figure 6 Reference line 0 or Figure 6 In the example, the conventional intra prediction modes do not include DIMD mode, TIMD mode, SGPM, CCLM, CCCM, and MMLM.

[0086] When more than one intra prediction mode (e.g., multiple intra prediction modes) is used to generate the final intra prediction block (i.e., intra prediction fusion is applied), for each sample, a weight for each candidate prediction value is derived based on the encoded intra prediction mode from the neighboring block. Each intra prediction mode involved in the intra prediction fusion is referred to as a candidate intra prediction mode. Therefore, more than one intra prediction mode or multiple intra prediction modes used to predict the current block may also be referred to as multiple candidate intra prediction modes.

[0087] For example, when a current block is predicted using multiple candidate intra prediction modes (such as using intra prediction fusion or a fusion of multiple intra prediction modes), individual candidate prediction values ​​for samples in the current block may be determined for each of the multiple candidate intra prediction modes. The weights of the corresponding multiple candidate intra prediction modes (or the weighting of each candidate prediction value) may be derived based on the intra prediction mode used to encode the neighboring blocks of the current block. The samples in the current block may be predicted by the weighted sum of the candidate prediction values ​​associated with the multiple candidate intra prediction modes according to the derived weights. As described above, each intra prediction mode in the multiple candidate intra prediction modes is referred to as a candidate intra prediction mode. The neighboring blocks of the current block may include neighboring blocks that are spatially adjacent to the current block.

[0088] The plurality of candidate intra prediction modes may include one or more of a DC mode, a planar mode, an intra directional prediction mode (also called an angular prediction mode or an angular mode), a DIMD mode, a TIMD mode, CCLM, CCCM, and MMLM.

[0089] In an example, a DIMD mode and an angle mode (e.g., a conventional intra prediction mode) are used in a fusion of multiple intra prediction modes, wherein the multiple intra prediction modes include a DIMD mode and an angle mode. A first predictor (e.g., a first prediction block) of a current block is obtained using the DIMD mode, and a second predictor (e.g., a second prediction block) of the current block is obtained using the angle mode. A prediction block (e.g., a final intra prediction block) can be obtained by weighted averaging of the first predictor and the second predictor according to the corresponding weights of the DIMD mode and the angle mode. In an example, the weights of the DIMD mode and the angle mode are specific to each sample or each sample position. For example, the first prediction includes a first candidate prediction value for a sample in the current block, and the second prediction includes a second candidate prediction value for a sample in the current block. The weight of the sample includes a first weight of the DIMD mode and a second weight of the angle mode. The predicted sample of the sample can be determined based on the sum of (first candidate prediction value × first weight) and (second candidate prediction value × second weight).

[0090] In one aspect, the neighboring blocks are scanned in a specific block size unit (such as 4×4) to collect the frequency of applying each of the candidate intra prediction modes, and then the weight of each candidate intra prediction mode is derived based on the frequency of use of the candidate intra prediction mode. The neighboring blocks may include one or more units (e.g., 4×4 units), and prediction mode information (e.g., prediction mode) associated with each unit (e.g., 4×4 units) may be stored for each unit.

[0091] As described above, the frequency with which multiple candidate intra-frame prediction modes are applied to encode the neighboring blocks of the current block can be determined, for example, by checking the prediction mode information of the neighboring blocks of the current block, such as the prediction mode information associated with each unit in each neighboring block of the current block. The frequency with which multiple candidate intra-frame prediction modes are applied to encode the neighboring blocks of the current block can be determined, for example, by checking the prediction mode for encoding the neighboring blocks, such as one or more prediction modes stored for one or more units (e.g., 4×4 units) in each neighboring block. For example, the frequency of the candidate intra-frame prediction mode is determined based on the number of times the candidate intra-frame prediction mode is stored for one or more units in each neighboring block. The weight of one of the multiple candidate intra-frame prediction modes can be derived based on the determined frequency. The weights of the multiple candidate intra-frame prediction modes can be derived based on the determined frequency.

[0092] On the other hand, for each sample, a horizontal weight (or horizontal weight) of each candidate intra prediction mode is derived, and a vertical weight (vertical weight) of each candidate intra prediction is also derived, and the final weight is derived as a weighted sum of the horizontal weight and the vertical weight. For example, the horizontal weight of one of the plurality of candidate intra prediction modes is derived, and the vertical weight of one of the plurality of candidate intra prediction modes is derived. The weight (or final weight) of one of the plurality of candidate intra prediction modes may be derived based on the derived horizontal weight and the derived vertical weight.

[0093] In one aspect, based on the relative coordinates of the sample relative to the coordinates of the top left corner in the current block (e.g., Fig. 9 , Y) in , to derive weights for horizontal weighting and vertical weighting (eg, a first weight for horizontal weight and a second weight for vertical weight as described below).

[0094] Figure 8 The current block (801) in Fig. 9 For clarity, Fig. 9 The template (802) is not shown. Fig. 9, the current block (801) includes a sample (820). The sample (820) has relative coordinates (X, Y) relative to the upper left corner coordinates (0, 0) in the current block (801). A first weight of a horizontal weight and a second weight of a vertical weight are derived based on the relative coordinates (X, Y) of the sample (820). The weight of one of the plurality of candidate intra prediction modes may be derived based on a weighted sum of the derived horizontal weight and the derived vertical weight using the first weight and the second weight, respectively.

[0095] On the other hand, the weights for horizontal weighting and vertical weighting are derived using bilinear interpolation among horizontal weighting, vertical weighting, default horizontal weighting, and default vertical weighting, such as Fig. 9 As shown in . If the horizontal weight is W Hor , and the vertical weight is W Ver , then the final weight (e.g., the weight in equation (1)) is derived as

[0096] W DefaultH is the default level weight (also called the default level weight), and W DefaultV is the default vertical weight (also called the default vertical weight). DefaultH and W DefaultV Example values ​​of may include, but are not limited to, 0.5. BW and BH are the width and height of the current block (801).

[0097] As described in equation (1), it can be based on the horizontal weight W Hor , vertical weight W Ver , default level weight W DefaultH and the default vertical weight W DefaultV The weight of one of multiple candidate intra-frame prediction modes is derived by bilinear interpolation.

[0098] In one aspect, a horizontal weight of a candidate intra prediction mode is derived based on the frequency with which the candidate intra prediction mode is used to encode the left neighboring block. The higher the frequency with which the candidate intra prediction mode is used to encode the left neighboring block, the higher the horizontal weight. For example, the frequency with which one of the plurality of candidate intra prediction modes is applied to encode the left neighboring block in the neighboring blocks is determined, for example, by examining the prediction mode used to encode the left neighboring block, and the horizontal weight of one of the plurality of candidate intra prediction modes is derived based on the determined frequency.

[0099] In one aspect, a vertical weight of a candidate intra prediction mode is derived based on the frequency with which the candidate intra prediction mode is used to encode the top neighboring block. The more frequently the candidate intra prediction mode is used to encode the top neighboring block, the higher the vertical weight. For example, the frequency with which one of the plurality of candidate intra prediction modes is applied to encode the top neighboring block in the neighboring blocks is determined, such as by examining the prediction mode used to encode the top neighboring block, and the vertical weight of one of the plurality of candidate intra prediction modes is derived based on the determined frequency.

[0100] When more than one intra prediction mode is used to generate the final intra prediction block (ie, intra prediction fusion is applied), for each sample, a weight for each candidate prediction value is derived based on neighboring reconstructed samples. Each intra prediction mode involved in intra prediction fusion may be referred to as a candidate intra prediction mode.

[0101] As described above, when a current block is predicted using multiple candidate intra prediction modes (such as using intra prediction fusion or a fusion of multiple intra prediction modes), individual candidate prediction values ​​for samples in the current block may be determined for each of the multiple candidate intra prediction modes. The weights of the corresponding multiple candidate intra prediction modes (or the weighting of each candidate prediction value) may be derived based on the adjacent reconstructed samples of the current block. The samples in the current block may be predicted by the weighted sum of the candidate prediction values ​​associated with the multiple candidate intra prediction modes according to the derived weights. The adjacent reconstructed samples may include reconstructed samples within at least one row of the current block.

[0102] In one aspect, a histogram of edge directions is calculated based on neighboring reconstructed samples in a manner similar to the DIMD or TIMD methods, and then a weight for a candidate intra prediction mode associated with an edge direction is derived based on the frequency of each edge direction in the histogram. In an example, a histogram of edge directions of a current block is calculated based on neighboring reconstructed samples of the current block, similar to the method described in examples such as Figure 8 . A histogram of edge directions may indicate respective frequencies of edge directions. A weight of one of a plurality of candidate intra prediction modes may be derived based on the frequency of one of the edge directions, wherein one of the plurality of candidate intra prediction modes is associated with one of the edge directions. In an example, similar to TIMD, a template matching cost between a current template including adjacent reconstructed samples of a current block and respective templates of the current template indicated by the plurality of candidate intra prediction modes is calculated. Weights of the plurality of candidate intra prediction modes may be derived based on respective template matching costs.

[0103] For example, when the neighboring reconstructed samples of the current block are used to derive the weights of the corresponding multiple candidate intra prediction modes, the reference Fig. 9The same method described can be applied to derive horizontal weighting and vertical weighting. Instead of scanning the frequency of using each candidate intra-frame prediction mode in adjacent blocks, the frequency of the candidate intra-frame prediction direction reflected by the histogram of the edge direction using the left adjacent reconstruction sample and the top adjacent reconstruction sample is used. In an example, the histogram of the left edge direction of the current block is calculated based on the left adjacent reconstruction sample in the adjacent reconstruction samples of the current block, wherein the histogram of the left edge direction indicates the respective frequencies of the left edge direction. The horizontal weight of one of the multiple candidate intra-frame prediction modes is derived based on the frequency of one of the left edge directions, wherein one of the multiple candidate intra-frame prediction modes is associated with one of the left edge directions. In an example, the histogram of the top edge direction of the current block is calculated based on the top adjacent reconstruction sample in the adjacent reconstruction samples of the current block, wherein the histogram of the top edge direction indicates the respective frequencies of the top edge direction. The vertical weight of one of the multiple candidate intra-frame prediction modes can be derived based on the frequency of one of the top edge directions, wherein one of the multiple candidate intra-frame prediction modes is associated with one of the top edge directions.

[0104] Fig.10 A flow chart outlining a process (1000) according to an embodiment of the present disclosure is shown. The process (1000) may be used in a video decoder. In various embodiments, the process (1000) is performed by a processing circuit, such as a processing circuit that performs the functions of a video decoder (110), a processing circuit that performs the functions of a video decoder (210), etc. In some embodiments, the process (1000) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1000). The process starts at (S1001) and proceeds to (S1010).

[0105] At (S1010), a current block in a code stream is received. The current block is predicted using a plurality of candidate intra prediction modes.

[0106] At (S1020), respective candidate prediction values ​​for samples in the current block are determined for each of a plurality of candidate intra prediction modes.

[0107] At (S1030), weights of a corresponding plurality of candidate intra prediction modes may be derived based on the intra prediction modes used to encode neighboring blocks of the current block.

[0108] In an example, a frequency of applying a plurality of candidate intra prediction modes to encode a neighboring block is determined. A weight of one of the plurality of candidate intra prediction modes is derived based on the determined frequency.

[0109] In an example, a horizontal weight of one of the plurality of candidate intra prediction modes is derived, and a vertical weight of one of the plurality of candidate intra prediction modes is derived. A weight of one of the plurality of candidate intra prediction modes may be derived based on the derived horizontal weight and the derived vertical weight.

[0110] At (S1040), samples in the current block may be predicted by a weighted sum of candidate prediction values ​​associated with a plurality of candidate intra prediction modes according to the derived weights.

[0111] Then, the process proceeds to (S1099) and terminates.

[0112] The process (1000) may be adapted as appropriate. One or more steps in the process (1000) may be modified and / or omitted. One or more additional steps may be added. Any suitable order of implementation may be used.

[0113] Fig.11 A flow chart of an overview process (1100) according to an embodiment of the present disclosure is shown. The process (1100) can be used in a video encoder. In various embodiments, the process (1100) is performed by a processing circuit, such as a processing circuit that performs the functions of the video encoder (103), a processing circuit that performs the functions of the video encoder (303), etc. In some embodiments, the process (1100) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1100). The process starts at (S1101) and proceeds to (S1110).

[0114] At (S1110), if the current block is predicted with a plurality of candidate intra prediction modes, respective candidate prediction values ​​of samples in the current block are determined for each of the plurality of candidate intra prediction modes.

[0115] At (S1120), weights of a corresponding plurality of candidate intra prediction modes may be derived based on the intra prediction modes used to encode neighboring blocks of the current block.

[0116] At (S1130), samples in the current block may be predicted by a weighted sum of candidate prediction values ​​associated with a plurality of candidate intra prediction modes according to the derived weights.

[0117] Then, the process proceeds to (S1199) and terminates.

[0118] The process (1100) may be adapted as appropriate. One or more steps in the process (1100) may be modified and / or omitted. One or more additional steps may be added. Any suitable implementation order may be used.

[0119] Fig.12A flow chart outlining a process (1200) according to an embodiment of the present disclosure is shown. The process (1200) may be used in a video decoder. In various embodiments, the process (1200) is performed by a processing circuit, such as a processing circuit that performs the functions of a video decoder (110), a processing circuit that performs the functions of a video decoder (210), etc. In some embodiments, the process (1200) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1200). The process starts at (S1201) and proceeds to (S1210).

[0120] At (S1210), a current block in a code stream is received. The current block is predicted using a plurality of candidate intra prediction modes.

[0121] At (S1220), respective candidate prediction values ​​for samples in the current block are determined for each of a plurality of candidate intra prediction modes.

[0122] At (S1230), weights of corresponding multiple candidate intra prediction modes may be derived based on neighboring reconstructed samples of the current block. The neighboring reconstructed samples include reconstructed samples within at least one row of the current block.

[0123] A histogram of edge directions of the current block may be calculated based on neighboring reconstructed samples of the current block. The histogram of edge directions indicates respective frequencies of edge directions. A weight of one of a plurality of candidate intra-frame prediction modes may be derived based on the frequency of one of the edge directions, and one of the plurality of candidate intra-frame prediction modes is associated with one of the edge directions.

[0124] In an example, a template matching cost between a current template including neighboring reconstructed samples of a current block and each of the current templates indicated by a plurality of candidate intra prediction modes is calculated. Weights of the plurality of candidate intra prediction modes may be derived based on the respective template matching costs.

[0125] In an example, a horizontal weight of one of the plurality of candidate intra prediction modes is derived, and a vertical weight of one of the plurality of candidate intra prediction modes is derived. A weight of one of the plurality of candidate intra prediction modes may be derived based on the derived horizontal weight and the derived vertical weight.

[0126] In an example, a histogram of a left edge direction of a current block is calculated based on left adjacent reconstructed samples of the current block. The histogram of the left edge direction indicates respective frequencies of the left edge directions. A horizontal weight of one of a plurality of candidate intra prediction modes is derived based on the frequency of one of the left edge directions. One of the plurality of candidate intra prediction modes is associated with one of the left edge directions.

[0127] In an example, a histogram of top edge directions of a current block is calculated based on top adjacent reconstructed samples of the current block. The histogram of top edge directions indicates respective frequencies of top edge directions. A vertical weight of one of a plurality of candidate intra prediction modes is derived based on the frequency of one of the top edge directions. One of the plurality of candidate intra prediction modes is associated with one of the top edge directions.

[0128] In an example, a first weight of a horizontal weight and a second weight of a vertical weight are derived based on the relative coordinates of the sample relative to the coordinates of the upper left corner in the current block. The first weight and the second weight are used to derive a weight of one of the plurality of candidate intra prediction modes based on a weighted sum of the derived horizontal weight and the derived vertical weight, respectively.

[0129] In an example, a weight of one of a plurality of candidate intra prediction modes is derived based on bilinear interpolation among horizontal weights, vertical weights, default horizontal weights, and default vertical weights.

[0130] At (S1240), samples in the current block may be predicted by a weighted sum of candidate prediction values ​​associated with a plurality of candidate intra prediction modes according to the derived weights.

[0131] Then, the process proceeds to (S1299) and terminates.

[0132] The process (1200) may be adapted as appropriate. One or more steps in the process (1200) may be modified and / or omitted. One or more additional steps may be added. Any suitable implementation order may be used.

[0133] Fig.13 A flow chart outlining a process (1300) according to an embodiment of the present disclosure is shown. The process (1300) may be used in a video encoder. In various embodiments, the process (1300) is performed by a processing circuit, such as a processing circuit that performs the functions of the video encoder (103), a processing circuit that performs the functions of the video encoder (303), etc. In some embodiments, the process (1300) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1300). The process starts at (S1301) and proceeds to (S1310).

[0134] At (S1310), if the current block is predicted with a plurality of candidate intra prediction modes, respective candidate prediction values ​​of samples in the current block are determined for each of the plurality of candidate intra prediction modes.

[0135] At (S1320), weights of corresponding multiple candidate intra prediction modes may be derived based on neighboring reconstructed samples of the current block. The neighboring reconstructed samples include reconstructed samples within at least one row of the current block.

[0136] At (S1330), samples in the current block may be predicted by a weighted sum of candidate prediction values ​​associated with a plurality of candidate intra prediction modes according to the derived weights.

[0137] Then, the process proceeds to (S1399) and terminates.

[0138] The process (1300) may be adapted as appropriate. One or more steps in the process (1300) may be modified and / or omitted. One or more additional steps may be added. Any suitable order of implementation may be used.

[0139] The aspects, aspects and / or examples in the present disclosure may be used alone or in any order. Each of the methods (or aspects), encoders and decoders may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium.

[0140] The above techniques may be implemented as computer software via computer-readable instructions and physically stored in one or more computer-readable media. Fig.14 A computer system (1400) is shown that is suitable for implementing certain embodiments of the disclosed subject matter.

[0141] The computer software may be encoded in any suitable machine code or computer language, and may be assembled, compiled, linked, or the like to create a code comprising instructions, which may be directly executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or executed by decoding, microcode, or the like.

[0142] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablets, servers, smartphones, gaming devices, IoT devices, etc.

[0143] Fig.14 The components shown for the computer system (1400) are exemplary in nature and are not intended to impose any limitations on the scope of use or functionality of computer software implementing the disclosed embodiments. Nor should the configuration of the components be interpreted as having any dependency or requirement on any one or combination of components shown in the exemplary embodiment of the computer system (1400).

[0144] The computer system (1400) may include certain human-computer interface input devices. Such human-computer interface input devices may respond to input from one or more human users through tactile input (e.g., keyboard input, sliding, data glove movement), audio input (e.g., sound, applause), visual input (e.g., gestures), and olfactory input (not shown). The human-computer interface devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., speech, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).

[0145] The human-computer interface input device may include one or more of the following (only one of which is drawn): keyboard (1401), mouse (1402), touchpad (1403), touch screen (1410), data gloves (not shown), joystick (1405), microphone (1406), scanner (1407), camera (1408).

[0146] The computer system (1400) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more human user senses through, for example, tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (1410), a data glove (not shown), or a joystick (1405), but there may also be tactile feedback devices that are not used as input devices), audio output devices (e.g., speakers (1409), headphones (not shown)), visual output devices (e.g., screens (1410) including cathode ray tube screens, liquid crystal screens, plasma screens, organic light emitting diode screens, each of which has or does not have a touch screen input function, each of which has or does not have a tactile feedback function - some of which can output two-dimensional visual output or output of more than three dimensions through means such as stereoscopic picture output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)) and printers (not shown).

[0147] The computer system (1400) may also include human-accessible storage devices and their associated media, such as optical media including high-density read-only / rewritable compact disks (CD / DVD ROM / RW) (1420) with CD / DVD or similar media (1421), thumb drives (1422), removable hard disk drives or solid state drives (1423), traditional magnetic media such as tapes and floppy disks (not shown), special-purpose ROM / ASIC / PLD-based devices such as security software protectors (not shown), and the like.

[0148] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the disclosed subject matter does not include transmission media, carrier waves, or other transient signals.

[0149] The computer system (1400) may also include an interface to one or more communication networks. For example, the network may be wireless, wired, or optical. The network may also be a local area network, a wide area network, a metropolitan area network, an in-vehicle network, an industrial network, a real-time network, a delay-tolerant network, and the like. The network also includes local area networks such as Ethernet, wireless local area networks, cellular networks (GSM, 3G, 4G, 5G, LTE, etc.), television wired or wireless wide area digital networks (including cable television, satellite television, and terrestrial broadcast television), in-vehicle and industrial networks (including CANBus), and the like. Some networks typically require an external network interface adapter for connecting to some universal data ports or peripheral buses (1449) (e.g., a USB port of the computer system (1400)); other systems are typically integrated into the core of the computer system (1400) by connecting to a system bus as described below (e.g., an Ethernet interface integrated into a PC computer system or a cellular network interface integrated into a smart phone computer system). By using any of these networks, the computer system (1400) can communicate with other entities. The communication can be one-way, for receiving only (e.g., wireless television), one-way for sending only (e.g., CAN bus to certain CAN bus devices), or two-way, such as to other computer systems via a local or wide area digital network. Each of the above networks and network interfaces can use certain protocols and protocol stacks.

[0150] The above-mentioned human-machine interface devices, human-accessible storage devices, and network interfaces may be connected to the core (1440) of the computer system (1400).

[0151] The core (1440) may include one or more central processing units (CPUs) (1441), graphics processing units (GPUs) (1442), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1443), hardware accelerators for specific tasks (1444), graphics adapters (1450), etc. These devices, as well as read-only memory (ROM) (1445), random access memory (1446), internal mass storage (e.g., internal non-user accessible hard disk drives, solid-state drives, etc.) (1447), etc., may be connected via a system bus (1448). In some computer systems, the system bus (1448) may be accessed in the form of one or more physical plugs so that it may be expanded by additional central processing units, graphics processing units, etc. Peripheral devices may be directly attached to the core's system bus (1448) or connected via a peripheral bus (1449). In one example, a screen (1410) may be connected to a graphics adapter (1450). The architecture of the peripheral bus includes PCI, USB, etc.

[0152] The CPU (1441), GPU (1442), FPGA (1443) and accelerator (1444) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1445) or RAM (1446). Transition data can also be stored in RAM (1446), while permanent data can be stored in, for example, internal mass storage (1447). Fast storage and retrieval of any memory device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1441), GPUs (1442), mass storage (1447), ROM (1445), RAM (1446), etc.

[0153] The computer readable medium may have computer code thereon for performing various computer-implemented operations. The medium and computer code may be specially designed and constructed for the purposes of the present disclosure, or may be the medium and code well known and available to those skilled in the art of computer software.

[0154] As an example and not a limitation, a computer system having an architecture (1400), in particular a core (1440), can provide the function of executing software contained in one or more tangible computer-readable media as a processor (including a CPU, a GPU, an FPGA, an accelerator, etc.). Such a computer-readable medium can be a medium associated with the above-mentioned user-accessible mass storage, as well as a specific memory of the core (1440) having non-volatility, such as a core internal mass storage (1447) or a ROM (1445). Software implementing various embodiments of the present disclosure can be stored in such a device and executed by the core (1440). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core (1440), in particular the processor therein (including a CPU, a GPU, an FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in the RAM (1446) and modifying such a data structure according to a software-defined process. Additionally or alternatively, the computer system may provide functionality hardwired in logic or otherwise contained in circuitry (e.g., accelerator (1444)) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuitry (e.g., integrated circuits (ICs)) storing executing software, circuitry containing executing logic, or both. The present disclosure includes any suitable combination of hardware and software.

[0155] The use of "at least one of" or "one of" in the present disclosure is intended to include any one or combination of the elements. For example, the use of at least one of A, B, or C; at least one of A, B, and C; at least one of A, B, and / or C; and at least one of A through C, etc. is intended to include only A, only B, only C, or any combination thereof. The use of "one of A or B" and "one of A and B" is intended to include A or B or (A and B). Where applicable, the use of "one of" does not exclude any combination of the elements, for example when these elements are not mutually exclusive.

[0156] Although the present disclosure has described a number of exemplary embodiments, various changes, arrangements and various equivalent substitutions of the embodiments are within the scope of the present disclosure. It should therefore be understood that those skilled in the art are capable of designing a variety of systems and methods, which, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.

Claims

1. A video decoding method, characterized in that: include: Receiving a current block in a bitstream, the current block being predicted using an intra prediction fusion including a plurality of candidate intra prediction modes; determining, in each of the plurality of candidate intra prediction modes, respective candidate prediction values ​​for samples in the current block; deriving weights of a corresponding plurality of candidate intra-prediction modes based on an intra-prediction mode used to encode a neighboring block of the current block; as well as The samples in the current block are predicted by a weighted sum of candidate prediction values ​​associated with the plurality of candidate intra prediction modes according to the derived weights.

2. The method according to claim 1, characterized in that The export includes: determining a frequency of applying the plurality of candidate intra prediction modes to encode the neighboring blocks; and A weight of one of the plurality of candidate intra prediction modes is derived based on the determined frequency.

3. The method according to claim 1, characterized in that The export includes: deriving a horizontal weight of one of the plurality of candidate intra prediction modes; deriving a vertical weight for the one of the plurality of candidate intra prediction modes; and The weight of the one of the plurality of candidate intra-prediction modes is derived based on the derived horizontal weight and the derived vertical weight.

4. The method according to claim 3, characterized in that The deriving the horizontal weight comprises: determining a frequency of applying the one of the plurality of candidate intra prediction modes to encoding a left neighboring block among the neighboring blocks; and The horizontal weight of the one of the plurality of candidate intra-prediction modes is derived based on the determined frequency.

5. The method according to claim 3, characterized in that: The deriving the vertical weight comprises: determining a frequency of applying the one of the plurality of candidate intra prediction modes to encoding a top neighboring block among the neighboring blocks; and The vertical weight of the one of the plurality of candidate intra-prediction modes is derived based on the determined frequency.

6. The method according to claim 3, characterized in that The deriving the weight comprises: deriving a first weight of the horizontal weight and a second weight of the vertical weight based on relative coordinates of the sample relative to coordinates of an upper left corner in the current block; and The weight of the one of the plurality of candidate intra prediction modes is derived based on a weighted sum of the derived horizontal weight and the derived vertical weight using the first weight and the second weight, respectively.

7. The method according to claim 3, characterized in that The deriving the weight comprises: The weight of the one of the plurality of candidate intra-prediction modes is derived based on bilinear interpolation of the horizontal weight, the vertical weight, a default horizontal weight, and a default vertical weight.

8. The method according to claim 1, characterized in that The multiple candidate intra-frame prediction modes include one or more of a DC mode, a planar mode, an intra-frame directional prediction mode, a decoder-side intra-frame mode derivation (DIMD) mode, a template-based intra-frame mode derivation (TIMD) mode, a cross-component linear model (CCLM), a convolutional cross-component model (CCCM) and a multi-model linear mode (MMLM).

9. A video decoding method, characterized in that: include: Receiving a current block in a code stream including encoding information, wherein the encoding information indicates that the current block is predicted using an intra prediction fusion including a plurality of candidate intra prediction modes; determining, for each of the plurality of candidate intra prediction modes, respective candidate prediction values ​​for samples in the current block; deriving weights of corresponding multiple candidate intra prediction modes based on adjacent reconstructed samples of the current block, wherein the adjacent reconstructed samples include reconstructed samples within at least one row of the current block; as well as The samples in the current block are predicted by a weighted sum of candidate prediction values ​​associated with the plurality of candidate intra prediction modes according to the derived weights.

10. The method according to claim 9, characterized in that The export includes: Calculating a histogram of edge directions of the current block based on the adjacent reconstructed samples of the current block, the histogram of edge directions indicating respective frequencies of the edge directions; and A weight of one of the plurality of candidate intra prediction modes is derived based on a frequency of one of the edge directions, the one of the plurality of candidate intra prediction modes being associated with the one of the edge directions.

11. The method according to claim 9, characterized in that The export includes: calculating a template matching cost between a current template including the neighboring reconstructed samples of the current block and each of the current templates indicated by the plurality of candidate intra prediction modes; and The weights of the plurality of candidate intra prediction modes are derived based on respective template matching costs.

12. The method according to claim 9, characterized in that The export includes: deriving a horizontal weight of one of the plurality of candidate intra prediction modes; deriving a vertical weight for the one of the plurality of candidate intra prediction modes; and The weight of the one of the plurality of candidate intra-prediction modes is derived based on the derived horizontal weight and the derived vertical weight.

13. The method according to claim 12, characterized in that The deriving the horizontal weight comprises: Calculating a histogram of a left edge direction of the current block based on left-neighboring reconstructed samples among the neighboring resamples of the current block, the histogram of the left edge direction indicating respective frequencies of the left edge directions; and The horizontal weight of the one of the plurality of candidate intra-prediction modes is derived based on a frequency of one of the left edge directions, the one of the plurality of candidate intra-prediction modes being associated with the one of the left edge directions.

14. The method according to claim 12, characterized in that The deriving the vertical weight comprises: calculating a histogram of top edge directions of the current block based on top adjacent reconstructed samples among the adjacent reconstructed samples of the current block, the histogram of top edge directions indicating respective frequencies of the top edge directions; and The vertical weight of the one of the plurality of candidate intra-prediction modes is derived based on a frequency of one of the top edge directions, the one of the plurality of candidate intra-prediction modes being associated with the one of the top edge directions.

15. The method according to claim 12, characterized in that The deriving the weight comprises: deriving a first weight of the horizontal weight and a second weight of the vertical weight based on relative coordinates of the sample relative to coordinates of an upper left corner in the current block; and The weight of the one of the plurality of candidate intra prediction modes is derived based on a weighted sum of the derived horizontal weight and the derived vertical weight using the first weight and the second weight, respectively.

16. The method according to claim 12, characterized in that The deriving the weight comprises: The weight of the one of the plurality of candidate intra-prediction modes is derived based on bilinear interpolation among the horizontal weight, the vertical weight, a default horizontal weight, and a default vertical weight.

17. A device for video decoding, characterized in that: comprising a processing circuit, the processing circuit being configured to: Receiving a current block in a bitstream, the current block being predicted using an intra prediction fusion including a plurality of candidate intra prediction modes; determining, for each of the plurality of candidate intra prediction modes, respective candidate prediction values ​​for samples in the current block; deriving weights of a corresponding plurality of candidate intra-prediction modes based on an intra-prediction mode used to encode a neighboring block of the current block; as well as The samples in the current block are predicted by a weighted sum of candidate prediction values ​​associated with the plurality of candidate intra prediction modes according to the derived weights.

18. The device according to claim 17, characterized in that The processing circuit is configured to: determining a frequency of applying the plurality of candidate intra prediction modes to encode the neighboring blocks; and A weight of one of the plurality of candidate intra prediction modes is derived based on the determined frequency.

19. The device according to claim 17, characterized in that The processing circuit is configured to: deriving a horizontal weight of one of the plurality of candidate intra prediction modes; deriving a vertical weight for the one of the plurality of candidate intra prediction modes; as well as The weight of the one of the plurality of candidate intra-prediction modes is derived based on the derived horizontal weight and the derived vertical weight.

20. The device according to claim 17, characterized in that The multiple candidate intra-frame prediction modes include one or more of a DC mode, a planar mode, an intra-frame directional prediction mode, a decoder-side intra-frame mode derivation (DIMD) mode, a template-based intra-frame mode derivation (TIMD) mode, a cross-component linear model (CCLM), a convolutional cross-component model (CCCM) and a multi-model linear mode (MMLM).

Citation Information

Cited By

  • Method and apparatus of adjusting prediction refinement adaptively in video coding systems

    WO2026138761A1