summaryrefslogtreecommitdiff
path: root/apps/recorder/resize.h
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-09 07:31:27 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-09 07:31:27 +0000
commit91efc162564cd9c04677e2e38550cde21995b06e (patch)
treec927cefc7f12a49396541dbac246dc76ca444c71 /apps/recorder/resize.h
parent67695617a13e9f37f17e3718b03046f6d748a9e1 (diff)
downloadrockbox-91efc162564cd9c04677e2e38550cde21995b06e.tar.gz
rockbox-91efc162564cd9c04677e2e38550cde21995b06e.zip
Split 8-bit-to-native conversion in bmp.c into a function, add support for plugging unscaled output in BMP and JPEG loaders, use output_row_8_native in JPEG decoder when possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/resize.h')
-rw-r--r--apps/recorder/resize.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/recorder/resize.h b/apps/recorder/resize.h
index f7cda15254..2964fcd2a9 100644
--- a/apps/recorder/resize.h
+++ b/apps/recorder/resize.h
@@ -150,19 +150,17 @@ struct scaler_context {
150#endif 150#endif
151 151
152struct custom_format { 152struct custom_format {
153 void (*output_row_8)(uint32_t,void*, struct scaler_context*);
153#if defined(HAVE_LCD_COLOR) 154#if defined(HAVE_LCD_COLOR)
154 void (*output_row[2])(uint32_t,void*,struct scaler_context*); 155 void (*output_row_32[2])(uint32_t,void*, struct scaler_context*);
155#else 156#else
156 void (*output_row)(uint32_t,void*,struct scaler_context*); 157 void (*output_row_32)(uint32_t,void*, struct scaler_context*);
157#endif 158#endif
158 unsigned int (*get_size)(struct bitmap *bm); 159 unsigned int (*get_size)(struct bitmap *bm);
159}; 160};
160 161
161struct rowset; 162struct rowset;
162 163
163void output_row_native(uint32_t row, void * row_in,
164 struct scaler_context *ctx);
165
166extern const struct custom_format format_native; 164extern const struct custom_format format_native;
167 165
168int recalc_dimension(struct dim *dst, struct dim *src); 166int recalc_dimension(struct dim *dst, struct dim *src);