Video encoding and decoding method, device, computer-readable medium, and electronic device

By selecting part of the chromaticity prediction mode for chromaticity block decoding when the luminance encoding block adopts SAWP mode, the problem of slow hardware execution speed is solved, and the overall performance and efficiency of video encoding and decoding is improved.

CN115209157BActive Publication Date: 2025-08-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110396645.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-13
Publication Date
2025-08-01
Estimated Expiration
2041-04-13

AI Technical Summary

Technical Problem

In the existing video encoding and decoding technology, the hardware execution speed of SAWP mode is slower than that of ordinary intra prediction mode, resulting in a degradation of the encoding and decoding performance. In particular, the decoding of the chrominance block needs to be waited for the brightness block to be reconstructed, affecting the hardware performance.

Method used

When the luminance encoding block adopts the SAWP mode, by specifying the prediction mode indication information, some chromaticity prediction modes are selected for decoding of the chromaticity encoding block, avoiding the use of a chromaticity prediction mode with a large delay, and simplifying the prediction process of the chromaticity block.

Benefits of technology

It improves the hardware's encoding and codec performance, reduces the delay in chroma block decoding, and improves the overall encoding and codec efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115209157B_ABST
    Figure CN115209157B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a video encoding and decoding method, apparatus, computer-readable medium, and electronic device. The video decoding method includes: performing decoding processing on a video bitstream to obtain a prediction mode adopted by a luminance coding block; if the SAWP mode is adopted by the luminance coding block, determining a target prediction mode adopted by a chrominance coding block corresponding to the luminance coding block according to decoded specified prediction mode indication information, where the specified prediction mode indication information is used to indicate selecting the target prediction mode from partial chrominance prediction modes; and performing decoding processing on the chrominance coding block based on the target prediction mode. The technical solution of the embodiments of the present application can improve the encoding and decoding performance of hardware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer and communication technologies, and more particularly, to a video encoding and decoding method, apparatus, computer-readable medium, and electronic device. Background Art

[0002] In the field of video encoding and decoding, since a single prediction mode cannot adapt to complex textures in an image, the SAWP (Spatial Angular Weighted Prediction) technology has been proposed. In the SAWP technology, two different intra-prediction modes need to be used to predict the same coding block, and the final predicted image is generated by weighting two intra-predicted images.

[0003] Due to the characteristics of SAWP itself, its hardware execution speed is slower than that of ordinary intra-prediction modes. Currently, most chrominance prediction modes basically need to wait for the luminance block to be reconstructed before decoding the chrominance block, thus reducing the hardware encoding and decoding performance. Summary of the Invention

[0004] Embodiments of the present application provide a video encoding and decoding method, apparatus, computer-readable medium, and electronic device, which can at least improve the hardware encoding and decoding performance to a certain extent.

[0005] Other features and advantages of the present application will become apparent through the following detailed description, or be learned in part through the practice of the present application.

[0006] According to one aspect of the embodiments of the present application, a video decoding method is provided, including: performing decoding processing on a video bitstream to obtain a prediction mode adopted by a luminance coding block; if the luminance coding block adopts the SAWP mode, determining a target prediction mode adopted by a chrominance coding block corresponding to the luminance coding block according to the decoded specified prediction mode indication information, where the specified prediction mode indication information is used to indicate selecting the target prediction mode from partial chrominance prediction modes; and performing decoding processing on the chrominance coding block based on the target prediction mode.

[0007] According to one aspect of the embodiments of the present application, a video encoding method is provided, including: determining a prediction mode adopted by a luminance coding block during encoding; if the luminance coding block adopts the SAWP mode, selecting a target prediction mode adopted by a chrominance coding block corresponding to the luminance coding block from partial chrominance prediction modes; generating specified prediction mode indication information according to the target prediction mode, where the specified prediction mode indication information is used to indicate selecting the target prediction mode from the partial chrominance prediction modes; and encoding the specified prediction mode indication information into the video bitstream.

[0008] According to one aspect of the embodiments of the present application, a video decoding device is provided, including: a decoding unit configured to perform decoding processing on a video bitstream to obtain a prediction mode adopted by a luminance coding block; a first determination unit configured to, if the luminance coding block adopts a spatial angle weighted prediction (SAWP) mode, determine a target prediction mode adopted by a chrominance coding block corresponding to the luminance coding block according to designated prediction mode indication information obtained by decoding, where the designated prediction mode indication information is used to indicate the selection of the target prediction mode from partial chrominance prediction modes; and a processing unit configured to perform decoding processing on the chrominance coding block based on the target prediction mode.

[0009] In some embodiments of the present application, based on the foregoing solution, the partial chrominance prediction modes include one or a combination of the following:

[0010] Direct mode;

[0011] DC prediction mode, horizontal prediction mode, vertical prediction mode, and bilinear prediction mode;

[0012] Trans-component two-step prediction mode (TSCPM);

[0013] Trans multi-component prediction (PMC) mode;

[0014] Extended PMC mode.

[0015] In some embodiments of the present application, based on the foregoing solution, the partial chrominance prediction modes include one or more of the following combinations: an intra prediction mode adopted by an adjacent chrominance block or luminance block; and partial intra prediction modes selected from the allowed intra prediction modes.

[0016] In some embodiments of the present application, based on the foregoing solution, the first determination unit is further configured to: determine whether to adopt a chrominance prediction simplification method according to the size of the chrominance coding block; and if it is determined to adopt the chrominance prediction simplification method, determine the target prediction mode adopted by the chrominance coding block corresponding to the luminance coding block according to the designated prediction mode indication information obtained by decoding.

[0017] In some embodiments of the present application, based on the foregoing solution, the first determination unit is configured to: if the size of the chrominance coding block satisfies at least one of the following conditions, determine to adopt the chrominance prediction simplification method:

[0018] The width of the chrominance coding block is greater than or equal to a first set value;

[0019] The width of the chrominance coding block is less than or equal to a second set value, and the second set value is greater than or equal to the first set value;

[0020] The height of the chrominance coding block is greater than or equal to a third set value;

[0021] The height of the chrominance coding block is less than or equal to a fourth set value, and the fourth set value is greater than or equal to the third set value;

[0022] The area of the chrominance coding block is greater than or equal to a fifth set value;

