• Home
  • Raw
  • Download

Lines Matching refs:fm

103     FILENULL* fm = NULL;  in cmsOpenIOhandlerFromNULL()  local
108 fm = (FILENULL*) _cmsMallocZero(ContextID, sizeof(FILENULL)); in cmsOpenIOhandlerFromNULL()
109 if (fm == NULL) goto Error; in cmsOpenIOhandlerFromNULL()
111 fm ->Pointer = 0; in cmsOpenIOhandlerFromNULL()
114 iohandler ->stream = (void*) fm; in cmsOpenIOhandlerFromNULL()
241 FILEMEM* fm = NULL; in cmsOpenIOhandlerFromMem() local
251 fm = (FILEMEM*) _cmsMallocZero(ContextID, sizeof(FILEMEM)); in cmsOpenIOhandlerFromMem()
252 if (fm == NULL) goto Error; in cmsOpenIOhandlerFromMem()
259 fm ->Block = (cmsUInt8Number*) _cmsMalloc(ContextID, size); in cmsOpenIOhandlerFromMem()
260 if (fm ->Block == NULL) { in cmsOpenIOhandlerFromMem()
262 _cmsFree(ContextID, fm); in cmsOpenIOhandlerFromMem()
269 memmove(fm->Block, Buffer, size); in cmsOpenIOhandlerFromMem()
270 fm ->FreeBlockOnClose = TRUE; in cmsOpenIOhandlerFromMem()
271 fm ->Size = size; in cmsOpenIOhandlerFromMem()
272 fm ->Pointer = 0; in cmsOpenIOhandlerFromMem()
277 fm = (FILEMEM*) _cmsMallocZero(ContextID, sizeof(FILEMEM)); in cmsOpenIOhandlerFromMem()
278 if (fm == NULL) goto Error; in cmsOpenIOhandlerFromMem()
280 fm ->Block = (cmsUInt8Number*) Buffer; in cmsOpenIOhandlerFromMem()
281 fm ->FreeBlockOnClose = FALSE; in cmsOpenIOhandlerFromMem()
282 fm ->Size = size; in cmsOpenIOhandlerFromMem()
283 fm ->Pointer = 0; in cmsOpenIOhandlerFromMem()
293 iohandler ->stream = (void*) fm; in cmsOpenIOhandlerFromMem()
306 if (fm) _cmsFree(ContextID, fm); in cmsOpenIOhandlerFromMem()
370 FILE* fm = NULL; in cmsOpenIOhandlerFromFile() local
382 fm = fopen(FileName, "rb"); in cmsOpenIOhandlerFromFile()
383 if (fm == NULL) { in cmsOpenIOhandlerFromFile()
388 fileLen = cmsfilelength(fm); in cmsOpenIOhandlerFromFile()
391 fclose(fm); in cmsOpenIOhandlerFromFile()
401 fm = fopen(FileName, "wb"); in cmsOpenIOhandlerFromFile()
402 if (fm == NULL) { in cmsOpenIOhandlerFromFile()
417 iohandler ->stream = (void*) fm; in cmsOpenIOhandlerFromFile()