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

By counting only some intra prediction modes to update the list of maximum possible intra prediction modes, the problem of high hardware cost in FIMC technology is solved and performance improvement is achieved.

CN114979656BActive Publication Date: 2024-11-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110194843.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-21
Publication Date
2024-11-19
Estimated Expiration
2041-02-21

AI Technical Summary

Technical Problem

FIMC technology requires the establishment of a buffer with length IPD_CNT to count all intra prediction modes, resulting in high hardware implementation costs.

Method used

The memory requirement of hardware is reduced by counting only some of the intra prediction modes to update the list of maximum possible intra prediction modes.

Benefits of technology

Reduces hardware implementation costs and improves codec performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114979656B_ABST
    Figure CN114979656B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a video encoding and decoding method, device, computer-readable medium and electronic device. The video decoding method includes: decoding a coding block of a video image frame to obtain a target intra-frame prediction mode corresponding to the coding block; if the target intra-frame prediction mode is a specified intra-frame prediction mode, updating the statistical value of the target intra-frame prediction mode to obtain the updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is less than the total number of intra-frame prediction modes; according to the updated statistical value of the specified intra-frame prediction mode, updating the maximum possible intra-frame prediction mode list; decoding other coding blocks of the video image frame based on the updated maximum possible intra-frame prediction mode list. The technical solution of the embodiments of the present application can reduce the hardware implementation cost, and at the same time can also improve the encoding and decoding performance to a certain extent.
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 technology, and in particular to a video encoding and decoding method, device, computer-readable medium and electronic device. Background Art

[0002] FIMC (Frequency-based Intra Mode Coding) technology requires the establishment of a buffer with a length of IPD_CNT (indicating the total number of intra prediction modes), and the statistics of the intra prediction modes corresponding to the coding blocks in the decoded area are performed to designate the two intra prediction modes with the highest frequency as the most probable intra prediction modes (Most Probable Mode, MPM) corresponding to the current coding block to be decoded. However, on-chip storage is extremely expensive, and FIMC needs to use a buffer with a length of IPD_CNT to count all intra prediction modes, and the hardware implementation cost is high. Summary of the invention

[0003] The embodiments of the present application provide a video encoding and decoding method, apparatus, computer-readable medium and electronic device, which can update the MPM list by performing statistics on some intra-frame prediction modes at least to a certain extent, thereby reducing the hardware implementation cost and improving the encoding and decoding performance to a certain extent.

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

[0005] According to one aspect of an embodiment of the present application, a video decoding method is provided, comprising: decoding a coding block of a video image frame to obtain a target intra-frame prediction mode corresponding to the coding block; if the target intra-frame prediction mode is a specified intra-frame prediction mode, updating the statistical value of the target intra-frame prediction mode to obtain an updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is less than the total number of intra-frame prediction modes; updating a maximum possible intra-frame prediction mode list according to the updated statistical value of the specified intra-frame prediction mode; and decoding other coding blocks of the video image frame based on the updated maximum possible intra-frame prediction mode list.

[0006] According to one aspect of an embodiment of the present application, a video encoding method is provided, comprising: determining a target intra-frame prediction mode corresponding to a coding block of a video image frame; if the target intra-frame prediction mode is a specified intra-frame prediction mode, updating a statistical value of the target intra-frame prediction mode to obtain an updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is less than the total number of intra-frame prediction modes; updating a maximum possible intra-frame prediction mode list according to the updated statistical value of the specified intra-frame prediction mode; and encoding other coding blocks of the video image frame based on the updated maximum possible intra-frame prediction mode list.

[0007] According to one aspect of an embodiment of the present application, a video decoding device is provided, comprising: a decoding unit, configured to decode a coding block of a video image frame to obtain a target intra-frame prediction mode corresponding to the coding block; a first updating unit, configured to update a statistical value of the target intra-frame prediction mode if the target intra-frame prediction mode is a specified intra-frame prediction mode, to obtain an updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is less than the total number of intra-frame prediction modes; a second updating unit, configured to update a maximum possible intra-frame prediction mode list according to the updated statistical value of the specified intra-frame prediction mode; and a processing unit, configured to decode other coding blocks of the video image frame based on the updated maximum possible intra-frame prediction mode list.

[0008] In some embodiments of the present application, based on the aforementioned scheme, the specified intra-frame prediction mode includes a plurality of intra-frame prediction modes selected from a horizontal prediction mode, a vertical prediction mode, a Bilinear prediction mode, a DC prediction mode, a quasi-horizontal prediction mode and a quasi-vertical prediction mode; wherein the quasi-horizontal prediction mode includes modes 56 to 59, mode 23 and mode 25 in the intra-frame prediction mode; the quasi-vertical prediction mode includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode.

[0009] In some embodiments of the present application, based on the aforementioned solution, the specified intra prediction mode includes:

[0010] a horizontal prediction mode and a vertical prediction mode; or

[0011] Horizontal prediction mode, vertical prediction mode and Bilinear prediction mode; or

[0012] Horizontal prediction mode, vertical prediction mode, Bilinear prediction mode and DC prediction mode.

[0013] In some embodiments of the present application, based on the aforementioned solution, the specified intra-frame prediction mode includes: at least two intra-frame prediction modes selected from mode 0 to mode 33 in the intra-frame prediction mode.

[0014] In some embodiments of the present application, based on the aforementioned solution, the statistical values ​​of each prediction mode in the specified intra-frame prediction mode are set to the same value during initialization; or

