return 0;
}
-static int gralloc_unmap(gralloc_module_t const* module, buffer_handle_t handle)
+static int gralloc_unmap(gralloc_module_t const* module __unused, buffer_handle_t handle)
{
private_handle_t* hnd = (private_handle_t*)handle;
size_t chroma_vstride = 0;
return gralloc_unmap(module, hnd);
}
-static pthread_mutex_t sMapLock = PTHREAD_MUTEX_INITIALIZER;
-
/*****************************************************************************/
int gralloc_register_buffer(gralloc_module_t const* module,
}
int gralloc_lock(gralloc_module_t const* module,
- buffer_handle_t handle, int usage,
- int l, int t, int w, int h,
+ buffer_handle_t handle, int usage __unused,
+ int l __unused, int t __unused, int w __unused, int h __unused,
void** vaddr)
{
// this is called when a buffer is being locked for software
*vaddr = INT_TO_PTR(hnd->base);
if (hnd->format == HAL_PIXEL_FORMAT_EXYNOS_YCbCr_420_SPN)
- vaddr[1] = vaddr[0] + (hnd->stride * hnd->vstride) + ext_size;
+ vaddr[1] = (int*)vaddr[0] + (hnd->stride * hnd->vstride) + ext_size;
else if (hnd->format == HAL_PIXEL_FORMAT_EXYNOS_YCbCr_420_SPN_S10B)
- vaddr[1] = vaddr[0] + (hnd->stride * hnd->vstride) + ext_size + (ALIGN(hnd->width / 4, 16) * hnd->vstride) + 64;
+ vaddr[1] = (int*)vaddr[0] + (hnd->stride * hnd->vstride) + ext_size + (ALIGN(hnd->width / 4, 16) * hnd->vstride) + 64;
#ifdef USES_EXYNOS_CRC_BUFFER_ALLOC
if (!gralloc_crc_allocation_check(hnd->format, hnd->width, hnd->height, hnd->flags))
return 0;
}
-int gralloc_lock_ycbcr(gralloc_module_t const* module,
+int gralloc_lock_ycbcr(gralloc_module_t const* module __unused,
buffer_handle_t handle, int usage,
- int l, int t, int w, int h,
+ int l __unused, int t __unused, int w __unused, int h __unused,
android_ycbcr *ycbcr)
{
if (private_handle_t::validate(handle) < 0)