1 | /* |
---|
2 | * cacaview image viewer for libcaca |
---|
3 | * Copyright (c) 2003-2006 Sam Hocevar <sam@zoy.org> |
---|
4 | * All Rights Reserved |
---|
5 | * |
---|
6 | * $Id: cacaview.c 2018 2007-11-18 21:11:13Z pterjan $ |
---|
7 | * |
---|
8 | * This program is free software. It comes without any warranty, to |
---|
9 | * the extent permitted by applicable law. You can redistribute it |
---|
10 | * and/or modify it under the terms of the Do What The Fuck You Want |
---|
11 | * To Public License, Version 2, as published by Sam Hocevar. See |
---|
12 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
13 | */ |
---|
14 | |
---|
15 | #include "config.h" |
---|
16 | #include "common.h" |
---|
17 | |
---|
18 | #if !defined(__KERNEL__) |
---|
19 | # include <stdio.h> |
---|
20 | # include <string.h> |
---|
21 | # include <stdlib.h> |
---|
22 | #endif |
---|
23 | |
---|
24 | #if defined(HAVE_SLEEP) |
---|
25 | # include <windows.h> |
---|
26 | #endif |
---|
27 | |
---|
28 | #include "cucul.h" |
---|
29 | #include "caca.h" |
---|
30 | #include "common-image.h" |
---|
31 | |
---|
32 | /* Local macros */ |
---|
33 | #define MODE_IMAGE 1 |
---|
34 | #define MODE_FILES 2 |
---|
35 | |
---|
36 | #define STATUS_DITHERING 1 |
---|
37 | #define STATUS_ANTIALIASING 2 |
---|
38 | #define STATUS_BACKGROUND 3 |
---|
39 | |
---|
40 | #define ZOOM_FACTOR 1.08f |
---|
41 | #define ZOOM_MAX 50 |
---|
42 | #define GAMMA_FACTOR 1.04f |
---|
43 | #define GAMMA_MAX 100 |
---|
44 | #define GAMMA(g) (((g) < 0) ? 1.0 / gammatab[-(g)] : gammatab[(g)]) |
---|
45 | #define PAD_STEP 0.15 |
---|
46 | |
---|
47 | /* libcucul/libcaca contexts */ |
---|
48 | cucul_canvas_t *cv; caca_display_t *dp; |
---|
49 | |
---|
50 | /* Local functions */ |
---|
51 | static void print_status(void); |
---|
52 | static void print_help(int, int); |
---|
53 | static void set_zoom(int); |
---|
54 | static void set_gamma(int); |
---|
55 | static void draw_checkers(int, int, int, int); |
---|
56 | |
---|
57 | /* Local variables */ |
---|
58 | struct image *im = NULL; |
---|
59 | |
---|
60 | float zoomtab[ZOOM_MAX + 1]; |
---|
61 | float gammatab[GAMMA_MAX + 1]; |
---|
62 | float xfactor = 1.0, yfactor = 1.0, dx = 0.5, dy = 0.5; |
---|
63 | int zoom = 0, g = 0, fullscreen = 0, mode, ww, wh; |
---|
64 | |
---|
65 | int main(int argc, char **argv) |
---|
66 | { |
---|
67 | char const * const * algos = cucul_get_dither_algorithm_list(NULL); |
---|
68 | int dither_algorithm = 0; |
---|
69 | |
---|
70 | int quit = 0, update = 1, help = 0, status = 0; |
---|
71 | int reload = 0; |
---|
72 | |
---|
73 | char **list = NULL; |
---|
74 | int current = 0, items = 0, opts = 1; |
---|
75 | int i; |
---|
76 | |
---|
77 | /* Initialise libcucul */ |
---|
78 | cv = cucul_create_canvas(0, 0); |
---|
79 | if(!cv) |
---|
80 | { |
---|
81 | fprintf(stderr, "%s: unable to initialise libcucul\n", argv[0]); |
---|
82 | return 1; |
---|
83 | } |
---|
84 | |
---|
85 | dp = caca_create_display(cv); |
---|
86 | if(!dp) |
---|
87 | { |
---|
88 | fprintf(stderr, "%s: unable to initialise libcaca\n", argv[0]); |
---|
89 | return 1; |
---|
90 | } |
---|
91 | |
---|
92 | /* Set the window title */ |
---|
93 | caca_set_display_title(dp, "cacaview"); |
---|
94 | |
---|
95 | ww = cucul_get_canvas_width(cv); |
---|
96 | wh = cucul_get_canvas_height(cv); |
---|
97 | |
---|
98 | /* Fill the zoom table */ |
---|
99 | zoomtab[0] = 1.0; |
---|
100 | for(i = 0; i < ZOOM_MAX; i++) |
---|
101 | zoomtab[i + 1] = zoomtab[i] * ZOOM_FACTOR; |
---|
102 | |
---|
103 | /* Fill the gamma table */ |
---|
104 | gammatab[0] = 1.0; |
---|
105 | for(i = 0; i < GAMMA_MAX; i++) |
---|
106 | gammatab[i + 1] = gammatab[i] * GAMMA_FACTOR; |
---|
107 | |
---|
108 | /* Load items into playlist */ |
---|
109 | for(i = 1; i < argc; i++) |
---|
110 | { |
---|
111 | /* Skip options except after `--' */ |
---|
112 | if(opts && argv[i][0] == '-') |
---|
113 | { |
---|
114 | if(argv[i][1] == '-' && argv[i][2] == '\0') |
---|
115 | opts = 0; |
---|
116 | continue; |
---|
117 | } |
---|
118 | |
---|
119 | /* Add argv[i] to the list */ |
---|
120 | if(items) |
---|
121 | list = realloc(list, (items + 1) * sizeof(char *)); |
---|
122 | else |
---|
123 | list = malloc(sizeof(char *)); |
---|
124 | list[items] = argv[i]; |
---|
125 | items++; |
---|
126 | |
---|
127 | reload = 1; |
---|
128 | } |
---|
129 | |
---|
130 | /* Go ! */ |
---|
131 | while(!quit) |
---|
132 | { |
---|
133 | caca_event_t ev; |
---|
134 | unsigned int const event_mask = CACA_EVENT_KEY_PRESS |
---|
135 | | CACA_EVENT_RESIZE |
---|
136 | | CACA_EVENT_MOUSE_PRESS |
---|
137 | | CACA_EVENT_QUIT; |
---|
138 | unsigned int new_status = 0, new_help = 0; |
---|
139 | int event; |
---|
140 | |
---|
141 | if(update) |
---|
142 | event = caca_get_event(dp, event_mask, &ev, 0); |
---|
143 | else |
---|
144 | event = caca_get_event(dp, event_mask, &ev, -1); |
---|
145 | |
---|
146 | while(event) |
---|
147 | { |
---|
148 | if(ev.type & CACA_EVENT_MOUSE_PRESS) |
---|
149 | { |
---|
150 | if(ev.data.mouse.button == 1) |
---|
151 | { |
---|
152 | if(items) current = (current + 1) % items; |
---|
153 | reload = 1; |
---|
154 | } |
---|
155 | else if(ev.data.mouse.button == 2) |
---|
156 | { |
---|
157 | if(items) current = (items + current - 1) % items; |
---|
158 | reload = 1; |
---|
159 | } |
---|
160 | } |
---|
161 | else if(ev.type & CACA_EVENT_KEY_PRESS) switch(ev.data.key.ch) |
---|
162 | { |
---|
163 | case 'n': |
---|
164 | case 'N': |
---|
165 | if(items) current = (current + 1) % items; |
---|
166 | reload = 1; |
---|
167 | break; |
---|
168 | case 'p': |
---|
169 | case 'P': |
---|
170 | if(items) current = (items + current - 1) % items; |
---|
171 | reload = 1; |
---|
172 | break; |
---|
173 | case 'f': |
---|
174 | case 'F': |
---|
175 | fullscreen = ~fullscreen; |
---|
176 | update = 1; |
---|
177 | set_zoom(zoom); |
---|
178 | break; |
---|
179 | #if 0 /* FIXME */ |
---|
180 | case 'b': |
---|
181 | i = 1 + cucul_get_feature(cv, CUCUL_BACKGROUND); |
---|
182 | if(i > CUCUL_BACKGROUND_MAX) i = CUCUL_BACKGROUND_MIN; |
---|
183 | cucul_set_feature(cv, i); |
---|
184 | new_status = STATUS_BACKGROUND; |
---|
185 | update = 1; |
---|
186 | break; |
---|
187 | case 'B': |
---|
188 | i = -1 + cucul_get_feature(cv, CUCUL_BACKGROUND); |
---|
189 | if(i < CUCUL_BACKGROUND_MIN) i = CUCUL_BACKGROUND_MAX; |
---|
190 | cucul_set_feature(cv, i); |
---|
191 | new_status = STATUS_BACKGROUND; |
---|
192 | update = 1; |
---|
193 | break; |
---|
194 | case 'a': |
---|
195 | i = 1 + cucul_get_feature(cv, CUCUL_ANTIALIASING); |
---|
196 | if(i > CUCUL_ANTIALIASING_MAX) i = CUCUL_ANTIALIASING_MIN; |
---|
197 | cucul_set_feature(cv, i); |
---|
198 | new_status = STATUS_ANTIALIASING; |
---|
199 | update = 1; |
---|
200 | break; |
---|
201 | case 'A': |
---|
202 | i = -1 + cucul_get_feature(cv, CUCUL_ANTIALIASING); |
---|
203 | if(i < CUCUL_ANTIALIASING_MIN) i = CUCUL_ANTIALIASING_MAX; |
---|
204 | cucul_set_feature(cv, i); |
---|
205 | new_status = STATUS_ANTIALIASING; |
---|
206 | update = 1; |
---|
207 | break; |
---|
208 | #endif |
---|
209 | case 'd': |
---|
210 | dither_algorithm++; |
---|
211 | if(algos[dither_algorithm * 2] == NULL) |
---|
212 | dither_algorithm = 0; |
---|
213 | cucul_set_dither_algorithm(im->dither, |
---|
214 | algos[dither_algorithm * 2]); |
---|
215 | new_status = STATUS_DITHERING; |
---|
216 | update = 1; |
---|
217 | break; |
---|
218 | case 'D': |
---|
219 | dither_algorithm--; |
---|
220 | if(dither_algorithm < 0) |
---|
221 | while(algos[dither_algorithm * 2 + 2] != NULL) |
---|
222 | dither_algorithm++; |
---|
223 | cucul_set_dither_algorithm(im->dither, |
---|
224 | algos[dither_algorithm * 2]); |
---|
225 | new_status = STATUS_DITHERING; |
---|
226 | update = 1; |
---|
227 | break; |
---|
228 | case '+': |
---|
229 | update = 1; |
---|
230 | set_zoom(zoom + 1); |
---|
231 | break; |
---|
232 | case '-': |
---|
233 | update = 1; |
---|
234 | set_zoom(zoom - 1); |
---|
235 | break; |
---|
236 | case 'G': |
---|
237 | update = 1; |
---|
238 | set_gamma(g + 1); |
---|
239 | break; |
---|
240 | case 'g': |
---|
241 | update = 1; |
---|
242 | set_gamma(g - 1); |
---|
243 | break; |
---|
244 | case 'x': |
---|
245 | case 'X': |
---|
246 | update = 1; |
---|
247 | set_zoom(0); |
---|
248 | set_gamma(0); |
---|
249 | break; |
---|
250 | case 'k': |
---|
251 | case 'K': |
---|
252 | case CACA_KEY_UP: |
---|
253 | if(yfactor > 1.0) dy -= PAD_STEP / yfactor; |
---|
254 | if(dy < 0.0) dy = 0.0; |
---|
255 | update = 1; |
---|
256 | break; |
---|
257 | case 'j': |
---|
258 | case 'J': |
---|
259 | case CACA_KEY_DOWN: |
---|
260 | if(yfactor > 1.0) dy += PAD_STEP / yfactor; |
---|
261 | if(dy > 1.0) dy = 1.0; |
---|
262 | update = 1; |
---|
263 | break; |
---|
264 | case 'h': |
---|
265 | case 'H': |
---|
266 | case CACA_KEY_LEFT: |
---|
267 | if(xfactor > 1.0) dx -= PAD_STEP / xfactor; |
---|
268 | if(dx < 0.0) dx = 0.0; |
---|
269 | update = 1; |
---|
270 | break; |
---|
271 | case 'l': |
---|
272 | case 'L': |
---|
273 | case CACA_KEY_RIGHT: |
---|
274 | if(xfactor > 1.0) dx += PAD_STEP / xfactor; |
---|
275 | if(dx > 1.0) dx = 1.0; |
---|
276 | update = 1; |
---|
277 | break; |
---|
278 | case '?': |
---|
279 | new_help = !help; |
---|
280 | update = 1; |
---|
281 | break; |
---|
282 | case 'q': |
---|
283 | case 'Q': |
---|
284 | quit = 1; |
---|
285 | break; |
---|
286 | } |
---|
287 | else if(ev.type == CACA_EVENT_RESIZE) |
---|
288 | { |
---|
289 | caca_refresh_display(dp); |
---|
290 | ww = ev.data.resize.w; |
---|
291 | wh = ev.data.resize.h; |
---|
292 | update = 1; |
---|
293 | set_zoom(zoom); |
---|
294 | } |
---|
295 | else if(ev.type & CACA_EVENT_QUIT) |
---|
296 | quit = 1; |
---|
297 | |
---|
298 | if(status || new_status) |
---|
299 | status = new_status; |
---|
300 | |
---|
301 | if(help || new_help) |
---|
302 | help = new_help; |
---|
303 | |
---|
304 | event = caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, 0); |
---|
305 | } |
---|
306 | |
---|
307 | if(items && reload) |
---|
308 | { |
---|
309 | char *buffer; |
---|
310 | int len = strlen(" Loading `%s'... ") + strlen(list[current]); |
---|
311 | |
---|
312 | if(len < ww + 1) |
---|
313 | len = ww + 1; |
---|
314 | |
---|
315 | buffer = malloc(len); |
---|
316 | |
---|
317 | sprintf(buffer, " Loading `%s'... ", list[current]); |
---|
318 | buffer[ww] = '\0'; |
---|
319 | cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE); |
---|
320 | cucul_put_str(cv, (ww - strlen(buffer)) / 2, wh / 2, buffer); |
---|
321 | caca_refresh_display(dp); |
---|
322 | ww = cucul_get_canvas_width(cv); |
---|
323 | wh = cucul_get_canvas_height(cv); |
---|
324 | |
---|
325 | if(im) |
---|
326 | unload_image(im); |
---|
327 | im = load_image(list[current]); |
---|
328 | reload = 0; |
---|
329 | |
---|
330 | /* Reset image-specific runtime variables */ |
---|
331 | dx = dy = 0.5; |
---|
332 | update = 1; |
---|
333 | set_zoom(0); |
---|
334 | set_gamma(0); |
---|
335 | |
---|
336 | free(buffer); |
---|
337 | } |
---|
338 | |
---|
339 | cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLACK); |
---|
340 | cucul_clear_canvas(cv); |
---|
341 | |
---|
342 | if(!items) |
---|
343 | { |
---|
344 | cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE); |
---|
345 | cucul_printf(cv, ww / 2 - 5, wh / 2, " No image. "); |
---|
346 | } |
---|
347 | else if(!im) |
---|
348 | { |
---|
349 | #if defined(USE_IMLIB2) |
---|
350 | # define ERROR_STRING " Error loading `%s'. " |
---|
351 | #else |
---|
352 | # define ERROR_STRING " Error loading `%s'. Only BMP is supported. " |
---|
353 | #endif |
---|
354 | char *buffer; |
---|
355 | int len = strlen(ERROR_STRING) + strlen(list[current]); |
---|
356 | |
---|
357 | if(len < ww + 1) |
---|
358 | len = ww + 1; |
---|
359 | |
---|
360 | buffer = malloc(len); |
---|
361 | |
---|
362 | sprintf(buffer, ERROR_STRING, list[current]); |
---|
363 | buffer[ww] = '\0'; |
---|
364 | cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE); |
---|
365 | cucul_put_str(cv, (ww - strlen(buffer)) / 2, wh / 2, buffer); |
---|
366 | free(buffer); |
---|
367 | } |
---|
368 | else |
---|
369 | { |
---|
370 | float xdelta, ydelta; |
---|
371 | int y, height; |
---|
372 | |
---|
373 | y = fullscreen ? 0 : 1; |
---|
374 | height = fullscreen ? wh : wh - 3; |
---|
375 | |
---|
376 | xdelta = (xfactor > 1.0) ? dx : 0.5; |
---|
377 | ydelta = (yfactor > 1.0) ? dy : 0.5; |
---|
378 | |
---|
379 | draw_checkers(ww * (1.0 - xfactor) / 2, |
---|
380 | y + height * (1.0 - yfactor) / 2, |
---|
381 | ww * xfactor, height * yfactor); |
---|
382 | |
---|
383 | cucul_dither_bitmap(cv, ww * (1.0 - xfactor) * xdelta, |
---|
384 | y + height * (1.0 - yfactor) * ydelta, |
---|
385 | ww * xfactor + 1, height * yfactor + 1, |
---|
386 | im->dither, im->pixels); |
---|
387 | } |
---|
388 | |
---|
389 | if(!fullscreen) |
---|
390 | { |
---|
391 | print_status(); |
---|
392 | |
---|
393 | cucul_set_color_ansi(cv, CUCUL_LIGHTGRAY, CUCUL_BLACK); |
---|
394 | switch(status) |
---|
395 | { |
---|
396 | case STATUS_DITHERING: |
---|
397 | cucul_printf(cv, 0, wh - 1, "Dithering: %s", |
---|
398 | cucul_get_dither_algorithm(im->dither)); |
---|
399 | break; |
---|
400 | #if 0 /* FIXME */ |
---|
401 | case STATUS_ANTIALIASING: |
---|
402 | cucul_printf(cv, 0, wh - 1, "Antialiasing: %s", |
---|
403 | cucul_get_feature_name(cucul_get_feature(cv, CUCUL_ANTIALIASING))); |
---|
404 | break; |
---|
405 | case STATUS_BACKGROUND: |
---|
406 | cucul_printf(cv, 0, wh - 1, "Background: %s", |
---|
407 | cucul_get_feature_name(cucul_get_feature(cv, CUCUL_BACKGROUND))); |
---|
408 | break; |
---|
409 | #endif |
---|
410 | } |
---|
411 | } |
---|
412 | |
---|
413 | if(help) |
---|
414 | { |
---|
415 | print_help(ww - 26, 2); |
---|
416 | } |
---|
417 | |
---|
418 | caca_refresh_display(dp); |
---|
419 | update = 0; |
---|
420 | } |
---|
421 | |
---|
422 | /* Clean up */ |
---|
423 | if(im) |
---|
424 | unload_image(im); |
---|
425 | caca_free_display(dp); |
---|
426 | cucul_free_canvas(cv); |
---|
427 | |
---|
428 | return 0; |
---|
429 | } |
---|
430 | |
---|
431 | static void print_status(void) |
---|
432 | { |
---|
433 | cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE); |
---|
434 | cucul_draw_line(cv, 0, 0, ww - 1, 0, ' '); |
---|
435 | cucul_draw_line(cv, 0, wh - 2, ww - 1, wh - 2, '-'); |
---|
436 | cucul_put_str(cv, 0, 0, "q:Quit np:Next/Prev +-x:Zoom gG:Gamma " |
---|
437 | "hjkl:Move d:Dither a:Antialias"); |
---|
438 | cucul_put_str(cv, ww - strlen("?:Help"), 0, "?:Help"); |
---|
439 | cucul_printf(cv, 3, wh - 2, "cacaview %s", VERSION); |
---|
440 | cucul_printf(cv, ww - 30, wh - 2, "(gamma: %#.3g)", GAMMA(g)); |
---|
441 | cucul_printf(cv, ww - 14, wh - 2, "(zoom: %s%i)", zoom > 0 ? "+" : "", zoom); |
---|
442 | |
---|
443 | cucul_set_color_ansi(cv, CUCUL_LIGHTGRAY, CUCUL_BLACK); |
---|
444 | cucul_draw_line(cv, 0, wh - 1, ww - 1, wh - 1, ' '); |
---|
445 | } |
---|
446 | |
---|
447 | static void print_help(int x, int y) |
---|
448 | { |
---|
449 | static char const *help[] = |
---|
450 | { |
---|
451 | " +: zoom in ", |
---|
452 | " -: zoom out ", |
---|
453 | " g: decrease gamma ", |
---|
454 | " G: increase gamma ", |
---|
455 | " x: reset zoom and gamma ", |
---|
456 | " ----------------------- ", |
---|
457 | " hjkl: move view ", |
---|
458 | " arrows: move view ", |
---|
459 | " ----------------------- ", |
---|
460 | " a: antialiasing method ", |
---|
461 | " d: dithering method ", |
---|
462 | " b: background mode ", |
---|
463 | " ----------------------- ", |
---|
464 | " ?: help ", |
---|
465 | " q: quit ", |
---|
466 | NULL |
---|
467 | }; |
---|
468 | |
---|
469 | int i; |
---|
470 | |
---|
471 | cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE); |
---|
472 | |
---|
473 | for(i = 0; help[i]; i++) |
---|
474 | cucul_put_str(cv, x, y + i, help[i]); |
---|
475 | } |
---|
476 | |
---|
477 | static void set_zoom(int new_zoom) |
---|
478 | { |
---|
479 | int height; |
---|
480 | |
---|
481 | if(!im) |
---|
482 | return; |
---|
483 | |
---|
484 | zoom = new_zoom; |
---|
485 | |
---|
486 | if(zoom > ZOOM_MAX) zoom = ZOOM_MAX; |
---|
487 | if(zoom < -ZOOM_MAX) zoom = -ZOOM_MAX; |
---|
488 | |
---|
489 | ww = cucul_get_canvas_width(cv); |
---|
490 | height = fullscreen ? wh : wh - 3; |
---|
491 | |
---|
492 | xfactor = (zoom < 0) ? 1.0 / zoomtab[-zoom] : zoomtab[zoom]; |
---|
493 | yfactor = xfactor * ww / height * im->h / im->w |
---|
494 | * cucul_get_canvas_height(cv) / cucul_get_canvas_width(cv) |
---|
495 | * caca_get_display_width(dp) / caca_get_display_height(dp); |
---|
496 | |
---|
497 | if(yfactor > xfactor) |
---|
498 | { |
---|
499 | float tmp = xfactor; |
---|
500 | xfactor = tmp * tmp / yfactor; |
---|
501 | yfactor = tmp; |
---|
502 | } |
---|
503 | } |
---|
504 | |
---|
505 | static void set_gamma(int new_gamma) |
---|
506 | { |
---|
507 | if(!im) |
---|
508 | return; |
---|
509 | |
---|
510 | g = new_gamma; |
---|
511 | |
---|
512 | if(g > GAMMA_MAX) g = GAMMA_MAX; |
---|
513 | if(g < -GAMMA_MAX) g = -GAMMA_MAX; |
---|
514 | |
---|
515 | cucul_set_dither_gamma(im->dither, |
---|
516 | (g < 0) ? 1.0 / gammatab[-g] : gammatab[g]); |
---|
517 | } |
---|
518 | |
---|
519 | static void draw_checkers(int x, int y, int w, int h) |
---|
520 | { |
---|
521 | int xn, yn; |
---|
522 | |
---|
523 | if(x + w > (int)cucul_get_canvas_width(cv)) |
---|
524 | w = cucul_get_canvas_width(cv) - x; |
---|
525 | if(y + h > (int)cucul_get_canvas_height(cv)) |
---|
526 | h = cucul_get_canvas_height(cv) - y; |
---|
527 | |
---|
528 | for(yn = y > 0 ? y : 0; yn < y + h; yn++) |
---|
529 | for(xn = x > 0 ? x : 0; xn < x + w; xn++) |
---|
530 | { |
---|
531 | if((((xn - x) / 5) ^ ((yn - y) / 3)) & 1) |
---|
532 | cucul_set_color_ansi(cv, CUCUL_LIGHTGRAY, CUCUL_DARKGRAY); |
---|
533 | else |
---|
534 | cucul_set_color_ansi(cv, CUCUL_DARKGRAY, CUCUL_LIGHTGRAY); |
---|
535 | cucul_put_char(cv, xn, yn, ' '); |
---|
536 | } |
---|
537 | } |
---|
538 | |
---|