forked from len0rd/rockbox
Don't build 16-point IDCT on greyscale targets, since it's only used for chroma components.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20887 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
59e70b50d8
commit
74e4d17910
1 changed files with 4 additions and 0 deletions
|
|
@ -578,6 +578,7 @@ static void idct8h(int *ws, unsigned char *out, int rows, int rowstep)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LCD_COLOR
|
||||||
/* vertical-pass 16-point IDCT */
|
/* vertical-pass 16-point IDCT */
|
||||||
static void idct16v(int *ws, int cols)
|
static void idct16v(int *ws, int cols)
|
||||||
{
|
{
|
||||||
|
|
@ -808,6 +809,7 @@ static void idct16h(int *ws, unsigned char *out, int rows, int rowstep)
|
||||||
DS_OUT));
|
DS_OUT));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct idct_entry {
|
struct idct_entry {
|
||||||
int v_scale;
|
int v_scale;
|
||||||
|
|
@ -821,7 +823,9 @@ struct idct_entry idct_tbl[] = {
|
||||||
{ PASS1_BITS, CONST_BITS, idct2v, idct2h },
|
{ PASS1_BITS, CONST_BITS, idct2v, idct2h },
|
||||||
{ 0, 0, idct4v, idct4h },
|
{ 0, 0, idct4v, idct4h },
|
||||||
{ 0, 0, idct8v, idct8h },
|
{ 0, 0, idct8v, idct8h },
|
||||||
|
#ifdef HAVE_LCD_COLOR
|
||||||
{ 0, 0, idct16v, idct16h },
|
{ 0, 0, idct16v, idct16h },
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* JPEG decoder implementation */
|
/* JPEG decoder implementation */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue