forked from len0rd/rockbox
Don't perform YUV->RGB conversion before row output for unscaled loads of greyscale JPEG, as store_row_jpeg already does this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21174 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
840ab7c724
commit
2bedde17b6
1 changed files with 15 additions and 12 deletions
|
|
@ -2144,6 +2144,8 @@ int read_jpeg_fd(int fd,
|
|||
{
|
||||
part = store_row_jpeg(p_jpeg);
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
if (p_jpeg->blocks > 1)
|
||||
{
|
||||
struct uint8_rgb *qp = part->buf;
|
||||
struct uint8_rgb *end = qp + bm->width;
|
||||
uint8_t y, u, v;
|
||||
|
|
@ -2158,6 +2160,7 @@ int read_jpeg_fd(int fd,
|
|||
qp->blue = b;
|
||||
qp->green = g;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
output_row_8(row, part->buf, &ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue