diff options
-rw-r--r-- | apps/plugins/lib/read_image.c | 15 | ||||
-rw-r--r-- | apps/plugins/lib/read_image.h | 3 |
2 files changed, 0 insertions, 18 deletions
diff --git a/apps/plugins/lib/read_image.c b/apps/plugins/lib/read_image.c index 5b07882764..edc4bfb981 100644 --- a/apps/plugins/lib/read_image.c +++ b/apps/plugins/lib/read_image.c | |||
@@ -35,18 +35,3 @@ int read_image_file(const char* filename, struct bitmap *bm, int maxsize, | |||
35 | return scaled_read_bmp_file(filename, bm, maxsize, format, cformat); | 35 | return scaled_read_bmp_file(filename, bm, maxsize, format, cformat); |
36 | } | 36 | } |
37 | 37 | ||
38 | int read_image_file_offset(int offset, const char* filename, struct bitmap *bm, | ||
39 | int maxsize, int format, | ||
40 | const struct custom_format *cformat) | ||
41 | { | ||
42 | int fd = rb->open(filename, O_RDONLY); | ||
43 | if (fd < 0) | ||
44 | return fd; | ||
45 | if (offset != rb->lseek(fd, offset, SEEK_SET)) | ||
46 | return -1; | ||
47 | int namelen = rb->strlen(filename); | ||
48 | if (rb->strcmp(filename + namelen - 4, ".bmp")) | ||
49 | return read_jpeg_fd(fd, bm, maxsize, format, cformat); | ||
50 | else | ||
51 | return scaled_read_bmp_fd(fd, bm, maxsize, format, cformat); | ||
52 | } | ||
diff --git a/apps/plugins/lib/read_image.h b/apps/plugins/lib/read_image.h index 3e236688fe..158220dd8f 100644 --- a/apps/plugins/lib/read_image.h +++ b/apps/plugins/lib/read_image.h | |||
@@ -27,8 +27,5 @@ | |||
27 | 27 | ||
28 | int read_image_file(const char* filename, struct bitmap *bm, int maxsize, | 28 | int read_image_file(const char* filename, struct bitmap *bm, int maxsize, |
29 | int format, const struct custom_format *cformat); | 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 | 30 | #endif |
34 | 31 | ||