[0023] The area of the chrominance coding block is less than or equal to a sixth set value, and the sixth set value is greater than or equal to the fifth set value.

[0024] In some embodiments of the present application, based on the foregoing solution, the first set value is equal to the third set value, and the second set value is equal to the fourth set value.

[0025] In some embodiments of the present application, based on the foregoing solution, the values of the first set value and the third set value are both 8.

[0026] In some embodiments of the present application, based on the foregoing solution, the first determining unit is configured to: if the combination of the width and height of the chrominance coding block is not a specified numerical combination, determine to adopt a chrominance prediction simplification method; wherein, the specified numerical combination includes at least one of the following numerical combinations: (4, 4), (4, 8), (4, 16), (8, 4), (16, 4), (8, 8), (8, 16), (16, 8), (16, 16).

[0027] In some embodiments of the present application, based on the foregoing solution, the prediction modes included in the partial prediction modes corresponding to chrominance coding blocks of different sizes are not exactly the same.

[0028] In some embodiments of the present application, based on the foregoing solution, the processing unit is further configured to: according to the pre-known partial chrominance prediction mode, skip the decoding process of specific indication bits in the specified prediction mode indication information, and the specific indication bits are associated with other chrominance prediction modes except the partial chrominance prediction mode in the chrominance prediction mode.

[0029] According to one aspect of the embodiments of the present application, a video encoding device is provided, including: a second determination unit configured to determine a prediction mode adopted by a luminance encoding block during encoding; a selection unit configured to, if the SAWP mode is adopted by the luminance encoding block, select a target prediction mode adopted by a chrominance encoding block corresponding to the luminance encoding block from among partial chrominance prediction modes; a generation unit configured to generate specified prediction mode indication information according to the target prediction mode, where the specified prediction mode indication information is used to indicate the selection of the target prediction mode from among the partial chrominance prediction modes; and an encoding unit configured to encode the specified prediction mode indication information into a video bitstream.

[0030] According to one aspect of the embodiments of the present application, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the video encoding method or video decoding method as described in the above embodiments is implemented.

[0031] According to one aspect of the embodiments of the present application, an electronic device is provided, including: one or more processors; a storage device configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the video encoding method or video decoding method as described in the above embodiments.

[0032] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the video encoding method or video decoding method provided in the above various alternative embodiments.

[0033] In the technical solutions provided in some embodiments of the present application, when the SAWP mode is adopted by a luminance encoding block, according to the decoded specified prediction mode indication information, a target prediction mode adopted by a chrominance encoding block corresponding to the luminance encoding block is determined. Since the specified prediction mode indication information is used to indicate the selection of the target prediction mode from among partial chrominance prediction modes, when the SAWP mode is adopted by the luminance encoding block, only partial chrominance prediction modes can be used to implement the decoding process of the chrominance encoding block, thereby avoiding the use of chrominance prediction modes with a large delay, simplifying the prediction process of the chrominance encoding block, and being beneficial to improving the encoding and decoding performance of the hardware.

[0034] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. Description of the Drawings

[0035] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts. In the drawings:

[0036] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied is shown;

[0037] Figure 2 A schematic diagram showing the placement of a video encoding device and a video decoding device in a streaming system is shown;

[0038] Figure 3 A basic flowchart of a video encoder is shown;

[0039] Figure 4 A schematic diagram of the prediction direction in the intra prediction mode is shown;

[0040] Figure 5 An image with complex texture is shown;

[0041] Figure 6 A schematic diagram showing eight weight generation angles is shown;

[0042] Figure 7 A schematic diagram showing seven reference weight prediction positions is shown;

[0043] Figure 8 A processing flowchart of the PMC is shown;

[0044] Figure 9 A flowchart of a video decoding method according to an embodiment of the present application is shown;

[0045] Figure 10 A flowchart of a video encoding method according to an embodiment of the present application is shown;

[0046] Figure 11 A block diagram of a video decoding device according to an embodiment of the present application is shown;

[0047] Figure 12 A block diagram of a video encoding device according to an embodiment of the present application is shown;

[0048] Figure 13 A schematic diagram of the structure of a computer system of an electronic device suitable for implementing the embodiments of the present application is shown. Detailed implementation manners

[0049] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art.

[0050] In addition, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of this application. However, those skilled in the art will realize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other cases, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of this application.

[0051] The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0052] The flowcharts shown in the drawings are merely illustrative and not necessarily inclusive of all content and operations / steps, nor are they necessarily executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.

[0053] It should be noted that: "a plurality of" as mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0054] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of this application can be applied is shown.

[0055] As Figure 1 shown, the system architecture 100 includes a plurality of terminal devices, and the terminal devices can communicate with each other through, for example, the network 150. For example, the system architecture 100 may include a first terminal device 110 and a second terminal device 120 interconnected through the network 150. In Figure 1 the embodiments, the first terminal device 110 and the second terminal device 120 perform unidirectional data transmission.

[0056] For example, the first terminal device 110 may encode video data (e.g., a video picture stream captured by the terminal device 110) for transmission over the network 150 to the second terminal device 120. The encoded video data is transmitted in the form of one or more encoded video bitstreams. The second terminal device 120 may receive the encoded video data from the network 150, decode the encoded video data to recover the video data, and display video pictures based on the recovered video data.

[0057] In one embodiment of the present application, the system architecture 100 may include a third terminal device 130 and a fourth terminal device 140 that perform two-way transmission of encoded video data, such as may occur during a video conference. For two-way data transmission, each of the third terminal device 130 and the fourth terminal device 140 may encode video data (e.g., a video picture stream captured by the terminal device) for transmission over the network 150 to the other of the third terminal device 130 and the fourth terminal device 140. Each of the third terminal device 130 and the fourth terminal device 140 may also receive the encoded video data transmitted by the other of the third terminal device 130 and the fourth terminal device 140, decode the encoded video data to recover the video data, and display video pictures on an accessible display device based on the recovered video data.

[0058] In Figure 1 the embodiment of, the first terminal device 110, the second terminal device 120, the third terminal device 130, and the fourth terminal device 140 may be servers, personal computers, and smart phones, but the principles disclosed in the present application are not limited thereto. The disclosed embodiments of the present application are applicable to laptop computers, tablet computers, media players, and / or dedicated video conferencing devices. The network 150 represents any number of networks that transfer encoded video data between the first terminal device 110, the second terminal device 120, the third terminal device 130, and the fourth terminal device 140, including, for example, wired and / or wireless communication networks. The communication network 150 may exchange data in circuit-switched and / or packet-switched channels. The network may include a telecommunications network, a local area network, a wide area network, and / or the Internet. For the purposes of the present application, unless otherwise explained hereinafter, the architecture and topology of the network 150 may be immaterial to the operations disclosed in the present application.