[0015] The statistical values ​​of each prediction mode in the designated intra-frame prediction mode are respectively set to the numerical values ​​corresponding to the respective prediction modes during initialization.

[0016] In some embodiments of the present application, based on the above-mentioned solution, the most likely intra-frame prediction mode list includes the intra-frame prediction mode selected from the specified intra-frame prediction mode when initialized.

[0017] In some embodiments of the present application, based on the above scheme, if the most likely intra prediction mode list includes two intra prediction modes when initialized, the two intra prediction modes include:

[0018] a horizontal prediction mode and a vertical prediction mode; or

[0019] Horizontal prediction mode and Bilinear prediction mode; or

[0020] Vertical prediction mode and Bilinear prediction mode.

[0021] In some embodiments of the present application, based on the aforementioned solution, the first updating unit is configured to: increase the set step size to the statistical value of the target intra-frame prediction mode, wherein the statistical values ​​of each intra-frame prediction mode in the specified intra-frame prediction mode are increased by the same set step size each time the statistical values ​​are updated; or

[0022] A set step size corresponding to the target prediction mode is added to the statistical value of the target intra prediction mode, wherein the set step sizes corresponding to the respective intra prediction modes in the designated intra prediction modes are different.

[0023] In some embodiments of the present application, based on the aforementioned scheme, the second update unit is configured to: based on the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list, select an intra-frame prediction mode that matches the number from the specified intra-frame prediction modes in order of statistical values ​​from large to small to replace the intra-frame prediction mode included in the maximum possible intra-frame prediction mode list.

[0024] In some embodiments of the present application, based on the above-mentioned solution, the video decoding device further includes: a processing unit, configured to determine whether the corresponding coding block needs to adopt a simplified intra-frame coding method based on frequency information according to at least one of the following methods, and when it is determined that the simplified intra-frame coding method based on frequency information needs to be adopted, judge whether the target intra-frame prediction mode is the specified intra-frame prediction mode:

[0025] The value of the index identifier contained in the sequence header of the coding block corresponding to the video image frame sequence;

[0026] The value of the index identifier contained in the image header of the coding block corresponding to the video image frame.

[0027] In some embodiments of the present application, based on the above-mentioned solution, the processing unit is further configured to: if the value of the index identifier contained in the sequence header of the coding block corresponding to the video image frame sequence indicates that the coding block corresponding to the video image frame sequence needs to adopt a simplified intra-frame coding method based on frequency information, then determine that the coding block corresponding to the video image frame sequence adopts one of the intra-frame prediction modes from mode 0 to mode 33 of the intra-frame prediction mode;

[0028] If the value of the index identifier contained in the image header of the coding block corresponding to the video image frame indicates that the coding block corresponding to the video image frame needs to adopt a simplified intra-frame coding method based on frequency information, it is determined that the coding block corresponding to the video image frame adopts an intra-frame prediction mode from mode 0 to mode 33 of the intra-frame prediction mode.

[0029] According to one aspect of an embodiment of the present application, a video encoding device is provided, including: a determination unit, configured to determine a target intra-frame prediction mode corresponding to a coding block of a video image frame; a third updating unit, configured to update a statistical value of the target intra-frame prediction mode if the target intra-frame prediction mode is a specified intra-frame prediction mode, and obtain an updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is less than the total number of intra-frame prediction modes; a fourth updating unit, configured to update a maximum possible intra-frame prediction mode list according to the updated statistical value of the specified intra-frame prediction mode; and an encoding unit, configured to encode other coding blocks of the video image frame based on the updated maximum possible intra-frame prediction mode list.

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

[0031] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the 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, 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 performs the video decoding method provided in the above various optional embodiments.

[0033] In the technical solutions provided in some embodiments of the present application, when the target intra-frame prediction mode corresponding to the coding block is a specified intra-frame prediction mode, the statistical value of the target intra-frame prediction mode is updated to obtain the updated statistical value of the specified intra-frame prediction mode, and the number of specified intra-frame prediction modes is less than the total number of intra-frame prediction modes. Then, according to the updated statistical value of the specified intra-frame prediction mode, the maximum possible intra-frame prediction mode list is updated, so that only some intra-frame prediction modes can be counted to update the MPM list, thereby reducing the hardware implementation cost and improving the encoding and decoding performance to a certain extent.

[0034] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

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

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

[0038] Figure 3 shows a basic flow chart of a video encoder;

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

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

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

[0042] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0043] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of 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 comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0044] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0045] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may 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.

[0046] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0047] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0048] 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.

[0049] like Figure 1 As shown, the system architecture 100 includes a plurality of terminal devices, which can communicate with each other through, for example, a 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. Figure 1 In the embodiment of the present invention, the first terminal device 110 and the second terminal device 120 perform unidirectional data transmission.

[0050] 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 to the second terminal device 120 via the network 150. The encoded video data is transmitted in the form of one or more encoded video code streams. The second terminal device 120 may receive the encoded video data from the network 150, decode the encoded video data to restore the video data, and display the video picture based on the restored video data.

[0051] 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 bidirectional transmission of encoded video data, which may occur during a video conference, for example. For bidirectional 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 collected by the terminal device) to transmit to the other terminal device of the third terminal device 130 and the fourth terminal device 140 through the network 150. Each of the third terminal device 130 and the fourth terminal device 140 may also receive the encoded video data transmitted by the other terminal device of the third terminal device 130 and the fourth terminal device 140, and may decode the encoded video data to restore the video data, and may display the video picture on an accessible display device according to the restored video data.

