Lines Matching refs:fm
102 FILENULL* fm = NULL; in cmsOpenIOhandlerFromNULL() local
107 fm = (FILENULL*) _cmsMallocZero(ContextID, sizeof(FILENULL)); in cmsOpenIOhandlerFromNULL()
108 if (fm == NULL) goto Error; in cmsOpenIOhandlerFromNULL()
110 fm ->Pointer = 0; in cmsOpenIOhandlerFromNULL()
113 iohandler ->stream = (void*) fm; in cmsOpenIOhandlerFromNULL()
240 FILEMEM* fm = NULL; in cmsOpenIOhandlerFromMem() local
250 fm = (FILEMEM*) _cmsMallocZero(ContextID, sizeof(FILEMEM)); in cmsOpenIOhandlerFromMem()
251 if (fm == NULL) goto Error; in cmsOpenIOhandlerFromMem()
258 fm ->Block = (cmsUInt8Number*) _cmsMalloc(ContextID, size); in cmsOpenIOhandlerFromMem()
259 if (fm ->Block == NULL) { in cmsOpenIOhandlerFromMem()
261 _cmsFree(ContextID, fm); in cmsOpenIOhandlerFromMem()
268 memmove(fm->Block, Buffer, size); in cmsOpenIOhandlerFromMem()
269 fm ->FreeBlockOnClose = TRUE; in cmsOpenIOhandlerFromMem()
270 fm ->Size = size; in cmsOpenIOhandlerFromMem()
271 fm ->Pointer = 0; in cmsOpenIOhandlerFromMem()
276 fm = (FILEMEM*) _cmsMallocZero(ContextID, sizeof(FILEMEM)); in cmsOpenIOhandlerFromMem()
277 if (fm == NULL) goto Error; in cmsOpenIOhandlerFromMem()
279 fm ->Block = (cmsUInt8Number*) Buffer; in cmsOpenIOhandlerFromMem()
280 fm ->FreeBlockOnClose = FALSE; in cmsOpenIOhandlerFromMem()
281 fm ->Size = size; in cmsOpenIOhandlerFromMem()
282 fm ->Pointer = 0; in cmsOpenIOhandlerFromMem()
292 iohandler ->stream = (void*) fm; in cmsOpenIOhandlerFromMem()
305 if (fm) _cmsFree(ContextID, fm); in cmsOpenIOhandlerFromMem()
369 FILE* fm = NULL; in cmsOpenIOhandlerFromFile() local
380 fm = fopen(FileName, "rb"); in cmsOpenIOhandlerFromFile()
381 if (fm == NULL) { in cmsOpenIOhandlerFromFile()
386 iohandler -> ReportedSize = (cmsUInt32Number) cmsfilelength(fm); in cmsOpenIOhandlerFromFile()
390 fm = fopen(FileName, "wb"); in cmsOpenIOhandlerFromFile()
391 if (fm == NULL) { in cmsOpenIOhandlerFromFile()
406 iohandler ->stream = (void*) fm; in cmsOpenIOhandlerFromFile()