When I call fcvColorRGB565ToRGB888u8, I recieve an error like this:
No source available for "rgb565_to_rgb888C() at [hexadecimal address]"
Parameters and function call look like this:
jshort* src = env->GetShortArrayElements(img, &isCopy); //img is jshortArray - data of a bitmap passed from Java to JNI
uint8_t* dst= (uint8_t*) fcvMemAlloc(w * h, 16);
fcvColorRGB565ToRGB888u8((uint8_t*) src, srcWidth, srcHeight, 0, dst, 0);
Could it be problem with data types and conversion, or srcWidth and srcHeight parameters must be multiple of 8?
It appears that your memory allocation for dst is not sufficient. It should be 3*w*h due to RGB888 format as each pixel occupies 3 bytes.
Thank you, this issue was very helpful! However, why is it so? When: RGB565 is 16bit format and RGB888 is 24bit, where is the 3* ?