Video image processing method and apparatus, and storage medium

By binarizing saturation prediction modes into a bit string with independent probability models and using a cross-component linear model, the complexity and inefficiencies in video encoding/decoding are reduced, enhancing parallelism and efficiency.

JP2026004553AActive Publication Date: 2026-01-14SZ DJI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2025170199
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-06-25
Filing Date
2025-10-08
Publication Date
2026-01-14
Estimated Expiration
2039-07-09

AI Technical Summary

Technical Problem

The complexity of video encoding/decoding processes is increased due to dependencies between bits in chroma prediction modes, particularly with the Cross Component Linear Model (CCLM), leading to inefficiencies.

Method used

Implementing a method that binarizes saturation prediction modes into a bit string of at least three adjacent bits, allowing independent probability models for encoding/decoding, and using a cross-component linear model (CCLM) with multiple modes to reduce dependency and improve efficiency.

Benefits of technology

This approach reduces the complexity of the encoding/decoding process, enhances parallelism, and improves efficiency by eliminating dependencies between encoding/decoding bits, maintaining high performance without significant loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026004553000001_ABST
    Figure 2026004553000001_ABST
Patent Text Reader

Abstract

Provided are a video image encoding / decoding method and apparatus, and a storage medium.SOLUTION: The encoding method binarizes a chroma prediction mode of a cross-component linear model (CCLM) and / or a regular intra chroma prediction mode to obtain a bit string including adjacent bits. The normal intra chroma prediction mode is another intra chroma prediction mode other than the CCLM including the first to third modes. In the adjacent bits, the first bit indicates whether to use the CCLM, and the second bit indicates whether to use the first mode when the first bit indicates that the CCLM is not used. The third bit indicates whether the second mode or the third mode is adopted when the second bit indicates that the first mode is not adopted. The method also encodes the first bit and the second bit using respective probability modes that are independent of each other, and encodes the third bit using a Bypass mode.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to the field of video encoding / decoding, and in particular to a video image processing method, apparatus, and storage medium. [Background technology]

[0002] Currently, in versatile video coding, multiple prediction modes, including the Cross Component Linear Model (CCLM), are used for chroma prediction to improve the accuracy of chroma prediction. When analyzing the chroma prediction mode number of an image block using the CCLM prediction mode, there is a dependency between the bits at different positions. For example, the encoding / decoding method for the bit at the fourth position of an image block must refer to the value of the bit at the third position. This method increases the complexity of the encoding / decoding process and reduces its efficiency. Therefore, how to improve the efficiency of the encoding / decoding process is a key research topic. Summary of the Invention [Means for solving the problem]

[0003] The embodiments of the present invention provide a video image processing method, apparatus, and storage medium, which realize parallel encoding / decoding, reduce the complexity of the encoding / decoding process, save the encoding / decoding time, and improve the encoding / decoding efficiency.

[0004] In a first aspect, embodiments of the present invention comprise: binarizing a saturation prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, and for the image to be encoded / decoded, at least one of a cross-component linear model (CCLM) and a normal intra saturation prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra saturation prediction mode is an intra saturation prediction mode other than the CCLM; a first bit of the three adjacent bits is used to indicate whether or not a first mode of the CCLM is adopted, and when the first bit indicates that the first mode of the CCLM is not adopted, a second bit is used to indicate whether or not a remaining mode other than the first mode of the CCLM is adopted, and when the second bit indicates that a remaining mode other than the first mode of the CCLM is adopted, a third bit is used to indicate that the image block adopts the second mode or the third mode of the CCLM; Alternatively, a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM, and when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; A video image processing method is provided, which includes employing independent probability models to encode / decode the second bit and the third bit, respectively.

[0005] In a second aspect, embodiments of the present invention comprise: binarizing a saturation prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, and for the image to be encoded / decoded, at least one of a cross-component linear model (CCLM) and a normal intra saturation prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra saturation prediction mode is an intra saturation prediction mode other than the CCLM; a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM; when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM; and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; A video image processing method is provided, which includes employing independent probability models to encode / decode the first bits and the second bits, respectively.

[0006] In a third aspect, embodiments of the present invention comprise: a memory and a processor, the memory is used to store program instructions; The processor is used to call the program instructions, which when executed: binarizing a chroma prediction mode of an image block of an image to be coded / decoded to obtain a bit string including at least three adjacent bits; for the image to be coded / decoded, at least one of a cross-component linear model (CCLM) and a normal intra chroma prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra chroma prediction mode is used to perform an operation that is an intra chroma prediction mode other than the CCLM; a first bit of the three adjacent bits is used to indicate whether or not a first mode of the CCLM is adopted, and when the first bit indicates that the first mode of the CCLM is not adopted, a second bit is used to indicate whether or not a remaining mode other than the first mode of the CCLM is adopted, and when the second bit indicates that a remaining mode other than the first mode of the CCLM is adopted, a third bit is used to indicate that the image block adopts the second mode or the third mode of the CCLM; Alternatively, a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM, and when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; A video image processing device is provided that employs independent probability models to encode / decode the second bit and the third bit, respectively.

[0007] In a fourth aspect, embodiments of the present invention provide a method for manufacturing a semiconductor device comprising: a memory and a processor, the memory is used to store program instructions; The processor is used to call the program instructions, which when executed: binarizing a chroma prediction mode of an image block of an image to be coded / decoded to obtain a bit string including at least three adjacent bits; for the image to be coded / decoded, at least one of a cross-component linear model (CCLM) and a normal intra chroma prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra chroma prediction mode is used to perform an operation that is an intra chroma prediction mode other than the CCLM; a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM; when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM; and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; A video image processing device is provided that employs independent probability models to encode / decode the first bits and the second bits, respectively.

[0008] In a fifth aspect, an embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the video image processing method according to the first or second aspect.

[0009] In an embodiment of the present invention, a bit string including at least three adjacent bits is obtained by binarizing a saturation prediction mode of an image block of an image to be encoded / decoded, and at least two adjacent bits (e.g., the second bit and the third bit, or the first bit and the second bit) among the three adjacent bits are encoded / decoded using independent probability models, respectively, thereby realizing parallel encoding / decoding, reducing the complexity of encoding / decoding, and improving the efficiency of encoding / decoding.

[0010] In order to more clearly describe the embodiments of the present invention or the technical solutions in the prior art, the drawings that need to be used in the embodiments will be briefly described below. Of course, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work. [Brief explanation of the drawings]

[0011] [Figure 1a] 1 is a schematic diagram of a CCLM provided by an embodiment of the present invention. [Figure 1b] FIG. 2 is a schematic diagram of another CCLM provided by an embodiment of the present invention. [Figure 2] 2 is a flowchart of a video image processing method provided by an embodiment of the present invention. [Figure 3] 1 is a structural schematic diagram of a video image processing device provided by an embodiment of the present invention; [Figure 4] 1 is a schematic diagram of an arithmetic coding process provided by an embodiment of the present invention; DETAILED DESCRIPTION OF THE INVENTION

[0012] Hereinafter, the technical solutions in the embodiments of the present invention will be described clearly and fully with reference to the drawings in the embodiments of the present invention. Of course, the described embodiments are only some of the embodiments of the present invention, and are not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without any creative work are also within the scope of protection of the present invention.

[0013] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, some embodiments of the present invention will be described in detail with reference to the drawings. Where not inconsistent, the following examples and the features therein may be combined with each other.

[0014] The video image processing method provided by the embodiments of the present invention can be applied to a video image processing device, and the video processing device can be installed in a smart terminal (such as a mobile phone or a tablet computer). In some embodiments, the embodiments of the present invention can be applied to an aircraft (such as a drone), and in other embodiments, the embodiments of the present invention can be applied to other mobile platforms (such as an unmanned ship, an unmanned car, or a robot), but the embodiments of the present invention are not specifically limited.

[0015] The video image processing method provided by the embodiments of the present invention is mainly applied to encoders / decoders conforming to the international video coding standard H.264, video compression standard (High Efficiency Video Coding, HEVC), VVC, and Chinese video coding / decoding standard (Audio Video coding Standard, AVS), AVS+, AVS2, AVS3, etc. Before describing the embodiments of the present invention, the saturation prediction technology in the video coding standards will be first described.

