Filtering method for cross-component prediction, and device, storage medium, and program product

By introducing a preset intra-prediction filter into the chroma prediction value after cross-component nonlinear intra-prediction, the problem of low cross-component prediction accuracy is solved, and higher video coding efficiency and accuracy are achieved.

WO2026066971A1PCT designated stage Publication Date: 2026-04-02ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-09-04
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

Existing cross-component prediction methods fail to fully utilize the spatial correlation between pixel blocks in video frames during video coding, resulting in low accuracy in cross-component prediction.

Method used

A preset intra-frame prediction filter (IPF) is used to filter the chrominance prediction values ​​after cross-component nonlinear intra-frame prediction (CCNPM), thereby enhancing the spatial correlation of chrominance components and improving prediction accuracy.

Benefits of technology

Filtering improves the accuracy of cross-component prediction and the efficiency of video coding, enhances the spatial correlation of chroma components, and improves the overall performance of video coding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025119117_02042026_PF_FP_ABST
    Figure CN2025119117_02042026_PF_FP_ABST
Patent Text Reader

Abstract

A filtering method for cross-component prediction, and a device, a storage medium, and a program product. The method comprises: acquiring a chroma prediction value of a target pixel block in a cross-component nonlinear intra prediction method (CCNPM) in a video frame; and filtering the chroma prediction value by means of a preset intra prediction filter (IPF) to obtain a filtered chroma prediction value.
Need to check novelty before this filing date? Find Prior Art

Description

Filtering method, device, storage medium and program product for cross-component prediction

[0001] The present disclosure claims priority to Chinese Patent Application No. 202411364971.4, filed on September 27, 2024, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD

[0002] The present disclosure relates to the technical field of video coding, and in particular to a filtering method, device, storage medium and program product for cross-component prediction. BACKGROUND

[0003] With the richness of video scenes, the amount of video data also increases, and in order to improve the coding efficiency of the video, it is usually necessary to perform video coding processes such as acquisition, prediction, transformation and entropy coding on the video data to reduce the amount of video data.

[0004] At present, in the process of encoding video data, the content of the current pixel block is usually predicted based on cross-component nonlinear intra prediction (CCNPM) using known adjacent pixel block information, that is, in a multi-component video signal, CCNPM can predict the chrominance component from the luminance component based on the correlation between the chrominance component and the luminance component to achieve cross-component prediction. SUMMARY

[0005] In one aspect, a filtering method for cross-component prediction is provided, the method comprising: obtaining a chrominance prediction value of a target pixel block of a cross-component nonlinear intra prediction (CCNPM) in a video frame; and performing filtering processing on the chrominance prediction value by a preset intra prediction filter (IPF) to obtain a filtered chrominance prediction value.

[0006] In another aspect, a filtering device for cross-component prediction is provided, the device comprising: an obtaining module and a processing module.

[0007] The obtaining module is configured to obtain a chrominance prediction value of a target pixel block of a cross-component nonlinear intra prediction (CCNPM) in a video frame. The processing module is configured to perform filtering processing on the chrominance prediction value by a preset intra prediction filter (IPF) to obtain a filtered chrominance prediction value.

[0008] In another aspect, an electronic device is provided, comprising: a memory and a processor. The memory and the processor are coupled. The memory is configured to store a computer program. The processor implements the above-mentioned filtering method for cross-component prediction when executing the computer program.

[0009] In yet another aspect, a computer readable storage medium is provided, and the computer readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the filtering method for cross-component prediction as described above.

[0010] In yet another aspect, a computer program product is provided, and the computer program product includes computer program instructions, and the computer program instructions, when executed by a processor, implement the filtering method for cross-component prediction as described above. BRIEF DESCRIPTION OF DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the present disclosure, the following will briefly introduce the drawings needed to be used in some embodiments of the present disclosure. Obviously, the drawings described in the following description are only some drawings of the present disclosure, and other drawings can also be obtained by those skilled in the art according to these drawings.

[0012] FIG. 1 is a schematic diagram of a framework of video coding according to some embodiments.

[0013] FIG. 2 is a schematic diagram of a framework of video coding and decoding according to some embodiments.

[0014] FIG. 3 is a schematic diagram of an example of a CCNPM according to some embodiments.

[0015] FIG. 4 is a schematic diagram of a position relationship between pixel blocks according to some embodiments.

[0016] FIG. 5 is a schematic diagram of an example of a CCNPM predicting chroma values of a center block based on luminance values of surrounding blocks according to some embodiments.

[0017] FIG. 6 is a schematic diagram of an example of an IPF filtering according to some embodiments.

[0018] FIG. 7 is a schematic diagram of a system architecture according to some embodiments.

[0019] FIG. 8 is a flowchart of a filtering method for cross-component prediction according to some embodiments.

[0020] FIG. 9 is a schematic diagram of row / column indices of a positive left direction and a positive up direction of a pixel block according to some embodiments.

[0021] FIG. 10 is a schematic diagram of row / column indices of a positive left / positive up / left down / right up direction of a pixel block according to some embodiments.

[0022] FIG. 11 is a block diagram of a filtering device for cross-component prediction according to some embodiments.

[0023] FIG. 12 is a block diagram of a filtering device for cross-component prediction according to some embodiments. DETAILED DESCRIPTION

[0024] The technical solutions in the present disclosure will be described clearly and completely below in combination with the drawings in the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work belong to the scope of protection of the present disclosure.

[0025] It should be noted that in the present disclosure, the words such as “exemplarily” or “for example” are used to represent as an example, illustration or description. Any embodiment or design scheme described as “exemplarily” or “for example” in the present disclosure should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. In fact, the words such as “exemplarily” or “for example” are intended to present the related concept in a specific way.

[0026] Hereinafter, the terms “first” and “second” are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with “first” and “second” can explicitly or implicitly include one or more of the features.

[0027] In the description of the present disclosure, unless otherwise specified, “ / ” represents the meaning of “or”, for example, A / B can represent A or B. “And / or” in this document is only a description of the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. In addition, “at least one” means one or more, and “multiple” means two or more.

[0028] With the richness of video scenes, the data volume of the video also increases, and in order to improve the coding efficiency of the video, it is usually necessary to perform video coding processes such as video data acquisition, prediction, transformation and entropy coding, so as to reduce the data volume of the video.

[0029] Exemplarily, as shown in FIG. 1, a schematic diagram of a frame process of video coding is shown, that is, a block-based hybrid video coding framework. The original YUV (i.e. luminance, blue difference and red difference) can be compressed through several key modules such as prediction, transformation, quantization, entropy coding, rate control and post-processing. Here, the video is compressed mainly from the perspectives of temporal redundancy and spatial redundancy. The introduction of the block-based hybrid video coding framework can be as follows:

[0030] (1) First, the current block is divided according to several division types;

[0031] (2) Prediction is made based on the results of the partitioning, mainly involving intra-frame prediction and inter-frame prediction, which are respectively for removing spatial redundancy and temporal redundancy.

[0032] (3) For the reconstructed image obtained by prediction, the difference is calculated with the original image. That is, the residual is further reduced by transformation and quantization, and then binary encoding is performed by entropy coding.

[0033] (4) Finally, block effects and other problems are eliminated by post-processing modules such as deblocking filtering and sample adaptive offset.

[0034] For example, as shown in Figure 2, a schematic diagram of the video encoding and decoding framework is presented, representing the current video encoding and decoding framework of video encoding standards. The overall framework flow at the decoding end can be summarized as follows:

[0035] (1) First, decode the encoded binary bitstream (e.g., context-adaptive binary arithmetic coding (CABAC));

[0036] (2) Then, the decoded result is dequantized and inverse transformed;

[0037] (3) The prediction results based on the mode selection (such as motion compensation and intra-frame prediction) are added to the results after inverse quantization and inverse transformation to obtain the reconstructed image;

[0038] (4) Finally, the reconstructed image is post-processed, including deblocking filter (DBF), sample adaptive offset (SAO), adaptive loop filter (ALF), etc., and finally stored in the decoded image buffer to output the video signal.

[0039] It should be noted that, currently, whether it is the latest audio video coding standard (AVS) 4 which is still in the exploratory stage, or H.267, versatile video coding (VVC), etc., they all use this block-based hybrid video coding framework.

[0040] Currently, in the process of encoding video data, cross-component prediction is usually implemented based on two step cross component prediction mode (TSCPM). In AVS, Intra Prediction Filter (IPF) is first used for luma component, and then used for chroma component; for chroma component, when the intra prediction chroma component prediction mode is horizontal or TSCPM_L, a vertical 2-tap filter is used to filter the prediction value; when the intra prediction chroma component prediction mode is vertical or TSCPM_T, a horizontal 2-tap filter is used to filter the prediction value. However, there is another cross-component prediction tool, i.e., cross-component nonlinear intra prediction method (CCNPM). CCNPM is similar to TSCPM, and also uses the top template and the left template.

[0041] The CCNPM is introduced below in combination with specific examples. As shown in FIG. 3, an example schematic diagram of CCNPM is shown, including:

[0042] (1) The luma of the current block and the neighboring template region (black region in FIG. 3) are down-sampled to obtain down-sampled luma samples (i.e., down-sampled luma component).

[0043] The luma is down-sampled using the existing error vector magnitude (EVM) down-sampling, as shown in Equation 1:

[0044] (2) According to the neighboring template, a cross-component prediction model (such as a nonlinear model) of luma (Y) (i.e., down-sampled luma component) and chroma (U / V) (i.e., chroma component) is constructed, and the chroma result is predicted based on the model.

[0045] Here, the template selection of the neighboring block can refer to the positional relationship between the pixel blocks as shown in FIG. 4, taking the current chroma block (i.e., the current pixel block) as the reference: the top-left, top, top-right, left, and lower-left of the current block (i.e., the current pixel block) are selected to construct the template; the width w of the C region is equal to the width w of the current block, and the height h of the E region is equal to the height h of the current block; the template width θ is fixedly set as 6, and will be adaptively adjusted according to the availability of the neighboring samples; when the lower right corner of the C region (E region) is not reconstructed or exceeds the image boundary, the C region (E region) is unavailable.

[0046] Exemplarily, as shown in FIG. 5, an example schematic diagram of predicting the chroma value of a center block based on the brightness value of surrounding blocks by the CCNPM is shown, including: the model of cross-component nonlinear prediction selects a target chroma sample, a position C associated in a down-sampled brightness image, and surrounding down-sampled brightness samples.

[0047] A specific nonlinear model structure is shown in the following formula two:

[0048] Here, C' represents the target chroma sample, p i is a model parameter.

[0049] In order to reduce the complexity of template calculation, only partial samples in the template region are used for the calculation of the cross-component nonlinear prediction model. Specifically, only samples in the template region in FIG. 5 whose horizontal coordinates and vertical coordinates satisfy the following constraints, i.e., the horizontal coordinates and vertical coordinates are not both odd, are selected.

[0050] For example, (x%2==1&&y%2==1).

[0051] In addition, a plurality of equations can be constructed by using the nonlinear model to solve a linear equation set, i.e., the model parameters in the above formula two can be obtained. The model solving adopts an LDL solving method, and the entire process adopts an integer calculation process.

[0052] (3) Based on the cross-component model, the down-sampled brightness sample corresponding to the current block in input (1) is used to obtain the predicted value of the chroma (U / V).

[0053] In addition, the problem addressed by the IPF is that some reference pixels and the current prediction unit are ignored in the current intra prediction, and the spatial correlation can be effectively enhanced by the prediction filtering, so as to improve the intra prediction accuracy. As shown in FIG. 6, the prediction direction is from the upper right to the lower left, and the multi-resolution bitstream (MRB) is mainly used for generating the current intra prediction block, and the left side of the prediction sample block does not consider the correlation with the universal serial bus request block (URB), so the prediction effect is poor. In order to solve this problem, the IPF uses the reference pixels in the URB to filter the intra prediction block. The filter in the IPF includes three types, which are a horizontal 2-tap filter, a vertical 2-tap filter, and a 3-tap filter for filtering in the horizontal and vertical directions at the same time.

[0054] The algorithm for the above horizontal 2-tap filter, vertical 2-tap filter and 3-tap filter can be shown in the following Equation Three (horizontal 2-tap filter), Equation Four (vertical 2-tap filter) and Equation Five (3-tap filter): P'(x, y) = f(x) - P(-1, y) + (1 - f(x)) - P(x, y) Equation Three. P'(x, y) = f(y) - P(x, -1) + (1 - f(y)) - P(x, y) Equation Four. P'(x, y) = f(x) - P(-1, y) + f(y) - P(x, -1) + (1 - f(x) - f(y)) - P(x, y) Equation Five.

