A fast decision method for intra-frame prediction based on AVS3

By adopting the intra-frame prediction fast decision-making method in AVS3, the encoding complexity is reduced, the problem of extended encoding time of AVS3 is solved, and the effects of high stability and short encoding time are achieved.

CN114040211BActive Publication Date: 2024-10-11SUN YAT SEN UNIV
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202111256139.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-27
Publication Date
2024-10-11
Estimated Expiration
2041-10-27

AI Technical Summary

Technical Problem

The increased coding complexity of AVS3 results in extended coding time, limiting its application and promotion, especially in terms of real-time coding and hardware implementation difficulties.

Method used

The AVS3-based intra prediction fast decision-making method is used to obtain the target prediction mode list by dividing the intra-frame derived modes of the prediction block, and use the intra prediction fast algorithm to obtain the rough selection list of prediction modes, calculate the rate distortion cost, and finally determine the optimal Optimize prediction mode and reduce coding complexity.

Benefits of technology

It achieves intra-frame prediction decision-making with high stability and short encoding time, saving 25.4% of encoding time compared with the original algorithm, while maintaining the stability of the video compression rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114040211B_ABST
    Figure CN114040211B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for fast intra-frame prediction decision based on AVS3, the method comprising: dividing the intra-frame derivative mode of the prediction block to obtain a target prediction mode list; using an intra-frame prediction fast algorithm to obtain a rough prediction mode list; obtaining the union of the target prediction mode list and the rough prediction mode list to obtain a rate-distortion cost list; calculating the rate-distortion cost of the rate-distortion cost list; determining the mode with the minimum rate-distortion cost as the optimal prediction mode; wherein the intra-frame prediction fast algorithm comprises an intra-frame prediction decision fast algorithm based on texture direction and an intra-frame prediction decision fast algorithm based on spatial correlation of adjacent prediction blocks. The present invention has high stability and short coding time, and can be widely used in the field of audio and video coding technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of audio and video coding, and in particular to an intra-frame prediction fast decision method based on AVS3. Background Art

[0002] The Audio Video Coding Standard Workgroup of China (AVS) was established in 2002. It is mainly responsible for formulating (revising) common technical standards for compression, decompression, processing and representation of digital audio and video, providing efficient and economical coding and decoding technologies for digital audio and video equipment and systems, and serving major information industry applications such as high-resolution digital broadcasting, high-density laser digital storage media, wireless broadband multimedia communications, and Internet broadband streaming media. The AVS series of standards formulated by the AVS working group, such as AVS+ and AVS2, have been widely used in domestic video applications, and the development of domestic video coding standards has gradually kept pace with international video coding standards. In 2017, the International Organization for Standardization began to formulate the next-generation video compression standard VVC; the AVS working group released the third-generation audio and video coding technology standard AVS3 for 8K and 5G industry applications.

[0003] While retaining some of the coding tools of AVS2, AVS3 introduces new coding tools for different modules, richer block division methods, more sophisticated prediction modes, and more flexible transformation kernels, which improves coding efficiency and increases coding complexity. From the overall performance comparison results, AVS3 has a 23.52% higher coding performance than AVS2, the time complexity has doubled, and the decoding complexity is half of the AVS2 reference software. The average coding performance of HEVC has increased by 22.25%, the time complexity is about 7 times that of HEVC, and the decoding time has increased slightly. The increase in complexity is not conducive to real-time coding and also brings difficulties to hardware implementation, which greatly limits the application and promotion of AVS3. Therefore, reducing the complexity of AVS3 and increasing the fast algorithm of coding speed have become the current key research content.

[0004] AVS2 specifies 33 intra-frame prediction modes, numbered 0 to 32, such as Figure 1 As shown by the black arrow in the figure. It includes three non-angle modes, DC, Plane and Bilinear, and 30 angle modes. The angle between the prediction directions of the angle modes is 7.5 degrees. The EIPM of AVS3 expands the 30 angle modes, adding two angles on both sides of the vertical direction (numbered 12) and the horizontal direction (numbered 24), and one angle between other directions, that is, the angle between the prediction directions is halved to 3.75 degrees. The newly added 32 angle modes are numbered from 34 to 65. Figure 1The newly added prediction mode refines the prediction direction and improves the prediction capability of the directional texture features of the video, which is conducive to processing high-definition videos with more complex textures. However, it also greatly increases the encoding complexity, greatly reduces the real-time performance of the video, and is not conducive to promotion. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides an intra-frame prediction fast decision method based on AVS3 with high stability and short encoding time.