[0016] The input for video coding is a video sequence in YUV format, where Y is the luma component and U, V are the chroma components. The next-generation video coding standard, VVC, introduces CCLM mode, which improves the accuracy of chroma component prediction.

[0017] 1a and 1b, CCLM will be described by way of example. FIG. 1a is a schematic diagram of CCLM provided by an embodiment of the present invention, and FIG. 1b is a schematic diagram of another CCLM provided by an embodiment of the present invention. FIG. 1a shows a current chroma block, and FIG. 1b shows a chroma predicted block obtained based on the current chroma block in FIG. 1a. Since there is a relatively strong correlation between different components of a video sequence, the coding performance can be improved by utilizing the correlation between different components of a video sequence. Therefore, to reduce redundant information between components, in CCLM prediction mode, the chroma components are predicted based on the reconstructed luma components in the same block, using the following linear model:

[0018]

number

[0019] In the formula, pred c refers to the chroma prediction block, and rec' L refers to the downsampled luma component of the co-located luma-coded block, and the parameters α and β are derived by minimizing the regression error between adjacent reconstructed luma and chroma samples, as shown in Equations (1) and (2) below:

[0020]

number

[0021] where L(n) represents the reconstructed luma samples after the left adjacent column and the upper adjacent row are downsampled, and C(n) represents the reconstructed chroma samples of the left and upper adjacent chroma blocks of the current chroma block. α and β do not need to be transmitted and are calculated in the decoder in the same manner.

[0022] It should be noted that prediction is an important module in mainstream video coding frameworks. Intra-prediction uses reconstructed neighboring pixels to obtain a predicted block using different prediction modes. In addition to the traditional planar, DC, and 65-degree angle modes for luma and chroma prediction, a new CCLM mode has been introduced for chroma prediction. A frame of image is first divided into coding tree units (CTUs) of the same size, e.g., 64x64 or 128x128. Each CTU can be further divided into square or rectangular coding units (CUs). In intra-coded frames (I-frames), the luma and chroma components can have different partitioning methods. In bidirectionally predictively coded frames (B-frames) and forward-predictively coded frames (P-frames), the luma and chroma components have the same partitioning method. The chroma prediction mode number of an image block is transmitted in the bitstream.

[0023] Currently, the intra prediction techniques in mainstream video coding standards mainly include Planar mode, DC mode, and 65 angle modes, and also include CCLM mode as a chroma prediction mode. The CCLM mode can include multiple modes, for example, at least one of three prediction modes: LT_CCLM, T_CCLM, and L_CCLM. The chroma prediction mode number is transmitted in the codestream. To reduce coding complexity, in one example, there are five or eight chroma prediction modes depending on whether CCLM mode is enabled.

[0024] When CCLM mode is off, there are five saturation prediction modes, and the correspondence between these five saturation prediction modes is as shown in Table 1 below. Table 1 shows the saturation prediction modes when CCLM is off. Here, for the luminance mode, number 0 is Planar mode, number 1 is DC mode, number 50 is angle Vertical mode, and number 18 is angle Horizon mode.

[0025] In some embodiments, for the number of the saturation prediction mode, the number of the saturation prediction mode corresponding to the luminance mode can be searched through Table 1 based on the luminance mode.

[0026] Using Table 1 as an example, an example of how to search for a luminance mode using Table 1 will be described. When the CCLM mode is off, if the luminance mode is Planar mode number 0, the saturation prediction mode number is 1. According to Table 1, it can be determined that the luminance mode corresponding to luminance mode number 0 and saturation prediction mode number 1 is Vertical mode with angle number 50 in the third row and second column. Also, for example, when the CCLM mode is off, if the luminance mode is Horizon mode with angle number 18, the saturation prediction mode number is 3. According to Table 1, it can be determined that the luminance mode corresponding to luminance mode number 18 and saturation prediction mode number 3 is DC mode with angle number 1 in the fifth row and third column.

[0027] [Table 1]

[0028] To facilitate encoding / decoding of the bits in the bit string, the bit string is obtained by binarizing the saturation prediction mode of the image block, where the bits can represent encoding / decoding bits (bit) or encoding / decoding binary codes (bin).

[0029] When CCLM is off, the method for binarizing the saturation prediction modes shown in Table 1 is as shown in Table 2 below, where mode 4 is the saturation DM mode.

[0030] [Table 2]

[0031] When the CCLM mode is off, after the saturation prediction mode is binarized, the bit at the first position in the bit string is coded using the context of 0, and the bits at the second and third positions in the bit string are both coded using the equal probability bypass mode. In this case, there is no dependency on coding bits at different positions in the saturation prediction mode number.

[0032] Here, the context (also referred to as a context model or a context probability model) refers to a model that updates the occurrence probability status of different bins based on recently coded / decoded bins in the process of context-based adaptive binary arithmetic coding / decoding.

[0033] When CCLM mode is on, there are eight saturation prediction modes. In one example, the eight saturation prediction modes correspond to the following Table 3. Here, saturation prediction modes 4, 5, and 6 correspond to LT_CCLM, L_CCLM, and T_CCLM modes, respectively, 7 corresponds to DM mode, and 0, 1, 2, and 3 correspond to other modes or normal intra saturation prediction modes.

[0034] [Table 3]

[0035] Using Table 3 as an example, an example of how to search for a luminance mode using Table 3 will be described. When CCLM mode is on, if the luminance mode is Planar mode number 0, the chroma prediction mode number is L_CCLM mode number 5. According to Table 3, it can be determined that the luminance mode corresponding to luminance mode number 0, chroma prediction mode number 5, is mode number 82 in the seventh row, second column. Also, for example, when CCLM mode is on, if the luminance mode is angle Horizon mode number 18, the chroma prediction mode number is DM mode number 7. Therefore, according to Table 3, it can be determined that the luminance mode corresponding to luminance mode number 18, chroma prediction mode number 8, is angle Horizon mode number 18 in the ninth row, fourth column.

[0036] When CCLM is on, the method for binarizing the saturation prediction modes shown in Table 3 is as shown in Table 4 below.

[0037] [Table 4]

[0038] When transmitted in the codestream, the chroma prediction mode number has a different range depending on whether CCLM mode is on or not, and the binarized bitstream is encoded and then transmitted in the codestream.

[0039] As shown in Table 4, the bit at the first position in the bit sequence is used to indicate whether the DM mode or another mode is used, and the modes other than the DM mode include, but are not limited to, the CCLM mode or the normal intra chroma prediction mode. For example, if the binarized bit sequence of chroma prediction mode number 7 is 0 and the bit at the first position is 0, it is determined that the DM mode is used. For example, if the binarized bit sequence of chroma prediction mode number 4 is 10 and the bit at the first position is 1, it is determined that a mode other than the DM mode is used.

[0040] The bit in the second position is used to indicate whether or not to use the LT_CCLM mode. For example, if the binarized bit string of chroma prediction mode number 4 is 10 and the bit in the second position is 0, it is determined that the LT_CCLM mode is adopted.

[0041] The bit in the third position is used to indicate that a mode other than the LT_CCLM mode is to be adopted when the bit in the second position indicates that the LT_CCLM mode is not to be adopted. For example, the bit in the third position of the binarized bit strings of saturation prediction mode numbers 5, 6, 0, 1, 2, and 3 is used to indicate that a mode other than the LT_CCLM mode is to be adopted. The bit in the fourth position is used to indicate that the L_CCLM mode or the T_CCLM mode is to be adopted when the bit in the third position is 1. If the binarized bit string of saturation prediction mode number 5 is 1110 and the bit in the fourth position is 0, it can be determined that the L_CCLM mode is to be adopted. If the binarized bit string of saturation prediction mode number 6 is 1111 and the bit in the fourth position is 1, it can be determined that the T_CCLM mode is to be adopted.

[0042] When the bit in the third position is 0, the bit in the fourth position and the bit in the fifth position are used to indicate the number of the saturation prediction mode to be adopted. For example, the binarized bit string for saturation prediction mode number 0 is 11000, the binarized bit string for saturation prediction mode number 1 is 11001, the binarized bit string for saturation prediction mode number 2 is 11010, and the binarized bit string for saturation prediction mode number 3 is 11011.