[0055] Here, P'(x, y) is used to indicate the filtered chroma prediction value, f(x) is used to indicate the filter parameter of the horizontal 2-tap filter, P(-1, y) is used to indicate the chroma value of the pixel block in the positive left direction of the current pixel block, P(x, y) is used to indicate the chroma value of the current pixel block, f(y) is used to indicate the filter parameter of the vertical 2-tap filter, P(x, -1) is used to indicate the chroma value of the pixel block in the positive up direction of the current pixel block.

[0056] For the luminance component, according to the intra prediction mode, one filter is selected from the above three filters to filter the current prediction value. The horizontal 2-tap filter is applied to the prediction mode close to the vertical down direction, the vertical 2-tap filter is applied to the prediction mode close to the horizontal left direction, and the 3-tap filter is applied to the non-angular prediction mode and the right-down diagonal mode.

[0057] For the chroma component, when the intra prediction chroma component prediction mode is horizontal or TSCPM_L, the vertical 2-tap filter is used to filter the prediction value; when the intra prediction chroma component prediction mode is vertical or TSCPM_T, the horizontal 2-tap filter is used to filter the prediction value.

[0058] If the current intra prediction block size is M x N, for the pixel with the block coordinate (i, j), the corresponding filter coefficients f(i) and f(j) are obtained from table 1 by M, i and N, j respectively.

[0059] Table 1 Intra prediction boundary filter coefficient table

[0060] However, in the technical solution, the pixel block of the video frame is not filtered after the CCNPM, that is, the CCNPM only refers to the luminance component of the adjacent pixel block and the correlation between the luminance component and the chroma component for the chroma component prediction of the current pixel block, so that the accuracy of the cross-component prediction is low.

[0061] Therefore, how to improve the accuracy of the cross-component prediction becomes a technical problem to be solved.

[0062] Therefore, how to improve the accuracy of the cross-component prediction becomes a technical problem to be solved.

[0063] The implementation environment of the embodiments of the present disclosure is introduced as follows.

[0064] As shown in FIG. 7, a schematic diagram of a system architecture provided by the embodiments of the present disclosure is shown, and the filtering device for cross-component prediction (such as an electronic device 700) can include an intra chroma prediction module 701 and a filtering processing module 702.

[0065] Here, the intra chroma prediction module 701 can determine the chroma prediction value of the pixel block (such as a coding unit (CU)) based on the CCNPM, and hand over the chroma prediction value to the filtering processing module 702 for filtering processing.

[0066] The filtering processing module 702 can filter the chroma prediction value from the intra chroma prediction module 701 based on the IPF to obtain the filtered chroma prediction value.

[0067] That is, the embodiments of the present disclosure start with the chroma prediction in the intra prediction, add a filtering operation to the chroma prediction tool CCNPM, improve the spatial correlation, and further improve the prediction accuracy.

[0068] It should be noted that in the embodiments of the present disclosure, the electronic device 700 can be a terminal, or the electronic device 700 can be a server.

[0069] The server can be a separate physical server, or can also be a server cluster composed of multiple servers. Alternatively, the server cluster can also be a distributed cluster. Alternatively, the server can be a cloud server. The specific implementation mode of the server is not limited in the embodiments of the present disclosure.

[0070] The terminal can be a device with a wireless transceiver function. The terminal can be a mobile phone, a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, and the like. Embodiments of the present disclosure do not limit the application scenarios. The terminal can also be referred to as a user, a user equipment (UE), an artificial intelligence internet of things (A-IoT) device, an access terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a transmitter, a remote terminal, a mobile device, a UE terminal, a wireless communication device, a UE agent, or a UE apparatus, and the like. Embodiments of the present disclosure do not limit this.

[0071] It should be noted that FIG. 7 is only an exemplary block diagram, the number of modules included in FIG. 7, and the name of each module are not limited, and the electronic device can also include other modules, such as an input module and an output module, in addition to the modules shown in FIG. 7.

[0072] The application scenarios of the embodiments of the present disclosure are not limited. The system architecture and business scenarios described in the embodiments of the present disclosure are used to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Those skilled in the art can know that, with the evolution of system architecture and the appearance of new business scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.

[0073] FIG. 8 shows a flowchart of a filtering method for cross-component prediction, as shown in FIG. 8, the method includes the following S801 and S802.

[0074] In S801, a chroma prediction value of a target pixel block for cross-component non-linear intra prediction in a video frame is obtained.

[0075] Here, the video frame can be any frame in the video to be encoded, and the target pixel block can be any pixel block in the video frame.

[0076] It should be noted that in the embodiments of the present disclosure, the chroma prediction mode of the CCNPM for the target pixel block can include a first prediction mode and a second prediction mode. Here, the first prediction mode is a mode of performing CCNPM based on the pixel block in the upward direction of the target pixel block (i.e., CCNPM_T), and the second prediction mode is a mode of performing CCNPM based on the pixel block in the leftward direction of the target pixel block (i.e., CCNPM_L).

[0077] That is, the chroma prediction value of the target pixel block can be the prediction value corresponding to CCNPM_L, or the chroma prediction value of the target pixel block can be the prediction value corresponding to CCNPM_T.

[0078] It should be noted that for the process of obtaining the chroma prediction value of the target pixel block by the electronic device, the above-mentioned embodiments of FIG. 3, FIG. 4 and FIG. 5 can be referred to for the introduction of CCNPM, which will not be repeated here.

[0079] S802, filtering the chroma prediction value by a preset intra prediction filter to obtain a filtered chroma prediction value.

[0080] That is, after performing chroma prediction on the target pixel block based on CCNPM, the electronic device can also perform filtering processing on the prediction value by IPF to improve the accuracy of the chroma prediction value.

[0081] It should be noted that in the embodiments of the present disclosure, the preset IPF for filtering the chroma prediction value of the CCNPM can be various, including at least one of the following (1)-(5):

[0082] (1) a horizontal 2-tap filter for filtering in the horizontal direction;

[0083] (2) a vertical 2-tap filter for filtering in the vertical direction;

[0084] (3) a 3-tap filter for filtering in the horizontal and vertical directions at the same time;

[0085] (4) a newly constructed vertical 2-tap filter;

[0086] (5) a newly constructed horizontal 2-tap filter.

[0087] Here, for the algorithms in the horizontal 2-tap filter, the vertical 2-tap filter and the 3-tap filter, the above-mentioned formula three, formula four and formula five can be referred to, which will not be repeated here.

