Download presentation
Presentation is loading. Please wait.
Published byDilara Erem Modified over 5 years ago
1
Case Study ARM Platform-based JPEG Codec HW/SW Co-design
Teaching Assistant : Yu-Ju Cho Advisor : Prof. An-Yeu Wu
2
Outline Introduction to JPEG Codec Lab ─ Case study Reference
3
ISO/IEC 10918-1 JPEG JPEG: Joint Photographic Experts Group
JPEG voted as international standard in 1994 JPEG standard has four compression method Baseline sequential DCT-based coding Progressive DCT-based coding Lossless coding method Sampling and Quantization are not considered at loss-less coding scheme Hierarchical coding method
4
Baseline sequential V.S. Progressive DCT-based coding
7 3 - 9 / d
5
Color Model in Video ─ YCrCb
YCbCr color mode is used in JPEG and MPEG CCIR-601 transform formula The chrominance values in YCbCr are always in the range of 0 to 1 Color space transform is loss-less
6
Chroma Sub-sampling 4:1:1 and 4:2:0 are mostly used in JPEG and MPEG
7
Block Diagram of JPEG Encoder
…
8
Block Diagram of JPEG Decoder
…
9
2-D DCT (Discrete Cosine Transform)
10
Basis Image of 2-D DCT
11
Frequency Distribution of 2-D DCT
12
8 point 1-D DCT Algorithm (1/2)
13
8 point 1-D DCT Algorithm (2/2)
14
Implementation 2-D DCT Example: row-column decomposition
Separable, row-column decomposition X Transport Memory (Y) Z 1D DCT Unit 1D DCT Unit Y=AX Z=YAT
15
Quantization Table for Luminance
16 11 10 24 40 51 61 12 14 19 26 58 60 55 13 67 69 56 17 22 29 87 80 62 18 37 68 109 103 77 35 64 81 104 113 92 49 78 121 120 101 72 95 98 112 100 99
16
Quantization Table for Chrominance
17 18 24 47 99 21 26 66 56
17
Predictive Coding of DC Coefficients
18
Zig-zag Scan (AC Coefficients)
19
Run-Length Coding DC (R,L) => (0,-3)(0,-2)(0,-2)(0,-1)(2,-1)(EOB)
20
Huffman Coding for DC Coefficient
Category AC Coefficient Range 1 -1,1 2 -3,-2,2,3 3 -7,…,-4,4,…,7 4 -15,…,-8,8,…,15 5 -31,…,-16,16,…,31 6 -63,…,-32,32,…,63 7 -127,…,-64,64,…,127 8 -255,…,-128,128,…,255 9 -511,…,-256,256,…,511 10 -1023,…,-512,512,…,1023 11 -2047,…,-1024,1024,…,2047
21
An Example of Baseline DCT-based Coding
FDCT -128 Q (6)(61),(0,2)(-3), (0,3)(4),(0,1)(-1), (0,3)(-4),(0,2)(2), (1,2)(2),(0,2)(-2), (0,2)(-2),(5,2)(2), (3,1)(1),(6,1)(-1), (2,1)(-1),(4,1)(-1), (7,1)(-1),(0,0) Zig-Zag (110)(111101)(01)(00)(100) (100)(00)(0)(100)(001)(01) (10)(11011)(10)(01)(01)(01) (01)( )(10)(111010)(1)( )(0)(11100)(0) (111011)(0)( )(0)(1010) Huffman Run-length total 98 bits Q Table Q Table
22
JPEG Bitstream
23
Outline Introduction to JPEG Codec Lab ─ Case study Reference
24
File Structure
25
Read & Write Address FDCT IDCT Write_head 0xcc000000 0xcc000004
0xcc00000c 0xcc000010 0xcc000014 0xcc000018 0xcc00001c Write_head 0xcc000040 0xcc000044 0xcc000048 0xcc00004c 0xcc000050 0xcc000054 0xcc000058 0xcc00005c FDCT IDCT Read_head 0xcc000020 0xcc000024 0xcc000028 0xcc00002c 0xcc000030 0xcc000034 0xcc000038 0xcc00003c Read_head 0xcc000060 0xcc000064 0xcc000068 0xcc00006c 0xcc000070 0xcc000074 0xcc000078 0xcc00007c
26
Result for SW Simulation
Original Encoder Decoder
27
Result for HW Simulation
Original Encoder Decoder
28
Profiling Result of SW Simulation
29
Lab ─ Case Study Goal Principles Requirement Discussion
Implement the JPEG codec system using ARM platform Principles Implement the ARM platform-based JPEG codec HW/SW co-design Requirement Analysis the profiling of pure software simulation Explain how to partition the HW/SW of JPEG codec Implement the JPEG codec with HW/SW co-design Discussion Explain where is the stack and heap ? And who initialize them
30
Outline Introduction to JPEG Codec Lab ─ Case study Reference
31
Reference Wen-Hsiung Chen, C. Harrison Smith, and S. C. Fralick, "A Fast Computational Algorithm for the Discrete Cosine Transform," IEEE Trans. Commun., vol. COM-25, pp , Sept 1977. JPEG: Still Image Data Compression Standard by William B. Pennebaker and Joan L. Mitchell, Kluwer Academic Publishers, ISBN:
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.