[0052] exist Figure 1In the embodiment of the present invention, 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 may not be limited thereto. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network 150 represents any number of networks that transmit 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 switching and / or packet switching channels. The network may include a telecommunications network, a local area network, a wide area network and / or the Internet. For the purpose of the present application, unless explained below, the architecture and topology of the network 150 may be irrelevant to the operation disclosed in the present application.

[0053] In one embodiment of the present application, Figure 2 The placement of the video encoding device and the video decoding device in the streaming environment is shown. The subject matter disclosed in the present application can be equally applicable to other video-supported applications, including, for example, video conferencing, digital TV (television), storing compressed video on digital media including CD, DVD, memory stick, etc.

[0054] The streaming system may include an acquisition subsystem 213, which may include a video source 201 such as a digital camera, which creates an uncompressed video picture stream 202. In an embodiment, the video picture stream 202 includes samples taken by a digital camera. The video picture stream 202 is depicted as a thick line to emphasize the high data volume of the video picture stream compared to the encoded video data 204 (or the encoded video code stream 204), and the video picture stream 202 can be processed by an electronic device 220, which 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 hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. Compared to the video picture stream 202, the encoded video data 204 (or the encoded video code stream 204) is depicted as a thin line to emphasize the lower data volume of the encoded video data 204 (or the encoded video code stream 204), which can be stored on the streaming server 205 for future use. One or more streaming client subsystems, such as Figure 2The client subsystem 206 and the client subsystem 208 in the streaming server 205 can access the streaming server 205 to retrieve the copy 207 and the copy 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 (e.g., 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 (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of these standards include ITU-T H.265. In an embodiment, the video coding 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.

[0055] 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.

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

[0057] Predictive Coding: Predictive coding includes intra-frame prediction and inter-frame prediction. The original video signal is predicted by the selected reconstructed video signal to obtain the residual video signal. The encoder needs to decide which predictive coding mode to choose for the current CU and inform the decoder. Intra-frame prediction means that the predicted signal comes from the encoded and reconstructed area in the same image; inter-frame prediction means that the predicted signal comes from other images that have been encoded and different from the current image (called reference images).

[0058] Transform & Quantization: After the residual video signal is transformed by DFT (Discrete Fourier Transform), DCT (Discrete Cosine Transform), etc., the signal is converted into the transform domain, which is called the transform coefficient. The transform coefficient is further subjected to lossy quantization operation, which loses a certain amount of information, making the quantized signal conducive to compression expression. In some video coding standards, there may be more than one transform method to choose from, so the encoder also needs to select one of the transform methods for the current CU and inform the decoder. The degree of quantization is usually determined by the quantization parameter (QP). A larger QP value means that coefficients with a larger value range will be quantized to the same output, which usually results in greater distortion and lower bit rate; on the contrary, a smaller QP value means that coefficients with a smaller value range will be quantized to the same output, which usually results in less distortion and a higher bit rate.

[0059] Entropy Coding or Statistical Coding: The quantized transform domain signal will be statistically compressed and encoded according to the frequency of occurrence of each value, and finally output as a binary (0 or 1) compressed bit stream. At the same time, the encoding generates other information, such as the selected coding mode, motion vector data, etc., which also need 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 express the same signal. Common statistical coding methods include variable length coding (VLC) or context-based binary arithmetic coding (CABAC).

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

[0061] In one embodiment of the present application, Figure 3 The basic flow chart of a video encoder is shown in FIG. 1 , in which intra-frame prediction is used as an example for explanation. In which the original image signal s k [x,y] and predicted image signal Perform difference operation to obtain the residual signal u k [x,y], residual signal u k [x,y] is transformed and quantized to obtain the quantized coefficients. The quantized coefficients are entropy coded to obtain the encoded bit stream, and the reconstructed residual signal u' is obtained through inverse quantization and inverse transformation. k [x,y], predicted image signal and reconstructed residual signal u' k [x,y] superposition generates image signal Image signal On the one hand, it is input to the intra-frame mode decision module and the intra-frame prediction module for intra-frame prediction processing, and on the other hand, the reconstructed image signal s' is output through loop filtering k [x,y], 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 of motion compensation prediction s' r [x+m x ,y+m y ] and the intra-frame prediction result f(s k *[x,y]) to get the predicted image signal of the next frame And continue to repeat the above process until the encoding is completed.

[0062] Based on the above encoding process, at the decoding end, for each CU, after obtaining the compressed code stream (i.e., bit stream), entropy decoding is performed to obtain various mode information and quantization coefficients. The quantization coefficients are then dequantized and inversely transformed to obtain a residual signal. On the other hand, based on the known encoding mode information, the prediction signal corresponding to the CU can be obtained, and then the residual signal and the prediction signal are added to obtain the reconstructed signal. The reconstructed signal is then subjected to loop filtering and other operations to generate the final output signal.

[0063] When decoding an image, a frame of the image is usually divided into image blocks (LCUs) of equal size for reconstruction, and the LCUs are decoded in order from left to right and from top to bottom according to raster scanning (each row of LCUs, from left to right). Each LCU is divided into multiple sub-blocks by a quadtree (Quad-Tree, QT for short), a binary tree (Binary-Tree, BT for short), and an extended quadtree (ExtendedQuad-tree, EQT for short), and the sub-blocks are processed in order from left to right and from top to bottom.

[0064] There are three intra-frame coding modes in AVS3: ordinary intra-frame prediction technology, intra-frame block copying technology (IntraBlock Copying, referred to as IBC) and intra-frame string copying technology (IntraString Copying, referred to as ISC). Figure 4 As shown, there are 66 intra-frame prediction modes, of which modes 3-32 and 34-65 are angle prediction modes, mode 33 is PCM (Pulse Code Modulation) mode, mode 0 is DC prediction mode, mode 1 is Plane prediction mode, and mode 2 is Bilinear prediction mode.

[0065] Figure 4 The dotted arrow in the middle indicates the extended intraprediction mode (EIPM) newly introduced in the second phase of AVS3. Mode 12 and mode 24 indicate the vertical prediction mode and the horizontal prediction mode, respectively. Assuming the total number of intra prediction modes is IPD_CNT, if EIPM is turned off, IPD_CNT is 34; if EIPM is turned on, IPD_CNT is 66.

[0066] When using FIMC technology, it is necessary to establish a buffer of length IPD_CNT, and to count the intra-frame prediction modes corresponding to the coding blocks in the decoded area, so as to designate the two intra-frame prediction modes with the highest frequency as the MPM corresponding to the current coding block to be decoded. As shown in Table 1 below, there are 2 MPMs in the current MPM list of AVS3. If the prefix contained in the parsed coding block is 1, it indicates that the intra-frame prediction mode of the current coding block is in the MPM list, and then the 1-bit suffix in the coding block is parsed to specifically distinguish the MPM mode. If the prefix in the parsed coding block is 0, it means that the intra-frame prediction mode of the current coding block is not in the MPM list, and then it is necessary to parse the 5-bit or 6-bit fixed-length code to specifically distinguish the intra-frame prediction mode of the current coding block.

[0067]

[0068] Table 1

[0069] However, on-chip storage is extremely expensive, and FIMC needs to use a buffer of length IPD_CNT to count all possible intra-frame prediction modes, which results in high hardware implementation costs. Based on this, the technical solution of the embodiment of the present application proposes to cancel the process of counting unnecessary intra-frame prediction modes, and only count some intra-frame prediction modes to update the MPM list, thereby reducing the hardware implementation cost and improving the encoding and decoding performance to a certain extent.

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

[0071] Figure 5 A flowchart of a video decoding method according to an embodiment of the present application is shown. The video decoding method can be executed by a device with a computing and processing function, such as a terminal device or a server. Figure 5 As shown, the video decoding method at least includes steps S510 to S540, which are described in detail as follows:

[0072] In step S510, a coding block of a video image frame is decoded to obtain a target intra-frame prediction mode corresponding to the coding block.

[0073] In one embodiment of the present application, a video image frame sequence includes a series of images, each of which can be further divided into slices, which can be further divided into a series of LCUs (or CTUs), and the LCU contains several CUs. When encoding, the video image frame is encoded in blocks. In some new video coding standards, such as the H.264 standard, there are macroblocks (MB), which can be further divided into multiple prediction blocks (prediction) 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 used to functionally divide various block units and describe them using a new tree-based structure. For example, CU can be divided into smaller CUs according to a quadtree, and the smaller CU can be further divided to form a quadtree structure. The coding block in the embodiment of the present application can be a CU, or a smaller block than a CU, such as a smaller block obtained by dividing a CU.

[0074] In one embodiment of the present application, the target intra-frame prediction mode corresponding to the coding block is the intra-frame prediction mode adopted by the coding block. Optionally, the target intra-frame prediction mode corresponding to the coding block can be determined by parsing the prefix and suffix contained in the coding block. Specifically, if the MPM list contains 2 intra-frame prediction modes, similar to that shown in the aforementioned Table 1, if the prefix contained in the parsed coding block is 1, it indicates that the intra-frame prediction mode of the current coding block is in the MPM list, and then the 1-bit suffix in the coding block is parsed to specifically distinguish the MPM mode; if the prefix in the parsed coding block is 0, it means that the intra-frame prediction mode of the current coding block is not in the MPM list, and it is necessary to parse the 5-bit or 6-bit fixed-length code to specifically distinguish the intra-frame prediction mode of the current coding block.

[0075] In step S520, if the target intra prediction mode is a designated intra prediction mode, the statistical value of the target intra prediction mode is updated to obtain the updated statistical value of the designated intra prediction mode, wherein the number of designated intra prediction modes is less than the total number of intra prediction modes.

[0076] In one embodiment of the present application, the total number of intra-frame prediction modes refers to the total number of intra-frame prediction modes specified in the standard. For example, in the AVS3 standard, the total number of intra-frame prediction modes is 66.

[0077] In one embodiment of the present application, the specified intra prediction mode may include a plurality of intra prediction modes selected from a horizontal prediction mode, a vertical prediction mode, a Bilinear prediction mode, a DC prediction mode, a quasi-horizontal prediction mode, and a quasi-vertical prediction mode;

[0078] Among them, the horizontal prediction mode includes modes 56 to 59, mode 23 and mode 25 in the intra-frame prediction mode; the vertical prediction mode includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode.

[0079] In one embodiment of the present application, the specified intra prediction mode may include: at least two intra prediction modes selected from the intra prediction modes 0 to 33. Optionally, for example, the specified intra prediction mode may be mode 0 to mode 33, that is, the statistical values ​​of mode 0 to mode 33 need to be counted during statistics.

[0080] In one embodiment of the present application, the specified intra-frame prediction mode may include: a horizontal prediction mode and a vertical prediction mode. That is, the technical solution of this embodiment may only count the statistical values ​​of the horizontal prediction mode and the vertical prediction mode.

[0081] In one embodiment of the present application, the specified intra-frame prediction mode may include: horizontal prediction mode, vertical prediction mode and Bilinear prediction mode. That is, the technical solution of this embodiment may only count the statistical values ​​of the horizontal prediction mode, vertical prediction mode and Bilinear prediction mode.

[0082] In one embodiment of the present application, the specified intra-frame prediction mode may include: horizontal prediction mode, vertical prediction mode, Bilinear prediction mode and DC prediction mode. That is, the technical solution of this embodiment may only count the statistical values ​​of the horizontal prediction mode, vertical prediction mode, Bilinear prediction mode and DC prediction mode.

[0083] In one embodiment of the present application, the statistical values ​​of each prediction mode in the specified intra-frame prediction mode may be set to the same value during initialization, for example, all of them are set to 0 during initialization.

[0084] In one embodiment of the present application, the statistical values ​​of each prediction mode in the specified intra-frame prediction mode are respectively set to the numerical values ​​corresponding to each prediction mode at the time of initialization. It should be noted that the numerical values ​​corresponding to each prediction mode may be the same, or different, or partially the same and partially different. For example, if the specified intra-frame prediction mode includes three intra-frame prediction modes, the statistical values ​​of these three intra-frame prediction modes may be respectively set to 0, 1, and 2 at the time of initialization, or the statistical values ​​of these three intra-frame prediction modes may be respectively set to 0, 0, 1, etc. at the time of initialization.

[0085] In one embodiment of the present application, when updating the statistical value of the target intra-frame prediction mode, the statistical value of the target intra-frame prediction mode may be increased by a set step size, wherein the statistical values ​​of each intra-frame prediction mode in the specified intra-frame prediction mode are increased by the same set step size each time it is updated, for example, by 1 each time.

[0086] In one embodiment of the present application, when updating the statistical value of the target intra-frame prediction mode, the statistical value of the target intra-frame prediction mode may be increased by a set step length corresponding to the target prediction mode, wherein the set step lengths corresponding to each intra-frame prediction mode in the specified intra-frame prediction mode are different. For example, the specified intra-frame prediction mode includes two intra-frame prediction modes, and the set step lengths corresponding to the two intra-frame prediction modes may be 1 and 2, respectively.

[0087] In one embodiment of the present application, it is possible to determine whether a corresponding coding block needs to adopt a simplified intra-frame coding method based on frequency information according to at least one of the following methods, and when it is determined that a simplified intra-frame coding method based on frequency information needs to be adopted, it is determined whether the target intra-frame prediction mode is a specified intra-frame prediction mode:

[0088] The value of the index identifier contained in the sequence header of the coding block corresponding to the video image frame sequence;

[0089] The value of the index identifier contained in the image header of the coding block corresponding to the video image frame.

[0090] It should be noted that the simplified frequency-based intra-frame coding method can be called SFIMC (Simplified Frequency-based Intra Mode Coding), which is specifically the solution of only counting the statistical values ​​of the specified intra-frame prediction mode described in the aforementioned embodiment of the present application.

[0091] Based on the above scheme, specifically, when determining whether to adopt a simplified intra-frame coding method based on frequency information, the following methods can be used:

[0092] 1. Indicated by the index identifier in the sequence header of the coding block corresponding to the video image frame sequence. For example, if the index identifier in the sequence header is 1 (the value is only an example), it means that all coding blocks corresponding to the video image frame sequence need to adopt a simplified intra-frame coding method based on frequency information.

[0093] 2. Indicated by the index mark in the image header of the coding block corresponding to the video image frame. For example, if the index mark in the image header is 1 (the value is only an example), it means that all coding blocks corresponding to the video image frame need to adopt a simplified intra-frame coding method based on frequency information.

[0094] 3. Indicated by the index identifier in the sequence header of the coding block corresponding to the video image frame sequence and the index identifier in the image header of the coding block corresponding to the video image frame. For example, if the index identifier in the sequence header is 1 (the value is only an example) and the index identifier in the image header is 1 (the value is only an example), it means that all coding blocks corresponding to the image header need to adopt a simplified intra-frame coding method based on frequency information.

[0095] In one embodiment of the present application, if the value of the index identifier contained in the sequence header of the coding block corresponding to the video image frame sequence indicates that the coding block corresponding to the video image frame sequence needs to adopt a simplified intra-frame coding method based on frequency information, then the intra-frame prediction mode mode 34 to mode 65 may not be adopted, that is, it is determined that the coding block corresponding to the video image frame sequence adopts one of the intra-frame prediction modes mode 0 to mode 33. The technical solution of this embodiment is that when the sequence header indicates that the corresponding coding block needs to adopt SFIMC, it also indicates that the coding block will not adopt the intra-frame prediction mode mode 34 to mode 65, which can also avoid counting all 66 intra-frame prediction modes and increasing hardware costs.

[0096] In one embodiment of the present application, if the value of the index identifier contained in the image header of the coding block corresponding to the video image frame indicates that the coding block corresponding to the video image frame needs to adopt a simplified intra-frame coding method based on frequency information, then the intra-frame prediction mode mode 34 to mode 65 may not be adopted, that is, it is determined that the coding block corresponding to the video image frame adopts one of the intra-frame prediction modes mode 0 to mode 33. The technical solution of this embodiment is that when the image header indicates that the corresponding coding block needs to adopt SFIMC, it also indicates that the coding block will not adopt the intra-frame prediction mode mode 34 to mode 65, which can also avoid counting all 66 intra-frame prediction modes and increasing hardware costs.

[0097] Continue to refer to Figure 5 As shown, in step S530, the most likely intra prediction mode list is updated according to the updated statistical value of the designated intra prediction mode.

[0098] In one embodiment of the present application, the maximum possible intra prediction mode list includes intra prediction modes selected from the specified intra prediction modes when initialized, for example, 1, 2, 3 or more intra prediction modes may be selected from the specified intra prediction modes. That is, the intra prediction modes in the MPM list are selected from the aforementioned specified intra prediction modes when initialized.

[0099] In one embodiment of the present application, if the maximum possible intra-frame prediction mode list contains two intra-frame prediction modes at the time of initialization, the two intra-frame prediction modes can be a horizontal prediction mode and a vertical prediction mode; or can be a horizontal prediction mode and a Bilinear prediction mode; or can also be a vertical prediction mode and a Bilinear prediction mode.

[0100] In one embodiment of the present application, according to the updated statistical value of the designated intra-frame prediction mode, the process of updating the maximum possible intra-frame prediction mode list is specifically based on the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list, and in descending order of the statistical value, selecting an intra-frame prediction mode that matches the number from the designated intra-frame prediction mode to replace the intra-frame prediction mode included in the maximum possible intra-frame prediction mode list. The number of intra-frame prediction modes selected from the designated intra-frame prediction mode is the same as the number of intra-frame prediction modes included in the MPM list.

[0101] For example, suppose the MPM list contains two intra prediction modes, namely modeT[0] and modeT[1], the first largest statistical value (cost0) and the second largest statistical value (cost1) correspond to modeT[0] and modeT[1] respectively, the current intra prediction mode is currMode, and the corresponding statistical value is currCost, then the intra prediction modes ranked in the top two in descending order of statistical values ​​should be selected to update the MPM list.

[0102] Continue to refer to Figure 5 As shown, in step S540, other coding blocks of the video image frame are decoded based on the updated maximum possible intra prediction mode list.

[0103] In one embodiment of the present application, decoding processing of other coding blocks of the video image frame based on the updated MPM list can be based on the updated MPM list, and the target intra-frame prediction mode corresponding to the coding block is determined by parsing the prefix and suffix contained in the coding block. Specifically, if the MPM list contains 2 intra-frame prediction modes, similar to that shown in the aforementioned Table 1, if the prefix contained in the parsed coding block is 1, it indicates that the intra-frame prediction mode of the current coding block is in the MPM list, and then the 1-bit suffix in the coding block is parsed to specifically distinguish the MPM mode; if the prefix in the parsed coding block is 0, it indicates that the intra-frame prediction mode of the current coding block is not in the MPM list, and it is necessary to parse the 5-bit or 6-bit fixed-length code to specifically distinguish the intra-frame prediction mode of the current coding block.

[0104] It should be noted that: after the encoding end determines the target intra-frame prediction mode corresponding to the coding block of the video image frame, if the target intra-frame prediction mode is a specified intra-frame prediction mode, the statistical value of the target intra-frame prediction mode is updated to obtain the updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is also less than the total number of intra-frame prediction modes, and then according to the updated statistical value of the specified intra-frame prediction mode, the maximum possible intra-frame prediction mode list is updated, and finally the other coding blocks of the video image frame are encoded based on the updated maximum possible intra-frame prediction mode list.

[0105] Optionally, the encoder can select the optimal intra-frame prediction mode corresponding to the coding block of the video image frame based on RDO (Rate Distortion Optimization), and then use it as the target intra-frame prediction mode corresponding to the coding block. In addition, the updating process of the statistics of the specified intra-frame prediction mode and the MPM list by the encoder is similar to that of the decoder, and will not be repeated here.

[0106] The technical solutions of the aforementioned embodiments of the present application make it possible to update the MPM list by performing statistics on only some intra-frame prediction modes, thereby reducing the hardware implementation cost and improving the encoding and decoding performance to a certain extent.

[0107] The following describes an apparatus embodiment of the present application, which can be used to execute the video decoding method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the video decoding method of the present application.

[0108] Figure 6 A block diagram of a video decoding device according to an embodiment of the present application is shown. The video decoding device can be set in a device with a computing and processing function, such as a terminal device or a server.

[0109] Reference Figure 6 As shown, a video decoding device 600 according to an embodiment of the present application includes: a decoding unit 602 , a first updating unit 604 , a second updating unit 606 and a processing unit 608 .

[0110] Among them, the decoding unit 602 is configured to decode the coding block of the video image frame to obtain the target intra-frame prediction mode corresponding to the coding block; the first updating unit 604 is configured to update the statistical value of the target intra-frame prediction mode if the target intra-frame prediction mode is a specified intra-frame prediction mode, and obtain the updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is less than the total number of intra-frame prediction modes; the second updating unit 606 is configured to update the maximum possible intra-frame prediction mode list according to the updated statistical value of the specified intra-frame prediction mode; the processing unit 608 is configured to decode other coding blocks of the video image frame based on the updated maximum possible intra-frame prediction mode list.

[0111] In some embodiments of the present application, based on the aforementioned scheme, the specified intra-frame prediction mode includes a plurality of intra-frame prediction modes selected from a horizontal prediction mode, a vertical prediction mode, a Bilinear prediction mode, a DC prediction mode, a quasi-horizontal prediction mode and a quasi-vertical prediction mode; wherein the quasi-horizontal prediction mode includes modes 56 to 59, mode 23 and mode 25 in the intra-frame prediction mode; the quasi-vertical prediction mode includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode.

[0112] In some embodiments of the present application, based on the aforementioned solution, the specified intra prediction mode includes:

[0113] a horizontal prediction mode and a vertical prediction mode; or

[0114] Horizontal prediction mode, vertical prediction mode and Bilinear prediction mode; or

[0115] Horizontal prediction mode, vertical prediction mode, Bilinear prediction mode and DC prediction mode.

[0116] In some embodiments of the present application, based on the aforementioned solution, the specified intra-frame prediction mode includes: at least two intra-frame prediction modes selected from mode 0 to mode 33 in the intra-frame prediction mode.

[0117] In some embodiments of the present application, based on the aforementioned solution, the statistical values ​​of each prediction mode in the specified intra-frame prediction mode are set to the same value during initialization; or

[0118] The statistical values ​​of each prediction mode in the designated intra-frame prediction mode are respectively set to the numerical values ​​corresponding to the respective prediction modes during initialization.

[0119] In some embodiments of the present application, based on the above-mentioned solution, the most likely intra-frame prediction mode list includes the intra-frame prediction mode selected from the specified intra-frame prediction mode when initialized.

[0120] In some embodiments of the present application, based on the above scheme, if the most likely intra prediction mode list includes two intra prediction modes when initialized, the two intra prediction modes include:

[0121] a horizontal prediction mode and a vertical prediction mode; or

[0122] Horizontal prediction mode and Bilinear prediction mode; or

[0123] Vertical prediction mode and Bilinear prediction mode.

[0124] In some embodiments of the present application, based on the above scheme, the first updating unit 604 is configured to: increase the set step size to the statistical value of the target intra-frame prediction mode, wherein the statistical value of each intra-frame prediction mode in the specified intra-frame prediction mode is increased by the same set step size each time it is updated; or

[0125] A set step size corresponding to the target prediction mode is added to the statistical value of the target intra prediction mode, wherein the set step sizes corresponding to the respective intra prediction modes in the designated intra prediction modes are different.

[0126] In some embodiments of the present application, based on the aforementioned scheme, the second update unit 606 is configured to: based on the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list, select an intra-frame prediction mode that matches the number from the specified intra-frame prediction modes in order of statistical values ​​from large to small to replace the intra-frame prediction mode included in the maximum possible intra-frame prediction mode list.

[0127] In some embodiments of the present application, based on the above-mentioned solution, the video decoding device 600 further includes: a processing unit, configured to determine whether the corresponding coding block needs to adopt a simplified intra-frame coding method based on frequency information according to at least one of the following methods, and when it is determined that the simplified intra-frame coding method based on frequency information needs to be adopted, judge whether the target intra-frame prediction mode is the specified intra-frame prediction mode:

[0128] The value of the index identifier contained in the sequence header of the coding block corresponding to the video image frame sequence;

[0129] The value of the index identifier contained in the image header of the coding block corresponding to the video image frame.

[0130] In some embodiments of the present application, based on the above-mentioned solution, the processing unit is further configured to: if the value of the index identifier contained in the sequence header of the coding block corresponding to the video image frame sequence indicates that the coding block corresponding to the video image frame sequence needs to adopt a simplified intra-frame coding method based on frequency information, then determine that the coding block corresponding to the video image frame sequence adopts one of the intra-frame prediction modes from mode 0 to mode 33 of the intra-frame prediction mode;

[0131] If the value of the index identifier contained in the image header of the coding block corresponding to the video image frame indicates that the coding block corresponding to the video image frame needs to adopt a simplified intra-frame coding method based on frequency information, it is determined that the coding block corresponding to the video image frame adopts an intra-frame prediction mode from mode 0 to mode 33 of the intra-frame prediction mode.

[0132] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0133] It should be noted that Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0134] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method described in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, ROM 702 and RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0135] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0136] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes 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 a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.