[0006] One aspect of the present invention provides a fast decision method for intra-frame prediction based on AVS3, comprising:

[0007] Divide the intra-frame derivative mode of the prediction block to obtain a target prediction mode list;

[0008] Use the intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes;

[0009] Obtaining a union of the target prediction mode list and the rough prediction mode list to obtain a rate-distortion cost list;

[0010] Calculating the rate-distortion cost of the rate-distortion cost list;

[0011] Determine the mode with the smallest rate distortion cost as the optimal prediction mode;

[0012] The intra-frame prediction fast algorithm includes an intra-frame prediction decision fast algorithm based on texture direction and an intra-frame prediction decision fast algorithm based on spatial correlation of adjacent prediction blocks.

[0013] Optionally, a fast intra-frame prediction algorithm is used to obtain a rough selection list of prediction modes, including:

[0014] If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are all vertical, then the texture values ​​of the prediction block in the horizontal and vertical directions are calculated;

[0015] When the texture value in the vertical direction is greater than the texture value in the horizontal direction, constructing a first vertical rough selection list, calculating the Hadamard cost of the prediction mode in the first vertical rough selection list, and updating the first vertical rough selection list according to the Hadamard cost;

[0016] According to the first vertical rough selection list, a second vertical rough selection list is constructed, and the Hadamard cost of the second vertical rough selection list is calculated, and the second vertical rough selection list is updated according to the Hadamard cost;

[0017] A rate-distortion optimized list is constructed according to the second vertical coarse selection list.

[0018] Optionally, using an intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes also includes:

[0019] If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are all horizontal, then the texture values ​​of the prediction block in the horizontal and vertical directions are calculated;

[0020] When the texture value in the horizontal direction is greater than the texture value in the vertical direction, constructing a first horizontal rough selection list, calculating the Hadamard cost of the prediction mode in the first horizontal rough selection list, and updating the first horizontal rough selection list according to the Hadamard cost;

[0021] According to the first horizontal rough selection list, construct a second horizontal rough selection list, calculate the Hadamard cost of the second horizontal rough selection list, and update the second horizontal rough selection list according to the Hadamard cost;

[0022] A rate-distortion optimized list is constructed according to the second level coarse selection list.

[0023] Optionally, using an intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes also includes:

[0024] If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are not all in the horizontal direction or not all in the vertical direction, construct a first rough selection list, calculate the Hadamard cost of the prediction mode in the first rough selection list, and update the first rough selection list according to the Hadamard cost;

[0025] When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are both the DC mode or the Plane mode, a rate-distortion cost list is constructed according to the top two prediction modes with the smallest Hadamard cost.

[0026] Optionally, the method of using an intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes further includes:

[0027] When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are not both DC mode or Plane mode;

[0028] If the most likely mode is a special mode, the starting search mode is determined as the target mode with the smallest Hadamard cost in the horizontal direction and the vertical direction;

[0029] According to the target mode, construct a second rough selection list, calculate the Hadamard cost of the second rough selection list, and update the second rough selection list according to the Hadamard cost;

[0030] constructing a third rough selection list according to the second rough selection list, calculating a Hadamard cost of the third rough selection list, and updating the third rough selection list according to the Hadamard cost;

[0031] The top two prediction modes with the smallest Hadamard cost are selected from the third rough selection list to construct a rate-distortion cost list.

[0032] Optionally, the method of using an intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes further includes:

[0033] When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are not both DC mode or Plane mode;

[0034] If the most probable mode is not a special mode, the starting search mode is determined as the target mode with the smallest Hadamard cost in the horizontal direction, the vertical direction or the most probable mode.

