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

By counting the intra prediction mode and using the SAWP index value, the maximum possible intra prediction mode list of the video encoding block is determined, which solves the problem of excessive long code length caused by insufficient intra prediction mode correlation, and improves the encoding and decoding efficiency.

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

Patent Information

Application Number
CN202110273043.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-14
Publication Date
2024-11-22
Estimated Expiration
2041-03-14

AI Technical Summary

Technical Problem

In screen content encoding, the average encoding code length of the intra prediction mode of SAWP is longer, which affects the encoding and decoding efficiency. The reason is that the correlation between the intra prediction mode of the current encoded block and the intra prediction mode of the spatial neighboring block is weak. .

Method used

By obtaining the intra prediction mode used by the coded block in the video image frame for statistics, combining the intra prediction mode and SAWP index value of adjacent blocks, the maximum possible intra prediction mode list is determined to improve the accuracy of the MPM list and reduce the accuracy of the MPM list. The average code length of the intra prediction mode of SAWP.

Benefits of technology

The video encoding and decoding efficiency is improved, and the average encoding code length of the intra prediction mode is reduced through the precise intra prediction mode list construction, and the encoding efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086654B_ABST
    Figure CN115086654B_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 SAWP index value; obtaining the intra-frame prediction mode adopted by the adjacent blocks of the coding block, and obtaining the intra-frame prediction mode statistics obtained by statistically analyzing the intra-frame prediction mode adopted by the coding block in the video image frame; determining the maximum possible intra-frame prediction mode list according to the intra-frame prediction mode adopted by the adjacent blocks, the SAWP index value, and the intra-frame prediction mode statistics; decoding other coding blocks of the video image frame based on the maximum possible intra-frame prediction mode list. The technical solution of the embodiments of the present application can improve the encoding and decoding efficiency of the video.
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] In the related art, only the intra-frame prediction mode of spatially adjacent blocks and the preset intra-frame prediction mode are used in the construction of MPM (Most Probable Mode) of SAWP (Spatial Angular Weighted Prediction). However, in screen content encoding, the intra-frame prediction mode of the current coding block has a weak correlation with the intra-frame prediction mode of the spatially adjacent blocks, which will result in a longer average encoding code length of the intra-frame prediction mode of SAWP, affecting the encoding and decoding efficiency. 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, thereby improving the encoding and decoding efficiency of the video at least 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 SAWP index value; obtaining an intra-frame prediction mode adopted by an adjacent block of the coding block, and obtaining an intra-frame prediction mode statistical result obtained by statistically analyzing the intra-frame prediction mode adopted by the coding block in the video image frame; determining a maximum possible intra-frame prediction mode list according to the intra-frame prediction mode adopted by the adjacent block, the SAWP index value, and the intra-frame prediction mode statistical result; and decoding other coding blocks of the video image frame based on the 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 SAWP index value corresponding to a coding block of a video image frame; obtaining an intra-frame prediction mode adopted by an adjacent block of the coding block, and obtaining an intra-frame prediction mode statistical result obtained by statistically analyzing the intra-frame prediction mode adopted by the coding block in the video image frame; determining a maximum possible intra-frame prediction mode list according to the intra-frame prediction mode adopted by the adjacent block, the SAWP index value, and the intra-frame prediction mode statistical result; and encoding other coding blocks of the video image frame based on the 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 spatial angle weighted prediction (SAWP) index value; a first acquisition unit, configured to obtain the intra-frame prediction mode adopted by an adjacent block of the coding block, and obtain an intra-frame prediction mode statistical result obtained by statistically analyzing the intra-frame prediction mode adopted by the coding block in the video image frame; a first processing unit, configured to determine a maximum possible intra-frame prediction mode list based on the intra-frame prediction mode adopted by the adjacent block, the SAWP index value, and the intra-frame prediction mode statistical result; and a second processing unit, configured to decode other coding blocks of the video image frame based on the maximum possible intra-frame prediction mode list.

[0008] In some embodiments of the present application, based on the aforementioned scheme, the first acquisition unit is configured to: count the specified intra-frame prediction mode adopted by the coding block in the video image frame to obtain the intra-frame prediction mode statistical result.

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

[0010] all intra prediction modes; or

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

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

[0013] Horizontal prediction mode, vertical prediction mode, Bilinear prediction mode and DC prediction mode; or

[0014] An intra prediction mode selected from Mode 0 to Mode 33 among intra prediction modes; or

[0015] An intra-frame prediction mode 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; and the quasi-vertical prediction mode includes modes 42 to 45, mode 11, and mode 13 in the intra-frame prediction mode; or

[0016] an intra-prediction mode selected from the intra-prediction modes used by the SAWP; or

[0017] The intra prediction mode is selected from the intra prediction modes counted by the FIMC (Frequency-based Intra Mode Coding) method.

[0018] In some embodiments of the present application, based on the aforementioned solution, the first acquisition unit is configured to: acquire the intra-frame prediction mode statistical results obtained by FIMC statistics.

[0019] In some embodiments of the present application, based on the aforementioned scheme, the video decoding device also includes: an updating unit, configured to obtain two intra-frame prediction modes of the SAWP method obtained by decoding the coding block of the video image frame, and update the intra-frame prediction mode statistical results counted by the FIMC method through one or two of the two intra-frame prediction modes.

[0020] In some embodiments of the present application, based on the aforementioned scheme, the first processing unit includes: a determination unit, configured to determine a plurality of candidate prediction modes having a sequential relationship according to the intra-frame prediction mode adopted by the adjacent block, the SAWP index value, and the intra-frame prediction mode statistical result; a selection unit, configured to select a set number of different candidate prediction modes from the plurality of candidate prediction modes according to the sequential relationship to generate the maximum possible intra-frame prediction mode list.

[0021] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: determine a first candidate mode set according to the intra-frame prediction mode adopted by the adjacent block, and determine a second candidate mode set according to the SAWP index value; select n1 intra-frame prediction modes from the statistical results of the intra-frame prediction mode in descending order of statistical values; determine the multiple candidate prediction modes having a sequential relationship according to the first candidate mode set, the second candidate mode set and the n1 intra-frame prediction modes.

[0022] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: replace the n1 intra-frame prediction modes in the first candidate mode set with the n1 intra-frame prediction modes to obtain an updated first candidate mode set, and the n1 is less than or equal to the number of candidate modes included in the first candidate mode set; and generate the multiple candidate prediction modes with a sequential relationship according to the second candidate mode set and the updated first candidate mode set.

[0023] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: replace the n1 intra-frame prediction modes in the third candidate mode set formed by the first candidate mode set and the second candidate mode set with the n1 intra-frame prediction modes to obtain an updated third candidate mode set, and the n1 is less than or equal to the number of candidate modes included in the third candidate mode set; and generate the multiple candidate prediction modes with a sequential relationship according to the updated third candidate mode set.

[0024] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: sort the candidate prediction modes in the first candidate mode set and the candidate prediction modes in the second candidate mode set to obtain sorted candidate prediction modes; add the n1 intra-frame prediction modes to the specified positions in the sorted candidate prediction modes to generate the multiple candidate prediction modes with a sequential relationship; wherein the specified position includes the frontmost, the lastmost or inserted into the sorted candidate prediction mode.

[0025] In some embodiments of the present application, based on the aforementioned scheme, the first processing unit is further configured to: before determining the multiple candidate prediction modes with a sequential relationship according to the first candidate mode set, the second candidate mode set and the n1 intra-frame prediction modes, replace the first intra-frame prediction mode in the first candidate mode set, or the first intra-frame prediction mode in the first candidate mode set and the n1 intra-frame prediction modes with a vertical prediction mode or a quasi-vertical prediction mode, and replace the second intra-frame prediction mode in the first candidate mode set with a horizontal prediction mode or a quasi-horizontal prediction mode; wherein the first intra-frame prediction mode is mode 0, mode 1 or mode 32 in the intra-frame prediction mode, the second intra-frame prediction mode is mode 2, mode 3 or mode 33 in the intra-frame prediction mode, the quasi-horizontal prediction mode includes modes 56 to 59, mode 23 and mode 25 in the intra-frame prediction mode, and the quasi-vertical prediction mode includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode.

[0026] In some embodiments of the present application, based on the above scheme, the determining unit is configured to: select the first n1 intra-frame prediction modes from the intra-frame prediction mode statistical results in descending order of statistical values; or

[0027] The first n1 intra-frame prediction modes that meet the SAWP are selected from the intra-frame prediction mode statistical results in descending order of the statistical values.

[0028] In some embodiments of the present application, based on the aforementioned scheme, the first processing unit is configured to: generate an initial list of maximum possible intra-frame prediction modes according to the intra-frame prediction mode adopted by the adjacent block and the SAWP index value; select the first n2 intra-frame prediction modes that comply with SAWP from the statistical results of the intra-frame prediction mode in descending order of statistical values; replace some intra-frame prediction modes in the initial list of maximum possible intra-frame prediction modes with the first n2 intra-frame prediction modes that comply with SAWP, and obtain the maximum possible intra-frame prediction mode list.

[0029] In some embodiments of the present application, based on the aforementioned scheme, the first processing unit is configured to: select the first n3 intra-frame prediction modes that comply with SAWP from the intra-frame prediction mode statistical results in order of statistical values ​​from large to small to generate the maximum possible intra-frame prediction mode list, and the number of intra-frame prediction modes counted in the intra-frame prediction mode statistical results is greater than or equal to the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list.

[0030] In some embodiments of the present application, based on the foregoing solution, the first processing unit is further configured to: determine whether the corresponding coding block needs to determine the maximum possible intra prediction mode list according to the intra prediction mode adopted by the adjacent block, the SAWP index value, and the intra prediction mode statistical result during decoding according to at least one of the following methods:

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

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

[0033] 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 SAWP index value corresponding to a coding block of a video image frame; a second acquisition unit, configured to obtain the intra-frame prediction mode adopted by adjacent blocks of the coding block, and obtain the intra-frame prediction mode statistics obtained by statistically analyzing the intra-frame prediction mode adopted by the coding block in the video image frame; a third processing unit, configured to determine a maximum possible intra-frame prediction mode list based on the intra-frame prediction mode adopted by the adjacent blocks, the SAWP index value, and the intra-frame prediction mode statistics; and a fourth processing unit, configured to perform encoding processing on other coding blocks of the video image frame based on the maximum possible intra-frame prediction mode list.

[0034] 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 or the video encoding method as described in the above embodiments is implemented.

[0035] 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 a video decoding method or a video encoding method as described in the above embodiments.

[0036] 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 a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the video decoding method or the video encoding method provided in the above various optional embodiments.

[0037] In the technical solutions provided in some embodiments of the present application, by obtaining the intra-frame prediction mode statistics results obtained by statistics of the intra-frame prediction mode adopted by the coding block in the video image frame, and then determining the maximum possible intra-frame prediction mode list according to the intra-frame prediction mode adopted by the adjacent block, the SAWP index value, and the intra-frame prediction mode statistics results, it is possible to improve the accuracy of the constructed MPM list, and then reduce the average encoding code length of the SAWP intra-frame prediction mode, thereby improving the encoding and decoding efficiency.

[0038] 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

[0039] 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:

[0040] 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;

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

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

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

[0044] Figure 5 An image of a complex texture is shown;

[0045] Figure 6 A schematic diagram showing 8 weight generation angles;

[0046] Figure 7 A schematic diagram showing 7 reference weight prediction positions;

[0047] Figure 8 A schematic diagram showing the position relationship between the current block and the adjacent blocks;

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

[0049] Fig.10 A flowchart of determining a plurality of candidate prediction modes having a sequential relationship according to an embodiment of the present application is shown;

[0050] Fig.11 A flowchart of a video encoding method according to an embodiment of the present application is shown;

[0051] Fig.12 A block diagram of a video decoding device according to an embodiment of the present application is shown;

[0052] Fig.13 A block diagram of a video encoding device according to an embodiment of the present application is shown;

[0053] Fig.14 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

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

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

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

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

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

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

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

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

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

[0063] exist Figure 1 In 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.

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

[0065] 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 2 The 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.

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

[0067] 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:

[0068] 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).

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

[0070] 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).

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

[0072] 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 intra prediction results Get the predicted image signal of the next frame And continue to repeat the above process until the encoding is completed.

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

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

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

[0076] Figure 4The 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.

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

[0078]

[0079] Table 1

[0080] In addition, given that the traditional single prediction model cannot adapt to more complex image textures, such as Figure 5 The image shown contains two parts of texture. SAWP proposes to use two different intra-frame prediction modes to predict the same coding block, and the final prediction image is generated by weighting the two intra-frame prediction images.

[0081] Specifically, assuming that the predicted images obtained by the two intra-frame prediction modes are predMatrix 0 and predMatrix 1 , the final predicted image generated by SAWP is predMatrixSawp, the mask is weightMatrixAwap, [i][j] represents a coordinate point in the image block, then there is the following formula:

[0082] predMatrixSawp[i][j]=(predMatrix 0 [i][j]×weightMatrixAwap[i][j]+

[0083] predMatrix 1[i][j]×(8-weightMatrixAwap[i][j])+4)>>3

[0084] Figure 6 8 weight generation angles are shown. Figure 7 7 reference weight prediction positions (i.e. 7 weight configurations) are shown, and each weight configuration can be Figure 6 The 8 angles shown generate the mask weightMatrixAwap, so 8x7=56 masks can be generated.

[0085] At the same time, both intra-frame prediction modes of SAWP can only use Figure 4 There are 28 angle prediction modes in total from mode 4 to mode 31 shown in the figure, and the length of the MPM list is 4. The MPM list construction method of SAWP is as follows:

[0086] Step 1: Set the array cand_mode

[10] , initialize all values ​​in the array to invalid values, and perform the following operations on the array:

[0087] Reference Figure 8 As shown, if the neighboring block F of the current block "exists" and is a block using the normal intra-frame prediction mode, then cand_mode[0] is equal to the intra-frame prediction mode of the neighboring block F (specifically, its luma intra-frame prediction mode). If the neighboring block G of the current block "exists" and is a block using the normal intra-frame prediction mode, then cand_mode[1] is equal to the intra-frame prediction mode of the neighboring block G (specifically, its luma intra-frame prediction mode). If the neighboring block C of the current block "exists" and is a block using the normal intra-frame prediction mode, then cand_mode[2] is equal to the intra-frame prediction mode of the neighboring block C (specifically, its luma intra-frame prediction mode). If the neighboring block A of the current block "exists" and is a block using the normal intra-frame prediction mode, then cand_mode[3] is equal to the intra-frame prediction mode of the neighboring block A (specifically, its luma intra-frame prediction mode). If the neighboring block B of the current block "exists" and is a block using the normal intra-frame prediction mode, then cand_mode[4] is equal to the intra-frame prediction mode of the neighboring block B (specifically, its luma intra-frame prediction mode). If the neighboring block D of the current block "exists" and is a block using a normal intra-frame prediction mode, then cand_mode[5] is equal to the intra-frame prediction mode of the neighboring block D (specifically, its luminance intra-frame prediction mode).

[0088] At the same time, cand_mode[6] is equal to the value of SawpIndex%8 (that is, the result of taking the modulo of the SAWP index value and 8), which corresponds to the value of candidate mode 0 in Table 2 below; cand_mode[7] is equal to the value of SawpIndex%8, which corresponds to the value of candidate mode 1 in Table 2 below; cand_mode[8] is equal to the value of SawpIndex%8, which corresponds to the value of candidate mode 2 in Table 2 below; cand_mode[9] is equal to the value of SawpIndex%8, which corresponds to the value of candidate mode 3 in Table 2 below.

[0089] SawpIndex%8 0 1 2 3 4 5 6 7 Candidate mode 0 30 27 24 21 18 15 12 9 Candidate mode 1 6 24 12 24 17 14 24 12 Candidate Mode 2 24 6 23 18 19 16 11 8 Candidate Mode 3 12 9 25 12 24 12 13 10

[0090] Table 2

[0091] Step 2: For i from 0 to 5, perform the following operations:

[0092] A) If cand_mode[i]≤3 or cand_mode[i] is equal to 32 or 33, then

[0093] cand_mode[i] is set to an invalid value.

[0094] B) If cand_mode[i]>33, perform the following operations:

[0095] If 33<cand_mode[i]<44, let cand_mode[i]=cand_mode[i]-30;

[0096] If 44≤cand_mode[i]<58, let cand_mode[i]=cand_mode[i]–33;

[0097] If cand_mode[i]≥58, let cand_mode[i]=cand_mode[i]–34.

[0098] C) If the value of cand_mode[i] is a value between 4 and 31, the value of cand_mode[i] is not modified.

[0099] Step 3: Let mpm_num be 0. For i from 0 to 9, select cand_mode[i] with non-invalid values ​​in turn, and compare cand_mode[i] with predIntraPredMode[j] in the MPM list, where j is a value from 0 to mpm_num–1. If cand_mode[i] is not equal to predIntraPredMode[j], perform the following operations:

[0100] Let predIntraPredMode[mpm_num] equal to cand_mode[i], let mpm_num equal to mpm_num+1, if mpm_num is equal to 4, then end step 3.

[0101] Step 4: Sort the four numbers of predIntraPredMode[4] from small to large to obtain the MPM list.

[0102] According to the above-mentioned MPM list construction process, it can be known that the MPM list of SAWP only uses the intra-frame prediction mode of the spatial adjacent block and the preset intra-frame prediction mode during the construction process. However, in screen content encoding, the intra-frame prediction mode of the current coding block has a weak correlation with the intra-frame prediction mode of the spatial adjacent block, which will lead to a longer average encoding code length of the intra-frame prediction mode of SAWP, affecting the encoding and decoding efficiency. Based on this, the technical solution of the embodiment of the present application introduces a historical intra-frame prediction mode to improve the construction accuracy of the MPM list; in addition, in the embodiment of the present application, during the construction process of the MPM list of SAWP, when the spatial adjacent block is not an intra-frame coding block, or the intra-frame prediction mode of the spatial adjacent block is not a mode available to SAWP, the corresponding mode can be used instead to reduce the average encoding code length of the intra-frame prediction mode of SAWP to a certain extent, thereby improving the encoding and decoding efficiency.

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

[0104] Fig. 9 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. Fig. 9 As shown, the video decoding method at least includes steps S910 to S940, which are described in detail as follows:

[0105] In step S910, the coding block of the video image frame is decoded to obtain a spatial angle weighted prediction SAWP index value.

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

[0107] In one embodiment of the present application, the SAWP index value is SawpIndex. By taking the modulus of SawpIndex and 8 and combining it with the above Table 2, the values ​​of cand_mode[6]-cand_mode[9] can be obtained to facilitate the subsequent determination of the MPM list of SAWP.

[0108] In step S920, the intra-frame prediction mode adopted by the neighboring blocks of the coding block is obtained, and the intra-frame prediction mode statistical result obtained by statistically analyzing the intra-frame prediction mode adopted by the coding block in the video image frame is obtained.

[0109] In one embodiment of the present application, the adjacent blocks of the coding block may be Figure 8 The neighboring blocks A, B, C, D, F and G are shown in FIG.

[0110] In one embodiment of the present application, the process of obtaining the intra-frame prediction mode statistics obtained by counting the intra-frame prediction mode used by the coding block in the video image frame may be: counting the specified intra-frame prediction mode used by the coding block in the video image frame to obtain the intra-frame prediction mode statistics. The specified intra-frame prediction mode has the following embodiments:

[0111] In one embodiment of the present application, the specified intra-frame prediction mode may be all intra-frame prediction modes. For example, in the AVS3 standard, the total number of all intra-frame prediction modes is 66.

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

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

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

[0115] In one embodiment of the present application, the specified intra prediction mode may include: an intra prediction mode selected from mode 0 to mode 33 in the intra prediction mode. 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.

[0116] In one embodiment of the present application, the specified intra-frame prediction mode may include 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; and the quasi-vertical prediction mode includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode.

[0117] In one embodiment of the present application, the designated intra prediction mode may be an intra prediction mode selected from the intra prediction modes adopted by SAWP, that is, an intra prediction mode selected from mode 4 to mode 31.

[0118] In one embodiment of the present application, the specified intra-frame prediction mode may be an intra-frame prediction mode selected from the intra-frame prediction modes counted by the FIMC method. For example, the specified intra-frame prediction mode may be an intra-frame prediction mode counted by the FIMC method.

[0119] In one embodiment of the present application, the process of obtaining the intra-frame prediction mode statistics obtained by counting the intra-frame prediction mode used by the coding block in the video image frame may be: obtaining the intra-frame prediction mode statistics obtained by counting the FIMC method. That is, in this embodiment, SWAP and FIMC technologies share the same intra-frame prediction mode statistics.

[0120] In one embodiment of the present application, if SWAP and FIMC technologies share the same intra-frame prediction mode statistics, then after obtaining the two intra-frame prediction modes of the SAWP method obtained by decoding the coding block of the video image frame, the intra-frame prediction mode statistics counted by the FIMC method can be updated by one or two of the two intra-frame prediction modes. Of course, in other embodiments of the present application, if SWAP and FIMC technologies share the same intra-frame prediction mode statistics, then the two intra-frame prediction modes of the SAWP method can be used to update the intra-frame prediction mode statistics counted by the FIMC method.

[0121] Continue to refer to Fig. 9 As shown, in step S930, the most possible intra prediction mode list is determined according to the intra prediction mode adopted by the neighboring blocks, the SAWP index value, and the intra prediction mode statistics.

[0122] In one embodiment of the present application, the process of determining the maximum possible intra-frame prediction mode list in step S930 based on the intra-frame prediction mode, SAWP index value, and intra-frame prediction mode statistics adopted by the adjacent blocks may include: determining multiple candidate prediction modes with a sequential relationship based on the intra-frame prediction mode, SAWP index value, and intra-frame prediction mode statistics adopted by the adjacent blocks, and selecting a set number of different candidate prediction modes from the multiple candidate prediction modes according to the sequential relationship to generate the maximum possible intra-frame prediction mode list.

[0123] Optionally, if the MPM list includes 4 MPMs, then after a plurality of candidate prediction modes having a sequential relationship are determined, 4 different candidate prediction modes may be selected from the plurality of candidate prediction modes in sequence to generate the MPM list.

[0124] In one embodiment of the present application, Fig.10 As shown, the process of determining a plurality of candidate prediction modes having a sequential relationship according to the intra prediction modes adopted by the adjacent blocks, the SAWP index values, and the intra prediction mode statistical results may include the following steps S1010 to S1030, which are described in detail as follows:

[0125] In step S1010, a first candidate mode set is determined according to the intra prediction modes adopted by the neighboring blocks, and a second candidate mode set is determined according to the SAWP index value.

[0126] In one embodiment of the present application, the process of determining the first candidate mode set according to the intra-frame prediction mode adopted by the adjacent blocks can refer to the above embodiment combined with Figure 8The process of determining cand_mode[0] to cand_mode[5] according to the SAWP index value can refer to the process of determining cand_mode[6] to cand_mode[9] in combination with Table 2 in the above embodiment, and the second candidate mode set is cand_mode[6] to cand_mode[9].

[0127] In step S1020, n1 intra-frame prediction modes are selected from the intra-frame prediction mode statistics in descending order of the statistical values.

[0128] It should be noted that there is no strict order between step S1020 and step S1010. In other words, step S1010 may be executed first and then step S1020; step S1020 may be executed first and then step S1010; or step S1010 and step S1020 may be executed simultaneously.

[0129] In one embodiment of the present application, the first n1 intra-frame prediction modes can be selected from the intra-frame prediction mode statistical results in the order of the statistical values ​​from large to small. That is, in this embodiment, only the first n1 intra-frame prediction modes are selected in the order of the statistical values ​​from large to small, but there may be intra-frame prediction modes that do not conform to SAWP among these n1 intra-frame prediction modes. Therefore, in one embodiment of the present application, the first n1 intra-frame prediction modes that conform to SAWP can be selected from the intra-frame prediction mode statistical results in the order of the statistical values ​​from large to small.

[0130] In step S1030, a plurality of candidate prediction modes having a sequential relationship are determined according to the first candidate mode set, the second candidate mode set and n1 intra prediction modes.

[0131] In one embodiment of the present application, when determining multiple candidate prediction modes with a sequential relationship, the n1 intra-frame prediction modes in the first candidate mode set can be replaced by the n1 intra-frame prediction modes to obtain an updated first candidate mode set, where n1 is less than or equal to the number of candidate modes included in the first candidate mode set, and then the multiple candidate prediction modes with a sequential relationship are generated based on the second candidate mode set and the updated first candidate mode set. For example, n1 can be 2, 3, etc.

[0132] Optionally, the process of generating multiple candidate prediction modes with a sequential relationship based on the second candidate mode set and the updated first candidate mode set can adopt the scheme of "step 2" in the aforementioned embodiment, that is, first set the mode numbers (i.e., cand_mode[0] to cand_mode[5]) in the updated first candidate mode set to be less than or equal to 3, and the candidate prediction modes with mode numbers 32 and 33 to invalid values, and adjust the numbers of other candidate prediction modes to between 4 and 31; then sort them in the order of cand_mode[0] to cand_mode[5], cand_mode[6] to cand_mode[9] to obtain multiple candidate prediction modes with a sequential relationship. Among them, cand_mode[6] to cand_mode[9] are the numbers of the candidate prediction modes included in the second candidate mode set.

[0133] In one embodiment of the present application, when determining multiple candidate prediction modes with a sequential relationship, the n1 intra-frame prediction modes in the third candidate mode set formed by the first candidate mode set and the second candidate mode set can be replaced by these n1 intra-frame prediction modes to obtain an updated third candidate mode set, where n1 is less than or equal to the number of candidate modes included in the third candidate mode set, and then multiple candidate prediction modes with a sequential relationship are generated according to the updated third candidate mode set.

[0134] Optionally, assuming that cand_mode[0] to cand_mode[5] are the numbers of the candidate prediction modes included in the first candidate mode set, and cand_mode[6] to cand_mode[9] are the numbers of the candidate prediction modes included in the second candidate mode set, then the numbers of the candidate prediction modes included in the third candidate mode set are cand_mode[0] to cand_mode[9]. In this case, a scheme similar to "step 2" in the aforementioned embodiment can be adopted to generate multiple candidate prediction modes with a sequential relationship based on the updated third candidate mode set, that is, first set the mode numbers (i.e., cand_mode[0] to cand_mode[9]) in the updated third candidate mode set to be less than or equal to 3, and the candidate prediction modes with mode numbers 32 and 33 to invalid values, and adjust the numbers of other candidate prediction modes to between 4 and 31, so as to obtain multiple candidate prediction modes with a sequential relationship.

[0135] In one embodiment of the present application, when determining multiple candidate prediction modes with a sequential relationship, the candidate prediction modes in the first candidate mode set and the candidate prediction modes in the second candidate mode set can be sorted to obtain sorted candidate prediction modes, and then the selected n1 intra-frame prediction modes are added to the specified positions in the sorted candidate prediction modes to generate multiple candidate prediction modes with a sequential relationship; wherein the specified position includes the frontmost, the lastmost, or the inserted into the sorted candidate prediction mode.

[0136] Optionally, assuming that cand_mode[0] to cand_mode[5] are numbers of candidate prediction modes included in the first candidate mode set, and cand_mode[6] to cand_mode[9] are numbers of candidate prediction modes included in the second candidate mode set, then the candidate prediction modes in the first candidate mode set and the candidate prediction modes in the second candidate mode set are numbered cand_mode[0] to cand_mode[9]. In this case, after the selected n1 intra-frame prediction modes are added to the designated positions in the sorted candidate prediction modes, a scheme similar to "step 2" in the aforementioned embodiment can be adopted to obtain multiple candidate prediction modes with a sequential relationship, that is, the mode numbers in the sorted candidate prediction modes are less than or equal to 3, and the candidate prediction modes with mode numbers 32 and 33 are set to invalid values, and the numbers of other candidate prediction modes are adjusted to between 4 and 31, so as to obtain multiple candidate prediction modes with a sequential relationship.

[0137] In one embodiment of the present application, when determining multiple candidate prediction modes with a sequential relationship, the first intra-frame prediction mode in the first candidate mode set, or the first intra-frame prediction mode in the first candidate mode set and the n1 intra-frame prediction modes can be replaced with a vertical prediction mode or a quasi-vertical prediction mode, and the second intra-frame prediction mode in the first candidate mode set can be replaced with a horizontal prediction mode or a quasi-horizontal prediction mode; wherein the first intra-frame prediction mode is mode 0, mode 1 or mode 32 in the intra-frame prediction mode, the second intra-frame prediction mode is mode 2, mode 3 or mode 33 in the intra-frame prediction mode, the quasi-horizontal prediction mode includes modes 56 to 59, mode 23 and mode 25 in the intra-frame prediction mode, and the quasi-vertical prediction mode includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode. The technical solution of this embodiment enables these intra-frame prediction modes to be replaced with specified prediction modes when the intra-frame prediction mode is not an intra-frame prediction mode available for SAWP, thereby reducing the average encoding code length of the intra-frame prediction mode of SAWP and improving the encoding and decoding efficiency.

[0138] In one embodiment of the present application, the process of determining the maximum possible intra-frame prediction mode list in step S930 based on the intra-frame prediction mode, SAWP index value, and intra-frame prediction mode statistics adopted by the adjacent blocks may include: generating an initial list of maximum possible intra-frame prediction modes based on the intra-frame prediction mode and SAWP index value adopted by the adjacent blocks, and then selecting the first n2 intra-frame prediction modes that comply with SAWP from the intra-frame prediction mode statistics in order of statistical values ​​from large to small, and replacing some intra-frame prediction modes in the initial list of maximum possible intra-frame prediction modes with the first n2 intra-frame prediction modes that comply with SAWP, so as to obtain the maximum possible intra-frame prediction mode list.

[0139] Optionally, the process of generating the maximum possible intra prediction mode initial list according to the intra prediction mode and SAWP index value adopted by the adjacent blocks can refer to "step 1", "step 2", "step 3" and "step 4" in the aforementioned embodiments and will not be repeated here.

[0140] In one embodiment of the present application, the first n3 SAWP-compliant intra-frame prediction modes can also be directly selected from the intra-frame prediction mode statistics in descending order of statistical values ​​to generate a maximum possible intra-frame prediction mode list, wherein the number of intra-frame prediction modes counted in the intra-frame prediction mode statistics is greater than or equal to the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list. The technical solution of this embodiment is to directly use the SAWP-compliant intra-frame prediction mode selected from the intra-frame prediction mode statistics as the MPM to generate the MPM list.

[0141] Continue to refer to Fig. 9 As shown, in step S940, other coding blocks of the video image frame are decoded based on the most likely intra prediction mode list.

[0142] based on Fig. 9 The technical solution of the embodiment shown, in one embodiment of the present application, may also be used to determine whether the corresponding coding block needs to determine the maximum possible intra prediction mode list according to the intra prediction mode, SAWP index value, and intra prediction mode statistics of the adjacent blocks during decoding according to at least one of the following methods:

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

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

[0145] Specifically, when determining whether it is necessary to determine the maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring blocks, the SAWP index value, and the intra prediction mode statistics, the following methods may be used:

[0146] 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 determine the maximum possible intra-frame prediction mode list according to the intra-frame prediction mode adopted by the adjacent blocks, the SAWP index value, and the intra-frame prediction mode statistics when decoding.

[0147] 2. Indicated by 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 image header is 1 (the value is only an example), it means that when decoding all coding blocks corresponding to the video image frame, it is necessary to determine the maximum possible intra-frame prediction mode list based on the intra-frame prediction mode adopted by the adjacent blocks, the SAWP index value, and the intra-frame prediction mode statistics.

[0148] 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 determine the maximum possible intra-frame prediction mode list according to the intra-frame prediction mode adopted by the adjacent blocks, the SAWP index value, and the intra-frame prediction mode statistics when decoding.