[0043] In some embodiments, the bit string may be a bit string of one bit. Taking Table 4 as an example, if the binarized bit string corresponding to saturation prediction mode number 7 is 0, it can be determined that saturation prediction mode number 7 adopts DM mode.

[0044] In some embodiments, the bit string may include two adjacent bits. Taking Table 4 as an example, if the bit string obtained by binarizing chroma prediction mode number 4 of an image block of an image to be encoded / decoded by a video image processing device is 10, if the bit in the first position is 1, it can be determined that the chroma prediction mode of the image block does not use DM mode, i.e., a mode other than DM mode is used, and it is possible that CCLM mode or normal intra chroma prediction mode is used. If the bit in the second position is 0, it can be determined that the chroma prediction mode of the image block uses LT_CCLM mode among CCLM modes.

[0045] When CCLM mode is enabled, the number of chroma prediction modes increases from five to eight. The first, second, and third bits in the bitstream are coded using contexts 0, 1, and 2, respectively. When coding the fourth bit, the coding method must be determined based on the value of the third bit. When the third bit is 0, the fifth bit is coded using the fourth bit (bypass). When the third bit is 1, the fourth bit is coded using context 2. The fourth bit cannot be further decoded without determining the value of the third bit during the decoding process.

[0046] In some embodiments, the chroma prediction mode number encoding process is as shown in Table 5 below:

[0047] [Table 5]

[0048] Here, na is used to indicate the empty coding model, and bypass is used to indicate the bypass coding mode in the corresponding subsequent sentence.

[0049] As shown in Table 5 above, the bits Idx include 0, 1, 2, 3, and 4, where 0 is used to indicate the bit in the first position, 2 is used to indicate the bit in the second position, i.e., the first bit, 2 is used to indicate the bit in the third position, i.e., the second bit, 3 is used to indicate the bit in the fourth position, i.e., the third bit, and 4 is used to indicate the bit in the fourth position, i.e., the third bit.

[0050] According to the detailed implementation technique of the coding chroma prediction mode number shown in Table 5, when CCLM mode is enabled, the analysis process of the bit in the fourth position must depend on the value of the bit in the third position. If the value of the bit in the third position is equal to 0, the bit in the fourth position is coded using bypass coding; if the value of the bit in the third position is equal to 1, the coding method of the bit in the fourth position uses context-based binary arithmetic coding. Therefore, since the value of the bit in the fourth position depends on the value of the bit in the third position, it can be determined that a coupling exists between the bit in the fourth position and the bit in the third position. This implementation is relatively cumbersome and has relatively low coding / decoding efficiency.

[0051] Therefore, an embodiment of the present invention proposes to binarize the saturation prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, and for the image to be encoded / decoded, it is allowed to use at least one of a cross-component linear model (CCLM) and a normal intra saturation prediction mode, wherein the CCLM includes at least a first mode, a second mode, and a third mode, and the normal intra saturation prediction mode is an intra saturation prediction mode other than the CCLM.

[0052] In some embodiments, a first bit of the three adjacent bits is used to indicate whether a first mode of the CCLM is adopted, a second bit is used to indicate whether a remaining mode other than the first mode of the CCLM is adopted when the first bit indicates that the first mode of the CCLM is not adopted, and a third bit is used to indicate whether the image block is to adopt a second mode or a third mode of the CCLM when the second bit indicates that a remaining mode other than the first mode of the CCLM is adopted. The second bit and the third bit are coded / decoded using independent probability models. Furthermore, the three adjacent bits are coded / decoded using independent probability models.

[0053] In one embodiment, a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM, and when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted. Independent probability models are employed to encode / decode the first bit and the second bit, respectively. Furthermore, independent probability models are employed to encode / decode the three adjacent bits, respectively.

[0054] Here, employing independent probability models for encoding and decoding can refer to a probability model employed when encoding and decoding a single bit, which is not affected by the values ​​taken by other bits (e.g., adjacent bits), i.e., it does not change as the values ​​taken by other bits change.

[0055] Here, the three adjacent bits may be located in the same syntax element (for example, all located in the intra chroma prediction mode).

[0056] By implementing the present invention, it is possible to effectively reduce the complexity of hardware analysis while maintaining multiple saturation prediction modes to improve performance. The improved method for saturation mode encoding / decoding provided in the present invention can increase the parallelism of hardware analysis without significant loss of coding performance, and eliminate the dependency of encoding / decoding of bits at different positions, thereby simplifying the complexity of encoding / decoding of individual bits and improving the efficiency of encoding / decoding.

[0057] A video image processing method provided by an embodiment of the present invention will be briefly described below with reference to the accompanying drawings.

[0058] Specifically, referring to Fig. 2, Fig. 2 is a flowchart of a video image processing method provided by an embodiment of the present invention. The method can be applied to a video image processing device. Here, the description of the video image processing device has been given above, and unnecessary description will not be repeated here. Specifically, the method of the embodiment of the present invention includes the following steps:

[0059] S201: Binarizing a saturation prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, and for the image to be encoded / decoded, at least one of a cross-component linear model (CCLM) and a normal intra saturation prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra saturation prediction mode is an intra saturation prediction mode other than the CCLM.

[0060] In an embodiment of the present invention, a video image processing device can binarize a saturation prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, and for the image to be encoded / decoded, at least one of a cross-component linear model CCLM and a normal intra saturation prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra saturation prediction mode is an intra saturation prediction mode other than the CCLM.

[0061] In some embodiments, the first bit of the three adjacent bits is used to indicate whether or not to adopt a first mode of the CCLM, and when the first bit indicates that the first mode of the CCLM is not adopted, the second bit is used to indicate whether or not to adopt a remaining mode other than the first mode of the CCLM, and when the second bit indicates that the remaining mode other than the first mode of the CCLM is adopted, the third bit is used to indicate that the image block adopts the second mode or the third mode of the CCLM.

[0062] In some embodiments, the first bit is the bit at the second position in the bit string, the second bit is the bit at the third position in the bit string, and the third bit is the bit at the fourth position in the bit string. Taking the binarized bit string 1110 of saturation prediction mode number 5 in Table 4 as an example, three adjacent bits will be described. The first bit in the bit string 1110 is a 1 at the second position, the second bit is a 1 at the third position, and the third bit is a 0 at the fourth position.

[0063] In one embodiment, the third bit is further used to indicate that one of the normal intra chroma prediction modes is to be adopted when the second bit indicates that the remaining modes other than the first mode of the CCLM are not to be adopted. In some embodiments, the normal intra chroma prediction modes include any one or more of a planar mode, a DC mode, and 65 angle modes.

[0064] In some embodiments, the first mode includes LT_CCLM mode, the second mode includes L_CCLM mode, and the third mode includes T_CCLM mode. In some embodiments, the CCLM mode is a chroma prediction mode for intra prediction. An example will be described using Table 4 as an example. A binarized bit sequence 10 of chroma prediction mode number 4 corresponds to the first mode, i.e., LT_CCLM mode, a binarized bit sequence 1110 of chroma prediction mode number 5 corresponds to the second mode, i.e., L_CCLM mode, and a binarized bit sequence 1111 of chroma prediction mode number 6 corresponds to the third mode, i.e., T_CCLM mode.

[0065] In some embodiments, the first mode, the second mode, and the third mode may be modes other than the LT_CCLM mode, the L_CCLM mode, and the T_CCLM mode.

[0066] In some embodiments, the image blocks in the image to be encoded / decoded exhibit at least one of a square and a rectangle shape.

[0067] In some embodiments, the bits in the bit string can be represented in the form of "bin" in arithmetic encoding / decoding, and of course, in other embodiments, the bits can be represented in other forms, which are not specifically limited here.

[0068] In some embodiments, the image to be encoded / decoded is an image to be encoded / decoded with CCLM turned on. In some embodiments, the image to be encoded / decoded includes at least one image block with CCLM turned on.

