mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 10:32:42 -05:00
imageviewer: Initial support for JPEG progressive images. Add decoder
Added jpeg decoder jpegp.c using RAINBOW lib. Currently enabled only for pictures not supported by old decoder (as old decoder more optimized for low mem targets) Someone TODO: * Old decoder has optimized downscale logic which new decoder doesn't have (it gives big difference in required memory and time for decoding). This logic should be ported/adapted if possible. * Add smooth downscaling. * Grayscale support Change-Id: Ie96bc62848b51cc6a3942f8e069ec6ab02dc1c56
This commit is contained in:
parent
64ad7354b6
commit
b8238f7b20
19 changed files with 599 additions and 22 deletions
|
|
@ -37,20 +37,20 @@
|
|||
|
||||
// For decoders
|
||||
|
||||
extern int GETC();
|
||||
extern int GETC(void);
|
||||
|
||||
// Multibyte helpers
|
||||
extern int GETWbi(); // read word (16-bit) big-endian
|
||||
extern int GETWli(); // little-endian
|
||||
extern int GETDbi(); // read double word (32-bit) big-endian
|
||||
extern int GETDli(); // little-endian
|
||||
extern int GETWbi(void); // read word (16-bit) big-endian
|
||||
extern int GETWli(void); // little-endian
|
||||
extern int GETDbi(void); // read double word (32-bit) big-endian
|
||||
extern int GETDli(void); // little-endian
|
||||
|
||||
// positioning
|
||||
extern void SEEK(int); // move relative to current
|
||||
extern void POS(int); // move absolute position (TIFF)
|
||||
extern int TELL(); // read actual position
|
||||
extern int TELL(void); // read actual position
|
||||
|
||||
|
||||
// For RAINBOW clients to implement outside of Rainbow Library
|
||||
extern void *OPEN(char*);
|
||||
extern void CLOSE();
|
||||
extern void CLOSE(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue