/* create tbm surface */
flush_buffer->tbm_surf = tbm_surface_create(evas_info->w, evas_info->h, src_info.format);
+
if (!flush_buffer->tbm_surf) {
LOGE("tbm_surf is NULL!!");
if (tbm_surface_unmap(src_tbm_surf))
memcpy(dst_info.planes[2].ptr, src_info.planes[2].ptr, src_info.planes[2].size);
break;
case TBM_FORMAT_NV12:
- memcpy(dst_info.planes[0].ptr, src_info.planes[0].ptr, src_info.planes[0].size);
- memcpy(dst_info.planes[1].ptr, src_info.planes[1].ptr, src_info.planes[1].size);
+ memcpy(dst_info.planes[0].ptr, src_info.planes[0].ptr, src_info.planes[0].stride * src_info.height);
+ memcpy(dst_info.planes[1].ptr, src_info.planes[1].ptr, src_info.planes[0].stride * src_info.height / 2);
break;
default:
LOGW("unsupported format");