[0059] In one embodiment of the present application, Figure 2 shows the placement of a video encoding device and a video decoding device in a streaming environment. The subject matter disclosed in the present application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV (television), storing compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0060] A streaming system may include an acquisition subsystem 213, and the acquisition subsystem 213 may include a video source 201 such as a digital camera. The video source creates an uncompressed video picture stream 202. In an embodiment, the video picture stream 202 includes samples taken by the digital camera. Compared with the encoded video data 204 (or encoded video stream 204), the video picture stream 202 is depicted as a thick line to emphasize the high data volume of the video picture stream. The video picture stream 202 may be processed by an electronic device 220, and the electronic device 220 includes a video encoding device 203 coupled to the video source 201. The video encoding device 203 may include hardware, software, or a combination of both to implement or carry out aspects of the disclosed subject matter described in more detail below. Compared with the video picture stream 202, the encoded video data 204 (or encoded video stream 204) is depicted as a thin line to emphasize the lower data volume of the encoded video data 204 (or encoded video stream 204), which may be stored on the streaming server 205 for future use. One or more streaming client subsystems, such as Figure 2 the client subsystem 206 and the client subsystem 208 in, may access the streaming server 205 to retrieve copies 207 and 209 of the encoded video data 204. The client subsystem 206 may include, for example, a video decoding device 210 in the electronic device 230. The video decoding device 210 decodes the incoming copy 207 of the encoded video data and generates an output video picture stream 211 that can be presented on a display 212 (such as a display screen) or another presentation device. In some streaming systems, the encoded video data 204, the video data 207, and the video data 209 (such as video streams) may be encoded according to certain video encoding / compression standards. Embodiments of such standards include ITU-T H.265. In an embodiment, a video encoding standard under development is informally referred to as Versatile Video Coding (VVC), and the present application may be used in the context of the VVC standard.

[0061] It should be noted that the electronic device 220 and the electronic device 230 may include other components not shown in the figure. For example, the electronic device 220 may include a video decoding device, and the electronic device 230 may also include a video encoding device.

[0062] In an embodiment of the present application, taking the international video coding standards HEVC (High Efficiency Video Coding) and VVC (Versatile Video Coding), as well as the Chinese national video coding standard AVS as examples, after inputting a video frame image, the video frame image will be divided into a number of non-overlapping processing units according to a block size, and each processing unit will perform similar compression operations. This processing unit is called a CTU (Coding Tree Unit), or an LCU (Largest Coding Unit). The CTU can be further divided more finely to obtain one or more basic coding units CU, and the CU is the most basic element in a coding link. The following introduces some concepts when coding the CU:

[0063] Predictive Coding: Predictive coding includes methods such as intra-frame prediction and inter-frame prediction. After the original video signal is predicted by the selected reconstructed video signal, a residual video signal is obtained. The coding end needs to decide which predictive coding mode to select for the current CU and inform the decoding end. Among them, intra-frame prediction means that the predicted signal comes from the region that has been coded and reconstructed within the same image; inter-frame prediction means that the predicted signal comes from other images (referred to as reference images) that have been coded and are different from the current image.

[0064] Transform & Quantization: After the residual video signal undergoes transformation operations such as DFT (Discrete Fourier Transform) and DCT (Discrete Cosine Transform), the signal is converted into the transform domain, which is called the transform coefficient. The transform coefficient further undergoes a lossy quantization operation, losing certain information, so that the quantized signal is conducive to compressed representation. In some video coding standards, there may be more than one transformation method to choose from, so the coding end also needs to select one of the transformation methods for the current CU and inform the decoding end. The fineness of quantization is usually determined by the quantization parameter (abbreviated as QP). A larger QP value means that a larger range of coefficients will be quantized to the same output, so it usually brings greater distortion and a lower bit rate; on the contrary, a smaller QP value means that a smaller range of coefficients will be quantized to the same output, so it usually brings less distortion and a corresponding higher bit rate.

[0065] Entropy Coding or Statistical Coding: The quantized transform domain signal will be statistically compressed and encoded according to the frequencies of each value, and finally a binary (0 or 1) compressed bitstream will be output. At the same time, other information generated by the encoding, such as the selected coding mode, motion vector data, etc., also needs to be entropy encoded to reduce the bit rate. Statistical coding is a lossless coding method that can effectively reduce the bit rate required to represent the same signal. Common statistical coding methods include Variable Length Coding (VLC) or Content-Adaptive Binary Arithmetic Coding (CABAC).

[0066] Loop Filtering: The signal after transformation and quantization will obtain the reconstructed image through operations such as inverse quantization, inverse transformation, and prediction compensation. Compared with the original image, due to the influence of quantization, some information in the reconstructed image is different from the original image, that is, the reconstructed image will produce distortion. Therefore, filtering operations can be performed on the reconstructed image, such as Deblocking filter (DB), SAO (Sample Adaptive Offset), or ALF (Adaptive Loop Filter) and other filters, which can effectively reduce the distortion degree caused by quantization. Since these filtered reconstructed images will be used as references for subsequent encoded images to predict future image signals, the above filtering operations are also called loop filtering, that is, filtering operations within the encoding loop.

[0067] In an embodiment of the present application, Figure 3 shows a basic flowchart of a video encoder, and in this process, intra-frame prediction is taken as an example for illustration. Among them, the original image signal s k [x, y] and the predicted image signal perform a difference operation to obtain the residual signal u k [x, y], and the residual signal u k [x, y] is processed through transformation and quantization to obtain quantization coefficients. The quantization coefficients, on the one hand, obtain the encoded bitstream through entropy coding, and on the other hand, obtain the reconstructed residual signal u' k [x, y] through inverse quantization and inverse transformation processing. The predicted image signal and the reconstructed residual signal u' k [x, y] are superimposed to generate the image signal The image signal On the one hand, it is input to the intra-mode decision module and the intra-prediction module for intra-prediction processing. On the other hand, the reconstructed image signal s' is output through loop filtering. k [x,y], the reconstructed image signal s' k [x,y] can be used as the reference image for the next frame for motion estimation and motion compensation prediction. Then, based on the result s' of the motion compensation prediction r [x+m x ,y+m y and the intra-prediction result The predicted image signal of the next frame is obtained And the above process is continued to repeat until the encoding is completed.

