Intra merge mode with multiple lists

By constructing a merged candidate list or set and combining multiple intra-frame prediction modes, the problem of low efficiency in intra-frame prediction in existing video coding standards is solved, achieving more efficient video encoding and decoding effects.

CN123147145APending Publication Date: 2026-11-20MEDIATEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580028911.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-04-19
Filing Date
2025-04-18
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing video coding standards suffer from inefficiency in intra-frame prediction, especially when dealing with complex video content, where it is difficult to effectively utilize the encoding and decoding information of neighboring blocks for efficient prediction.

Method used

The intra-frame merging mode is adopted. By constructing a merging candidate list or set, the codec selects merging candidates from them to generate the prediction of the current block. It combines various intra-frame prediction modes such as DIMD, TIMD, MRL, MIP, etc., to achieve efficient encoding and decoding.

Benefits of technology

It improves the efficiency and quality of intra-frame prediction, especially when dealing with complex video content, and can better utilize the encoding and decoding information of neighboring blocks, thereby improving coding efficiency and image reconstruction quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123147145A_ABST
    Figure CN123147145A_ABST
Patent Text Reader

Abstract

A method of coding a block of pixels using an intra merge mode and one or more lists or sets of merge candidates is provided. A video coder constructs one or more lists of merge candidates for a current block. Each merge candidate corresponds to a set of coding information inherited from a previously coded block. Each list of merge candidates is associated with only one mode category. Each merge candidate in a list or set of merge candidates associated with a mode category corresponds to a set of coding information for a coding mode belonging to the mode category. The video coder selects a merge candidate from the constructed lists of merge candidates. The video coder generates a prediction for the current block using a set of coding information corresponding to the selected merge candidate according to a target mode. The video coder encodes or decodes the current block using the generated prediction.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references

[0002] This disclosure is part of a non-provisional application that claims priority to U.S. Provisional Patent Application No. 63 / 636,170, filed April 19, 2024. The contents of that application are incorporated herein by reference. Technical Field

[0003] This disclosure generally relates to video encoding and decoding. Specifically, this disclosure relates to methods for encoding and decoding pixel blocks using intra-frame encoding / decoding and merging modes. Background Technology

[0004] Unless expressly stated herein, the methods described in this section are not prior art as claimed in the following claims, and are not considered prior art by way of inclusion in this section.

[0005] High-Efficiency Video Coding (HEVC) is an international video coding standard developed by the Joint Collaborative Team on Video Coding (JCT-VC). HEVC is based on a hybrid block-based motion-compensated DCT transform coding architecture. The basic unit of compression is called a coding unit (CU), which is a 2N×2N pixel block. Each CU can be recursively divided into four smaller CUs until a predefined minimum size is reached. Each CU contains one or more prediction units (PUs).

[0006] Versatile Video Coding (VVC) is the latest international video coding standard developed by the Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11. The input video signal is predicted from the reconstructed signal, which is derived from the coded image region. The prediction residual signal is processed through block transform. The transform coefficients, along with other auxiliary information, are quantized and entropy-coded in the bitstream. The reconstructed signal is generated from the predicted signal and the reconstructed residual signal after inverse transform, with the inverse transform applied to the inverse-quantized transform coefficients. The reconstructed signal is further filtered within a loop to remove coding artifacts. The decoded image is stored in a frame buffer and used to predict subsequent images in the input video signal.

[0007] In VVC, the encoded image is segmented into non-overlapping block regions represented by relevant coding tree units (CTUs). The leaf nodes of the coding tree correspond to coding units (CUs). The encoded image can consist of several slices, each containing an integer number of CTUs. The individual CTUs within a slice are processed in raster scan order. Double-prediction (B) slices can be decoded via intra-frame prediction or inter-frame prediction; inter-frame prediction uses at most two motion vectors (MVs) and a reference index to predict the sample value for each block. Predictive (P) slices are decoded via intra-frame prediction or inter-frame prediction; inter-frame prediction uses at most one motion vector and a reference index to predict the sample value for each block. Intra-frame (I) slices are decoded only via intra-frame prediction.

[0008] Each CU contains one or more prediction units (PUs). The prediction unit, along with the associated CU syntax, serves as the basic unit of signal predictor information. The specified prediction process is used to predict the values ​​of associated pixel samples within the PU.

[0009] For each inter-frame predicted CU, motion parameters, consisting of motion vectors, reference image indices, reference image list indexes, and additional information, are used for inter-frame predicted sample generation. Motion parameters can be signaled explicitly or implicitly. When a CU is coded in skip mode, it is associated with a PU and has no significant residual coefficients, no encoded motion vector increments, or reference image indices. A merging mode is specified, where the motion parameters of the current CU are obtained from neighboring CUs, including spatial and temporal candidates, as well as additional schemes introduced in the VVC. The merging mode can be applied to any inter-frame predicted CU. An alternative to the merging mode is explicit transmission of motion parameters, where the motion vectors of each CU, the corresponding reference image indexes for each reference image list, and the reference image list flags, along with other necessary information, are signaled explicitly. Summary of the Invention

[0010] The following abstract is for illustrative purposes only and is not intended to be limiting in any way. That is, the abstract aims to introduce the concepts, key points, benefits, and advantages of the novel and non-obvious techniques described herein. Some implementations will be further elaborated in the detailed description below, but not all implementations. Therefore, the following abstract is not intended to identify the essential features of the claimed subject matter, nor is it intended to determine the scope of the claimed subject matter.

[0011] Certain embodiments of this disclosure provide a method for encoding and decoding a pixel block using an intra-frame merging mode and one or more merging candidate lists or sets. A video codec constructs at least one or more merging candidate lists or sets for the current block. Each merging candidate corresponds to a set of codec information inherited from previous codec blocks. Each merging candidate list or set is associated with only one mode category. Each merging candidate in the merging candidate list associated with a mode category corresponds to a set of codec information for a codec mode belonging to that mode category. The video codec selects a merging candidate from the constructed merging candidate list. Based on a target mode, the video codec generates a prediction for the current block using the set of codec information corresponding to the selected merging candidate. The video codec uses the generated prediction to encode or decode the current block.

[0012] In some embodiments, different lists or sets of merge candidates may be associated with different pattern categories.

[0013] In some embodiments, the list or set of merge candidates may be associated with a mode category that is only used for Decoder-Side Intra ModeDerivation (DIMD). Modes associated with DIMD may include DIMD, Merged Intra Mode Derivation (MIMD), occurrence-based intra coding (OBIC), decoder-derived intraprediction (DIP) merge mode with mode type DIMD, any mode that uses a histogram to determine the intraprediction mode of the current block, any mode enabled by the DIMD enable flag, or any subset or extension of the above modes.

[0014] In some embodiments, the merge candidate list or set may be associated with a mode category that is only used for Template-Based Intra ModeDerivation (TIMD). Modes associated with TIMD may include TIMD, Template-Based Multi-Reference Line Intra Prediction (TMRL), DIP merging with mode type TIMD or TMRL, any mode that uses the distortion between reconstruction and prediction on the template to determine the intra prediction mode of the current block, any mode enabled by the TIMD enable flag, any mode enabled by the TMRL enable flag, or any subset or extension of the above modes.

[0015] In some embodiments, the list or set of merge candidates may be associated with a mode category that is only used for multi-reference line (MRL) related modes. Modes associated with MRL may include MRL, TMRL, DIP merge and mode type MRL or TMRL, any mode enabled by the MRL enable flag, any mode enabled by the TMRL enable flag, any mode that uses a reference line that is not adjacent to the current block, or any subset or extension of the above modes.

[0016] In some embodiments, the merged candidate list or set may be associated with a mode category used only for model-related purposes. Model-related modes may include extrapolation filter-based intra prediction (EIP), DIP merging with mode type EIP, matrix-related modes, parameter-related modes, any mode that uses model coefficients and input reference samples to derive the current block prediction, any mode enabled by the EIP enable flag, or any subset or extension of the above modes.

[0017] In some embodiments, the merged candidate list or set may be associated with a mode category used only for matrix-related patterns. Matrix-related patterns may include matrix-based or matrix-weighted intraprediction (MIP), DIP merging with a mode type of MIP, matrix-related patterns, parametric-related patterns, any pattern enabled by the MIP enable flag, any pattern that derives the current block prediction using a predefined or selected matrix and an input reference sample, or any subset or extension of the above patterns.

[0018] In some embodiments, the merged candidate list or set may be associated with a mode category used only for decoder analysis. Modes associated with decoder analysis may include DIMD-related modes, TIMD-related modes, any mode for which the intra-block prediction mode is determined using decoder-side analysis, or any subset or extension of the above modes. In some embodiments, decoder-side analysis may include texture gradient analysis of the template or distortion measurement of the template. Attached Figure Description

[0019] The accompanying drawings are included in this specification to further understand this disclosure and form part of this disclosure. The drawings illustrate embodiments of this disclosure and, in conjunction with the description, explain the principles of this disclosure. It will be understood that the drawings are not necessarily drawn to scale, as some components may be shown out of proportion to their actual dimensions for clarity of the concepts presented in this disclosure.

[0020] Figure 1 Sixty-seven intra-frame prediction modes are shown, including 65 directional or angular intra-frame prediction modes.

[0021] Figure 2 The calculation of a template-based gradient histogram is conceptually illustrated, from which two intra-frame prediction modes are derived.

[0022] Figures 3A-3C Three shapes of extrapolation filter-based intra prediction (EIP) filters are shown.

[0023] Figures 4A-4C Three types of reconstructed regions for EIP are shown.

[0024] Figure 5 The template region and reference line are shown for calculating the cost of template-based multiple reference line intra prediction (TMRL).

[0025] Figure 6 An example of a neighboring block of the current block is shown.

[0026] Figure 7 An example of a video encoder that can implement intra-frame merging mode is shown.

[0027] Figure 8 This illustrates several parts of a video encoder that implements an intra-frame merging mode with at least one or more merging candidate lists or sets.

[0028] Figure 9 This conceptually illustrates the process of encoding pixel blocks using an intra-frame merging mode with one or more merging candidate lists.

