https://github.com/iwatake2222/libjpeg_porting_microcontroller
Porting libjpeg to microcontrollers (without OS)
https://github.com/iwatake2222/libjpeg_porting_microcontroller
Last synced: 24 days ago
JSON representation
Porting libjpeg to microcontrollers (without OS)
- Host: GitHub
- URL: https://github.com/iwatake2222/libjpeg_porting_microcontroller
- Owner: iwatake2222
- Created: 2018-01-30T07:08:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T07:12:52.000Z (over 7 years ago)
- Last Synced: 2025-07-14T16:55:52.478Z (3 months ago)
- Language: C
- Size: 287 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Porting libjpeg to microcontrollers (without OS)
## How to porting
- Copy Libs folder to your project
- Add all the source files to the project
- Add include path## Original code
http://www.ijg.org/jpegsr9c.zip (http://www.ijg.org/files/jpegsr9c.zip)
## What was modified
- created `jconfig.h` based on configuration for mingw
- deleted unnecessary files:
- sample code
- source cods for cjpeg, djpeg, jpegtran, rdjpgcom, wrjpgcom
- deleted jmemXXX.c except for jmemansi.c
- modified jmorecfg.h
- the definition of boolean type, TRUE and FALSE for C++ environment(g++)
- this is not mandatory if you use gcc
- created dummy_systemcalls.c
- dummy systen call functions
- you may be able to use `--specs=nosys.specs` option if available
- without this, I got the following error:
- unlinkr.c:(.text+0x1c): undefined reference to `_unlink'### You may need to modify the following files depending on your system, and performance and memory usage
- dummy_systemcalls.c
- jinclude.h
- jmorecfg.h## Note
I confirmed this code with ZYBO (Zynq, Cortex-A9) in baremetal environment in Xilinx SDK.
This code should work for other microcontrollers.