[0068] Based on the above encoding process, at the decoding end, for each CU, after obtaining the compressed bitstream (i.e., the bitstream), entropy decoding is performed to obtain various mode information and quantization coefficients. Then, the quantization coefficients are processed through inverse quantization and inverse transformation to obtain the residual signal. On the other hand, according to the known encoding mode information, the predicted signal corresponding to the CU can be obtained. Then, after adding the residual signal and the predicted signal, the reconstructed signal is obtained. The reconstructed signal is further processed through operations such as loop filtering to generate the final output signal.

[0069] There are three intra-coding modes in AVS3: ordinary intra-prediction technology, IntraBlock Copying (abbreviated as IBC), and Intra String Copying (abbreviated as ISC). For ordinary intra-prediction technology, as Figure 4 shown, there are a total of 66 intra-prediction modes. Among them, modes 3 - 32, modes 34 - 65 are angular prediction modes, mode 33 is the PCM (Pulse Code Modulation) mode, mode 0 is the DC prediction mode, mode 1 is the Plane prediction mode, and mode 2 is the Bilinear prediction mode.

[0070] Figure 4 The dotted arrows in [ ] represent the Extended IntraPrediction Mode (abbreviated as EIPM) newly introduced in the second stage of AVS3. Modes 12 and 24 represent the vertical prediction mode and the horizontal prediction mode respectively. Assuming the total number of intra-prediction modes is IPD_CNT, then if EIPM is turned off, IPD_CNT is 34; if EIPM is turned on, IPD_CNT is 66.

[0071] In addition, in view of the fact that the traditional single prediction mode cannot adapt to relatively complex image textures, such as Figure 5The image shown contains two parts of texture. The SAWP technology proposes to use two different intra-prediction modes for the same coding block for prediction, and the final predicted image is generated by weighting two intra-predicted images.

[0072] Specifically, assuming that the predicted images obtained by the two intra-prediction modes are predMatrix0 and predMatrix1 respectively, the final predicted image generated by SAWP is predMatrixSawp, the mask is weightMatrixAwap, and [i][j] represents a coordinate point within the image block, then there is the following formula:

[0073] predMatrixSawp[i][j] = (predMatrix0[i][j] × weightMatrixAwap[i][j] + predMatrix1[i][j] × (8 - weightMatrixAwap[i][j]) + 4) >> 3

[0074] Figure 6 Eight weight generation angles are shown. Figure 7 Seven reference weight prediction positions (i.e., seven weight configurations) are shown, and for each weight configuration, a mask weightMatrixAwap can be generated along the Figure 6 eight angles shown, so 8 × 7 = 56 masks can be generated.

[0075] At the same time, for the chrominance prediction method, the related technologies mainly propose the TSCPM (Two-Step Cross-component Prediction Mode) and PMC (Prediction from Multiple Cross-component) technologies.

[0076] Among them, for TSCPM, after the luminance reconstruction block is reconstructed, a linear model is established, and with the luminance reconstruction block (Y) as the input, chrominance prediction blocks (Cb, Cr) are generated, as shown in the following formula:

[0077] pred C = α × Rec Y + β

[0078] Among them, pred C represents the chrominance prediction block; α and β are linear model parameters calculated online; Rec Y represents the luminance reconstruction block.

[0079] After the PMC waits for both the luminance reconstruction block and the Cb chrominance reconstruction block to be reconstructed, it establishes a linear model. Using the luminance reconstruction block (Y) and the Cb chrominance reconstruction block as inputs, it generates the Cr chrominance prediction block, as shown in the following formula:

[0080] Ipred = A × Rec Y + B

[0081] Fpred Cr = Ipred′ - Rec Cb

[0082] Among them, A and B are linear model parameters obtained by online calculation; Rec Y represents the luminance reconstruction block; Ipred represents the intermediate prediction block output by the linear model, and after downsampling, Ipred′ is obtained; Rec Cb represents the Cb chrominance reconstruction block; Fpred Cr represents the Cr chrominance prediction block.

[0083] The processing flow of PMC is as Figure 8 shown. According to the luminance reconstruction block Rec Y the intermediate prediction block Ipred is obtained. The intermediate prediction block Ipred is processed by downsampling to obtain Ipred′. The difference between Ipred′ and the Cb chrominance reconstruction block Rec Cb is taken to obtain the Cr chrominance prediction block Fpred Cr .

[0084] In addition, there are 21 chrominance prediction modes in total. Among them, the DM (Direct Mode) mode means directly using the intra prediction mode of the luminance block as the prediction mode of the chrominance block. The chrominance prediction modes are specifically shown in Table 1 below:

[0085]

[0086]

[0087] Table 1

[0088] Referring to Table 1 above, the serial number of the DM mode in Table 1 is 0, and it is represented as Intra_Chroma_DM and Intra_Chroma_PCM. The serial numbers 1-4 in Table 1 respectively represent using the DC prediction mode, Horizontal prediction mode, Vertical prediction mode, and Bilinear prediction mode to predict the current chroma block; the serial numbers 5-8 respectively represent the TSCPM prediction mode, where the calculation methods of the linear models corresponding to each prediction mode are different (where L represents Left and T represents Top); the serial numbers 9-20 respectively represent the PMC prediction mode, where the calculation methods of the linear models corresponding to each prediction mode are different. EPMC in Table 1 represents Extended-PMC, that is, the extended PMC mode.

[0089] When the luma block adopts the SAWP mode, the DM mode of the chroma block refers to performing intra prediction on the chroma block using the same SAWP mode as the chroma block (the same mask, the same intra prediction mode).

[0090] Assume that the width and height of the luma block are luma_w and luma_h respectively, then the range of the effect of the SAWP mode on the luma block is:

[0091] luma_w ≥ 8 and luma_w ≤ 32

[0092] luma_h ≥ 8 and luma_h ≤ 32

[0093] For videos in the 420 sampling format (the standard default format), the size range of the chroma block that can implement the SAWP mode is:

[0094] chroma_w ≥ 4 and chroma_w ≤ 16

[0095] chroma_h ≥ 4 and chroma_h ≤ 16

[0096] Among them, chroma_w and chroma_h respectively represent the width and height of the chroma block.

[0097] As shown above, due to the characteristics of SAWP itself, its hardware execution speed is slower than that of ordinary intra prediction modes, and currently, basically all chroma prediction modes need to wait for the luma block to be reconstructed before performing the decoding process of the chroma block, thereby reducing the hardware encoding and decoding performance. Based on this, the technical solution of the embodiment of the present application proposes a simplified processing of the chroma block prediction process to improve the hardware encoding and decoding performance on the premise of minimizing the impact on the encoding performance as much as possible.

[0098] The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below:

[0099] Figure 9 The flowchart of a video decoding method according to an embodiment of the present application is shown. This video decoding method can be executed by a device with computing and processing capabilities, such as a terminal device or a server. Referring to Figure 9 as shown, this video decoding method at least includes steps S910 to S940, which are introduced in detail as follows:

[0100] In step S910, the video bitstream is decoded to obtain the prediction mode adopted by the luminance coding block.

[0101] In an embodiment of the present application, the video bitstream is the bitstream obtained after encoding a sequence of video image frames. Among them, the sequence of video image frames includes a series of images, and each image can be further divided into slices, and the slices can be further divided into a series of LCUs (or CTUs), and an LCU contains several CUs. Video image frames are encoded in units of blocks during encoding. In some new video coding standards, such as in the H.264 standard, there are macroblocks (MBs), and a macroblock can be further divided into multiple prediction blocks that can be used for predictive coding. In the HEVC standard, basic concepts such as coding units CU, prediction units (PU), and transform units (TU) are adopted, and various block units are functionally divided and described using a brand-new tree-based structure. For example, a CU can be divided into smaller CUs according to a quadtree, and the smaller CUs can continue to be divided, thus forming a quadtree structure. The coding blocks (including luminance coding blocks, chrominance coding blocks, etc.) in the embodiments of the present application can be CUs, or blocks smaller than CUs, such as smaller blocks obtained by dividing a CU.

[0102] In an embodiment of the present application, the prediction mode that the luminance coding block can adopt can be the Figure 4 66 intra prediction modes shown in, or can also be the SAWP mode, etc.,

[0103] In step S920, if the SAWP mode is adopted by the luminance coding block, then according to the decoded specified prediction mode indication information, the target prediction mode adopted by the chrominance coding block corresponding to the luminance coding block is determined, and the specified prediction mode indication information is used to indicate selecting the target prediction mode from among some chrominance prediction modes.

[0104] In this embodiment, since the hardware execution speed of the SAWP mode is slower than that of the ordinary intra prediction mode, when the SAWP mode is adopted for the luminance coding block, only some chrominance prediction modes can be adopted to implement the decoding process of the chrominance coding block, thereby avoiding the use of chrominance prediction modes with large delays, simplifying the prediction process of the chrominance coding block, and being beneficial to improving the encoding and decoding performance of the hardware.

[0105] In one embodiment of the present application, the above-mentioned partial chrominance prediction modes may include one or a combination of the following:

[0106] Direct mode;

[0107] DC prediction mode, horizontal prediction mode, vertical prediction mode, and Bilinear prediction mode;

[0108] Cross-component two-step prediction mode TSCPM;

[0109] Cross multi-component prediction PMC mode;

[0110] Extended PMC mode.

[0111] In one embodiment of the present application, the above-mentioned partial chrominance prediction modes include one or a combination of the following: the intra prediction mode adopted by adjacent chrominance blocks or luminance blocks; some intra prediction modes selected from the permitted intra prediction modes.

[0112] Specifically, the above-mentioned partial chrominance prediction modes can have the following several ways:

[0113] Way 1: Only the mode corresponding to serial number 0 in Table 1 above is allowed, that is, the DM mode. The DM mode can be the SAWP mode, or the DM mode can also be one of the 2 intra prediction modes selected according to the SAWP.

[0114] Way 2: Only the modes corresponding to serial numbers 1-4 in Table 1 above are allowed, that is, only the DC prediction mode, horizontal prediction mode, vertical prediction mode, and Bilinear prediction mode are allowed.

[0115] Way 3: Only the modes corresponding to serial numbers 5-8 in Table 1 above are allowed, that is, only the TSCPM mode is allowed.

[0116] Way 4: Only the modes corresponding to serial numbers 9-20 in Table 1 above are allowed, that is, only the PMC mode is allowed.

[0117] Way 5: Only the modes corresponding to serial numbers 13-20 in Table 1 above are allowed, that is, only some PMC modes are allowed.

[0118] Way 6: Only the combination of Way 1 and Way 2 is allowed.

[0119] Mode 7: Only combinations of the aforementioned Modes 1, 2, and 3 are allowed.

[0120] Mode 8: Only combinations of the aforementioned Modes 1, 2, and 4 are allowed.

[0121] Mode 9: Only partial chrominance prediction modes are allowed, and the partial chrominance prediction modes can be selected from at least one of the following: partial chrominance prediction modes with serial numbers 0 - 20 in the aforementioned Table 1; intra prediction modes derived from adjacent blocks (chrominance blocks or luma blocks); Figure 4 partial intra prediction modes among the 66 intra prediction modes shown in. Continue to refer to Figure 9 As shown, in step S930, the chrominance coded block is decoded based on the target prediction mode.

[0122] In an embodiment of the present application, it is also possible to determine whether to adopt the chrominance prediction simplification method according to the size of the chrominance coded block; if it is determined to adopt the chrominance prediction simplification method, then the process of determining the target prediction mode adopted by the chrominance coded block corresponding to the luma coded block according to the specified prediction mode indication information obtained by decoding is further executed Figure 9 as shown in.

[0123] In an embodiment of the present application, if the size of the chrominance coded block satisfies at least one of the following conditions, it is determined to adopt the chrominance prediction simplification method:

[0124] The width of the chrominance coded block is greater than or equal to a first set value;

[0125] The width of the chrominance coded block is less than or equal to a second set value, and the second set value is greater than or equal to the first set value;

[0126] The height of the chrominance coded block is greater than or equal to a third set value;

