From 55a5bfe7409677a26437651798abbc6d87b56089 Mon Sep 17 00:00:00 2001 From: Roman Artiukhin Date: Mon, 14 Oct 2024 21:33:40 +0300 Subject: 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 --- apps/plugins/imageviewer/jpegp/jpegp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/plugins/imageviewer/jpegp/jpegp.c') 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) } static int load_image(char *filename, struct image_info *info, - unsigned char *buf, ssize_t *buf_size) + unsigned char *buf, ssize_t *buf_size, + int offset, int filesize) { + (void)filesize; int status; struct JPEGD *p_jpg = &jpg; @@ -110,6 +112,10 @@ static int load_image(char *filename, struct image_info *info, { return PLUGIN_ERROR; } + if (offset) + { + POS(offset); + } if (!iv->running_slideshow) { -- cgit v1.2.3