[0137] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with 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 disk 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 may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0138] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0139] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0140] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently 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 method described in the above embodiment.

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

[0142] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0143] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0144] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A video decoding method, characterized in that: include: Decoding a coding block of a video image frame to obtain a target intra-frame prediction mode used by the coding block; If the target intra prediction mode is a specified intra prediction mode, updating the statistical value of the target intra prediction mode to obtain the updated statistical value of the specified intra prediction mode, wherein the number of the specified intra prediction modes is less than the total number of intra prediction modes, and in the process of decoding the video image frame, canceling the process of collecting statistics on other intra prediction modes except the specified intra prediction mode; Based on the number of intra prediction modes included in the most likely intra prediction mode list, selecting an intra prediction mode matching the number from the designated intra prediction modes in descending order of statistical values, so as to replace the intra prediction mode included in the most likely intra prediction mode list; The other coding blocks of the video image frame are decoded based on the updated most likely intra prediction mode list.

2. The video decoding method according to claim 1, characterized in that: The specified intra-frame prediction mode includes a plurality of intra-frame prediction modes selected from a horizontal prediction mode, a vertical prediction mode, a Bilinear prediction mode, a DC prediction mode, a quasi-horizontal prediction mode, and a quasi-vertical prediction mode; The horizontal prediction mode-like includes modes 56 to 59, mode 23 and mode 25 in the intra-frame prediction mode; the vertical prediction mode-like includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode.

3. The video decoding method according to claim 1, characterized in that: The specified intra prediction mode includes: a horizontal prediction mode and a vertical prediction mode; or Horizontal prediction mode, vertical prediction mode and Bilinear prediction mode; or Horizontal prediction mode, vertical prediction mode, Bilinear prediction mode and DC prediction mode.

4. The video decoding method according to claim 1, characterized in that: The designated intra prediction mode includes: at least two intra prediction modes selected from mode 0 to mode 33 in the intra prediction modes.

5. The video decoding method according to claim 1, characterized in that: The statistical values ​​of each prediction mode in the specified intra-frame prediction mode are set to the same value during initialization; or The statistical values ​​of each prediction mode in the designated intra-frame prediction mode are respectively set to the numerical values ​​corresponding to the respective prediction modes during initialization.

6. The video decoding method according to claim 1, characterized in that: The most probable intra prediction mode list contains the intra prediction mode selected from the designated intra prediction modes when initialized.

7. The video decoding method according to claim 1, characterized in that: If the most probable intra prediction mode list includes two intra prediction modes when initialized, the two intra prediction modes include: a horizontal prediction mode and a vertical prediction mode; or Horizontal prediction mode and Bilinear prediction mode; or Vertical prediction mode and Bilinear prediction mode.

8. The video decoding method according to claim 1, characterized in that: Updating the statistical value of the target intra prediction mode includes: Increasing the set step size for the statistical value of the target intra-frame prediction mode, wherein the statistical value of each intra-frame prediction mode in the designated intra-frame prediction mode is increased by the same set step size each time it is updated; or A set step size corresponding to the target intra prediction mode is added to the statistical value of the target intra prediction mode, wherein the set step sizes corresponding to the respective intra prediction modes in the designated intra prediction mode are different.

