diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-09 07:31:27 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-09 07:31:27 +0000 |
commit | 91efc162564cd9c04677e2e38550cde21995b06e (patch) | |
tree | c927cefc7f12a49396541dbac246dc76ca444c71 /apps/plugins/bench_mem_jpeg.c | |
parent | 67695617a13e9f37f17e3718b03046f6d748a9e1 (diff) | |
download | rockbox-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/plugins/bench_mem_jpeg.c')
-rw-r--r-- | apps/plugins/bench_mem_jpeg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/bench_mem_jpeg.c b/apps/plugins/bench_mem_jpeg.c index 958e5208e8..cd7dea356e 100644 --- a/apps/plugins/bench_mem_jpeg.c +++ b/apps/plugins/bench_mem_jpeg.c | |||
@@ -42,13 +42,14 @@ static void output_row_null(uint32_t row, void * row_in, | |||
42 | } | 42 | } |
43 | 43 | ||
44 | const struct custom_format format_null = { | 44 | const struct custom_format format_null = { |
45 | .output_row_8 = output_row_null, | ||
45 | #ifdef HAVE_LCD_COLOR | 46 | #ifdef HAVE_LCD_COLOR |
46 | .output_row = { | 47 | .output_row_32 = { |
47 | output_row_null, | 48 | output_row_null, |
48 | output_row_null | 49 | output_row_null |
49 | }, | 50 | }, |
50 | #else | 51 | #else |
51 | .output_row = output_row_null, | 52 | .output_row_32 = output_row_null, |
52 | #endif | 53 | #endif |
53 | .get_size = get_size_null | 54 | .get_size = get_size_null |
54 | }; | 55 | }; |