[0088] In addition, for the algorithm in the newly constructed horizontal 2-tap filter and the newly constructed vertical 2-tap filter, the following formula six (newly constructed horizontal 2-tap filter) and formula seven (newly constructed vertical 2-tap filter) can be used: P'(x, y) = w1?f(x)P(-1, y) + w2?f(x)P(-1, y + h) + (1 - w1?f(x) - w2?f(x))P(x, y) Formula six. P'(x, y) = w3?f(y)P(x, -1) + w4?f(y)P(x + w, -1) + (1 - w3?f(y) - w4?f(y))P(x, y) Formula seven.

[0089] Here, w1 is used to indicate the reference weight of the positive left direction, w2 is used to indicate the reference weight of the lower left direction, P(-1, y + h) is used to indicate the chroma value of the pixel block in the lower left direction of the current pixel block, w3 is used to indicate the reference weight of the positive upper direction, w4 is used to indicate the reference weight of the upper right direction, and P(x + w, -1) is used to indicate the chroma value of the pixel block in the upper right direction of the current pixel block.

[0090] That is, the vertical 2-tap filter only refers to the samples of the left template (i.e., the pixel block in the left direction) of the current block during the filtering process, while the newly constructed vertical 2-tap filter simultaneously refers to the samples on the left and lower left sides during the filtering process, and has corresponding reference weights set in different reference directions.

[0091] Similarly, the horizontal 2-tap filter only refers to the samples of the upper template (i.e., the pixel block in the upper direction) of the current block during the filtering process, while the newly constructed horizontal 2-tap filter simultaneously refers to the samples on the upper and upper right sides during the filtering process, and has corresponding reference weights set in different reference directions.

[0092] In this way, more input samples can be considered, increasing the richness of the input samples.

[0093] In some embodiments, in the process of filtering the chroma prediction value through the preset IPF to obtain the filtered chroma prediction value, the electronic device can select a matching filter from the preset IPF for filtering by referring to the chroma prediction mode of the CCNPM for the target pixel block, to obtain the filtered chroma prediction value, including:

[0094] The electronic device can select a target IPF from the preset IPF according to the chroma prediction mode of the CCNPM, and filter the chroma prediction value through the target IPF to obtain the filtered chroma prediction value.

[0095] That is, by establishing the relevance between the chroma prediction mode and the IPF, the chroma prediction value can be reasonably filtered in the process of filtering the chroma prediction, thereby improving the filtering effect.

[0096] It should be noted that in the embodiments of the present disclosure, different chroma prediction modes can correspond to different IPFs, including any one of the following (a)-(d):

[0097] (a) When the CCNPM is a first prediction mode, the target IPF can be a horizontal 2-tap filter;

[0098] (b) When the CCNPM is a second prediction mode, the target IPF can be a vertical 2-tap filter;

[0099] (c) When the CCNPM is a first prediction mode, the target IPF can be a newly constructed horizontal 2-tap filter;

[0100] (d) When the CCNPM is a second prediction mode, the target IPF can be a newly constructed vertical 2-tap filter.

[0101] That is, when the electronic device traverses to the CCNPM_T or CCNPM_L chroma mode, the chroma prediction result is filtered.

[0102] The above (a)-(d) will be described in the process of filtering the chroma prediction value by the preset intra prediction filter to obtain the filtered chroma prediction value.

[0103] In the first embodiment, when the CCNPM is a first prediction mode, the electronic device can obtain a first chroma value of a pixel block in a positive left direction of a target pixel block in a video frame. Then, the electronic device can use a horizontal 2-tap filter to determine the product of the chroma prediction value and a first preset weight, and the product of the first chroma value and a second preset weight, and sum all the product results to obtain the filtered chroma prediction value.

[0104] Here, the second preset weight can be the filtering parameter f(x) for the left pixel block in the above formula three, and the first preset weight can be the filtering parameter (1-f(x)) for the current pixel block in the above formula three.

[0105] That is, when the CCNPM is a first prediction mode, the electronic device can use the horizontal 2-tap filter shown in formula three to filter the chroma prediction value of the CCNPM. That is, when the intra prediction chroma component prediction mode is CCNPM_T, the samples above are filtered by a horizontal 2-tap filter to filter the prediction value.

[0106] In the case that the CCNPM is the first prediction mode, the electronic device can obtain a first chroma value of a pixel block in a positive-left direction of a target pixel block in a video frame, and a third chroma value of a pixel block in a lower-left direction, and fuse the first chroma value and the third chroma value according to a first preset ratio to obtain a first reference chroma value. Then, the electronic device can use a horizontal 2-tap filter to determine a product of a chroma prediction value and a first preset weight, and a product of the first reference chroma value and a second preset weight, and sum all the product results to obtain a filtered chroma prediction value.

[0107] Here, the first reference chroma value can be taken as a chroma value of a newly constructed pixel block in the positive-left direction (i.e., equivalent to correcting the chroma value of the pixel block in the positive-left direction using the chroma value of the pixel block in the lower-left direction), P(-1, y) in Formula Three above, the second preset weight can be a filter parameter f(x) for the left pixel block in Formula Three above, and the first preset weight can be a filter parameter (1-f(x)) for the current pixel block in Formula Three above.

[0108] That is, in the case that the CCNPM is the first prediction mode, the electronic device can correct the chroma value of the pixel block in the positive-left direction using the chroma value of the pixel block in the lower-left direction, and perform filter processing on the chroma prediction value of the CCNPM using the horizontal 2-tap filter shown in Formula Three based on the corrected chroma value of the pixel block in the positive-left direction. That is, when the intra prediction chroma component prediction mode is CCNPM_T, the upper sample and the upper-right sample are first fused according to a certain ratio, and then the prediction value is filtered using the horizontal 2-tap filter.

[0109] In the case that the CCNPM is the first prediction mode, the electronic device can obtain a first chroma value of a pixel block in a positive-left direction of a target pixel block in a video frame, and a third chroma value of a pixel block in a lower-left direction. Then, the electronic device can use a newly constructed horizontal 2-tap filter to determine a product of a chroma prediction value and a first preset weight, a product of the first chroma value and a second preset weight, and a product of the third chroma value and a third preset weight, and sum all the product results to obtain a filtered chroma prediction value.

[0110] Here, the second preset weight can be a filter parameter w1·f(x) for the left pixel block in Formula Six above, the third preset weight can be a filter parameter w2·f(x) for the lower-left pixel block in Formula Six above, and the first preset weight can be a filter parameter (1-w1·f(x)-w2·f(x)) for the current pixel block in Formula Six above.

