diff options
-rw-r--r-- | apps/plugins/jpeg/jpeg.c | 25 |
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 | ||
79 | const struct plugin_api* rb; | 79 | const struct plugin_api* rb; /* Exported to other .c files in this plugin */ |
80 | |||
80 | MEM_FUNCTION_WRAPPERS(rb); | 81 | MEM_FUNCTION_WRAPPERS(rb); |
81 | 82 | ||
82 | static int slideshow_enabled = false; /* run slideshow */ | 83 | static 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 |
136 | fb_data* old_backdrop; | 137 | static 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 */ |
161 | struct t_disp disp[9]; | 162 | static struct t_disp disp[9]; |
162 | 163 | ||
163 | /* my memory pool (from the mp3 buffer) */ | 164 | /* my memory pool (from the mp3 buffer) */ |
164 | char print[32]; /* use a common snprintf() buffer */ | 165 | static char print[32]; /* use a common snprintf() buffer */ |
165 | unsigned char* buf; /* up to here currently used by image(s) */ | 166 | static 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 */ |
168 | unsigned char* buf_images; | 169 | static unsigned char* buf_images; |
169 | 170 | ||
170 | ssize_t buf_size, buf_images_size; | 171 | static 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 */ |
172 | unsigned char* buf_root; | 173 | static unsigned char* buf_root; |
173 | int root_size; | 174 | static int root_size; |
174 | 175 | ||
175 | int ds, ds_min, ds_max; /* downscaling and limits */ | 176 | static int ds, ds_min, ds_max; /* downscaling and limits */ |
176 | static struct jpeg jpg; /* too large for stack */ | 177 | static struct jpeg jpg; /* too large for stack */ |
177 | 178 | ||
178 | static struct tree_context *tree; | 179 | static struct tree_context *tree; |
179 | 180 | ||
180 | /* the current full file name */ | 181 | /* the current full file name */ |
181 | static char np_file[MAX_PATH]; | 182 | static char np_file[MAX_PATH]; |
182 | int curfile = 0, direction = DIR_NONE, entries = 0; | 183 | static int curfile = 0, direction = DIR_NONE, entries = 0; |
183 | 184 | ||
184 | /* list of the jpeg files */ | 185 | /* list of the jpeg files */ |
185 | char **file_pt; | 186 | static 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? */ |
187 | bool plug_buf = false; | 188 | bool plug_buf = false; |
188 | 189 | ||