A method, an apparatus and a computer program product for video encoding and decoding

By pruning overlapping prediction models in the candidate list for video encoding, the method optimizes chroma sample prediction, addressing inefficiencies in existing techniques and enhancing encoding efficiency through reduced redundancy and signaling costs.

WO2024175831A1PCT designated stage expired Publication Date: 2024-08-29NOKIA TECHNOLOGIES OY

Patent Information

Application Number
PCT/FI2024/050024
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2024-01-22
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Current video encoding techniques face inefficiencies in predicting chroma samples due to the complexity of calculating filter parameters for cross-component prediction models, leading to numerical stability issues and increased redundancy in bitstream signaling.

Method used

The proposed solution involves optimizing the candidate list of prediction models by pruning overlapping models in both chroma and parameter spaces, using methods such as radius-based pruning and clustering, to select the best-performing model for encoding, thereby reducing redundancy and improving encoding efficiency.

Benefits of technology

This approach reduces the candidate list size, minimizing signaling costs and enhancing encoding efficiency by selecting the most effective prediction model for chroma sample prediction, thereby improving video compression performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FI2024050024_29082024_PF_FP_ABST
    Figure FI2024050024_29082024_PF_FP_ABST
Patent Text Reader

Abstract

The present embodiments relate to a method and technical equipment for implementing the method. The method comprises receiving (1010) a candidate list of prediction models; pruning (1020) the candidate list with respect to the prediction models to obtain a pruned candidate list; evaluating (1030) performance of each prediction model in the pruned candidate list; selecting (1040) a prediction model from the pruned candidate list providing the best performance; applying (1050) the selected prediction model in encoding; and encoding (1060) an indication of the selected model into a bitstream.
Need to check novelty before this filing date? Find Prior Art

Description