[0069] In some embodiments, whether the CCLM is on can be determined by a marker added during encoding. In some embodiments, when encoding the image to be encoded, a marker can be added to a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a sequence header, a slice header, or a picture header, and the marker is used to indicate whether the image or image block to be encoded is allowed to use CCLM. Different values ​​of the marker represent different situations. For example, a second value (e.g., 1) of the marker indicates that CCLM is allowed to be used, and a first value (e.g., 0) of the marker indicates that CCLM is not allowed. In some embodiments, when decoding the image to be decoded, it can be determined based on the decoded marker whether the image or image block to be decoded is allowed to use CCLM, and the decoded marker can be present in a VPS, SPS, PPS, sequence header, slice header, or picture header. For example, if the decoded marker is present in the VPS and the marker is a second value (e.g., 1), it indicates that the use of CCLM is permitted, and if the marker is a first value (e.g., 0), it indicates that CCLM is not permitted.

[0070] In some embodiments, "CCLM is allowed to be used" and "CCLM is on" have the same meaning, that is, if it is determined that the CCLM is on, it can be determined that the CCLM is allowed to be used for the image to be encoded / decoded.

[0071] In some embodiments, the image to be encoded / decoded includes at least one image block in which CCLM is in an on state and at least one image block in which CCLM is in an off state, and for all image blocks in the image to be encoded / decoded, the second bit and the third bit of the image block are encoded / decoded using probability models that are independent of each other.

[0072] In some embodiments, when the first bit is used to indicate a first mode of the CCLM and the second bit is a first value, the second bit is used to indicate that a normal intra chroma prediction mode is employed. In some embodiments, the first value is 0.

[0073] In one embodiment, the first bit is used to indicate the first mode, and if the second bit satisfies a second value, the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted.

[0074] In one embodiment, the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted, and if the third bit satisfies the first value, the third bit is used to indicate that the second mode of the CCLM is adopted.

[0075] In one embodiment, the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted, and if the third bit satisfies a second value, the third bit is used to indicate that the third mode of the CCLM is adopted. In some embodiments, the second value is 1.

[0076] Taking Table 4 as an example, if the first value is 0, the second value is 1, and the bit string obtained by the video image processing device binarizing the chroma prediction mode of an image block of an image to be encoded / decoded is 1110, when the bit at the first position is 1, it can be determined that the chroma prediction mode of the image block is CCLM mode or normal intra chroma prediction mode, when the bit at the second position is 1, it can be determined that the chroma prediction mode of the image block does not use the LT_CCLM mode among CCLM modes, when the bit at the third position is 1, it can be determined that the chroma prediction mode of the image block is L_CCLM mode or T_CCLM mode, and when the bit at the fourth position is 0, it can be determined that the chroma prediction mode of the image block is L_CCLM mode.

[0077] For example, when a bit string obtained by binarizing the chroma prediction mode of an image block of an image to be encoded / decoded by a video image processing device is 1111, if the bit at the first position is 1, it can be determined that the chroma prediction mode of the image block is CCLM mode or normal intra chroma prediction mode, if the bit at the second position is 1, it can be determined that the chroma prediction mode of the image block does not use the LT_CCLM mode among CCLM modes, if the bit at the third position is 1, it can be determined that the chroma prediction mode of the image block is L_CCLM mode or T_CCLM mode, and if the bit at the fourth position is 1, it can be determined that the chroma prediction mode of the image block is T_CCLM mode.

[0078] In one embodiment, when the second bit is used to indicate the adoption of a normal intra chroma prediction mode, the next two bits adjacent to the second bit are used to indicate the numbering of the normal intra chroma prediction mode. In some embodiments, if the bit string includes four adjacent bits, it can be determined that the image block uses the normal intra chroma prediction mode.

[0079] For example, when a video image processing device binarizes the saturation prediction mode of an image block of an image to be encoded / decoded, the bit string obtained is 11000, and if the bit at the first position is 1, it can determine that the saturation prediction mode of the image block is CCLM mode or normal intra saturation prediction mode; if the bit at the second position is 1, it can determine that the saturation prediction mode of the image block does not use the LT_CCLM mode in CCLM mode; if the bit at the third position is 0, it can determine that the saturation prediction mode of the image block is the normal intra saturation prediction mode; and if the bit at the fourth position and the bit at the fifth position are 00, it can determine that the normal intra saturation prediction mode number is 0.

[0080] For example, if a video image processing device binarizes the saturation prediction mode of an image block of an image to be encoded / decoded and the bit string obtained is 11001, and the bit in the first position is 1, it can determine that the saturation prediction mode of the image block is CCLM mode or normal intra saturation prediction mode; if the bit in the second position is 1, it can determine that the saturation prediction mode of the image block does not use LT_CCLM mode in CCLM mode; if the bit in the third position is 0, it can determine that the saturation prediction mode of the image block is normal intra saturation prediction mode; and if the bit in the fourth position and the bit in the fifth position are 01, it can determine that the normal intra saturation prediction mode number is 1.

[0081] Similarly, when a video image processing device binarizes the chroma prediction mode of an image block of an image to be encoded / decoded and the bit string obtained is 11010, if the bit at the first position is 1, it can determine that the chroma prediction mode of the image block is CCLM mode or normal intra chroma prediction mode; if the bit at the second position is 1, it can determine that the chroma prediction mode of the image block does not use the LT_CCLM mode in CCLM mode; if the bit at the third position is 0, it can determine that the chroma prediction mode of the image block is the normal intra chroma prediction mode; and if the bit at the fourth position and the bit at the fifth position are 10, it can determine that the normal intra chroma prediction mode number is 2.

[0082] Similarly, when a video image processing device binarizes the chroma prediction mode of an image block of an image to be encoded / decoded and the bit string obtained is 11011, if the bit at the first position is 1, it can determine that the chroma prediction mode of the image block is CCLM mode or normal intra chroma prediction mode; if the bit at the second position is 1, it can determine that the chroma prediction mode of the image block does not use the LT_CCLM mode in CCLM mode; if the bit at the third position is 0, it can determine that the chroma prediction mode of the image block is the normal intra chroma prediction mode; and if the bit at the fourth position and the bit at the fifth position are 11, it can determine that the normal intra chroma prediction mode number is 3.

[0083] S202: The second bit and the third bit are coded / decoded using independent probability models, respectively.

[0084] In an embodiment of the present invention, the video image processing device can encode / decode the second bit and the third bit using independent probability models. For example, if the second bit can take any value, the third bit is encoded using the same probability model and is not affected by the value taken by the second bit.

[0085] Optionally, the second and third bits are encoded / decoded using the same context probability model (which may also be referred to as context).

[0086] Alternatively, optionally, different context probability models may be employed for encoding / decoding the second bit and the third bit. This can increase the degree of parallelism in encoding / decoding the second bit and the third bit. Alternatively, the bypass probability model may be employed for both the second bit and the third bit, or one of the second bit and the third bit may be employed for encoding / decoding using the bypass probability model and the other may be employed for encoding / decoding using the context probability model. This can also increase the degree of parallelism in encoding / decoding the second bit and the third bit.

[0087] In some embodiments, the independent probability models refer to a mode in which coding is performed using independent contexts, i.e., a normal coding mode. Specifically, the bypass coding mode and the normal coding mode will be described with reference to FIG. 4. FIG. 4 is a schematic diagram of an arithmetic coding process provided by an embodiment of the present invention. As shown in FIG. 4, an input non-binary syntax element is first subjected to a binarization process, and the binary bit string generated through the binarization process then enters the encoding stage. At this time, if the normal coding mode is selected, the bit string undergoes context modeling. After the context model is determined, the bit string and its corresponding context model are sent to a normal coding module for coding. Then, the coding result is output, and the context model is updated based on the coding result.

[0088] In one embodiment, when the video image processing device employs independent probability models to encode / decode the second bit and the third bit, respectively, it can add a new context to the third bit of the image block, and employ a bypass mode to encode / decode the bit next to the third bit.

[0089] In some embodiments, the bypass mode is the bypass coding mode described below. Specifically, the bypass coding mode will be described with reference to FIG. 4. As shown in FIG. 4, a binarization process is first performed on an input non-binary syntax element, and the binary bit string generated through the binarization process is then subjected to the encoding stage. When the bypass coding mode is selected, 0s and 1s in the binarized bit string are considered to have an equal probability distribution and are sent to a bypass coding module for encoding, after which the encoded result is output. This mode can reduce implementation complexity and accelerate the encoding and decoding processes.

[0090] For example, the video image processing device can encode / decode the third bit of the image block by adding context number 1, and optionally adopt a bypass mode to encode / decode the bit next to the third bit.

