Lines Matching refs:malloc
633 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * 3);
636 DBG (DBG_FUNC, "Reflective_AdjustAD: lpCalData malloc error\n");
654 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50);
1142 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * wCalHeight);
1145 DBG (DBG_FUNC, "Reflective_FindTopLeft: lpCalData malloc error\n");
1196 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50);
1390 lpWhiteData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwWhiteTotalSize);
1391 lpDarkData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwDarkTotalSize);
1396 "Reflective_LineCalibration16Bits: lpWhiteData or lpDarkData malloc error \n");
1515 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50);
1539 lpWhiteShading = (unsigned short *) malloc (sizeof (unsigned short) * wCalWidth * 3);
1540 lpDarkShading = (unsigned short *) malloc (sizeof (unsigned short) * wCalWidth * 3);
1542 lpRWhiteSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1543 lpGWhiteSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1544 lpBWhiteSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1545 lpRDarkSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1546 lpGDarkSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1547 lpBDarkSort = (unsigned short *) malloc (sizeof (unsigned short) * wCalHeight);
1553 DBG (DBG_FUNC, "Reflective_LineCalibration16Bits: malloc error \n");
1786 "Reflective_PrepareScan:g_lpReadImageHead malloc %d Bytes\n",
1788 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1792 "Reflective_PrepareScan: g_lpReadImageHead malloc error \n");
1803 "Reflective_PrepareScan:g_lpReadImageHead malloc %d Bytes\n",
1805 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1809 "Reflective_PrepareScan: g_lpReadImageHead malloc error \n");
1819 "Reflective_PrepareScan:g_lpReadImageHead malloc %d Bytes\n",
1821 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1825 "Reflective_PrepareScan: g_lpReadImageHead malloc error \n");
1835 "Reflective_PrepareScan:g_lpReadImageHead malloc %d Bytes\n",
1837 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1841 "Reflective_PrepareScan: g_lpReadImageHead malloc error \n");
1851 "Reflective_PrepareScan:g_lpReadImageHead malloc %d Bytes\n",
1853 g_lpReadImageHead = (SANE_Byte *) malloc (g_dwImageBufferSize);
1857 "Reflective_PrepareScan: g_lpReadImageHead malloc error \n");