{
int ret = 0;
unsigned long srcYAddress = 0;
- unsigned long srcCbCrAddress = 0;
unsigned long dstYAddress = 0;
unsigned long dstCbCrAddress =0;
blit_op mode, bool force_clear)
{
int ret = 0;
- unsigned long srcYAddress = 0;
ExynosRect srcImgRect, dstImgRect;
uint32_t srcG2d_bpp, dstG2d_bpp;
uint32_t srcImageSize, dstImageSize;
- bool src_ion_mapped = false;
- bool dst_ion_mapped = false;
private_handle_t *src_handle = private_handle_t::dynamicCast(src_layer.handle);
ALOGE("%s: failed to mmap for virtual display buffer", __func__);
return -ENOMEM;
}
- ALOGI("allocated secure g2d input buffer: 0x%x", mVirtualDisplay->mPhysicallyLinearBufferAddr);
+ ALOGI("allocated secure g2d input buffer: 0x%lx", mVirtualDisplay->mPhysicallyLinearBufferAddr);
}
}
return true;
int ret = 0;
if (mVirtualDisplay->mPhysicallyLinearBuffer) {
- ALOGI("free g2d input buffer: 0x%x", mVirtualDisplay->mPhysicallyLinearBufferAddr);
+ ALOGI("free g2d input buffer: 0x%lx", mVirtualDisplay->mPhysicallyLinearBufferAddr);
munmap((void *)mVirtualDisplay->mPhysicallyLinearBufferAddr, mAllocSize);
mVirtualDisplay->mPhysicallyLinearBufferAddr = 0;
}
#endif
-void ExynosG2DWrapper::exynos5_cleanup_g2d(int force)
+void ExynosG2DWrapper::exynos5_cleanup_g2d(int force __unused)
{
#ifdef G2D_COMPOSITION
exynos5_g2d_data_t &mG2d = mDisplay->mG2d;
#endif
}
-int ExynosG2DWrapper::exynos5_g2d_buf_alloc(hwc_display_contents_1_t* contents)
+int ExynosG2DWrapper::exynos5_g2d_buf_alloc(hwc_display_contents_1_t* contents __unused)
{
#ifdef G2D_COMPOSITION
int w, h;
return 1;
}
-int ExynosG2DWrapper::exynos5_config_g2d(hwc_layer_1_t &layer, private_handle_t *dst_handle, s3c_fb_win_config &cfg, int win_idx_2d, int win_idx)
+int ExynosG2DWrapper::exynos5_config_g2d(hwc_layer_1_t &layer __unused, private_handle_t *dst_handle __unused, s3c_fb_win_config &cfg __unused, int win_idx_2d __unused, int win_idx __unused)
{
#ifdef G2D_COMPOSITION
int ret = 0;
mDoubleOperation = false;
mBufferFreeThread = new BufferFreeThread(this);
mBufferFreeThread->mRunning = true;
- mBufferFreeThread->run();
+ mBufferFreeThread->run("MPPThread");
}
ExynosMPP::~ExynosMPP()
|| isTransformed(layer);
}
-int ExynosMPP::getAdjustedCrop(int rawSrcSize, int dstSize, int format, bool isVertical, bool isRotated)
+int ExynosMPP::getAdjustedCrop(int rawSrcSize, int dstSize, int format, bool isVertical __unused, bool isRotated)
{
int ratio;
- int adjustedSize;
int align;
if (dstSize >= rawSrcSize || rawSrcSize <= dstSize * FIRST_PRESCALER_THRESHOLD)
dst_img.yaddr = (ptrdiff_t)NULL;
}
-int ExynosMPP::sourceWidthAlign(int format)
+int ExynosMPP::sourceWidthAlign(int format __unused)
{
return 16;
}
-int ExynosMPP::sourceHeightAlign(int format)
+int ExynosMPP::sourceHeightAlign(int format __unused)
{
return 16;
}
-int ExynosMPP::destinationAlign(int format)
+int ExynosMPP::destinationAlign(int format __unused)
{
return 16;
}
ATRACE_CALL();
ALOGV("configuring gscaler %u for memory-to-fimd-localout", mIndex);
- buffer_handle_t dst_buf;
- private_handle_t *dst_handle;
int ret = 0;
int dstAlign;
ATRACE_CALL();
ALOGV("configuring gscaler %u for memory-to-memory", AVAILABLE_GSC_UNITS[mIndex]);
+#ifdef USES_VIRTUAL_DISPLAY
alloc_device_t* alloc_device = mDisplay->mAllocDevice;
+#endif
private_handle_t *src_handle = private_handle_t::dynamicCast(layer.handle);
buffer_handle_t dst_buf;
private_handle_t *dst_handle;
buffer_handle_t mid_buf;
private_handle_t *mid_handle;
int ret = 0;
- int dstAlign;
if (isUsingMSC()) {
if (dst_format != HAL_PIXEL_FORMAT_RGB_565)
c1.drmMode != c2.drmMode;
}
-bool ExynosMPP::isSourceCropChanged(exynos_mpp_img &c1, exynos_mpp_img &c2)
+bool ExynosMPP::isSourceCropChanged(exynos_mpp_img &c1 __unused, exynos_mpp_img &c2 __unused)
{
return false;
}
-bool ExynosMPP::isPerFrameSrcChanged(exynos_mpp_img &c1, exynos_mpp_img &c2)
+bool ExynosMPP::isPerFrameSrcChanged(exynos_mpp_img &c1 __unused, exynos_mpp_img &c2 __unused)
{
return false;
}
-bool ExynosMPP::isPerFrameDstChanged(exynos_mpp_img &c1, exynos_mpp_img &c2)
+bool ExynosMPP::isPerFrameDstChanged(exynos_mpp_img &c1 __unused, exynos_mpp_img &c2 __unused)
{
return false;
}