[0149] Fig.11 A flowchart of a video encoding method according to an embodiment of the present application is shown. The video encoding method can be executed by a device with a computing and processing function, such as a terminal device or a server. Fig.11 As shown, the video encoding method at least includes steps S1110 to S1140, which are described in detail as follows:

[0150] In step S1110 , the SAWP index value corresponding to the coding block of the video image frame is determined.

[0151] In step S1120, the intra-frame prediction mode adopted by the neighboring blocks of the coding block is obtained, and the intra-frame prediction mode statistical result obtained by statistically analyzing the intra-frame prediction mode adopted by the coding block in the video image frame is obtained.

[0152] In step S1130, a most possible intra prediction mode list is determined according to the intra prediction modes adopted by the neighboring blocks, the SAWP index values, and the intra prediction mode statistics.

[0153] In step S1140, other coding blocks of the video image frame are coded based on the most probable intra prediction mode list.

[0154] It should be noted that the process of determining the maximum possible intra-frame prediction mode list at the encoding end is similar to that at the decoding end and will not be repeated here.

[0155] The technical solution of the aforementioned embodiment of the present application improves the construction accuracy of the MPM list by introducing the historical intra-frame prediction mode, which can reduce the average encoding code length of the intra-frame prediction mode of SAWP to a certain extent, thereby improving the encoding and decoding efficiency.

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

[0157] Fig.12 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.

[0158] Reference Fig.12 As shown, a video decoding device 1200 according to an embodiment of the present application includes: a decoding unit 1202 , a first acquiring unit 1204 , a first processing unit 1206 and a second processing unit 1208 .

[0159] Among them, the decoding unit 1202 is configured to decode the coding block of the video image frame to obtain the spatial angle weighted prediction SAWP index value; the first acquisition unit 1204 is configured to obtain the intra-frame prediction mode adopted by the adjacent blocks of the coding block, and obtain the intra-frame prediction mode statistics obtained by statistics of the intra-frame prediction mode adopted by the coding block in the video image frame; the first processing unit 1206 is configured to determine the maximum possible intra-frame prediction mode list according to the intra-frame prediction mode adopted by the adjacent blocks, the SAWP index value, and the intra-frame prediction mode statistics; the second processing unit 1208 is configured to decode other coding blocks of the video image frame based on the maximum possible intra-frame prediction mode list.

[0160] In some embodiments of the present application, based on the above-mentioned solution, the first acquisition unit 1204 is configured to: count the specified intra-frame prediction mode adopted by the coding block in the video image frame to obtain the intra-frame prediction mode statistical result.

[0161] In some embodiments of the present application, based on the above scheme, the specified intra-frame prediction mode includes: all intra-frame prediction modes; or

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

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

[0164] Horizontal prediction mode, vertical prediction mode, Bilinear prediction mode, and DC prediction mode; or an intra prediction mode selected from mode 0 to mode 33 in the intra prediction mode; or

[0165] An intra-frame prediction mode 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; and the quasi-vertical prediction mode includes modes 42 to 45, mode 11, and mode 13 in the intra-frame prediction mode; or

[0166] an intra-prediction mode selected from the intra-prediction modes used by the SAWP; or

[0167] The intra prediction mode is selected from the intra prediction modes counted by the FIMC (Frequency-based Intra Mode Coding) method.

[0168] In some embodiments of the present application, based on the above-mentioned solution, the first acquisition unit 1204 is configured to: acquire the intra-frame prediction mode statistical results obtained by FIMC statistics.

[0169] In some embodiments of the present application, based on the aforementioned scheme, the video decoding device 1200 also includes: an updating unit, configured to obtain two intra-frame prediction modes of the SAWP method obtained by decoding the coding block of the video image frame, and update the intra-frame prediction mode statistical results counted by the FIMC method through one or two of the two intra-frame prediction modes.

[0170] In some embodiments of the present application, based on the aforementioned scheme, the first processing unit 1206 includes: a determination unit, configured to determine a plurality of candidate prediction modes having a sequential relationship according to the intra-frame prediction mode adopted by the adjacent block, the SAWP index value, and the intra-frame prediction mode statistical result; a selection unit, configured to select a set number of different candidate prediction modes from the plurality of candidate prediction modes according to the sequential relationship to generate the maximum possible intra-frame prediction mode list.

[0171] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: determine a first candidate mode set according to the intra-frame prediction mode adopted by the adjacent block, and determine a second candidate mode set according to the SAWP index value; select n1 intra-frame prediction modes from the statistical results of the intra-frame prediction mode in descending order of statistical values; determine the multiple candidate prediction modes having a sequential relationship according to the first candidate mode set, the second candidate mode set and the n1 intra-frame prediction modes.

[0172] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: replace the n1 intra-frame prediction modes in the first candidate mode set with the n1 intra-frame prediction modes to obtain an updated first candidate mode set, and the n1 is less than or equal to the number of candidate modes included in the first candidate mode set; and generate the multiple candidate prediction modes with a sequential relationship according to the second candidate mode set and the updated first candidate mode set.

[0173] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: replace the n1 intra-frame prediction modes in the third candidate mode set formed by the first candidate mode set and the second candidate mode set with the n1 intra-frame prediction modes to obtain an updated third candidate mode set, and the n1 is less than or equal to the number of candidate modes included in the third candidate mode set; and generate the multiple candidate prediction modes with a sequential relationship according to the updated third candidate mode set.

[0174] In some embodiments of the present application, based on the aforementioned scheme, the determination unit is configured to: sort the candidate prediction modes in the first candidate mode set and the candidate prediction modes in the second candidate mode set to obtain sorted candidate prediction modes; add the n1 intra-frame prediction modes to the specified positions in the sorted candidate prediction modes to generate the multiple candidate prediction modes with a sequential relationship; wherein the specified position includes the frontmost, the lastmost or inserted into the sorted candidate prediction mode.

[0175] In some embodiments of the present application, based on the aforementioned scheme, the first processing unit 1206 is further configured to: before determining the multiple candidate prediction modes having a sequential relationship according to the first candidate mode set, the second candidate mode set and the n1 intra-frame prediction modes, replace the first intra-frame prediction mode in the first candidate mode set, or the first intra-frame prediction mode in the first candidate mode set and the n1 intra-frame prediction modes with a vertical prediction mode or a quasi-vertical prediction mode, and replace the second intra-frame prediction mode in the first candidate mode set with a horizontal prediction mode or a quasi-horizontal prediction mode; wherein the first intra-frame prediction mode is mode 0, mode 1 or mode 32 in the intra-frame prediction mode, the second intra-frame prediction mode is mode 2, mode 3 or mode 33 in the intra-frame prediction mode, the quasi-horizontal prediction mode includes modes 56 to 59, mode 23 and mode 25 in the intra-frame prediction mode, and the quasi-vertical prediction mode includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode.

