diff options
Diffstat (limited to 'apps/recorder/resize.h')
-rw-r--r-- | apps/recorder/resize.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/recorder/resize.h b/apps/recorder/resize.h index de9e8a9ab0..f7cda15254 100644 --- a/apps/recorder/resize.h +++ b/apps/recorder/resize.h | |||
@@ -143,8 +143,18 @@ struct scaler_context { | |||
143 | bool (*h_scaler)(void*,struct scaler_context*, bool); | 143 | bool (*h_scaler)(void*,struct scaler_context*, bool); |
144 | }; | 144 | }; |
145 | 145 | ||
146 | #if defined(HAVE_LCD_COLOR) && (defined(HAVE_JPEG) || defined(PLUGIN)) | ||
147 | #define IF_PIX_FMT(...) __VA_ARGS__ | ||
148 | #else | ||
149 | #define IF_PIX_FMT(...) | ||
150 | #endif | ||
151 | |||
146 | struct custom_format { | 152 | struct custom_format { |
153 | #if defined(HAVE_LCD_COLOR) | ||
154 | void (*output_row[2])(uint32_t,void*,struct scaler_context*); | ||
155 | #else | ||
147 | void (*output_row)(uint32_t,void*,struct scaler_context*); | 156 | void (*output_row)(uint32_t,void*,struct scaler_context*); |
157 | #endif | ||
148 | unsigned int (*get_size)(struct bitmap *bm); | 158 | unsigned int (*get_size)(struct bitmap *bm); |
149 | }; | 159 | }; |
150 | 160 | ||
@@ -161,6 +171,7 @@ int resize_on_load(struct bitmap *bm, bool dither, | |||
161 | struct dim *src, struct rowset *tmp_row, | 171 | struct dim *src, struct rowset *tmp_row, |
162 | unsigned char *buf, unsigned int len, | 172 | unsigned char *buf, unsigned int len, |
163 | const struct custom_format *cformat, | 173 | const struct custom_format *cformat, |
174 | IF_PIX_FMT(int format_index,) | ||
164 | struct img_part* (*store_part)(void *args), | 175 | struct img_part* (*store_part)(void *args), |
165 | void *args); | 176 | void *args); |
166 | 177 | ||