using libimagequant in android ndk -
has used quantizer "libimagequant" library in android ndk?
the library can found here: http://pngquant.org/lib
the problem i'm facing when calling liq_image_create_rgba, compiler complains with:
invalid arguments ' candidates are: * liq_image_create_rgba(*, void *, int, int, double) '
seems problem first parameter (liq_attr). can't understand why complaining , how solve it.
liq_attr* liqattr = liq_attr_create(); liq_image* liqimage = liq_image_create_rgba(liqattr, reinterpret_cast<void*>(bitmappixels), width, height, 0);
in version of libimagequant.c liq_image_create_rgba function declared follows:
liq_export liq_image *liq_image_create_rgba(liq_attr *attr, void* bitmap, int width, int height, double gamma)
the first parameter liq_attr *, maybe yours missing pointer type?
Comments
Post a Comment