[0127] The height of the chrominance coded block is less than or equal to a fourth set value, and the fourth set value is greater than or equal to the third set value;

[0128] The area of the chrominance coded block is greater than or equal to a fifth set value;

[0129] The area of the chrominance coded block is less than or equal to a sixth set value, and the sixth set value is greater than or equal to the fifth set value.

[0130] Optionally, in the aforementioned embodiment, the first set value may be equal to the third set value, and the second set value may be equal to the fourth set value.

[0131] Optionally, in an embodiment of the present application, the numerical values of the first set value and the third set value may be 8.

[0132] In one embodiment of the present application, if the combination of the width and height of a chroma coding block is not a specified numerical combination, a simplified chroma prediction method can be determined; wherein, the specified numerical combinations include at least one of the following numerical combinations: (4, 4), (4, 8), (4, 16), (8, 4), (16, 4), (8, 8), (8, 16), (16, 8), (16, 16).

[0133] Specifically, in combination with the above embodiment, if the size of a chroma coding block meets at least one of the following conditions, a simplified chroma prediction method can be determined:

[0134] Condition 1: chroma_w (the width of the chroma coding block) is greater than or equal to k1 (k1 is the first set value).

[0135] Condition 2: chroma_w is less than or equal to k2 (k2 is the second set value).

[0136] Condition 3: chroma_h (the height of the chroma coding block) is greater than or equal to k3 (k3 is the third set value). Optionally, k1 = k3 = 8.

[0137] Condition 4: chroma_h is greater than or equal to k4 (k4 is the fourth set value). Optionally, k1 = k3 < k2 = k4.

[0138] Condition 5: chroma_w × chroma_h is greater than or equal to k5 (k5 is the fifth set value). Optionally, k5 can be 64.

[0139] Condition 6: chroma_w × chroma_h is less than or equal to k6 (k6 is the sixth set value).

[0140] Condition 7: chroma_w and chroma_h are not specified values. For example, the specified values can be at least one of the following: (4, 4), (4, 8), (4, 16), (8, 4), (16, 4), (8, 8), (8, 16), (16, 8), (16, 16).

[0141] In one embodiment of the present application, the prediction modes included in the partial prediction modes corresponding to chroma coding blocks of different sizes may not be exactly the same. For example, the prediction modes included in the partial prediction modes corresponding to chroma coding blocks with smaller sizes may be fewer; the prediction modes included in the partial prediction modes corresponding to chroma coding blocks with larger sizes may be more.

[0142] In an embodiment of the present application, according to some pre-known chrominance prediction modes, the decoding process of specific bits in the specified prediction mode indication information can also be skipped, where the specific bits are associated with chrominance prediction modes other than some chrominance prediction modes.

[0143] For example, as shown in Table 2 below, if the some chrominance prediction modes in the foregoing embodiment are the chrominance prediction modes with serial numbers 0 - 8 and 13 - 20 in Table 1 above (i.e., excluding the chrominance prediction modes with serial numbers 9 - 12), then it is not necessary to decode the penultimate identification bit in Table 1 (because the penultimate bit of the chrominance prediction modes with serial numbers 13 - 20 is 1). This can reduce the number of encoded bits, and thus improve the encoding and decoding efficiency. In this case, the specified prediction mode indication information can be represented by, for example, the 0, 1 binary identifiers in Table 2, which reduces the penultimate identification bit in Table 1 compared with Table 1.

[0144]

[0145]

[0146] Table 2

[0147] Again, for example, if the some chrominance prediction modes in the foregoing embodiment are only the DM mode, then all the identification bits shown in Table 1 do not need to be decoded, and of course, the encoding end does not need to perform encoding either. After meeting the conditions in the foregoing embodiment, the intra prediction mode of the chrominance coding block can be directly determined as the DM mode. This way also reduces the number of encoded bits, and thus improves the encoding and decoding efficiency.

[0148] Figure 10 The flowchart of a video coding method according to an embodiment of the present application is shown. This video coding method can be executed by a device with computing and processing capabilities, such as a terminal device or a server. Referring to Figure 10 As shown, this video coding method at least includes steps S1010 to S1040, which are introduced in detail as follows:

[0149] In step S1010, determine the prediction mode used when encoding the luminance coding block.

[0150] In step S1020, if the SAWP mode is used for the luminance coding block, select the target prediction mode used for the chrominance coding block corresponding to the luminance coding block from some chrominance prediction modes.

[0151] In step S1030, generate the specified prediction mode indication information according to the target prediction mode, where the specified prediction mode indication information is used to indicate the selection of the target prediction mode from some chrominance prediction modes.

[0152] In step S1040, the specified prediction mode indication information is encoded into the video bitstream.

[0153] It should be noted that the processing process at the encoding end is similar to that at the decoding end, such as the selection method of some chrominance prediction modes, etc., which will not be elaborated here.

[0154] The technical solution of the embodiment of the present application enables when the SAWP mode is adopted for the luminance coding block, only some chrominance prediction modes can be used to implement the decoding process of the chrominance coding block, thereby avoiding the use of chrominance prediction modes with larger delays, realizing the simplified processing of the prediction process of the chrominance coding block, and being beneficial to improving the encoding and decoding performance of the hardware.

[0155] The following introduces the apparatus embodiment of the present application, which can be used to execute the method described in the above embodiments of the present application. For the details not disclosed in the apparatus embodiment of the present application, please refer to the method embodiment above of the present application.

[0156] Figure 11 The block diagram of a video decoding apparatus according to an embodiment of the present application is shown. This video decoding apparatus can be set in a device with computing and processing functions, such as in a terminal device or a server.

[0157] Refer to [[ID='18']] Figure 11 As shown, a video decoding apparatus 1100 according to an embodiment of the present application includes: a decoding unit 1102, a first determination unit 1104, and a processing unit 1106.

[0158] Among them, the decoding unit 1102 is configured to perform decoding processing on the video bitstream to obtain the prediction mode adopted by the luminance coding block; the first determination unit 1104 is configured to, if the adopted by the luminance coding block is the spatial angular weighted prediction (SAWP) mode, determine the target prediction mode adopted by the chrominance coding block corresponding to the luminance coding block according to the decoded specified prediction mode indication information, and the specified prediction mode indication information is used to indicate the selection of the target prediction mode from some chrominance prediction modes; the processing unit 1106 is configured to perform decoding processing on the chrominance coding block based on the target prediction mode.