[0111] That is, in the case that the CCNPM is the first prediction mode, the electronic device can filter the chroma prediction value of the CCNPM using a newly constructed horizontal 2-tap filter shown in Equation Six, in combination with the chroma values of the pixel blocks in the right-up and left-down directions, and the reference weights of the two directions. That is, when the intra prediction chroma component prediction mode is CCNPM_T, the prediction value is filtered using the newly constructed horizontal 2-tap filter on the samples above and to the right.

[0112] In the case that the CCNPM is the second prediction mode, the electronic device can obtain a second chroma value of a pixel block in the right-up direction of the target pixel block in the video frame. Then, the electronic device can determine the product of the chroma prediction value and a first preset weight, and the product of the second chroma value and a fourth preset weight using a vertical 2-tap filter, and sum all the product results to obtain a filtered chroma prediction value.

[0113] Here, the fourth preset weight can be the filter parameter f(y) for the pixel block above in Equation Four, and the first preset weight can be the filter parameter (1-f(y)) for the current pixel block in Equation Four.

[0114] That is, in the case that the CCNPM is the second prediction mode, the electronic device can filter the chroma prediction value of the CCNPM using a vertical 2-tap filter shown in Equation Four. That is, when the intra prediction chroma component prediction mode is CCNPM_L, only the left template is used, and the prediction value is filtered using the vertical 2-tap filter.

[0115] In the case that the CCNPM is the second prediction mode, the electronic device can obtain a second chroma value of a pixel block in the right-up direction of the target pixel block in the video frame, and a fourth chroma value of a pixel block in the right-up direction, and fuse the second chroma value and the fourth chroma value according to a second preset proportion to obtain a second reference chroma value. Then, the electronic device can determine the product of the chroma prediction value and a first preset weight, and the product of the second reference chroma value and a fourth preset weight using a vertical 2-tap filter, and sum all the product results to obtain a filtered chroma prediction value.

[0116] Here, the second reference chroma value can be used as the chroma value of the newly constructed pixel block in the right-up direction (i.e., equivalent to correcting the chroma value of the pixel block in the right-up direction using the chroma value of the pixel block in the right-up direction), as P(x,-1) in Equation Four, the fourth preset weight can be the filter parameter f(y) for the pixel block above in Equation Four, and the first preset weight can be the filter parameter (1-f(y)) for the current pixel block in Equation Four.

[0117] That is, in the case that the CCNPM is the second prediction mode, the electronic device can correct the chroma value of the pixel block in the directly-up direction using the chroma value of the pixel block in the right-up direction, and filter the chroma prediction value of the CCNPM using the vertical 2-tap filter shown in Equation Four based on the corrected chroma value of the pixel block in the directly-up direction. That is, when the intra prediction chroma component prediction mode is CCNPM_L, the samples on the left and the lower-left are first fused according to a certain ratio, and then a vertical 2-tap filter is used to filter the prediction value.

[0118] In the case that the CCNPM is the second prediction mode, the electronic device can obtain a second chroma value of a pixel block in a directly-up direction of the target pixel block and a fourth chroma value of a pixel block in a right-up direction of the target pixel block in the video frame. Then, the electronic device can determine a product of the chroma prediction value and a first preset weight, a product of the second chroma value and a fourth preset weight, and a product of the fourth chroma value and a fifth preset weight using a newly constructed vertical 2-tap filter, and sum all the product results to obtain a filtered chroma prediction value.

[0119] Here, the fourth preset weight can be the filter parameter w3·f(y) for the pixel block on the upper side in Equation Seven, the fifth preset weight can be the filter parameter w4·f(y) for the pixel block on the right-up side in Equation Seven, and the first preset weight can be the filter parameter (1-w3·f(y)-w4·f(y)) for the current pixel block in Equation Seven.

[0120] That is, in the case that the CCNPM is the second prediction mode, the electronic device can use the newly constructed vertical 2-tap filter shown in Equation Seven to filter the chroma prediction value of the CCNPM in combination with the chroma values of the pixel blocks in the directly-up and right-up directions and the reference weights of the two directions. That is, when the intra prediction chroma component prediction mode is CCNPM_L, the newly constructed vertical 2-tap filter is used to filter the prediction value of the samples on the left and the lower-left.

[0121] It should be noted that the pixel block in the directly-left direction referred to in Embodiment One, Embodiment Two, and Embodiment Three can be a neighboring pixel block in the directly-left direction of the target pixel block in the video frame, or the pixel block in the directly-left direction referred to can be a non-neighboring pixel block in the directly-left direction of the target pixel block in the video frame.

[0122] Similarly, the pixel block in the directly-up direction referred to in Embodiment Four, Embodiment Five, and Embodiment Six can be a neighboring pixel block in the directly-up direction of the target pixel block in the video frame, or the pixel block in the directly-up direction referred to can be a non-neighboring pixel block in the directly-up direction of the target pixel block in the video frame.

[0123] In combination with the vertical 2-tap filter and the horizontal 2-tap filter shown in the above Formula Three and Formula Four, another algorithm of the horizontal 2-tap filter and the vertical 2-tap filter can be obtained, as shown in the following Formula Eight (horizontal 2-tap filter) and Formula Nine (vertical 2-tap filter): P'(x, y) = f(x) P(-index, y) + (1 - f(x)) P(x, y) Formula Eight P'(x, y) = f(y) P(x, -index) + (1 - f(y)) P(x, y) Formula Nine.

[0124] Here, the index is used to indicate the index of the non-adjacent / adjacent row or column of the target pixel block in the positive left or positive up direction.

[0125] Exemplarily, as shown in FIG. 9, a schematic diagram of the row / column index of the positive left direction and the positive up direction of the pixel block is shown. Here, the index can be any index value.

[0126] In some embodiments, the pixel block in the lower left direction referred to in the above Embodiment Two and Embodiment Three can be the pixel block in the same vertical direction as the pixel block in the positive left direction of the target pixel block in the video frame, or the pixel block in the lower left direction referred to can be the pixel block not in the same vertical direction as the pixel block in the positive left direction of the target pixel block in the video frame.

[0127] Similarly, the pixel block in the upper right direction referred to in the above Embodiment Five and Embodiment Six can be the pixel block in the same horizontal direction as the pixel block in the positive up direction of the target pixel block in the video frame, or the pixel block in the upper right direction referred to can be the pixel block not in the same horizontal direction as the pixel block in the positive up direction of the target pixel block in the video frame.

