summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-11-10 20:29:00 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-11-10 20:30:16 +0100
commit6677f9786b9031902bd350fcd2b2fffc33d3824e (patch)
tree879a85a48ccc21c832b7c7f7fb330ada4cd746d8
parentb29d31162357ee24dd6f38fd58309e54188fe396 (diff)
downloadrockbox-6677f9786b9031902bd350fcd2b2fffc33d3824e.tar.gz
rockbox-6677f9786b9031902bd350fcd2b2fffc33d3824e.zip
Fix YUV generic C performance function on 24-bit framebuffer
When changed to handle 24-bit framebuffer, some places were missed. Change-Id: Iaa7e09ea723e5b40bd88b2042c93dafaa7311fee
-rw-r--r--firmware/asm/lcd-as-memframe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/asm/lcd-as-memframe.c b/firmware/asm/lcd-as-memframe.c
index 032022d7ec..3734c7d13a 100644
--- a/firmware/asm/lcd-as-memframe.c
+++ b/firmware/asm/lcd-as-memframe.c
@@ -53,7 +53,7 @@ extern void lcd_write_yuv420_lines(fb_data *dst,
53 /* stride => amount to jump from end of last row to start of next */ 53 /* stride => amount to jump from end of last row to start of next */
54 stride -= width; 54 stride -= width;
55 55
56 /* upsampling, YUV->RGB conversion and reduction to RGB565 in one go */ 56 /* upsampling, YUV->RGB conversion and reduction to RGB in one go */
57 57
58 do 58 do
59 { 59 {
@@ -143,7 +143,7 @@ extern void lcd_write_yuv420_lines(fb_data *dst,
143 b = clamp(b, 0, 64*256-1); 143 b = clamp(b, 0, 64*256-1);
144 } 144 }
145 145
146 *dst = FB_RGBPACK_LCD(r >> 9, g >> 8, b >> 9); 146 *dst = FB_RGBPACK(r >> 6, g >> 6, b >> 6);
147 147
148#if LCD_WIDTH >= LCD_HEIGHT 148#if LCD_WIDTH >= LCD_HEIGHT
149 dst++; 149 dst++;
@@ -163,7 +163,7 @@ extern void lcd_write_yuv420_lines(fb_data *dst,
163 b = clamp(b, 0, 64*256-1); 163 b = clamp(b, 0, 64*256-1);
164 } 164 }
165 165
166 *dst = FB_RGBPACK_LCD(r >> 9, g >> 8, b >> 9); 166 *dst = FB_RGBPACK(r >> 6, g >> 6, b >> 6);
167 167
168#if LCD_WIDTH >= LCD_HEIGHT 168#if LCD_WIDTH >= LCD_HEIGHT
169 dst++; 169 dst++;