Video image processing method, device, and storage medium

JP2024102288A5Active Publication Date: 2025-02-25SZ DJI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024076754
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-06-25
Filing Date
2024-05-09
Publication Date
2025-02-25
Estimated Expiration
2039-07-09

AI Technical Summary

Technical Problem

The complexity and inefficiency of encoding/decoding processes in video image processing, particularly due to dependency relationships in Cross Component Linear Mode (CCLM) prediction modes, lead to increased computational demands and reduced encoding/decoding efficiency.

Method used

Implementing a method that binarizes the saturation prediction mode of image blocks into a bit string with at least three adjacent bits, using a cross-component linear model (CCLM) and normal intra chroma prediction modes, and employing mutually independent probabilistic models to encode/decode these bits independently, reducing dependency and complexity.

Benefits of technology

This approach reduces encoding/decoding complexity and time, enhancing efficiency by allowing parallel processing and maintaining multiple saturation prediction modes without significant loss of performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide a video image processing method, a device, and a storage medium for improving the efficiency of encoding / decoding.SOLUTION: A video image processing method obtains a bit string including at least three adjacent bits, and uses a cross-component linear model CCLM including at least a first mode, a second mode, and a third mode for an image to be encoded / decoded. The first bit is used to indicate whether to adopt the first mode, the second bit is used to indicate whether to adopt a remaining mode other than the first mode when the first bit indicates not to adopt the first mode, and the third bit is used to indicate the second mode or the third mode when the second bit indicates to adopt a remaining mode other than the first mode. The method also employs independent probability models to encode / decode the second bit and the third bit, respectively.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 Mode (CCLM) are used for chroma prediction to improve the accuracy of chroma prediction. When analyzing the number of the chroma prediction mode of an image block using the CCLM prediction mode, there is a dependency when analyzing bits at different positions. For example, the encoding / decoding method of the bit at the fourth position of an image block must refer to the value of the bit at the third position. If such a method is adopted, the complexity of the encoding / decoding increases and the efficiency of the encoding / decoding decreases. Therefore, how to better improve the efficiency of the encoding / decoding becomes a research focus. 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 include 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, and for the image to be encoded / 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 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, or Or, 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 bits and the third bits, respectively.

[0005] In a second aspect, embodiments of the present invention include 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, and for the image to be encoded / 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 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, 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 mutually independent probability models to encode / decode the first bits and the second bits, respectively.

[0006] In a third aspect, embodiments of the present invention include A memory and a processor, the memory is adapted to store program instructions; The processor is adapted to call the program instructions, which, when executed, binarizing a chroma prediction mode of an image block of an image to be encoded / decoded to obtain a bit sequence 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 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, or Or, 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 is provided, which employs independent probability models to encode / decode the second bits and the third bits, respectively.

[0007] In a fourth aspect, embodiments of the present invention comprise A memory and a processor, the memory is adapted to store program instructions; The processor is adapted to call the program instructions, which, when executed, binarizing a chroma prediction mode of an image block of an image to be encoded / decoded to obtain a bit sequence 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 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, 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 is provided, which 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 a computer program stored thereon which, when executed by a processor, implements the video image processing method according to the first aspect or the second aspect.

[0009] An embodiment of the present invention obtains a bit string including at least three adjacent bits by binarizing a saturation prediction mode of an image block of an image to be encoded / decoded, and employs independent probability models to encode / decode at least two adjacent bits (e.g., the second bit and the third bit, or the first bit and the second bit) of the three adjacent bits, 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 are 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 also obtain other drawings based on these drawings under the premise of not performing creative labor. [Brief description of the drawings]

[0011] [Figure 1a] 1 is a schematic diagram of a CCLM provided by an embodiment of the present invention. [Figure 1b] 1 is a schematic diagram of another CCLM provided by an embodiment of the present invention. [Diagram 2] 2 is a flowchart of a video image processing method provided by an embodiment of the present invention. [Diagram 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 PREFERRED EMBODIMENTS

[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 based on the embodiments of the present invention under the premise that those skilled in the art do not perform creative work are all within the scope of protection of the present invention.

[0013] Some embodiments of the present invention will now be described in detail with reference to the drawings. Where not inconsistent, the following examples and the features therein can 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, a tablet computer, etc.). 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, a robot, etc.), but the embodiments of the present invention are not specifically limited.

[0015] The video image processing method provided by the embodiment 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 and AVS3, etc. Before describing the embodiment of the present invention, the chroma prediction technology in the video coding standard will be described first.

[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] CCLM will be described with reference to Fig. 1a and Fig. 1b 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 prediction block obtained based on the current chroma block in Fig. 1a. Since there exists 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, in order to reduce the redundant information between components, in the CCLM prediction mode, the chroma components are predicted based on the reconstructed luma components in the same block, and a linear model is used as follows:

[0018]

number

[0019] In the formula, pred c refers to the chroma prediction block, and rec' L refers to the luma component after downsampling 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 Equation (1) and Equation (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 left and upper adjacent chroma samples of the current chroma block. α and β do not need to be transmitted, and are calculated in the same manner in the decoder.

[0022] It is worth mentioning that prediction is an important module in the mainstream video coding framework, and intra prediction uses reconstructed neighboring pixels to obtain a predicted block with different prediction modes. As for the prediction modes used for luma and chroma components, in addition to the traditional planar mode, DC mode, and 65-angle mode, a new CCLM mode is also introduced for chroma prediction mode. For a frame of image, it is first divided into coding tree units (CTUs) of the same size, for example, 64x64, 128x128, etc. Each CTU can be further divided into square or rectangular coding units (Coding Units, CUs). In the CTU of an intra-coded frame (I frame), the luma and chroma components can have different partitioning methods, while in the bidirectional predictive interpolation coded frame (B frame) and the forward predictive coded frame (P frame), the luma and chroma components have the same partitioning method. The chroma prediction mode number of the image block is transmitted in the bitstream.

[0023] At present, the intra prediction technology in the mainstream video coding standard mainly includes Planar mode, DC mode and 65 angle modes, and the chroma prediction mode additionally includes CCLM mode. The CCLM mode can include multiple types, for example, at least one of three prediction modes: LT_CCLM, T_CCLM, and L_CCLM. The number of the chroma prediction mode is transmitted in the code stream. In order to reduce the coding complexity, in one example, there are 5 or 8 chroma prediction modes depending on whether the CCLM mode is on or not.