[0029] Figure 10 An example of a video decoder that can implement intra-frame merging mode is shown.

[0030] Figure 11 This illustrates several parts of a video decoder that implement an intra-frame merging mode with at least one or more merging candidate lists or sets.

[0031] Figure 12 This concept illustrates the process of decoding pixel blocks using an intra-frame merging mode with one or more merging candidate lists.

[0032] Figure 13 An electronic system that implements certain embodiments of the present disclosure is shown conceptually. Detailed Implementation

[0033] In the following detailed description, numerous specific details are set forth by way of example to provide a comprehensive understanding of the related techniques. Any variations, derivatives, and / or extensions based on the techniques described herein are within the scope of this disclosure. In some cases, to avoid unnecessarily obscuring certain aspects of the techniques disclosed, well-known methods, processes, components, and / or circuits involving one or more exemplary embodiments may be presented at a relatively high level without detailed description.

[0034] I. Intra-frame prediction

[0035] A. Intra-frame prediction mode and most probable mode (MPM)

[0036] Intra-prediction methods utilize one or more reference lines adjacent to the current prediction unit (PU) and one of the intra-prediction modes to generate a prediction value for the current PU. The intra-prediction mode can be selected from a set of modes including multiple prediction directions, DC modes, and planar modes. The number of directional intra-prediction modes can be 33 or expanded to 65. By including DC and planar modes, the number of intra-prediction modes is 35 or expanded to 67. Figure 1 It showcases 67 intra-frame prediction modes, including 65 directional or angular intra-frame prediction modes (from 2 to 66).

[0037] In some implementations, if the block is not square, certain conventional angle intra-prediction modes can be adaptively replaced by wide-angle intra-prediction modes.

[0038] Certain intra-prediction modes can be identified as the set of most probable modes (MPMs) for intra-prediction of the current prediction block, and thus one of the MPMs can be selected via a signaling index. In some implementations, the MPM list is generated by considering two available neighboring intra-prediction modes (i.e., the intra-prediction modes used by neighboring blocks).

[0039] B. Decoder-Side Intra Mode Derivation (DIMD)

[0040] Decoder-Side Intra Mode Derivation (DIMD) is a technique in which one or more (e.g., two) intra-predictive modes, such as angles or orientations, are derived from reconstructed neighboring samples (templates) of a block. These two predictions are then combined with non-angular predictions (such as planar mode predictions), with weights derived from gradients. To implicitly derive the intra-predictive modes of a block, texture gradient analysis is performed at both the encoder and decoder. This process begins with an empty Histogram of Gradients (HoG), which has 65 entries corresponding to the 65 directional / angular intra-predictive modes. The magnitudes of these entries are determined during texture gradient analysis. Figure 2 The concept demonstrates the computation of gradient histograms from a template with 3 pixels, from which two intra-prediction modes (IPMs) M1 and M2 are derived.

[0041] In some implementations, when DIMD is applied, up to five intra-frame patterns can be derived from reconstructed neighboring samples, and these five predictions are combined with planar pattern predictions, with weights derived from the gradient histogram.

[0042] C. Template-Based Intra Mode Derivation (TIMD)

[0043] During mode selection, template matching methods can be applied by calculating the cost between the reconstructed sample and the predicted sample on the template. One example is Template-Based Intra Mode Derivation (TIMD). TIMD is an encoding method in which the intra-predicted mode of a coding unit (CU) is implicitly deduced at the encoder and decoder using neighboring templates, rather than the encoder explicitly communicating the specific intra-predicted mode to the decoder.

[0044] The template's predicted samples are generated using the template's reference samples for each candidate mode. The SATD (Self-Supported Target Value) between the template's predicted samples and the reconstructed samples is calculated as a cost. The top two intra-frame predicted modes with the minimum SATD are selected as TIMD modes. These two TIMD modes are then weighted and fused to generate predictions for the current CU.

[0045] D. Extrapolation filter-based intraprediction (EIP) mode

[0046] In Extrapolation filter-based intraprediction (EIP) mode, samples within the CU are predicted from the top left to the bottom right by applying an extrapolation filter to neighboring reconstructed or predicted samples. EIP mode uses a 15-tap filter for prediction, as shown below:

[0047] Among them, pred (x,y) This represents the predicted value at position (x, y) in the CU. c i For the filter coefficients, t (x-offsetXi, y-offsetYi) For reconstructing or predicting samples, the EIP filter can be derived from neighboring reconstructed samples or inherited from previous EIP coding blocks. Figures 3A-3C Three EIP filter shapes are shown. Figures 4A-4C Three types of EIP reconstruction areas are shown.

[0048] For a CU encoded in EIP mode, an EIP merge flag is signaled to indicate whether the EIP filter is inherited from a previously EIP-coded block. When the EIP merge flag is true, an EIP merge list is constructed from spatially adjacent, spatially non-adjacent, temporal, and historical candidates. The EIP merge index is then signaled to indicate the selected EIP merge candidate. The filter shape and filter coefficients of the selected candidate are subsequently inherited for encoding the CU.

[0049] When the EIP merging flag is false, the EIP filter is derived from neighboring reconstructed samples and transmits relevant syntax elements to indicate which of the three reconstruction region types and three filter shapes the CU uses. The selected filter moves horizontally or vertically within the selected reconstruction region in single-pixel steps to construct the autocorrelation matrix and cross-correlation vector.

[0050] After generating prediction samples for the CU using the EIP filter, the intra-prediction mode is derived by applying the DIMD procedure to the prediction samples. Specifically, the horizontal and vertical gradients are calculated for each prediction sample to construct a gradient histogram. Subsequently, the intra-prediction mode corresponding to the maximum histogram count is used to determine the set of low-frequency non-separable transform (LFNST), non-separable primary transform (NSPT), or multiple transform selection (MTS) transforms.

[0051] E. Template-based multiple reference line intra prediction (TMRL)

[0052] Template-based multiple reference line intra prediction (TMRL) mode combines reference lines with prediction patterns and uses template matching to construct a list of candidate combinations. Figure 5 The template region and reference lines used to calculate the TMRL cost are shown. The indices of the candidate combination list are signaled. Extended reference lines start from reference line 1. Reference line 0 is used for template matching. The SAD cost (TMRL cost) on the template region is calculated between the predicted value (generated from 50 combinations) and the reconstructed value. The 20 combinations with the lowest SAD cost are sorted in ascending order to form the TMRL candidate list.

[0053] F. Intra-frame prediction using merged gradient histograms

[0054] Merged Intra Mode Derivation (MIMD), calculated using Merged Histogram of Gradients (MHoG), is an intra-frame prediction mode. Similar to Decoder-Side Intra Mode Derivation (DIMD), up to five MIMD modes can be derived from MHoG and then blended. The process of deriving the modes and blending weights is the same as deriving the DIMD modes and blending weights from HoG. However, unlike DIMD, MHoG is not calculated directly by analyzing template samples, but rather based on information extracted from neighboring blocks.

[0055] Specifically, N neighboring blocks are considered. If a neighboring block is encoded using at least one directional intra-prediction mode, then that neighboring block is considered. If neighboring block i is encoded using DIMD or MIMD, then its HoG or MHoG is directly used as... H i ,in H i (m) represents the magnitude of the directional pattern m in HoG, where m ranges from 0 to M, and M is the maximum number of intra-frame prediction patterns. Consider... H i Normalization can be used at this time.

[0056] If neighboring block i is encoded using a non-DIMD intra-predictive directional pattern m, then derive the HoG for that neighboring block. H i ,in H i (k) = 0, k = 0, 1, … M, k ≠ m, and H i (m) = A, where the value of A depends on the size of the current block. For neighboring blocks encoded using SGPM or TIMD, if multiple directional intra-prediction modes exist, then in the derivation... H i Two directional modes can be considered simultaneously. Subsequently, the MHoG can be calculated using all HoGs extracted from available neighboring blocks. The calculation method is as follows:

[0057] MHoG can be used to calculate MIMD modes and weights. The five directional modes with the highest amplitude in the MHoG and their weights are selected as the directional modes and weights of MIMD. In some embodiments, MIMD can be used as a sub-mode of DIMD for communication.

[0058] G. Occurrence-based Intra Coding (OBIC)

[0059] On-Bound Intra-Encoding / Decoding (OBIC) derives the intra-prediction mode for the current block based on the sample-by-sample occurrence of intra-modes within the block's spatial neighborhood. To do this, adjacent and non-adjacent spatially neighboring blocks are examined, and their intra-prediction modes are collected into an occurrence histogram. Unlike the Histogram of Gradient (HoG) in DIMD, the OBIC method uses a Histogram of Occurrence (HoC), which contains intra-modes and their sample-by-sample occurrences. The occurrence value is calculated based on the number of samples encoded in that neighborhood using a particular intra-prediction mode. For example, if a block of uiWidth × uiHeight is encoded using the IPM mode, the occurrence of that mode in that block is calculated as follows: HoC[IPM] += uiWidth uiHeight; Where uiWidth and uiHeight are the width and height of the spatial neighboring blocks, respectively.

[0060] The occurrence of existing patterns in spatially neighboring blocks is accumulated into a histogram. Up to five angular patterns with the highest frequency are selected from the HoC, along with planar patterns or block vector-based predictions (same as DIMD), and the predictions of the selected patterns are used for the final prediction. Some blocks use multiple intra-frame patterns for prediction. In this case, intra-frame patterns from all blocks of this type are selected and used to create the OBIC histogram; for example, DIMD uses up to 5 angular patterns, TIMD uses up to 2 patterns, 2 patterns from SGPM, and OBIC uses up to 5 angular patterns.

[0061] Furthermore, the Virtual Intra-Prediction Mode (VIPM) for MIP, IntraTMP, IBC, and EIP blocks is considered only in the inter-frame slices when creating the OBIC mode histogram. The calculation of the hybrid weights is similar to that of the DIMD mode, but the OBIC uses the generated values ​​instead of the gradient values ​​in the template. Additionally, the weights for the planar mode are determined in a similar manner to the DIMD mode.

[0062] II. Intra-frame merging mode

