当我将 RGBA 转换为 ARGB 时,我使用了以下代码:
vImage_Buffer src;
src.height = height;
src.width = width;
src.rowBytes = srcBytesPerRow;
src.data = srcRows;
vImage_Buffer dest;
dest.height = height;
dest.width = width;
dest.rowBytes = destBytesPerRow;
dest.data = destRows;
// Swap pixel channels from BGRA to RGBA.
const uint8_t map[4] = { 2, 1, 0, 3 };
vImagePermuteChannels_ARGB8888(&src, &dest, map, kvImageNoFlags);
我收到以下错误:为此,我添加了Convertion.h
和Accelerate.framework
.
架构 armv6 的未定义符号:
“_vImagePermuteChannels_ARGB8888”,引用自:CCOverlayView.o ld 中的 -[CCOverlayView processImage]:未找到架构 armv6 collect2 的符号:ld 返回 1 个退出状态
任何人都可以帮助我吗?