[0091] From this, it can be seen that such an embodiment can ensure that the encoding / decoding methods of the third bit and the adjacent bit one bit later are independent of each other, eliminate the encoding / decoding dependency between bits in different positions, simplify the encoding / decoding complexity of individual bits, and improve the efficiency of encoding / decoding.

[0092] In one embodiment, the video image processing device can employ independent probability models to encode / decode the second bit and the third bit, respectively, by adding one new context to the third bit of the image block and then adding one new context to the bit immediately adjacent to the third bit.

[0093] For example, the video image processing device can encode / decode the third bit of the image block by adding a context number 2, and then encode / decode the bit immediately adjacent to the third bit by adding a context number 0.

[0094] From this, it can be seen that such an embodiment can ensure that the encoding / decoding methods of the third bit and the adjacent bit one bit later are independent of each other, eliminate the encoding / decoding dependency between bits in different positions, simplify the encoding / decoding complexity of individual bits, and improve the efficiency of encoding / decoding.

[0095] In one embodiment, when the video image processing device employs independent probability models to encode / decode the second bit and the third bit, respectively, it employs a bypass mode for the third bit of the image block, and optionally adds a new context to the bit immediately adjacent to the third bit to perform encoding / decoding.

[0096] For example, the video image processing device can employ a bypass mode to encode / decode the third bit of the image block, and then add a zero-numbered context to the bit immediately adjacent to the third bit and encode / decode it.

[0097] From this, it can be seen that such an embodiment can ensure that the encoding / decoding methods of the third bit and the adjacent bit one bit later are independent of each other, eliminate the encoding / decoding dependency between bits in different positions, simplify the encoding / decoding complexity of individual bits, and improve the efficiency of encoding / decoding.

[0098] In one embodiment, when the video image processing device employs independent probability models to encode / decode the second bit and the third bit, respectively, the video image processing device employs the same context as the second bit to encode / decode the third bit of the image block.

[0099] From this, it can be seen that such an embodiment can ensure that the encoding / decoding methods of the third bit and the second bit are independent of each other, eliminate the encoding / decoding dependency between the third bit and the second bit, simplify the complexity of individual bit encoding / decoding, and improve the efficiency of encoding / decoding.

[0100] For example, if the video image processing device employs context number 1 to encode / decode the second bit, it can employ the same context number 1 as the second bit to encode / decode the third bit of the image block.

[0101] From this, it can be seen that such an embodiment can ensure that the encoding / decoding methods of the third bit and the second bit are independent of each other, eliminate the encoding / decoding dependency between the third bit and the second bit, simplify the complexity of individual bit encoding / decoding, and improve the efficiency of encoding / decoding.

[0102] In an embodiment of the present invention, the video image processing device can binarize the saturation prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, and adopt independent probability models to encode / decode the second bit and the third bit in the bit string respectively, and such an embodiment can realize parallel encoding / decoding, reduce the complexity of encoding / decoding, and improve the efficiency of encoding / decoding.

[0103] When CCLM mode is on, there are eight saturation prediction modes. In one example, the eight saturation prediction modes correspond to the following Table 6. Here, optionally, saturation prediction modes 4, 5, and 6 can correspond to LT_CCLM, L_CCLM, and T_CCLM modes, respectively, saturation prediction mode 7 can be DM mode, and saturation prediction modes 0, 1, 2, and 3 can be other modes or normal intra saturation prediction modes.

[0104] [Table 6]

[0105] Taking Table 6 as an example, an example of how to search for a luma mode using Table 6 will be described. When the CCLM mode is on, if the luma mode number is 0 and the chroma prediction mode number is 5, it can be determined based on Table 6 that the chroma prediction mode should be mode 82 among the prediction modes. It should be understood that the prediction mode number is not limited to the examples shown in Table 3 or Table 6 above.

[0106] In some embodiments, when the first bit indicates that the CCLM is to be adopted, the second bit is used to indicate whether or not to adopt the first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not to be adopted, the third bit is used to indicate that the second mode or the third mode of the CCLM is to be adopted. Taking Table 7 below as a specific example, when CCLM is on, a method for binarizing a saturation prediction mode number (e.g., the saturation prediction mode number shown in Table 6) is as shown in Table 7 below.

[0107] [Table 7]

[0108] As shown in Table 7, when the first bit indicates that the CCLM is to be adopted, the second bit is used to indicate whether or not the first mode of the CCLM is to be adopted, and when the second bit indicates that the first mode of the CCLM is not to be adopted, the third bit is used to indicate whether or not the second mode or the third mode of the CCLM is to be adopted.

[0109] When the first bit indicates that the CCLM is not to be adopted, the second bit is used to indicate whether or not to adopt the first mode in the normal intra chroma prediction mode; when the second bit indicates that the first mode in the normal intra chroma prediction mode is not to be adopted, the third bit is used to indicate whether or not to adopt the second mode or the third mode in the normal intra chroma prediction mode; when the third bit is used to indicate that the second mode or the third mode in the normal intra chroma prediction mode is to be adopted, the fourth bit is used to indicate that the second mode or the third mode in the normal intra chroma prediction mode is to be specifically adopted; and when the third bit is used to indicate that the second mode or the third mode in the normal intra chroma prediction mode is not to be adopted, the fourth bit is used to indicate that the fourth mode or the fifth mode in the normal intra chroma prediction mode is to be adopted.

[0110] In some embodiments, the probability model adopted in encoding / decoding for the chroma prediction mode numbers in Table 7 may be as shown in Table 8 below:

[0111] [Table 8]

[0112] Here, na is used to indicate the empty coding model, and bypass is used to indicate the bypass coding mode.

[0113] As shown in Table 8 above, the bit Idx includes 0 to 3 and is used to indicate four bits, respectively. Here, the first bit mentioned above may be the bit at the first position in the bit string (i.e., bit numbered 0), the second bit may be the bit at the second position in the bit string (i.e., bit numbered 1), and the third bit may be the bit at the third position in the bit string (i.e., bit numbered 2). From the details of the implementation technique of the coding saturation prediction mode number shown in Table 8 above, it can be seen that when the CCLM mode is on, the analysis processes of the first bit and the second bit are independent of each other; for example, the probability model adopted for the second bit does not change depending on the value taken by the first bit. Furthermore, the analysis processes of the second bit and the third bit are independent of each other; for example, the probability model adopted for the third bit does not change depending on the value taken by the second bit.

[0114] Optionally, the first bit and the second bit are encoded / decoded using the same context probability model (which may also be referred to as context).

[0115] Alternatively, optionally, different context probability models may be employed for encoding / decoding the first bit and the second bit. This can increase the degree of parallelism in encoding / decoding the first bit and the second bit. Alternatively, the bypass probability model may be employed for both encoding / decoding the first bit and the second bit, or one of the first bit and the second bit may be employed for encoding / decoding using the bypass probability model and the other may be employed for encoding / decoding using the context probability model. This can also increase the degree of parallelism in encoding / decoding the first bit and the second bit.

[0116] In some examples, when the CCLM mode is on or off, different forms are used to search for specific prediction modes corresponding to saturation prediction mode numbers. For example, when CCLM is off, Table 1 is used to search for prediction modes corresponding to saturation prediction mode numbers, and when CCLM is on, Table 3 is used to search for prediction modes corresponding to saturation prediction mode numbers.

[0117] In some examples, the same format may be used to search for a specific prediction mode corresponding to a saturation prediction mode number when CCLM mode is on and off. For example, Table 6 may be used to search for a prediction mode corresponding to a saturation prediction mode number when CCLM mode is on and off. In this way, when binarizing the saturation prediction mode number to obtain a bit string, the bit string obtained by binarizing the saturation prediction mode number when CCLM mode is on and off may be as shown in Table 7. When CCLM mode is off, before entropy encoding the binarized result, the first bit of the binarized result (the first bit of the bit string corresponding to numbers 0 to 4 in Table 7, i.e., "0") is deleted, and then entropy encoding is performed. In other words, when CCLM mode is off, the binarized result corresponding to the saturation prediction mode number remains as shown in Table 2.

[0118] Referring to FIG. 3, FIG. 3 is a structural schematic diagram of a video image processing device provided by an embodiment of the present invention, specifically, the video image processing device includes: a memory 301, a processor 302, and a data port 303.