[0063] In some embodiments, an intra-frame merging scheme is employed to improve intra-frame prediction. This intra-frame merging mode can also be referred to as decoder-derived intra-prediction (DIP) merging mode. The merging scheme is used to inherit (or reference) information from previous coded blocks and utilize the inherited encoding / decoding information (or inherited information) to predict the current block.

[0064] For intra-blocks, the associated intra-MPM inherits only the intra-prediction mode signaled in the previous coded block (e.g., mode index pointing to angular prediction mode, DC, or planar mode, from the upper neighboring block and / or left neighboring block). On the other hand, intra-merging schemes offer a more flexible inheritance process and / or more efficient inheritance information. For example, in some embodiments, under an intra-merging scheme, the inherited information can be arbitrary mode information, arbitrary sample information, arbitrary block information, arbitrary model information, and / or any information related to prediction generation. Examples of inherited information (or encoding / decoding information) are given in Section II.B below.

[0065] In some embodiments, the current block can find a previous coded block containing inherited information using various merging methods described in Section II.C below. In some embodiments, an intra-frame merging scheme is used to obtain information related to generating the current block prediction using a target mode. In some embodiments, the intra-frame merging scheme is enabled or disabled according to a shortcut syntax setting. The target mode and shortcut syntax settings are described in Section II.D below.

[0066] A. Merge Candidate List and Pattern Categories

[0067] In some embodiments, when generating a prediction for the current block encoded by the target pattern, one or more inherited blocks are selected from a list of merge candidates or a plurality of merge candidates (e.g., a set of merge candidates). The target pattern then uses the inheritance information of the inherited blocks to generate a prediction.

[0068] In some embodiments, the inheritance information of different merge candidates in a merge candidate list or set may belong to different target modes, i.e., the merge candidates may be of mixed modes. For example, the inheritance information of merge candidates may be related to DIMD, and / or TIMD, and / or MRL, and / or MIP, and / or EIP. A merge list or set may contain merge candidates of different target modes (mixed modes).

[0069] In some embodiments, the current block may be predicted using DIMD, TIMD, MRL, MIP, or EIP based on selected merging candidates. In some embodiments, a merging candidate list or set is constructed only for the current block. In some embodiments, the merging candidate list or set may be a unified list or set used for the current block, for example, for generating intra-frame lumen prediction. In some embodiments, the target mode used by the current block depends on the candidates selected from the merging candidate list or set.

[0070] In some embodiments, at least one or more candidate lists or sets are constructed (or generated) for the current block. For example, in some embodiments, for each mode category, a candidate list or set is constructed containing one or more candidates belonging to (or associated with) the same mode category. For example, in some embodiments, there may be mode categories that are only for Decoder-Side Intra Mode Derivation (DIMD) related modes, mode categories that are only related to Template-Based Intra Mode Derivation (TIMD), mode categories that are only related to models, mode categories that are only related to multiple reference lines (MRL), mode categories that are only related to matrices, and / or other mode categories, etc.

[0071] The DIMD-related modes may include DIMD, Merged Intra Mode Derivation (MIMD), occurrence-based intra coding (OBIC), decoder-derived intra prediction (DIP) combined with mode type DIMD, any mode that uses histograms to determine the intra prediction mode of the block, any mode with an enable flag or enabled under the DIMD enable flag (e.g., a mode used only when the DIMD enable flag indicates that it is enabled), and / or any subset or extension of the above modes.

[0072] The TIMD-related modes may include TIMD, template-based multi-reference line intra-prediction (TMRL), DIP merging with mode type TIMD or TMRL, any mode that uses the distortion on the template between reconstruction and prediction (from each available candidate intra-prediction mode / combination) to determine the intra-prediction mode of the block, any mode with an enable flag or enabled under the TIMD enable flag (e.g., a mode signaled or used only when the TIMD enable flag indicates that it is enabled), any mode with an enable flag or enabled under the TMRL enable flag (e.g., a mode signaled or used only when the TMRL enable flag indicates that it is enabled), and / or any subset or extension of the above modes.

[0073] The MRL-related modes may include MRL, TMRL, DIP combined with mode type MRL or TMRL, any mode with an enable flag or enabled under the MRL enable flag (e.g., a mode that is signaled or used only when the MRL enable flag indicates that it is enabled), any mode with an enable flag or enabled under the TMRL enable flag (e.g., a mode that is signaled or used only when the TMRL enable flag indicates that it is enabled), and / or any mode that uses a reference line that is not adjacent to the block.

[0074] The model-related pattern can refer to EIP, DIP combined and the pattern type is EIP or matrix / parameter related, any pattern that uses model coefficients (parameters) and input reference samples to derive the prediction of the block, any pattern with an enable flag or enabled under the EIP enable flag (e.g., a pattern that is signaled or used only when the EIP enable flag indicates that it is enabled), and / or any subset or extension of the above patterns.

[0075] The matrix-related mode may include MIP, DIP merging with mode type MIP or matrix / parameter-related mode, any mode with an enable flag or enabled under the MIP enable flag (e.g., a mode that is signaled or used only when the MIP enable flag indicates that it is enabled), any mode that derives the prediction of the block using a predefined or selected matrix and an input reference sample, and / or any subset or extension of the above modes.

[0076] In some embodiments, one mode category is associated only with decoder analysis-related modes, another with model-related modes, another with MRL-related modes, and / or another with matrix-related modes. The decoder analysis-related modes may include DIMD-related modes, TIMD-related modes, any mode for which the intra-prediction mode of the block is determined using decoder-side analysis, and / or any subset or extension of the above modes. (For example, decoder analysis-related modes may replace the pass-through index for texture gradient analysis of the template and / or distortion measurement of the template.)

[0077] For some embodiments, the DIMD-related mode may include DIMD, MIMD, OBIC, DIP combination with mode type DIMD, any mode that uses a histogram to determine the intra-prediction mode of the block, any mode with an enable flag or enabled under the DIMD enable flag (e.g., a mode used only when the DIMD enable flag indicates it is enabled), and / or any subset or extension of the above modes. The TIMD-related mode may include TIMD, TMRL, DIP combination with mode type TIMD or TMRL, any mode that uses the distortion between reconstruction and prediction (from each available candidate intra-prediction mode / combination) on the template to determine the intra-prediction mode of the block, any mode with an enable flag or enabled under the TIMD enable flag (e.g., a mode used only when the TIMD enable flag indicates it is enabled), any mode with an enable flag or enabled under the TMRL enable flag (e.g., a mode used only when the TMRL enable flag indicates it is enabled), and / or any subset or extension of the above modes.

[0078] In some embodiments, one mode category is used only for parameter-related modes, another mode category is used only for DIMD-related modes, another mode category is used only for MRL-related modes, and / or another mode category is used only for TIMD-related modes. The parameter-related modes may include EIP-related modes, MIP-related modes, any mode that uses a model or matrix (e.g., a predefined model or matrix in a standard and / or a model or matrix derived based on regression or derivation or instantaneous decision-making techniques that may (but are not limited to) be performed on a template instead of using intra-prediction directions) to determine the intra-predictor for the block, and / or any subset or extension of the above modes. For example, the model-related modes may include EIP, DIP combined with a mode type of EIP or matrix / parameter-related, any mode that uses model coefficients (parameters) and input reference samples to derive predictions for the block, any mode with an enable flag or enabled under the EIP enable flag (e.g., a mode used only when the EIP enable flag indicates that it is enabled), and / or any subset or extension of the above modes. The matrix-related modes include MIP (matrix-based or matrix-weighted intra-frame prediction), DIP combination and mode type MIP or matrix / parameter-related, any mode with an enable flag or enabled under the MIP enable flag (e.g., a mode used only when the MIP enable flag indicates that it is enabled), any mode that derives the prediction of the block using a predefined or selected matrix and an input reference sample, and / or any subset or extension of the above modes.

[0079] In some embodiments, at least one or at least two merge candidate lists or sets are constructed for the current block. To construct the merge candidate list or set, different thresholds (e.g., similarity check thresholds for inserting candidates into the list or set) and / or designs and / or methods and / or patterns may be used based on the current block's block width, block height, and / or block area; the block width, block height, and block area of ​​inherited blocks (e.g., blocks providing inheritance information); and / or explicit signaling on the block (e.g., flags / indexes for signaling the current block and / or refinement flags for signaling the current block, indicating whether the pattern is refined, where refinement may be, but is not limited to, template refinement of the pattern); sequence parameter sets (SPS); picture parameter sets (PPS); sequences; slices; and / or tiles. In some embodiments, which merge candidate list or set to construct for the current block is determined based on the current block's block width, block height, and / or block area. In some embodiments, a merge candidate list or set is determined for the current block based on explicit signaling on the block (e.g., a flag / index for signaling the current block). For example, in response to an explicit signaling instruction on the current block to apply an intra-merge mode to the current block (and the mode type is associated with a decoder analysis-related mode category), a merge candidate list or set (containing one or more candidates belonging to a decoder analysis-related mode category) is constructed for the current block. For example, in response to an explicit signaling instruction on the current block to apply an intra-merge mode to the current block (and the mode type is associated with a parameter-related mode category, such as EIP), a merge candidate list or set (containing one or more candidates belonging to a parameter-related mode category) is constructed for the current block. In some embodiments, the maximum number of candidates allowed in the merge candidate list is a maximum value (e.g., 12).

[0080] B. Inherited Information

[0081] Inheritance information settings are defined, and the prediction for the current block is generated using the target mode. When the target mode is DIMD mode, the inheritance information may include one or more of the following information (1a) to (1d): (1a) Histogram (bar) values ​​of one or more available DIMD intra-prediction modes (such as DC, planar and / or orientation prediction modes); (1b) N intra-frame prediction patterns suggested by histogram values ​​(with the highest N histogram bars); (1c) DIMD weighted information and / or whether it is fused; (1d) Reference line information and / or wide-angle conditions.

[0082] When the target mode is TIMD mode, the inheritance information may include one or more of the following inheritance information (2a) to (2d): (2a) TIMD cost of one or more available TIMD intra-prediction modes (such as DC, planar and / or directional prediction modes); (2b) N intra-frame prediction modes proposed by TIMD cost (with minimum N TIMD costs). (2c) TIMD weighted information and / or whether it is fused; (2d) Reference line information and / or wide-angle conditions.

[0083] When the target mode is MRL mode, the inheritance information may include one or more of the following inheritance information (3a) to (3d): (3a) One or more reference lines are combined with intra-frame prediction modes (such as DC, planar and / or directional prediction modes); (3b) N intra-frame prediction modes proposed by TIMD cost or TMRL cost (with minimum N TIMD cost or TMRL cost). (3c) Weighted information and / or whether it is fused; (3d) Reference line information and / or wide-angle conditions.

[0084] When the target mode is EIP mode, the inheritance information may include one or more of the following inheritance information (4a) to (4c): (4a) Filter shape; (4b) All or part of the filter coefficients; (4c) Templates used to derive filter coefficients.

[0085] When the target mode is an intra-frame combining mode or a decoder-derived intra-frame prediction (DIP) combining mode, the inheritance information may include one or more of the inheritance information (1a) to (4c) mentioned above (inheritance information when the target mode is DIMD, TIMD, MRL, or EIP) and / or codec mode inheritance information. The codec mode inheritance information (or codec mode inheritance information) may include the codec mode (e.g., whether it is a DIMD-related mode, whether it is a TIMD-related mode, whether it is an MRL-related mode, whether it is an SGPM-related mode, whether it is an ISP-related mode, whether it is an intraTMP-related mode, whether it is an MPM-related mode, whether it is an MIP-related mode, whether it is an EIP-related mode, and / or any mode related to a predefined intra-frame mode) and / or the corresponding information of the codec mode.

[0086] In some embodiments, one or more of the inheritance information (1a) to (4c) can be used to obtain inheritance information when the target mode is DIMD, TIMD, MRL or EIP.

[0087] In some embodiments, codec mode inheritance information is included in the inheritance information, and / or the codec mode in the codec mode inheritance information is used to determine the corresponding information further included in the DIP merge inheritance information. For example, when the codec mode in the codec mode inheritance information is an MRL related mode, only the corresponding information in the inheritance information (3a) to (3d) is included in the DIP merge inheritance information.

[0088] In some embodiments, the codec mode in the codec mode inheritance information comes from previous codec blocks. Previous codec blocks may store hybrid mode inheritance information. The hybrid mode inheritance information stored in previous codec blocks can be referenced by subsequent codec blocks (e.g., the current block). For example, for each block containing hybrid mode information, the hybrid mode information can be stored and / or referenced by subsequent codec blocks. For each predefined unit containing hybrid mode information, the hybrid mode information can be stored and / or referenced by subsequent codec blocks. This unit can be any predefined region or k×k grid, where k can be 2, 4, 8, 16, or any predefined positive integer.

[0089] In some embodiments, the codec mode in the codec mode inheritance information can be an EIP. Previous codec blocks generate corresponding EIP inheritance information (e.g., filter shape and / or filter coefficients) and / or store DIP merge inheritance information (codec mode and / or corresponding information).

[0090] In some embodiments, the codec mode in the codec mode inheritance information can be SGPM (Spatial Geometric Partition Mode). This codec mode generates multiple prediction hypotheses from different intra-frame prediction modes and combines the prediction hypotheses to form a final prediction using weights based on geometric partition lines (similar to inter-frame GPM). Previous codec blocks generate corresponding SGPM inheritance information (e.g., intra-frame prediction modes and / or partition lines and / or weights) and / or store DIP merge inheritance information (codec mode and / or corresponding information).

[0091] In some embodiments, the encoding / decoding mode in the encoding / decoding mode inheritance information can be an ISP (intra-sub-partition). This encoding / decoding mode divides the current block into several sub-partitions and uses reconstructed samples adjacent to the current sub-partition (possibly from the previous sub-partition) as reference samples to generate predictions for each sub-partition. Previous encoding / decoding blocks generate corresponding ISP inheritance information (e.g., one or more intra-prediction modes and / or partitioning methods) and / or store DIP merge inheritance information (encoding / decoding modes and / or corresponding information).

[0092] In some embodiments, the codec mode in the codec mode inheritance information can be IntraTMP (intra template matching prediction). This codec mode uses template matching to find a displacement (i.e., a block vector) within a predefined range of the current image to reference a reference block, and generates predictions using reconstructed samples of the reference block. Previous codec blocks generate corresponding intraTMP inheritance information (e.g., one or more block vectors) and / or store DIP merge inheritance information (codec mode and / or corresponding information).

[0093] In some embodiments, the codec mode in the codec mode inheritance information can be a MIP (matrix-based intra prediction). This mode generates predictions using a predefined matrix and predefined neighboring or non-neighboring reference samples. Previous codec blocks generate corresponding MIP inheritance information (e.g., one or more matrix indicators and / or one or more matrix coefficients of the indicated matrix and / or block width and / or block height and / or block area and / or block position) and / or store DIP merge inheritance information (codec mode and / or corresponding information).

[0094] In some embodiments, to reduce storage requirements, instead of storing all DIP merging information (which can be used for reference), only a subset of the DIP merging information is stored. For example, only three or any predefined positive number of DIP merging information from all generated prediction information are stored. For example, this subset could be the first three of all generated prediction information, such as the first three generated intra-frame prediction modes or histogram (bar) values ​​when inheritance information is associated with DIMD. In some embodiments, the selected subset of DIP merging information always includes codec mode inheritance information.

[0095] In some embodiments, the inheritance information of the target mode depends on the inherited codec mode value of the selected merge candidate. In some embodiments, if the codec mode of the selected merge candidate is DIMD, TIMD, EIP, or MRL, the inherited codec mode value is the same as the codec mode (i.e., DIMD, TIMD, EIP, or MRL, respectively).

[0096] In some embodiments, for blocks encoded in DIP merge mode, the inheritance mode type value is set as follows: When the current block is encoded in DIP merge mode, the block selects a merge candidate to generate a prediction. If the selected merge candidate for the current block is encoded in DIMD, TIMD, MRL, or EIP, the inheritance mode type value for the current block is set to DIMD, TIMD, MRL, or EIP, respectively. If the selected merge candidate for the current block is encoded in DIP merge mode, the inheritance mode type value for the current block is set to the inheritance mode type value of the selected merge candidate. In some embodiments, if the inheritance mode type is DIMD, the inheritance information setting may include one or more of inheritance information (1a)-(1d). In some embodiments, if the inheritance mode type is TIMD, the inheritance information setting may include one or more of inheritance information (2e)-(2d). In some embodiments, if the inheritance mode type is MRL, the inheritance information setting may include one or more of inheritance information (3a)-(3d). In some embodiments, if the inheritance mode type is EIP, the inheritance information setting may include one or more of inheritance information (4a)-(4c).

[0097] C. Merging Candidates

[0098] Inheritance information is obtained from previous codec blocks according to the inheritance block settings. In some embodiments, one or more candidates in the merge candidate list may include spatially adjacent candidates and / or non-adjacent candidates, historical candidates, temporal candidates, default candidates, or any subset of the above candidates. These candidates can provide inheritance information from previous codec blocks (also known as inheritance blocks).

[0099] In some embodiments, after constructing a merge candidate list, one or more candidates are selected from the list for use in the current block. The selection method may rely on an explicit signal-to-index or implicitly select one or more (promising) candidates. For example, in some embodiments, the first one or more candidates with the lowest cost are selected. For example, an explicit index indicates one or more candidates in the reordering list as the selected candidates. Cost calculation and / or list reordering may rely on a template matching process that calculates the cost based on the distortion between the prediction on the template (using a particular candidate) and the reconstruction on the template. Candidates in the list are reordered in ascending order of cost.

[0100] Spatial adjacency candidates come from the neighboring blocks of the current block. A neighboring block can be the same as one of the five spatial neighboring blocks used in the inter-frame merge mode, or any subset of the current block's neighboring blocks. For example, to add a spatial adjacency candidate to the merge list, such as... Figure 6 As shown, Figure 6 This shows an example of adjacent blocks of the current block, with the inclusion order being A1. B1 A0 B0 B2 or B1 A1 B0 A0 B2. Non-adjacent candidates are selected from the search range surrounding (but not adjacent to) the current block. The search range can be the same as that for non-adjacent candidates in inter-frame merge mode. Non-adjacent candidates can come from predefined locations and be added to the merge list in a predefined inclusion order. For example, the predefined locations and inclusion order are the same as for non-adjacent candidates in inter-frame merge mode.

[0101] Historical candidates are selected from a history-based buffer array. This buffer array stores inheritance information for each valid previous codec block, where a valid previous codec block refers to any block containing inheritance information.

[0102] The timing candidate is obtained from inherited information stored in one or more previously encoded / decoded images. A timing candidate can be obtained when the current slice / image is a non-intra-frame slice / image. In some embodiments, the timing candidate may come from certain predefined locations in previously encoded / decoded slices / images (…). , The predefined location is located within the corresponding area of ​​the current encoded / decoded block. In some embodiments, the predefined location is located outside the corresponding area of ​​the current encoded / decoded block. In some embodiments, the predefined location may be determined based on the position, width, and height of the current block. In some embodiments, the predefined location may be determined based on the position of the current block and certain predefined fixed xy distances.

[0103] In some embodiments, the previously encoded image is an image in a reference list. In some embodiments, the previously encoded image is the same as the image at the same position in a normal inter-frame merge mode. In some embodiments, there may be more than one selected / predefined previously encoded image. In some embodiments, the previously encoded image may be signaled in the image / slice header. The reference list and reference index are signaled in the image / slice header. For example, L0[0] is indicated. Another example, L1[0] is signaled. In some embodiments, the previously encoded image is selected from a set of images with certain predefined rules. In some embodiments, the previously encoded image is selected from images in a reference list. This selection may be determined based on the picture order count (POC), and / or POC distance, and / or quantization parameter (QP), and / or QP difference. For example, the image with a smaller POC is selected. Another example, the image with a larger POC is selected. For example, the image with the smallest POC distance from the current image is selected. Another example, the image with a smaller QP is selected. Another example, the image with a larger QP is selected. Another example, the image with a smaller QP difference from the current image is selected. In some embodiments, the previously encoded / decoded image is the most recently encoded / decoded I-image. In some embodiments, the rules for selecting / not selecting previously encoded / decoded images described in the preceding paragraphs can be combined. For example, in some embodiments, the image with the smallest QP is selected from an unscaled image list.