[0035] Another aspect of an embodiment of the present invention provides an intra-frame prediction fast decision device based on AVS3, comprising:

[0036] The first module is used to divide the intra-frame derivative mode of the prediction block and obtain a target prediction mode list;

[0037] The second module is used to obtain a rough selection list of prediction modes using an intra-frame prediction fast algorithm;

[0038] The third module is used to obtain the union of the target prediction mode list and the rough prediction mode list to obtain a rate distortion cost list;

[0039] A fourth module, configured to calculate the rate-distortion cost of the rate-distortion cost list;

[0040] A fifth module is used to determine the mode with the smallest rate distortion cost as the optimal prediction mode;

[0041] The intra-frame prediction fast algorithm includes an intra-frame prediction decision fast algorithm based on texture direction and an intra-frame prediction decision fast algorithm based on spatial correlation of adjacent prediction blocks.

[0042] Another aspect of an embodiment of the present invention provides an electronic device, including a processor and a memory;

[0043] The memory is used to store programs;

[0044] The processor executes the program to implement the method described above.

[0045] Another aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described above.

[0046] Another aspect of an embodiment of the present invention provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0047] The embodiment of the present invention divides the intra-frame derivative mode of the prediction block to obtain a target prediction mode list; adopts an intra-frame prediction fast algorithm to obtain a prediction mode rough selection list; obtains the union of the target prediction mode list and the prediction mode rough selection list to obtain a rate-distortion cost list; calculates the rate-distortion cost of the rate-distortion cost list; determines the mode with the smallest rate-distortion cost as the optimal prediction mode; wherein the intra-frame prediction fast algorithm includes an intra-frame prediction decision fast algorithm based on texture direction and an intra-frame prediction decision fast algorithm based on spatial correlation of adjacent prediction blocks. The present invention has high stability and short coding time. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 A schematic diagram of an intra-frame prediction mode provided by an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of typical horizontal and vertical prediction modes provided by an embodiment of the present invention;

[0051] Figure 3 A schematic diagram of a prediction mode in the vertical direction of a prediction block provided by an embodiment of the present invention;

[0052] Figure 4 A flowchart of the steps of obtaining a rough selection list of prediction modes using a fast intra-frame prediction algorithm provided by an embodiment of the present invention;

[0053] Figure 5 The present invention provides an overall step flow chart of the embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] In view of the problems existing in the prior art, an embodiment of the present invention provides a fast decision method for intra-frame prediction based on AVS3, comprising:

[0056] Divide the intra-frame derivative mode of the prediction block to obtain a target prediction mode list;

[0057] Use the intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes;

[0058] Obtaining a union of the target prediction mode list and the rough prediction mode list to obtain a rate-distortion cost list;

[0059] Calculating the rate-distortion cost of the rate-distortion cost list;

[0060] Determine the mode with the smallest rate distortion cost as the optimal prediction mode;

[0061] The intra-frame prediction fast algorithm includes an intra-frame prediction decision fast algorithm based on texture direction and an intra-frame prediction decision fast algorithm based on spatial correlation of adjacent prediction blocks.

[0062] Optionally, a fast intra-frame prediction algorithm is used to obtain a rough selection list of prediction modes, including:

[0063] If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are all vertical, then the texture values ​​of the prediction block in the horizontal and vertical directions are calculated;

[0064] When the texture value in the vertical direction is greater than the texture value in the horizontal direction, constructing a first vertical rough selection list, calculating the Hadamard cost of the prediction mode in the first vertical rough selection list, and updating the first vertical rough selection list according to the Hadamard cost;

[0065] According to the first vertical rough selection list, a second vertical rough selection list is constructed, and the Hadamard cost of the second vertical rough selection list is calculated, and the second vertical rough selection list is updated according to the Hadamard cost;

[0066] A rate-distortion optimized list is constructed according to the second vertical coarse selection list.

[0067] Optionally, using an intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes also includes:

[0068] If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are all horizontal, then the texture values ​​of the prediction block in the horizontal and vertical directions are calculated;