9. The video decoding method according to any one of claims 1 to 8, characterized in that: The video decoding method further includes: determining whether the corresponding coding block needs to adopt a simplified frequency information-based intra-frame coding method according to at least one of the following methods: a value of an index identifier included in a sequence header of a coding block corresponding to a video image frame sequence, a value of an index identifier included in an image header of a coding block corresponding to a video image frame, When it is determined that the simplified frequency information-based intra-frame coding method needs to be adopted, it is determined whether the target intra-frame prediction mode is the designated intra-frame prediction mode.

10. The video decoding method according to claim 9, characterized in that: The video decoding method further includes: If the value of the index identifier contained in the sequence header of the coding block corresponding to the video image frame sequence indicates that the coding block corresponding to the video image frame sequence needs to adopt a simplified intra-frame coding method based on frequency information, it is determined that the coding block corresponding to the video image frame sequence adopts an intra-frame prediction mode from mode 0 to mode 33 of the intra-frame prediction mode; If the value of the index identifier contained in the image header of the coding block corresponding to the video image frame indicates that the coding block corresponding to the video image frame needs to adopt a simplified intra-frame coding method based on frequency information, it is determined that the coding block corresponding to the video image frame adopts an intra-frame prediction mode from mode 0 to mode 33 of the intra-frame prediction mode.

11. A video encoding method, characterized in that: include: Determining a target intra-frame prediction mode used by a coding block of a video image frame; If the target intra-frame prediction mode is a designated intra-frame prediction mode, updating the statistical value of the target intra-frame prediction mode to obtain the updated statistical value of the designated intra-frame prediction mode, wherein the number of the designated intra-frame prediction modes is less than the total number of intra-frame prediction modes, and in the process of encoding the video image frame, canceling the process of collecting statistics on other intra-frame prediction modes except the designated intra-frame prediction mode; Based on the number of intra prediction modes included in the most likely intra prediction mode list, selecting an intra prediction mode matching the number from the designated intra prediction modes in descending order of statistical values, so as to replace the intra prediction mode included in the most likely intra prediction mode list; The other coding blocks of the video image frame are coded based on the updated most probable intra prediction mode list.

12. A video decoding device, characterized in that: include: A decoding unit configured to perform decoding processing on a coding block of a video image frame to obtain a target intra-frame prediction mode used by the coding block; A first updating unit is configured to update the statistical value of the target intra-frame prediction mode if the target intra-frame prediction mode is a specified intra-frame prediction mode, and obtain the updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is less than the total number of intra-frame prediction modes, and in the process of decoding the video image frame, cancel the process of collecting statistics on other intra-frame prediction modes except the specified intra-frame prediction mode; a second updating unit configured to select, based on the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list, an intra-frame prediction mode matching the number from the designated intra-frame prediction modes in descending order of statistical values, to replace the intra-frame prediction mode included in the maximum possible intra-frame prediction mode list; The processing unit is configured to perform decoding processing on other coding blocks of the video image frame based on the updated maximum possible intra-frame prediction mode list.

13. A video encoding device, characterized in that: include: A determination unit configured to determine a target intra-frame prediction mode adopted by a coding block of a video image frame; a third updating unit, configured to update the statistical value of the target intra-frame prediction mode if the target intra-frame prediction mode is a specified intra-frame prediction mode, and obtain the updated statistical value of the specified intra-frame prediction mode, wherein the number of the specified intra-frame prediction modes is less than the total number of intra-frame prediction modes, and in the process of encoding the video image frame, cancel the process of collecting statistics on other intra-frame prediction modes except the specified intra-frame prediction mode; a fourth updating unit, configured to select, based on the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list, an intra-frame prediction mode matching the number from the designated intra-frame prediction modes in descending order of statistical values, to replace the intra-frame prediction mode included in the maximum possible intra-frame prediction mode list; The encoding unit is configured to perform encoding processing on other encoding blocks of the video image frame based on the updated maximum possible intra-frame prediction mode list.

14. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

15. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method according to any one of claims 1 to 11.

16. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor of an electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device executes the method according to any one of claims 1 to 11.