1 final project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 outline architecture of jpeg...

18
1 Final Project 吳吳吳 吳吳吳 吳吳吳 吳吳吳 吳吳吳

Upload: homer-douglas

Post on 19-Jan-2016

270 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

1

Final Project

吳佑焉陳建宏陳方玉柯鴻洋

第八組

Page 2: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

2

Outline

Architecture of JPEG encoder

Forward DCT algorithm review

MYIP design

Problem we met

Conclusion

Page 3: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

3

JPEG Encoding

Page 4: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

4

RGB => YUV

128)*439.0()*291.0()*148.0(

128)*071.0()*368.0()*439.0(

16)*098.0()*504.0()*257.0(

BGR

BGR

BGR

U

V

Cb

Cr

Y

Y-Luminance(亮度 )

Cb,Cr-Chrominance domain(色差 )

Page 5: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

5

Forward DCT

43

52

61

70

1357

3715

5173

7531

7

5

3

1

43

52

61

70

6226

4444

2662

4444

6

4

2

0

2

1

2

1

ff

ff

ff

ff

CCCC

CCCC

CCCC

CCCC

F

F

F

F

ff

ff

ff

ff

CCCC

CCCC

CCCC

CCCC

F

F

F

F

16cos,

kCwhere k

Page 6: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

6

MYIP design

MYIP includes RGB2YUV and DCT transform

control

DCT RGB2YUV

MYIP

HADDR[7] HADDR

HWDATA

HRDATA

HREADYOUT

Page 7: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

7

Modified files

Verilog file MYIP.v

CPP files Before.cpp Driver.cpp Rgbdriver.cpp

Page 8: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

8

MYIP.v file

Page 9: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

9

MYIP.v file cont.

Page 10: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

10

MYIP.v file cont.

Page 11: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

11

Rgbdriver.cpp

Page 12: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

12

Driver.cpp

Page 13: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

13

Before.cpp

Page 14: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

14

Problem we met

Prob1 The modified before.cpp downloaded form web

site has some problem in image quality

Prob2 RGB to YUV coefficients from the transform m

atrix is not consistent with standard

Page 15: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

15

Prob1:Image quality

Original 256x256 BMP

Size=193KB

compressed 256x256 JPG using software code,Size=13.2KB

Page 16: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

16

Prob2:coefficient is not consistent

Page 17: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

17

Compression with RGB2YUV and DCT using hardware realization

Original 256x256 BMP

Size=193KB

Compressed 256x256 jpeg

Size=8.24KB

Page 18: 1 Final Project 吳佑焉 陳建宏 陳方玉 柯鴻洋 第八組. 2 Outline Architecture of JPEG encoder Forward DCT algorithm review MYIP design Problem we met Conclusion

18

Conclusion and future work

Conclusion How to partition the software and hardware

effect to our jpeg platform design A good solution to our jpeg design

methodology is a key issue

Future work Benchmark which design component which

affects the performance mostly Using hardware to implement quantization