[0069] When the texture value in the horizontal direction is greater than the texture value in the vertical direction, constructing a first horizontal rough selection list, calculating the Hadamard cost of the prediction mode in the first horizontal rough selection list, and updating the first horizontal rough selection list according to the Hadamard cost;

[0070] According to the first horizontal rough selection list, construct a second horizontal rough selection list, calculate the Hadamard cost of the second horizontal rough selection list, and update the second horizontal rough selection list according to the Hadamard cost;

[0071] A rate-distortion optimized list is constructed according to the second level coarse selection list.

[0072] Optionally, using an intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes also includes:

[0073] If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are not all in the horizontal direction or not all in the vertical direction, construct a first rough selection list, calculate the Hadamard cost of the prediction mode in the first rough selection list, and update the first rough selection list according to the Hadamard cost;

[0074] When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are both the DC mode or the Plane mode, a rate-distortion cost list is constructed according to the top two prediction modes with the smallest Hadamard cost.

[0075] Optionally, the method of using an intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes further includes:

[0076] When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are not both DC mode or Plane mode;

[0077] If the most likely mode is a special mode, the starting search mode is determined as the target mode with the smallest Hadamard cost in the horizontal direction and the vertical direction;

[0078] According to the target mode, construct a second rough selection list, calculate the Hadamard cost of the second rough selection list, and update the second rough selection list according to the Hadamard cost;

[0079] constructing a third rough selection list according to the second rough selection list, calculating a Hadamard cost of the third rough selection list, and updating the third rough selection list according to the Hadamard cost;

[0080] The top two prediction modes with the smallest Hadamard cost are selected from the third rough selection list to construct a rate-distortion cost list.

[0081] Optionally, the method of using an intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes further includes:

[0082] When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are not both DC mode or Plane mode;

[0083] If the most probable mode is not a special mode, the starting search mode is determined as the target mode with the smallest Hadamard cost in the horizontal direction, the vertical direction or the most probable mode.

[0084] Another aspect of an embodiment of the present invention provides an intra-frame prediction fast decision device based on AVS3, comprising:

[0085] The first module is used to divide the intra-frame derivative mode of the prediction block and obtain a target prediction mode list;

[0086] The second module is used to obtain a rough selection list of prediction modes using an intra-frame prediction fast algorithm;

[0087] The third module is used to obtain the union of the target prediction mode list and the rough prediction mode list to obtain a rate distortion cost list;

[0088] A fourth module, configured to calculate the rate-distortion cost of the rate-distortion cost list;

[0089] A fifth module is used to determine the mode with the smallest rate distortion cost as the optimal prediction mode;

[0090] The intra-frame prediction fast algorithm includes an intra-frame prediction decision fast algorithm based on texture direction and an intra-frame prediction decision fast algorithm based on spatial correlation of adjacent prediction blocks.

[0091] Another aspect of an embodiment of the present invention provides an electronic device, including a processor and a memory;

[0092] The memory is used to store programs;

[0093] The processor executes the program to implement the method described above.

[0094] Another aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described above.

[0095] Another aspect of an embodiment of the present invention provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0096] The specific implementation principle of the AVS3-based intra-frame prediction fast decision method of the present invention is described in detail below in conjunction with the accompanying drawings of the specification:

[0097] First, this embodiment describes in detail the fast algorithm for intra-frame prediction decision based on texture direction:

[0098] Take the vertical direction as an example:

[0099] 1. If the current PU block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are all in the typical vertical direction, that is, MPM[0]∈Ver_List and MPM[1]∈Ver_List (where MPM list is the most likely prediction mode, MPM[0] and MPM[1] represent the encoded PU blocks adjacent to the left and above the current PU, respectively, and Ver_List is as follows: Figure 2 The blue arrow indicates the mode number, and the green one is the typical horizontal mode set Hor_List). The texture values ​​Dh and Dv in the horizontal and vertical directions of the CU size w*h are calculated. The calculation formulas are shown in Formula 2-1 and Formula 2-2, where I(i,j) represents the pixel value with coordinates (i,j). Finally, a threshold decision is made. When the decision conditions are met, a rough selection list Ver_RMD1 = {1,37,8,40,11,12,13,47,16,50,65} is constructed (the horizontal rough selection list is constructed as Hor_RMD1 = {1,34,5,18,52,21,55,57,25,61,28,64}). The mode distribution is as follows Figure 3 The blue model number is shown in the middle. Calculate the Hadamard cost of the prediction model in the list Ver_RMD1 and update the list.

