if (mm_vbuffer->handle.bo[0]) {
handle_bo = tbm_bo_get_handle(mm_vbuffer->handle.bo[0], TBM_DEVICE_CPU);
- mm_vbuffer->data[0]= handle_bo.ptr;
+ mm_vbuffer->data[0] = handle_bo.ptr;
handle_bo = tbm_bo_get_handle(mm_vbuffer->handle.bo[0], TBM_DEVICE_MM);
- mm_vbuffer->handle.dmabuf_fd[0]= handle_bo.u32;
+ mm_vbuffer->handle.dmabuf_fd[0] = handle_bo.u32;
}
if (mm_vbuffer->handle.bo[1]) {
handle_bo = tbm_bo_get_handle(mm_vbuffer->handle.bo[1], TBM_DEVICE_CPU);
- mm_vbuffer->data[1]= handle_bo.ptr;
+ mm_vbuffer->data[1] = handle_bo.ptr;
handle_bo = tbm_bo_get_handle(mm_vbuffer->handle.bo[1], TBM_DEVICE_MM);
- mm_vbuffer->handle.dmabuf_fd[1]= handle_bo.u32;
+ mm_vbuffer->handle.dmabuf_fd[1] = handle_bo.u32;
} else {
mm_vbuffer->data[1] = mm_vbuffer->data[0] + mm_vbuffer->stride_width[0] * mm_vbuffer->stride_height[0];
}
media_packet_get_video_stride_width(pkt, 1, &stride_width);
size = app->width * app->height / 2;
- for (i = 0; i< app->height / 2; i++) {
+ for (i = 0; i < app->height / 2; i++) {
memcpy(buf_data_ptr, tmp, app->width);
buf_data_ptr += stride_width;
tmp += app->width;