TJpgDec - Tiny JPEG Decompressor

 转自TJpgDec - Tiny JPEG Decompressor (elm-chan.org)

TJpgDec is a generic JPEG image decompressor module that highly optimized for small embedded systems. It works with very low memory consumption, so that it can be incorporated into tiny microcontrollers, such as AVR, 8051, PIC, Z80, Cortex-M0 and etc.

Features
  • Platform Independent. Written in Plain C (C99).
  • Easy to Use Master Mode Operation.
  • Fully Re-entrant Architecture.
  • Configurable Optimization Level for both 8/16-bit and 32-bit MCUs.
  • Very Small Memory Footprint:
    • 3.5K Bytes of Work Area Independent of Image Width.
    • 3.5-8.5K Bytes of Code in .text + .rodata.
  • Output Format:
    • Pixel Format: RGB888, RGB565 or Grayscale Pre-configurable.
    • Scaling Ratio: 1/1, 1/2, 1/4 or 1/8 Selectable on Decompression.

Application Interface

There are two API functions to analyze and decompress the JPEG image.

  • jd_prepare - Prepare decompression of the JPEG image
  • jd_decomp - Execute decompression of the JPEG image

I/O functions

To input the JPEG data and output the decompressed image, TJpgDec requires two user defined I/O functions. These are called back from the TJpgDec module in the decompression process.

Resources

The TJpgDec module is a free software opened for education, research and development. You can use, modify and/or redistribute it for personal projects or commercial products without any restriction under your responsibility.


Return

  • 15
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值