[0100] Hadamard Price J HAD The calculation is shown in Formula 2-3. mode and R mode are the Lagrangian coefficients of the current intra prediction mode and the number of required coding bits, SATD res It refers to the sum of the absolute values ​​of the elements after the residual signal is transformed by Hadamard, that is, the Sum of Absolute Transformed Difference (SATD). Let D be the residual signal matrix of size w*h, H be the Hadamard transform matrix, and its expression after Hadamard transform is shown in 2-4. Then the SATD value of the residual signal can be obtained by formula 2-5. Compared with the rate-distortion cost calculation process, the Hadamard cost calculation only uses addition and subtraction, and the Hadamard matrix can be generated recursively, the complexity is relatively reduced, and the performance is very close to the DCT actually used in video coding.

[0101]

[0102]

[0103] J HAD =SATD res +λ mode ·R mode 2-3

[0104] T(D)=HDH 2-4

[0105] SATD res =∑ w ∑ h |T(D)| 2-5

[0106] 2. In Ver_RMD1, select the prediction modes adjacent to the top three with the smallest Hadamard cost to construct a rough selection list Ver_RMD2, such as Figure 2 The red mode number in the middle indicates the prediction mode adjacent to the left of Ver_RMD1, and the green mode number indicates the prediction mode adjacent to the right of Ver_RMD1. Calculate the Hadamard cost of the prediction mode in the list Ver_RMD2 and update the list.

[0107] 3. Select the top three with the smallest Hadamard cost in Ver_RMD2 to construct the rate-distortion optimization list List_RDO.

[0108] 4. Incorporate the prediction mode of MPM into List_RDO.

[0109] 5. Calculate the RDO cost update list and replace the model with the smallest cost as the best prediction model. mode The calculation formula is shown in Formula 2-6, where λ mode and R mode is the Lagrange coefficient and the number of bits required for encoding in the current mode, SSD represents the sum of squares of the errors between the original pixel and the reconstructed pixel, and the calculation formula is formula 2-7, where I(x,y) and O(x,y) represent the original pixel and the reconstructed pixel respectively.

[0110] J mode =SSD+λ mode ·R mode 2-6

[0111]

[0112] The fast algorithm for intra-frame prediction decision based on texture direction in the embodiment of the present invention requires at most 12+3*2+3=21 Hadamard costs and 5 RDO calculations, which saves at most 33 Hadamard cost calculations compared with HPM9.0. However, the calculation amount of Dh and Dv is introduced. In order to further reduce the calculation complexity, for those without obvious directional characteristics, the correlation between adjacent PU blocks is used to design a fast algorithm for intra-frame prediction decision based on the spatial correlation of adjacent PU blocks.

[0113] The implementation principle of the fast intra-frame prediction decision algorithm based on the spatial correlation of adjacent PU blocks according to the embodiment of the present invention is further described below:

[0114] The specific steps include:

[0115] 1. Select special modes, horizontal, vertical and MPM modes of special angles to construct a rough selection list List_RMD1, that is, List_RMD1 = {0, 1, 2, 12, 24} ∪ MPM, calculate the Hadamard cost of the prediction mode in the list List_RMD1, and update the list.

[0116] 2. If the top two with the smallest Hadamard cost in List_RMD1 are both DC or Plane modes, the mode rough selection is terminated and the RDO process is directly entered after being incorporated into MPM; otherwise, the mode rough selection is continued.

[0117] 3. If all the modes in MPM are special modes, set the starting search mode to the smaller of the Hadamard costs in the horizontal and vertical directions, that is, Search_Start = min_cost(12,24); otherwise, set the starting search mode to the minimum of the Hadamard costs in the horizontal and vertical directions and in MPM, that is, Search_Start = min_cost(12,24,MPM).

[0118] 4. Construct a rough selection list List_RMD2 using prediction patterns that are spaced 4n apart from the start search pattern, where n=1, 2, 3, ..., calculate the Hadamard cost of the prediction pattern in list List_RMD2, and update the list.

[0119] 5. In List_RMD2, select the four prediction modes adjacent to the mode with the smallest Hadamard cost on the left and right to construct a rough selection list List_RMD3, calculate the Hadamard cost of the prediction mode in list List_RMD3, and update the list.

[0120] 6. Take the top two with the smallest Hadamard cost from the list List_RMD3 to construct the rate distortion optimization list List_RDO.

[0121] 7. Incorporate the prediction mode of MPM into List_RDO.

[0122] 8. Calculate the RDO cost update list and replace the model with the smallest cost as the best prediction model.

[0123] The algorithm of this embodiment requires at most 7+15+4=26 Hadamard cost calculations and 4 RDO calculations, while HPM9.0 saves at most 28 Hadamard cost calculations and 1 RDO calculation.

[0124] Finally, the present invention combines the above two algorithms into a fast intra-frame prediction decision algorithm. According to the above description, a flowchart can be made as follows: Figure 4As shown in FIG. 401 is the step flow of the intra-frame prediction decision fast algorithm based on texture direction, and 402 is the step flow of the intra-frame prediction decision fast algorithm based on the spatial correlation of adjacent PU blocks. The position of the intra-frame prediction decision fast algorithm in the entire intra-frame prediction process is as follows: Figure 5 shown.

[0125] This embodiment also conducts experiments on the technical solution proposed by the present invention and related technical solutions to compare the processing effects between different methods.

[0126] Specifically, in the AVS3 standard formulation process, in order to explore potential coding algorithms and fairly evaluate new coding technologies, the AVS3 standard working group uses High-Performance Model (HPM) as a reference software platform. The experiment in this embodiment uses HPM9.0. The general test sequence is divided into Class A, Class B, and Class C according to different resolutions. Each sequence contains four different scenes and content videos. The objective evaluation indicators of video coding include video compression rate, video quality after coding reconstruction, and coding speed. Among them, the video compression rate and the video quality after coding reconstruction restrict each other and are measured by BD-Rate. The human eye is more sensitive to brightness than to chromaticity. The BD-Rate value of the reference Y component can be used. The coding speed is measured by saving coding time than TS.

[0127] The experimental results of the intra-frame prediction decision fast algorithm are shown in Table 1. Table 1 shows the experimental results of the intra-frame prediction decision fast algorithm. It can be seen that the method of the present invention has a significant effect compared with the original HPM9.0 algorithm. With only a 0.40% increase in BD-Rate, 25.4% of the encoding time is saved, and the normalized saved encoding time is 64%, that is, when the BD-Rate increases by 1%, the encoding time is saved by 64%. The encoding time saved and the encoding loss between different sequences are relatively stable, fluctuating around the average value.

[0128] Table 1

[0129] Sequence Type BD-Rate(Y) TS TS / BD-Rate General A class (3840*2160) 0.42% 25.1% 60 Class B (1920*1080) 0.38% 27.2% 72 Class C (1280*720) 0.39% 24.0% 62 average 0.40% 25.4% 64