[0159] In some embodiments of the present application, based on the foregoing solution, the some chrominance prediction modes include one or a combination of the following:

[0160] Direct mode;

[0161] DC prediction mode, horizontal prediction mode, vertical prediction mode, and Bilinear prediction mode;

[0162] Trans-component two-step prediction mode (TSCPM);

[0163] Cross-component prediction PMC mode;

[0164] Extended PMC mode.

[0165] In some embodiments of the present application, based on the foregoing solution, the partial chrominance prediction mode includes a combination of one or more of the following: the intra prediction mode adopted by adjacent chrominance blocks or luminance blocks; a partial intra prediction mode selected from the permitted intra prediction modes.

[0166] In some embodiments of the present application, based on the foregoing solution, the first determination unit 1104 is further configured to: determine whether to adopt a chrominance prediction simplification method according to the size of the chrominance coding block; if it is determined to adopt the chrominance prediction simplification method, then determine the target prediction mode adopted by the chrominance coding block corresponding to the luminance coding block according to the decoded specified prediction mode indication information.

[0167] In some embodiments of the present application, based on the foregoing solution, the first determination unit 1104 is configured to: if the size of the chrominance coding block satisfies at least one of the following conditions, determine to adopt the chrominance prediction simplification method:

[0168] The width of the chrominance coding block is greater than or equal to a first set value;

[0169] The width of the chrominance coding block is less than or equal to a second set value, and the second set value is greater than or equal to the first set value;

[0170] The height of the chrominance coding block is greater than or equal to a third set value;

[0171] The height of the chrominance coding block is less than or equal to a fourth set value, and the fourth set value is greater than or equal to the third set value;

[0172] The area of the chrominance coding block is greater than or equal to a fifth set value;

[0173] The area of the chrominance coding block is less than or equal to a sixth set value, and the sixth set value is greater than or equal to the fifth set value.

[0174] In some embodiments of the present application, based on the foregoing solution, the first set value is equal to the third set value, and the second set value is equal to the fourth set value.

[0175] In some embodiments of the present application, based on the foregoing solution, the values of the first set value and the third set value are both 8.

[0176] In some embodiments of the present application, based on the foregoing solution, the first determination unit 1104 is configured to: if the combination of the width and height of the chrominance coding block is not a specified numerical combination, determine to adopt a simplified chrominance prediction method; wherein, the specified numerical combination includes at least one of the following numerical combinations: (4, 4), (4, 8), (4, 16), (8, 4), (16, 4), (8, 8), (8, 16), (16, 8), (16, 16).

[0177] In some embodiments of the present application, based on the foregoing solution, the prediction modes included in the partial prediction modes corresponding to chrominance coding blocks of different sizes are not exactly the same.

[0178] In some embodiments of the present application, based on the foregoing solution, the processing unit 1106 is further configured to: according to the pre-known partial chrominance prediction mode, skip the decoding process of specific bits in the specified prediction mode indication information, and the specific bits are associated with chrominance prediction modes other than the partial chrominance prediction mode.

[0179] Figure 12 The block diagram of a video coding device according to an embodiment of the present application is shown. The video coding device can be arranged in a device with computing and processing functions, such as a terminal device or a server.

[0180] Refer to Figure 12 As shown, a video coding device 1200 according to an embodiment of the present application includes: a second determination unit 1202, a selection unit 1204, a generation unit 1206, and an encoding unit 1208.

[0181] Among them, the second determination unit 1202 is configured to determine the prediction mode adopted when encoding a luminance coding block; the selection unit 1204 is configured to, if the SAWP mode is adopted for the luminance coding block, select the target prediction mode adopted by the chrominance coding block corresponding to the luminance coding block from the partial chrominance prediction modes; the generation unit 1206 is configured to generate specified prediction mode indication information according to the target prediction mode, and the specified prediction mode indication information is used to indicate the selection of the target prediction mode from the partial chrominance prediction modes; the encoding unit 1208 is configured to encode the specified prediction mode indication information into a video bitstream.

[0182] Figure 13 The structural schematic diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application is shown.

[0183] It should be noted that Figure 13The computer system 1300 of the illustrated electronic device is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0184] As Figure 13 shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1302 or the program loaded from the storage section 1308 into the random access memory (RAM) 1303, such as executing the method described in the above embodiments. In the RAM 1303, various programs and data required for system operation are also stored. The CPU 1301, ROM 1302, and RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0185] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as required. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as required so that the computer program read from it can be installed into the storage section 1308 as required.

[0186] Particularly, according to the embodiments of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 1309, and / or installed from the removable medium 1311. When the computer program is executed by the central processing unit (CPU) 1301, various functions defined in the system of the present application are executed.

[0187] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0188] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Among them, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0189] The units involved in the embodiments described in this application can be implemented in software or in hardware, and the described units can also be provided in a processor. Among them, the names of these units do not, in some cases, constitute a limitation on the unit itself.

[0190] As another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist separately without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the methods described in the above embodiments.

[0191] It should be noted that although several modules or units of a device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0192] Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software or by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (such as a personal computer, a server, a touch terminal, or a network device, etc.) to execute the methods according to the embodiments of this application.

[0193] After considering the specification and practicing the embodiments disclosed herein, those skilled in the art will readily conceive of other embodiments of this application. This application is intended to cover any variations, uses, or adaptations of this application, which follow the general principles of this application and include known common knowledge or conventional technical means in the technical field not disclosed in this application.

[0194] It should be understood that this application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is only limited by the appended claims.

Claims

1. A video decoding method, characterized in that, Including: Performing decoding processing on a video bitstream to obtain a prediction mode adopted by a luminance coding block; If the adopted prediction mode of the luminance coding block is a spatial angular weighted prediction (SAWP) mode, determining a target prediction mode adopted by a chrominance coding block corresponding to the luminance coding block according to the decoded specified prediction mode indication information, where the specified prediction mode indication information is used to indicate the target prediction mode in a binary identifier manner in part of chrominance prediction modes, and the part of chrominance prediction modes is a part of chrominance prediction modes selected from existing chrominance prediction modes; Performing decoding processing on the chrominance coding block based on the target prediction mode; Wherein, the video decoding method further includes: skipping a decoding process of specific binary indication bits in the specified prediction mode indication information according to the pre-known part of chrominance prediction modes, and the specific binary indication bits are associated with other chrominance prediction modes except the part of chrominance prediction modes in the existing chrominance prediction modes.