[0104] Default candidates are candidates that contain predefined default information, and / or the default information is derived from candidates already included in the merged candidate list. In some embodiments, the default mode of the default candidate can be derived using the Merged IntraMode Derivation (MIMD) scheme and / or the occurrence-based intracoding (OBIC) scheme and / or the intraprediction (EIP) derivation scheme based on extrapolation filters and / or any existing or mentioned intra scheme (e.g., template-based intramode derivation (TIMD), Decoder-Side IntraModeDerivation (DIMD), EIP, and / or multiple reference lines (MRL)) and / or any variant of any existing or mentioned intra scheme.

[0105] D. Target mode settings and shortcut syntax settings

[0106] In some embodiments, when generating predictions for the current block, the target mode of the current block determines how to utilize inherited information obtained from merge candidates to generate predictions. In other words, each target mode has its own specific settings for prediction generation. For example, in some embodiments, when using a DIMD merge mode (e.g., when the target mode is a DIMD-related mode), DIMD inherited information obtained from one or more predefined candidates is used to determine the prediction information required to generate the current block prediction, depending on the inherited block settings. For example, inherited information refers to histogram values ​​from previous codec blocks and, as with regular DIMD, is used to determine one or more intra-prediction modes (a type of prediction information) and / or corresponding weights for the current block. Subsequently, consistent with regular DIMD, the prediction assumptions of each derived intra-prediction mode are combined through a fusion process to form the final prediction for the current block.

[0107] In some embodiments, when using a TIMD merging mode (e.g., when the target mode is a TIMD-related mode), TIMD inheritance information obtained from one or more predefined candidates (e.g., each candidate provides N intra-prediction modes and TIMD weighting information, such as {IPM1, IPM2, W1, W2}, and / or whether to merge, and / or wide-angle conditions) is used to determine the prediction information required to generate the current block prediction, based on the inherited block settings. For example, the merge candidate list is constructed and reordered based on the cost during the template matching process. Template size and template cost calculation can be unified with regular TIMD. After reordering the TIMD merge candidates, the top 2 or any predefined number of candidates in the list are reserved for signaling. Subsequently, unified with regular TIMD, the prediction assumptions of each inherited intra-prediction mode are combined through a fusion process to form the final prediction for the current block.

[0108] In some embodiments, when using an MRL merging mode (e.g., when the target mode is an MRL-related mode), inheritance information obtained from one or more predefined candidates (e.g., each candidate jointly provides one or more reference lines with intra-prediction modes (IPM1 and MRL1) and / or whether to merge, and / or wide-angle conditions) is used to determine the prediction information required to generate the current block prediction, based on the inheritance block settings. For example, the merge candidate list is constructed and reordered based on the cost during the template matching process. Template size and template cost calculation can be unified with regular TMRL. After reordering the MRL merge candidates, the first two or any predefined number of candidates in the list are reserved for signaling. Subsequently, in accordance with regular intra-frame prediction, for the example of inherited IPM1 and MRL1, the prediction of the inherited intra-frame prediction mode and the prediction of the inherited reference line form the final prediction of the current block; for the example of inherited IPM1 and MRL1 and IPM2 and MRL2, each inherited intra-frame prediction mode and the prediction hypothesis of the corresponding inherited reference line are combined through fusion processing to form the final prediction of the current block; for the example of inherited IPM1 and MRL1 / W1 and IPM2 and MRL2 / W2, each inherited intra-frame prediction mode and the prediction hypothesis of the corresponding inherited reference line are combined through fusion processing and W1 and W2 to form the final prediction of the current block.

[0109] In some embodiments, when using intra-frame merging mode (DIP merging mode), inherited mode information is used to generate the prediction for the current block. Candidate inherited information may refer to the encoding / decoding mode and / or corresponding information. The current block obtains its own prediction information from the inherited information.

[0110] An example of encoding / decoding mode for inherited mode information related to DIMD is applying DIMD merge mode or regular DIMD to the current block.

[0111] An example of encoding / decoding mode for inherited mode information related to TIMD is applying TIMD merge mode or regular TIMD to the current block.

[0112] An example of encoding / decoding modes that inherit mode information related to MRL is applying MRL merging mode to the current block or using MRL or TMRL for regular intra-frame prediction.

[0113] An example of encoding / decoding modes related to EIP is applying EIP merge mode or EIP derivation mode to the current block.

[0114] In some embodiments, only one candidate (e.g., the first available candidate) is used to determine the prediction information for the current block based on the inherited block settings. In some embodiments, one or more candidates are used to determine the prediction information for the current block. For example, all available candidates are used to determine the prediction information for the current block. For example, assume a predefined maximum number of N. The first N available candidates are used to determine the prediction information for the current block according to the inspection order. If the total number of available candidates is less than N, all available candidates are used to determine the prediction information for the current block.

[0115] In some embodiments, an additional flag is signaled before the DIMD flag to indicate whether DIP merging mode is used. If DIP merging mode is used, an additional candidate index is signaled. In some embodiments, the candidate index is encoded using truncated unary coding. In some embodiments, each bin of the candidate index is context-coded using a separate context.

[0116] Any combination of the methods proposed in this invention can be applied. The methods described in this specification can be enabled and / or disabled based on implicit rules (e.g., block width, height, or area) or explicit rules (e.g., block, chunk, slice, image, SPS, or PPS level syntax). For example, the proposed methods are applied when the block area is less than / greater than a certain threshold. The term "block" in this invention can refer to TU / TB, CU / CB, PU / PB, predefined regions, or CTU / CTB.

[0117] All of the methods proposed above can be implemented in the encoder and / or decoder. For example, any of the proposed methods can be implemented in the inter-frame / intra-frame / IBC / prediction / transform module of the encoder, and / or in the inter-frame / intra-frame / IBC / prediction / transform module of the decoder. Alternatively, any of the proposed methods can be implemented as circuitry coupled to the inter-frame / intra-frame / IBC / prediction / transform module of the encoder and / or decoder to provide the required information to the inter-frame / intra-frame / IBC / prediction / transform module.

[0118] III. Example Video Encoder

[0119] Figure 7An example video encoder 700 capable of implementing intra-frame merging mode is shown. As shown, the video encoder 700 receives an input video signal from a video source 705 and encodes the signal into a bitstream 795. The video encoder 700 has multiple components or modules for encoding the signal from the video source 705, including at least some components selected from a transform module 710, a quantization module 711, an inverse quantization module 714, an inverse transform module 715, an intra-frame prediction estimation module 724, an intra-frame prediction module 725, a motion compensation module 730, a motion estimation module 735, a loop filter 745, a reconstructed image buffer 750, an MV buffer 765, an MV prediction module 775, and an entropy encoder 790. The motion compensation module 730 and the motion estimation module 735 belong to the inter-frame prediction module 740. The intra-frame prediction module 725 and the intra-frame prediction estimation module 724 belong to the current image prediction module 720, which uses the reconstructed samples of the current image as reference samples for predicting the current block.

[0120] In some embodiments, modules 710–790 are software instruction modules executed by one or more processing units (e.g., processors) of a computing device or electronic device. In some embodiments, modules 710–790 are hardware circuit modules implemented by one or more integrated circuits (ICs) of an electronic device. Although modules 710–790 are illustrated as independent modules, some of these modules may be combined into a single module.

[0121] Video source 705 provides an uncompressed raw video signal, presenting pixel data for each video frame. Subtractor 708 calculates the difference between the raw video pixel data of video source 705 and the predicted pixel data 713 of motion compensation module 730 or intra-frame prediction module 725, as a prediction residual 709. Transform module 710 converts this difference (or residual pixel data or residual signal 708) into transform coefficients (e.g., by performing a discrete cosine transform, DCT). Quantization module 711 quantizes the transform coefficients into quantized data (or quantization coefficients) 712, which are then encoded into a bitstream 795 by entropy encoder 790.

[0122] The inverse quantization module 714 inverse-quantizes the quantized data (or quantization coefficients) 712 to obtain transform coefficients 718. The inverse transform module 715 performs an inverse transform on the transform coefficients 718 to generate a reconstruction residual 719. The reconstruction residual 719 is added to the predicted pixel data 713 to generate reconstructed pixel data 717. In some embodiments, the reconstructed pixel data 717 is temporarily stored in the line buffer 727 (or intra-frame prediction buffer) for intra-frame image prediction and spatial MV prediction. After being filtered by the loop filter 745, the reconstructed pixels are stored in the reconstructed image buffer 750. In some embodiments, the reconstructed image buffer 750 is external memory to the video encoder 700. In some embodiments, the reconstructed image buffer 750 is internal memory to the video encoder 700.

[0123] The intra-frame image estimation module 724 performs intra-frame prediction based on the reconstructed pixel data 717 to generate intra-frame prediction data. The intra-frame prediction data is provided to the entropy encoder 790 and encoded into the bitstream 795. The intra-frame prediction data is also used by the intra-frame prediction module 725 to generate prediction pixel data 713.

[0124] The motion estimation module 735 performs inter-frame prediction by generating MVs (Motion Rendering Values) that reference pixel data from previously decoded frames stored in the reconstructed image buffer 750. These MVs are then provided to the motion compensation module 730 for generating predicted pixel data.

[0125] Instead of encoding the complete actual MV into the bitstream, the video encoder 700 uses MV prediction to generate a predicted MV and encodes the difference between the MV used for motion compensation and the predicted MV as residual motion data and stores it in the bitstream 795.

[0126] The MV prediction module 775 generates a predicted MV based on a reference MV generated from the encoding of the previous video frame, i.e., a motion-compensated MV used to perform motion compensation. The MV prediction module 775 retrieves the reference MV of the previous video frame from the MV buffer 765. The video encoder 700 stores the MV generated for the current video frame in the MV buffer 765 as a reference MV for generating the predicted MV.

