Skip to content

Commit a4270af

Browse files
committed
arm: disable indexed -> rgb8 optimization
1 parent dfde052 commit a4270af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spng/spng.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
#if defined(SPNG_ARM)
6868
static uint32_t expand_palette_rgba8_neon(unsigned char *row, const unsigned char *scanline, const unsigned char *plte, uint32_t width);
69-
static uint32_t expand_palette_rgb8_neon(unsigned char *row, const unsigned char *scanline, const unsigned char *plte, uint32_t width);
69+
/*static uint32_t expand_palette_rgb8_neon(unsigned char *row, const unsigned char *scanline, const unsigned char *plte, uint32_t width);*/
7070
#endif
7171
#endif
7272
#endif
@@ -1883,7 +1883,7 @@ static void expand_row(unsigned char *row,
18831883
if(fmt == SPNG_FMT_RGBA8) i = expand_palette_rgba8_neon(row, scanline, decode_plte->raw, width);
18841884
else if(fmt == SPNG_FMT_RGB8)
18851885
{
1886-
i = expand_palette_rgb8_neon(row, scanline, decode_plte->raw, width);
1886+
/*i = expand_palette_rgb8_neon(row, scanline, decode_plte->raw, width);*/
18871887

18881888
for(; i < width; i++)
18891889
{/* In this case the LUT is 3 bytes packed */
@@ -6903,7 +6903,7 @@ static uint32_t expand_palette_rgba8_neon(unsigned char *row, const unsigned cha
69036903

69046904
return i;
69056905
}
6906-
6906+
#if 0 /* Disabled pending a fix in the next version */
69076907
/* Expands a palettized row into RGB8. */
69086908
static uint32_t expand_palette_rgb8_neon(unsigned char *row, const unsigned char *scanline, const unsigned char *plte, uint32_t width)
69096909
{
@@ -6931,5 +6931,5 @@ static uint32_t expand_palette_rgb8_neon(unsigned char *row, const unsigned char
69316931

69326932
return i;
69336933
}
6934-
6934+
#endif
69356935
#endif /* SPNG_ARM */

0 commit comments

Comments
 (0)