A New Rate Control Method Based on JPEG2000

Publisher:csydtcLatest update time:2010-10-20 Source: 电子元器件应用 Keywords:JPEG2000 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

With the continuous development of multimedia and network technology, how to effectively use channel bandwidth when transmitting image or video information has become one of the main topics of discussion today. Rate control is a method that must be used to control the bit rate in image or video encoding. Its ultimate goal is to reasonably distribute the target bit rate to the image or video in order to obtain the minimum distortion.

JPEG2000 is a new international standard for compression coding of still images. As it adopts a new structure different from other image compression standards, JPEG2000 has the advantages of high compression ratio, support for lossy and lossless compression, random access and processing of code streams, etc. The coding algorithm of JPEG2000 includes discrete wavelet transform (DWT) and bit plane entropy coding. In JPEG2000, rate control can be performed by trying different quantization step sizes: and through the bit plane MQ encoder, JPEG2000 can accurately and simply control the bit rate to achieve the required bit rate. The core coding method of JPEG2000 is embedded code block coding (EBCOT). Its optimal truncation is a rate control method that minimizes image distortion. This process is after the wavelet coefficients are entropy coded (compressed), so it is also called post-compression rate distortion optimization (PCRD).

According to the actual rate-distortion information of all compressed data, PCRD technology can calculate the image distortion minimization of the target bitstream. However, this also requires all the bitstream data of the image. In fact, a lot of data will not be output, and this process will also take up a lot of memory and calculation. Therefore, this paper proposes a new rate control method that can effectively reduce the amount of calculation and memory usage, while achieving similar results.

1 Introduction to JPEG2000

As a new international compression standard, JPEG2000 can usually be regarded as six parts: wavelet transform (DWT), scalar quantization, bit coefficient modeling, arithmetic coding, post-compression rate-distortion optimization and code stream organization.

Wavelet transform can decompose an image into four sub-bands: LL, HL, LH and HH, and can be decomposed at multiple levels. LL is where the low-frequency information of the image is located, and the other three sub-bands contain the high-frequency information of the image. After these wavelet coefficients are quantized, they can enter the EBCOT encoding process.

1.1 Entropy Coding

The entropy coding process generally includes coefficient modeling and arithmetic coding. It is essentially a bit plane coding process. In this process, each coding block is encoded independently and passes through three coding channels, namely the importance channel, the amplitude refinement channel, and the zeroing channel. These coding channels will find the context of each bit coefficient according to the bit coefficient model, and then perform context-based arithmetic coding (MQ) on the bit coefficient.

1.2 Bit rate control

Bit rate control involves three parts: quantization, entropy coding and bitstream organization. Quantization is the process of repeatedly adjusting the quantization step size according to the required compression rate to achieve the target bitrate. This is an interactive control method. Another method of using post-compression processing is to set a truncation point for each coding block in the bitstream data. This truncation point can determine the amount of data encoded by the coding channel of each code block. This is the post-compression rate-distortion optimization of JPEG2000. The specific algorithm is as follows:
First, set the bitrate of the coding block Bi to be 16a.JPG , the distortion to be 16b.JPG , and the target bitrate of the final compressed data to be Rmax. Then the truncation point of each coding block can be freely selected. It only needs the final bitrate to satisfy the following formula:

16d.JPG

If the distortion of the reconstructed image is represented by the sum of the distortions of each coding block, the distortion of the reconstructed image is:

16e.JPG
Thus, at the intercept point ni, the rate-distortion slope is:

16f.JPG

Then, using the Lagrange multiplier method, the optimal truncation point λ can be found, thereby achieving optimal truncation coding.

2 New rate control method

The optimal truncation point λ can only be obtained through the actual rate-distortion slope of all truncation points, which requires that all bit plane data encoded by the entropy coding process and all encoded bit streams are stored in the memory, and even those bit streams that do not need to be transmitted after bit stream control must be encoded and stored. However, through research, it is found that if the rate-distortion slope of each truncation point is arranged in a descending manner, the arrangement order is related to the number of bit plane layers. In general, the rate-distortion slope of a high bit plane is greater than that of a low bit plane; secondly, the rate-distortion slope of the first encoded channel is greater than that of the later encoded channel.

Based on the above two points, the bit plane information of the image can be scanned first, and then those bits with large rate distortion slope can be encoded. The unimportant bits can be left unencoded. The process of this method is to first calculate the highest bit plane number Pi of each code block Bi according to the following formula:

16g.JPG

Where is the maximum coefficient in the code block Bi. Then, find the maximum number of planes:

16h.JPG

The sequence diagram for scanning each code block is shown in Figure 1. For each scanned code block, there are generally the following three conditions:

16i.JPG

(1) First, determine whether Pi = Pmax. If so, encode the unencoded bit plane channels of this coding block, then reduce Pi by 1, and then check condition (2). Otherwise, check condition (3);

(2) If the accumulated bit rate is greater than the target bit rate, exit encoding immediately. Otherwise, check condition (3);

(3) If this is the last coding block, then Pmax is reduced by 1, and then the coding of the next layer is started. Otherwise, the next coding block is scanned.
Since the above condition (2) is satisfied 16j.JPG , the bit rate will not exceed the compression rate limit. Conditions (1) and (3) fully consider the importance of bit planes and coding channels, thus ensuring the best image quality.

3 Experimental Results

Here, we use the 512x512 lena image for testing. Table 1 records the comparison between PCRD and the new method in terms of computation and memory usage. Table 2 lists the comparison of the two methods in terms of PSNR. The decompressed image effects of the two methods are shown in Figure 2.

16k.JPG

4 Conclusion

Through the analysis of JPEG2000, this paper proposes a method to control the bit rate by estimating rate-distortion information. Since this method does not need to encode all the data, it can effectively reduce the amount of redundant calculation and memory usage while maintaining the image quality.

Keywords:JPEG2000 Reference address:A New Rate Control Method Based on JPEG2000

Previous article:Design of AC Motor Servo Controller Based on DSP
Next article:Design and implementation of a frequency sweeper based on FPGA and single chip microcomputer

Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号