[0128] In combination with the newly constructed vertical 2-tap filter and the newly constructed horizontal 2-tap filter shown in the above Formula Six and Formula Seven, another algorithm of the newly constructed horizontal 2-tap filter and the newly constructed vertical 2-tap filter can be obtained, as shown in the following Formula Ten (newly constructed horizontal 2-tap filter) and Formula Eleven (newly constructed vertical 2-tap filter): P'(x, y) = w1 f(x) P(-index1, y) + w2 f(x) P(-index2, y + h) + (1 - w1 f(x) - w2 f(x)) P(x, y)

[0129] Formula Ten. P'(x, y) = w3 f(y) P(x, -index3) + w4 f(y) P(x + w, -index4) + (1 - w3 f(x) - w4 f(x)) P(x, y)

[0130] Equation eleven.

[0131] Here, index1 is used to indicate the non-adjacent / adjacent column index of the target pixel block in the positive left direction, index2 is used to indicate the column index of the target pixel block in the lower left direction, index3 is used to indicate the non-adjacent / adjacent row index of the target pixel block in the positive up direction, and index4 is used to indicate the row index of the target pixel block in the upper right direction.

[0132] In addition, index1 and index2 can be the same (i.e., the pixel block in the positive left direction and the pixel block in the lower left direction are in the same vertical direction), or index1 and index2 can be different (i.e., the pixel block in the positive left direction and the pixel block in the lower left direction are not in the same vertical direction).

[0133] Similarly, index3 and index4 can be the same (i.e., the pixel block in the positive up direction and the pixel block in the upper right direction are in the same horizontal direction), or index3 and index4 can be different (i.e., the pixel block in the positive up direction and the pixel block in the upper right direction are not in the same horizontal direction).

[0134] Exemplarily, as shown in FIG. 10, a schematic diagram of the row / column index of the pixel block in the positive left / positive up / lower left / upper right direction is shown. Here, index1 can be 0, index2 can be 1 (i.e., the pixel block in the positive left direction and the pixel block in the lower left direction are not in the same vertical direction), index1 and index2 can both be 0 (i.e., the pixel block in the positive left direction and the pixel block in the lower left direction are in the same vertical direction).

[0135] Alternatively, index3 can be 1, index4 can be 0 (i.e., the pixel block in the positive up direction and the pixel block in the upper right direction are in the same horizontal direction), index3 and index4 can both be 2 (i.e., the pixel block in the positive up direction and the pixel block in the upper right direction are not in the same horizontal direction).

[0136] In summary, on the basis of the CCNPM chroma prediction, the more accurate chroma prediction value can be obtained by filtering processing through the IPF. That is, to improve the coding performance, the result after the CCNPM prediction is filtered, the spatial correlation of the chroma component is enhanced, and the accuracy of the cross-component prediction is improved.

[0137] It can be understood that, in order to implement the above functions, the filter device for cross-component prediction comprises hardware structures and / or software modules corresponding to the functions. Those skilled in the art should easily realize that, in combination with the algorithm steps of the examples described in the embodiments of the present disclosure, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in hardware or in the form of computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present disclosure.

[0138] The embodiments of the present disclosure can divide the function modules of the filter device for cross-component prediction according to the above method embodiments. For example, each function module can be divided according to each function, or two or more functions can be integrated into one function module. The integrated module can be implemented in the form of hardware or software. It should be noted that the division of the modules in the embodiments of the present disclosure is illustrative, and is only a logical function division. In actual implementation, another division method can be used. The following will be described taking the division of each function module according to each function as an example.

[0139] FIG. 11 is a block diagram of a filter device for cross-component prediction according to some embodiments. The filter device for cross-component prediction 1100 comprises an acquisition module 1101 and a processing module 1102.

[0140] The acquisition module 1101 is configured to acquire a chroma prediction value of a target pixel block of cross-component nonlinear intra prediction (CCNPM) in a video frame. The processing module 1102 is configured to perform filter processing on the chroma prediction value by using a preset intra prediction filter (IPF) to obtain a filtered chroma prediction value.

[0141] In some embodiments, the preset IPF comprises at least one of the following: a horizontal 2-tap filter for filtering in a horizontal direction, a vertical 2-tap filter for filtering in a vertical direction, a 3-tap filter for filtering in both horizontal and vertical directions, a newly constructed vertical 2-tap filter, and a newly constructed horizontal 2-tap filter.

[0142] In some embodiments, the processing module 1102 is specifically configured to select a target IPF from the preset IPFs according to a chroma prediction mode of the CCNPM. The processing module 1102 is further configured to filter the chroma prediction value by using the target IPF to obtain a filtered chroma prediction value. Here, the chroma prediction mode of the CCNPM includes a first prediction mode and a second prediction mode, the first prediction mode is a mode of performing the CCNPM based on a pixel block in a direction vertically above the target pixel block, and the second prediction mode is a mode of performing the CCNPM based on a pixel block in a direction vertically left of the target pixel block.

[0143] In some embodiments, in a case where the CCNPM is the first prediction mode, the target IPF is a horizontal 2-tap filter. The obtaining module 1101 is further configured to, in the case where the CCNPM is the first prediction mode, obtain a first chroma value of a pixel block in a direction vertically left of the target pixel block in the video frame. The processing module 1102 is specifically configured to determine a product of the chroma prediction value and a first preset weight, and a product of the first chroma value and a second preset weight by using the horizontal 2-tap filter, and sum all the product results to obtain the filtered chroma prediction value.

[0144] In some embodiments, in a case where the CCNPM is the first prediction mode, the target IPF is a horizontal 2-tap filter. The obtaining module 1101 is further configured to, in the case where the CCNPM is the first prediction mode, obtain a first chroma value of a pixel block in a direction vertically left of the target pixel block in the video frame, and a third chroma value of a pixel block in a direction diagonally below left of the target pixel block. The processing module 1102 is specifically configured to fuse the first chroma value and the third chroma value according to a first preset ratio to obtain a first reference chroma value. The processing module 1102 is further configured to determine a product of the chroma prediction value and a first preset weight, and a product of the first reference chroma value and a second preset weight by using the horizontal 2-tap filter, and sum all the product results to obtain the filtered chroma prediction value.