[0001]A METHOD, AN APPARATUS AND A COMPUTER PROGRAM PRODUCT FOR VIDEO ENCODING AND DECODING Technical Field The present solution generally relates to video encoding and video decoding. In particular, the present solution relates to Background This section is intended to provide a background or context to the invention that is recited in the claims. The description herein may include concepts that could be pursued but are not necessarily ones that have been previously conceived or pursued. Therefore, unless otherwise indicated herein, what is described in this section is not prior art to the description and claims in this application and is not admitted to be prior art by inclusion in this section. A video coding system may comprise an encoder that transforms an input video into a compressed representation suited for storage / transmission and a decoder that can uncompress the compressed video representation back into a viewable form. The encoder may discard some information in the original video sequence in order to represent the video in a more compact form, for example, to enable the storage / transmission of the video information at a lower bitrate than otherwise might be needed. Summary The scope of protection sought for various embodiments of the invention is set out by the independent claims. The embodiments and features, if any, described in this specification that do not fall under the scope of the independent claims are to be interpreted as examples useful for understanding various embodiments of the invention. Various aspects include a method, an apparatus and a computer readable medium comprising a computer program stored therein, which are characterized by what is stated in the independent claims. Various embodiments are disclosed in the dependent claims. According to a first aspect, there is provided an apparatus comprising means for receiving a candidate list of prediction models; means for pruning the candidate list with respect to the prediction models to obtain a pruned candidate list; means for evaluating performance of each prediction model in the pruned candidate list; means for selecting a prediction model from the pruned candidate list providing the best performance; means for applying the selected prediction model in encoding; and means for encoding an indication of the selected model into a bitstream. According to a second aspect, there is provided a method, comprising: receiving a candidate list of prediction models; pruning the candidate list with respect to the prediction models to obtain a pruned candidate list; evaluating performance of each prediction model in the pruned candidate list; selecting a prediction model from the pruned candidate list providing the best performance; applying the selected prediction model in encoding; and encoding an indication of the selected model into a bitstream. According to a third aspect, there is provided an apparatus comprising at least one processor, memory including computer program code, the memory and the computer program code configured to, with the at least one processor, cause the apparatus to perform at least the following: receive a candidate list of prediction models; prune the candidate list with respect to the prediction models to obtain a pruned candidate list; evaluate performance of each prediction model in the pruned candidate list; select a prediction model from the pruned candidate list providing the best performance; apply the selected prediction model in encoding; and encode an indication of the selected model into a bitstream. According to a fourth aspect, there is provided computer program product comprising computer program code configured to, when executed on at least one processor, cause an apparatus or a system to: receive a candidate list of prediction models; prune the candidate list with respect to the prediction models to obtain a pruned candidate list; evaluate performance of each prediction model in the pruned candidate list; select a prediction model from the pruned candidate list providing the best performance; apply the selected prediction model in encoding; and encode an indication of the selected model into a bitstream. According to an embodiment, a reconstruction error of each prediction model is measured to evaluate prediction model’s performance. According to an embodiment, pruning comprises determining overlapping prediction models between prediction models and removing at least one of the determined overlapping prediction model. According to an embodiment, pruning comprises a chroma space pruning, a luma space pruning, a parameter space pruning, a radius-based pruning, clustering or vector quantization. According to an embodiment, for the luma space pruning, the apparatus further comprises means for determining overlaps between the prediction models by evaluating outputs of candidate prediction models for a value of a luma block. According to an embodiment, the luma value is determined to be an average of reference luma values used to calculate the candidate prediction models or a subset of those. According to an embodiment, for the parameter space pruning, the apparatus further comprises means for determining overlaps between the prediction models by evaluating a distance of the prediction models in a parameters space. According to an embodiment, for the radius-based pruning, the apparatus further comprises means for determining an overlap based on an output of a first prediction model is within a radius of an output of a second prediction model. According to an embodiment, the pruning comprises determining mean of all prediction models within a certain radius. According to an embodiment, a center is updated each time a prediction model is found within the radius or the center is updated after all of the prediction models within the radius are found. According to an embodiment, a used radius is signaled or inferred in or from a coding unit, a prediction unit, a coding tree unit, a slice, a frame or a sequence level. According to an embodiment, an enabling flag of pruning is signaled or inferred in or from a coding unit, a prediction unit, a coding tree unit, a slice, a frame or a sequence level. According to an embodiment, a type of pruning is signaled or inferred in or from a coding unit, a prediction unit, a coding tree unit, a slice, a frame or sequence level. According to an embodiment, the computer program product is embodied on a non-transitory computer readable medium. Description of the Drawings In the following, various embodiments will be described in more detail with reference to the appended drawings, in which Fig.1 shows an example of the location of the left and above samples of a current block involved in the CCLM mode. Fig.2a shows an example of derivation of chroma prediction mode from luma mode when CCLM is enabled. Fig.2b shows an example of a unified binarization table for chroma prediction mode. Fig.3a shows two luma-to-chrome models obtained for luma Y threshold of 17. Fig.3b shows an example of correspondence of each luma-to- chroma model to a spatial segmentation of the content. Fig.4 shows an example of locations of the samples used for the derivation of CCCM filter. Fig.5 shows examples of various filter kernels; Fig.6 shows an example of four reference lines neighboring to a prediction block. Fig.7 shows an example an example of matrix weighted intra prediction process. Fig.8 shows an example of top and left neighboring blocks used in CIIP weight derivation. Fig.9a shows an example of an initial set of candidates, and Fig.9b shows an example of a resulting set of candidates after pruning. Fig.10 is a flowchart illustrating a method according to an embodiment. Fig.11 shows an apparatus according to an embodiment. Fig.12 shows an encoding process according to an embodiment. Fig.13 shows a decoding process according to an embodiment. Description of Example Embodiments The following description and drawings are illustrative and are not to be construed as unnecessarily limiting. The specific details are provided for a thorough understanding of the disclosure. However, in certain instances, well- known or conventional details are not described in order to avoid obscuring the description. References to one or an embodiment in the present disclosure can be, but not necessarily are, reference to the same embodiment and such references mean at least one of the embodiments. Reference in this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the disclosure. In the following, several embodiments will be described in the context of one video coding arrangement. It is to be noted, however, that the present embodiments are not necessarily limited to this particular arrangement. The embodiments relate to non-local cross-component prediction, and to model candidate list optimization for the non-local cross-component prediction. The Advanced Video Coding standard (which may be abbreviated AVC or H.264 / AVC) was developed by the Joint Video Team (JVT) of the Video Coding Experts Group (VCEG) of the Telecommunications Standardization Sector of International Telecommunication Union (ITU-T) and the Moving Picture Experts Group (MPEG) of International Organization for Standardization (ISO) / International Electrotechnical Commission (IEC). The H.264 / AVC standard is published by both parent standardization organizations, and it is referred to as ITU-T Recommendation H.264 and ISO / IEC International Standard 14496-10, also known as MPEG-4 Part 10 Advanced Video Coding (AVC). There have been multiple versions of the H.264 / AVC standard, each integrating new extensions or features to the specification. These extensions include Scalable Video Coding (SVC) and Multiview Video Coding (MVC). The High Efficiency Video Coding standard (which may be abbreviated HEVC or H.265 / HEVC) was developed by the Joint Collaborative Team - Video Coding (JCT-VC) of VCEG and MPEG. The standard is published by both parent standardization organizations, and it is referred to as ITU-T Recommendation H.265 and ISO / IEC International Standard 23008-2, also known as MPEG-H Part 2 High Efficiency Video Coding (HEVC). Extensions to H.265 / HEVC include scalable, multiview, three-dimensional, and fidelity range extensions, which may be referred to as SHVC, MV-HEVC, 3D-HEVC, and REXT, respectively. The references in this description to H.265 / HEVC, SHVC, MV-HEVC, 3D-HEVC and REXT that have been made for the purpose of understanding definitions, structures or concepts of these standard specifications are to be understood to be references to the latest versions of these standards that were available before the date of this application, unless otherwise indicated. Versatile Video Coding (which may be abbreviated VVC, H.266, or H.266 / VVC) is a video compression standard developed as the successor to HEVC. VVC is specified in ITU-T Recommendation H.266 and equivalently in ISO / IEC 23090-3, which is also referred to as MPEG-I Part 3. A specification of the AV1 bitstream format and decoding process were developed by the Alliance of Open Media (AOM). The AV1 specification was published in 2018. AOM is reportedly working on the AV2 specification. Some key definitions, bitstream and coding structures, and concepts of H.264 / AVC, HEVC, VVC, and / or AV1 and some of their extensions are described in this section as an example of a video encoder, decoder, encoding method, decoding method, and a bitstream structure, wherein the embodiments may be implemented. The aspects of various embodiments are not limited to H.264 / AVC, HEVC, VVC, and / or AV1 or their extensions, but rather the description is given for one possible basis on top of which the present embodiments may be partly or fully realized. A video codec may comprise an encoder that transforms the input video into a compressed representation suited for storage / transmission and a decoder that can uncompress the compressed video representation back into a viewable form. The compressed representation may be referred to as a bitstream or a video bitstream. A video encoder and / or a video decoder may also be separate from each other, i.e., need not form a codec. The encoder may discard some information in the original video sequence in order to represent the video in a more compact form (that is, at lower bitrate). The notation “(de)coder” means an encoder and / or a decoder. In some video codecs, such as H.265 / HEVC, video pictures are divided into coding units (CU) covering the area of the picture. A CU consists of one or more prediction units (PU) defining the prediction process for the samples within the CU and one or more transform units (TU) defining the prediction error coding process for the samples in the said CU. CU may consist of a square block of samples with a size selectable from a predefined set of possible CU sizes. A CU with the maximum allowed size may be named as LCU (largest coding unit) or CTU (coding tree unit), and the video picture is divided into non-overlapping CTUs. A CTU can be further split into a combination of smaller CUs, e.g., by recursively splitting the CTU and resultant CUs. Each resulting CU may have at least one PU and at least one TU associated with it. Each PU and TU can be further split into smaller PUs and TUs in order to increase granularity of the prediction and prediction error coding processes, respectively. Each PU has prediction information associated with it defining what kind of a prediction is to be applied for the pixels within that PU (e.g., motion vector information for inter predicted PUs and intra prediction directionality information for intra predicted PUs). Similarly, each TU is associated with information describing the prediction error decoding process for the samples within the said TU (including e.g., DCT coefficient information). It may be signaled at CU level whether prediction error coding is applied or not for each CU. In the case there is no prediction error residual associated with the CU, it can be considered there are no TUs for the said CU. The division of the image into CUs, and division of CUs into PUs and TUs may be signaled in the bitstream allowing the decoder to reproduce the intended structure of these units. Hybrid video codecs, for example ITU-T H.263, H.264 / AVC and HEVC, may encode the video information in two phases. At first, pixel values in a certain picture area (or “block”) are predicted for example by motion compensation means (finding and indicating an area in one of the previously coded video frames that corresponds closely to the block being coded) or by spatial means (using the pixel values around the block to be coded in a specified manner). In the first phase, predictive coding may be applied, for example, as so-called sample prediction and / or so-called syntax prediction. In the sample prediction, pixel or sample values in a certain picture area or "block" are predicted. These pixel or sample values can be predicted, for example, using one or more of motion compensation or intra prediction mechanisms. Motion compensation mechanisms (which may also be referred to as inter prediction, temporal prediction or motion-compensated temporal prediction or motion-compensated prediction or MCP) involve finding and indicating an area in one of the previously encoded video frames that corresponds closely to the block being coded. Inter prediction may reduce temporal redundancy. Intra prediction, where pixel or sample values can be predicted by spatial mechanisms, involve finding and indicating a spatial region relationship. Intra prediction utilizes the fact that adjacent pixels within the same picture are likely to be correlated. Intra prediction can be performed in spatial or transform domain, i.e., either sample values or transform coefficients can be predicted. Intra prediction is typically exploited in intra coding, where no inter prediction is applied. In the syntax prediction, which may also be referred to as parameter prediction, syntax elements and / or syntax element values and / or variables derived from syntax elements are predicted from syntax elements (de)coded earlier and / or variables derived earlier. Non-limiting examples of syntax prediction are provided below. In motion vector prediction, motion vectors e.g., for inter and / or inter- view prediction may be coded differentially with respect to a block-specific predicted motion vector. In many video codecs, the predicted motion vectors are created in a predefined way, for example by calculating the median of the encoded or decoded motion vectors of the adjacent blocks. Another way to create motion vector predictions, sometimes referred to as advanced motion vector prediction (AMVP), is to generate a list of candidate predictions from adjacent blocks and / or co-located blocks in temporal reference pictures and signalling the chosen candidate as the motion vector predictor. In addition to predicting the motion vector values, the reference index of previously coded / decoded picture can be predicted. The reference index is typically predicted from adjacent blocks and / or co-located blocks in temporal reference picture. Differential coding of motion vectors is typically disabled across slice boundaries. The block partitioning, e.g., from CTU to CUs and down to PUs, may be predicted. In filter parameter prediction, the filtering parameters e.g., for sample adaptive offset may be predicted. Prediction approaches using image information from a previously coded image can also be called as inter prediction methods which may also be referred to as temporal prediction and motion compensation. Prediction approaches using image information within the same image can also be called as intra prediction methods. Secondly, the prediction error, i.e., the difference between the predicted block of pixels and the original block of pixels, is coded. This may be done by transforming the difference in pixel values using a specified transform (e.g., Discrete Cosine Transform (DCT) or a variant of it), quantizing the coefficients and entropy coding the quantized coefficients. By varying the fidelity of the quantization process, encoder can control the balance between the accuracy of the pixel representation (picture quality) and size of the resulting coded video representation (file size of transmission bitrate). An elementary unit for the input to an encoder and the output of a decoder, respectively, in most cases is a picture. A picture given as an input to an encoder may also be referred to as a source picture, and a picture decoded by a decoded may be referred to as a decoded picture or a reconstructed picture. The source and decoded pictures are each comprised of one or more sample arrays, such as one of the following sets of sample arrays: Luma (Y) only (monochrome). Luma and two chroma (YCbCr or YCgCo). Green, Blue and Red (GBR, also known as RGB). Arrays representing other unspecified monochrome or tri-stimulus color samplings (for example, YZX, also known as XYZ). In the following, these arrays may be referred to as luma (or L or Y) and chroma, where the two chroma arrays may be referred to as Cb and Cr; regardless of the actual color representation method in use. The actual color representation method in use can be indicated e.g., in a coded bitstream e.g., using the Video Usability Information (VUI) syntax of HEVC or alike. A component may be defined as an array or single sample from one of the three sample arrays (luma and two chroma) or the array or a single sample of the array that compose a picture in monochrome format. A picture may be defined to be either a frame or a field. A frame comprises a matrix of luma samples and possibly the corresponding chroma samples. A field is a set of alternate sample rows of a frame and may be used as encoder input, when the source signal is interlaced. Chroma sample arrays may be absent (and hence monochrome sampling may be in use) or chroma sample arrays may be subsampled when compared to luma sample arrays. The decoder reconstructs the output video by applying prediction means similar to the encoder to form a predicted representation of the pixel blocks (using the motion or spatial information created by the encoder and stored in the compressed representation) and prediction error decoding (inverse operation of the prediction error coding recovering the quantized prediction error signal in spatial pixel domain). After applying prediction and prediction error decoding means the decoder sums up the prediction and prediction error signals (pixel values) to form the output video frame. The decoder (and encoder) can also apply additional filtering means to improve the quality of the output video before passing it for display and / or storing it as prediction reference for the forthcoming frames in the video sequence. The motion information may be indicated with motion vectors associated with each motion compensated image block in video codecs. Each of these motion vectors represents the displacement of the image block in the picture to be coded (in the encoder side) or decoded (in the decoder side) and the prediction source block in one of the previously coded or decoded pictures. H.264 / AVC and HEVC, as many other video compression standards, a picture is divided into a mesh of rectangles, for each of which a similar block in one of the reference pictures is indicated for inter prediction. The location of the prediction block is coded as a motion vector that indicates the position of the prediction block relative to the block being coded. In order to represent motion vectors efficiently those may be coded differentially with respect to block specific predicted motion vectors. The predicted motion vectors may be created in a predefined way, for example calculating the median of the encoded or decoded motion vectors of the adjacent blocks. Another way to create motion vector predictions is to generate a list of candidate predictions from adjacent blocks and / or co-located blocks in temporal reference pictures and signaling the chosen candidate as the motion vector predictor. In addition to predicting the motion vector values, the reference index of previously coded / decoded picture can be predicted. The reference index may be predicted from adjacent blocks and / or or co-located blocks in temporal reference picture. Moreover, high efficiency video codecs may employ an additional motion information coding / decoding mechanism, often called merging / merge mode, where all the motion field information, which includes motion vector and corresponding reference picture index for each available reference picture list, is predicted and used without any modification / correction. Similarly, predicting the motion field information is carried out using the motion field information of adjacent blocks and / or co- located blocks in temporal reference pictures and the used motion field information is signaled among a list of motion field candidate list filled with motion field information of available adjacent / co-located blocks. H.264 / AVC and HEVC, as many other video compression standards, a picture is divided into a mesh of rectangles, for each of which a similar block in one of the reference pictures is indicated for inter prediction. The location of the prediction block is coded as a motion vector that indicates the position of the prediction block relative to the block being coded. A bitstream may be defined as a sequence of bits or a sequence of syntax structures. A bitstream format may constrain the order of syntax structures in the bitstream. A syntax element may be defined as an element of data represented in the bitstream. A syntax structure may be defined as zero or more syntax elements present together in the bitstream in a specified order. In some coding formats or standards, a bitstream may be in the form of a network abstraction layer (NAL) unit stream or a byte stream, which forms the representation of coded pictures and associated data forming one or more coded video sequences. A NAL unit may be defined as a syntax structure containing an indication of the type of data to follow and bytes containing that data in the form of an RBSP interspersed as necessary with start code emulation prevention bytes. A raw byte sequence payload (RBSP) may be defined as a syntax structure containing an integer number of bytes that is encapsulated in a NAL unit. An RBSP is either empty or has the form of a string of data bits containing syntax elements followed by an RBSP stop bit and followed by zero or more subsequent bits equal to 0. A NAL unit comprises a header and a payload. The NAL unit header indicates the type of the NAL unit among other things. In some coding formats, such as AV1, a bitstream may comprise a sequence of open bitstream units (OBUs). An OBU comprises a header and a payload, wherein the header identifies a type of the OBU. Furthermore, the header may comprise a size of the payload in bytes. The phrase along the bitstream (e.g., indicating along the bitstream) or along a coded unit of a bitstream (e.g., indicating along a coded tile) may be used in claims and described embodiments to refer to transmission, signaling, or storage in a manner that the "out-of-band" data is associated with but not included within the bitstream or the coded unit, respectively. The phrase decoding along the bitstream or along a coded unit of a bitstream or alike may refer to decoding the referred out-of-band data (which may be obtained from out-of-band transmission, signaling, or storage) that is associated with the bitstream or the coded unit, respectively. For example, the phrase along the bitstream may be used when the bitstream is contained in a container file, such as a file conforming to the ISO Base Media File Format, and certain file metadata is stored in the file in a manner that associates the metadata to the bitstream, such as boxes in the sample entry for a track containing the bitstream, a sample group for the track containing the bitstream, or a timed metadata track associated with the track containing the bitstream. Video codecs may support motion compensated prediction from one source image (uni-prediction) and two sources (bi-prediction). In the case of uni-prediction a single motion vector is applied whereas in the case of bi- prediction two motion vectors are signaled and the motion compensated predictions from two sources are averaged to create the final sample prediction. In the case of weighted prediction, the relative weights of the two predictions can be adjusted, or a signaled offset can be added to the prediction signal. In addition to applying motion compensation for inter picture prediction, similar approach can be applied to intra picture prediction. In this case the displacement vector indicates where from the same picture a block of samples can be copied to form a prediction of the block to be coded or decoded. This kind of intra block copying methods can improve the coding efficiency substantially in presence of repeating structures within the frame – such as text or other graphics. The prediction residual after motion compensation or intra prediction may be first transformed with a transform kernel (like DCT) and then coded. The reason for this is that often there still exists some correlation among the residual and transform can in many cases help reduce this correlation and provide more efficient coding. Video encoders may utilize Lagrangian cost functions to find optimal coding modes, e.g., the desired Macroblock mode and associated motion vectors. This kind of cost function uses a weighting factor λ to tie together the (exact or estimated) image distortion due to lossy coding methods and the (exact or estimated) amount of information that is required to represent the pixel values in an image area: C = D + λR (Eq.1) Where C is the Lagrangian cost to be minimized, D is the image distortion (e.g., Mean Squared Error) with the mode and motion vectors considered, and R the number of bits needed to represent the required data to reconstruct the image block in the decoder (including the amount of data to represent the candidate motion vectors). Features and coding tools included in VVC include the following: ^ Intra prediction – 67 intra mode with wide angles mode extension – Block size and mode dependent 4 tap interpolation filter – Position dependent intra prediction combination (PDPC) – Cross component linear model intra prediction (CCLM) – Multi-reference line intra prediction – Intra sub-partitions – Weighted intra prediction with matrix multiplication ^ Inter-picture prediction – Block motion copy with spatial, temporal, history-based, and pairwise average merging candidates – Affine motion inter prediction – sub-block based temporal motion vector prediction – Adaptive motion vector resolution – 8x8 block-based motion compression for temporal motion prediction – High precision (1 / 16 pel) motion vector storage and motion compensation with 8-tap interpolation filter for luma component and 4-tap interpolation filter for chroma component – Triangular partitions – Combined intra and inter prediction – Merge with MVD (MMVD) – Symmetrical MVD coding – Bi-directional optical flow – Decoder side motion vector refinement – Bi-prediction with CU-level weight ^ Transform, quantization and coefficients coding – Multiple primary transform selection with DCT2, DST7 and DCT8 – Secondary transform for low frequency zone – Sub-block transform for inter predicted residual – Dependent quantization with max QP increased from 51 to 63 – Transform coefficient coding with sign data hiding – Transform skip residual coding ^ Entropy Coding – Arithmetic coding engine with adaptive double windows probability update ^ In loop filter – In-loop reshaping – Deblocking filter with strong longer filter – Sample adaptive offset – Adaptive Loop Filter ^ Screen content coding: – Current picture referencing with reference region restriction ^ 360-degree video coding – Horizontal wrap-around motion compensation ^ High-level syntax and parallel processing – Reference picture management with direct reference picture list signalling – Tile groups with rectangular shape tile groups In H.266 / VVC, the following block partitioning applies. Pictures may be divided into coding tree units (CTUs). A picture may also be divided into slices, tiles, bricks, and sub-pictures. CTU may be split into smaller CUs using quaternary tree structure. Each CU may be divided using quad-tree and nested multi-type tree including ternary and binary split. There are specific rules to infer partitioning in in picture boundaries. The redundant split patterns are disallowed in nested multi-type partitioning. Some video coding tools perform filtering operations which convolve a set of reference samples with a set of filter parameters to output, for example, a predicted value for a certain sample in a picture. In some cases, the filter parameters may be predetermined or signaled in the bitstream. In other cases, such as when cross-component linear model (CCLM) or cross-component convolutional model (CCCM) prediction is used, the parameters are calculated using a set of reference samples in both encoder and decoder. Generally, calculation of such filter parameters involves inversion of an auto-correlation matrix, which is a computationally challenging operation. Also, when there are many filter parameters to be determined, the size of the auto-correlation matrix becomes large, which can cause numerical stability issues (overflows or underflows). To reduce the cross-component redundancy, a cross-component linear model (CCLM) prediction mode may be used in the VVC, for which the chroma samples are predicted based on the reconstructed luma samples of the same CU by using a linear model as follows: pred^(i, j) = α · rec^′(i, j) + β (3-1) where pred^(i, j)represents the predicted chroma samples in a CU, and rec^'(i, j)represents the downsampled reconstructed luma samples of the same CU. The CCLM parameters (α and β) are derived with at most four neighbouring chroma samples and their corresponding down-sampled luma samples. Suppose the current chroma block dimensions are WxH, then W’ and H’ are set as W’ = W, H’ = H when LM mode is applied; W’ =W + H when LM-A mode is applied; H’ = H + W when LM-L mode is applied. The above neighboring positions are denoted as S[0, -1]…S[W’-1, - 1] and the left neighbouring positions are denoted as S[-1, 0]…S[-1, H’-1]. Then the four samples are selected as S[W’ / 4, −1 ], S[ 3 * W’ / 4, −1 ], S[ −1, H’ / 4 ], S[ −1, 3 * H’ / 4 ] when LM mode is applied and both above and left neighbouring samples are available; S[ W’ / 8, −1 ], S[ 3 * W’ / 8, −1 ], S[ 5 * W’ / 8, −1 ], S[ 7 * W’ / 8, −1 ] when LM-A mode is applied or only the above neighboring samples are available; S[ −1, H’ / 8 ], S[ −1, 3 * H’ / 8 ], S[ −1, 5 * H’ / 8 ], S[ −1, 7 * H’ / 8 ] when LM-L mode is applied or only the left neighboring samples are available. The four neighboring luma samples at the selected positions are down-sampled and compared four times to find two smaller values: x0A and x1A, and two larger values: x0B and x1B. Their corresponding chroma sample values are denoted as y0A, y1A, y0B and y1B. Then xA, xB, yA and yB are derived as Finally, the linear model parameters are obtained according to the following equations: Figure 1 shows an example of the location of the left and above samples and the sample of the current block involved in the CCLM mode. The division operation to calculate parameter α is implemented with a look-up table. To reduce the memory required for storing the table, the diff value (difference between maximum and minimum values) and the parameter α are expressed by an exponential notation. For example, diff is approximated with a 4-bit significant part and an exponent. Consequently, the table for 1 / diff is reduced into 16 elements for 16 values of the significant as follows: DivTable [ ] = { 0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0 } This would have a benefit of both reducing the complexity of the calculation as well as the memory size required for storing the needed tables. Besides the above template and left template can be used to calculate the linear model coefficients (i.e., parameters) together, they can also be used alternatively in the other 2LM modes, called LM_A, and LM_L modes. In LM_A mode, only the above template is used to calculate the linear model coefficients (i.e., parameters). To get more samples, the above template is extended to (W+H). In LM_L mode, only left template is used to calculate the linear model coefficients (i.e., parameters). To get more samples, the left template is extended to (H+W). For a non-square block, the above template is extended to W+W, the left template is extended to H+H. To match the chroma sample locations for 4:2:0 video sequences, two types of downsampling filter are applied to luma samples to achieve 2 to 1 downsampling ratio in both horizontal and vertical directions. The selection of downsampling filter is specified by a SPS level flag. The two downsampling filters are as follows, which are corresponding to “type-0” and “type-2” content, respectively. Rec^′(^, ^) It is appreciated that only one luma line (general line buffer in intra prediction) is used to make the down-sampled luma samples when the upper reference line is at the CTU boundary. This parameter computation is performed as part of the decoding process and is not just as an encoder search operation. As a result, no syntax is used to convey the α and β values to the decoder. For chroma intra mode coding, a total of 8 intra modes are allowed for chroma intra mode coding. Those modes include five traditional intra modes and three cross-component linear model modes (CCLM, LM_A, and LM_L). Chroma mode signalling and derivation process are shown in Table 1 in Figure 2a. Chroma mode coding directly depends on the intra prediction of the corresponding luma block. Since separate block partitioning structure for luma and chroma components is enable in I slices, one chroma block may correspond to multiple luma blocks. Therefore, for Chroma DM mode, the intra prediction mode of the corresponding luma block covering the center position of the current chroma block is directly inherited. A single binarization table is used regardless of the values of sps_cclm_enabled_flag as shown in Table 2 in Figure 2b. In Table 2, the first bin indicates whether it is regular (0) or LM modes (1). If it is LM mode, then the next bin indicates whether it is LM_CHROMA (0) or not. If it is not LM_CHROMA, next 1 bin indicates whether it is LM_L (0) or LM_A (1). For this case, when sps_cclm_enabled_flag is 0, the first bin of the binarization table for the corresponding intra_chroma_pred_mode can be discarded prior to the entropy coding. Or, in other words, the first bin is inferred to be 0 and hence not coded. This single binarization table is used for both sps_cclm_enabled_flag equal to 0 and 1 cases. The first two bines in Table 3- 4 are context coded with its own context model, and the rest bins are bypass coded. In addition, in order to reduce luma-chroma latency in dual tree, when the 64x64 luma coding tree node is partitioned with Not Split (and ISP is not used for the 64x64 CU) or QT, the chroma CUs in 32x32 / 32x16 chroma coding tree node are allowed to use CCLM in the following way: - If the 32x32 chroma node is not split or partitioned QT split, all chroma CUs in the 32x32 node can use CCLM - If the 32x32 chroma node is partitioned with Horizontal BT, and the 32x17 child node does not split or use Vertical BT split, all chroma CUs in the 32x16 chroma node can use CCLM. In all the other luma and chroma coding tree split conditions, CCLM is not allowed for chroma CU. The CCLM included in VVC is extended by adding three Multi-model LM (MMLM) modes. In each MMLM mode, the reconstructed neighbouring samples are classified into two classes using a threshold which is the average of the luma reconstructed neighboring samples. The linear model of each class is derived using the Least-Mean-Square (LMS) method. For the CCLM mode, the LMS method is also used to derive the linear model. Figure 3a illustrates two luma-to-chroma models obtained for luma (Y) threshold of 17. Each luma- to-chroma model has its own linear model parameters α and β. As can be seen from Figure 3b, each luma-to-chroma model corresponds to a spatial segmentation of the content (i.e., they correspond to different objects or textures in the scene). An improved version of cross-component prediction, known as convolutional cross-component model (CCCM), uses 2D filter kernel to derive the luma-to-chroma model. The filter coefficients are derived decoder-side using reconstructed set of input data and chroma samples. For the filter coefficient derivation, co-located reference sample areas (consisting of reconstructed luma and chroma samples) are defined for both luma and chroma as shown in Figure 4, yet any number of reference lines (that can be realized by both the encoder and decoder) can be used. Generally, reference samples can contain any chroma and luma samples that have been reconstructed by both the encoder and decoder. Once the reference samples have been determined, the filter coefficients can be derived, for example, using different types of linear regression tools such as ordinary least-squares estimation, orthogonal matching pursuit, optimized orthogonal matching pursuit, ridge regression, or least absolute shrinkage and selection operator. The dimensions of the filter kernel can be for example 1x3 (1D vertical), 3x1 (1D horizontal), 3x3, 7x7 or any dimensions, and can be shaped (by selecting only a subset of all possible kernel locations) as a cross or a diamond or as any given shape. When referring to the samples within the filter kernel, the following notation is used: north (above), east (right), south (below), west (left) and center, as illustrated in Figure 5 using the letters N, E, S, W, C. Figure 5 illustrate a 3-tap vertical kernel 501, 3-tap horizontal kernel 502, 5-tap cross kernel 503 and 25-tap diamond kernel 504. The overall method of reconstructing chroma samples using convolution between a decoder-side obtained filter kernel and a set of input data is referred to as convolutional cross-component model (CCCM) here. The following steps can be applied to perform a CCCM operation: - Define co-located reference areas over the luma and chroma components; - Down-sample the luma samples to match the chroma grid (optional); - Scan the luma and chroma samples of the reference area and collet available statistics (such as auto-correlation matrix and cross- correlation vector) based on the filter shape; - Solve the filter coefficients by minimizing squared-error (or any other metric) based on the available statistics (such as the auto-correlation matrix and cross-correlation vector); - Calculate a predicted chroma block by convolving the down-sampled luma samples with the filter kernel. In the following, the (possibly down-sampled) luma samples are defined as a 2D array Y(x, y) indexed using horizontal x-coordinate and vertical y-coordinate. Also, the co-located chroma samples are defined as a 2D array C(x, y) and the filter kernel (i.e., coefficients) as 3x3 array F(i, j). On a sample level, the convolution between Y and F is defined as When using other data terms, such as the non-linear square-root term, the convolution becomes where ^^are filter coefficients that reside outside of the 2D filter kernel yet have been obtained as a part of the system of linear equations that were used to solve the 2D filter coefficients in Step 4 above. Similarly, the bias term can be added to the convolution with Angular intra prediction (a.k.a. directional intra prediction) may be performed by extrapolating sample values from the reconstructed reference samples utilizing a given directionality. The reference samples may comprise the immediately neighboring sample row above and above-right of the current block (when available) and the immediately neighboring sample column on the left of the current block (when available), wherein availability may require decoding order earlier than that of the current block and presence in the same image segment, such as in the same tile. In order to simplify the process, all sample locations within one prediction block may be projected to a single reference row or column depending on the directionality of the selected prediction mode. A predicted sample within the block being encoded / decoded may be obtained by the following steps: - Projecting the location of a predicted sample to a location within a reference row or column by applying the selected prediction direction. The location within the reference row or column may have fractional sample accuracy, such as 1 / 32 pixel accuracy. - Interpolating a value for the sample location on the reference row or column from the reference samples at the reference row / column. Multiple reference line (MRL) intra prediction uses more reference lines for intra prediction. In Figure 6, an example of four reference lines is depicted, where the samples of segments A and F are not fetched from reconstructed neighboring samples but padded with the closest samples from Segment B and E, respectively. HEVC intra-picture prediction uses the nearest reference line (i.e., reference line 0). In MRL, two additional lines (reference line 1 and reference line 3) are used. The index of selected reference line (mrl_idx) is signaled and used to generate intra predictor. For reference line idx, which is greater than 0, only include additional reference line modes in MPM list and only signal mpm index without remaining mode. The reference line index is signaled before intra prediction modes, and Planar mode is excluded from intra prediction modes in case a nonzero reference line index is signaled. MRL is disabled for the first line of blocks inside a CTU to prevent using extended reference samples outside the current CTU line. Also, PDPC is disabled when additional line is used. For MRL mode, the derivation of DC value in DC intra prediction mode for non-zero reference line indices are aligned with that of reference line index 0. MRL requires the storage of 3 neighbouring luma reference lines with a CTU to generate predictions. The Cross-Component Linear Model (CCLM) tool also requires 3 neighboring luma reference lines for its own down-sampling filters. The definition of MLR to use the same 3 lines is aligned as CCLM to reduce the storage requirements for decoders. The intra sub-partitions (ISP) divides luma intra-predicted blocks vertically or horizontally into 2 or 4 sub-partitions depending on the block size. For example, minimum block size for ISP is 4x8 (or 8x4). If block size is greater than 4x8 (or 8x4), then the corresponding block is divided by four sub- partitions. It has been noticed that the Mx12 (with M ≤ 64) and 128xN (with N ≤ 64) ISP blocks could generate a potential issue with the 64x64 VDPU. For example, and Mx128 CU in the single tree case has an M x 128 luma TB and ^ two corresponding ^ × 64 chroma TBs. If the CU uses ISP, then the luma TB will be divided into four Mx32 TBs (only the horizontal split is possible), each of them smaller than a 64 x 64 block. However, in the current design of ISP, chroma blocks are not divided. Therefore, both chroma components will have a size greater than a 32 x 32 block. Analogously, a similar situation could be created with a 128 x N CU using ISP. Hence, these two cases are an issue for the 64 x 64 decoder pipeline. For this reason, the CU sizes that can use ISP is restricted to a maximum 64 x 64. All sub-partitions fulfil the condition of having at least 16 samples. Matrix weighted intra prediction (MIP) method is an intra prediction technique in VVC. For predicting the samples of a rectangular block of width W and height H, matrix weighted intra prediction (MIP) takes one line of H reconstructed neighbouring boundary samples left of the block and one line of W reconstructed neighboring boundary samples above the block as input. If the reconstructed samples are unavailable, they are generated as it is done in the conventional intra prediction. The generation of the prediction signal is based on the following three steps, which are averaging, matrix vector multiplication and linear interpolation as shown in Figure 7. Merged mode with motion vector difference (MMVD) is to signal MVDs and a resolution index after signalling merge candidate. The merge list may comprise the following candidates: 1) Spatial MVP from spatial neighbour CUs 2) Temporal MVP from collocated CUs 3) History-based MVP from a FIFO table 4) Pairwise average MVP (using the candidates already in the list) 5) Zero MVs. In Symmetric MVD, motion information of list-1 is derived from motion information from list-0 in bi-prediction case. In Affine prediction, several motion vectors are indicated / signaled for different corners of a block, which are used to derive the motion vectors of sub- block. In affine merge, affine motion information of a block is generated based on the normal or affine motion information of the neighboring blocks. In Sub-block-based temporal motion vector prediction, motion vectors of sub-blocks of the current block are predicted from a proper subblocks in the reference frame which are indicated by the motion vector of a spatial neighboring vector (if available). In Adaptive motion vector resolution (AMVR), precision of MVD is signaled for each CU. In BI-prediction with CU-level weight, an index indicated the weight values for weighted average of two prediction block. Bi-directional optical flow (BDOF) refines the motion vectors in bi- prediction case. BDOF generates two prediction blocks using the signaled motion vectors. Then a motion refinement is calculated to minimize the error between two prediction blocks using their gradient values. The final prediction blocks are refined using the motion refinement and gradient values. In HEVC, the bi-prediction signal is generated by averaging two prediction signals obtained from two different reference pictures and / or using two different motion vectors. In VVC, the bi-prediction mode is extended beyond simple averaging to allow weighted averaging of the two prediction signals. This is called bi-prediction with CU-level weight (BCW): ^bi-pred Five weights are allowed in the weighted averaging bi-prediction, ^ ∈ {−2, 3, 4, 5, 10}. For each bi-predicted CU, the weight w is determined in one of two ways: 1) for a non-merge CU, the weight index is signalled after the motion vector difference; 2) for a merge CU, the weight index is inferred from neighbouring blocks based on the merge candidate index. BCW is only applied to CUs with 256 or more luma samples (i.e., CU width times CU height is greater than or equal to 256). For low-delay pictures, all 5 weights are used. For non-low-delay pictures, only 3 weights (w∈{3,4,5}) are used. At the encoder, fast search algorithms are applied to find the weight index without significantly increasing the encoder complexity. These algorithms are summarized as follows. For further details readers are referred to the VTM software and document JVET-L0646. When combined with AMVR, unequal weights are only conditionally checked for 1-pel and 4-pel motion vector precisions if the current picture is a low-delay picture. When combined with affine, affine ME will be performed for unequal weights if and only if the affine mode is selected as the current best mode. When the two reference pictures in bi-prediction are the same, unequal weights are only conditionally checked. Unequal weights are not searched when certain conditions are met, depending on the POC distance between current picture and its reference pictures, the coding QP, and the temporal level. The BCW weight index is coded using one context coded bin followed by bypass coded bins. The first context coded bin indicates if equal weight is used; and if unequal weight is used, additional bins are signalled using bypass coding to indicate which unequal weight is used. Weighted prediction (WP) is a coding tool supported by the H.264 / AVC and HEVC standards to efficiently code video content with fading. Support for WP was also added into the VVC standard. WP allows weighting parameters (weight and offset) to be signaled for each reference picture in each of the reference picture lists L0 and L1. Then, during motion compensation, the weight(s) and offset(s) of the corresponding reference picture(s) are applied. WP and BCW are designed for different types of video content. In order to avoid interactions between WP and BCW, which will complicate VVC decoder design, if a CU uses WP, then the BCW weight index is not signaled, and w is inferred to be 4 (i.e., equal weight is applied). For a merge CU, the weight index is inferred from neighbouring blocks based on the merge candidate index. This can be applied to both normal merge mode and inherited affine merge mode. For constructed affine merge mode, the affine motion information is constructed based on the motion information of up to 3 blocks. The BCW index for a CU using the constructed affine merge mode is simply set equal to the BCW index of the first control point MV. In VVC, combined inter / intra prediction (CIIP) and bi-prediction with CU-level weight (BCW) cannot be jointly applied for a CU. When a CU is coded with CIIP mode, the BCW index of the current CU is set to 2, e.g., equal weight. In VVC, when a CU is coded in merge mode, if the CU contains at least 64 luma samples (that is, CU width times CU height is equal to or larger than 64), and if both CU width and CU height are less than 128 luma samples, an additional flag is signaled to indicate if the combined inter / intra prediction (CIIP) mode is applied to the current CU. As its name indicates, the CIIP prediction combines an inter prediction signal with an intra prediction signal. The inter prediction signal ^^^^^^in the CIIP mode is derived using the same inter prediction process applied to regular merge mode; and the intra prediction signal ^^^^^^is derived following the regular intra prediction process with the planar mode. Then, the intra and inter prediction signals ^^^^^^, ^^^^^^are combined using weighted averaging, where the weight value is calculated depending on the coding modes of the top and left neighbouring blocks as follows: – If the top neighbor is available and intra coded, then set isIntraTop to 1, otherwise set isIntraTop to 0; – If the left neighbor is available and intra coded, then set isIntraLeft to 1, otherwise set isIntraLeft to 0; – If (isIntraLeft + isIntraTop) is equal to 2, then wt is set to 3; – Otherwise, if (isIntraLeft + isIntraTop) is equal to 1, then wt is set to 2; – Otherwise, set wt to 1. Figure 8 illustrates an example of top and left neighboring blocks used in CIIP weight derivation. The CIIP prediction is formed as follows: ^CIIP=^(4 − ^^) Local illumination compensation (LIC) is an inter prediction technique to model local illumination variation between current block and its prediction block as a function of that between current block template and reference block template. The parameters of the function can be denoted by a scale α and an offset β, which forms a linear equation, that is, α*p[x]+β to compensate illumination changes, where p[x] is a reference sample pointed to by MV at a location x on reference picture. Since α and β can be derived based on current block template and reference block template, no signaling overhead is required for them, except that an LIC flag is signaled for AMVP mode to indicate the use of LIC. The local illumination compensation proposed in JVET-O0066 is used in ECM for uni-prediction inter CUs with the following modifications. ^ Intra neighbor samples can be used in LIC parameter derivation; ^ LIC is disabled for blocks with less than 32 luma samples; ^ For both non-subblock and affine modes, LIC parameter derivation is performed based on the template block samples corresponding to the current CU, instead of partial template block samples corresponding to first top-left 16x16 unit; ^ Samples of the reference block template are generated by using MC with the block MV without rounding it to integer-pel precision. In bi-directional motion compensation the out of boundary (OOB) prediction samples are discarded and only the non-OOB predictors, when available, are used to generate the final predictor. Specifically, let ^^^_^^,^and ^^^_^^,^denote the position of one prediction sample in one current block, ^^_^^^ ^,^and ^^_^^^ ^,^(x = 0,1) denote the MV of the current block; ^^^^^^^^^^^, ^^^^^^^^^^^^, ^^^^^^^^^^and ^^^^^^^^^^^^^are the positions of four boundaries of the picture. One prediction sample is regarded as OOB when at least one of the following conditions is satisfied: (^^^_^ ^^ ^,^+ ^^_^^,^) > (^^^^^^^^^^^^+half_pixel), (^^^_^^,^+ ^^_^^^ ^,^) < (^^^^^^^^^^^- half_pixel), (^^^_^^+ ^^_^^^ ^, ^,^) < (^^^^^^^^^^- half_pixel) where half_pixel is equal to 8 that represents the half-pel sample distance in the 1 / 16-pel sample precision. After examining the OOB condition for each sample, the final prediction samples of one bi-directional block are generated as follows: If ^^^ ^,^is OOB and ^^^ ^,^is non-OOB ^ ^^^^^ ,^ =^^^ ^^,^else if ^^^ is non-O ^^ ^,^OB and ^^,^is OOB ^ ^^^^^ ^,^ = ^^^ ^,^else OOB checking process is also applicable when BCW is enabled. Finally, it is to be noticed that this sample-adaptive bi-prediction process may only apply to prediction units for which at least a reference bock is first detected as partially or entirely out-of-bounds. Thus, a block-level OOB criteria is first checked. If both prediction blocks are non-OOB, then the usual bi-prediction takes place. In a non-local cross-component prediction, the model parameters are obtained from samples that are non-adjacent to the current block. The index of the non-local model can be signaled, for example, as a candidate index in a fixed list of candidate models. The fixed list of candidate models can comprise, for example, all the models corresponding to blocks within a specified reconstructed area, such as M*W samples to left and N*H samples to above of the current block of dimensions WxH. More specifically the candidate cross- component models are obtained by deriving them (both at the encoder and decoder), for example, for each reconstructed block within the specified reconstructed area. The encoder will evaluate the performance of each of these cross-component models at the current block by measuring the reconstruction error. The index of the model producing the smallest reconstruction error will be signaled by the encoder to the decoder. However, the candidate model list used in this approach may contain significant redundancies since several of the cross-component models may produce outputs very close to each other, i.e., the models are practically the same (when evaluated by the reconstruction). These redundancies are identifiable (via techniques described later) by both the encoder and decoder without additional signalling. According to an embodiment, the candidate list size can be reduced by removing (i.e., pruning) the overlapping models. By reducing the candidate list size, the signalling cost of the candidate index is reduced as well. Once the overlapping models have been pruned, or the list is otherwise reduced, the list of candidate models will only contain a subset (or otherwise modified set) of the original set of non-local cross-component models. The encoder and decoder will both consider the pruned list as the final list and the signaled model index will correspond to a model in the final list. More specifically, the encoder will evaluate the performance of each cross- component model (in the final list) at the current block by measuring the reconstruction error. The index of the model producing the smallest reconstruction error will be signaled by the encoder to the decoder. The present embodiments are targeted to algorithms for reducing the candidate list size, which can be done by pruning (i.e., removing) overlapping models from the candidate list in non-local cross-component prediction or by reducing the number of models in the candidate list in other ways. According to a first embodiment, pruning is performed by checking overlaps between the models within chroma space and parameter space. A cross-component model ^(∙) can be used to predict chroma values as ^ = ^(^), where ^ is predicted chroma and ^ is reconstructed luma. The model parameters for a cross-component model may be estimated using the adjacent samples of the current block. However, in non-local cross-component prediction, to which the present embodiments are related, the model parameters are derived using non-adjacent samples, such as those corresponding to previously decoded blocks. All possible non-local models are grouped together to form a list and the model producing the smallest reconstruction error (as evaluated by the encoder’s distortion metric such as SAD, SATD, MSE, etc.) is signaled with an index. The larger the list, the better the probability of finding a good model, but also the higher the signalling cost of the index. A better list of candidate models is one that contains an optimal amount of overlap between the models. The optimality of the overlap can be decided by the encoder. For very high precision modeling of chroma it may be required to have more finely spaced candidate models, while for rough estimation a very sparse set of candidate models may suffice. The overlap between models can be modeled using a value of the co-located luma block, ^^, and by evaluating the output of a given candidate model Cb and Cr as cartesian point ^ = (^^^(^^), ^^^(^^)) as shown in an example Figure 9a. For CCCM style filters, each spatial luma neighbor can be set as ^^, and nonlinear term as nonlinear(^^). Alternatively, a representative luma sample location within the reference area or co-located luma block can be selected and inputs for different spatial locations can be set based on sample values in and around that location. Another way of considering model overlap is by evaluating the overlap directly in the parameter space. An example illustration of pruning in chroma space is given in Figures 9a and 9b. Figure 9a shows an initial set of candidates 910. Figure 9b shows a resulting set of candidates 920 after pruning, where the circle 930 indicates the pruning radius. The luma sample value ^^can be determined in different ways. For example, it can be determined to be the average of reference luma samples used to calculate the candidate models or a subset of those. T may be defined to be a set of N candidate models and P as Nx2 matrix of model outputs (i.e., cartesian points (Cb, Cr)). An algorithm to reduce the number of candidate models from N to M < N is described next. In radius-based pruning, the objective is to remove models that produce outputs within certain radius R of another model’s output. The algorithm selects entry ^ in matrix P, computes its distance against all other rows and removes rows ^ for which ||^(^) – ^(^)||^< ^, where notation ^(^) indicates the i’th row of P. Different initial sorting of the rows in matrix P produce different results. Rows of P can be initially arranged according to some criterion. For example, the row index may increase as a function of the non-local blocks distance to the current block, therefore giving more priority to non-local models near the current block. Another example is to sort the rows based on the distance between the co-located non-local luma average and the co-located luma average. Pseudo-code of the radius-based pruning in chroma-space is given below. Values of R_start and R_increase can be fixed, inferred, or obtained through signalling and they should be set according to the bit depth of the content. High QP blocks may use larger values of R_start and R_increase. Also, R_increase can be modeled as a function or R_start. Comparing only cartesian points of model outputs for a certain determined luma value may not always provide accurate separation of models. For example, two candidate models can produce relatively similar output around the determined luma value, but as the input moves away from the determined luma value the two candidate models may quickly start producing significantly different outputs and thus it can be beneficial to consider such models belonging to different clusters. One way to consider that is to include a measure of change of the model output to the pruning criterion. As an example, in addition to the model outputs fCb(ym) and fCr(ym), also derivatives of the model can be included and a 4-dimensional point can be defined to be used in the comparisons: The derivatives can be generated in different ways. For example, if the model f(y) is linear, the derivative can be calculated by summing up all the coefficients that are multiplied with y when generating the output of the model. As another example, the derivative or the measure of change can be calculated by evaluating output of the function with two different parameters y and y + d and deducting those from each other: If the f(y) is linear, this can be further simplified as the derivative is constant with respect to y: ∆^(^) = ^(^) The derivatives can be further scaled, for example, by multiplying those with a determined value. Such value can be dependent on the precision of the picture samples to normalize the relationship between the sample domain output value f(y) and the derivative Df(y). As an example the derivative can be scaled by multiplying it by 2^(bd – 6) or 2^(bd – 5), where bd is the bitdepth of the output video, or any other value found feasible for the purpose. As another example, a measure of change can be also included in the comparisons by evaluating the candidate models with two or more inputs. For example, 4-dimensional point to be used in the comparisons can be generated with input values ym and ym + d: ^ = (^^^(^^), ^^^(^^), ^^^(^^+ ^), ^^^(^^+ ^)) The parameter d can be selected to be a constant, for example, 16 or 32, or it can be calculated using a determined formula. Such formula can include bitdepth of the output video, for example, d can be set equal to 2^(bd – 6) or 2^(bd – 5), where bd is the bitdepth of the output video. Model overlap can be evaluated by considering the distance in the L- dimensional parameter space. For example, defining a function Overlap between two models occurs pruning procedure can be adapted to parameter space to obtain M model candidates by replacing the elements of matrix P with ^ = (^^^^^^) where (^^^^^^) indicates a row vector containing the concatenation of model parameters for Cb and Cr components respectively for a given candidate model. Additionally, the row vector may be formed as ^ = ((^ ∗ ^^^) (b ∗ ^^^)) indicating a weighted concatenation, where model parameters for Cb are multiplied by a and model parameters for Cr are multiplied by b. Alternatively, ^ = ((^ ∗ ^^^) + (b ∗ ^^^)) may be used, where instead of concatenation the weighted average of models Cb and Cr is considered respectively. For both chroma space and parameter space pruning, variable weight can be given to different components. For example, in chroma space pruning, weight for Cb or Cr can be set by scaling the components accordingly. This can be used to define “elliptical” clustering of models. Similarly, weights to the model parameters can be set by scaling them accordingly. This can mitigate issues with certain filter configurations (for example when parameters have highly variable magnitudes). According to a second embodiment, the candidates are not removed, but the mean of all candidates within radius R is computed. Two variants of this approach can be considered: 1) update the center during each time a candidate is found within radius R, 2) update the center after all candidates within radius R have been found. These variants can be used for both chroma space and model space approaches. According to a third embodiment, the candidates within radius R are considered jointly. For example, the distance of the said candidates can be modeled as a Gaussian distribution (or any other distribution) and candidates deemed outliers can be pruned while the others are either kept or only their average is considered as the candidate. This variant can be used for both chroma space and model space approaches. It should be understood that in addition to the explicitly stated example algorithms, also other clustering, or vector quantization algorithms, can be used for both chroma space and model space pruning. In an embodiment the enabling of pruning can be signaled at CU, PU, CTU, slice, frame, or sequence level. In an embodiment the enabling of pruning can be inferred from CU, PU, CTU, slice, frame, or sequence level information. In an embodiment the enabling of pruning can be inferred from candidate list characteristics such as list size, model output variance, model parameter variance. In an embodiment the variables M for number of model candidates and / or R for radius can be signaled at CU, PU, CTU, slice, frame, or sequence level. In an embodiment the variables M for number of model candidates and / or R for radius can be inferred from CU, PU, CTU, slice, frame, or sequence level information. In an embodiment the variables M for number of model candidates and / or R for radius can be inferred from candidate list characteristics such as list size, model output variance, model parameter variance. In an embodiment the pruning can be performed using general clustering or vector quantization algorithms (such as K-means or others) in either chroma-space or parameter-space. In an embodiment the type of pruning (chroma or model space) can be signaled at CU, PU, CTU, slice, frame, or sequence level. In an embodiment the type of pruning (chroma or model space) can be inferred from CU, PU, CTU, slice, frame, or sequence level information. In an embodiment the type of pruning (chroma or model space) can be inferred from adjacent sample values. In an embodiment the type of pruning (chroma or model space) can be inferred from candidate list characteristics such as list size, model output variance, model parameter variance. In an embodiment, the pruning process may consider one or more of the prediction modes and / or transform types of the regions from which the non- local cross-component models are derived from. For example, the intra prediction mode of the center of the non-local luma region may be compared against the intra prediction mode of the co-located luma block. And if the prediction modes are not the same or they are not similar then that candidate may be discarded from the list. According to previous embodiment, the prediction mode analysis may consider the prediction modes of the neighborhood of the current block and the prediction modes of the non-local regions and / or its neighborhood for the pruning process. In an embodiment, the pruning process may consider the residual information of the non-local regions and co-located region in reference channel. For example, if the characteristics of the residual information in non- local region in reference channel and residual information in the co-located block in reference channel are different then that candidate may be discarded from the list. According to the previous embodiment, the residual information analysis may be done over the residual information in the neighborhood of the current block and the non-local region block or its neighborhood in current channel. In an embodiment, block partitioning information of the non-local regions in reference channel and the block partitioning of the co-located block in reference channel may be considered for the pruning process. For example, if the non-local candidate includes different block partitioning than the co- located block in reference channel then that candidate may be discarded from the list. The method according to an embodiment is shown in Figure 10. The method generally comprises receiving 1010 a candidate list of prediction models; pruning 1020 the candidate list with respect to the prediction models to obtain a pruned candidate list; evaluating 1030 performance of each prediction model in the pruned candidate list; selecting 1040 a prediction model from the pruned candidate list providing the best performance; applying 1050 the selected prediction model in encoding; and encoding 1060 an indication of the selected model into a bitstream. Each of the steps can be implemented by a respective module of a computer system. An apparatus according to an embodiment comprises means for receiving a candidate list of prediction models; means for pruning the candidate list with respect to the prediction models to obtain a pruned candidate list; means for evaluating performance of each prediction model in the pruned candidate list; means for selecting a prediction model from the pruned candidate list providing the best performance; means for applying the selected prediction model in encoding; and means for encoding an indication of the selected model into a bitstream. The means comprises at least one processor, and a memory including a computer program code, wherein the processor may further comprise processor circuitry. The memory and the computer program code are configured to, with the at least one processor, cause the apparatus to perform the method of Figure 10 according to various embodiments. An example of a data processing system for an apparatus is illustrated in Figure 11. Several functionalities can be carried out with a single physical device, e.g., all calculation procedures can be performed in a single processor if desired. The data processing system comprises a main processing unit 100, a memory 102, a storage device 104, an input device 106, an output device 108, and a graphics subsystem 110, which are all connected to each other via a data bus 112. The main processing unit 100 is a conventional processing unit arranged to process data within the data processing system. The main processing unit 100 may comprise or be implemented as one or more processors or processor circuitry. The memory 102, the storage device 104, the input device 106, and the output device 108 may include conventional components as recognized by those skilled in the art. The memory 102 and storage device 104 store data in the data processing system 100. Computer program code resides in the memory 102 for implementing, for example, a method as illustrated in a flowchart of Figure 11 according to various embodiments. The input device 106 inputs data into the system while the output device 108 receives data from the data processing system and forwards the data, for example to a display. The data bus 112 is a conventional data bus and while shown as a single line it may be any combination of the following: a processor bus, a PCI bus, a graphical bus, an ISA bus. Accordingly, a skilled person readily recognizes that the apparatus may be any data processing device, such as a computer device, a personal computer, a server computer, a mobile phone, a smart phone, or an Internet access device, for example Internet tablet computer. Figure 12 illustrates an example of a video encoder, where In: Image to be encoded; P’n: Predicted representation of an image block; Dn: Prediction error signal; D’n: Reconstructed prediction error signal; I’n: Preliminary reconstructed image; R’n: Final reconstructed image ; T, T-1: Transform and inverse transform; Q, Q-1: Quantization and inverse quantization; E: Entropy encoding; RFM: Reference frame memory; Pinter: Inter prediction; Pintra: Intra prediction; MS: Mode selection; F: Filtering. Figure 13 illustrates a block diagram of a video decoder where P’n: Predicted representation of an image block; D’n: Reconstructed prediction error signal; I’n: Preliminary reconstructed image; R’n: Final reconstructed image; T-1: Inverse transform; Q-1: Inverse quantization; E-1: Entropy decoding; RFM: Reference frame memory; P: Prediction (either inter or intra); F: Filtering. An apparatus according to an embodiment may comprise only an encoder or a decoder, or both. The various embodiments can be implemented with the help of computer program code that resides in a memory and causes the relevant apparatuses to carry out the method. For example, a device may comprise circuitry and electronics for handling, receiving, and transmitting data, computer program code in a memory, and a processor that, when running the computer program code, causes the device to carry out the features of an embodiment. Yet further, a network device like a server may comprise circuitry and electronics for handling, receiving, and transmitting data, computer program code in a memory, and a processor that, when running the computer program code, causes the network device to carry out the features of various embodiment. If desired, the different functions discussed herein may be performed in a different order and / or concurrently with other. Furthermore, if desired, one or more of the above-described functions and embodiments may be optional or may be combined. Although various aspects of the embodiments are set out in the independent claims, other aspects comprise other combinations of features from the described embodiments and / or the dependent claims with the features of the independent claims, and not solely the combinations explicitly set out in the claims. It is also noted herein that while the above describes example embodiments, these descriptions should not be viewed in a limiting sense. Rather, there are several variations and modifications, which may be made without departing from the scope of the present disclosure as, defined in the appended claims.

