diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-02 03:47:46 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-02 03:47:46 +0000 |
commit | 3d4c68bb060bc926a1da72d6c00b86ebb87857c7 (patch) | |
tree | 4a49d1671ca28faa5e06c1851b6b6de41969e4fc /apps/plugins/lib/read_image.h | |
parent | 75f2629778a55d5b59ecb57e326879964610b063 (diff) | |
download | rockbox-3d4c68bb060bc926a1da72d6c00b86ebb87857c7.tar.gz rockbox-3d4c68bb060bc926a1da72d6c00b86ebb87857c7.zip |
Add read_<image>_fd functions to plugin API, add feature_wrappers.h handling for them, and add read_image.[ch] wrapper for reading image files with automatic type detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20840 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/read_image.h')
-rw-r--r-- | apps/plugins/lib/read_image.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/plugins/lib/read_image.h b/apps/plugins/lib/read_image.h new file mode 100644 index 0000000000..3e236688fe --- /dev/null +++ b/apps/plugins/lib/read_image.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2009 by Andrew Mahone | ||
11 | * | ||
12 | * This is a wrapper for the core jpeg_load.c | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or | ||
15 | * modify it under the terms of the GNU General Public License | ||
16 | * as published by the Free Software Foundation; either version 2 | ||
17 | * of the License, or (at your option) any later version. | ||
18 | * | ||
19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
20 | * KIND, either express or implied. | ||
21 | * | ||
22 | ****************************************************************************/ | ||
23 | |||
24 | #ifndef _LIB_READ_IMAGE_H_ | ||
25 | #define _LIB_READ_IMAGE_H_ | ||
26 | #include <plugin.h> | ||
27 | |||
28 | int read_image_file(const char* filename, struct bitmap *bm, int maxsize, | ||
29 | int format, const struct custom_format *cformat); | ||
30 | int read_image_file_offset(int offset, const char* filename, struct bitmap *bm, | ||
31 | int maxsize, int format, | ||
32 | const struct custom_format *cformat); | ||
33 | #endif | ||
34 | |||