Change-Id: Ic87c7df629929e3fda5ab422092c5a7c334d2f38
src_img = pixman_image_create_bits(PIXMAN_a8r8g8b8, buf_width, srch, (uint32_t*)srcptr, srcstride);
if(!src_img)
{
- LOG("No source image.\n");
+ LOG("Failed to create src pixman.\n");
return;
}
buf_width = dststride/4;
dst_img = pixman_image_create_bits(PIXMAN_a8r8g8b8, buf_width, dsth, (uint32_t*)dstptr, dststride);
+ if(!dst_img) {
+ LOG("Failed to create dst pixman\n");
+ pixman_image_unref(src_img);
+ return;
+ }
+
struct pixman_f_transform ft;
double scale_x, scale_y;
pixman_transform_t t;