diff options
Diffstat (limited to 'apps/recorder/resize.h')
-rw-r--r-- | apps/recorder/resize.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/apps/recorder/resize.h b/apps/recorder/resize.h index 8a39db503a..451830742e 100644 --- a/apps/recorder/resize.h +++ b/apps/recorder/resize.h | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include "config.h" | 24 | #include "config.h" |
25 | #include "lcd.h" | 25 | #include "lcd.h" |
26 | #include "inttypes.h" | ||
26 | 27 | ||
27 | /**************************************************************** | 28 | /**************************************************************** |
28 | * resize_on_load() | 29 | * resize_on_load() |
@@ -45,16 +46,30 @@ | |||
45 | 46 | ||
46 | struct img_part { | 47 | struct img_part { |
47 | int len; | 48 | int len; |
49 | #if !defined(HAVE_LCD_COLOR) && \ | ||
50 | (LCD_DEPTH > 1 || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)) | ||
51 | uint8_t *buf; | ||
52 | #else | ||
48 | struct uint8_rgb* buf; | 53 | struct uint8_rgb* buf; |
54 | #endif | ||
49 | }; | 55 | }; |
50 | 56 | ||
51 | int resize_on_load(struct bitmap *bm, bool dither, | ||
52 | struct dim *src, | ||
53 | struct rowset *tmp_row, bool remote, | ||
54 | #ifdef HAVE_LCD_COLOR | 57 | #ifdef HAVE_LCD_COLOR |
55 | unsigned char *buf, unsigned int len, | 58 | /* intermediate type used by the scaler for color output. greyscale version |
59 | uses uint32_t | ||
60 | */ | ||
61 | struct uint32_rgb { | ||
62 | uint32_t r; | ||
63 | uint32_t g; | ||
64 | uint32_t b; | ||
65 | }; | ||
56 | #endif | 66 | #endif |
67 | |||
68 | int recalc_dimension(struct dim *dst, struct dim *src); | ||
69 | |||
70 | int resize_on_load(struct bitmap *bm, bool dither, | ||
71 | struct dim *src, struct rowset *tmp_row, | ||
72 | unsigned char *buf, unsigned int len, | ||
57 | struct img_part* (*store_part)(void *args), | 73 | struct img_part* (*store_part)(void *args), |
58 | bool (*skip_lines)(void *args, unsigned int lines), | ||
59 | void *args); | 74 | void *args); |
60 | #endif /* _RESIZE_H_ */ | 75 | #endif /* _RESIZE_H_ */ |