[0176] In some embodiments of the present application, based on the above scheme, the determining unit is configured to: select the first n1 intra-frame prediction modes from the intra-frame prediction mode statistical results in descending order of statistical values; or

[0177] The first n1 intra-frame prediction modes that meet the SAWP are selected from the intra-frame prediction mode statistical results in descending order of the statistical values.

[0178] In some embodiments of the present application, based on the aforementioned scheme, the first processing unit 1206 is configured to: generate an initial list of maximum possible intra-frame prediction modes according to the intra-frame prediction mode adopted by the adjacent block and the SAWP index value; select the first n2 intra-frame prediction modes that comply with SAWP from the statistical results of the intra-frame prediction mode in descending order of statistical values; replace some intra-frame prediction modes in the initial list of maximum possible intra-frame prediction modes with the first n2 intra-frame prediction modes that comply with SAWP, and obtain the maximum possible intra-frame prediction mode list.

[0179] In some embodiments of the present application, based on the aforementioned scheme, the first processing unit 1206 is configured to: select the first n3 intra-frame prediction modes that comply with SAWP from the intra-frame prediction mode statistical results in order of statistical values ​​from large to small to generate the maximum possible intra-frame prediction mode list, and the number of intra-frame prediction modes counted in the intra-frame prediction mode statistical results is greater than or equal to the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list.

[0180] In some embodiments of the present application, based on the foregoing solution, the first processing unit 1206 is further configured to: determine whether the corresponding coding block needs to determine the maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring block, the SAWP index value, and the intra prediction mode statistical result during decoding according to at least one of the following methods:

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

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

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

[0184] Reference Fig.13 As shown, a video encoding device 1300 according to an embodiment of the present application includes: a determining unit 1302 , a second acquiring unit 1304 , a third processing unit 1306 and a fourth processing unit 1308 .

[0185] Among them, the determination unit 1302 is configured to determine the SAWP index value corresponding to the coding block of the video image frame; the second acquisition unit 1304 is configured to obtain the intra-frame prediction mode adopted by the adjacent blocks of the coding block, and obtain the intra-frame prediction mode statistics obtained by statistics of the intra-frame prediction mode adopted by the coding block in the video image frame; the third processing unit 1306 is configured to determine the maximum possible intra-frame prediction mode list according to the intra-frame prediction mode adopted by the adjacent blocks, the SAWP index value, and the intra-frame prediction mode statistics; the fourth processing unit 1308 is configured to perform encoding processing on other coding blocks of the video image frame based on the maximum possible intra-frame prediction mode list.

[0186] Fig.14 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.

[0187] It should be noted that Fig.14 The computer system 1400 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.

[0188] like Fig.14As shown, the computer system 1400 includes a central processing unit (CPU) 1401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1402 or the program loaded from the storage part 1408 to the random access memory (RAM) 1403, such as executing the method described in the above embodiment. In the RAM 1403, various programs and data required for system operation are also stored. The CPU 1401, the ROM 1402 and the RAM 1403 are connected to each other through the bus 1404. The input / output (I / O) interface 1405 is also connected to the bus 1404.

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

[0190] 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 1409, and / or installed from a removable medium 1411. When the computer program is executed by a central processing unit (CPU) 1401, various functions defined in the system of the present application are executed.

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

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

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

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

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

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

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

[0198] 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: Decode the coding block of the video image frame to obtain the spatial angle weighted prediction SAWP index value; Obtaining an intra-frame prediction mode adopted by a neighboring block of the coding block, and obtaining an intra-frame prediction mode statistical result obtained by statistically analyzing the intra-frame prediction modes adopted by the coding blocks in the video image frame; Determine a maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring block, the SAWP index value, and the intra prediction mode statistical result; The other coding blocks of the video image frame are decoded based on the most likely intra prediction mode list.

2. The video decoding method according to claim 1, characterized in that: Obtaining intra-frame prediction mode statistics results obtained by counting the intra-frame prediction modes used by the coding blocks in the video image frame, including: The specified intra-frame prediction mode adopted by the coding block in the video image frame is counted to obtain the intra-frame prediction mode statistical result.

3. The video decoding method according to claim 2, characterized in that: The specified intra prediction mode includes: all intra prediction modes; or 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; or An intra prediction mode selected from Mode 0 to Mode 33 among intra prediction modes; or An intra-frame prediction mode 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; and the quasi-vertical prediction mode includes modes 42 to 45, mode 11, and mode 13 in the intra-frame prediction mode; or an intra-prediction mode selected from the intra-prediction modes used by the SAWP; or The intra-frame prediction mode is selected from the intra-frame prediction modes counted by the intra-frame coding FIMC method based on frequency information.

4. The video decoding method according to claim 1, characterized in that: Obtaining intra-frame prediction mode statistics results obtained by counting the intra-frame prediction modes used by the coding blocks in the video image frame, including: Get the intra-frame prediction mode statistics obtained by FIMC method.

5. The video decoding method according to claim 4, characterized in that: The method further comprises: Obtain two intra-frame prediction modes of a SAWP method obtained by decoding a coding block of the video image frame; The intra-frame prediction mode statistics result counted by the FIMC method is updated by using one or two intra-frame prediction modes among the two intra-frame prediction modes.

6. The video decoding method according to claim 1, characterized in that: Determining a maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring block, the SAWP index value, and the intra prediction mode statistical result, including: Determining a plurality of candidate prediction modes having a sequential relationship according to the intra prediction mode adopted by the adjacent block, the SAWP index value, and the intra prediction mode statistical result; According to the sequential relationship, a set number of different candidate prediction modes are selected from the multiple candidate prediction modes to generate the most likely intra prediction mode list.

7. The video decoding method according to claim 6, characterized in that: Determining a plurality of candidate prediction modes having a sequential relationship according to the intra prediction mode adopted by the adjacent block, the SAWP index value, and the intra prediction mode statistical result, including: Determine a first candidate mode set according to the intra prediction mode adopted by the neighboring block, and determine a second candidate mode set according to the SAWP index value; Selecting n1 intra-frame prediction modes from the intra-frame prediction mode statistical results in descending order of statistical values; The plurality of candidate prediction modes having a sequential relationship are determined according to the first candidate mode set, the second candidate mode set and the n1 intra prediction modes.