Claims

Claims:

1. An apparatus, comprising: - means for receiving a candidate list of prediction models; - means for pruning the candidate list with respect to the prediction models to obtain a pruned candidate list; - means for evaluating performance of each prediction model in the pruned candidate list; - means for selecting a prediction model from the pruned candidate list providing the best performance; - means for applying the selected prediction model in encoding; and - means for encoding an indication of the selected model into a bitstream.

2. The apparatus according to claim 1, further comprising means for measuring a reconstruction error of each prediction model to evaluate prediction model’s performance.

3. The apparatus according to claim 1 or 2, wherein pruning comprises determining overlapping prediction models between prediction models and removing at least one of the determined overlapping prediction model.

4. The apparatus according to claim 3, wherein pruning comprises a chroma space pruning, a luma space pruning, a parameter space pruning, a radius-based pruning, clustering or vector quantization.

5. The apparatus according to claim 4, wherein for the luma space pruning, the apparatus further comprises means for determining overlaps between the prediction models by evaluating outputs of candidate prediction models for a value of a luma block.

6. The apparatus according to claim 5, further comprising means for determining the luma value to be an average of reference luma values used to calculate the candidate prediction models or a subset of those.

7. The apparatus according to claim 4, wherein for the parameter space pruning, the apparatus further comprises means for determining overlaps between the prediction models by evaluating a distance of the prediction models in a parameters space.

