Giter Club home page Giter Club logo

jpeg_decoder's Introduction

JPEG 解碼器

將 jpg 檔轉換為 bmp 檔

僅支援 baseline jpg

故事

就讀臺灣大學的同學,看過這篇文章吳家麟,我教育你備份)之後,再繼續閱讀,感謝!

關於 JPEG

我用 rust 重新實作了一個 JPEG 解碼器,並且撰寫了一份 JPEG 教學:跟我寫 JPEG 解碼器,我在綜合多份資料之後,加上自己的想法,並且爲其繪製多張圖片,力求做到清晰易懂,建議想要學習 JPEG 的人閱讀這份文件,若不熟悉 rust 語言,可以再參考以 C++ 撰寫的本專案 。

編譯

mkdir build
cd build
cmake ..
make

執行

./jpeg_decoder <jpeg file>

會在同一目錄得到一個 out.bmp

實做

idct 實做請見 這裡

優化

目前效能瓶頸為進行霍夫曼編碼時採用 C++ stl 的 map,可嘗試修改為自製之資料結構

此外 idct 也仍能進一步優化,可見 這裡

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.