How to estimate buffer size for colorspace converting

How to estimate buffer size for colorspace converting (here from RGB888 to NV12 colorospace)
unsigned char *img_source = NULL;
int width = 0, height = 0;
unsigned int size_decode = 0;

image_util_decode_jpeg( filePath, (image_util_colorspace_e)IMAGE_UTIL_COLORSPACE_RGB888, &img_source, &width, &height, &size_decode);

unsigned int buffer_size;
image_util_calculate_buffer_size(width,height, IMAGE_UTIL_COLORSPACE_NV12,&buffer_size);

Responses

0 Replies