Rapid prediction method for VVC intra-frame mode of ERP panoramic video and storage medium
By dividing panoramic video frames into different latitude areas and filtering redundant patterns based on texture features, the problem of redundant data and coding complexity of panoramic video is solved, fast prediction and efficient coding of VVC intra-frame coding are achieved, and coding time is reduced. and cost.
Patent Information
- Application Number
- CN202410734794.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Panoramic video has redundant data and coding complexity problems due to its high resolution and non-uniform sampling characteristics. The existing VVC fast CU partitioning algorithm cannot effectively combine the characteristics of the ERP format, resulting in insufficient reduction in coding efficiency and computational complexity. .
Based on the sampling characteristics of ERP panoramic video, the video frames are divided into polar, equatorial and mid-latitude areas, redundant pattern screening is performed through statistical pattern selection distribution and texture features, the pattern list is reduced, and gradient differences and Haar wavelet transform are used to evaluate inter-CU Difference, quickly determine the intra prediction mode, and reduce redundant calculations.
It significantly reduces the complexity of ERP panoramic video VVC intra-frame coding and reduces the implementation and running costs of the video encoder. The average encoding time is reduced by 9.47%, the code rate is increased by 0.15%, and the WS-PSNR is only reduced by 0.007dB, proving that this method is effective in Coding efficiency and quality effectiveness.
Smart Images

Figure CN118694967A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of video coding, and more specifically, provides a fast intra-frame mode prediction partitioning method suitable for universal video coding VVC (Versatile Video Coding), which can be applied to panoramic video coding scenes in equidistant prism projection format (ERP). Background Art
[0002] With the growing demand for high-quality video applications, high-definition videos such as 4K and 8K have become the mainstream of current applications. Panoramic video is a dynamic video obtained by all-round shooting with a 3D camera. It is widely used in smart tourism, sports live broadcasts, large-scale entertainment events and other fields. Panoramic video can bring people a high sense of immersion and a realistic experience, but it also brings a huge amount of data, which greatly increases the cost of transmission and storage during the application process. In order to further improve the coding efficiency of videos, in July 2020, the International Organization for Standardization / International Electrotechnical Commission and the International Telecommunication Union Telecommunication Standardization Department jointly formulated a new generation of Versatile Video Coding (VVC) standard. VVC adopts a quadtree partitioning structure with nested multi-trees, 67 directional intra-frame prediction modes, Merge mode with motion vectors, geometric partition inter-frame prediction, joint intra-frame inter-frame prediction and other advanced coding technologies, which greatly improves the efficiency of video coding and is very suitable for high-definition video, especially the compression coding of panoramic video. Compared with the previous generation coding standard High Efficiency Video Coding (HEVC), VVC's coding efficiency has increased by nearly 50%, but the coding complexity has also increased significantly. Researching fast algorithms that can significantly reduce the computational complexity of VVC is currently the focus of many scholars.
[0003] With the development of computer vision technology, 360° panoramic virtual video has also been born. Due to the size limitation of video format, traditional video can only display a captured image in a frame, while panoramic video breaks the boundaries of this frame and allows the entire picture to surround the audience, so that the audience can observe the captured image without blind spots. A large amount of image data will be generated during the mapping process of panoramic video, so it is necessary to compress the panoramic image to save storage space and transmission bandwidth. Before transmission, the panoramic video needs to be converted into a rectangular plane video, that is, the 3D mirror is mapped to the 2D plane, and then encoded using video coding technology, and then the data is transmitted. With the promulgation of the new generation of video coding standard VVC, the Video Coding Expert Group and the Motion Picture Expert Group issued a call for proposals for the new generation of video compression technology (CFP), which includes some mapping methods for converting panoramic videos into plane videos, such as equirectangular projection (ERP), cube projection and icosahedron projection, among which ERP is the most widely used projection format and the main projection format for 360° panoramic videos. ERP maps the longitudes on the spherical surface of the panoramic video into equally spaced vertical lines, and maps the latitudes on the spherical surface into equally spaced horizontal lines. The aspect ratio of the projected image is 2:1. It uses a completely linear transformation formula, the mapping relationship is simple and easy to implement, and the projected two-dimensional plane image is relatively intuitive and easy to observe. However, the same number of sampling points are sampled on each latitude line of the original spherical video, resulting in more redundant sampling points on the latitude lines closer to the poles. At the poles, only a small number of sampling points are needed, but the same number of sampling points as at the equator are sampled, resulting in the pixels in the polar regions being infinitely stretched and oversampled. This uneven distribution of pixel density causes serious image distortion and also brings a large amount of redundant data. Compared with traditional videos, panoramic videos have higher resolutions. Although high-resolution panoramic videos can bring a refreshing visual experience, they also bring a huge amount of data, which brings a huge burden on the transmission and storage of panoramic videos. How to effectively compress panoramic videos with huge amounts of data and a large amount of redundant data caused by mapping is the primary problem that needs to be solved in the application field of panoramic videos.
[0004] The VVC fast CU partitioning algorithm has not been effectively combined with the ERP format panoramic video characteristics, and there is still room for further reduction in coding complexity. VVC is the latest video coding standard with higher coding efficiency. However, panoramic videos contain a large amount of data due to their ultra-high-definition resolution. Therefore, it is necessary to effectively combine the ERP format panoramic video characteristics with the VVC fast CU partitioning algorithm to achieve fast encoding of panoramic videos. ERP format panoramic videos have the characteristics of low sampling density in the central area of the image and high sampling density in the polar areas. In view of this characteristic, removing the redundant parts of the mapping with minimal loss of video quality and saving its coding complexity are issues to be solved in today's panoramic video coding research.
[0005] In order to solve the problem of redundant computational complexity in intra-frame prediction of panoramic videos, the present invention proposes a fast intra-frame mode selection algorithm based on the characteristics of different latitude zones. First, the selection distribution of intra-frame modes in the polar regions is statistically analyzed, and the number of mode lists is judged based on the modes in the MPM list; the selection distribution of horizontal and vertical angle mode predictions in the mid-latitude regions is statistically analyzed, and the redundant vertical angle prediction modes are screened in advance through texture calculation and candidate mode list information; for the equatorial region, the last intra-frame angle prediction mode in the candidate mode list is screened out by comparing the texture features in four directions.
[0006] The closest prior art is the prior application publication number CN117041736A of the same inventor as the present application, a method and storage medium for fast CU division of ERP panoramic video VVC, belonging to the field of video coding, the method comprising the following steps: using the sampling characteristics of ERP panoramic video to divide the coded frame into different latitude regions; based on the distribution characteristics of the CU quadtree depth in different latitude regions and the correlation of adjacent CUs, the current CU division mode is terminated in advance; for the CU to be further divided, the gradient difference is used to evaluate the current CU texture characteristics, and the redundant horizontal or vertical division mode is skipped. For the texture fuzzy CU, the latitude sampling weight weighted secondary comparison is performed to determine whether to skip the vertical division mode; finally, the two-dimensional Haar wavelet transform coefficient is used to evaluate the difference between the sub-CUs to determine whether to skip the ternary tree division mode. The method is to use the ERP panoramic video characteristics to quickly divide the VVC intra-frame coding CU. The present invention uses the ERP panoramic video characteristics to quickly determine the CU intra-frame prediction mode. The combination of these two methods can greatly reduce the complexity of ERP panoramic video VVC intra-frame coding and reduce the implementation and operation costs of video encoders. Summary of the invention
[0007] The present invention aims to solve the above problems of the prior art. A method and storage medium for fast prediction of intra-frame mode of ERP panoramic video VVC are proposed. The technical solution of the present invention is as follows:
[0008] A method for fast prediction of intra-frame mode of ERP panoramic video VVC comprises the following steps:
[0009] S1. Based on the sampling characteristics of ERP panoramic video, the video coding frames are divided into five regions according to their altitude, namely the polar region, the mid-latitude region and the equatorial region;
[0010] S2, determine the region to which the current CU (coding unit) belongs; if it is a polar region, execute step S3; if it is a mid-latitude region, execute step S6; if it is an equatorial region, execute step S9;
[0011] S3, determining whether the first two prediction modes in the current CU traditional prediction angle mode list include DC (direct current) or Planar (planar) mode; if included, executing step S4; if not included, executing step S12;
[0012] S4, determine whether the first 1 / 2 modes of the MPM (most probable mode) list of the current CU include DC or Planar mode; if included, execute step S5; if not included, execute step S12;
[0013] S5, clear the rate-distortion cost candidate mode list, add the modes included in the first 1 / 2 modes of the MPM and the first two digits of the CU candidate mode list, and execute step S11;
[0014] S6, calculate the horizontal and vertical gradient values of the current CU, and compare them to determine whether the CU is close to the horizontal texture; if so, proceed to step S7; otherwise, execute step S12;
[0015] S7, determining whether the first intra-frame angle prediction mode in the current CU candidate list belongs to the horizontal region; if so, proceeding to step S8; otherwise, executing step S12;
[0016] S8, traversing the rate-distortion cost list in sequence, eliminating the angle prediction mode belonging to the vertical area, and executing step S11;
[0017] S9, calculate the gradients of the four directions of the current CU, and record the area where the minimum directional gradient is located, and execute step S10;
[0018] S10, after the cost calculation of the two rounds of rough selection modes and the merging of the MPM list, determine whether the last angle prediction mode in the list is in the area where the minimum directional gradient is located; if not, remove it from the candidate list mode and execute step S11; if yes, execute step S12;
[0019] S11, calculating the rate distortion cost of the filtered list and selecting the best intra prediction mode;
[0020] S12. Perform intra-frame prediction according to the VTM (VVC Test Reference Model) original platform algorithm to obtain the optimal intra-frame prediction mode of the current CU.
[0021] Furthermore, the step S1 divides the video coding frames into five regions, namely, polar regions, mid-latitude regions and equatorial regions according to their altitudes based on the sampling characteristics of the ERP panoramic video, specifically including:
[0022] The video frames are divided into five regions according to their altitude, namely the polar regions, mid-latitude regions and equatorial regions. The 3D panoramic video is converted into a 2D video encoding format through ERP mapping. According to the different sampling and stretching degrees in different regions of the video frames, the video frames are divided into five regions from top to bottom: the polar regions, mid-latitude regions, equatorial regions, mid-latitude regions and polar regions. The altitudes of the North and South Poles, the two mid-latitude regions and the equatorial region account for 24%, 36% and 40% of the vertical resolution of the video frames, respectively.
[0023] Furthermore, in the step S3, S3 determines whether the first two prediction modes in the current CU traditional prediction angle mode list include DC (direct current) or Planar (planar) mode, specifically: the CU traditional prediction angle mode is divided into 65 angle prediction modes and 2 non-angle prediction modes, among which the non-angle prediction mode is divided into Planar mode and DC mode. The Planar mode is suitable for areas where pixel values change slowly, and its predicted pixels are regarded as the average values of the prediction values in the horizontal and vertical directions; the DC mode calculates the average value of the reference pixels on the left or above the current CU, and selects different average reference pixel rows as predicted pixel values according to their different sizes, which is more suitable for large flat areas.
[0024] Furthermore, in step S4, the MPM (most probable mode) list of the current CU, the MPM list technology utilizes the correlation between adjacent block modes, and its construction steps are: first traverse the 35 prediction modes that are the same as HEVC, and update the candidate list by comparing the Hadamard cost; then, traverse the modes in the candidate list, and obtain its left and right adjacent modes, calculate the Hadamard cost and further compare it with the previously selected mode. The Hadamard cost adopts a calculation method based on the Lagrangian optimization method, and its calculation formula is shown in (1).
[0025] J=D SAD +λ×Bit mode (1)
[0026] J in formula (1) represents the Hadamard cost calculated using the current prediction model; D SADRepresents the absolute error sum between the original block and the reconstructed block; Bit mode Represents the bit rate required to encode the current mode.
[0027] After two rounds of Hadamard cost calculations, several candidate angle prediction modes with the lowest cost are obtained, and VVC constructs the MPM list. In H.266 / VVC, the MPM list contains 6 prediction modes, and the selection of the prediction mode is mainly determined based on the CU above and the CU to the left of the current CU.
[0028] Furthermore, in step S6, the horizontal and vertical gradient values of the current CU are calculated by using two Scharr operators with 3×3 convolution kernels to calculate the vertical and horizontal gradients of the CU pixels respectively, and the calculation formula is as follows:
[0029]
[0030] G in formula (2) h (x,y) and G v (x, y) represents the horizontal gradient and vertical gradient of the pixel at the coordinate (x, y), respectively; A(x, y) represents the pixel matrix centered at the coordinate (x, y).
[0031] Furthermore, in step S6, whether the CU approaches the horizontal texture is determined by calculating the average gradient of the current CU pixel in the horizontal direction and the vertical direction using formula (3).
[0032]
[0033] In formula (3), |G h (x,y)| and|G h (x, y)|respectively the absolute value of the horizontal gradient and vertical gradient of the pixel at the (i, j) coordinate; Gradient h and Gradient v are the horizontal average gradient and vertical average gradient of the current CU respectively; if Gradient h / Gradient v ≤0.9, the horizontal gradient is significantly smaller than the vertical gradient, indicating that the current CU approaches the horizontal texture, and the CU tends to use the angle prediction mode of the horizontal area as the best intra prediction mode.
[0034] Further, in step S7, whether it belongs to the horizontal area is to determine that the CU whose best angle prediction mode is selected in the angle prediction mode value range of 10-26 is the horizontal area;
[0035] In the step S8, the vertical area is determined as a CU whose best angle prediction mode is selected within the range of 42-58 as a vertical area.
[0036] Furthermore, in step S9, the gradients of the current CU in four directions are calculated, that is, the gradients of the current CU in the horizontal, vertical, 45° and 135° directions are calculated; the horizontal and vertical gradients of the current CU are calculated using formula (2) and formula (3), and the gradient operators in the 45° and 135° directions are obtained by rotating the horizontal and vertical convolution kernel operators, and the calculation thereof is shown in formula (4).
[0037]
[0038] G in formula (4) 45 (x,y) represents the gradient of the pixel at the coordinate (x,y) in the 45° direction; A(x,y) represents the pixel matrix centered at the coordinate (x,y); G 135 (x, y) represents the gradient of the pixel at the coordinate (x, y) in the 135° direction; the gradient calculation of the 45° and 135° directions of the current CU is shown in formula (5);
[0039]
[0040] In formula (5), |G 45 (x,y)| and|G 135 (x, y)| is the absolute value of the 45° and 135° gradients of the CU at the (i, j) coordinates; W and H are the width and height of the CU respectively; Gradient 45 and Gradient 135 They are the average gradients of the current CU in the 45° and 135° directions respectively.
[0041] Furthermore, in the step S10, it is determined whether it is in the area where the minimum directional gradient is located, where there are four areas: horizontal, vertical, 45° and 135°; the 65 angle prediction modes of VVC are divided into the above four areas; among them, the angle prediction modes of 10-26 are divided into the horizontal area; the angle prediction modes of 27-41 are divided into the 135° area; the angle prediction modes of 42-58 are divided into the vertical area; the angle prediction modes of 2-9 and 59-66 are divided into the 45° area.
[0042] A storage medium stores a computer program therein, wherein when the computer program is read by a processor, any one of the above-mentioned ERP panoramic video VVC intra-frame mode fast prediction methods is executed.
[0043] The advantages and beneficial effects of the present invention are as follows:
[0044] In view of the problem of redundant computational complexity in intra-frame prediction of VVC panoramic videos, the present invention proposes a fast intra-frame mode selection algorithm based on the characteristics of different latitude zones. First, the distribution of intra-frame mode selection in the polar regions is statistically analyzed, and the mode in the MPM list is used to determine whether to reduce the number of mode lists; the selection distribution of horizontal area angle mode prediction and vertical area angle mode prediction in the mid-latitude region is statistically analyzed, and the redundant vertical angle prediction modes are screened out in advance through texture calculation and candidate mode list information; for the equatorial region, the last intra-frame angle prediction mode in the candidate mode list is screened out by comparing the texture features in four directions.
[0045] In order to verify the encoding acceleration performance of the proposed method, the proposed method is compared with the encoding acceleration comprehensive performance of the VTM-8.0-360Lib-10.1 platform. The peak signal-to-noise ratio based on spherical weights (Weighted to Spherically Uniform PSNR, WS-PSNR), time saving TS (Time Saving) and It is a performance evaluation index. BDBR indicates the bit rate saved by the video under the same quality compared with the original platform. Its size also indirectly reflects the accuracy of CU division of the fast algorithm. The larger the BDBR value, the greater the loss of coding efficiency. TS indicates the percentage increase of the encoding time of the proposed method compared with the encoding time of the original platform. Its calculation formula is as follows:
[0046]
[0047] Where T org (QP i ) indicates that the original platform is at QP = QP i The encoding time is T pro (QP i ) indicates that the proposed algorithm is used when QP = QP i The encoding time.
[0048] Table 1 shows the coding performance of 14 panoramic video test sequences. The data in Table 1 show that compared with the original VVC algorithm, the fast algorithm proposed in the present invention can reduce the coding time by an average of 9.47%, the BDBR only increases by 0.15%, and the WS-PSNR only decreases by 0.007dB. Among them, the test sequence "Harbor" saves the least coding time, which is 7%. The test sequence "Broadway" saves the most coding time, reaching 11.1%. The difference in coding time saving between the two sequences is not much, which proves that the algorithm proposed in the present invention has good robustness and has a relatively stable acceleration effect on all sequences. The sequence with the largest increase in bit rate is "AerialCity", which only increases by 0.21%, indicating that compared with the original platform algorithm, the algorithm proposed in the present invention has little loss in coding efficiency. The present invention can be used for accelerated coding under the VVC intra-frame coding configuration. On the premise of ensuring that the coding efficiency and coding quality are slightly reduced, it can effectively reduce the coding time of VVC and reduce the implementation and operation cost of the video encoder. It can be applied to the application scenario of ERP format panoramic video with high real-time requirements.
[0049] Table 1
[0050]
[0051] The method proposed in the present invention is combined with the fast CU partitioning method (the method proposed by the inventor in the prior application publication number CN117041736A) and used together for ERP panoramic video VVC intra-frame coding. The acceleration effect is shown in Table 2. The encoding time can be reduced by 49.26% on average, which is almost halved. The average bit rate only increases by 1.02%, and the WS-PSNR loss is only 0.049dB, which shows that the cost of using the acceleration algorithm for the video encoder is very small.
[0052] Table 2
[0053]
[0054] BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 The present invention provides a preferred embodiment of a VVC intra-frame mode prediction fast algorithm based on ERP panoramic video latitude area and texture characteristics.
[0056] Figure 2 It is an example of dividing the video frame into different latitude regions according to the sampling characteristics of the ERP panoramic video;
[0057] Figure 3 This is an example diagram of VVC intra-frame prediction mode. DETAILED DESCRIPTION
[0058] The following will describe the technical solutions in the embodiments of the present invention in detail in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention.
[0059] The technical solution of the present invention to solve the above technical problems is:
[0060] Figure 1 The present invention provides a VVC intra-frame mode prediction fast algorithm and storage medium based on ERP panoramic video latitude area and texture characteristics. The method of the present invention comprises the following steps:
[0061] S1. Based on the sampling characteristics of ERP panoramic video, the video encoding frames are divided into five regions according to their altitude: polar regions, mid-latitude regions and equatorial regions.
[0062] S2. Determine the region to which the current CU (coding unit) belongs. If it is a polar region, execute step S3; if it is a mid-latitude region, execute step S6; if it is an equatorial region, execute step S9.
[0063] S3, determine whether the first two prediction modes in the current CU traditional prediction angle mode list include DC (direct current) or Planar (planar) mode. If included, execute step S4; if not, execute step S12.
[0064] S4: Determine whether the first 1 / 2 modes of the MPM (most probable mode) list of the current CU include the DC or Planar mode. If included, execute step S5; if not, execute step S12.
[0065] S5. Clear the rate-distortion cost candidate mode list, add the modes included in the first 1 / 2 modes of the MPM and the first two digits of the CU candidate mode list, and execute step S11.
[0066] S6, calculate the horizontal and vertical gradient values of the current CU, and compare them to determine whether the CU is close to the horizontal texture. If it is close, go to step S7; otherwise, go to step S12.
[0067] S7, determine whether the first intra-frame angle prediction mode in the current CU candidate list belongs to the horizontal region. If yes, go to step S8; otherwise, go to step S12.
[0068] S8. Traverse the rate-distortion cost list in sequence, eliminate the angle prediction mode belonging to the vertical area, and execute step S11.
[0069] S9, calculate the gradients of the four directions of the current CU, and record the area where the minimum directional gradient is located, and execute step S10.
[0070] S10, after the cost calculation of the two rounds of rough selection mode and the merging of the MPM list, determine whether the last angle prediction mode in the list is in the area where the minimum directional gradient is located. If not, remove it from the candidate list mode and execute step S11; if yes, execute step S12.
[0071] S11. Calculate the rate-distortion cost of the filtered list and select the best intra-frame prediction mode.
[0072] S12. Perform intra-frame prediction according to the VTM (VVC Test Reference Model) original platform algorithm to obtain the optimal intra-frame prediction mode of the current CU.
[0073] Preferably, in step S1, the video frame is divided into five regions, namely, the polar region, the mid-latitude region and the equatorial region, according to its height, and the 3D panoramic video is converted into a 2D video encoding format through ERP mapping. According to the different sampling and stretching degrees of different regions of the video frame, the video frame is divided into five regions from top to bottom, namely, the polar region, the mid-latitude region, the equatorial region, the mid-latitude region and the polar region. The heights of the North and South Poles, the two mid-latitude regions and the equatorial region account for 24%, 36% and 40% of the vertical resolution of the video frame, respectively.
[0074] Preferably, in step S3, the CU traditional prediction angle mode is divided into 65 angle prediction modes and 2 non-angle prediction modes, wherein the non-angle prediction mode is divided into Planar mode and DC mode. The Planar mode is suitable for areas where pixel values change slowly, and its predicted pixels can be regarded as the average of the predicted values in the horizontal and vertical directions. The DC mode calculates the average of the reference pixels on the left or above the current CU, and selects different average reference pixel rows as predicted pixel values according to their different sizes, which is more suitable for large flat areas.
[0075] Preferably, in step S4, the MPM (most probable mode) list of the current CU, the MPM list technology utilizes the correlation between adjacent block modes, and its construction steps are: first traverse the 35 prediction modes that are the same as HEVC, and update the candidate list by comparing the Hadamard cost; then, traverse the modes in the candidate list, and obtain its left and right adjacent modes, calculate the Hadamard cost and further compare it with the previously selected mode. The Hadamard cost adopts a calculation method based on the Lagrangian optimization method, and its calculation formula is shown in (1).
[0076] J=D SAD +λ×Bit mode (1)
[0077] J in formula (1) represents the Hadamard cost calculated using the current prediction model; D SADRepresents the absolute error sum between the original block and the reconstructed block; Bit mode Represents the bit rate required to encode the current mode.
[0078] After two rounds of Hadamard cost calculations, several candidate angle prediction modes with the lowest cost are obtained, and VVC constructs the MPM list. In H.266 / VVC, the MPM list contains 6 prediction modes, and the selection of the prediction mode is mainly determined based on the CU above and the CU to the left of the current CU.
[0079] Preferably, in step S6, the horizontal and vertical gradient values of the current CU are calculated by using two Scharr operators with 3×3 convolution kernels to calculate the vertical and horizontal gradients of the CU pixels respectively, and the calculation formula is as follows:
[0080]
[0081] G in formula (2) h (x,y) and G v (x, y) represents the horizontal gradient and vertical gradient of the pixel at the coordinate (x, y), respectively; A(x, y) represents the pixel matrix centered at the coordinate (x, y).
[0082] Preferably, in step S6, whether the CU approaches the horizontal texture is determined by calculating the average gradient of the current CU pixel in the horizontal direction and the vertical direction using formula (3).
[0083]
[0084] In formula (3), |G h (x,y)| and|G h (x, y)|respectively the absolute value of the horizontal gradient and vertical gradient of the pixel at the (i, j) coordinate; Gradient h and Gradient v are the horizontal average gradient and vertical average gradient of the current CU respectively. h / Gradient v ≤0.9, the horizontal gradient is significantly smaller than the vertical gradient, indicating that the current CU approaches the horizontal texture, and the CU tends to use the angle prediction mode of the horizontal area as the best intra prediction mode.
[0085] Preferably, in step S7, whether it belongs to the horizontal area is determined by determining that the CU whose best angle prediction mode is selected within the range of 10-26 is the horizontal area.
[0086] Preferably, in step S8, the vertical area is to determine the CU whose best angle prediction mode is selected within the range of 42-58 as the vertical area.
[0087] Preferably, in step S9, the gradients in four directions of the current CU are calculated, that is, the gradients in the horizontal, vertical, 45° and 135° directions of the current CU are calculated. Formula (2) and formula (3) are used to calculate the gradients in the horizontal and vertical directions of the current CU, and the gradient operators in the 45° and 135° directions are obtained by rotating the horizontal and vertical convolution kernel operators, and the calculation thereof is shown in formula (4).
[0088]
[0089] G in formula (4) 45 (x,y) represents the gradient of the pixel at the coordinate (x,y) in the 45° direction; A(x,y) represents the pixel matrix centered at the coordinate (x,y); G 135 (x, y) represents the gradient of the pixel at coordinate (x, y) in the 135° direction. The gradient calculation of the 45° and 135° directions of the current CU is shown in formula (5).
[0090]
[0091] In formula (5), |G 45 (x,y)| and|G 135 (x, y)| is the absolute value of the 45° and 135° gradients of the CU at the (i, j) coordinates; W and H are the width and height of the CU respectively; Gradient 45 and Gradient 135 They are the average gradients of the current CU in the 45° and 135° directions respectively.
[0092] Preferably, in step S10, it is determined whether it is in the area where the minimum directional gradient is located, and the area here includes four areas: horizontal, vertical, 45° and 135°. The 65 angle prediction modes of VVC are divided into the above four areas. Among them, the angle prediction modes of 10-26 are divided into the horizontal area; the angle prediction modes of 27-41 are divided into the 135° area; the angle prediction modes of 42-58 are divided into the vertical area; the angle prediction modes of 2-9 and 59-66 are divided into the 45° area.
[0093] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0094] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0095] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0096] The above embodiments should be understood to be only used to illustrate the present invention and not to limit the protection scope of the present invention. After reading the contents of the present invention, technicians can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.
Claims
1. A fast prediction method for intra-frame mode of ERP panoramic video VVC, characterized in that: The following steps are involved: S1. Based on the sampling characteristics of ERP panoramic video, the video coding frames are divided into five regions according to their altitude, namely the polar region, the mid-latitude region and the equatorial region; S2, determine the region to which the current CU coding unit belongs; if it is a polar region, execute step S3; if it is a mid-latitude region, execute step S6; if it is an equatorial region, execute step S9; S3, determining whether the first two prediction modes in the current CU traditional prediction angle mode list include DC or Planar mode; if so, executing step S4; if not, executing step S12; S4, determine whether the first 1 / 2 modes of the most probable mode list of the MPM of the current CU include the DC or Planar mode; if so, execute step S5; if not, execute step S12; S5, clear the rate-distortion cost candidate mode list, add the modes included in the first 1 / 2 modes of the MPM and the first two digits of the CU candidate mode list, and execute step S11; S6, calculate the horizontal and vertical gradient values of the current CU, and compare them to determine whether the CU is close to the horizontal texture; if so, proceed to step S7; otherwise, execute step S12; S7, determining whether the first intra-frame angle prediction mode in the current CU candidate list belongs to the horizontal region; if so, proceeding to step S8; otherwise, executing step S12; S8, traversing the rate-distortion cost list in sequence, eliminating the angle prediction mode belonging to the vertical area, and executing step S11; S9, calculate the gradients of the four directions of the current CU, and record the area where the minimum directional gradient is located, and execute step S10; S10, after the cost calculation of the two rounds of rough selection modes and the merging of the MPM list, determining whether the last angle prediction mode in the list is in the area where the minimum directional gradient is located; If it does not belong to the candidate list mode, remove it from the candidate list mode and execute step S11; If yes, execute step S12; S11, calculating the rate distortion cost of the filtered list and selecting the best intra prediction mode; S12. Perform intra-frame prediction according to the VTM (VVC Test Reference Model) original platform algorithm to obtain the optimal intra-frame prediction mode of the current CU.
2. According to claim 1, a method for fast prediction of intra-frame mode of ERP panoramic video VVC is characterized in that: The step S1 divides the video coding frames into five regions, namely, the polar region, the mid-latitude region and the equatorial region, according to their altitude based on the sampling characteristics of the ERP panoramic video, specifically including: The video frames are divided into five regions according to their altitude, namely the polar regions, mid-latitude regions and equatorial regions. The 3D panoramic video is converted into a 2D video encoding format through ERP mapping. According to the different sampling and stretching degrees in different regions of the video frames, the video frames are divided into five regions from top to bottom: the polar regions, mid-latitude regions, equatorial regions, mid-latitude regions and polar regions. The altitudes of the North and South Poles, the two mid-latitude regions and the equatorial region account for 24%, 36% and 40% of the vertical resolution of the video frames, respectively.
3. The ERP panoramic video VVC intra-frame mode fast prediction method according to claim 1 is characterized in that: In the step S3, S3 determines whether the first two prediction modes in the current CU traditional prediction angle mode list include DC or Planar mode, specifically: the CU traditional prediction angle mode is divided into 65 angle prediction modes and 2 non-angle prediction modes, among which the non-angle prediction mode is divided into Planar mode and DC mode. The Planar mode is suitable for areas where pixel values change slowly, and its predicted pixels are regarded as the average values of the prediction values in the horizontal and vertical directions; the DC mode calculates the average value of the reference pixels on the left or above the current CU, and selects different average reference pixel rows as the predicted pixel values according to their different sizes, which is more suitable for large flat areas.
4. The ERP panoramic video VVC intra-frame mode fast prediction method according to claim 1 is characterized in that: In step S4, the MPM most probable mode list of the current CU, the MPM list technology utilizes the correlation between adjacent block modes, and its construction steps are: first, traverse the 35 prediction modes that are the same as HEVC, and update the candidate list by comparing the Hadamard cost; then, traverse the modes in the candidate list, and obtain its left and right adjacent modes, calculate the Hadamard cost and further compare it with the previously selected mode; the Hadamard cost adopts a calculation method based on the Lagrangian optimization method, and its calculation formula is shown in (1); JD SAD +λ×Bit mode (1) J in formula (1) represents the Hadamard cost calculated using the current prediction model; D SAD Represents the absolute error sum between the original block and the reconstructed block; Bit mode Represents the bit rate required to encode the current mode; After two rounds of Hadamard cost calculations, several candidate angle prediction modes with the lowest cost are obtained, and VVC constructs the MPM list. In H.266 / VVC, the MPM list contains 6 prediction modes, and the selection of the prediction mode is mainly determined based on the CU above and the CU to the left of the current CU.
5. The ERP panoramic video VVC intra-frame mode fast prediction method according to claim 1 is characterized in that: In step S6, the horizontal and vertical gradient values of the current CU are calculated by using two Scharr operators with 3×3 convolution kernels to calculate the vertical and horizontal gradients of the CU pixels respectively, and the calculation formula is as follows: G in formula (2) h (x,y) and G v (x, y) represents the horizontal gradient and vertical gradient of the pixel at the coordinate (x, y), respectively; A(x, y) represents the pixel matrix centered at the coordinate (x, y).
6. The ERP panoramic video VVC intra-frame mode fast prediction method according to claim 5 is characterized in that: In step S6, whether the CU approaches the horizontal texture is determined by calculating the average gradients of the current CU pixels in the horizontal and vertical directions using formula (3). In formula (3), |G h (x,y)| and|G h (x, y)|respectively the absolute value of the horizontal gradient and vertical gradient of the pixel at the (i, j) coordinate; Gradient h and Gradient v are the horizontal average gradient and vertical average gradient of the current CU respectively; if Gradient h / Gradient v ≤0.9, the horizontal gradient is significantly smaller than the vertical gradient, indicating that the current CU approaches the horizontal texture, and the CU tends to use the angle prediction mode of the horizontal area as the best intra prediction mode.
7. The ERP panoramic video VVC intra-frame mode fast prediction method according to claim 1 is characterized in that: In step S7, whether it belongs to the horizontal area is to determine that the CU whose best angle prediction mode is selected in the angle prediction mode value range of 10-26 is the horizontal area; In the step S8, the vertical area is determined as a CU whose best angle prediction mode is selected within the range of 42-58 as a vertical area.
8. The method for fast prediction of intra-frame mode of ERP panoramic video VVC according to claim 6, characterized in that: In step S9, the gradients of the current CU in four directions are calculated, that is, the gradients of the current CU in the horizontal, vertical, 45° and 135° directions are calculated; the gradients of the current CU in the horizontal and vertical directions are calculated using formulas (2) and (3), and the gradient operators in the 45° and 135° directions are obtained by rotating the horizontal and vertical convolution kernel operators, and their calculation is shown in formula (4). G in formula (4) 45 (x,y) represents the gradient of the pixel at the coordinate (x,y) in the 45° direction; A(x,y) represents the pixel matrix centered at the coordinate (x,y); G 135 (x, y) represents the gradient of the pixel at the coordinate (x, y) in the 135° direction; the gradient calculation of the 45° and 135° directions of the current CU is shown in formula (5); In formula (5), |G 45 (x,y)| and|G 135 (x, y)| is the absolute value of the 45° and 135° gradients of the CU at the (i, j) coordinates; W and H are the width and height of the CU respectively; Gradient 45 and Gradient 135 They are the average gradients of the current CU in the 45° and 135° directions respectively.
9. The ERP panoramic video VVC intra-frame mode fast prediction method according to claim 1, characterized in that: In the step S10, it is determined whether the minimum directional gradient is in the region where the minimum directional gradient is located, where the regions include horizontal, vertical, 45° and 135°, a total of four regions; the 65 angle prediction modes of VVC are divided into the above four regions; among them, the angle prediction modes of 10-26 are divided into the horizontal region; the angle prediction modes of 27-41 are divided into the 135° region; the angle prediction modes of 42-58 are divided into the vertical region; the angle prediction modes of 2-9 and 59-66 are divided into the 45° region.
10. A storage medium storing a computer program, characterized in that: When the computer program is read by a processor, the ERP panoramic video VVC intra-frame mode fast prediction method according to any one of claims 1 to 9 is executed.
Citation Information
Patent Citations
Complexity optimization method and device based on latitude characteristics of panoramic video
CN110545429A
CU division decision based on texture similarity
CN111683245A
Rapid CU division method for VVC of ERP panoramic video and storage medium
CN117041736A
Cited By
Recording and coding method for ultra-high-definition video
CN120881283A