8. The apparatus according to claim 4, wherein for the radius-based pruning, the apparatus further comprises means for determining an overlap based on an output of a first prediction model is within a radius of an output of a second prediction model.

9. The apparatus according to claim 1 or 2, wherein the pruning comprises determining mean of all prediction models within a certain radius. 10.The apparatus according to claim 9, further comprising means for updating a center each time a prediction model is found within the radius or updating the center after all of the prediction models within the radius are found. 11.The apparatus according to any of claims 8 to 10, further comprising means for signaling or inferring a used radius in or from a coding unit, a prediction unit, a coding tree unit, a slice, a frame or a sequence level. 12.The apparatus according to any of the claims 1 to 10, further comprising signaling or inferring an enabling flag of pruning in or from a coding unit, a prediction unit, a coding tree unit, a slice, a frame or a sequence level. 13.The apparatus according to claim 4, further comprising signaling or inferring a type of pruning in or from a coding unit, a prediction unit, a coding tree unit, a slice, a frame or sequence level. 14.A method comprising: receiving a candidate list of prediction models; pruning the candidate list with respect to the prediction models to obtain a pruned candidate list;evaluating performance of each prediction model in the pruned candidate list; selecting a prediction model from the pruned candidate list providing the best performance; applying the selected prediction model in encoding; and encoding an indication of the selected model into a bitstream. An apparatus comprising at least one processor, memory including computer program code, the memory and the computer program code configured to, with the at least one processor, cause the apparatus to perform at least the following: receive a candidate list of prediction models; prune the candidate list with respect to the prediction models to obtain a pruned candidate list; evaluate performance of each prediction model in the pruned candidate list; select a prediction model from the pruned candidate list provide the best performance; apply the selected prediction model in encoding; and encode an indication of the selected model into a bitstream.

Citation Information

Patent Citations

  • Intra video coding using a decoupled tree structure

    US20180048889A1

  • Methods and devices for coding motion vectors in video compression

    US20180199052A1

  • Methods and devices for intra-coding in video compression

    US20180332282A1

  • Pruning of motion model candidate list for inter-prediction

    WO2019072187A1

Cited By

  • Cross-component prediction in multi-partition prediction mode

    WO2026055088A1

  • Methods and apparatus of prediction refinement using high-level control

    WO2026208354A1