A fast intra-frame CU partitioning method based on AVS3
By using the Radon algorithm and the Sobel operator for rapid CU division in AVS3, the problem of extended encoding time of AVS3 is solved, the encoding time is shortened and the loss stability is achieved, and the encoding efficiency is significantly improved.
Patent Information
- Application Number
- CN202111254764.X
- 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
The increased complexity of AVS3 results in extended encoding time, limiting its application and promotion, especially in terms of real-time encoding and hardware implementation difficulties.
A fast intra-frame CU division method based on Radon algorithm and Sobel operator is used to determine the optional division method through the parent coding unit, recursively calculate the rate-distortion optimization cost based on edge feature information, and select the best division method to reduce encoding time.
It achieves shortening of encoding time and stability of encoding loss, saving 27.5% of encoding time compared to the original algorithm, while only bringing about a 0.62% increase in BD-Rate.
Smart Images

Figure CN114040210B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio and video coding, and in particular to an intra-frame CU fast division 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] In order to meet the development needs of high-definition video, the Coding Unit (CU) division of AVS3 adds horizontal / vertical binary tree division (Binary Tree, BT) and extended quad-tree division (Extended Quad-tree, EQT) on the basis of the previous generation standard. Among them, EQT is an I-shaped division method proposed by ByteDance at the 66th meeting of the AVS Working Group, which is unique to AVS3. The specific division method is as follows Figure 1As shown, first determine whether the CU is QT. If so, directly perform quadtree division. If it is not QT, determine whether to continue the division. If not, end the determination and terminate the current CU division. If continuing the division, determine whether it is EQT or BT, and determine whether the division direction is horizontal or vertical.
[0005] In the past, experts have studied many very effective CU division fast algorithms for different standards, mainly using gray-level co-occurrence matrix to calculate the texture direction information of the coding unit or using the historical information generated by recursive division to skip a certain horizontal or vertical division method, and using convolutional neural networks in artificial intelligence to perform CU shape and size division decision training. These algorithms are of great reference value to AVS3, but optimization research is still needed on the new technologies in AVS3. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides an intra-frame CU fast partitioning method based on AVS3 with short encoding time and relatively stable encoding loss.
[0007] An aspect of the present invention provides an intra-frame CU fast partitioning method based on AVS3, comprising:
[0008] The parent coding unit determines all optional partitioning methods according to the constraints;
[0009] Based on the Radon algorithm and the Sobel operator, a target partitioning method is selected from the optional partitioning methods to perform fast partitioning of coding units;
[0010] Traverse all optional partitioning methods and recursively calculate the rate-distortion optimization cost corresponding to each partitioning method;
[0011] The optional partitioning method corresponding to the minimum rate-distortion optimization cost is taken as the optimal partitioning method;
[0012] The parent coding unit is divided according to the optimal division method.
[0013] Optionally, the selecting a target partitioning method from the optional partitioning methods to perform fast partitioning of coding units based on the Radon algorithm and the Sobel operator includes:
[0014] The edge features of the image are extracted by Sobel operator to determine the edge feature information;
[0015] Performing Radon transform on the edge feature information to extract directional characteristics of the image;
[0016] The Radon transform of a coding unit is divided into a vertical direction and a horizontal direction, wherein the vertical direction and the horizontal direction each include four parts;
[0017] Calculate a first Radon transform value in the vertical direction and a second Radon transform value in the horizontal direction for each coding unit;
[0018] The coding unit is quickly divided according to the first Radon transform value and the second Radon transform value.
[0019] Optionally, the quickly dividing the coding unit according to the first Radon transform value and the second Radon transform value includes:
[0020] Obtain Radon transform values of four parts in the vertical direction and Radon transform values of four parts in the horizontal direction of a coding unit; wherein the Radon transform values of the four parts in the vertical direction include a first vertical Radon transform value, a second vertical Radon transform value, a third vertical Radon transform value, and a fourth vertical Radon transform value; the Radon transform values of the four parts in the horizontal direction include a first horizontal Radon transform value, a second horizontal Radon transform value, a third horizontal Radon transform value, and a fourth horizontal Radon transform value;
[0021] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a first threshold condition, skipping horizontal binary tree division;
[0022] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a second threshold condition, skipping vertical binary tree division;
[0023] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a third threshold condition, skipping the extended quadtree horizontal partitioning;
[0024] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a fourth threshold condition, the extended quadtree vertical partitioning is skipped.
[0025] Optionally, the fast dividing the coding unit according to the first Radon transform value and the second Radon transform value further includes:
[0026] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a fifth threshold condition, the splitting stage of the current coding unit is skipped.
[0027] Another aspect of the embodiment of the present invention further provides an intra-frame CU fast division device based on AVS3, including:
[0028] The first module is used for the parent coding unit to determine all optional division methods according to the constraint conditions;
[0029] The second module is used to select a target partitioning method from the optional partitioning methods to perform fast partitioning of coding units based on a Radon algorithm and a Sobel operator;
[0030] The third module is used to traverse all optional partitioning methods and recursively calculate the rate-distortion optimization cost corresponding to each partitioning method;
[0031] A fourth module is used to take the optional partitioning method corresponding to the minimum rate-distortion optimization cost as the optimal partitioning method;
[0032] The fifth module is used to divide the parent coding unit according to the optimal division method.
[0033] Another aspect of an embodiment of the present invention further provides an electronic device, including a processor and a memory;
[0034] The memory is used to store programs;
[0035] The processor executes the program to implement the method described above.
[0036] Another aspect of the embodiments of the present invention further 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.
[0037] Another aspect of an embodiment of the present invention further 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.
[0038] The embodiment of the present invention determines all optional division modes according to constraint conditions through the parent coding unit; based on the Radon algorithm and the Sobel operator, selects a target division mode from the optional division modes to quickly divide the coding unit; traverses all optional division modes, recursively calculates the rate-distortion optimization cost corresponding to each division mode; takes the optional division mode corresponding to the minimum rate-distortion optimization cost as the optimal division mode; and divides the parent coding unit according to the optimal division mode. The encoding time of the present invention is short and the encoding loss is relatively stable. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] 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.
[0040] Figure 1 It is a schematic diagram of the division process of the EQT division method;
[0041] Figure 2 is a flowchart of the overall steps of the method according to an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of a coding unit projection provided by an embodiment of the present invention;
[0043] Figure 4 A flowchart of the steps of the coding unit fast division process provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] 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.
[0045] In view of the problems existing in the prior art, an embodiment of the present invention provides an intra-frame CU fast partitioning method based on AVS3, comprising:
[0046] The parent coding unit determines all optional partitioning methods according to the constraints;
[0047] Based on the Radon algorithm and the Sobel operator, a target partitioning method is selected from the optional partitioning methods to perform fast partitioning of coding units;
[0048] Traverse all optional partitioning methods and recursively calculate the rate-distortion optimization cost corresponding to each partitioning method;
[0049] The optional partitioning method corresponding to the minimum rate-distortion optimization cost is taken as the optimal partitioning method;
[0050] The parent coding unit is divided according to the optimal division method.
[0051] Optionally, the selecting a target partitioning method from the optional partitioning methods to perform fast partitioning of coding units based on the Radon algorithm and the Sobel operator includes:
[0052] The edge features of the image are extracted by Sobel operator to determine the edge feature information;
[0053] Performing Radon transform on the edge feature information to extract directional characteristics of the image;
[0054] The Radon transform of a coding unit is divided into a vertical direction and a horizontal direction, wherein the vertical direction and the horizontal direction each include four parts;
[0055] Calculate a first Radon transform value in the vertical direction and a second Radon transform value in the horizontal direction for each coding unit;
[0056] The coding unit is quickly divided according to the first Radon transform value and the second Radon transform value.
[0057] Optionally, the quickly dividing the coding unit according to the first Radon transform value and the second Radon transform value includes:
[0058] Obtain Radon transform values of four parts in the vertical direction and Radon transform values of four parts in the horizontal direction of a coding unit; wherein the Radon transform values of the four parts in the vertical direction include a first vertical Radon transform value, a second vertical Radon transform value, a third vertical Radon transform value, and a fourth vertical Radon transform value; the Radon transform values of the four parts in the horizontal direction include a first horizontal Radon transform value, a second horizontal Radon transform value, a third horizontal Radon transform value, and a fourth horizontal Radon transform value;
[0059] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a first threshold condition, skipping horizontal binary tree division;
[0060] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a second threshold condition, skipping vertical binary tree division;
[0061] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a third threshold condition, skipping the extended quadtree horizontal partitioning;
[0062] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a fourth threshold condition, the extended quadtree vertical partitioning is skipped.
[0063] Optionally, the fast dividing the coding unit according to the first Radon transform value and the second Radon transform value further includes:
[0064] When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a fifth threshold condition, the splitting stage of the current coding unit is skipped.
[0065] Another aspect of the embodiment of the present invention further provides an intra-frame CU fast division device based on AVS3, including:
[0066] The first module is used for the parent coding unit to determine all optional division methods according to the constraint conditions;
[0067] The second module is used to select a target partitioning method from the optional partitioning methods to perform fast partitioning of coding units based on a Radon algorithm and a Sobel operator;
[0068] The third module is used to traverse all optional partitioning methods and recursively calculate the rate-distortion optimization cost corresponding to each partitioning method;
[0069] A fourth module is used to take the optional partitioning method corresponding to the minimum rate-distortion optimization cost as the optimal partitioning method;
[0070] The fifth module is used to divide the parent coding unit according to the optimal division method.
[0071] Another aspect of an embodiment of the present invention further provides an electronic device, including a processor and a memory;
[0072] The memory is used to store programs;
[0073] The processor executes the program to implement the method described above.
[0074] Another aspect of the embodiments of the present invention further 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.
[0075] Another aspect of an embodiment of the present invention further 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.
[0076] The specific implementation principle of the present invention is described in detail below in conjunction with the accompanying drawings:
[0077] like Figure 2 As shown, the overall steps of the intra-frame CU fast partitioning method based on AVS3 of the present invention include the following steps:
[0078] S1, the parent coding unit determines all optional division methods according to the constraints;
[0079] S2. Based on the Radon algorithm and the Sobel operator, a target partitioning method is selected from the optional partitioning methods to perform fast partitioning of coding units;
[0080] S3, traverse all optional partitioning methods, and recursively calculate the rate-distortion optimization cost corresponding to each partitioning method;
[0081] S4, taking the optional partitioning method corresponding to the minimum rate-distortion optimization cost as the optimal partitioning method;
[0082] S5. Divide the parent coding unit according to the optimal division method.
[0083] The specific implementation principle of the Radon transform algorithm is described in detail below:
[0084] Radon Transform (RT) is an integral transform proposed by Austrian mathematician Johann Radon in 1917. Due to its excellent noise resistance and ability to effectively detect straight lines in images, it is still widely used in license plate recognition, medical imaging and other fields. For an image of size M*N, the RT discrete equation is defined as shown in Equation 2-1.
[0085]
[0086] Among them, δ(n) is the Kronecker delta function, which takes the value of 1 when and only when n = 0, and takes the value of 0 otherwise. In essence, it is to establish a projection of the image I(x, y) along multiple parallel rays determined by ρ = xcosθ + ysinθ with a normal direction angle of θ, and the projection result represents the pixel intensity in each direction.
[0087] Image projection means to perform linear integration (or cumulative summation) of the image in a certain direction. If the image is regarded as a two-dimensional function I(x,y), its projection is the linear integral in a specific direction. For example, the linear integral of I(x,y) in the vertical direction is its projection on the x-axis, and the projection value is shown in Formula 2-2; the line integral of I(x,y) in the horizontal direction is its projection on the y-axis, and the projection value is shown in Formula 2-3. Through these projections, the prominent characteristics of the image in the specified direction can be obtained.
[0088] Projection in the vertical direction Projection on the x-axis:
[0089]
[0090] Projection in the horizontal direction Projection on the y-axis:
[0091]
[0092] Next, the implementation principle of the Sobel operator is described in detail in the embodiment of the present invention:
[0093] Before performing Radon transform on an image, an embodiment of the present invention first pre-processes the image itself with the Sobel operator to extract edge features. Edge is a basic feature of an image and is the result of local discontinuity of an image. It is widely present between objects and backgrounds, and between objects. It is an important information source and shape basis for texture features. The Sobel operator is a type of gradient operator that can determine the severity of pixel changes. The principle of the Sobel operator to extract image edge information is to perform convolution on the incoming image pixels. The essence of convolution is to find the gradient value, or the weighted average, where the weight is the so-called convolution kernel, and then perform a threshold operation on the generated new pixels. For an image I (x, y), its horizontal and vertical gradient matrices can be obtained by convolving the horizontal and vertical Sobel gradient templates with its own brightness matrix, which is expressed as Formula 2-4. The edge feature value calculation at (i, j) is shown in Formula 2-5:
[0094]
[0095] G(i,j)=|G H (i,j)|+|G V (i,j)| (2-5)
[0096] Then, the extracted edge information is subjected to Radon transform to extract the directional characteristics of the image. The Radon transform of a CU is divided into four parts in the vertical and horizontal directions, which are respectively denoted as R V [k],R H [k], k = 0, 1, 2, 3, such as Figure 3 As shown, Figure 3 (a) represents a schematic diagram of vertical projection, and (b) represents a schematic diagram of horizontal projection. In this embodiment, Formula 2-5 is substituted into Formula 2-2 and Formula 2-3, and R V [k],R H [k], k=0, 1, 2, 3 can be expressed as Formula 2-6 and Formula 2-7 respectively.
[0097]
[0098]
[0099] Considering the complexity of the algorithm itself, calculating the Sobel gradient value and Radon transform value for each coding unit (CU) one by one will consume a lot of time. In this embodiment, CUs with a size greater than 32*32 are selected to enter the fast algorithm. At this time, there are fewer constraints, more allowed division methods, less possibility of skipping the best division, and the division depth is relatively small. Skipping certain division methods in advance can greatly reduce the number of time division attempts, and there is more room for optimization. The Radon transform values in the vertical and horizontal directions are calculated according to formulas 2-6 and 2-7, and the threshold judgment is performed as follows: Figure 4 As shown:
[0100] (1) When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the first threshold condition, skip the horizontal binary tree division;
[0101] Specifically, when |R V [0]+R V [1]-R V [2]-R V [3]|>th1*|R H [0]+R H [1]-R H [2]-R H [3]|, it means that the texture difference between the left and right sub-CUs in the vertical direction of the current CU is greater than the texture difference between the upper and lower sub-CUs in the horizontal direction. The optimal division is unlikely to be a horizontal binary tree division and can be skipped, where th1 is the binary tree decision threshold.
[0102] (2) When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the second threshold condition, skip the vertical binary tree division;
[0103] Specifically, when |R V [0]+R V [1]-R V [2]-R V [3]| <th1*|R H [0]+R H [1]-R H [2]-R H [3]|, you can skip the vertical partitioning of the binary tree.
[0104] (3) When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the third threshold condition, skipping the extended quadtree horizontal division;
[0105] Specifically, when |R V [0]-R V [1]|+|R V [2]-R V [3]|>th2*(|R H [0]-R H [1]|+|R H [2]-R H[3]|), it means that the current CU attempts to expand the quadtree vertically into the left and right sub-CUs with a large difference from the middle part, and the attempt to expand the quadtree horizontally into the upper and lower sub-CUs with a small difference from the middle part, so the expansion of the quadtree horizontal division can be skipped, where th2 is the expansion quadtree decision threshold;
[0106] (4) When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the fourth threshold condition, skipping the extended quadtree vertical division;
[0107] Specifically, when |R V [0]-R V [1]|+|R V [2]-R V [3]| <th2*(|R H [0]-R H [1]|+|R H [2]-R H [3]|), the extended quadtree vertical partition can be skipped.
[0108] (5) When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the fifth threshold condition, skipping the division stage of the current coding unit;
[0109] Specifically, when any one of the above four conditions (1)-(4) is met, it means that the current CU has obvious horizontal or vertical texture. As analyzed in the previous section, the possibility of not splitting is small at this time, and the non-split can be skipped.
[0110] The following is a detailed description of the technical effects of the method of the present invention in combination with experimental data:
[0111] 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 of this embodiment adopts the HPM9.0 platform. The general test sequence is divided into Class A, Class B and Class C according to different resolutions, and each sequence contains four different scenes and content videos. The objective evaluation index of video coding includes video compression rate, video quality after coding reconstruction and coding speed, wherein the video compression rate and the video quality after coding reconstruction restrict each other, and are measured by BD-Rate, and the human eye is more sensitive to brightness than to chromaticity, and the BD-Rate value of the reference Y component is obtained, and the coding speed is measured by saving coding time than TS.
[0112] The experimental results of the CU partition fast algorithm are shown in Table 1. Table 1 describes the experimental results of the CU partition fast algorithm. It can be seen from Table 1 that the method of the present invention has a significant effect compared with the original HPM9.0 algorithm. With only a 0.62% increase in BD-Rate, 27.5% of the encoding time is saved, and the normalized saved encoding time is 44%, that is, when the BD-Rate increases by 1%, the encoding time is saved by 44%. The encoding time saved and the encoding loss between different sequences are relatively stable, fluctuating around the average value.
[0113] Table 1
[0114]
[0115]
[0116] In summary, the present invention determines all optional division methods according to constraint conditions through the parent coding unit; based on the Radon algorithm and the Sobel operator, selects the target division method from the optional division methods to quickly divide the coding unit; traverses all optional division methods, recursively calculates the rate-distortion optimization cost corresponding to each division method; takes the optional division method corresponding to the minimum rate-distortion optimization cost as the optimal division method; and divides the parent coding unit according to the optimal division method. The present invention has a short encoding time and a relatively stable encoding loss.
[0117] 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.
[0118] 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.
[0119] 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.
[0120] 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.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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.
[0125] 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 intra-frame CU partitioning method based on AVS3, characterized in that: include: The parent coding unit determines all optional partitioning methods according to the constraints; Based on the Radon algorithm and the Sobel operator, a target partitioning method is selected from the optional partitioning methods to perform fast partitioning of coding units; Traverse all optional partitioning methods and recursively calculate the rate-distortion optimization cost corresponding to each partitioning method; The optional partitioning method corresponding to the minimum rate-distortion optimization cost is taken as the optimal partitioning method; Dividing the parent coding unit according to the optimal division method; The method of selecting a target partitioning method from the optional partitioning methods to perform fast partitioning of coding units based on the Radon algorithm and the Sobel operator includes: The edge features of the image are extracted by Sobel operator to determine the edge feature information; Performing Radon transform on the edge feature information to extract directional characteristics of the image; The Radon transform of a coding unit is divided into a vertical direction and a horizontal direction, wherein the vertical direction and the horizontal direction each include four parts; Calculate a first Radon transform value in the vertical direction and a second Radon transform value in the horizontal direction for each coding unit; According to the first Radon transform value and the second Radon transform value, a coding unit is quickly divided; The fast dividing of the coding unit according to the first Radon transform value and the second Radon transform value includes: Obtain Radon transform values of four parts in the vertical direction and Radon transform values of four parts in the horizontal direction of a coding unit; wherein the Radon transform values of the four parts in the vertical direction include a first vertical Radon transform value, a second vertical Radon transform value, a third vertical Radon transform value, and a fourth vertical Radon transform value; the Radon transform values of the four parts in the horizontal direction include a first horizontal Radon transform value, a second horizontal Radon transform value, a third horizontal Radon transform value, and a fourth horizontal Radon transform value; When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the first threshold condition, the horizontal binary tree division is skipped; specifically: when |R V [0]+R V [1]-R V [2]-R V [3]|>th1*|R H [0]+R H [1]-R H [2]-R H [3]|, skip horizontal binary tree partitioning; When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the second threshold condition, the vertical binary tree division is skipped; specifically: when |R V [0]+R V [1]-R V [2]-R V [3]| <th1*|R H [0]+R H [1]-R H [2]-R H [3]|, skip vertical binary tree partitioning; When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the third threshold condition, skip the extended quadtree horizontal division; specifically: when |R V [0]-R V [1]|+|R V [2]-R V [3]|>th2*(|R H [0]-R H [1]|+|R H [2]-R H [3]|), skip the extended quadtree horizontal partition; When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet the fourth threshold condition, the extended quadtree vertical division is skipped, specifically: when |R V [0]-R V [1]|+|R V [2]-R V [3]| <th2*(|R H [0]-R H [1]|+|R H [2]-R H [3]|), skip the vertical partition of the extended quadtree; Among them, R V [k] represents the vertical part of the Radon transform of a CU, R H [k] represents the horizontal part of the Radon transform of a CU, k = 0, 1, 2, 3.
2. The method for fast intra-frame CU partitioning based on AVS3 according to claim 1, characterized in that: The method of quickly dividing the coding unit according to the first Radon transform value and the second Radon transform value further includes: When the Radon transform values of the four parts in the vertical direction and the Radon transform values of the four parts in the horizontal direction meet a fifth threshold condition, the splitting stage of the current coding unit is skipped.
3. A device for implementing the intra-frame CU fast partitioning method based on AVS3 as claimed in claim 1 or 2, characterized in that: include: The first module is used for the parent coding unit to determine all optional division methods according to the constraint conditions; The second module is used to select a target partitioning method from the optional partitioning methods to perform fast partitioning of coding units based on a Radon algorithm and a Sobel operator; The third module is used to traverse all optional partitioning methods and recursively calculate the rate-distortion optimization cost corresponding to each partitioning method; A fourth module is used to take the optional partitioning method corresponding to the minimum rate-distortion optimization cost as the optimal partitioning method; The fifth module is used to divide the parent coding unit according to the optimal division method.
4. 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 or 2.
5. 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 or 2.
6. 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 or 2 is implemented.
