summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/jpeg/jpeg.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/apps/plugins/jpeg/jpeg.c b/apps/plugins/jpeg/jpeg.c
index d70fca809f..9c580b7f34 100644
--- a/apps/plugins/jpeg/jpeg.c
+++ b/apps/plugins/jpeg/jpeg.c
@@ -76,7 +76,8 @@ GREY_INFO_STRUCT
76 76
77/******************************* Globals ***********************************/ 77/******************************* Globals ***********************************/
78 78
79const struct plugin_api* rb; 79const struct plugin_api* rb; /* Exported to other .c files in this plugin */
80
80MEM_FUNCTION_WRAPPERS(rb); 81MEM_FUNCTION_WRAPPERS(rb);
81 82
82static int slideshow_enabled = false; /* run slideshow */ 83static int slideshow_enabled = false; /* run slideshow */
@@ -133,7 +134,7 @@ static struct configdata jpeg_config[] =
133}; 134};
134 135
135#if LCD_DEPTH > 1 136#if LCD_DEPTH > 1
136fb_data* old_backdrop; 137static fb_data* old_backdrop;
137#endif 138#endif
138 139
139/**************** begin Application ********************/ 140/**************** begin Application ********************/
@@ -158,31 +159,31 @@ struct t_disp
158/************************* Globals ***************************/ 159/************************* Globals ***************************/
159 160
160/* decompressed image in the possible sizes (1,2,4,8), wasting the other */ 161/* decompressed image in the possible sizes (1,2,4,8), wasting the other */
161struct t_disp disp[9]; 162static struct t_disp disp[9];
162 163
163/* my memory pool (from the mp3 buffer) */ 164/* my memory pool (from the mp3 buffer) */
164char print[32]; /* use a common snprintf() buffer */ 165static char print[32]; /* use a common snprintf() buffer */
165unsigned char* buf; /* up to here currently used by image(s) */ 166static unsigned char* buf; /* up to here currently used by image(s) */
166 167
167/* the remaining free part of the buffer for compressed+uncompressed images */ 168/* the remaining free part of the buffer for compressed+uncompressed images */
168unsigned char* buf_images; 169static unsigned char* buf_images;
169 170
170ssize_t buf_size, buf_images_size; 171static ssize_t buf_size, buf_images_size;
171/* the root of the images, hereafter are decompresed ones */ 172/* the root of the images, hereafter are decompresed ones */
172unsigned char* buf_root; 173static unsigned char* buf_root;
173int root_size; 174static int root_size;
174 175
175int ds, ds_min, ds_max; /* downscaling and limits */ 176static int ds, ds_min, ds_max; /* downscaling and limits */
176static struct jpeg jpg; /* too large for stack */ 177static struct jpeg jpg; /* too large for stack */
177 178
178static struct tree_context *tree; 179static struct tree_context *tree;
179 180
180/* the current full file name */ 181/* the current full file name */
181static char np_file[MAX_PATH]; 182static char np_file[MAX_PATH];
182int curfile = 0, direction = DIR_NONE, entries = 0; 183static int curfile = 0, direction = DIR_NONE, entries = 0;
183 184
184/* list of the jpeg files */ 185/* list of the jpeg files */
185char **file_pt; 186static char **file_pt;
186/* are we using the plugin buffer or the audio buffer? */ 187/* are we using the plugin buffer or the audio buffer? */
187bool plug_buf = false; 188bool plug_buf = false;
188 189