Fix YUV generic C performance function on 24-bit framebuffer
When changed to handle 24-bit framebuffer, some places were missed. Change-Id: Iaa7e09ea723e5b40bd88b2042c93dafaa7311fee
This commit is contained in:
parent
b29d311623
commit
6677f9786b
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ extern void lcd_write_yuv420_lines(fb_data *dst,
|
||||||
/* stride => amount to jump from end of last row to start of next */
|
/* stride => amount to jump from end of last row to start of next */
|
||||||
stride -= width;
|
stride -= width;
|
||||||
|
|
||||||
/* upsampling, YUV->RGB conversion and reduction to RGB565 in one go */
|
/* upsampling, YUV->RGB conversion and reduction to RGB in one go */
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -143,7 +143,7 @@ extern void lcd_write_yuv420_lines(fb_data *dst,
|
||||||
b = clamp(b, 0, 64*256-1);
|
b = clamp(b, 0, 64*256-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
*dst = FB_RGBPACK_LCD(r >> 9, g >> 8, b >> 9);
|
*dst = FB_RGBPACK(r >> 6, g >> 6, b >> 6);
|
||||||
|
|
||||||
#if LCD_WIDTH >= LCD_HEIGHT
|
#if LCD_WIDTH >= LCD_HEIGHT
|
||||||
dst++;
|
dst++;
|
||||||
|
@ -163,7 +163,7 @@ extern void lcd_write_yuv420_lines(fb_data *dst,
|
||||||
b = clamp(b, 0, 64*256-1);
|
b = clamp(b, 0, 64*256-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
*dst = FB_RGBPACK_LCD(r >> 9, g >> 8, b >> 9);
|
*dst = FB_RGBPACK(r >> 6, g >> 6, b >> 6);
|
||||||
|
|
||||||
#if LCD_WIDTH >= LCD_HEIGHT
|
#if LCD_WIDTH >= LCD_HEIGHT
|
||||||
dst++;
|
dst++;
|
||||||
|
|
Loading…
Reference in a new issue