Professional Documents
Culture Documents
JPEG Using Baseline Method2
JPEG Using Baseline Method2
Mail id:vemu1974@gmail.com
ABSTRACT: Image compression is an important FPGA designer. The key to efficient FPGA
topic in commercial, industrial, and academic implementation of complex floating-point functions
applications. Whether it be in commercial is to use multiplier-based algorithms. To compress
photography, industrial imaging, or video, digital data, it is important to recognize redundancies in
pixel information can comprise considerably large data, in the form of coding redundancy, inter-pixel
amounts of data. Management of such data can redundancy, and psycho-visual redundancy. Data
involve significant overhead in computational redundancies occur when unnecessary data is used
complexity, storage, and data processing. Typical to represent source information. Compression is
access speeds for storage mediums are inversely achieved when one or more of these types of
proportional to capacity. Through data redundancies are reduced.Intuitively, removing
compression, such tasks can be optimized. The unnecessary data will decrease the size of the data,
implementation of this project was successful on without losing any important information. However,
achieving significant compression ratios. The sample this is not the case for psycho-visual redundancy.
images chosen showed different degrees of contrast
and in detail to show how the compression affected The sequential DCT based mode of operation
high frequency components within the images. The comprises the baseline JPEG algorithm. This
throughput of the design excelled in the FPGA core. technique can produce very good compression
However, inherent limitations in the interface to the ratios, while sacrificing image quality. The
FPGA limited the overall performance of the design. sequential DCT based mode achieves much of its
The JPEG algorithm was chosen for this paper as it compression through quantization, which removes
is well defined and highly recognizable. JPEG entropy from the data set. Although this baseline
provides a baseline compression algorithm that can algorithm is transform based, it does use some
be modified in numerous ways to fit any desired measure of predictive coding called the differential
application. pulse code modulation (DPCM). Progressive DCT
based JPEG compression actually uses two
Key words: JPEG, FPGA, Base-line method. complimentary coding methods. The goal of this
extension is to display low quality images during
I.INTRODUCTION Compression which successively improve. The first
method for such a technique is known as spectral-
selection. This implies that data is compressed in
Typically image and video compressors and
bands.The first band contains DC components and a
decompresses (CODECS) are performed mainly in
very few AC components to get an image that is
software as signal processors can manage these
somewhat discernable. The second method
operations without incurring too much overhead in
employed is known as successive approximation.
computation. However, the complexity of these
Baseline JPEG compression has some configurable
operations can be efficiently implemented in
portions, such as quantization tables, and Huffman
hardware. Hardware specific CODECS can be
tables, which can individually be specified in the
integrated into digital systems fairly easily .Many
JPEG file header.
complex systems in communications, military and
medical and other applications are first simulated or
The rest of the paper is organized as follows:
modeled using floating-point data-processing, using
C or MATLAB software. However, the final Section II describes the architecture of the proposed
implementation is nearly always performed using baseline method for JPEG Encoder. Section III
fixed-point or integer arithmetic .Previously a lack discusses the implementation of the algorithm.
of support with a FPGA tool suites made floating- Section IV presents the results of applying the
point arithmetic an unattractive option for the
Encoder to test images. Finally, section V states the The quantization and rounding module will
work conclusion. quantize each of the DCT zigzag coefficients, and
round the result to the nearest whole number. This
II.ARCHITECTURE unit is pipelined with 12 stages, which supports 12-
bit inputs, suitable for the DCT output. The division
takes place by using a signed by unsigned non-
1. DCT based JPEG Encoder
restoring divider. The algorithm will initially use the
dividend as the quotient, shift it and based on the
A block diagram of the proposed DCT based
sign, will add or subtract the divisor. This process is
JPEG encoder shown figure 1. repeated to produce a quotient and remainder. The
remainder is not important as the purpose of
quantization is to scale the data element to be on a
specific quantization level. The signed by unsigned
non-restoring divider, at the lowest level is an un-
signed non-restoring divider. The module where this
is instantiated has a shift register which stores the
sign of what the quotient will be. After the sign is
applied to the quotient, the least significant bit is
used to round the result. This is because the radix
point of the result lies one bit left of the least
significant bit. If the least significant bit is equal to
one, the quotient is rounded up, and similarly
rounded down if the least significant bit is zero. This
architecture is depicted in figure 2.
Figure1: DCT based JPEG Encoder
3. Modular Addressing
The basic JPEG Encoder consists of Discrete
Cosine Transform (DCT), The Quantizer, The run- As the JPEG design was modularized, there was
length encoder and the Huffman Encoder. a fair level of testability designed into it, as shown in
figure 3. Through the control register, the input and
2. Quantization and rounding output module can be selected. This was a very
useful debugging tool. In fact, the entire module can
The process of Quantization and rounding to nearby be bypassed if a specific address is set in the control
register.
integer is shown in Figure 2.
III. IMPLEMENTATION
V. CONCLUSION
[9]S.Hasu,S.Mathew,M.Andres,B.Zeydel,V.Oklobdz
ija,R.Krishnamuthy,and S.Borkar,“A 110 GOPS/W
16-bit multiplier and reconfigurable PLA loop in 90-
nm CMOS,” IEEE journal of Solid State
Circuits,pp.256-264,2006.