VIPM from IPM-based modes

The introduction of virtual intra prediction modes for non-IPM-based modes in video encoding technologies addresses inefficiencies by optimizing transform kernel selection, resulting in enhanced compression and decoding performance.

US20260379973A1Pending Publication Date: 2026-11-26INTERDIGITAL VC HOLDINGS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/215923
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing video encoding technologies face inefficiencies in deriving effective prediction modes for blocks that do not use intra prediction modes, leading to suboptimal compression and decoding performance.

Method used

A method is introduced to derive virtual intra prediction modes (VIPM) for non-IPM-based modes, utilizing a list of intra prediction modes obtained from one or more second intra modes, and selecting a transform kernel set based on these modes for improved encoding and decoding processes.

Benefits of technology

Enhances video encoding and decoding efficiency by optimizing transform kernel selection for non-IPM-based modes, leading to improved compression and decoding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260379973A1-D00000_ABST
    Figure US20260379973A1-D00000_ABST
Patent Text Reader

Abstract

Method and apparatus for encoding / decoding video are provided. It is determined that a current block of an image of the video is coded using a first intra mode that does not use an intra prediction mode from a set of intra prediction modes to derive a prediction for the current block. A list is built that comprises intra prediction modes obtained from one or more second intra modes, the one or more second intra modes being intra modes that use one or more intra prediction modes from the set of intra prediction modes to derive a prediction when coding a block. For the current block, at least one intra prediction mode is selected from the list, providing at least one virtual intra prediction mode to the current block; and the at least one virtual intra prediction mode is used for selecting a transform kernel set for transforming the current block.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND

[0001] The present application is related to video compression and more particularly to deriving Virtual Intra Prediction Modes for non-IPM-based modes and corresponding signaling.BRIEF SUMMARY

[0002] Briefly stated, in one embodiment, a method for video encoding or video decoding is provided wherein it is determined that a current block of an image of the video is coded using a first intra mode that does not use an intra prediction mode from a set of intra prediction modes to derive a prediction for the current block. A list is built that comprises intra prediction modes obtained from one or more second intra modes, the one or more second intra modes being intra modes that use one or more intra prediction modes from the set of intra prediction modes to derive a prediction when coding a block. For the current block, at least one intra prediction mode is selected from the list, providing at least one virtual intra prediction mode to the current block; and the at least one virtual intra prediction mode is used for selecting a transform kernel set for transforming the current block.

[0003] In an embodiment, a method for signaling or decoding one or more parameters relating to the build-up and usage of the list of intra prediction modes obtained from one or more second prediction modes is provided.

[0004] In another embodiment, an apparatus is provided. The apparatus comprises one or more processors configured to implement the embodiments mentioned above.

[0005] In another embodiment, a signal is provided that comprises the one or more parameters relating to the build-up and usage of the list of intra prediction modes obtained from one or more second intra modes.

[0006] One or more embodiments also provide a computer program comprising instructions which when executed by one or more processors cause the one or more processors to perform any one of the methods according to any of the embodiments described herein. One or more of the present embodiments also provide a non-transitory computer readable medium and / or a computer readable storage medium having stored thereon instructions for performing the methods described herein.

[0007] One or more embodiments also provide a computer readable storage medium having stored thereon a signal or a bitstream generated according to the methods described herein. One or more embodiments also provide a method and apparatus for transmitting or receiving the bitstream generated according to the methods described above.BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The following detailed description will be better understood when read in conjunction with the appended drawings, in which there are shown examples of one or more of the multiple embodiments of the present disclosure. It should be understood, however, that the embodiments described herein are not limited to the precise arrangements and instrumentalities shown in the drawings. In the drawings:

[0009] FIG. 1 is a block diagram illustrating an example system according to one or more embodiments of the present disclosure;

[0010] FIG. 2 is a block diagram illustrating an example video encoder according to one or more embodiments of the present disclosure;

[0011] FIG. 3 is a block diagram illustrating an example video decoder according to one or more embodiments of the present disclosure;

[0012] FIG. 4 illustrates an example of intra prediction direction as used in the VVC standard;

[0013] FIG. 5 illustrates examples of a template of a luminance CB and decoded reference samples of the template used in a template-based intra mode derivation (TIMD);

[0014] FIG. 6 illustrates an example of a matrix-based intra prediction process for a block of height H and width W;

[0015] FIG. 7 illustrates an example of intra template matching (IntraTMP) search area;

[0016] FIG. 8 illustrates non-adjacent spatial neighboring candidates for OBIC mode;

[0017] FIG. 9 illustrates edge operator options for DIMD prediction mode;

[0018] FIG. 10 illustrates an example of explicit MTS set selection in ECM (modeIdx=4 and sizeIdx=0);

[0019] FIG. 11 illustrates that NSPT is applied to small blocks, while LFNST is applied for the rest;

[0020] FIG. 12 illustrates MIP prediction samples to build HOG;

[0021] FIG. 13 illustrates a method for encoding or decoding a video, according to an embodiment;

[0022] FIG. 14 illustrates a method for signaling or decoding one or more parameters relating to a list of IPM derived from IPM-based modes, according to variants of an embodiment;

[0023] FIG. 15 illustrates an example of possible block sizes;

[0024] FIG. 16 illustrates an example of block sizes that satisfy WÍH>128;

[0025] FIG. 17 illustrates an example of block sizes that satisfy W>16 or H>16;

[0026] FIG. 18 illustrates an example of block sizes that satisfy W<16 and H<16;

[0027] FIG. 19 illustrates an example of block sizes that satisfy W / H>2 or H / W>2;

[0028] FIG. 20 shows two remote devices communicating over a communication network in accordance with an example of the present principles; and

[0029] FIG. 21 shows the syntax of a signal in accordance with an example of the present principles.DETAILED DESCRIPTION

[0030] In describing the various embodiments of the present disclosure, certain terminology is used herein for convenience only and should not be considered as limiting such embodiments. In the drawings, the same reference numerals are employed for designating the same elements throughout the several figures and the present description.

[0031] Referring to the drawings, there is shown in FIG. 1 a block diagram illustrating an example system 100 in which embodiments of the present disclosure can be implemented. The system 100 may be an electronic device including, for example, a personal computer, laptop computer, mobile phone, tablet computer, multimedia set-top box, digital television receiver, personal video recording system, connected home appliance, vehicle control and / or entertainment system, and server. One or more elements of the system 100, singly or in combination, may be implemented as an integrated circuit (IC), multiple ICs, and / or discrete components. For example, in one embodiment, the processing, encoding and / or decoding elements of system 100 are distributed across multiple ICs and / or discrete components. In some embodiments, the system 100 is communicatively coupled to and / or in communication with other systems or devices, via, for example, a communications bus or dedicated input / output ports.

[0032] One or more of the elements of system 100 may be provided within an integrated housing, with such elements being interconnected and able to transmit data therebetween using any suitable connection arrangement 115 generally known in the art, including, for example, an internal bus (e.g., I2C bus), wiring, and printed circuit boards.

[0033] The system 100 includes at least one processor 110 configured to execute instructions for implementing the embodiments described herein, including signal / data coding and processing. The processor 110 may be a general-purpose processor or microprocessor, digital signal processor (DSP), one or more microprocessors in association with a DSP core, a controller, a microcontroller, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), a state machine, and the like. The processor 110 may include at least one central processing unit (CPU), embedded memory, input and output interfaces, and other circuitries.

[0034] The system 100 includes at least one memory 120, for example, a volatile memory device and / or a non-volatile memory device. The system 100 includes a storage device 140, that may be or include non-volatile memory and / or dynamic volatile memory, including EEPROM, ROM, PROM, RAM, DRAM, SRAM, DDR, flash, magnetic disk drives, solid state drives (SSD) and / or optical disk drives. The storage device 140 may be or include, for example, an internal storage device, an attached storage device, and / or a network accessible storage device. Although shown separately, the memory 120 and the storage device 140 may be collocated, integrated together, or otherwise combined.

[0035] The system 100 includes an encoder / decoder module 130 configured to process video data and to provide encoded video data or decoded video data. The encoder / decoder module 130 may include one or more processors and / or memory (not shown). Although FIG. 1 depicts the encoder / decoder module 130 as a separate element of system 100, it will be understood that the processor 110 and the encoder / decoder module 130 may be collocated and / or integrated together as a combination of hardware and / or software, e.g., in an electronic package or chip. The encoder / decoder module 130 may be or include one or more modules that may be included in one or more separate devices that perform encoding and / or decoding functions.