[0127] The MV prediction module 775 generates a predicted MV using a reference MV. The predicted MV can be calculated through spatial MV prediction or temporal MV prediction. The difference (residual motion data) between the predicted MV and the motion compensation MV (MC MV) of the current frame is encoded into the bitstream 795 by the entropy encoder 790.

[0128] The entropy encoder 790 encodes various parameters and data into a bitstream 795 using entropy coding techniques such as context-adaptive binary arithmetic coding (CABAC) or Huffman coding. The entropy encoder 790 encodes various header elements, flags, quantization transform coefficients 712, and residual motion data as syntax elements into the bitstream 795. The bitstream 795 is then stored in a storage device or transmitted to the decoder via a communication medium such as a network.

[0129] The loop filter 745 performs filtering or smoothing operations on the reconstructed pixel data 717 to reduce coded artifacts, especially at pixel block boundaries. In some embodiments, the filtering or smoothing operations performed by the loop filter 745 include a deblocking filter (DBF), sample adaptive offset (SAO), and / or adaptive loop filter (ALF). In some embodiments, a luma mapping with chroma scaling (LMCS) is performed before the loop filter.

[0130] Figure 8 This diagram illustrates a portion of the video encoder 700 that implements an intra-frame merging mode, which has at least one or more lists or sets of merging candidates. Specifically, the diagram shows the components involved in generating the current block prediction using the intra-frame merging mode.

[0131] As shown in the figure, the intra-frame prediction module 720 uses reference samples stored in the line buffer 727 to generate predictions as prediction pixel data 713 based on a set of encoding / decoding information 835 provided by the candidate extraction module 830. The reference samples are reconstructed samples from neighboring regions of the current block in the current image. This set of encoding / decoding information may include the inheritance information described in Section II.B above. Based on the target mode used to predict the current block, the intra-frame prediction module 720 can perform prediction of the current block according to a set of target mode-specific settings described in Section II.D. The target mode may be indicated in the encoding / decoding information 835 or provided by the entropy encoder 790.

[0132] The candidate extraction module 830 provides encoding / decoding information 835 based on inheritance information stored in the inheritance information memory 820 and the selected merging candidate 815. The candidate extraction module 830 selects a merging candidate 815 from the merging candidate list according to the merging index provided by the entropy encoder 790. Candidates in the merging candidate list may include spatially adjacent candidates, non-adjacent candidates, historical candidates, temporal candidates, or default candidates. Each merging candidate may correspond to a position associated with a previous encoding / decoding block to provide a set of inheritance information that can be inherited by the current block. A detailed description of the merging candidates is given in Section II.C above. The inheritance information of the selected merging candidate 815 is used to generate the encoding / decoding information 835 for the current block prediction.

[0133] The merge candidate list may be one of multiple merge candidate lists 811-816 constructed by the intra-frame merge candidate list builder 810. In some embodiments, each merge candidate list may be associated with a different mode category, such that the merge candidates in that merge candidate list are only used for that mode category. Examples of such mode categories include those associated with DIMD, TIMD, MRL, model, matrix, and / or decoder-side analysis. Descriptions of the different mode categories are given in Section II.A above.

[0134] Figure 9 A conceptual illustration of a process 900 for encoding pixel blocks using an intra-frame merging mode employing one or more merging candidate lists is presented. In some embodiments, one or more processing units (e.g., processors) of a computing device implementing encoder 700 execute process 900 by executing instructions stored in a computer-readable medium. In some embodiments, an electronic device implementing encoder 700 executes process 900.

[0135] The encoder receives the data to be encoded in frame 910, which is the pixel of the current block in the current image.

[0136] In block 920, the encoder constructs one or more merge candidate lists or sets for the current block, each merge candidate corresponding to a set of codec information inherited from previous codec blocks. In some embodiments, the encoder constructs at least one merge candidate list or set for the current block.

[0137] In some embodiments, each merge candidate list or set is associated with a pattern category. A first merge candidate list or set may be associated with a first pattern category, and a second merge candidate list or set may be associated with a second, different pattern category. The merge candidate list or set may be associated with a pattern category used only for DIMD-related purposes, or with a pattern category used only for TIMD-related purposes, or with a pattern category used only for MRL-related purposes, or with a pattern category used only for model-related purposes, or with a pattern category used only for matrix-related purposes, or with a pattern category used only for decoder analysis-related purposes. Detailed descriptions of the various pattern categories are given in Section II.A above.

[0138] Each merge candidate in the list or set of merge candidates associated with a mode category corresponds to a set of codec information belonging to (or associated with) that mode category. This set of codec information may include the inheritance information described in Section II.B above. A detailed description of the merge candidates is given in Section II.C above.

[0139] In block 930, the encoder selects a merge candidate from a constructed list or set of merge candidates. In some embodiments, the list or set of merge candidates is selected based on a pattern category associated with at least one or two lists or sets of merge candidates. The selected merge candidate may be chosen from the list or set of merge candidates based on the merge index to be encoded into the bitstream.

[0140] In block 940, the encoder generates a prediction for the current block using a set of encoding / decoding information corresponding to the selected merging candidates, based on the target mode. In some embodiments, the encoder may perform the prediction for the current block according to a set of target mode-specific settings described in Section II.D. In block 950, the encoder encodes the current block using the generated prediction to generate prediction residuals.

[0141] IV. Example Video Decoder

[0142] In some embodiments, the encoder may transmit (or generate) one or more syntax elements in the bitstream, so that the decoder can parse the one or more syntax elements from the bitstream.

[0143] Figure 10 An example video decoder 1000 capable of implementing intra-frame merging mode is shown. As shown, the video decoder 1000 is an image or video decoding circuit that receives a bitstream 1095 and decodes the bitstream content into video frame pixel data for display. The video decoder 1000 has multiple components or modules for decoding the bitstream 1095, including a subset of components selected from an inverse quantization module 1014, an inverse transform module 1015, an intra-frame prediction module 1025, a motion compensation module 1030, a loop filter 1045, a decoded image buffer 1050, an MV buffer 1065, an MV prediction module 1075, and a parser 1090. The motion compensation module 1030 is part of the inter-frame prediction module 1040. The intra-frame prediction module 1025 is part of the current image prediction module 1020, which uses reconstructed samples of the current image as reference samples for predicting the current block.

[0144] In some embodiments, modules 1014–1090 are software instruction modules executed by one or more processing units (e.g., processors) of a computing device. In some embodiments, modules 1014–1090 are hardware circuit modules implemented by one or more integrated circuits of an electronic device. Although modules 1014–1090 are shown as independent modules, some of these modules may be combined into a single module.

[0145] Parser 1090 (or entropy decoder) receives bitstream 1095 and performs preliminary parsing according to the syntax defined by the video codec or image codec standard. The parsed syntax elements include various header elements, flags, and quantization data (or quantization coefficients) 1012. Parser 1090 then parses the various syntax elements using entropy coding techniques such as context-adaptive binary arithmetic coding (CABAC) or Huffman coding.

[0146] The inverse quantization module 1014 inverse-quantizes the quantized data (or quantization coefficients) 1012 to obtain transform coefficients. The inverse transform module 1015 inverse-transforms the transform coefficients 1018 to generate a reconstructed residual signal 1019. The reconstructed residual signal 1019 is added to the predicted pixel data 1013 from the intra-frame prediction module 1025 or the motion compensation module 1030 to generate decoded pixel data 1017. The decoded pixel data is filtered by the loop filter 1045 and stored in the decoded image buffer 1050. In some embodiments, the decoded image buffer 1050 is an external memory of the video decoder 1000. In some embodiments, the decoded image buffer 1050 is an internal memory of the video decoder 1000.

[0147] Intra-prediction module 1025 receives intra-prediction data from bitstream 1095 and generates predicted pixel data 1013 from decoded pixel data 1017 stored in decoded image buffer 1050 accordingly. In some embodiments, decoded pixel data 1017 is also stored in line buffer 1027 (or intra-prediction buffer) for intra-image prediction and spatial motion vector (MV) prediction.

[0148] In some embodiments, the contents of the decoded image buffer 1050 are used for display. The display device 1005 can directly retrieve the contents of the decoded image buffer 1050 for display, or retrieve the contents of the decoded image buffer into a display buffer. In some embodiments, the display device receives pixel values ​​from the decoded image buffer 1050 via pixel transfer.

[0149] The motion compensation module 1030 generates predicted pixel data 1013 from the decoded pixel data 1017 stored in the decoded image buffer 1050 based on the motion-compensated motion vectors (MC MV). These motion-compensated motion vectors are decoded by adding the residual motion data received from the bitstream 1095 to the predicted motion vectors received from the MV prediction module 1075.

[0150] The MV prediction module 1075 generates a predicted motion vector based on a reference motion vector generated for decoding a previous video frame, such as a motion-compensated motion vector used to perform motion compensation. The MV prediction module 1075 retrieves the reference motion vector of the previous video frame from the MV buffer 1065. The video decoder 1000 stores the motion-compensated motion vector generated for decoding the current video frame in the MV buffer 1065 as a reference motion vector for generating the predicted motion vector.

[0151] Loop filter 1045 performs filtering or smoothing operations on the decoded pixel data 1017 to reduce coding artifacts, especially at pixel block boundaries. In some embodiments, the filtering or smoothing operations performed by loop filter 1045 include deblocking filter (DBF), sample adaptive offset (SAO), and / or adaptive loop filter (ALF). In some embodiments, luma mapping with chroma scaling (LMCS) is performed before loop filtering.

[0152] Figure 11 A portion of a video decoder 1000 that implements intra-frame merging mode and has at least one or more lists or sets of merging candidates is shown. Specifically, the figure illustrates the components involved in generating the current block prediction using intra-frame merging mode.

