2

我在 pngrutil.c 中找到了 NEON 的优化。但是当我定义一个宏“PNG_ARM_NEON”并尝试在android NDK中编译源代码时,我得到了这些链接错误:

/libpng/pngrutil.c:3730: undefined reference to `png_read_filter_row_up_neon'
/libpng/pngrutil.c:3730: undefined reference to `png_read_filter_row_sub4_neon'
/libpng/pngrutil.c:3730: undefined reference to `png_read_filter_row_avg4_neon'
/libpng/pngrutil.c:3730: undefined reference to `png_read_filter_row_paeth4_neon'
/libpng/pngrutil.c:3730: undefined reference to `png_read_filter_row_sub3_neon'
/libpng/pngrutil.c:3730: undefined reference to `png_read_filter_row_avg3_neon'
/libpng/pngrutil.c:3730: undefined reference to `png_read_filter_row_paeth3_neon'

我发现这些函数是在“pngpriv.h”中声明的,但在任何源文件中都找不到实现。

“NEON 优化”是否已经可用于当前版本的 libpng 或只是“TODO”?

4

0 回答 0