8. The video decoding method according to claim 7, characterized in that: Determining the plurality of candidate prediction modes having a sequential relationship according to the first candidate mode set, the second candidate mode set and the n1 intra prediction modes comprises: Replacing n1 intra-frame prediction modes in the first candidate mode set with the n1 intra-frame prediction modes to obtain an updated first candidate mode set, wherein n1 is less than or equal to the number of candidate modes included in the first candidate mode set; The plurality of candidate prediction modes having a sequential relationship are generated according to the second candidate mode set and the updated first candidate mode set.

9. The video decoding method according to claim 7, characterized in that: Determining the plurality of candidate prediction modes having a sequential relationship according to the first candidate mode set, the second candidate mode set and the n1 intra prediction modes comprises: Replacing n1 intra-frame prediction modes in a third candidate mode set formed by the first candidate mode set and the second candidate mode set with the n1 intra-frame prediction modes to obtain an updated third candidate mode set, wherein n1 is less than or equal to the number of candidate modes included in the third candidate mode set; The plurality of candidate prediction modes having a sequential relationship are generated according to the updated third candidate mode set.

10. The video decoding method according to claim 7, characterized in that: Determining the plurality of candidate prediction modes having a sequential relationship according to the first candidate mode set, the second candidate mode set and the n1 intra prediction modes comprises: Sorting the candidate prediction modes in the first candidate mode set and the candidate prediction modes in the second candidate mode set to obtain sorted candidate prediction modes; Adding the n1 intra-frame prediction modes to designated positions in the sorted candidate prediction modes to generate the plurality of candidate prediction modes having a sequential relationship; The designated position includes the frontmost or the last position of the sorted candidate prediction mode or is inserted into the sorted candidate prediction mode.

11. The video decoding method according to claim 7, characterized in that: Before determining the plurality of candidate prediction modes having a sequential relationship according to the first candidate mode set, the second candidate mode set and the n1 intra prediction modes, the video decoding method further includes: Replacing a first intra prediction mode in the first candidate mode set, or in the first candidate mode set and the n1 intra prediction modes, with a vertical prediction mode or a quasi-vertical prediction mode, and replacing a second intra prediction mode in the first candidate mode set with a horizontal prediction mode or a quasi-horizontal prediction mode; Among them, the first intra-frame prediction mode is mode 0, mode 1 or mode 32 in the intra-frame prediction mode, the second intra-frame prediction mode is mode 2, mode 3 or mode 33 in the intra-frame prediction mode, the class horizontal prediction mode includes modes 56 to 59, mode 23 and mode 25 in the intra-frame prediction mode, and the class vertical prediction mode includes modes 42 to 45, mode 11 and mode 13 in the intra-frame prediction mode.

12. The video decoding method according to any one of claims 7 to 11, characterized in that: Selecting n1 intra-frame prediction modes from the intra-frame prediction mode statistical results in descending order of statistical values, including: Selecting first n1 intra-frame prediction modes from the intra-frame prediction mode statistical results in descending order of statistical values; or The first n1 intra-frame prediction modes that meet the SAWP are selected from the intra-frame prediction mode statistical results in descending order of the statistical values.

13. The video decoding method according to claim 1, characterized in that: Determining a maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring block, the SAWP index value, and the intra prediction mode statistical result, including: Generate a maximum possible intra prediction mode initial list according to the intra prediction mode adopted by the neighboring block and the SAWP index value; Selecting first n2 intra-frame prediction modes that meet the SAWP from the intra-frame prediction mode statistical results in descending order of statistical values; The most probable intra-frame prediction mode list is obtained by replacing some intra-frame prediction modes in the most probable intra-frame prediction mode initial list with the first n2 intra-frame prediction modes that conform to SAWP.

14. The video decoding method according to claim 1, characterized in that: Determining a maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring block, the SAWP index value, and the intra prediction mode statistical result, including: In descending order of statistical values, the first n3 intra-frame prediction modes that conform to SAWP are selected from the intra-frame prediction mode statistical results to generate the maximum possible intra-frame prediction mode list, and the number of intra-frame prediction modes counted in the intra-frame prediction mode statistical results is greater than or equal to the number of intra-frame prediction modes included in the maximum possible intra-frame prediction mode list.

15. The video decoding method according to claim 1, characterized in that: The video decoding method further includes: determining whether the corresponding coding block needs to determine a maximum possible intra prediction mode list according to the intra prediction mode adopted by the adjacent block, the SAWP index value, and the intra prediction mode statistical result when decoding according to at least one of the following methods: The value of the index identifier contained in the sequence header of the coding block corresponding to the video image frame sequence; The value of the index identifier contained in the image header of the coding block corresponding to the video image frame.

16. A video encoding method, characterized in that: include: Determine the SAWP index value corresponding to the coding block of the video image frame; Obtaining an intra-frame prediction mode adopted by a neighboring block of the coding block, and obtaining an intra-frame prediction mode statistical result obtained by statistically analyzing the intra-frame prediction modes adopted by the coding blocks in the video image frame; Determine a maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring block, the SAWP index value, and the intra prediction mode statistical result; The other coding blocks of the video image frame are encoded based on the most likely intra prediction mode list.

17. A video decoding device, characterized in that: include: A decoding unit, configured to decode the coding block of the video image frame to obtain a spatial angle weighted prediction SAWP index value; A first acquisition unit is configured to acquire an intra-frame prediction mode adopted by a neighboring block of the coding block, and acquire an intra-frame prediction mode statistical result obtained by performing statistics on the intra-frame prediction mode adopted by the coding block in the video image frame; A first processing unit is configured to determine a maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring block, the SAWP index value, and the intra prediction mode statistical result; The second processing unit is configured to perform decoding processing on other coding blocks of the video image frame based on the most likely intra-frame prediction mode list.

18. A video encoding device, characterized in that: include: A determination unit configured to determine a SAWP index value corresponding to a coding block of a video image frame; A second acquisition unit is configured to acquire an intra-frame prediction mode adopted by a neighboring block of the coding block, and acquire an intra-frame prediction mode statistical result obtained by performing statistics on the intra-frame prediction mode adopted by the coding block in the video image frame; A third processing unit is configured to determine a maximum possible intra prediction mode list according to the intra prediction mode adopted by the neighboring block, the SAWP index value, and the intra prediction mode statistical result; The fourth processing unit is configured to perform encoding processing on other encoding blocks of the video image frame based on the most likely intra-frame prediction mode list.

19. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the video decoding method according to any one of claims 1 to 15, or implements the video encoding method according to claim 16.

20. 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 video decoding method as described in any one of claims 1 to 15, or implement the video encoding method as described in claim 16.