[0119] The memory 301 may include volatile memory, non-volatile memory, or a combination of the above types of memory. The processor 302 may be a central processing unit (CPU). The processor 302 may further include a hardware video image processing device. The hardware video image processing device may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. Specifically, for example, the hardware video image processing device may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.

[0120] Furthermore, the memory 301 can be used to store program instructions, and when the program instructions are executed, the processor 302 can be used to call the program instructions stored in the memory 301 and perform the following steps: binarizing a saturation prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, and for the image to be encoded / decoded, at least one of a cross-component linear model (CCLM) and a normal intra saturation prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra saturation prediction mode is an intra saturation prediction mode other than the CCLM; a first bit of the three adjacent bits is used to indicate whether or not a first mode of the CCLM is adopted, and when the first bit indicates that the first mode of the CCLM is not adopted, a second bit is used to indicate whether or not a remaining mode other than the first mode of the CCLM is adopted, and when the second bit indicates that a remaining mode other than the first mode of the CCLM is adopted, a third bit is used to indicate that the image block adopts the second mode or the third mode of the CCLM; Alternatively, a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM, and when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; The second bit and the third bit are coded / decoded using independent probability models, respectively.

[0121] Furthermore, independent probability models are employed to encode / decode the three adjacent bits, respectively.

[0122] Furthermore, the third bit is further used to indicate that one of the normal intra chroma prediction modes is to be adopted when the second bit indicates that the remaining modes other than the first mode of the CCLM are not to be adopted.

[0123] Furthermore, the image to be encoded / decoded includes at least one image block in which CCLM is in an ON state.

[0124] Furthermore, the image to be encoded / decoded includes at least one image block in which CCLM is in an ON state and at least one image block in which CCLM is in an OFF state; For all image blocks in the image to be coded / decoded, the second bit and the third bit of the image block are coded / decoded using probability models that are independent of each other.

[0125] Furthermore, if the value of the first bit satisfies a first value, the first bit is used to indicate that a first mode of the CCLM is adopted.

[0126] Furthermore, when the first bit is used to indicate a first mode of the CCLM and the second bit satisfies a first value, the second bit is used to indicate that a normal intra chroma prediction mode is adopted.

[0127] Furthermore, the first value is zero.

[0128] Furthermore, when the first bit is used to indicate the first mode and the second bit satisfies a second value, the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted.

[0129] Furthermore, if the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted, and the third bit satisfies the first value, the third bit is used to indicate that the second mode of the CCLM is adopted.

[0130] Furthermore, when the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted, and the third bit satisfies the second value, the third bit is used to indicate that the third mode of the CCLM is adopted.

[0131] 11. The method of claim 10, further comprising: the second value being one.

[0132] Furthermore, when the second bit is used to indicate the adoption of a normal intra chroma prediction mode, the next two bits adjacent to the second bit are used to indicate the numbering of the normal intra chroma prediction mode.

[0133] Furthermore, when the processor 302 employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically: The third bit of the image block is used to perform encoding / decoding using bypass mode.

[0134] Furthermore, when the processor 302 employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically: A new context is added to the third bit of the image block, and the bit next to the third bit is used to encode / decode using bypass mode.

[0135] Furthermore, when the processor 302 employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically: It is used to add one new context to the third bit of the image block, and then add one new context to the bit immediately following the third bit to perform encoding / decoding.

[0136] Furthermore, when the processor 302 employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically: This is used to adopt bypass mode for the third bit of the image block, and add one new context to the bit immediately following the third bit for encoding / decoding.

[0137] Furthermore, when the processor 302 employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically: The third bit of the image block is used for encoding / decoding using the same context as the second bit.

[0138] Furthermore, the first mode includes an LT_CCLM mode, the second mode includes an L_CCLM mode; The third mode includes a T_CCLM mode.

[0139] Furthermore, the CCLM mode is a chroma prediction mode for intra prediction.

[0140] Furthermore, the image blocks in the image to be encoded / decoded have at least one of a square shape and a rectangle shape.

[0141] Furthermore, the first bit is a bit at a second position in the bit string, the second bit is a bit at a third position in the bit string; The third bit is the bit in the fourth position in the bit string.

[0142] Furthermore, the normal intra chroma prediction mode includes one or more of a planar mode, a DC mode, and 65 angle modes.

[0143] In some examples, a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM, and when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted.

[0144] Optionally, independent probability models are employed to encode / decode the first bits and the second bits, respectively.

[0145] Optionally, when the first bit indicates that the CCLM is not adopted, the second bit is used to indicate whether or not one of the normal intra chroma prediction modes is adopted.

[0146] Optionally, when the first bit indicates that the CCLM is not to be adopted, the second bit is used to indicate whether or not a first mode in the normal intra chroma prediction mode is to be adopted, and when the second bit indicates that the first mode in the normal intra chroma prediction mode is not to be adopted, the third bit is used to indicate whether or not a second mode or a third mode in the normal intra chroma prediction mode is to be adopted.

[0147] Optionally, the bit string further includes a fourth bit, and when the third bit is used to indicate the adoption of the second mode or the third mode of the normal intra chroma prediction mode, the fourth bit is used to indicate the specific adoption of the second mode or the third mode of the normal intra chroma prediction mode, and when the third bit is used to indicate the non-adoption of the second mode or the third mode of the normal intra chroma prediction mode, the fourth bit is used to indicate the adoption of the fourth mode or the fifth mode of the normal intra chroma prediction mode.

[0148] Optionally, employing the independent probability models to encode / decode the first bits and the second bits, respectively, comprises employing different context probability models to encode / decode the first bits and the second bits, respectively.

[0149] Optionally, the method further comprises performing encoding / decoding in a bypass mode for the third bit of the image block.

[0150] Optionally, independent probability models are employed to encode / decode the three adjacent bits respectively.

[0151] In an embodiment of the present invention, the video image processing device can binarize the saturation prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, and adopt independent probability models to encode / decode the second bit and the third bit in the bit string respectively, and such an embodiment can realize parallel encoding / decoding, reduce the complexity of encoding / decoding, and improve the efficiency of encoding / decoding.

[0152] In an embodiment of the present invention, a computer-readable storage medium storing a computer program is further provided, which, when executed by a processor, realizes the scheme of the video image processing method described in FIG. 2 of the embodiment of the present invention, and can also realize the video image processing device of the embodiment described in FIG. 3 to which the present invention corresponds, but unnecessary description will not be repeated here.

[0153] The computer-readable storage medium may be an internal storage unit of the device described in any one of the above embodiments, such as a hard disk or internal memory of the device. The computer-readable storage medium may be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc., installed in the device. Furthermore, the computer-readable storage medium may also include an external storage device in addition to the internal storage unit of the device. The computer-readable storage medium is used to store the computer program and other programs and data required by the device. The computer-readable storage medium can also be used to temporarily store data that has already been output or that is to be output.

[0154] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be realized by instructing relevant hardware with a computer program, and the program can be stored in a computer-readable storage medium, which, when executed, can include processes such as those in the above method embodiments. Here, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0155] The above disclosure is merely a partial example of the present invention, and it is to be understood that the scope of the present invention cannot be limited by this. Therefore, any equivalent modifications made based on the claims of the present invention still fall within the scope of the present invention.

Claims

1. binarizing a chroma prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, wherein at least one of a cross-component linear model (CCLM) and a normal intra chroma prediction mode is allowed to be used for the image to be encoded / decoded, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra chroma prediction mode is an intra chroma prediction mode other than the CCLM; The first bit of the three adjacent bits is used to indicate whether or not to adopt a first mode of the CCLM, and when the first bit indicates that the first mode of the CCLM is not adopted, the second bit is used to indicate whether or not to adopt a remaining mode other than the first mode of the CCLM, and when the second bit indicates that the remaining mode other than the first mode of the CCLM is adopted, the third bit is used to indicate that the image block adopts the second mode or the third mode of the CCLM, or Alternatively, a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM, and when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; A video image processing method comprising: employing independent probability models to encode / decode the second bits and the third bits, respectively.

2. 2. The method of claim 1, wherein the third bit is further used to indicate that one of the normal intra chroma prediction modes is adopted when the second bit indicates that remaining modes other than the first mode of the CCLM are not adopted.

3. The method of claim 2 , wherein the image to be encoded / decoded includes at least one image block with CCLM in an ON state.

4. The image to be encoded / decoded includes at least one image block in which CCLM is in an ON state and at least one image block in which CCLM is in an OFF state; 2. The method according to claim 1, wherein, for all image blocks in the image to be encoded / decoded, the second bit and the third bit of the image block are encoded / decoded using probability models that are independent of each other.

5. 2. The method of claim 1, wherein if the value of the first bit satisfies a first value, the first bit is used to indicate that a first mode of the CCLM is adopted.

6. 6. The method of claim 5, wherein the first bit is used to indicate a first mode of the CCLM, and when the second bit satisfies a first value, the second bit is used to indicate that a normal intra chroma prediction mode is adopted.

7. The method of claim 6 , wherein the first value is zero.

8. 6. The method of claim 5, wherein the first bit is used to indicate the first mode, and if the second bit satisfies a second value, the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted.

9. 9. The method of claim 8, wherein the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted, and when the third bit satisfies a first value, the third bit is used to indicate that the second mode of the CCLM is adopted.

10. 9. The method of claim 8, wherein the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted, and when the third bit satisfies a second value, the third bit is used to indicate that the third mode of the CCLM is adopted.

11. 11. The method of claim 10, wherein the second value is one.

12. 7. The method of claim 6, wherein when the second bit is used to indicate the adoption of a normal intra-chroma prediction mode, the next two bits adjacent to the second bit are used to indicate the numbering of the normal intra-chroma prediction mode.

13. and encoding / decoding the second bit and the third bit by employing the independent probability models, respectively. The method of claim 1 , further comprising: performing encoding / decoding in a bypass mode for the third bit of the image block.

14. and encoding / decoding the second bit and the third bit by employing the independent probability models, respectively.

2. The method of claim 1, further comprising: adding a new context to the third bit of the image block; and performing encoding / decoding using a bypass mode for the bit immediately following the third bit.

15. and encoding / decoding the second bit and the third bit by employing the independent probability models, respectively.

2. The method of claim 1, further comprising: adding one new context to the third bit of the image block; and adding one new context to the bit immediately following the third bit, and encoding / decoding the resulting bit.

16. and encoding / decoding the second bit and the third bit by employing the independent probability models, respectively.

2. The method of claim 1, further comprising: adopting a bypass mode for the third bit of the image block; and adding a new context to the bit immediately following the third bit and encoding / decoding the bit.

17. and encoding / decoding the second bit and the third bit by employing the independent probability models, respectively. The third bit is encoded / decoded using the same context as the second bit, or employing different context probability models for encoding / decoding the second bit and the third bit; or The second bit and the third bit may be encoded / decoded using a bypass probability model, or 2. The method of claim 1, further comprising: encoding / decoding one of the second bit and the third bit using a bypass probability model, and encoding / decoding the other of the second bit and the third bit using a context probability model.

18. The method comprises: employing independent probability models to encode / decode the first bits and the second bits, respectively; or Alternatively, the method of claim 1 further comprises employing independent probability models to encode / decode the three adjacent bits, respectively.

19. the first mode includes an LT_CCLM mode; the second mode includes an L_CCLM mode; The method of claim 1 , wherein the third mode comprises a T_CCLM mode.

20. The method of claim 1 , wherein the CCLM mode is a chroma prediction mode for intra prediction.

21. 2. The method of claim 1, wherein the image blocks in the image to be encoded / decoded exhibit at least one of a square shape and a rectangle shape.

22. the first bit is the bit at the second position in the bit string, the second bit is the bit at the third position in the bit string, 2. The method of claim 1, wherein the third bit is the bit in the fourth position of the bit string.

23. The method of claim 1 , wherein the normal intra chroma prediction modes include one or more of a planar mode, a DC mode, and 65 angle modes.

24. binarizing a chroma prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least three adjacent bits, wherein at least one of a cross-component linear model (CCLM) and a normal intra chroma prediction mode is allowed to be used for the image to be encoded / decoded, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra chroma prediction mode is an intra chroma prediction mode other than the CCLM; A first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM, and when the first bit indicates that the CCLM is adopted, a second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not adopted, a third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; A video image processing method comprising: encoding / decoding the first bits and the second bits, respectively, employing independent probability models.

25. 25. The method of claim 24, wherein when the first bit indicates that the CCLM is not adopted, the second bit is used to indicate whether or not one of the normal intra chroma prediction modes is adopted.

26. 26. The method of claim 25, wherein when the first bit indicates that the CCLM is not adopted, the second bit is used to indicate whether a first mode in the normal intra chroma prediction mode is adopted, and when the second bit indicates that the first mode in the normal intra chroma prediction mode is not adopted, the third bit is used to indicate whether a second mode or a third mode in the normal intra chroma prediction mode is adopted.

27. the bit string further includes a fourth bit; 27. The method of claim 26, wherein when the third bit is used to indicate that the second mode or the third mode of the normal intra chroma prediction modes is adopted, the fourth bit is used to indicate that the second mode or the third mode of the normal intra chroma prediction modes is specifically adopted, and when the third bit is used to indicate that the second mode or the third mode of the normal intra chroma prediction modes is not adopted, the fourth bit is used to indicate that the fourth mode or the fifth mode of the normal intra chroma prediction modes is adopted.

28. The method of claim 24, wherein the image to be encoded / decoded includes at least one image block with CCLM in an ON state.

29. The image to be encoded / decoded includes at least one image block in which CCLM is in an ON state and at least one image block in which CCLM is in an OFF state; 25. The method according to claim 24, wherein for all image blocks in the image to be encoded / decoded, encoding / decoding is performed using probability models that are independent of each other for the first bit and the second bit of the image block.

30. and encoding / decoding the first bits and the second bits by employing the independent probability models, respectively. employing the same context probability model to encode / decode the first bit and the second bit, or employing different context probability models to encode / decode the first bits and the second bits, respectively; or or employing a bypass probability model to encode / decode the first bits and the second bits; or 25. The method of claim 24, comprising: encoding / decoding one of the first bits and the second bits using a bypass probability model, and encoding / decoding the other of the first bits using a context probability model.

31. The method comprises: The method of claim 24, further comprising: performing encoding / decoding using a bypass mode for the third bit of the image block.

32. The method comprises: employing independent probability models to encode / decode the second bit and the third bit, respectively; or 25. The method of claim 24, further comprising employing independent probability models to encode / decode each of the three adjacent bits.

33. the first mode includes an LT_CCLM mode; the second mode includes an L_CCLM mode; 25. The method of claim 24, wherein the third mode comprises a T_CCLM mode.

34. The method of claim 24 , wherein the CCLM mode is a chroma prediction mode for intra prediction.

35. 25. The method of claim 24, wherein the image blocks in the image to be encoded / decoded exhibit at least one of a square and a rectangle.

36. the first bit is the bit at the first position in the bit string, the second bit is the bit at the second position in the bit string, 25. The method of claim 24, wherein the third bit is the bit in the third position of the bit string.

37. The method of claim 24 , wherein the normal intra chroma prediction modes include any one or more of a planar mode, a DC mode, and 65 angle modes.

38. a memory and a processor, the memory is used to store program instructions; The processor is used to call the program instructions, which when executed: binarizing a chroma prediction mode of an image block of an image to be coded / decoded to obtain a bit string including at least three adjacent bits; for the image to be coded / decoded, at least one of a cross-component linear model (CCLM) and a normal intra chroma prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra chroma prediction mode is used to perform an operation that is an intra chroma prediction mode other than the CCLM; The first bit of the three adjacent bits is used to indicate whether or not to adopt a first mode of the CCLM, and when the first bit indicates that the first mode of the CCLM is not adopted, the second bit is used to indicate whether or not to adopt a remaining mode other than the first mode of the CCLM, and when the second bit indicates that the remaining mode other than the first mode of the CCLM is adopted, the third bit is used to indicate that the image block adopts the second mode or the third mode of the CCLM, or Alternatively, a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM, and when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; A video image processing apparatus employing independent probability models to encode / decode the second bits and the third bits, respectively.