[0130] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0131] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0132] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0133] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0134] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0135] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0136] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0137] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0138] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A fast decision method for intra-frame prediction based on AVS3, characterized in that: include: Divide the intra-frame derivative mode of the prediction block to obtain a target prediction mode list; Use the intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes; Obtaining a union of the target prediction mode list and the rough prediction mode list to obtain a rate-distortion cost list; Calculating the rate-distortion cost of the rate-distortion cost list; Determine the mode with the smallest rate distortion cost as the optimal prediction mode; The intra-frame prediction fast algorithm includes an intra-frame prediction decision fast algorithm based on texture direction and an intra-frame prediction decision fast algorithm based on spatial correlation of adjacent prediction blocks; Use the intra-frame prediction fast algorithm to obtain a rough list of prediction modes, including: If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are all vertical, then the texture values ​​of the prediction block in the horizontal and vertical directions are calculated; When the texture value in the vertical direction is greater than the texture value in the horizontal direction, constructing a first vertical rough selection list, calculating the Hadamard cost of the prediction mode in the first vertical rough selection list, and updating the first vertical rough selection list according to the Hadamard cost; According to the first vertical rough selection list, a second vertical rough selection list is constructed, and the Hadamard cost of the second vertical rough selection list is calculated, and the second vertical rough selection list is updated according to the Hadamard cost; constructing a rate-distortion optimized list according to the second vertical coarse selection list; Use the intra-frame prediction fast algorithm to obtain a rough list of prediction modes, including: If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are not all in the horizontal direction or not all in the vertical direction, construct a first rough selection list, calculate the Hadamard cost of the prediction mode in the first rough selection list, and update the first rough selection list according to the Hadamard cost; When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are both DC mode or Plane mode, constructing a rate-distortion cost list according to the top two prediction modes with the smallest Hadamard cost; The method of using the intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes also includes: When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are not both DC mode or Plane mode; If the most likely mode is a special mode, the starting search mode is determined as the target mode with the smallest Hadamard cost in the horizontal direction and the vertical direction; According to the target mode, construct a second rough selection list, calculate the Hadamard cost of the second rough selection list, and update the second rough selection list according to the Hadamard cost; constructing a third rough selection list according to the second rough selection list, calculating a Hadamard cost of the third rough selection list, and updating the third rough selection list according to the Hadamard cost; The top two prediction modes with the smallest Hadamard cost are selected from the third rough selection list to construct a rate-distortion cost list.

2. The intra-frame prediction fast decision method based on AVS3 according to claim 1, characterized in that: Use the intra-frame prediction fast algorithm to obtain a rough list of prediction modes, including: If the current prediction block has adjacent blocks to the left and above, and the prediction modes of the adjacent blocks are all horizontal, then the texture values ​​of the prediction block in the horizontal and vertical directions are calculated; When the texture value in the horizontal direction is greater than the texture value in the vertical direction, constructing a first horizontal rough selection list, calculating the Hadamard cost of the prediction mode in the first horizontal rough selection list, and updating the first horizontal rough selection list according to the Hadamard cost; According to the first horizontal rough selection list, construct a second horizontal rough selection list, calculate the Hadamard cost of the second horizontal rough selection list, and update the second horizontal rough selection list according to the Hadamard cost; A rate-distortion optimized list is constructed according to the second level coarse selection list.

3. The intra-frame prediction fast decision method based on AVS3 according to claim 2, characterized in that: The method of using the intra-frame prediction fast algorithm to obtain a rough selection list of prediction modes also includes: When the top two prediction modes with the smallest Hadamard cost in the first rough selection list are not both DC mode or Plane mode; If the most probable mode is not a special mode, the starting search mode is determined as the target mode with the smallest Hadamard cost in the horizontal direction, the vertical direction or the most probable mode.

4. A device for implementing the intra-frame prediction fast decision method based on AVS3 as described in any one of claims 1 to 3, characterized in that: include: The first module is used to divide the intra-frame derivative mode of the prediction block and obtain a target prediction mode list; The second module is used to obtain a rough selection list of prediction modes using an intra-frame prediction fast algorithm; A third module is used to obtain a union of the target prediction mode list and the rough prediction mode list to obtain a rate distortion cost list; A fourth module, configured to calculate the rate-distortion cost of the rate-distortion cost list; A fifth module is used to determine the mode with the smallest rate distortion cost as the optimal prediction mode; The intra-frame prediction fast algorithm includes an intra-frame prediction decision fast algorithm based on texture direction and an intra-frame prediction decision fast algorithm based on spatial correlation of adjacent prediction blocks.

5. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement the method according to any one of claims 1 to 3.

7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Audio-video-coding-standard (AVS)-based intra-frame prediction method

    CN102186086A

  • Intraframe video encoding optimization method based on video texture information

    CN104796694A

  • Decision-making method and device for intra-frame prediction mode of high efficiency video coding

    CN104883565A

  • Image coding method based on grouping

    CN105812825A

  • Depth video fast intraframe coding method

    CN108712648A