mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
Undo the delta on ARM but making the loop variables signed as before r21205. GCC is weird...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21206 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1d6df54df2
commit
d5842005c0
1 changed files with 3 additions and 4 deletions
|
|
@ -1506,8 +1506,7 @@ INLINE void fix_huff_tables(struct jpeg *p_jpeg)
|
||||||
*/
|
*/
|
||||||
INLINE void fix_quant_tables(struct jpeg *p_jpeg)
|
INLINE void fix_quant_tables(struct jpeg *p_jpeg)
|
||||||
{
|
{
|
||||||
int shift, i, a;
|
int shift, i, x, y, a;
|
||||||
unsigned x, y;
|
|
||||||
for (i = 0; i < 2; i++)
|
for (i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
shift = idct_tbl[p_jpeg->v_scale[i]].v_scale +
|
shift = idct_tbl[p_jpeg->v_scale[i]].v_scale +
|
||||||
|
|
@ -1515,9 +1514,9 @@ INLINE void fix_quant_tables(struct jpeg *p_jpeg)
|
||||||
if (shift)
|
if (shift)
|
||||||
{
|
{
|
||||||
a = 0;
|
a = 0;
|
||||||
for (y = 0; y < BIT_N(p_jpeg->h_scale[i]); y++)
|
for (y = 0; y < (int)BIT_N(p_jpeg->h_scale[i]); y++)
|
||||||
{
|
{
|
||||||
for (x = 0; x < BIT_N(p_jpeg->v_scale[i]); x++)
|
for (x = 0; x < (int)BIT_N(p_jpeg->v_scale[i]); x++)
|
||||||
p_jpeg->quanttable[i][zig[a+x]] <<= shift;
|
p_jpeg->quanttable[i][zig[a+x]] <<= shift;
|
||||||
a += 8;
|
a += 8;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue