A rate-distortion optimization method for panoramic video coding

By calculating coding unit weights and quantization parameters, and optimizing Lagrange multipliers in combination with time-domain influence factors, the problem of unused time-domain dependencies in existing panoramic video rate-distortion optimization algorithms is solved, improving coding efficiency and significantly saving money. Code rate.

CN115022638BActive Publication Date: 2024-10-01UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210758994.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-10-01
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

Existing panoramic video rate-distortion optimization algorithms fail to effectively utilize the temporal rate-distortion dependencies between CTUs when calculating Coding Tree Unit (CTU) weights, and do not consider the optimization of other projection formats such as cube projection, resulting in encoding time consumption. More and less efficient.

Method used

By calculating the weight values ​​of coding units at different positions, and combining the initial Lagrange multipliers and quantization parameters, new quantization parameters are calculated, and then the optimal coding unit division method is determined. CU-level quantization parameters are used to improve coding efficiency, and through CTU The level time domain influence factor fine-tunes the Lagrange multiplier and optimizes the rate-distortion process.

Benefits of technology

It improves the encoder performance, reduces the encoding time, ensures the video quality, and significantly saves the bit rate while ensuring the video quality. The average S-PSNR and WS-PSNR quality indicators are reduced by 4.14% and 4.15%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115022638B_ABST
    Figure CN115022638B_ABST
Patent Text Reader

Abstract

The present invention discloses a rate-distortion optimization method for panoramic video coding, which encodes a video and controls the quantization parameters of the video coding through an encoder. The method includes coding unit-level quantization parameter adjustment, CTU-level Lagrange multiplier correction, and a rate-distortion optimization method based on the temporal dependency between coding tree units. The CU-level QP adjustment is mainly based on the correspondence between the spherical domain and the two-dimensional plane, calculates the weights corresponding to CUs at different positions, adjusts the corresponding QPs according to the weights, and brings the corresponding adjusted QPs into the CUs at different positions to determine the optimal coding unit division method; the CTU-level λ correction refers to obtaining the corresponding CTU-level QP according to the weights of CTUs at different positions, and then adjusting λ according to the corresponding CTU-level QP. The CTU-level temporal rate-distortion optimization algorithm calculates the temporal impact factor of each CTU in the time domain according to the rate-distortion dependency between different CTUs to fine-tune the Lagrange multiplier corresponding to the CTU, thereby optimizing the rate-distortion process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of video / image coding and decoding, and in particular relates to a rate-distortion optimization method for panoramic video coding. Background Art

[0002] The existing panoramic video rate-distortion optimization algorithm includes the following steps:

[0003] Step 1: According to the correspondence between the spherical domain and the two-dimensional plane, the weights corresponding to the coding tree units (CTUs) at different positions on the two-dimensional plane are calculated.

[0004] Step 2: Adjust the quantization parameter (QP) corresponding to the CTU according to the weight obtained in step 1. During encoding, the corresponding QP is brought into the CTUs at different positions to determine the best coding unit division method. Since the ERP format has pixel redundancy in the polar parts and most of the audience's attention is near the equator, the closer the CTU is to the polar parts, the larger the calculated QP is, and the less bit rate is allocated to the two-level area, thereby achieving the goal of bit rate saving.

[0005] Here is how QP is calculated:

[0006]

[0007]

[0008]

[0009] in, are the weight values ​​corresponding to different dimensions, is the mean of the weights, QP old is the QP corresponding to each frame;

[0010] Step 2: Calculate the weights of CTUs at different positions on the two-dimensional plane, obtain the corresponding CTU-level QP based on the weights, and then adjust the Lagrange multiplier based on the relationship between QP and lambda (Lagrange multiplier):

[0011] λ=e (QP+0.49-13.7122) / 4.2005

[0012] The basic process of the rate-distortion optimization algorithm used in this method is as follows: after calculating the weights of CTUs at different positions in the two-dimensional plane, the corresponding QP is obtained. The CU-level QP is not calculated, and the corresponding Lagrange multiplier (λ, lambda) is not adjusted according to the CTU-level QP; the time-domain rate-distortion dependency between CTUs is not utilized.

[0013] Therefore, the traditional method needs to calculate the rd-cost (rate-distortion cost function) of each coding unit of each frame image, which consumes a lot of encoding time. It does not consider the optimization of other projection formats such as cubemap projection (CMP). Summary of the invention

[0014] In view of the above problems, the present invention proposes a rate-distortion optimization method for panoramic video coding.

[0015] For ease of understanding, the terms used in the present invention are explained as follows:

[0016] Panoramic video: Panoramic video is a video shot in 360° all directions with a 3D camera. When watching the video, users can adjust the video up, down, left, and right at will.

[0017] Rate-distortion optimization: Rate-distortion optimization is a method for improving the quality of video compression. The name refers to optimizing the amount of distortion (loss of video quality) for the amount of data (rate) required to encode the video. The encoder selects an optimal set of encoding parameters for the input video through rate-distortion optimization (RDO).

[0018] ERP (Equirectangular projection): Equirectangular projection is a simple projection method that maps longitude lines to vertical lines with constant spacing and latitude lines to horizontal lines with constant spacing. This projection method has a simple mapping relationship, but it is neither equal-area nor conformal, and introduces considerable distortion.

[0019] S-PSNR (Spherical PSNR): S-PSNR is an objective quality assessment standard for 360 videos adopted by 360Lib. It uses a series of predetermined points on a sphere to sample reference and test images, compares the differences between them, and accumulates the S-PSNR value of the entire image.

[0020] WS-PSNR (Weighted to Spherically uniform PSNR): WS-PSNR directly calculates PSNR for source video and output video by introducing weights. Different projection formats have different weights. The calculation formulas for projection weights of common ERP and CMP formats are as follows:

[0021]

[0022] The technical solution of the present invention is:

[0023] A rate-distortion optimization method for panoramic video coding comprises the following steps:

[0024] S1, input a fixed quantization parameter and a sequence to be encoded into the encoder;

[0025] S2. Calculate the weight values ​​corresponding to the coding units at different positions according to the size of the input sequence to be encoded, specifically:

[0026] The weights of coding units of sizes 64*64, 32*32, 16*16, and 8*8 are calculated using the following formulas:

[0027]

[0028]

[0029]

[0030] in, is the latitude corresponding to each row of pixels, w is the final weight, and the weight of the coding unit with a size of 64*64 is the weight of the coding tree unit CTU;

[0031] S3, add the weight value w calculated by S2 to the initial Lagrange multiplier λ old Multiply to get the new λ new , according to the correspondence between the quantization parameter QP and λ, calculate the new QP corresponding to the coding unit at different positions new , specifically:

[0032] set up:

[0033] λ new =λ old *w

[0034]

[0035] Therefore:

[0036]

[0037] So we have:

[0038]

[0039] Among them, QP old Is the quantization parameter corresponding to each frame, QP new is the calculated new quantization parameter; the quantization parameter corresponding to the coding unit of size 64*64 is the quantization parameter of the coding tree unit CTU;

[0040] S4: When encoding an I frame, the coding units (CUs) at different positions are brought into the QP obtained in step S3. newThus, the best coding unit division method is determined; when encoding non-I frames, the QP corresponding to each frame is called to determine the best coding unit division method;

[0041] S5. Calculate the λ corresponding to each CTU (i.e., CTU-level λ) according to the QP value of the coding tree unit obtained in S3, thereby achieving rate-distortion optimization:

[0042] λ=e (QP+0.49-13.7122) / 4.2005

[0043] S6. Calculate the time domain impact factor:

[0044]

[0045] Among them, D cur,i is the distortion of the current ith coding block, is the motion compensation prediction error of the current i-th coding block; k i is the time domain impact factor of the i-th coding block (the size of the coding block is 16*16), k i The range is between 0 and 1;

[0046] The time domain impact factor of each CTU is obtained by the following formula:

[0047]

[0048] Where Γ i is the temporal impact factor of the ith CTU in the frame to be encoded, and L is the number of 16×16 pixel blocks in the ith CTU;

[0049] S7. Based on step S5, each CTU level λ obtained is divided by the corresponding time domain impact factor, so as to optimize the rate-distortion process from the perspective of time domain dependence.

[0050] The beneficial effects of the present invention are as follows: the present invention provides a method that can improve the performance of the encoder while ensuring the video quality, and the weight parameters used in the algorithm can be calculated in advance according to the video size, which does not take up encoding time and does not increase the algorithm complexity and time complexity; at the same time, the present invention uses the CU-level QP to improve the encoding efficiency, uses the CTU-level QP to determine the Lagrange multiplier lambda, and uses the CTU-level time-domain influence factor to fine-tune lambda to improve the rate-distortion optimization process. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0052] The effectiveness of the present invention is briefly described below with reference to simulation examples.

[0053] Simulation experiment

[0054] HM-16.14 is used as the experimental platform. The reference object is the fixed QP method in HM-16.14 (QP=22, 27, 32, 37). The test sequence is the panoramic video standard test sequence. The encoding method is LDP. The comparison indicators are BD-Rate, S-PSNR, and WS-PSNR.

[0055] When BD-Rate is negative, it means that the bitrate is reduced at the same reconstruction quality, and the technology has a gain. When BD-Rate is positive, it means that the bitrate is increased at the same reconstruction quality, and the technology has a loss. The benchmarks compared here are all the encoding quality of the HM encoder at a given QP.

[0056] Table 1 shows the performance of this solution on BD-rate.

[0057] Table 1 Bit rate savings of sequences in ERP format on S-PSNR and WS-PSNR

[0058]

[0059] Compared with the benchmark encoder, the S-PSNR quality index is reduced by an average of 4.15%, and the WS-PSNR quality index is reduced by an average of 4.14%, which significantly saves bit rate while ensuring video quality.

[0060] In the rate-distortion optimization algorithm, the method for calculating the weight value was proposed by Minhao Tang et al. Their work was to determine the coding unit division method only based on the CTU-level QP. The present invention has been refined and improved. It not only recalculates the weights of 32*32, 16*16, and 8*8 coding units, but also determines the I-frame CU-level quantization parameter QP based on the weights to determine the coding unit division method. Another innovation of the present invention is to derive the CTU-level Lagrange multiplier lambda based on the CTU-level QP, thereby achieving a more accurate rate-distortion optimization process.

[0061] T. Yang et al. proposed a source distortion time domain propagation model to estimate the propagation factor of the coding block based on the coding reference structure of H.264. Subsequently, Y. Gao et al. extended the above time domain dependent rate distortion optimization method to the HEVC low-latency coding structure. The CTU-level time domain dependent rate distortion optimization proposed in the present invention uses the above method to estimate the CTU-level time domain impact factor.

[0062] The CU-level (the minimum CU is limited to 32*32 after experiments) QP is used to determine the division method of the I frame coding unit and the Lagrange multiplier lambda is determined by using the CTU-level QP to perform rate-distortion optimization. Lambda is fine-tuned using the CTU-level time domain impact factor. This is the most important innovative work of the present invention and the main part that can improve the coding performance. It should be noted that the rate-distortion optimization algorithm can be applied to other coding frameworks.

Claims

1. A rate-distortion optimization method for panoramic video coding, characterized in that: The following steps are involved: S1, input a fixed quantization parameter and a sequence to be encoded into the encoder; S2. Calculate the weight values ​​corresponding to the coding units at different positions according to the size of the input sequence to be encoded, specifically: The weights of coding units of sizes 64*64, 32*32, 16*16, and 8*8 are calculated using the following formulas: in, is the latitude corresponding to each row of pixels, w is the final weight, and the weight of the coding unit with a size of 64*64 is the weight of the coding tree unit CTU; S3, the weight value w calculated by S2 and the initial Lagrange multiplier λ old Multiply to get the new λ new , according to the correspondence between the quantization parameter QP and λ, calculate the new QP corresponding to the coding unit at different positions new , specifically: set up: l new =λ old *w Therefore: get: Among them, QP old Is the quantization parameter corresponding to each frame, QP new is the calculated new quantization parameter; the quantization parameter corresponding to the coding unit of size 64*64 is the quantization parameter of the coding tree unit CTU; S4: When encoding an I frame, the QP obtained in step S3 is brought into the coding units at different positions. new Thus, the optimal coding unit division method is determined; when encoding non-I frames, the QP corresponding to each frame is called to determine the optimal coding unit division method; S5. Calculate the λ corresponding to each coding tree unit according to the QP value of the coding tree unit obtained in S3, thereby achieving rate-distortion optimization: λ=e(QP+0.49-13.7122) / 4.2005 S6. Calculate the time domain impact factor: Among them, D cur,i is the distortion of the current ith coding block, is the motion compensation prediction error of the current i-th coding block; k i is the time domain impact factor of the i-th coding block, the size of the coding block is 16*16, k i The range is between 0 and 1; The time domain impact factor of each CTU is obtained by the following formula: Where Γ i is the temporal impact factor of the ith CTU in the frame to be encoded, and L is the number of 16×16 pixel blocks in the ith CTU; S7. Based on step S5, each CTU level λ obtained is divided by the corresponding time domain impact factor, so as to optimize the rate-distortion process from the perspective of time domain dependence.