[0145] In some embodiments, in a case where the CCNPM is the first prediction mode, the target IPF is a newly constructed horizontal 2-tap filter. The obtaining module 1101 is further configured to, in the case where the CCNPM is the first prediction mode, obtain a first chroma value of a pixel block in a direction vertically left of the target pixel block in the video frame, and a third chroma value of a pixel block in a direction diagonally below left of the target pixel block. The processing module 1102 is specifically configured to determine a product of the chroma prediction value and a first preset weight, a product of the first chroma value and a second preset weight, and a product of the third chroma value and a third preset weight by using the newly constructed horizontal 2-tap filter, and sum all the product results to obtain the filtered chroma prediction value.

[0146] In some embodiments, the pixel block in the positive left direction is a neighboring pixel block in the positive left direction of the target pixel block in the video frame, or the pixel block in the positive left direction is a non-neighboring pixel block in the positive left direction of the target pixel block in the video frame.

[0147] In some embodiments, the target IPF is a vertical 2-tap filter when the CCNPM is the second prediction mode. The obtaining module 1101 is further configured to obtain a second chroma value of a pixel block in a positive up direction of the target pixel block in the video frame when the CCNPM is the second prediction mode. The processing module 1102 is specifically configured to determine a product of the chroma prediction value and a first preset weight, a product of the second chroma value and a fourth preset weight, and sum all the product results to obtain the filtered chroma prediction value using the vertical 2-tap filter.

[0148] In some embodiments, the target IPF is a vertical 2-tap filter when the CCNPM is the second prediction mode. The obtaining module 1101 is further configured to obtain a second chroma value of a pixel block in a positive up direction of the target pixel block in the video frame and a fourth chroma value of a pixel block in a right up direction of the target pixel block in the video frame when the CCNPM is the second prediction mode. The processing module 1102 is specifically configured to fuse the second chroma value and the fourth chroma value according to a second preset ratio to obtain a second reference chroma value. The processing module 1102 is further configured to determine a product of the chroma prediction value and a first preset weight, a product of the second reference chroma value and a fourth preset weight, and sum all the product results to obtain the filtered chroma prediction value using the vertical 2-tap filter.

[0149] In some embodiments, the target IPF is a newly constructed vertical 2-tap filter when the CCNPM is the second prediction mode. The obtaining module 1101 is further configured to obtain a second chroma value of a pixel block in a positive up direction of the target pixel block in the video frame and a fourth chroma value of a pixel block in a right up direction of the target pixel block in the video frame when the CCNPM is the second prediction mode. The processing module 1102 is specifically configured to determine a product of the chroma prediction value and a first preset weight, a product of the second chroma value and a fourth preset weight, and a product of the fourth chroma value and a fifth preset weight, and sum all the product results to obtain the filtered chroma prediction value using the newly constructed vertical 2-tap filter.

[0150] In some embodiments, the pixel block in the positive up direction is a neighboring pixel block in the positive up direction of the target pixel block in the video frame, or the pixel block in the positive up direction is a non-neighboring pixel block in the positive up direction of the target pixel block in the video frame.

[0151] In the case of implementing the functions of the above-mentioned integrated module in the form of hardware, the disclosure embodiments provide another structure of the filtering device for cross-component prediction involved in the above-mentioned embodiments. As shown in FIG. 12, the filtering device for cross-component prediction 1200 includes a processor 1202 and a bus 1204. In some embodiments, the filtering device for cross-component prediction can further include a memory 1201; and in some embodiments, the filtering device for cross-component prediction can further include a communication interface 1203.

[0152] The processor 1202 can be various exemplary logical blocks, modules and circuits described in combination with the disclosure embodiments, which can be implemented or executed. The processor 1202 can be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure embodiments. The processor 1202 can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, etc.

[0153] The communication interface 1203 is used to connect with other devices through a communication network. The communication network can be an Ethernet, a wireless access network, a wireless local area network (WLAN), etc.

[0154] The memory 1201 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0155] In some embodiments, the memory 1201 can exist independently of the processor 1202, and the memory 1201 can be connected with the processor 1202 through the bus 1204 for storing instructions or program codes. When the processor 1202 invokes and executes the instructions or program codes stored in the memory 1201, the filtering method for cross-component prediction provided by the disclosure embodiments can be implemented.

[0156] In some embodiments, the memory 1201 can also be integrated in the processor 1202.

[0157] The bus 1204 can be an extended industry standard architecture (EISA) bus, a video electronics standards team (VESA) bus, or the like. The bus 1204 can be divided into an address bus, a data bus, a control bus, or the like. For ease of representation, only one thick line is used in FIG. 12, but this does not mean that there is only one bus or only one type of bus.

[0158] Some embodiments of the present disclosure provide a computer readable storage medium (for example, a non-transitory computer readable storage medium) having stored computer program instructions, which, when executed on a computer, cause the computer to perform the filtering method for cross-component prediction according to any one of the above embodiments.

[0159] Exemplarily, the above computer readable storage medium can include, but is not limited to, a magnetic storage device (for example, a hard disk, a floppy disk, or a magnetic tape, etc.), an optical disc (for example, a compact disk (CD), a digital versatile disc (DVD), etc.), a smart card, and a flash memory device (for example, an erasable programmable read-only memory (EPROM), a card, a stick, or a key drive, etc.). The various computer readable storage media described in the present disclosure can represent one or more devices and / or other machine readable storage media for storing information. The term "machine readable storage medium" can include, but is not limited to, a wireless channel and various other media capable of storing, containing, and / or carrying instructions and / or data.

[0160] The embodiments of the present disclosure provide a computer program product containing instructions, which, when executed on a computer, cause the computer to perform the filtering method for cross-component prediction according to any one of the above embodiments.

[0161] The above description is merely exemplary of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any change or substitution within the technical scope disclosed in the present disclosure should be covered in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

[0162] The embodiment of the disclosure provides a computer program product containing instructions, which, when executed on a computer, causes the computer to perform the service flow configuration method described in any of the above embodiments. The above is only a specific implementation of the disclosure, but the protection scope of the disclosure is not limited thereto, and any change or replacement within the technical scope disclosed by the disclosure should be covered in the protection scope of the disclosure. Therefore, the protection scope of the disclosure should be subject to the protection scope of the claims.

Claims

1. A method of filtering for cross-component prediction, wherein, The method comprises: obtaining a chroma prediction value of a target pixel block of cross-component non-linear intra prediction (CCNPM) in a video frame; filtering the chroma prediction value through a preset intra prediction filter (IPF) to obtain a filtered chroma prediction value.

