I'm looking for using fcvfilter in android. However, I don't get it how config imageformat for fcvfilter.
In FastCV Library API, there are a lot of ImageFormat in fcvImageFormat.
If I want to use RGBA8888 in fcvFilterGaussian5x5s32_v2, how can I set it up for datatype?
What about that I want to use YUV21 or other image format?
ther are example code. I also checked byte alignmemts.
void blur(AndroidBitmapInfo *info, void *srcPixels /*RGBA8888*/, void *dstPixels) {
fcvFilterGaussian5x5s32_v2( srcPixels, info->width, info->height, 0, dstPixels, 0, 0);
}
Should I have to use fcvMemeAlloc and copy the image from java if I want to use fcv? srcPixels and destPixels are alloced in java.
Furtheremore, what is that mean s32, s16, u8 etc?
How can I figure out that filter API support image format? I can't find it in API doc.
Thanks.
Still waiting for answer.