[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 the following Table 1. Table 1 shows the saturation prediction modes when CCLM is off. Here, for the luminance mode, No. 0 is the Planar mode, No. 1 is the DC mode, No. 50 is the Vertical angle mode, and No. 18 is the Horizon angle 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 will be described of how to search for a luminance mode using Table 1. When the CCLM mode is off, if the luminance mode is Planar mode number 0, the chroma prediction mode number is 1, and according to Table 1, the luminance mode corresponding to luminance mode number 0 and chroma prediction mode number 1 can be determined to be 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 chroma prediction mode number is 3, and according to Table 1, the luminance mode corresponding to luminance mode number 18 and chroma prediction mode number 3 can be determined to be DC mode with number 1 in the fifth row and third column.

[0027] [Table 1]

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

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

[0030] [Table 2]

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

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

[0033] When the CCLM mode is on, there are eight saturation prediction modes. In one example, the eight saturation prediction modes correspond to the following Table 3, where saturation prediction modes 4, 5, and 6 correspond to LT_CCLM, L_CCLM, and T_CCLM modes, respectively, 7 is DM mode, and 0, 1, 2, and 3 are 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, and according to Table 3, it can be determined that the luminance mode corresponding to chroma prediction mode number 5 for luminance mode 0 is mode number 82 in the seventh row and 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, and then, according to Table 3, it can be determined that the luminance mode corresponding to chroma prediction mode number 8 for luminance mode 18 is angle Horizon mode number 18 in the ninth row and fourth column.

[0036] When CCLM is on, the method of 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 different value ranges depending on whether the 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 other 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 adopted, and 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 the other modes other than the DM mode are adopted.

[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 at the third position is used to indicate that a mode other than the LT_CCLM mode is adopted when the bit at the second position indicates that the LT_CCLM mode is not adopted, for example, the bit at the third position of the binarized bit string 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 adopted. The bit at the fourth position is used to indicate that the L_CCLM mode or the T_CCLM mode is adopted when the bit at the third position is 1, and it can be determined that the L_CCLM mode is adopted if the binarized bit string of saturation prediction mode number 5 is 1110 and the bit at the fourth position is 0, and it can be determined that the T_CCLM mode is adopted if the binarized bit string of saturation prediction mode number 6 is 1111 and the bit at the fourth position is 1.

[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 of saturation prediction mode number 0 is 11000, the binarized bit string of saturation prediction mode number 1 is 11001, the binarized bit string of saturation prediction mode number 2 is 11010, and the binarized bit string of saturation prediction mode number 3 is 11011.

[0043] In some embodiments, the bit sequence may be a bit sequence of one bit. Take Table 4 as an example, if the binarized bit sequence 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. Take Table 4 as an example. If the bit string obtained by binarizing the chroma prediction mode number 4 of the image block of the image to be encoded / decoded by the 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 the DM mode, that is, uses a mode other than the DM mode, and may use the CCLM mode or the normal intra chroma prediction mode. If the bit in the second position is 0, it can be determined that the chroma prediction mode of the image block uses the LT_CCLM mode in the CCLM mode.

[0045] When CCLM mode is on, the number of chroma prediction modes increases from 5 to 8. At this time, the bit in the 1st position, the bit in the 2nd position, and the bit in the 3rd position of the bit string are encoded using the contexts 0, 1, and 2, respectively. When encoding the bit in the 4th position, the encoding method must be determined based on the value of the bit in the 3rd position. When the value of the bit in the 3rd position is equal to 0, the bit in the 5th position is encoded using the bit in the 4th position, bypass, and when the value of the bit in the 3rd position is equal to 1, the bit in the 4th position is encoded using the context 2. At this time, the bit in the 4th position cannot be further decoded unless the value of the bit in the 3rd position is determined during the decoding process.

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

[0047] [Table 5]

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

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

[0050] According to the details of the implementation technique of the coding chroma prediction mode number shown in Table 5 above, it can be seen that when the CCLM mode is on, 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 coding of the bit in the fourth position is coded using bypass, and 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 the binary arithmetic coding based on the context. Therefore, it can be determined that the value taken by the bit in the fourth position depends on the value taken by the bit in the third position, leading to the existence of a coupling between the bit in the fourth position and the bit in the third position. Such an embodiment is relatively complicated and has relatively low coding / decoding efficiency.

[0051] Therefore, an embodiment of the present invention proposes 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, 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 or not to adopt a first mode of the CCLM, a second bit is used to indicate whether or not to adopt a remaining mode other than the first mode of the CCLM when the first bit indicates that the first mode of the CCLM is not adopted, and a third bit is used to indicate whether or not the image block adopts a second mode or a third mode of the CCLM when the second bit indicates that the remaining mode other than the first mode of the CCLM is adopted. The second bit and the third bit are encoded / decoded respectively by adopting mutually independent probability models. Furthermore, the three adjacent bits are encoded / decoded respectively by adopting mutually 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 the third mode of the CCLM is adopted. The first bit and the second bit are encoded / decoded, respectively, by adopting mutually independent probability models. Furthermore, the three adjacent bits are encoded / decoded, respectively, by adopting mutually independent probability models.

[0054] Here, performing encoding and decoding using independent probability models can refer to a probability model that is used when encoding and decoding a single bit, and is not affected by the values ​​taken by other bits (e.g., adjacent bits), that is, 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 (eg, all located in an intra chroma prediction mode).

[0056] In this embodiment, the present invention can effectively reduce the complexity of hardware analysis while maintaining multiple chroma prediction modes to improve performance. The improved method for the chroma mode encoding / decoding method provided in the present invention can increase the parallelism of hardware analysis without significant loss of encoding performance, eliminate the encoding / decoding dependency of bits at different positions, simplify the complexity of encoding / decoding of individual bits, and improve 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 drawings.

[0058] Specifically referring to Fig. 2, Fig. 2 is a flow chart 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 is as 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, 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.

[0062] In some embodiments, the first bit is the bit in the second position of the bit string, the second bit is the bit in the third position of the bit string, and the third bit is the bit in the fourth position of the bit string. An example of three adjacent bits is described below using the binarized bit string 1110 of chroma prediction mode number 5 in Table 4. The first bit in the bit string 1110 is a 1 in the second position, the second bit is a 1 in the third position, and the third bit is a 0 in 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 a LT_CCLM mode, the second mode includes a L_CCLM mode, and the third mode includes a T_CCLM mode. In some embodiments, the CCLM mode is a chroma prediction mode of intra prediction. An example will be described with reference to Table 4. The binarized bit sequence 10 of chroma prediction mode number 4 corresponds to the first mode, i.e., the LT_CCLM mode, the binarized bit sequence 1110 of chroma prediction mode number 5 corresponds to the second mode, i.e., the L_CCLM mode, and the binarized bit sequence 1111 of chroma prediction mode number 6 corresponds to the third mode, i.e., the 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, image blocks in the image to be encoded / decoded exhibit at least one of a square and a rectangle.

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

[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 in an on state 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 an image 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, if the marker is a second value (e.g., 1), it represents that the CCLM is allowed to be used, and if the marker is a first value (e.g., 0), it represents that the CCLM is not allowed. In some embodiments, when decoding the image to be decoded, it can be determined whether the image or image block to be decoded is allowed to use CCLM based on the decoded marker, where the decoded marker may be present in a VPS, SPS, PPS, a sequence header, a slice header, or an image header. For example, if a decrypted 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, the "CCLM is permitted to be used" and the "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 permitted 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 the adoption of a normal intra chroma prediction mode. 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 the adoption of a second mode or a third mode of the CCLM.

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

[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 the image block of the image to be encoded / decoded is 1110, 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 in the CCLM mode, if the bit at the third position is 1, it can be determined that the chroma prediction mode of the image block is the L_CCLM mode or the T_CCLM mode. If the bit at the fourth position is 0, it can be determined that the chroma prediction mode of the image block is the L_CCLM mode.

[0077] For example, when the 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 in the CCLM mode, if the bit at the third position is 1, it can be determined that the chroma prediction mode of the image block is the L_CCLM mode or the 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 the 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 a 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 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 LT_CCLM mode in CCLM mode is not used in the saturation prediction mode of the image block; 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 00, it can determine that the normal intra saturation prediction mode number is 0.

[0080] 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 11001, and if 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 the 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 the 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 saturation prediction mode of an image block of an image to be encoded / decoded, the bit sequence obtained is 11010, and if 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 LT_CCLM mode in CCLM mode is not used in the saturation prediction mode of the image block; 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 10, it can determine that the normal intra saturation prediction mode number 2.

[0082] Similarly, when a video image processing device binarizes the saturation prediction mode of an image block of an image to be encoded / decoded, the bit sequence obtained is 11011, and if 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 LT_CCLM mode in CCLM mode is not used in the saturation prediction mode of the image block; 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 11, it can determine the normal intra saturation prediction mode number 3.

[0083] S202: Employ independent probability models to encode / decode the second bit and the third bit, respectively.

[0084] In an embodiment of the present invention, the video image processing device can respectively encode / decode the second bit and the third bit by adopting independent probability models. For example, when the second bit can take any value, the third bit is encoded by adopting 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 be referred to as context).

[0086] Alternatively, optionally, different context probability models are employed for the second bit and the third bit to perform encoding / decoding. In this way, the parallelism of the second bit and the third bit encoding / decoding can be increased. Alternatively, the bypass probability model may be employed for both the second bit and the third bit to perform encoding / decoding, or the bypass probability model may be employed for one of the second bit and the third bit to perform encoding / decoding, and the context probability model may be employed for the other. In this way, the parallelism of the second bit and the third bit encoding / decoding can also be increased.

[0087] In some embodiments, the independent probability models refer to a mode in which coding is performed using independent contexts, that is, a normal coding mode. Specifically, the bypass coding mode and the normal coding mode are described by taking FIG. 4 as an example. FIG. 4 is a schematic diagram of an arithmetic coding process provided by an embodiment of the present invention. As shown in FIG. 4, first, a binarization process is performed on an input non-binary value syntax element, and the binary bit string generated through the binarization process then enters the coding stage. At this time, if the normal coding mode is selected, the bit string enters context modeling, and after the context model is determined, the bit string is sent to a normal coding module together with its corresponding context model for coding, and then the coding result is output, and the context model is updated according to 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 a bypass coding mode in the corresponding later sentence. Specifically, the bypass coding mode is described by taking FIG. 4 as an example. As shown in FIG. 4, first, a binarization process is performed on an input non-binary syntax element, and a binary bit string generated through the binarization process is then entered into the encoding stage. At this time, when the bypass coding mode is selected, 0 and 1 in the bit string generated by binarization are considered to have an equal probability distribution, and are sent to a bypass coding module for encoding, and then the encoding result is output. Such a mode can reduce the implementation complexity and accelerate the encoding and decoding process.

[0090] For example, the video image processing device can add context number 1 to the third bit of the image block and encode / decode it, 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 succeeding bit 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 adding one new context to the bit immediately following the third bit.

[0093] For example, the video image processing device may add a context numbered 2 to the third bit of the image block and encode / decode it, and then add a context numbered 0 to the bit immediately adjacent to the third bit and encode / decode it.

[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 succeeding bit 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 next to the third bit for encoding / decoding.

[0096] For example, the video image processing device may employ a bypass mode to encode / decode the third bit of the image block, and then add a zero-th context to the bit next 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 succeeding bit 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 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 adopt independent probability models to encode / decode the second bit and the third bit in the bit string respectively, 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, respectively. Here, optionally, saturation prediction modes 4, 5, and 6 can correspond to LT_CCLM, L_CCLM, and T_CCLM modes, respectively, 7 can be DM mode, and 0, 1, 2, and 3 can be other modes or normal intra saturation prediction modes.

[0104] [Table 6]

[0105] Take Table 6 as an example to describe how to search for a luminance mode using Table 6. When CCLM mode is on, if the luminance mode number is 0 and the chroma prediction mode number is 5, it can be determined according to Table 6 that the chroma prediction mode should adopt the 82nd mode in the prediction mode. It can 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 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 that the second mode or the third mode of the CCLM is to be adopted. Taking the following Table 7 as a specific example, when CCLM is on, the method of binarizing the saturation prediction mode number (for example, the saturation prediction mode number shown in Table 6) is as shown in the following Table 7.

[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 that 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 adopted, the second bit is used to indicate whether or not to adopt a first mode in the normal intra chroma prediction mode, 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 or not to adopt a second mode or a third mode in the normal intra chroma prediction mode, 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 adopted, the fourth bit is used to indicate that the second mode or the third mode in the normal intra chroma prediction mode 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 mode is not adopted, the fourth bit is used to indicate that the fourth mode or the fifth mode of the normal intra chroma prediction mode is 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 null 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., the bit numbered 0), the second bit may be the bit at the second position in the bit string (i.e., the bit numbered 1), and the third bit may be the bit at the third position in the bit string (i.e., the bit numbered 2). According to the details of the realization technique of the coding saturation prediction mode number shown in Table 8 above, when the CCLM mode is on, it can be seen that the analysis processes of the first bit and the second bit are independent of each other, and for example, the probability model adopted by the second bit does not differ according to the difference in the value taken by the first bit. Furthermore, the analysis processes of the second bit and the third bit are independent of each other, and for example, the probability model adopted by the third bit does not differ according to the difference in the value taken by the second bit.

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

[0115] Alternatively, optionally, different context probability models are employed for the first bit and the second bit to perform encoding / decoding. In this way, the parallelism of the first bit and the second bit encoding / decoding can be increased. Alternatively, the bypass probability model may be employed for both the first bit and the second bit to perform encoding / decoding, or the bypass probability model may be employed for one of the first bit and the second bit to perform encoding / decoding, and the context probability model may be employed for the other. In this way, the parallelism of the first bit and the second bit encoding / decoding can be increased.

[0116] In some examples, when the CCLM mode is on and off, different forms are respectively adopted to search for a specific prediction mode corresponding to the saturation prediction mode number. For example, when CCLM is off, Table 1 is adopted to search for a prediction mode corresponding to the saturation prediction mode number, and when CCLM is on, Table 3 is adopted to search for a prediction mode corresponding to the saturation prediction mode number.

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

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

[0119] The memory 301 may comprise a volatile memory, the memory 301 may comprise a non-volatile memory, or the memory 301 may further comprise a combination of the above types of memory. The processor 302 may be a central processing unit (CPU). The processor 302 may further comprise 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. 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 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, and for the image to be encoded / 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 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, or Or, 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; Mutually independent probability models are employed to encode / decode the second bit and the third bit, respectively.

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

[0122] Furthermore, when the second bit indicates that no remaining modes other than the first mode of the CCLM are to be adopted, the third bit is further used to indicate that one of the normal intra chroma prediction modes is 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 encoded / decoded, the second bit and the third bit of the image block are encoded / decoded by employing probability models that are independent of each other.

[0125] Furthermore, when 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 the adoption of a normal intra chroma prediction mode.

[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 the adoption of a second mode or a third mode of the CCLM.

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

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

[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 last 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 a bypass mode.

[0134] Furthermore, when the processor 302 employs independent probability models to encode / decode the second bit and the third bit respectively, specifically, It adds a new context to the third bit of the image block, and is used to encode / decode the next bit adjacent to the third bit 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 add one new context to the bit next to the third bit for 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 a bypass mode for the third bit of the image block, and add one new context to the bit next to 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 employing the same context as the second bit.

[0138] Furthermore, the first mode includes a 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 of intra prediction.

[0140] Furthermore, the image blocks in the image to be encoded / decoded exhibit 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 in a third position in the bit string; The third bit is the bit in the fourth position of 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 to adopt the CCLM, the second bit is used to indicate whether or not to adopt a first mode of the CCLM, and when the second bit indicates not to adopt the first mode of the CCLM, the third bit is used to indicate to adopt a second mode or a third mode of the CCLM.

[0144] Optionally, independent probability models are employed to encode / decode said first bits and said 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 to adopt one of the normal intra chroma prediction modes.

[0146] Optionally, when the first bit indicates that the CCLM is not adopted, the second bit is used to indicate whether or not to adopt a first mode in the normal intra chroma prediction mode, 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 or not to adopt a second mode or a third mode in the normal intra chroma prediction mode.

[0147] Optionally, the bit sequence further includes a fourth bit, where when the third bit is used to indicate the adoption of the second mode or the third mode in the normal intra chroma prediction mode, the fourth bit is used to indicate the specific adoption of the second mode or the third mode in 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 in the normal intra chroma prediction mode, the fourth bit is used to indicate the adoption of the fourth mode or the fifth mode in the normal intra chroma prediction mode.

[0148] Optionally, employing the mutually 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 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 adopt independent probability models to encode / decode the second bit and the third bit in the bit string respectively, 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 according to 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 Card, etc., that is installed in the device. Furthermore, the computer-readable storage medium may further include an internal storage unit of the device as well as an external storage 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 may also be used to temporarily store data that has already been output or is to be output.

[0154] Those skilled in the art can understand that the implementation of all or part of the processes in the methods of the above embodiments can be achieved by instructing relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium, which can include processes such as the above embodiments of the methods when executed. 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 embodiment of the present invention, and it is obvious that the scope of the present invention cannot be limited by this. Therefore, equivalent modifications made based on the claims of the present invention still belong to 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 two adjacent bits; the at least two adjacent bits include a second bit and a third bit; When the second bit is used to indicate that a second mode or a third mode of a cross-component linear model CCLM is adopted, and the third bit satisfies a first value, the third bit is used to indicate that the second mode of the CCLM is adopted; 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 a second value, the third bit is used to indicate that the third mode of the CCLM is adopted; employing independent probability models to encode / decode the second bit and the third bit, respectively; The image processing method, wherein the CCLM includes at least a LT_CCLM mode.

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

3. 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 every image block in the image to be encoded / decoded, the second bit and the third bit of the image block are encoded / decoded by employing independent probability models.

4. The method further comprising: The method of claim 1 , further comprising: performing encoding / decoding using a bypass mode on the third bit of the image block.

5. The method of claim 1 , wherein the CCLM further comprises an L_CCLM mode and a T_CCLM mode.

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

7. the bit sequence includes a first bit; the first bit is a bit in a first position in the bit string; the second bit is a bit in a second position in the bit string; 2. The method of claim 1, wherein the third bit is a bit in a third position in the string of bits.

8. A memory and a processor, the memory is adapted to store program instructions; The processor is adapted to call the program instructions, which, when executed, The method is used to perform an operation of binarizing a chroma prediction mode of an image block of an image to be encoded / decoded to obtain a bit string including at least two adjacent bits; the at least two adjacent bits include a second bit and a third bit; When the second bit is used to indicate that a second mode or a third mode of a cross-component linear model CCLM is adopted, and the third bit satisfies a first value, the third bit is used to indicate that the second mode of the CCLM is adopted; 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 a second value, the third bit is used to indicate that the third mode of the CCLM is adopted; employing independent probability models to encode / decode the second bit and the third bit, respectively; The image processing device, wherein the CCLM includes at least an LT_CCLM mode.

9. The apparatus of claim 8 , wherein the image to be encoded / decoded includes at least one image block with CCLM in ON state.

10. 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 apparatus according to claim 8, wherein for every image block in the image to be encoded / decoded, the encoding / decoding is performed by employing independent probability models for the second bit and the third bit of the image block.

11. The processor, The apparatus according to claim 8 , further adapted for performing encoding / decoding by adopting a bypass mode for the third bit of the image block.

12. The apparatus of claim 8 , wherein the CCLM further comprises an L_CCLM mode and a T_CCLM mode.

13. The apparatus of claim 8 , wherein the CCLM mode is a chroma prediction mode of intra prediction.

14. the bit sequence includes a first bit; the first bit is a bit in a first position in the bit string; the second bit is a bit in a second position in the bit string; 9. The apparatus of claim 8, wherein the third bit is a bit in a third position in the string of bits.

15. The device of claim 8, wherein the normal intra chroma prediction modes include one or more of a planar mode, a DC mode, and 65 angle modes.

16. binarizing a chroma prediction mode of an image block of an image to be encoded to obtain a bit string including at least two adjacent bits; the at least two adjacent bits include a second bit and a third bit; When the second bit is used to indicate that a second mode or a third mode of a cross-component linear model CCLM is adopted, and the third bit satisfies a first value, the third bit is used to indicate that the second mode of the CCLM is adopted; 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 a second value, the third bit is used to indicate that the third mode of the CCLM is adopted; employing independent probability models to encode the second bits and the third bits, respectively, to generate a bit stream; The bitstream generating method, wherein the CCLM includes at least a LT_CCLM mode.