2. The method of claim 1, wherein, The preset IPF comprises at least one of a horizontal 2-tap filter for filtering in a horizontal direction, a vertical 2-tap filter for filtering in a vertical direction, a 3-tap filter for filtering in both horizontal and vertical directions, a newly constructed vertical 2-tap filter, and a newly constructed horizontal 2-tap filter.

3. The method of claim 2, wherein, The filtering of the chroma prediction value through the preset IPF comprises: selecting a target IPF from the preset IPF according to a chroma prediction mode of the CCNPM; filtering the chroma prediction value through the target IPF to obtain a filtered chroma prediction value. Here, the chroma prediction mode of the CCNPM comprises a first prediction mode and a second prediction mode, the first prediction mode is a mode of performing CCNPM based on a pixel block in a direction directly above the target pixel block, and the second prediction mode is a mode of performing CCNPM based on a pixel block in a direction directly left of the target pixel block.

4. The method of claim 3, wherein, In the case where the CCNPM is the first prediction mode, the target IPF is the horizontal 2-tap filter. The filtering of the chroma prediction value through the target IPF to obtain a filtered chroma prediction value comprises: in the case where the CCNPM is the first prediction mode, obtaining a first chroma value of a pixel block in a direction directly left of the target pixel block in the video frame; using the horizontal 2-tap filter, determining a product of the chroma prediction value and a first preset weight, a product of the first chroma value and a second preset weight, and summing all product results to obtain the filtered chroma prediction value.

5. The method of claim 3, wherein, In the case where the CCNPM is the first prediction mode, the target IPF is the horizontal 2-tap filter. The filtering of the chroma prediction value through the target IPF to obtain a filtered chroma prediction value comprises: in the case where the CCNPM is the first prediction mode, obtaining a first chroma value of a pixel block in a direction directly left of the target pixel block in the video frame and a third chroma value of a pixel block in a direction directly below left of the target pixel block; fusing the first chroma value and the third chroma value according to a first preset ratio to obtain a first reference chroma value; using the horizontal 2-tap filter, determining a product of the chroma prediction value and a first preset weight, a product of the first reference chroma value and a second preset weight, and summing all product results to obtain the filtered chroma prediction value.

6. The method of claim 3, wherein, In the case where the CCNPM is the first prediction mode, the target IPF is the newly constructed horizontal 2-tap filter. The filtering of the chroma prediction value through the target IPF to obtain a filtered chroma prediction value comprises: In a case where the CCNPM is the first prediction mode, a first chroma value of a pixel block in a positive-left direction of the target pixel block in the video frame is obtained, and a third chroma value of a pixel block in a lower-left direction of the target pixel block in the video frame is obtained; The new constructed horizontal 2-tap filter is used to determine a product of the chroma prediction value and a first preset weight, a product of the first chroma value and a second preset weight, and a product of the third chroma value and a third preset weight, and all product results are summed to obtain the filtered chroma prediction value.

7. The method of any one of claims 4-6, wherein, The pixel block in the positive-left direction is a neighboring pixel block in the positive-left direction of the target pixel block in the video frame, or the pixel block in the positive-left direction is a non-neighboring pixel block in the positive-left direction of the target pixel block in the video frame.

8. The method of claim 3, wherein, In a case where the CCNPM is the second prediction mode, the target IPF is the vertical 2-tap filter; The filtering processing of the chroma prediction value through the target IPF to obtain the filtered chroma prediction value includes: In a case where the CCNPM is the second prediction mode, a second chroma value of a pixel block in a positive-up direction of the target pixel block in the video frame is obtained; The vertical 2-tap filter is used to determine a product of the chroma prediction value and a first preset weight, and a product of the second chroma value and a fourth preset weight, and all product results are summed to obtain the filtered chroma prediction value.

9. The method of claim 3, wherein, In a case where the CCNPM is the second prediction mode, the target IPF is the vertical 2-tap filter; The filtering processing of the chroma prediction value through the target IPF to obtain the filtered chroma prediction value includes: In a case where the CCNPM is the second prediction mode, a second chroma value of a pixel block in a positive-up direction of the target pixel block in the video frame is obtained, and a fourth chroma value of a pixel block in an upper-right direction of the target pixel block in the video frame is obtained; The second chroma value and the fourth chroma value are fused according to a second preset ratio to obtain a second reference chroma value; The vertical 2-tap filter is used to determine a product of the chroma prediction value and a first preset weight, and a product of the second reference chroma value and a fourth preset weight, and all product results are summed to obtain the filtered chroma prediction value.

10. The method of claim 3, wherein, In a case where the CCNPM is the second prediction mode, the target IPF is the new constructed vertical 2-tap filter; The filtering processing of the chroma prediction value through the target IPF to obtain the filtered chroma prediction value includes: In a case where the CCNPM is the second prediction mode, a second chroma value of a pixel block in a positive-up direction of the target pixel block in the video frame is obtained, and a fourth chroma value of a pixel block in an upper-right direction of the target pixel block in the video frame is obtained; Using the new constructed vertical 2-tap filter, a product of the chroma prediction value and a first preset weight, a product of the second chroma value and a fourth preset weight, and a product of the fourth chroma value and a fifth preset weight are determined, and all the product results are summed to obtain a filtered chroma prediction value.

11. The method of any one of claims 8-10, wherein, The pixel block in the upper direction is a neighboring pixel block in the upper direction of the target pixel block in the video frame, or the pixel block in the upper direction is a non-neighboring pixel block in the upper direction of the target pixel block in the video frame.

12. An electronic device, comprising: Comprising: a memory and a processor; the memory and the processor are coupled; the memory is configured to store instructions executable by the processor; the processor executes the instructions to perform the method of any one of claims 1-11.

13. A computer readable storage medium, wherein, The computer readable storage medium stores computer instructions, when the computer instructions run on the computer, make the computer execute the method of any one of claims 1-11.

14. A computer program product, wherein, The computer program product comprises computer program instructions, when the computer program instructions are executed, realize the method of any one of claims 1-11. The computer program product comprises computer program instructions, when the computer program instructions are executed, realize the method of any one of claims 1-11.

Citation Information

Patent Citations

  • Filtering method for intra-frame prediction, filter and device

    CN111787334A

  • Coding and decoding method, device and equipment

    CN114598871A

  • Method and device for coding and decoding

    WO2021040330A1

  • Image encoding / decoding method and apparatus, and recording medium on which bitstream is stored

    WO2024053963A1