JPEG 2000 Image Compression
JPEG 2000 Image Compression
MILITARY MEDICAL
• HD SATELLITE IMAGES • HIGH-QUALITY STORAGE
• HIGH-QUALITY TRANSMISSION • HIGH-QUALITY PROCESSING
• HIGH-QUALITY STORAGE
• REMOTE SENSING
INDUSTRIAL CONSUMER
• HIGH-QUALITY STORAGE • MOBILE PHONES
• REMOTE SENSING DIGITAL • PALM PILOTS
STILL
IMAGES
INTERNET CCTV
IMAGE DATABASES SECURITY MOTION DETECTION
STREAMING VIDEO NETWORK DISTRIBUTION
VIDEO SERVERS STORAGE
LL2 HL2
HL1
WAVELET
TRANSFORM INTO LH2 HH2
SUBBANDS HL1, cb0
HH1, LH1, LL2, cb1
HL2, HH2, LH2
LH1 HH1
cb2 cb4
cb3 cb5
TILE0
RESOLUTION0 R1
LAYER0 L1 L0
Y Cb Cr Y Cb Cr Y Cb
PRECINCT0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2
PACKET DATA FOR DATA FOR DATA FOR DATA FOR DATA FOR DATA FOR
HEADER FOR CODEBLOCK CODEBLOCK CODEBLOCK CODEBLOCK CODEBLOCK CODEBLOCK
PACKET 0 0, SUBBAND 1, SUBBAND 2, SUBBAND 3, SUBBAND 4, SUBBAND 5, SUBBAND
HL1 HL1 LH1 LH1 HH1 HH1
RESOLUTION0 R1
LAYER0 L1 L0
Y Cb Cr Y Cb Cr Y Cb
PRECINCT0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2 Pr0 Pr1 Pr2
REQUESTS FULL RESOLUTION [R0] REQUESTS FULL RESOLUTION [R0] REQUESTS SMALL RESOLUTION [R1]
LOSSLESS [L0] LOSSLESS [L1] LOSSY [L0]
ALL COMPONENTS PRECINCT 0, ALL COMPONENTS Y COMPONENT ONLY
PACKET 0
JPEG 2000 can contain a user-defined number of layers, which header information. Also, a table of contents can be stored on the
are defined by PCRC and context modeling. Each layer stands encode side, and allows a decoder to call up a certain resolution
for a particular compression rate, where the compression rate is on demand, without first having to decode or download the entire
achieved from the quantization-, rate-distortion-, and context JPEG 2000 code stream.
modeling processes. Layer 0, for example, contains bit streams-
from the lossy WT transform-that are heavily truncated, contain DCT versus WT
no coding passes, and thus provide the highest compression rate JPEG 2000 uses the wavelet transform (WT) to reduce the amount of
and the lowest quality. Layer 16 can then contain bit streams that information contained in a picture, while MPEG and JPEG systems
are less truncated and use a higher number of coding passes, thus use the discrete cosine transform (DCT). It is true that the WT requires
providing low compression and high quality. more processing power than the DCT, but MPEG systems require
more than just the DCT. The DCT, or any type of Fourier transform,
Tiles or images are further partitioned into precincts. Precincts expresses the signal in terms of frequency and amplitude—but only at
contain a number of code blocks, and are used to facilitate access a single instant in time. The WT transforms a signal into frequency
to a specific area within an image in order to process this area and amplitude over time, and is therefore more efficient. The figures
in a different way, or to decode only a specific area of an image. on the following page demonstrate this.
The JPEG 2000 bit stream is generated by arranging code blocks
or precincts into an array of packets with the lower subbands To obtain the same amount of information as with one WT pass,
coming first. the DCT must be used for every frequency; and each of these
frequencies must be transformed at each time instant for each
The JPEG 2000 stream starts with a main header containing 8 8 pixel block. In addition, MPEG systems use inter-frame
information such as: uncompressed image size, tile size, compression [motion estimation] in order to reduce the amount of
number of components, bit depth of components, coding data further for motion estimation. This requires storage of at least
style, transform levels, progression order, number of layers, two entire fields in external memory. The computation-intensive
code block size, wavelet filter type, quantization level, etc. The motion estimation process requires a very powerful processor.
entire image data, grouped in code blocks of LL, HL, LH, and Temporal compression can be used in JPEG 2000 systems, but it
HH subbands, follows the header. Data is not contained in the is not inherent in the JPEG 2000 standard.
3 0.8
0.6
2
0.4
1
0.2
0 0
–1 –0.2
–0.4
–2
–0.6
–3
–0.8
–4 –1.0
0 200 400 600 800 1000 1200 0 200 400 600 800 1000 1200
Figure 4. Input signal 1 containing frequencies A, B, C, and D. Figure 5. Input signal 2 containing frequencies A, B, C, and D.
0.10
0.10
0.05
0.05
0
0
–0.05
–0.05
–0.10
–0.10
–0.15
–0.15 1200
500 1000
600
400 700 800 500
300 600 600 400
500 400 300
200 400 200
300 200 100
100 200
100 0
0
FOURIER TRANSFORM OF THE COSINE SIGNAL FOURIER TRANSFORM OF THE COSINE SIGNAL
WITH 4 FREQUENCY COMPONENTS WITH 4 FREQUENCY COMPONENTS
500 500
450 450
400 400
350 350
300 300
250 250
200 200
150 150
100 100
50 50
0 0
0 10 20 30 40 50 60 70 80 90 100 0 10 20 30 40 50 60 70 80 90 100
FREQUENCY (Hz) FREQUENCY (Hz)
EXTERNAL
DMA CTRL
PIXEL
FIFO
HOST I/F INTERNAL BUS AND DMA ENGINE
CODE
FIFO
ATTRIBUTE
FIFO
EMBEDDED RISC MEMORY
ANCILLARY PROCESSOR SYSTEM
FIFO SYSTEM
JPEG 2000’s Advantages Over Other Compression Standards provides a glueless interface to common video standards such as
All MPEG standards are complex and computation intensive. ITU.R.BT656, SMPTE274M, or SMPTE296M. It can create a
This translates into extensive processing latency and memory fully compliant JPEG 2000 code stream [.j2c, .jp2]. It can also
requirements in standard-definition (SD) applications. These provide raw code - block and attribute data, allowing the host
factors become even more of a problem when high-definition processor to have complete control over the generation - and
(HD) formats are considered, and JPEG 2000 becomes even compression processes.
more desirable. Another strength of JPEG 2000 is the standard Even though digital signal-processor (DSP) performance has
itself, which allows immense flexibility and control in many improved significantly, a DSP would have to perform 20 billion
different applications. There is also much versatility regarding instructions per second to match the performance of the ADV202
formats: JPEG 2000 supports anything from 8-bits per sample in a standard-definition encode application. Effectively serving
to an unlimited amount of bits per sample, whereas MPEG only as accelerators, the ADV202’s three dedicated on-chip entropy
supports 8-bit data. codecs are responsible for the high throughput rate.
JPEG 2000 continues to gain popularity, even though MPEG-2 is
the established standard for DVD and broadcast applications. JPEG CONCLUSION—THE OUTLOOK FOR JPEG 2000
2000 is also very popular in HD applications that require high-quality A major advantage of using a JPEG 2000 hardware solution is lower
storage or transmission of HD images over wireless or other links. latency than any other compression scheme, a factor which is of
particular importance in medical applications, for example.
The ADV202
Since the early 1990s, Analog Devices has invested heavily in Several major manufacturers of video or broadcast equipment
wavelet-compression R&D. We were the first to introduce a wavelet- have implemented JPEG 2000 into such future HD products as
compression hardware solution in 1996 with the ADV601. Now real-time encoding and decoding systems and video servers.
ADI’s newest wavelet codec, the ADV202, released in July 2004, is
The Digital Cinema Initiative (DCI) has recently announced
so far the only dedicated JPEG 2000 IC on the market. A complete
that it will use JPEG 2000 as the compression method in the
single-chip JPEG 2000 compression/decompression IC, the ADV202
delivery of digital motion pictures. The ADV202 has already
works with high-definition video, standard-definition video, and still
found its way into many designs in the CCTV/security market
images. It supports all features of the ISO/IEC15444-1 [JPEG 2000]
in video-over-network applications. For more information, please
image-compression standard [except Maxshift ROI]. Its patented
visit http://www.itscj.ipsj.or.jp/sc29/29w02901.pdf
SURF™ (spatial ultra-efficient recursive filtering) technology enables
low-power, low-cost wavelet-based compression. Containing a Because of its flexibility and image-compression quality, the
dedicated wavelet transform engine, three entropy codecs, a ADV202—operating under JPEG 2000—could find its way into
RISC processor, and on-board memory systems, the ADV202 virtually every design that uses image or video compression. b