Lines Matching refs:malloc
669 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * 3);
689 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50);
693 "Transparent_AdjustAD: Leave Transparent_AdjustAD for malloc fail!\n");
1156 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * wCalHeight);
1159 DBG (DBG_FUNC, "Transparent_FindTopLeft: lpCalData malloc fail\n");
1185 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50);
1328 lpWhiteData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwWhiteTotalSize);
1329 lpDarkData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwDarkTotalSize);
1333 "Transparent_LineCalibration16Bits: lpWhiteData or lpDarkData malloc fail\n");
1369 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50);
1390 lpWhiteShading = (unsigned short *) malloc (sizeof (unsigned short) * wCalWidth * 3);
1391 lpDarkShading = (unsigned short *) malloc (sizeof (unsigned short) * wCalWidth * 3);
1393 lpRWhiteSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1394 lpGWhiteSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1395 lpBWhiteSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1396 lpRDarkSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1397 lpGDarkSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1398 lpBDarkSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1404 DBG (DBG_FUNC, "Transparent_LineCalibration16Bits: malloc fail\n");
1687 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1690 DBG (DBG_FUNC, "Transparent_PrepareScan:malloc fail\n");
1697 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1701 DBG (DBG_FUNC, "Transparent_PrepareScan:malloc fail\n");
1708 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1711 DBG (DBG_FUNC, "Transparent_PrepareScan:malloc fail\n");
1718 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1721 DBG (DBG_FUNC, "Transparent_PrepareScan:malloc fail\n");
1728 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1731 DBG (DBG_FUNC, "Transparent_PrepareScan:malloc fail\n");