return;
}
-static int __mm_util_crop_rgba32(const unsigned char *src, unsigned int src_width, unsigned int src_height,
+static int __mm_util_crop_rgb32(const unsigned char *src, unsigned int src_width, unsigned int src_height,
unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_width, unsigned int crop_dest_height, unsigned char *dst)
{
int ret = MM_UTIL_ERROR_NONE;
return ret;
}
-static int __mm_util_crop_rgb888(const unsigned char *src, unsigned int src_width, unsigned int src_height,
+static int __mm_util_crop_rgb24(const unsigned char *src, unsigned int src_width, unsigned int src_height,
unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_width, unsigned int crop_dest_height, unsigned char *dst)
{
int ret = MM_UTIL_ERROR_NONE;
return ret;
}
-static int __mm_util_crop_rgb565(const unsigned char *src, unsigned int src_width, unsigned int src_height,
+static int __mm_util_crop_rgb16(const unsigned char *src, unsigned int src_width, unsigned int src_height,
unsigned int crop_start_x, unsigned int crop_start_y, unsigned int crop_dest_width, unsigned int crop_dest_height, unsigned char *dst)
{
int ret = MM_UTIL_ERROR_NONE;
res_h = crop_dest_height;
switch (src_format) {
- case MM_UTIL_COLOR_RGB24: {
- ret = __mm_util_crop_rgb888(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
+ case MM_UTIL_COLOR_RGB16: {
+ ret = __mm_util_crop_rgb16(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
break;
}
- case MM_UTIL_COLOR_RGB16: {
- ret = __mm_util_crop_rgb565(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
+ case MM_UTIL_COLOR_RGB24: {
+ ret = __mm_util_crop_rgb24(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
break;
}
case MM_UTIL_COLOR_ARGB:
case MM_UTIL_COLOR_BGRA:
case MM_UTIL_COLOR_RGBA:
case MM_UTIL_COLOR_BGRX: {
- ret = __mm_util_crop_rgba32(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
+ ret = __mm_util_crop_rgb32(src, src_width, src_height, crop_start_x, crop_start_y, res_w, res_h, dst_buffer);
break;
}
case MM_UTIL_COLOR_I420: