summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/jpegp
diff options
context:
space:
mode:
authorRoman Artiukhin <bahusdrive@gmail.com>2024-10-14 21:33:40 +0300
committerChristian Soffke <christian.soffke@gmail.com>2024-10-28 12:46:51 -0400
commit55a5bfe7409677a26437651798abbc6d87b56089 (patch)
tree7ab7d96f52ee15257b174e75f15abae1f09b74cf /apps/plugins/imageviewer/jpegp
parentc1bcebd9986b1e2120fd05ead67754d444dae7d3 (diff)
downloadrockbox-55a5bfe7409677a26437651798abbc6d87b56089.tar.gz
rockbox-55a5bfe7409677a26437651798abbc6d87b56089.zip
View Album Art from WPS context menu
Add ability to imageviewer to view current track embedded/folder album art Add "View Album Art" WPS context menu item Change-Id: I49caebd38e5e3e2910d418bbeaa5e51da0e6bd93
Diffstat (limited to 'apps/plugins/imageviewer/jpegp')
-rw-r--r--apps/plugins/imageviewer/jpegp/jpegp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/imageviewer/jpegp/jpegp.c b/apps/plugins/imageviewer/jpegp/jpegp.c
index bb7be314f1..88edc7e8f3 100644
--- a/apps/plugins/imageviewer/jpegp/jpegp.c
+++ b/apps/plugins/imageviewer/jpegp/jpegp.c
@@ -96,8 +96,10 @@ static void scaled_dequantization_and_idct(void)
96} 96}
97 97
98static int load_image(char *filename, struct image_info *info, 98static int load_image(char *filename, struct image_info *info,
99 unsigned char *buf, ssize_t *buf_size) 99 unsigned char *buf, ssize_t *buf_size,
100 int offset, int filesize)
100{ 101{
102 (void)filesize;
101 int status; 103 int status;
102 struct JPEGD *p_jpg = &jpg; 104 struct JPEGD *p_jpg = &jpg;
103 105
@@ -110,6 +112,10 @@ static int load_image(char *filename, struct image_info *info,
110 { 112 {
111 return PLUGIN_ERROR; 113 return PLUGIN_ERROR;
112 } 114 }
115 if (offset)
116 {
117 POS(offset);
118 }
113 119
114 if (!iv->running_slideshow) 120 if (!iv->running_slideshow)
115 { 121 {