forked from thp/apkenv
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved png loader to imagelib and support jpeg loading, too
support multi-touch emulation on pandora (left shoulder = second finger) fixed makefile fixed modules (added request_exit functions)
- Loading branch information
crowriot
committed
Jan 22, 2013
1 parent
ce1bf3b
commit 0b4e573
Showing
20 changed files
with
353 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,36 @@ | |||
#ifndef IMAGELIB_H | |||
#define IMAGELIB_h | |||
|
|||
/// image lib, (c) crow_riot 2013 | |||
|
|||
|
|||
typedef struct { | |||
unsigned char* data; | |||
int width; | |||
int height; | |||
int bpp; | |||
} image_t; | |||
|
|||
|
|||
typedef struct { | |||
/// flip horizontally | |||
int swapy; | |||
/// convert image data to rgba | |||
int forcergba; | |||
/// swap red and blue channels (bgr<>rgb) | |||
int swaprb; | |||
/// the alpha value to be used when image conversion takes place | |||
/// and the source file does not provide an alpha | |||
unsigned char alpha; | |||
} imageloadersettings_t; | |||
|
|||
|
|||
/// load png from disk | |||
image_t* loadpng(const char *filename, const imageloadersettings_t settings); | |||
|
|||
/// load jpeg from disk | |||
/// please not that only rgb jpeg images are suported by the loader, no color indexed ones! | |||
image_t* loadjpeg(const char *filename, const imageloadersettings_t settings); | |||
|
|||
|
|||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.