};
#ifndef REAL_DEBUG
- void VOID_FUNC(const char *format, ...)
+ void VOID_FUNC(const char *format __unused, ...)
{}
#endif
return false;
}
-bool FimgApi::t_Stretch(struct fimg2d_blit *cmd)
+bool FimgApi::t_Stretch(struct fimg2d_blit *cmd __unused)
{
PRINT("%s::This is empty virtual function fail\n", __func__);
return false;
SLOGI("%s (From %s)\n", title, called);
SLOGI(" sequence_no. = %u\n", cmd->seq_no);
SLOGI(" blit_op = %d(%s)\n", cmd->op, optbl[cmd->op].str);
- SLOGI(" fill_color = %X\n", cmd->param.solid_color);
+ SLOGI(" fill_color = %lu\n", cmd->param.solid_color);
SLOGI(" global_alpha = %u\n", (unsigned int)cmd->param.g_alpha);
SLOGI(" PREMULT = %s\n", cmd->param.premult == PREMULTIPLIED ? "PREMULTIPLIED" : "NON-PREMULTIPLIED");
SLOGI(" do_dither = %s\n", cmd->param.dither == true ? "dither" : "no-dither");
{
if (NULL != image) {
SLOGI(" Image_%s\n", title);
- SLOGI(" addr = %X\n", image->addr.start);
+ SLOGI(" addr = %lx\n", image->addr.start);
SLOGI(" format = %d\n", image->fmt);
SLOGI(" size = (%d, %d)\n", image->width, image->height);
} else {
bool FimgV4x::t_Lock(void)
{
- if (&m_lock != NULL) {
- status_t ret = m_lock.lock();
- return true;
- }
- PRINT("%s::m_lock is NULL",__func__);
- return false;
+ return m_lock.lock();
}
bool FimgV4x::t_UnLock(void)
{
- if (&m_lock != NULL) {
- m_lock.unlock();
- return true;
- }
- PRINT("%s::m_lock is NULL",__func__);
- return false;
+ m_lock.unlock();
+ return true;
}
bool FimgV4x::m_CreateG2D(void)
{
- void * mmap_base;
int val = 0;
if (m_g2dFd != 0) {
//---------------------------------------------------------------------------//
// extern function
//---------------------------------------------------------------------------//
-extern "C" struct FimgApi * createFimgApi()
+extern "C" FimgApi * createFimgApi()
{
if (fimgApiAutoFreeThread == 0)
fimgApiAutoFreeThread = new FimgApiAutoFreeThread();
return FimgV4x::CreateInstance();
}
-extern "C" void destroyFimgApi(FimgApi * ptrFimgApi)
+extern "C" void destroyFimgApi(FimgApi * ptrFimgApi __unused)
{
// Dont' call DestroyInstance.
}