[0153] As shown in the figure, the intra-frame prediction module 1020 uses reference samples stored in the line buffer 1027 to generate predictions as prediction pixel data 1013 based on a set of codec information 1135 provided by the candidate extraction module 1130. The reference samples are reconstructed samples from neighboring regions of the current block in the current image. This set of codec information may include the inheritance information described in Section II.B above. Based on the target mode used to predict the current block, the intra-frame prediction module 1020 may perform the prediction of the current block according to a set of target mode-specific settings described in Section II.D. The target mode may be indicated in the codec information 1135 or provided by the entropy decoder 1090.

[0154] The candidate extraction module 1130 provides encoding / decoding information 1135 based on the inheritance information stored in the inheritance information memory 1120 and the selected merging candidate 1115. The candidate extraction module 1130 selects a merging candidate 1115 from a list or set of merging candidates according to the merging index provided by the entropy decoder 1090. Candidates in the list or set of merging candidates may include spatially adjacent candidates, non-adjacent candidates, historical candidates, temporal candidates, or default candidates. Each merging candidate may correspond to a position associated with a previous encoding / decoding block to provide a set of inheritance information that can be inherited by the current block. A detailed description of the merging candidates is given in Section II.C above. The inheritance information of the selected merging candidate 1115 is used as encoding / decoding information 1135 to generate a prediction for the current block.

[0155] The merge candidate list may be one of multiple merge candidate lists 1111-1116 constructed by the intra-frame merge candidate list builder 1110. In some embodiments, each merge candidate list may be associated with a different mode category, such that the merge candidates in that merge candidate list are only used for that mode category. Examples of such mode categories include DIMD-related, TIMD-related, MRL-related, model-related, matrix-related, and / or decoder-side analysis-related. Descriptions of the different mode categories are given in Section II.A above.

[0156] Figure 12 A conceptual illustration shows a process 1200 for decoding pixel blocks using an intra-frame merging mode having one or more merging candidate lists or sets. In some embodiments, one or more processing units (e.g., processors) of a computing device implementing decoder 1000 execute process 1200 by executing instructions stored in a computer-readable medium. In some embodiments, an electronic device implementing decoder 1000 executes process 1200.

[0157] The decoder receives (in box 1210) the data to be decoded as pixels of the current block in the current image.

[0158] The decoder constructs (in box 1220) one or more merge candidate lists or sets for the current block, each merge candidate corresponding to a set of codec information inherited from previous codec blocks. In some embodiments, the decoder constructs at least one merge candidate list or set for the current block.

[0159] In some embodiments, each merge candidate list or set is associated with a pattern category. A first merge candidate list or set may be associated with a first pattern category, and a second merge candidate list or set may be associated with a second, different pattern category. The merge candidate list or set may be associated with a pattern category used only for DIMD-related patterns, or with a pattern category used only for TIMD-related patterns, or with a pattern category used only for MRL-related patterns, or with a pattern category used only for model-related patterns, or with a pattern category used only for matrix-related patterns, or with a pattern category used only for decoder analysis-related patterns. Detailed descriptions of the various pattern categories are given in Section II.A above.

[0160] Each merge candidate in the list or set of merge candidates associated with a mode category corresponds to a set of codec information for the codec mode belonging to that mode category. This set of codec information may include the inheritance information described in Section II.B above. A detailed description of the merge candidates is given in Section II.C above.

[0161] The decoder selects a merge candidate from a constructed list or set of merge candidates (in box 1230). In some embodiments, the list or set of merge candidates is selected based on a mode category associated with at least one or two lists or sets of merge candidates. The selected merge candidate may be selected from a list or set of selected merge candidates based on a merge index decoded from the bitstream.

[0162] The decoder (at box 1240) generates a prediction for the current block based on the target mode by using a set of codec information provided by the selected merge candidates. In some embodiments, the decoder performs the prediction for the current block according to a set of target mode-specific settings described in Section II.D.

[0163] The decoder (at box 1250) reconstructs the current block by combining the generated prediction with the prediction residual. The decoder then provides the reconstructed current block for display as part of the reconstructed current image.

[0164] V. Example Electronic System

[0165] Many of the features and applications described above are implemented as software processes, which are specified as a set of instructions recorded on a computer-readable storage medium (also known as a computer-readable medium). When these instructions are executed by one or more computing or processing units (e.g., one or more processors, processor cores, or other processing units), the processing unit performs the operations indicated in the instructions. Examples of computer-readable media include, but are not limited to, CD-ROMs, flash drives, random access memory (RAM) chips, hard disks, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc. Computer-readable media do not include carrier waves and electronic signals transmitted via wireless or wired connections.

[0166] In this specification, the term "software" includes firmware residing in read-only memory or application programs stored in magnetic memory, which can be read into memory and processed by a processor. Furthermore, in some embodiments, multiple software inventions may be implemented as sub-parts of a larger program while still remaining distinct software inventions. In some embodiments, multiple software inventions may also be implemented as independent programs. Finally, any combination of independent programs that collectively implement the software inventions described herein is within the scope of this disclosure. In some embodiments, when a software program is installed on one or more electronic systems and runs, one or more specific machine implementations are defined that execute and perform the operations of the software program.

[0167] Figure 13 An electronic system 1300 is conceptually illustrated, on which some embodiments of this disclosure are implemented. The electronic system 1300 may be a computer (e.g., a desktop computer, personal computer, tablet computer, etc.), a telephone, a personal digital assistant (PDA), or any other type of electronic device. Such electronic systems include various types of computer-readable media and interfaces for various other types of computer-readable media. The electronic system 1300 includes a bus 1305, a processing unit 1310, a graphics processing unit (GPU) 1315, system memory 1320, a network 1325, read-only memory 1330, permanent storage device 1335, input device 1340, and output device 1345.

[0168] Bus 1305 refers to all system, peripheral, and chipset buses that communicate with the numerous internal devices of electronic system 1300. For example, bus 1305 communicates with processing unit 1310, GPU 1315, read-only memory 1330, system memory 1320, and permanent storage device 1335.

[0169] Processing unit 1310 retrieves instructions from these different memory units for execution and retrieves data for processing, thereby executing the processes of this disclosure. The processing unit may be a single processor or a multi-core processor in different embodiments. Some instructions are passed to GPU 1315 and executed thereon. GPU 1315 may offload various computational tasks or supplement the image processing provided by processing unit 1310.

[0170] Read-only memory (ROM) 1330 stores static data and instructions used by processing unit 1310 and other modules of the electronic system. Permanent storage device 1335 is a read-write storage device. This device is a non-volatile storage unit that can store instructions and data even when the electronic system 1300 is powered off. Some embodiments of this disclosure use mass storage devices (such as disks or optical discs and their corresponding disk drives) as permanent storage device 1335.

[0171] Other embodiments use removable storage devices (such as floppy disks, flash memory devices, etc., and their corresponding disk drives) as permanent storage devices. Similar to permanent storage device 1335, system memory 1320 is also a read-write storage device. However, unlike storage device 1335, system memory 1320 is volatile read-write memory, such as random access memory. System memory 1320 stores some instructions and data used by the processor during runtime. In some embodiments, processes conforming to this disclosure are stored in system memory 1320, permanent storage device 1335, and / or read-only memory 1330. For example, according to some embodiments, various storage units include instructions for processing multimedia segments. Instructions to be executed and data to be processed are retrieved from these different storage units to execute the processes of some embodiments.

[0172] Bus 1305 also connects input device 1340 and output device 1345. Input device 1340 enables a user to pass information to the electronic system and select commands. Input device 1340 includes an alphanumeric keypad and pointing device (also known as a "cursor control device"), a camera (such as a webcam), a microphone, or similar devices for receiving voice commands. Output device 1345 displays images generated by the electronic system or otherwise outputs data. Output device 1345 includes printers and display devices such as cathode ray tube (CRT) or liquid crystal display (LCD), as well as speakers or similar audio output devices. Some embodiments include devices such as touchscreens that function as both input and output devices.

[0173] Finally, as Figure 13As shown, bus 1305 also connects electronic system 1300 to network 1325 via a network adapter (not shown). In this way, the computer can become part of a computer network (such as a local area network (LAN), wide area network (WAN), intranet, or a network of networks, such as the Internet). Any or all components of electronic system 1300 can be used in conjunction with this disclosure.

[0174] Some embodiments include electronic components such as microprocessors, storage devices, and memories that store computer program instructions in machine-readable or computer-readable media (or computer-readable storage media, machine-readable media, or machine-readable storage media). Examples of such computer-readable media include RAM, ROM, read-only optical discs (CD-ROM), recordable optical discs (CD-R), rewritable optical discs (CD-RW), read-only digital multifunction optical discs (such as DVD-ROM, dual-layer DVD-ROM), various recordable / rewritable DVDs (such as DVD-RAM, DVD-RW, DVD+RW, etc.), flash memory (such as SD cards, mini-SD cards, micro-SD cards, etc.), magnetic and / or solid-state drives, read-only and recordable Blu-ray® optical discs, ultra-high-density optical discs, any other optical or magnetic media, and floppy disks. Computer-readable media may store computer programs executable by at least one processing unit, the program comprising a set of instructions for performing various operations. Examples of computer programs or computer code include machine code generated by a compiler, and files containing high-level code that are executed by a computer, electronic components, or microprocessor via an interpreter.

[0175] While the foregoing discussion primarily concerns microprocessors or multi-core processors that execute software, many of the aforementioned features and applications are implemented using one or more integrated circuits, such as application-specific integrated circuits (ASICs) or field-programmable gate arrays (FPGAs). In some embodiments, such integrated circuits execute instructions stored on the circuit itself. Furthermore, some embodiments execute software stored in programmable logic devices (PLDs), read-only memory (ROM), or random access memory (RAM) devices.

[0176] In this specification and any claim of this application, the terms "computer," "server," "processor," and "memory" refer to electronic or other technical devices. These terms do not include individuals or groups. For the purposes of this specification, the term "display" or "display operation" refers to display on an electronic device. In this specification and any claim of this application, the terms "computer-readable medium," "computer-readable media," and "machine-readable medium" are fully defined as tangible, physical objects that store information in a computer-readable form. These terms do not include any wireless signals, wired download signals, or any other transient signals.