[0036] Instructions for execution by the processor 110 and / or the encoder / decoder module 130 may be stored in the storage device 140 and subsequently loaded into memory 120 for execution by the processor 110. In some embodiments, one or more of processor 110, memory 120, storage device 140, and encoder / decoder module 130 may store one or more items when performing the processes disclosed herein. Such items may include input video, decoded video or portions thereof, bitstreams, matrices, variables, operational logic, and intermediate and / or final results from processing of equations, formulas, or operations.

[0037] In some embodiments, the memory of the processor 110 and / or the encoder / decoder module 130 is used to store instructions and / or provide working memory for video encoding and decoding functions. In some embodiments, memory external to the processor 110 and / or the encoder / decoder module 130 (e.g., the memory 120 and / or the storage device 140) is used for one or more of these functions and / or, for example, to store the operating system of a television.

[0038] The system 100 may obtain or receive information via one or more input devices, interfaces, and / or ports as indicated in input block 105. Examples of the input devices include a radio frequency (RF) device for transmitting and / or receiving RF signals over various media, for example, RF signals received over the air from a broadcaster; component video (COMP) inputs; a Universal Serial Bus (USB) input; and / or a High-Definition Multimedia Interface (HDMI) input. Other examples include composite video input (not shown). In some embodiments, the input devices are associated with respective input processing elements, e.g., those generally known in the art. For example, the RF device may be associated with elements suitable for selecting a desired frequency (e.g., selecting or band-limiting a signal) or performing error correction on the signal. The USB and / or HDMI inputs may include respective interface processors and transceivers (or transmitters and receivers) for coupling the system 100 to other devices via USB and / or HDMI ports or connections. Various forms of input processing may be implemented, for example, by and / or within a separate input processing device or the processor 110.

[0039] The system 100 includes a communication interface 150 that enables wired and / or wireless communication with other devices, e.g., via a communication channel 190. The communication interface 150 may include one or more transceivers, modems, network cards and the like. The communication channel 190 may be or include wired and / or wireless mediums.

[0040] In some embodiments, data may be streamed to the system 100 via wired and / or wireless networks. Examples of such wireless networks include cellular, Bluetooth or Wi-Fi (e.g., IEEE 802.11) networks. The wired and / or wireless networks may include one or more base stations (e.g., cellular base stations, access points, etc.), and / or user equipment (e.g. cellular user equipment, stations, etc.), and / or other network elements that communicate with the system 100 via the communication interface 150 and communication channel 190, whereby the system 100 may obtain data streamed from streaming applications (e.g., OTT services) via various networks, including the Internet. In some embodiments, data is streamed to the system 100 via the input block 105 (e.g., using a set-top box that delivers data via the HDMI connection or the RF connection). In some embodiments, data is received by the system 100 in a non-streaming manner.

[0041] The system 100 may provide one or more output signals to one or more output devices. The output devices may include a display device 165 (e.g., touchscreen display, monitor, etc.), an audio device 175 (e.g., speakers), and other peripheral devices 185, including, for example, a stand-alone DVR, a disk player, a stereo system, a lighting system, and other devices that provide a function based on the output of the system 100. The display device 165 can be for a television, tablet, laptop, mobile phone, head-mounted display, or other device. In some embodiments, control signals are communicated between the system 100 and the display device 165, the audio device 175, and / or the peripheral devices 185, enabling device-to-device control with or without user intervention. The output devices may be coupled to and / or communicate with the system 100 via dedicated connections via respective display, audio, and peripheral interfaces 160, 170, 180. Alternatively, the output devices may be coupled to and / or communicate with the system 100 via the communication channel 190 and the communication interface 150.

[0042] The display device 165 and the audio device 175 may be collocated, integrated, or otherwise combined with the other components of system 100 in a single unit (e.g., a television). Alternatively, the display device 165 and the audio device 175 may be separate from one or more of the other components of the system 100. In embodiments in which the display device 165 and the audio device 175 are external components, the output signals may be provided via dedicated outputs and / or connections, including, for example, HDMI ports, USB ports, or COMP outputs.

[0043] FIG. 2 is a block diagram illustrating an example video encoder 200 that may be employed by the system 100 (e.g., via the encoder / decoder module 130) described with respect to FIG. 1. The video encoder 200 may be an encoder that employs video compression technologies, standards, specification, or protocols, including Advanced Video Coding (AVC, H.264 / MPEG-4), High Efficiency Video Coding (HEVC, H.265), Versatile Video Coding (VVC, H.266), Essential Video Coding (EVC, MPEG-5), AOMedia Video 1 (AV1), VP9, or the Enhanced Compression Model (ECM) under study, and variations or improvements thereof. Those skilled in the art will understand that the various embodiments described herein are not limited to a specific standard and can be applied to other standards and recommendations, as well as extensions thereof.

[0044] Some embodiments disclosed herein are described with reference to a coding unit (CU) or block of a video frame (or a video image or picture) to which coding tools may be applied by the video encoder 200 and / or by the video decoder 300 (described below with reference to FIG. 3). Generally, embodiments described herein may be applied to a video region formed by a video partition of any shape or size. The video region may be a video slice, a coding tree unit (CTU), or a CU (to which inter prediction or intra prediction can be applied), or a partition thereof, each of which can include samples of a luma component, Y, and chroma components, U and V (also denoted herein by C).