39. 39. The device of claim 38, wherein the third bit is further used to indicate that one of the normal intra chroma prediction modes is adopted when the second bit indicates that remaining modes other than the first mode of the CCLM are not adopted.

40. 40. The apparatus of claim 39, wherein the image to be encoded / decoded includes at least one image block in which CCLM is in an ON state.

41. The image to be encoded / decoded includes at least one image block in which CCLM is in an ON state and at least one image block in which CCLM is in an OFF state; The device according to claim 38, wherein for all image blocks in the image to be encoded / decoded, the second bits and the third bits of the image blocks are encoded / decoded using probability models that are independent of each other.

42. 39. The apparatus of claim 38, wherein if the value of the first bit satisfies a first value, the first bit is used to indicate that a first mode of the CCLM is adopted.

43. 43. The device of claim 42, wherein the first bit is used to indicate a first mode of the CCLM, and when the second bit satisfies a first value, the second bit is used to indicate that a normal intra chroma prediction mode is adopted.

44. 44. The apparatus of claim 43, wherein the first value is zero.

45. 43. The apparatus of claim 42, wherein the first bit is used to indicate the first mode, and when the second bit satisfies a second value, the second bit is used to indicate adoption of a second mode or a third mode of the CCLM.

46. 46. ​​The apparatus of claim 45, wherein the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted, and when the third bit satisfies a first value, the third bit is used to indicate that the second mode of the CCLM is adopted.

47. 46. ​​The apparatus of claim 45, wherein the second bit is used to indicate that the second mode or the third mode of the CCLM is adopted, and when the third bit satisfies a second value, the third bit is used to indicate that the third mode of the CCLM is adopted.

48. 48. The apparatus of claim 47, wherein the second value is one.

49. 44. The device of claim 43, wherein when the second bit is used to indicate the adoption of a normal intra-chroma prediction mode, the next two bits adjacent to the second bit are used to indicate the numbering of the normal intra-chroma prediction mode.

50. When the processor employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically: The device according to claim 38, which is used to perform encoding / decoding by adopting a bypass mode for the third bit of the image block.

51. When the processor employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically: The device according to claim 38, which is used to add a new context to the third bit of the image block, and to perform encoding / decoding using a bypass mode for the bit next to the third bit.

52. When the processor employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically:

39. The device of claim 38, which is used to perform encoding / decoding by adding one new context to the third bit of the image block and adding one new context to the bit immediately following the third bit.

53. When the processor employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically:

39. The device according to claim 38, which is used for encoding / decoding by adopting a bypass mode for the third bit of the image block and adding one new context to the bit immediately following the third bit.

54. When the processor employs independent probability models to encode / decode the second bit and the third bit, respectively, specifically: The third bit is encoded / decoded using the same context as the second bit, or employing different context probability models for encoding / decoding the second bit and the third bit; or The second bit and the third bit may be encoded / decoded using a bypass probability model, or The device of claim 38, which is used to encode / decode one of the second bit and the third bit using a bypass probability model, and to encode / decode the other of the second bit and the third bit using a context probability model.

55. The processor: employing independent probability models to encode / decode the first bits and the second bits, respectively; or 39. The apparatus of claim 38, further adapted to employ independent probability models to encode / decode the three adjacent bits, respectively.

56. the first mode includes an LT_CCLM mode; the second mode includes an L_CCLM mode; 39. The apparatus of claim 38, wherein the third mode comprises a T_CCLM mode.

57. The apparatus of claim 38, wherein the CCLM mode is a chroma prediction mode of intra prediction.

58. 39. The apparatus of claim 38, wherein image blocks in the image to be encoded / decoded exhibit at least one of a square and a rectangle.

59. the first bit is the bit at the second position in the bit string, the second bit is the bit at the third position in the bit string, 39. The apparatus of claim 38, wherein the third bit is the bit in the fourth position of the bit string.

60. 39. The apparatus of claim 38, wherein the normal intra chroma prediction modes include any one or more of a planar mode, a DC mode, and 65 angle modes.

61. a memory and a processor, the memory is used to store program instructions; The processor is used to call the program instructions, which when executed: binarizing a chroma prediction mode of an image block of an image to be coded / decoded to obtain a bit string including at least three adjacent bits; for the image to be coded / decoded, at least one of a cross-component linear model (CCLM) and a normal intra chroma prediction mode is allowed to be used, the CCLM including at least a first mode, a second mode, and a third mode, and the normal intra chroma prediction mode is used to perform an operation that is an intra chroma prediction mode other than the CCLM; a first bit of the three adjacent bits is used to indicate whether or not to adopt the CCLM; when the first bit indicates that the CCLM is adopted, the second bit is used to indicate whether or not to adopt a first mode of the CCLM; and when the second bit indicates that the first mode of the CCLM is not adopted, the third bit is used to indicate that the second mode or a third mode of the CCLM is adopted; A video image processing apparatus employing independent probability models to encode / decode the first bits and the second bits, respectively.

62. 62. The device of claim 61, wherein when the first bit indicates that the CCLM is not adopted, the second bit is used to indicate whether to adopt one of the normal intra chroma prediction modes.

63. 63. The device of claim 62, wherein when the first bit indicates that the CCLM is not adopted, the second bit is used to indicate whether a first mode in the normal intra chroma prediction mode is adopted, and when the second bit indicates that the first mode in the normal intra chroma prediction mode is not adopted, the third bit is used to indicate whether a second mode or a third mode in the normal intra chroma prediction mode is adopted.

64. the bit string further includes a fourth bit; 64. The device of claim 63, wherein when the third bit is used to indicate the adoption of the second mode or the third mode of the normal intra chroma prediction mode, the fourth bit is used to indicate the specific adoption of the second mode or the third mode of the normal intra chroma prediction mode, and when the third bit is used to indicate the non-adoption of the second mode or the third mode of the normal intra chroma prediction mode, the fourth bit is used to indicate the adoption of the fourth mode or the fifth mode of the normal intra chroma prediction mode.

65. 62. The apparatus of claim 61, wherein the image to be encoded / decoded includes at least one image block in which CCLM is in an ON state.

66. The image to be encoded / decoded includes at least one image block in which CCLM is in an ON state and at least one image block in which CCLM is in an OFF state; The device of claim 61, wherein for all image blocks in the image to be encoded / decoded, encoding / decoding is performed using probability models that are independent of each other for the first bit and the second bit of the image block.

67. and encoding / decoding the first bits and the second bits by employing the independent probability models, respectively. employing the same context probability model to encode / decode the first bit and the second bit, or employing different context probability models to encode / decode the first bits and the second bits, respectively; or or employing a bypass probability model to encode / decode the first bits and the second bits; or 62. The apparatus of claim 61, further comprising: encoding / decoding one of the first bits and the second bits using a bypass probability model, and encoding / decoding the other of the first bits using a context probability model.

68. The processor:

62. The device of claim 61, further adapted to perform encoding / decoding employing a bypass mode for the third bit of the image block.

69. The processor: employing independent probability models to encode / decode the second bit and the third bit, respectively; or 62. The apparatus of claim 61, further adapted to employ independent probability models to encode / decode each of the three adjacent bits.

70. the first mode includes an LT_CCLM mode; the second mode includes an L_CCLM mode; 62. The apparatus of claim 61 , wherein the third mode comprises a T_CCLM mode.

71. The apparatus of claim 61 , wherein the CCLM mode is a chroma prediction mode for intra prediction.

72. 62. The apparatus of claim 61, wherein the image blocks in the image to be encoded / decoded exhibit at least one of a square and a rectangle.

73. the first bit is the bit at the first position in the bit string, the second bit is the bit at the second position in the bit string, 62. The apparatus of claim 61, wherein the third bit is the bit in the third position of the bit string.

74. 62. The apparatus of claim 61, wherein the normal intra chroma prediction modes include any one or more of a planar mode, a DC mode, and 65 angular modes.

75. A computer readable storage medium storing a computer program, said computer program being adapted to implement the method of any one of claims 1 to 37 when executed by a processor.

Citation Information

Patent Citations

  • Image data encoding and decoding

    WO2020260874A1

  • Simplified intra chroma mode coding in video coding

    WO2020263392A1