[0177] Although this disclosure has been described in conjunction with numerous specific details, those skilled in the art will recognize that this disclosure can be implemented in other specific forms without departing from the spirit of this disclosure. Furthermore, several figures (including...) Figure 9 and Figure 12 This provides a conceptual description of the process. The specific operations of these processes may not be performed in the exact order shown and described. Specific operations may not be performed as a sequential series of actions, and different specific operations may be performed in different embodiments. Furthermore, the process may be implemented through multiple sub-processes or as part of a larger macro-process. Therefore, those skilled in the art will understand that this disclosure should not be limited to the foregoing illustrative details but should be defined by the appended claims.

[0178] Additional Notes

[0179] The topics described herein sometimes illustrate different components contained within or connected to other different components. It should be understood that such illustrated architectures are merely examples, and many other architectures can actually be implemented to achieve the same functionality. Conceptually, any arrangement of components to achieve the same functionality is effectively “associated” to achieve the desired function. Therefore, any two combinations of components in this document to achieve a particular function can be considered “associated with each other” to achieve the desired function, regardless of the architecture or intermediate components. Similarly, any two such associated components can also be considered “operationally connected” or “operationally coupled” to achieve the desired function, and any two components that can be suchly associated can also be considered “operationally coupled” to achieve the desired function. Specific examples of operational coupling include, but are not limited to, physically matable and / or physically interactive components and / or wirelessly interactive and / or logically interactive components.

[0180] Furthermore, regarding the use of almost all plural and / or singular terms in this document, those skilled in the art can appropriately convert plural to singular and / or singular to plural depending on the context and / or application. For clarity, various singular / plural permutations may be explicitly listed herein.

[0181] Furthermore, those skilled in the art will understand that the terms used herein, particularly in appended claims, such as the body portion of appended claims, are generally intended as “open” terms. For example, the term “comprising” should be interpreted as “including but not limited to,” the term “having” should be interpreted as “having at least,” and the term “including” should be interpreted as “including but not limited to,” etc. Those skilled in the art will also understand that if a specific number of claims is explicitly stated in the claims, that intention is explicitly stated in the claims; if no such statement is present, then that intention does not exist. For example, for ease of understanding, the following appended claims may contain the phrases “at least one” and “one or more” to introduce claims. However, the use of such phrases should not be construed as limiting any particular claim containing such introduced claims to containing only one such statement, even if the same claim contains the phrases “one or more” or “at least one” and indefinite articles such as “a” or “one,” for example, “a” and / or “one” should be interpreted as “at least one” or “one or more”; the same applies to definite articles used to introduce claims. Furthermore, even when a specific number of claims is explicitly stated, those skilled in the art will recognize that such statements should be interpreted as at least the stated number; for example, the single statement "two statements" without other modifiers means at least two statements, or two or more statements. Additionally, when using conventions such as "at least one A, B, and C, etc.", such structures are generally intended for those skilled in the art to understand the meaning of the convention; for example, "a system having at least one A, B, and C" includes, but is not limited to, only A, only B, only C, A and B, A and C, B and C, and A, B, and C, etc. Similarly, when using conventions such as "at least one A, B, or C, etc.", such structures are generally intended for those skilled in the art to understand the meaning of the convention; for example, "a system having at least one A, B, or C" includes, but is not limited to, only A, only B, only C, A and B, A and C, B and C, and A, B, and C, etc. Those skilled in the art will also understand that virtually any extractive term and / or phrase presenting two or more alternative terms, whether in the specification, claims, or drawings, should be understood to include only one term, any term, or both terms. For example, the phrase “A or B” would be understood to include the possibility of “A” or “B” or “A and B”.

[0182] As can be seen from the foregoing, various embodiments of this disclosure have been described for illustrative purposes, and various modifications can be made without departing from the scope and spirit of this disclosure. Therefore, the various embodiments disclosed herein are not intended to be limiting, and the true scope and spirit are indicated by the following claims.

Claims

1. A video encoding / decoding method, comprising: Receive the data to be encoded or decoded as pixels of the current block of the current image in the video; For the current block, construct one or more lists or sets of merge candidates, each merge candidate corresponding to a set of codec information inherited from previous codec blocks. Each merge candidate list or set is associated with only one mode category, and each merge candidate in the merge candidate list or set associated with a mode category corresponds to a set of codec information of the codec mode belonging to that mode category; Select one merge candidate from the existing list or set of merge candidates; Based on the target pattern, a prediction is generated for the current block using a set of encoding and decoding information corresponding to the selected merge candidate; as well as Use the generated prediction to encode or decode the current block.

2. The video encoding / decoding method of claim 1 further includes selecting a merge candidate list from the constructed merge candidate lists or sets based on the mode categories associated with the constructed merge candidate lists or sets, wherein the selected merge candidate is selected from the selected merge candidate list or set.

3. The video encoding / decoding method of claim 1, wherein the constructed merge candidate list or set includes at least a first merge candidate list and a second merge candidate list or set, wherein the first merge candidate list or set is associated with a first mode category, and the second merge candidate list or set is associated with a second different mode category.

4. The video encoding / decoding method of claim 1, wherein at least one of the constructed merged candidate lists or sets is associated only with the mode category of the mode related to the intra-frame mode derivation at the decoding end.

5. The video encoding / decoding method of claim 4, wherein the mode related to the decoding-end intra-mode derivation includes decoding-end intra-mode derivation, merged intra-mode derivation, intra-encoding / decoding based on occurrence, decoder-derived intra-prediction merged mode with mode type decoding-end intra-mode derivation, any mode that uses a histogram to determine the intra-prediction mode of the current block, any mode enabled by the decoding-end intra-mode derivation enable flag, or any subset or extension of the above modes.

6. The video encoding / decoding method of claim 1, wherein at least one of the constructed merged candidate lists or sets is associated with a mode category used only for intra-frame mode derivation.

7. The video encoding / decoding method of claim 6, wherein the mode associated with intra-frame mode derivation includes any one of the following: intra-frame mode derivation, template-based multi-reference line intra-frame prediction, intra-frame prediction merging with mode type of intra-frame mode derivation or template-based multi-reference line intra-frame prediction decoder derivation, any mode that uses the distortion between reconstruction and prediction on the template to determine the intra-frame prediction mode of the current block, any mode enabled by an intra-frame mode derivation enable flag, any mode enabled by a template-based multi-reference line intra-frame prediction enable flag, or any subset or extension of the above modes.

8. The video encoding / decoding method of claim 1, wherein at least one of the constructed merge candidate lists or sets is associated with a mode category used only for multi-reference line related applications.

9. The video encoding / decoding method of claim 8, wherein the reference line-related mode includes any one of the following: reference line, template-based multi-reference line intra-prediction, decoder-derived intra-prediction merging with mode type reference line or template-based multi-reference line, any mode enabled by a reference line enable flag, any mode enabled by a template-based multi-reference line intra-prediction enable flag, any mode using a reference line not adjacent to the current block, or any subset or extension of the above modes.

10. The video encoding / decoding method of claim 1, wherein at least one of the constructed merged candidate lists or sets is associated with a mode category used only for model-related modes.

11. The video encoding / decoding method of claim 10, wherein the model-related mode includes any one of the following: intra-frame prediction based on extrapolation filters, intra-frame prediction derived by the decoder and the mode type is intra-frame prediction based on extrapolation filters, matrix correlation mode, parametric correlation mode, any mode that derives the prediction of the current block using model coefficients and input reference samples, any mode enabled by an intra-frame prediction enable flag based on extrapolation filters, or any subset or extension of the above modes.

12. The video encoding / decoding method of claim 1, wherein at least one of the constructed merge candidate lists or sets is associated with a mode category used only for matrix correlation modes.

13. The video encoding / decoding method of claim 12, wherein the matrix-related mode includes any one of the following: matrix-based or matrix-weighted intra-prediction, decoder-derived intra-prediction combined with a mode type of matrix-based or matrix-weighted intra-prediction, matrix-related mode, parameter-related mode, any mode enabled by a matrix-based or matrix-weighted intra-prediction enable flag, any mode that derives the prediction of the current block using a predefined or selected matrix and an input reference sample, or any subset or extension of the above modes.

14. The video encoding / decoding method of claim 1, wherein at least one of the constructed merge candidate lists or sets is associated with a mode category used only for decoder analysis.

15. The video encoding / decoding method of claim 14, wherein the decoder analysis-related mode includes any one of the following: decoder-side intra-frame mode derivation related mode, intra-frame mode derivation related mode, any mode for determining the intra-frame prediction mode of the current block using decoder-side analysis, or any subset or extension of the above modes.

16. The video encoding / decoding method of claim 15, wherein the decoder-side analysis includes texture gradient analysis of the template or distortion measurement of the template.

17. The video encoding / decoding method of claim 1, wherein at least two merge candidate lists or sets are constructed for the current block.

18. An electronic device comprising: The video codec circuit is configured to perform the following operations: Receive the data to be encoded or decoded as the current pixel block of the current image in the video; For the current block, construct one or more lists or sets of merge candidates, each merge candidate corresponding to a set of codec information inherited from previous codec blocks. Each merge candidate list or set is associated with only one mode category, and each merge candidate in the merge candidate list or set associated with a mode category corresponds to a set of codec information of the codec mode belonging to that mode category; Select one merge candidate from the existing list or set of merge candidates; Based on the target pattern, a prediction for the current block is generated using a set of codec information corresponding to the selected merge candidate; as well as Use the generated prediction to encode or decode the current block.

19. A video decoding method, comprising: Receive the data to be decoded, as the pixels of the current block of the current image in the video; For the current block, construct one or more lists or sets of merge candidates, each merging candidate providing a set of codec information inherited from previous codec blocks. Each merge candidate list or set is associated with only one mode category, and each merge candidate in the merge candidate list or set associated with a mode category provides a set of encoding and decoding information for the encoding and decoding modes belonging to that mode category; Select one merge candidate from the existing list or set of merge candidates; Based on the target pattern, a prediction for the current block is generated using a set of codec information provided by the selected merge candidate; as well as The current block is reconstructed using the generated prediction.