[0045] Referring generally to FIG. 2 and the video encoder 200, video data (e.g., one or more video frames) is encoded generally as described below. Prior to encoding, video data may be pre-processed by a precoding processor (not shown). The pre-processing may include, for example, applying a color model transform to the input color components of the input video data (e.g., conversion from RGB 4:4:4 to YUV 4:2:0) or mapping the color components of the input video data to obtain a signal distribution that is more resilient to compression (for instance, applying a histogram equalizer and / or a denoising filter to one or more of the video data's color components). The pre-processing may include associating metadata (for example, a supplemental enhancement information (SEI) message) with the video data that can be attached to a coded video bitstream. After pre-processing, if any, an image (frame) to be encoded is partitioned into CUs (blocks) by an image partitioner 202.

[0046] In general, a CU includes a luma block and associated chroma blocks. As such, functions of the video encoder 200 described herein as applied to a CU refer generally to the luma block and the respective chroma blocks. The CUs may be encoded using an intra prediction mode performed by an intra predictor 260. In intra prediction mode, the content of a CU in a frame is predicted based on content from one or more other CUs of the same frame (or region), using reconstructed blocks of other CUs output from an adder 255. The CUs may also or alternatively be encoded using an inter prediction mode, in which motion estimation and motion compensation are performed by a motion estimator 275 and a motion compensator 270, respectively. In inter prediction mode, the content of a CU in a frame is predicted based on content from one or more reconstructed areas of reference frames, available from a reference picture buffer 280.

[0047] The video encoder 200 selects or otherwise determines at 205 which prediction mode (intra prediction mode and / or inter prediction mode) to use for encoding a CU. The selected prediction mode may be enhanced (e.g., filtered) by a prediction enhancer 285. Based on the selected mode, a prediction for the CU is generated. A residual block is determined based on the prediction (i.e., prediction block, predicted CU) and the input CU. In some embodiments, such determination is made by a subtractor 210.

[0048] The residual block or a partition thereof (e.g., a transform block) is transformed into transform coefficients by a transformer 220. The transform coefficients are quantized by a quantizer 230. An entropy encoder 245 performs entropy encoding of the quantized transform coefficients and coding parameters (e.g., syntax elements including motion vectors and other control data) to form a bitstream of coded video data.

[0049] In addition to coding the original video blocks as described herein, the video encoder 200 reconstructs the coded blocks to provide references for future predictions. Thus, quantized transform coefficients (from the quantizer 230) are de-quantized by an inverse quantizer 240, and inverse transformed by an inverse transformer 250, to reconstruct (decode) the residual blocks. The reconstructed residual blocks and prediction blocks are combined (e.g., by the adder 255) to form reconstructed blocks. Thus, the video encoder 200 performs decoding operations through which the encoded images (frames) are reconstructed.

[0050] In-loop filters 265 may be applied to the reconstructed image (formed by the reconstructed blocks). The filtered reconstructed image(s) are stored in the reference picture buffer 280 and used by the motion estimator 275 and motion compensator 270, as explained above. The in-loop filters 265 can be applied to the reconstructed samples of an image to reduce distortions introduced by the encoding process. For example, a deblocking filter (DBF), bilateral filter (BIF), sample adaptive offset (SAO), and / or adaptive loop filter (ALF) can be applied to reduce encoding artifacts.

[0051] FIG. 3 is a block diagram illustrating an example of video decoder 300 that may be employed by the system 100 (e.g., via the encoder / decoder module 130) described with respect to FIG. 1. Generally, operational features of the video decoder 300 are reciprocal to operational features of the video encoder 200. In the video decoder 300, a coded video bitstream (e.g., generated by the video encoder 200 or another video encoding device or process) is entropy-decoded by an entropy decoder 330 to obtain transform coefficients, motion vectors, and other coding parameters. Based on the coding parameters, an image partitioner 335 divides the picture accordingly. The quantized transform coefficients are de-quantized by an inverse quantizer 340 and inverse transformed by an inverse transformer 350 to decode (reconstruct) respective residual blocks. Depending on the selected prediction mode, a predicted block can be obtained at 370 from an intra predictor 360 (i.e., intra prediction) or from a motion compensator 375 (i.e., inter prediction) and may be enhanced (e.g., filtered) by a prediction enhancer 390, generating a prediction block. The reconstructed residual blocks are combined with prediction blocks (e.g. by an adder 355), resulting in reconstructed blocks.

[0052] In-loop filters 365 (e.g., DBF, BIF, SAO, and / or ALF) can be applied to the reconstructed image (formed by the reconstructed blocks), to output reconstructed (decoded) video. The filtered reconstructed image is also stored in a reference picture buffer 380 for reference by the motion compensator 375.

[0053] A post-decoding processor (not shown) can process the reconstructed video data. For example, post-decoding processing can include an inverse color model transform (e.g., conversion from YUV 4:2:0 to RGB 4:4:4) or an inverse mapping to reverse the mapping process performed by the pre-encoding processor described with respect to FIG. 2. The post-decoding processor can use metadata derived by the pre-encoding processor and / or signaled in the video bitstream. Embodiments described herein focus on improving the virtual intra prediction mode (VIPM) derivation. This VIPM is used for blocks predicted with non-angular intra modes to define the directionality of the block, which is later used for transforms set selection and also stored and used for MPM (most probable modes) list construction of neighboring blocks. Embodiments described herein provides for using IPM (intra prediction mode) from IPM-based modes for improved encoding.

[0054] An intra-coded block may be coded using an intra mode that generates a prediction block from reconstructed samples of a same picture to which the intra-coded block belongs. Some examples of intra modes that can be used in the video encoder 200 and video decoder 300 are described below. Further details can be found in “Algorithm description of Enhanced Compression Model 16 (ECM16)”, JVET-AK2025-v1, M. Coban, R-L. Liao, K. Naser, J. Ström, L. Zhang, 37th meeting, Geneva, CH, 14-22 Jan. 2025.Core Intra Prediction Modes:

[0055] To capture the arbitrary edge directions presented in natural video, the number of intra prediction modes (IPM) in VVC is extended from 33, as used in HEVC, to 65. FIG. 4 illustrates the angular intra prediction modes in VVC. Dotted lines show additional wide angular intra prediction modes. In addition to the angular intra prediction modes, a Planer mode and a DC mode are provided.

[0056] In the ECM implementation, the core structure of the intra prediction modes (IPM) is inherited from that in VVC. This core structure is refined in ECM wherein the four-tap interpolation for an angular intra prediction mode from VVC becomes a six-tap interpolation in ECM. Position Dependent Intra Prediction Combination (PDPC) is supplemented in ECM with a gradient PDPC.

[0057] An angular intra prediction mode, including the Planar mode and DC mode, are identified / signaled using an index associated to the intra prediction mode (IPM) as illustrated in an example in FIG. 4. In the following, the set of core intra prediction modes (angular prediction modes, Planar mode and DC mode) is referred as IPM. Such IPM could also be referred to as angular intra mode, directional intra prediction mode or indexed intra prediction mode.Template-Based Intra Mode Derivation (TIMD)

[0058] For a given block (503) in FIG. 5, the following IPM modes derivation via TIMD applies the same way on the encoder and decoder sides. For each intra prediction mode in a Most Probable Mode (MPM) list constructed for the block (503), supplemented with default modes if needed, the TIMD mode determines a prediction of the template (500 and 501) of the block (503) from the decoded reference samples (502) of the template, and the SATD (Sum Of Absolute Transformed Difference) between the predicted reference samples of the template and the decoded reference samples of the template of the block (503) is determined. In a first pass, the two intra prediction modes with the minimum SATDs are selected as the TIMD modes. After retaining two intra prediction modes in the first pass involving the MPM list supplemented with default modes, for each of these two selected intra prediction modes, if this mode is neither PLANAR nor DC, TIMD also checks in terms of SATD cost, two closest extended directional intra prediction modes for the selected intra prediction modes.

[0059] To predict the current block (503) via TIMD, the two intra predictions obtained from the two TIMD modes selected in the first or second pass for the block (503) are fused with weights after applying PDPC. The used weights depend on the prediction SATDs of the two TIMD modes.Matrix-Based Intra Prediction (MIP)

[0060] Matrix-based Intra Prediction (MIP) method is an intra prediction technique introduced in VVC. For predicting the samples of a rectangular block of width W and height H, MIP takes one column of H reconstructed neighboring boundary samples on the left side of the current block and one line of W reconstructed neighboring boundary samples above the current block as input. If the reconstructed samples are unavailable, they are generated as done in the conventional intra prediction. The generation of the prediction signal is based on the following three steps: optional averaging of the reconstructed neighboring boundary samples, matrix vector multiplication between a MIP weight matrix (Ak) and the averaged neighboring boundary samples (bdryred), and optional linear interpolation of the result from the previous multiplication, as shown in FIG. 6.

[0061] A mode index k allows to identify a MIP weight matrix to use in the MIP mode for predicting the block.Intra Block Copy (IBC)

[0062] Intra block copy (IBC) is a tool adopted in HEVC extensions on SCC (Screen Content). IBC mode is implemented as a block level coding mode. Block matching (BM) is performed at the encoder to find an optimal block vector (or motion vector) for each CU / block. Here, a block vector is used to indicate the displacement from the current block to a reference block, the reference block being already reconstructed inside the current picture. The block vector BV used for a block coded in the IBC mode is signaled to the decoder using an index signaling a BV in a candidate list or a BV difference from a BV predictor is signaled.Intra Template Matching Prediction (Intra TMP)

[0063] Intra template matching prediction (Intra TMP) is an intra prediction mode that copies the best prediction block from a reconstructed part of the current frame, whose L-shaped template matches the template of the block to predict. For a predefined search range, the encoder searches for the most similar template to the current template in a reconstructed part of the current picture and uses the corresponding block as a prediction block. The encoder then signals the usage of this mode, and the same prediction operation is performed at the decoder side.

[0064] The prediction signal is generated by matching the L-shaped causal neighbor of the current block with another block in a predefined search area (dashed area) as illustrating in FIG. 7 for example, the search area consisting of: R1 from current CTU, R2 (top-left CTU), R3 (above CTU), R4 (left CTU). For example, SAD is used as a cost function. Within each region, the decoder searches for the template that has least SAD with respect to the current one and uses its corresponding block as a prediction block.Spatial Geometric Partitioning Mode (SGPM)

[0065] Spatial geometric partitioning mode (SGPM) is an intra mode that resembles the inter coding tool of geometric partitioning mode (GPM). In GPM, the block is split into two partitions by a geometrically located straight line, each partition is predicted with its own motion and a geometric partition index indicating the partition mode of the geometric partition (angle and offset) is signaled.

[0066] In SGPM mode, the prediction of each partition of the block is generated from an intra prediction process. In SGPM mode, a candidate list is built with each entry containing one partition split and two intra prediction modes. 26 partition modes and 9 of intra prediction modes are used to form the combinations, the length of the candidate list is set equal to 16. The selected candidate index is signalled. For each partition mode, an IPM list is derived for each part by selecting the IPM candidates as the parallel angular mode against the block's split boundary (Parallel mode), the perpendicular angular mode against the block's split boundary (Perpendicular mode), and the Planar mode. The IPM list size is set to 3. In the list, TIMD derived mode is replaced by 2 derived modes with horizontal and vertical orientations. The list is further augmented with block-vector based prediction candidates obtained from the adjacent and non-adjacent merge candidates coded in IntraTMP or IBC mode. The template cost is employed to select the up to 6 block vectors. The final list contains up to 9 predictors for each partition: 3 IPMs and up to 6 block vectors-based predictors.Extrapolation Filter-Based Intra Prediction Mode (EIP)

[0067] In the EIP mode, the samples in a block are predicted from the top-left position to the bottom-right position by applying an extrapolation filter to neighboring reconstructed samples or predicted samples. The EIP mode uses a 15-tap filter for prediction as below:pred(x,y)=∑i=01⁢3(ci×t(x-offsetXi,y-offsetYi))+c1⁢4×2bitdepth-1where pred(x,y) is the predicted value at position (x, y) in the block, ci is the filter coefficient, and the t(x-offsetX<sub2>i< / sub2>,y-offsetY<sub2>i< / sub2>) is the reconstructed samples or predicted samples. Predicted sample values are clipped to the range of the reference samples instead of the full sample value range. Reference sample area used for determining the range is the same as the one used when generating the filter coefficients.The EIP filter can be derived from the neighboring reconstructed samples or be inherited from the previous EIP coded blocks. There are three EIP filter shapes and three corresponding types of reconstructed area supported in ECM. If not inherited, the EIP filter can be derived from the neighboring reconstructed samples and the relevant syntax element is signaled to indicate which one of the three types of reconstructed area and which one of the three filter shapes are used for the CU. The selected filter moves in the selected reconstructed area either horizontally or vertically with a one-pixel step to construct an auto-correlation matrix and a cross-correlation vector.Neural Network-Based Intra Prediction

[0069] The neural network-based intra prediction mode contains 6 neural networks, each predicting blocks of a different size in {4×4, 8×4, 16×4, 8×8, 16×8, 16×16}. For a given W×H block, the used neural network takes the context made of N reference samples around this block, to return the W×H predicted block. For block sizes non natively supported by a model, similarly to MIP in VVC, the reference samples are transposed and / or downsampled.

[0070] For a given block selecting the neural network-based intra prediction mode, regarding the implicit transform mapping in MTS and LFNST / NSPT, the equivalent intra prediction mode is derived by applying DIMD to the predicted block returned by the used neural network.

[0071] For a given block of size larger than 64 luma samples and selecting the neural network-based intra prediction mode, an alternative equivalent intra prediction mode is used for LFNST / NSPT. Indeed, in addition to the 1st equivalent intra prediction mode obtained by applying DIMD to the predicted block, PLANAR is used as additional equivalent intra mode candidate. In this case, a CU-level flag indicating the equivalent intra mode index is signaled.Decoder Side Intra Mode Derivation (DIMD)

[0072] When DIMD is applied, a number of intra modes are derived from the reconstructed neighbor samples by computing a histogram of gradients (HoG), which is built by applying edge operators to a reference area. The edge operators are used to derive the direction and magnitude (amplitude) of gradients within the area covered by an edge operator. In the ECM implementation, the selection of an edge operator that should be applied to the reference area, is based on the size of a current (predicted) block. As FIG. 9 illustrates, the horizontal Fx and vertical Fy filters of the 2×2 operator are defined as follows:Fx=[-1-111],Fy=[1-11-1].

[0073] The horizontal Fx and vertical Fy filters of the 3×3 operator are defined as follows:Fx=[-1-2-1000121],Fy=[10-120-210-1].

[0074] The histogram is computed using the horizontal and vertical filters above applied on each pixel in a template of width 2 or 3 around the block as shown in FIG. 9.

[0075] If both Fy and Fx are not zero, the orientation Orient of the current pixel is computed asOrient=Gy / Gx

[0076] Otherwise, if Gy is zero, the orientation is considered as vertical. Otherwise, the orientation is considered horizontal. The histogram is computed then by summing up all occurrences of each orientation in the template. It can be observed that the histogram cannot show if the template has no orientation. That is, DIMD cannot output DC or planar mode. A number of angular prediction modes are derived from the orientations having the highest values in the histogram.

[0077] Up to seven intra modes are derived if the block size area is larger or equal than 128 samples, and up to five intra modes are derived otherwise. Each derived intra mode is used to form an intra predictor. These predictors are combined with the non-directional predictor (planar or block-vector based predictor) with weights derived from the histogram of gradients. The decision between planar or block-vector based predictor for the non-directional modes is taken according to the template cost. Specifically, the block vectors of all adjacent and non-adjacent merge candidates (coded in IntraTMP or IBC) are compared to planar prediction on the reconstructed template. The template cost (SATD) is used to select the best predictor among them.

[0078] Derived intra modes are included into the primary list of intra most probable modes (MPM) built for signaling an intra mode used for encoding a current block, so the DIMD process is performed before the MPM list is constructed. The primary derived intra mode of a DIMD block is stored with a block and is used for MPM list construction of the neighboring blocks.

[0079] The region of neighboring reconstructed samples used for computing the histogram of gradients depends on reconstructed samples availability. The region of decoded reference samples of current W×H block is extended towards the above-right side if available, up to W additional columns. It is extended towards the bottom-left side if available, up to H additional rows.Occurrence-Based Intra Coding (OBIC)

[0080] The occurrence-based intra coding (OBIC) derives the intra prediction modes of a current block based on the sample-wise occurrence of the intra prediction modes (directional intra prediction modes also referred as angular intra modes) in the spatial neighborhood of the current block. For this, adjacent and non-adjacent spatial neighboring blocks (as illustrated in FIG. 8) are checked, and the directional intra prediction modes of the blocks are collected into an occurrence histogram. Instead of Histogram of Gradient (HoG) as in DIMD, the OBIC method uses the Histogram of oCcurrence (HoC), which consists of the angular intra modes and their sample-wise occurrences. The occurrence values are calculated based on the number of samples that are coded in a certain angular intra mode in that neighborhood. For example, if a uiWidth×uiHeight spatial neighboring block of the current block is coded with an IPM mode, the occurrence of the mode for this spatial neighboring block is given by uiWidth*uiHeight and its bin value in the histogram is calculated as: HoC[IPM]+=uiWidth*uiHeight, where uiWidth and uiHeight are the width and height of the spatial neighboring block. The occurrences of the existing modes from the spatial neighborhood blocks are accumulated into the histogram.

[0081] Up to five angular intra modes with the highest occurrence along with the planar mode or block-vector based prediction (same as in DIMD) are selected from the HoC and used for obtaining the final prediction of the current block by blending the prediction of the selected modes.

[0082] It can happen that some neighboring blocks are coded using an intra prediction mode that uses more than one directional intra prediction mode, for example DIMD uses up to 5 angular modes, TIMD uses up to 2 modes, SGPM uses 2 modes and OBIC uses up to 5 angular modes. In such cases, all the directional intra prediction modes used for predicting such neighboring blocks are taken into account when constructing the OBIC histogram. Moreover, virtual intra prediction modes (VIPMs) are considered when creating the histogram of OBIC mode for intra modes that do not have an angular / directional intra prediction mode, e.g. MIP, IntraTMP, IBC.Transform Selection in ECM

[0083] In ECM, the selection of a transform for an intra-coded current block to be transformed depends on the intra prediction mode of the current block. The intra prediction mode acts as input to a lookup table (LUT) to get a suitable transform set for the current block.Enhanced MTS for Intra Coding

[0084] In the current VVC design, for MTS, only DST7 and DCT8 transform kernels are utilized which are used for intra and inter coding. In ECM, additional primary transforms including DCT5, DST4, DST1, and identity transform (IDT) are employed. Also MTS set is made dependent on the TU (Transform Unit) size and intra mode information.

[0085] Overall, 16 different TU sizes are considered, and for each TU size 5 different classes are considered depending on intra-mode information. For each class, 1, 4 or 6 different transform pairs (MTS candidates) are considered in the MTS transform set. The number of intra MTS candidates are adaptively selected (between 1, 4 and 6 MTS candidates) depending on the sum of absolute value of transform coefficients. The sum is compared against the two fixed thresholds to determine the total number of allowed MTS candidates:total⁢ number⁢ of⁢ allowed⁢ ⁢MTS⁢ candidates={1,if⁢ sum≤th⁢04,if⁢ th⁢0<sum≤th⁢16,if⁢ sum>th⁢1

[0086] Although a total of 80 (16 transform sizes times 5 classes) different classes are considered, some of those different classes may share a same transform set. In ECM, there are 58 (less than 80) unique entries in the resultant look-up-table LUT.

[0087] For angular modes, a joint symmetry over TU shape and intra prediction is considered. So, a mode i (i>34) with TU shape A×B will be mapped to the same class corresponding to the mode j=(68−i) with TU shape B×A. However, for each transform pair the order of the horizontal and vertical transform kernel is swapped. For example, for a 16×4 block with mode 18 (horizontal prediction) and a 4×16 block with mode 50 (vertical prediction) are mapped to the same class. However, the vertical and horizontal transform kernels are swapped. For the wide-angle modes the nearest conventional angular mode is used for the transform set determination. For example, mode 2 is used for all the modes between −2 and −14. Similarly, mode 66 is used for mode 67 to mode 80.

[0088] An example of transform set selection in the LUT for a given TU size and intra prediction mode is illustrated in FIG. 10, where a transform set (TrSet i) is selected based on the TU size (sizeIdx) and the intra mode (modeIdx).

[0089] The additional primary transforms including DCT5, DST4, DST1 and IDT are also applied to angular intra modes when the implicit intra MTS is enabled. The primary transform pair is directly inferred from the intra prediction mode and the TU size of the current block using the same LUT as the one used in explicit intra MTS.LFNST in ECM

[0090] The transformed coefficients from the primary transform can be further transformed with a non-separable transform applied to the low frequency part. This is known as low-frequency non-separable transform (LFNST). In VVC, 4 transform sets and 2 non-separable transform matrices / kernels (candidates) per transform set are used in LFNST. The mapping from the intra prediction mode to the transform set is pre-defined. For each LFNST transform set, the selected non-separable secondary transform candidate is further specified by the explicitly signalled LFNST index. In ECM, the LFNST design in VVC is extended as follows.

[0091] The number of LFNST sets (N) and candidates (C) in a set are extended to N=35 and C=3, and the LFNST set (lfnstTrSetIdx) for a given intra mode (predModeIntra) is derived according to the following formula:

[0092] For predModeIntra<2, lfnstTrSetIdx is equal to 2

[0093] lfnstTrSetIdx=predModeIntra, for predModeIntra in [2,34]

[0094] lfnstTrSetIdx=68−predModeIntra, for predModeIntra in [35,66]

[0095] Three different kernels, LFNST4, LFNST8, and LFNST16, are defined to indicate LFNST kernel sets, which are applied to 4×N / N×4 (N≥4), 8×N / N×8 (N≥8), and M×N (M, N≥16), respectively

[0096] An example of mapping from intra prediction modes to these sets is shown in Table 1 belowTABLE 1Mapping of intra prediction modes to LFNST set indexIntra pred mode−14−13−12−11−10−9−8−7−6−5−4−3−2−1LFNST set index22222222222222Intra pred mode012345678910111213LFNST set index012345678910111213Intra pred mode1415161718192021222324252627LFNST set index1415161718192021222324252627Intra pred mode2829303132333435363738394041LFNST set index2829303132333433323130292827Intra pred mode4243444546474849505152535455LFNST set index2625242322212019181716151413Intra pred mode5657585960616263646566676869LFNST set index12111098765432222Intra pred mode7071727374757677787980LFNST set index22222222222NSPT in ECM

[0097] NSPT (Non-Separable Primary Transform) is designed to replace the 2 stages of transform (DCT2 followed by LFNST) by a single non-separable transform. This is only allowed for small blocks as indicated in FIG. 11. All NSPTs consist of 35 sets and 3 candidates in each set (similar to the current LFNST). The kernels of NSPT have the following shapes:

[0098] NSPT4×4: 16×16

[0099] NSPT4×8 / NSPT8×4: 32×20

[0100] NSPT8×8: 64×32

[0101] NSPT4×16 / NSPT16×4: 64×24

[0102] NSPT8×16 / NSPT16×8: 128×40

[0103] Therefore, 12, 32, 40 and 88 coefficients are zeroed out using NSPT4×8 / NSPT8×4, NSPT8×8, NSPT4×16 / NSPT16×4 and NSPT8×16 / NSPT16×8, respectively.

[0104] The kernel mapping method using intra prediction mode is the same as in LFNST transform kernel set selection.

[0105] As seen above, in the ECM software, the transform set selection depends on selected intra prediction mode for a current block. This is true for all intra coded blocks, whether coded with regular intra prediction such as the intra modes that use IPMs, or coded with other modes like MIP, IBC, IntraTMP etc. The transform set selection is about the selection of primary transform set, e.g Multiple Transform Set (MTS), and the secondary transform set (e.g. LFNST, NSPT).

[0106] As can be seen above, some intra modes uses IPMs to derive the prediction for a current block. For example, these intra modes comprise the core IPMs, TIMD, OBIC, DIMD or SGPM. These intra modes are also referred herein as IPM-based modes. For these IPM-based modes, one of the IPMs used for the prediction of the current block can be used to derive an index of an intra prediction mode for selecting a transform set.

[0107] While other intra modes do not use IPMs to derive the prediction for a current block. In the following, these intra modes can be referred as non-IPM-based modes. For example, these non-IPM-based modes comprise MIP, IBC, IntraTMP, EIP or neural network-based intra prediction mode.Virtual Intra Prediction Mode Derivation

[0108] For the blocks using a non-IPM-based prediction mode, a virtual intra prediction mode (VIPM) is derived. In ECM, the DIMD process is used to derive a VIPM. The virtual intra prediction mode is derived by analyzing the histogram of the predicted data provided by the non-IPM-based prediction mode or the template area of the current block. This VIPM is then used to determine the transform kernel set. In addition to transform selection, the VIPM can be stored for future use of MPM construction. That is, if the current block is used for MPM construction of another future block, and the current block is coded with non-IPM-based prediction mode, the VIPM is used to fill in the MPM. The VIPM is currently derived using DIMD process, which analyzes the histogram of the oriented gradient of the predicted block to find the directionality of the block.

[0109] For blocks using MIP or IntraTMP prediction, the LFNST set index or MTS transform set is derived as follows. DIMD is used to derive the intra prediction mode of the current block based on the MIP or IntraTMP predicted samples. For MIP, this is done before upsampling. Specifically, a horizontal gradient and a vertical gradient are calculated for each predicted sample to build a HoG, as shown in FIG. 12. Then the intra prediction mode with the largest histogram amplitude values is used to determine the LFNST transform set and LFNST Transpose flag.

[0110] For blocks predicted via IntraTMP, DIMD process is used on the prediction block to derive an index of an IPM that is used for transform selection. Specifically, a horizontal gradient and a vertical gradient are calculated for each predicted sample to build a HoG. Then the intra prediction mode with the largest histogram amplitude values is used to select the transform set.Inter LFNST / NSPT with Virtual Intra Modes (VIPM)

[0111] Inter MTS is enabled in ECM CTC (Common Test Conditions), with DST-VII and DCT-VIII replaced by separable KLTs for small blocks. In the current ECM implementation, LFNST / NSPT are applied to intra coded blocks only. In other words, in this implementation, LFNST / NSPT is not used for inter coded blocks. However, it has been observed that some inter prediction residuals still exhibit directional features. As LFNST / NSPT are more efficient in dealing with directional features, it could be beneficial to adapt LFNST / NSPT for inter coded blocks.

[0112] To utilize LFNST / NSPT for inter coding, a virtual intra prediction mode (VIPM) is employed. Each VIPM represents a kind of feature, for example, a specific direction. The VIPM is derived by applying a DIMD-like process, which is also used in MIP and IntraTMP as described above, to the inter prediction block. The horizontal and vertical gradients of pixels inside the prediction block are calculated with Sobel operator and the horizontal and vertical gradients of each pixel are used to derive a direction. The amplitudes of the gradient of each pixel are accumulated for the corresponding direction. The intra prediction mode corresponding to the strongest accumulation is selected as the VIPM. With the VIPM, the transform set of LFNST / NSPT can be derived. For inter coding, the kernel mapping method is the same as that for intra LFNST / NSPT.

[0113] The distribution of inter LFNST / NSPT index is different from that of intra LFNST / NSPT index. Therefore, the signaling of inter LFNST / NSPT index is different from that of intra LFNST / NSPT index. The intra LFNST / NSPT index binarization employs two context coded bins for each symbol, while it uses truncated unary code with different context models for inter LFNST / NSPT index coding.Multiple Transform Set Selection (MTSS)

[0114] Multiple transform set selection (MTSS) has been proposed in F. Wang, et. al., “Non-EE2: Multiple Transform Set Selection for LFNST / NSPT” JVET-AG0062, January 2024, where an additional transform set is tested in addition to the initial one for intra prediction modes relying on VIPM for LFNST / NSPT transform kernel set selection. In this approach, the LFNST / NSPT kernels from both the additional transform set and the initial transform sets are tested. Then, the selected transform set and the index of LFNST / NSPT kernel in the selected transform set are signaled to the decoder. A similar approach has been proposed for intra MTS in C. Bonnineau, et. al., “AHG12: Multiple Transform Set Selection for intra MTS” JVET-AH0307, April 2024, for which a mechanism based on LUT is used for primary transform pair selection.

[0115] As can be seen above, the virtual intra mode (VIPM), typically derived by DIMD process, can be used to assign intra information for blocks coded with non-IPM-based intra predictions (IBC, IntraTMP, MIP) or with inter predictions (i.e. blocks that are not coded with regular intra prediction / IPM). The VIPM can be used to select the best transform kernel set and also to fill in the MPM list of subsequent blocks.Transform Index Derivation Mode

[0116] A transform index derivation mode is described below for deriving the transform in the transform set, which can be applied to implicit transform selection in LFNST / NSPT, MTS, and MTSS. A transform index derivation mode (TIDM) is introduced. This mode is used by prediction modes relying on a VIPM to implicitly derive a transform candidate from their transform set in implicit transform selection based on the intra-mode. The underlying idea is to assign a unique value to each transform candidate within the same prediction mode. This approach enables an optimal distribution of the transforms across various candidates of the same prediction mode during the RDO loop.

[0117] Table 2 presents an example of TIDM used for each prediction mode. The TIDM value of angular mode is the IPM index value.TABLE 1Prediction mode and correspondingtransform index derivation modeTransform index derivationPrediction modemode (TIDM)MIPMIP matrix indexDIMDDIMD derived modeTIMDTIMD derived modeSGPMSplit direction or SGPM indexEIPEIP model indexIntraTmpintraTmp indexInterInter candidate's VIPMAngular modeAngular mode

[0118] Embodiments provided herein aim at improving the virtual intra mode prediction (VIPM) derivation for transform selection, for some or all of non-IPM-based modes using information obtained from IPM-based modes. This allows improving directionality detection as well as reducing delay and encoding time by skipping (at least part of) the processing of histogram of gradients derivation on predicted blocks.

[0119] Some embodiments describes the construction and use of an IPM list acquired from IPM-based modes, such as DIMD, TIMD, SGPM, OBIC for the derivation of intra prediction modes for selecting LNSFT / NSTP transform set for one or more non-IPM-based modes, such as MIP, IntraTMP, EIP, or neural network-based intra prediction mode.

[0120] As described above, when encoding a block, DIMD selects up to seven IPMs, TIMD mode selects three IPMs (two angular modes and one DC or planar), SGPM selects three IPMs candidates for each part, and OBIC selects six IPMs.

[0121] In an embodiment, a method for populating a list of IPMs from IPM-based modes is provided, wherein a VIPM can then be derived from the list for a block coded in a non-IPM-based mode.

[0122] In some variants, the derived VIPM can then be used for the block for selecting a transform kernel set, selecting a transform candidate in a transform kernel set or building an intra-MPM list.

[0123] In other variants, the method for populating list of IPMs can be used under some conditions based on block sizes.

[0124] In an embodiment, a method is provided for signaling one or more parameters relating to any of the embodiments and variants mentioned above.

[0125] FIG. 13 illustrates a method 1300 for encoding or decoding a video, according to an embodiment. In this embodiment, a method to compute the best IPMs list from certain (e.g special) modes (BIPM) is provided. This BIPM list is used for blocks that are coded using non-IPM-based modes. When encoding or decoding a current block of an image of a video, it is determined (1310) whether the current block is encoded / decoded using a non-IPM-based mode (i.e. an intra prediction mode that does not use IPMs to derive the prediction for the current block). For example, it is determined whether the current block is encoded or decoded using one of a MIP, IntraTMP, EIP or neural network-based intra prediction mode.

[0126] When this is the case, then at 1320, a list (BIPM list) of IPMs is built for the current block. The BIPM list is populated as follows. For luminance channel, the k best IPMs of IPM-based modes, such as DIMD, TIMD, SGPM or OBIC, are saved in the BIPM list of size N. The IPM-based modes are obtained from one or more reconstructed neighboring blocks of the current block, for example by considering adjacent neighboring blocks and eventually non-adjacent neighboring blocks.

[0127] In a variant, the list is built by alternating between the lists of IPMs for each of these IPM-based modes. In an example, letIPMnD,IPMnT,IPMnG,IPMnObe the n-th IPM from DIMD, TIMD, SGPM and OBIC, respectively. The BIPM list can be built by alternating the IPM modes obtained from these modes, as follows:BIPM=[IPM0D,IPM0T,IPM0G,IPM0O,IPM1D,IPM1T,IPM1G,IPM1O,…]In a variant, the BIPM list does not contain repeated IPM. This is avoided by skipping repeated IPM in the list build up until N IPMs are present, for example. Alternatively, the BIPM list is constructed based on the k best IPMs in each of the IPM-based modes. Then a pruning of this list is performed by removing any redundant IPM. The IPMs of an IPM-based mode are generally ordered according to distortion costs or amplitude values in HOG or occurrences histograms depending on the IPM-based mode. Best IPMs are thus to be understood here as the first IPMs of the IPM-based mode according to this ordering.In a variant, only a subset of the IPM-based modes is used. In an example, if only the first three IPMs from DIMD are used, the BIPM list will be set asBIPM=[IPM0D,IPM1D,IPM2D].At 1330, an IPM is selected from the list to be used as a VIPM for the current block. At 1340, the selected VIPM can then be used for encoding or decoding the current block or another block of the video.

[0131] In a variant, the BIPM list is used to substitute the current VIPM used in ECM for derivation of transform set of LFNST / NSPT. In other words, the DIMD-like process is no longer applied to the predicted block and for example, the first IPM in the BIPM is selected as VIPM. If MTSS is enabled, the second IPM in the BIPM is used as Secondary mode.

[0132] In another variant, the VIPM is used for MPM list construction for a subsequent block in the video.

[0133] As is further described below, one or more indications can be signaled by the encoder to the decoder for the BIPM list build-up. The process of building the BIPM list is performed in a same manner on the encoder side and the decoder side.

[0134] In a variant, the VIPM derivation from the BIPM list is used in for selecting a transform kernel set for non-IPM-based modes. It is assumed that a mode index is available for the non-IPM-based modes. For example, the mode index for a non-IPM-based mode is obtained as indicated in the second column of Table 2 (Transform Index Derivation Mode). For example, the mode index could correspond to an indication or index identifying a specific configuration of the non-IPM-based: an index selecting a candidate in the candidate list (SGPM, IntraTMP, Inter), an index selecting a matrix for the MIP mode, a model index for EIP (e.g. EIP defines 3 filter shapes and 3 types of reconstructed area, thus providing 3×3=9 configurations available, i.e. 9 models, in the multi-model EIP 9 more models are also available). When a mode index is not available for a non IPM-based mode, a default value could be used as a mode index (for example for the Neural-Network based-Intra mode).

[0135] The mode index is then used to select the VIPM in the BIPM list.

[0136] In an example, for the MIP mode as one of the non-IPM-based modes, the mode index is the MIP matrix index used for predicting the current block. Let's note MIPi the MIP matrix index used for predicting the current block, VIPM1 and VIPM2 the primary VIPM and secondary VIPM respectively, and IPMk the k-th IPM in BIPM list (of size N).

[0137] An index k is determined from the mode index as follows: k=MIPi% N.

[0138] Then, the primary VIPM is selected as being the IPM in the BIPM list placed at the index k: VIPM1=IPMk.

[0139] In a variant, when a secondary VIPM is required, then the secondary VIPM can be selected in the BIPM list as follows:VIPM2={IPMk+1,if⁢ k<N-1IPM0,if⁢ k=N-1

[0140] In a variant, the BIPM list is used for VIPM derivation only under certain conditions based on the blocks' width (W) and height (H) of the current block. Depending on the video characteristics, this diversifies VIPM derivation, allowing for better encoding. FIG. 15 shows an example of a grid of possible block sizes, for various possible values for W and H. FIG. 16-19 shows different conditions that the size of the current block shall satisfy for the current block to use the BIPM list according to different variants.

[0141] In an example, one possible condition would be related to block sizes, such as W×H>128. FIG. 16 shows the grid in FIG. 15 highlighting the block sizes that satisfy the exemplified condition.

[0142] In an example, one possible condition would be either W or H being larger or smaller than a certain value, such as W>16 or H>16. FIG. 17 shows the grid in FIG. 15 highlighting the block sizes that satisfy the exemplified condition.

[0143] In an example, one possible condition would be both W and H being larger or smaller than a certain value, such as W<16 and H<16. FIG. 18 shows the grid in FIG. 15 highlighting the block sizes that satisfy the exemplified condition.

[0144] In yet another example, one possible condition would be defined by the ratio between W and H, which restricts the block shape, such as W / H>2 or H / W>2. FIG. 19 shows the grid in FIG. 15 highlighting the block sizes that satisfy the exemplified condition.

[0145] FIG. 14 illustrates a method 1400 for signaling or decoding one or more parameters relating to the BIPM list build up and usage, according to an embodiment. Multiple variants are described below and the variants can be used alone or in combination.

[0146] In this embodiment, the signaling for using BIPM list is introduced. The signaling provided below can for example be applied to the sequence parameter set (SPS) and transmitted to the decoder. In other variants, the signaling can be specified at the picture parameter set (PPS) or slice level.

[0147] At 1410, in a variant, an indication sps_use_bipm is signaled to indicate if the current VIPM technique will be replaced. In other words, indication sps_use_bipm indicates whether the VIPM is derived from the BIPM list or from the DIMD process. For example, the indication sps_use_bipm is a flag. If other methods for deriving the VIPM are available, the indication sps_use_bipm can be coded using more than 1 bit. In an example, if sps_use_bipm=0, there is no change to the current techniques used (VIPM is derived using DIMD process for example). If sps_use_bipm=1, then the VIPM is derived using the BIPM list.

[0148] At 1420, in a variant, when the VIPM is derived using the BIPM list (either indicated by the indication sps_use_bipm or used as a default process), different flags are signaled to inform which IPM-based modes are used to populate the BIPM list. These flags are for example in the form sps_bipm_M, where M must be replaced by the IPM-based mode available to the codec. Currently, in ECM, three flags can be specified: sps_bipm_dimd indicating whether IPM derived from a DIMD mode are used for populating the BIPM list, sps_bipm_timd indicating whether IPM derived from a TIMD mode are used for populating the BIPM list, sps_bipm_sgpm indicating whether IPM derived from a SGPM mode are used for populating the BIPM list, and sps_bipm_obic indicating whether IPM derived from an OBIC mode are used for populating the BIPM list.

[0149] At 1430, in a variant, a parameter sps_bipm_max_size is signaled to inform the maximum size N of the BIPM list.

[0150] At 1440, in a variant, a flag sps_bipm_use_modeidx is signaled to inform if mode index is used to select the VIPM of the non-IPM-based mode from the BIPM list.

[0151] At 1450, in a variant, a set of parameters is defined for the conditional case, when the BIPM list is used for deriving a VIPM. A flag sps_use_bipm_conditional is signaled to inform that BIPM is used for VIPM for specific block sizes.

[0152] At 1460, if sps_use_bipm_conditional=1, a 2D binary array sps_bipm_block[i][j] (as exemplified in FIG. 15) is signaled, an element sps_bipm_block[i][j] of the array indicates if for this block size BIPM is used. This array considers blocks from sizes 4×4 pixels up to the CTU size, which is already informed by SPS parameter sps_log 2_ctu_size_minus5.

[0153] The new syntax elements as resumed in the table below:Descriptorsps_parameter_set_rbsp( ) {... sps_use_bipmu(1) if( sps_use_bipm ) {  sps_bipm_dimdu(1)  sps_bipm_timdu(1)  sps_bipm_sgpmu(1)  sps_bipm_obicu(1)  sps_bipm_max_sizeu(4)  sps_bipm_use_modeidxu(1)  sps_use_bipm_conditionalu(1)  if (sps_use_bipm_conditional) {   for (i=2; i<=sps_log2_ctu_size_minus5+5; i++){    for (j=2; j<=sps_log2_ctu_size_minus5+5; j++){     sps_bipm_block[i−2][j−2]u(1)    }   }  } }

[0154] In an embodiment, illustrated in FIG. 20, in a transmission context between two remote devices A and B over a communication network NET, the device A comprises a processor in relation with memory RAM and ROM which are configured to implement a method for encoding a video according to any one of the embodiments described herein in relation with FIG. 13-19 and the device B comprises a processor in relation with memory RAM and ROM which are configured to implement a method for decoding a video according to any one of the embodiments described herein in relation with FIG. 13-19. In accordance with an example, the network is a broadcast network, adapted to broadcast / transmit a coded video from device A to decoding devices including the device B.

[0155] FIG. 21 shows an example of the syntax of a signal transmitted over a packet-based transmission protocol. Each transmitted packet P comprises a header H and a payload PAYLOAD. In some embodiments, the payload PAYLOAD may comprise data representative an encoded video and one or more syntax elements described above according to any one of the embodiments.

[0156] One or more embodiments provide a computer program comprising instructions which when executed by one or more processors cause such processors to perform the encoding and / or decoding methods according to any of the embodiments described above. One or more embodiments also provide a computer readable storage medium having stored thereon instructions for encoding or decoding video data according to the methods described above.

[0157] One or more embodiments provide a computer readable storage medium having stored thereon video data generated according to the methods described above. One or more embodiments also provide a method and apparatus for transmitting or receiving video data generated according to the methods described above.

[0158] The embodiments described herein may be implemented in, for example, a method or a process, an apparatus, a software program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (e.g., as a method), the implementation of such features may also be implemented in other forms. An apparatus may be implemented in, for example, appropriate hardware, software, and firmware. Corresponding methods may be implemented in, for example, a processor.

[0159] Various methods and aspects described herein can be used to modify one or more modules. For example, the intra predictors and inter predictors described with respect to FIGS. 2 and 3 may be implemented as one or more modules and modified according to the various embodiments of the present disclosure.

[0160] The various embodiments described herein provide at least the following features, devices or aspects, alone or on any combination, across various claim categories and types:

[0161] i. Encoding, into coded video data, syntax elements that can enable the decoder to decode the coded video data, according to any of the embodiments described herein.

[0162] ii. A bitstream that includes one or more of the described syntax elements, or variations thereof, whether transmitted, stored, or otherwise made available.

[0163] iii. Creating, transmitting, receiving, and / or decoding of the bitstream.

[0164] iv. An electronic device (e.g., TV, set-top box, mobile phone, tablet, etc.) that tunes a channel to receive a bitstream or that receives such bitstream over the air. The electronic device decodes the syntax elements from the bitstream, and, optionally, displays (e.g., via a monitor or other type of display) a resulting image.

[0165] Various numeric values are used in the present application. Such specific values are for example purposes and the embodiments described are not limited to these specific values.

[0166] Various methods are described herein, and such methods comprise one or more steps or actions for achieving the described method. Unless a specific order of steps or actions is required for the proper operation of the method, the order and / or use of specific steps and / or actions may be modified or combined. Additionally, terms such as “first”, “second”, etc. may be used in various embodiments to modify an element, component, step, operation, etc., for example, a “first decoding” and a “second decoding”. Use of such terms does not imply an order to the operations unless specifically required.

[0167] The present disclosure may refer to “determining” various pieces of information. Determining information may include one or more of, for example, estimating, calculating, predicting, or retrieving (e.g., from memory) the information.

[0168] The present disclosure may refer to “accessing” various pieces of information. Accessing information may include one or more of, for example, receiving, retrieving (e.g., from memory), storing, moving, copying, calculating, determining, predicting, or estimating the information. Similarly, the present disclosure may refer to “receiving” various pieces of information. Receiving information may include one or more of, for example, accessing or retrieving (e.g., from memory) the information.

[0169] “Decoding,” as used herein, encompasses all or part of the processes performed, for example, on an encoded sequence to produce an output suitable for display. In some embodiments, such processes include one or more of the processes typically performed by a decoder, for example, entropy decoding, inverse quantization, etc. Whether the phrase “decoding process” is intended to refer to a subset of operations or generally to the broader decoding process will be clear based on the context of the specific description and will be well understood by those skilled in the art.

[0170] “Encoding,” as used herein, encompasses all or part of the processes performed, for example, on input video data an order to produce an encoded bitstream. Additionally, the terms “reconstructed” and “decoded” may be used interchangeably, the terms “encoded” or “coded” may be used interchangeably, the terms “image,”“picture,”“sub-picture,”“slice,” and “frame” may be used interchangeably, and the terms “pixel” and “sample” may be used interchangeably.

[0171] The present disclosure refers to information, for example, syntax elements, that can be transmitted or stored. Such information can be packaged or arranged in a variety of manners, including for example manners common in video standards such as putting the information into a sequence parameter set (SPS), a picture parameter set (PPS), a network abstraction layer (NAL) unit, a header (for example, a NAL unit header, or a slice header), or an SEI message. Other manners are also available, including, for example, manners that are common for system level or application-level standards such as signaling the information into one or more of the following:

[0172] i. session description protocol (SDP), for example as described in RFCs and / or used in conjunction with real-time transport protocol (RTP) transmission.

[0173] ii. hypertext transfer protocol (HTTP) live Streaming (HLS) manifest transmitted over HTTP.

[0174] iii. dynamic adaptive streaming over HTTP (DASH) media presentation description (MPD) descriptors, for example as used in DASH and transmitted over HTTP.

[0175] iv. RTP header extensions, for example as used during RTP streaming.

[0176] v. International Organization for Standardization (ISO) base media file format, for example, as used in Omnidirectional MediA Format (OMAF).

[0177] As used herein, “signal” and “signaling” refer to, among other things, indicating information to a decoder. For example, in some embodiments the encoder signals a quantization matrix for de-quantization, whereby the same parameter is used for both encoding and decoding. In some embodiments, the signaling may be explicit, such that information (e.g., a particular parameter) is transmitted to the decoder enabling the decoder to use the same particular parameter. In some embodiments, the signaling may be implicit, in that the information (e.g., a particular parameter) is indicated based on other information at or transmitted to the decoder or derived or selected by the decoder based on information available at the decoder. By not transmitting the information (e.g., the particular parameter), a bit savings is thus realized in some embodiments. In some embodiments, one or more syntax elements or flags are used to signal information to a decoder. While the preceding relates to the verb form of the word “signal”, the word “signal” can also be used herein as a noun.

[0178] In some embodiments, signals may be produced that are formatted to carry information that may be stored or transmitted. Such information may include, for example, instructions for performing a method, or data produced by one of the described implementations (e.g., a bitstream of a described embodiment). Such a signal may be formatted, for example, as an electromagnetic wave or as a baseband signal. The formatting may include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information that the signal carries may be, for example, analog or digital information. The signal may be transmitted over a variety of different wired or wireless links and may be stored on a processor-readable medium.

[0179] It is to be understood that use of any of the following “ / ”, “and / or”, and “at least one of” is intended to encompass all possible selections of listed items, taken either individually or in any combination thereof.

[0180] While specific embodiments have been described in the foregoing description in connection with the accompanying drawings, it should be understood that embodiments described herein are examples only and should not be taken as limiting the scope of the present disclosure or the following claims. Although features and elements are described herein in particular combinations, those of ordinary skill in the art will appreciate that such features or elements may be used alone or in any combination with the other features and elements. It is understood, therefore, that the overall teachings of the present disclosure are not limited to the particular embodiments, implementations, and examples disclosed herein, but are intended to cover variations, modifications, and alternatives as defined by the appended claims and any and all equivalents thereof.

Claims

1. A method comprising:determining that a current block of an image of a video is coded using a first intra mode that does not use an intra prediction mode from a set of intra prediction modes to derive a prediction for the current block;populating a list of intra prediction modes obtained from one or more second intra modes, the one or more second intra modes being intra modes that use one or more intra prediction modes from the set of intra prediction modes to derive a prediction when coding a block;obtaining a first index associated with the first intra mode;determining a second index as a result of the first index modulo a total number of intra prediction modes in the list;selecting, for the current block, at least one intra prediction mode from the list as at least one virtual intra prediction mode to the current block using the second index; andselecting a transform kernel set for transforming the current block using the at least one virtual intra prediction mode.

2. The method of claim 1, wherein the one or more second intra modes are used for reconstructing one or more neighboring blocks of the current block.

3. The method of claim 1, wherein the set of intra prediction modes comprise angular intra prediction modes, planar mode and DC mode.

4. The method of claim 1, wherein the one or more second intra modes include at least one of a decoder-side intra mode derivation (DIMD), template-based intra mode derivation (TIMD), spatial geometric partitioning mode (SGPM), or occurrence-based intra coding (OBIC) mode.

5. The method of claim 1, wherein the first intra mode is one of a matrix-based intra prediction (MIP), intra template matching prediction (IntraTMP), extrapolation filter-based intra prediction (EIP), or neural network-based intra prediction mode.

6. The method of claim 1, wherein the at least one virtual intra prediction mode is added to a list of most probable modes built for a subsequent block of the image.

7. The method of claim 1, wherein populating the list of intra prediction modes comprises adding the one or more intra prediction modes of the one or more second intra modes in alternance.

8. The method of claim 7, wherein a first intra prediction mode of one of the one or more second intra modes is added to the list if the first intra prediction mode is not already present in the list.

9. The method of claim 7, wherein the list is pruned to remove redundant intra prediction modes from the list.10.-11. (canceled)12. The method of claim 1, wherein at least one other virtual intra prediction mode is provided to the current block by selecting another intra prediction mode from the list as an intra prediction mode being placed in the list at the second index plus one.

13. The method of claim 1, wherein populating the list of intra prediction modes is responsive to a determination that a size of the current block satisfies a given condition.

14. The method of claim 1, comprising decoding one or more indications indicating at least one of:whether the at least one virtual intra prediction mode is derived from a decoder-side intra mode derivation (DIMD) process applied on a prediction of the current block obtained using the first intra mode or the at least one virtual intra prediction mode is derived from the list of intra prediction modes;for at least one of the second intra modes, whether the at least one of the second intra modes is used to populate the list;a maximum size of the list;whether the list is used for deriving a transform index;whether the list is used for deriving the at least one virtual intra prediction mode under block size conditioning; orone or more block sizes for which the list is used for deriving the at least one virtual intra prediction mode.

15. The method of claim 1, comprising signaling one or more indications indicating at least one of:whether the at least one virtual intra prediction mode is derived from a decoder-side intra mode derivation (DIMD) process applied on a prediction of the current block obtained using the first intra mode or the at least one virtual intra prediction mode is derived from the list of intra prediction modes;for at least one of the second intra modes, whether the at least one of the second intra modes is used to populate the list;a maximum size of the list;whether the list is used for deriving a transform index;whether the list is used for deriving the at least one virtual intra prediction mode under block size conditioning; orone or more block sizes for which the list is used for deriving the at least one virtual intra prediction mode.

16. The method of claim 1, further comprising encoding the current block.

17. The method of claim 1, further comprising decoding the current block.

18. An apparatus for encoding a video comprising:a memory and one or more processors configured to;determine that a current block of an image of a video is coded using a first intra mode that does not use an intra prediction mode from a set of intra prediction modes to derive a prediction for the current block;populate a list of intra prediction modes obtained from one or more second intra modes, the one or more second intra modes being intra modes that use one or more intra prediction modes from the set of intra prediction modes to derive a prediction when coding a block;obtain a first index associated with the first intra mode;determine a second index as a result of the first index modulo a total number of intra prediction modes in the list;select for the current block, at least one intra prediction mode from the list as at least one virtual intra prediction mode to the current block using the second index;select a transform kernel set using the at least one virtual intra prediction mode for transforming the current block; andencode the current block.

19. An apparatus for decoding a video comprising:a memory and one or more processors configured to:determine that a current block of an image of a video is coded using a first intra mode that does not use an intra prediction mode from a set of intra prediction modes to derive a prediction for the current block;populate a list of intra prediction modes obtained from one or more second intra modes, the one or more second intra modes being intra modes that use one or more intra prediction modes from the set of intra prediction modes to derive a prediction when coding a block;obtain a first index associated with the first intra mode;determine a second index as a result of the first index modulo a total number of intra prediction modes in the list;select, for the current block, at least one intra prediction mode from the list as at least one virtual intra prediction mode to the current block using the second index;select a transform kernel set using the at least one virtual intra prediction mode for transforming the current block; anddecode the current block.

20. The apparatus of claim 18, wherein the one or more second intra modes include at least one of a decoder-side intra mode derivation (DIMD), template-based intra mode derivation (TIMD), spatial geometric partitioning mode (SGPM), or occurrence-based intra coding (OBIC) mode.

21. The apparatus of claim 19, wherein the one or more second intra modes include at least one of a decoder-side intra mode derivation (DIMD), template-based intra mode derivation (TIMD), spatial geometric partitioning mode (SGPM), or occurrence-based intra coding (OBIC) mode.

22. The apparatus of claim 19, wherein the first intra mode is one of a matrix-based intra prediction (MIP), intra template matching prediction (IntraTMP), extrapolation filter-based intra prediction (EIP), or neural network-based intra prediction mode.