2. The video decoding method according to claim 1, wherein The part of chrominance prediction modes includes one or part of the following combinations: Direct mode; DC prediction mode, horizontal prediction mode, vertical prediction mode, and bilinear prediction mode; Trans-component two-step prediction mode (TSCPM); Cross multi-component prediction (PMC) mode; Extended PMC mode.

3. The video decoding method according to claim 1, wherein The part of chrominance prediction modes includes one or more of the following combinations: An intra prediction mode adopted by an adjacent chrominance block or luminance block; Part of intra prediction modes selected from allowed intra prediction modes.

4. The video decoding method according to claim 1, wherein The video decoding method further includes: Determining whether to adopt a chrominance prediction simplification method according to the size of the chrominance coding block; If it is determined to adopt the chrominance prediction simplification method, determining a target prediction mode adopted by a chrominance coding block corresponding to the luminance coding block according to the decoded specified prediction mode indication information.

5. The video decoding method according to claim 4, wherein Determining whether to adopt a chrominance prediction simplification method according to the size of the chrominance coding block includes: if the size of the chrominance coding block satisfies at least one of the following conditions, determining to adopt the chrominance prediction simplification method: The width of the chrominance coding block is greater than or equal to a first set value; The width of the chrominance coding block is less than or equal to a second set value, and the second set value is greater than or equal to the first set value; The height of the chrominance coding block is greater than or equal to a third set value; The height of the chrominance coding block is less than or equal to a fourth set value, and the fourth set value is greater than or equal to the third set value; The area of the chrominance coding block is greater than or equal to a fifth set value; The area of the chrominance coding block is less than or equal to a sixth set value, and the sixth set value is greater than or equal to the fifth set value.

6. The video decoding method according to claim 5, wherein The first set value is equal to the third set value, and the second set value is equal to the fourth set value.

7. The video decoding method according to claim 5, wherein The numerical values of the first set value and the third set value are both 8.

8. The video decoding method according to claim 4, wherein Determining whether to adopt a chrominance prediction simplification method according to the size of the chrominance coding block includes: If the combination of the width and height of the chrominance coding block is not a specified numerical combination, determine to adopt the chrominance prediction simplification method; wherein, the specified numerical combination includes at least one of the following numerical combinations: (4, 4), (4, 8), (4, 16), (8, 4), (16, 4), (8, 8), (8, 16), (16, 8), (16, 16).

9. The video decoding method according to claim 4, wherein The prediction modes included in the partial prediction modes corresponding to chrominance coding blocks of different sizes are not exactly the same.

10. A video encoding method, characterized in that, Include: Determine the prediction mode adopted by the luminance coding block during coding; If the luminance coding block adopts the SAWP mode, select the target prediction mode adopted by the chrominance coding block corresponding to the luminance coding block from the partial chrominance prediction modes, and the partial chrominance prediction modes are a part of the existing chrominance prediction modes selected therefrom; Generate specified prediction mode indication information according to the target prediction mode, and the specified prediction mode indication information is used to indicate the target prediction mode in the partial chrominance prediction modes by means of a binary identifier; Encode the specified prediction mode indication information into the video bitstream; wherein, according to the pre-known partial chrominance prediction modes, skip the encoding process of specific binary indication bits in the specified prediction mode indication information, and the specific binary indication bits are associated with other chrominance prediction modes in the existing chrominance prediction modes except the partial chrominance prediction modes.

11. A video decoding device, characterized in that, Include: A decoding unit configured to perform decoding processing on the video bitstream to obtain the prediction mode adopted by the luminance coding block; A first determination unit configured to, if the luminance coding block adopts the spatial angle weighted prediction (SAWP) mode, determine the target prediction mode adopted by the chrominance coding block corresponding to the luminance coding block according to the decoded specified prediction mode indication information, and the specified prediction mode indication information is used to indicate the target prediction mode in the partial chrominance prediction modes by means of a binary identifier, and the partial chrominance prediction modes are a part of the existing chrominance prediction modes selected therefrom; A processing unit configured to perform decoding processing on the chrominance coding block based on the target prediction mode; Wherein, the processing unit is further configured to: according to the pre-known partial chrominance prediction modes, skip the decoding process of specific binary indication bits in the specified prediction mode indication information, and the specific binary indication bits are associated with other chrominance prediction modes in the existing chrominance prediction modes except the partial chrominance prediction modes.

12. A video encoding device, characterized in that, Include: A second determination unit configured to determine the prediction mode adopted by the luminance coding block during coding; A selection unit configured to, if the luminance coding block adopts the SAWP mode, select the target prediction mode adopted by the chrominance coding block corresponding to the luminance coding block from the partial chrominance prediction modes, and the partial chrominance prediction modes are a part of the existing chrominance prediction modes selected therefrom; A generation unit configured to generate specified prediction mode indication information according to the target prediction mode, where the specified prediction mode indication information is used to indicate the target prediction mode in a manner of a binary identifier for the partial chrominance prediction mode; An encoding unit configured to encode the specified prediction mode indication information into a video bitstream; wherein, according to the pre-known partial chrominance prediction mode, the encoding process of specific binary indication bits in the specified prediction mode indication information is skipped, and the specific binary indication bits are associated with other chrominance prediction modes except the partial chrominance prediction mode in the existing chrominance prediction modes.

13. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the video decoding method according to any one of claims 1 to 9, or implements the video encoding method according to claim 10.

14. An electronic device, characterized in that, Comprising: One or more processors; A storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the video decoding method according to any one of claims 1 to 9, or implement the video encoding method according to claim 10.

15. A computer program product, characterized in that, The computer program product includes a computer program, the computer program is stored in a computer-readable storage medium, and a processor of a computer device reads and executes the computer program from the computer-readable storage medium, so that the computer device executes the video decoding method according to any one of claims 1 to 9, or executes the video encoding method according to claim 10.

16. A method for storing a video stream, characterized in that The video bitstream is decoded according to the video decoding method according to any one of claims 1 to 9, or the video bitstream is generated according to the video encoding method according to claim 10.

Citation Information

Patent Citations

  • Intra video coding using a decoupled tree structure

    CN109565603A