Lines Matching refs:GifFile
287 FreeLastSavedImage(GifFileType *GifFile) in FreeLastSavedImage() argument
291 if ((GifFile == NULL) || (GifFile->SavedImages == NULL)) in FreeLastSavedImage()
295 GifFile->ImageCount--; in FreeLastSavedImage()
296 sp = &GifFile->SavedImages[GifFile->ImageCount]; in FreeLastSavedImage()
323 GifMakeSavedImage(GifFileType *GifFile, const SavedImage *CopyFrom) in GifMakeSavedImage() argument
325 if (GifFile->SavedImages == NULL) in GifMakeSavedImage()
326 GifFile->SavedImages = (SavedImage *)malloc(sizeof(SavedImage)); in GifMakeSavedImage()
328 GifFile->SavedImages = (SavedImage *)reallocarray(GifFile->SavedImages, in GifMakeSavedImage()
329 (GifFile->ImageCount + 1), sizeof(SavedImage)); in GifMakeSavedImage()
331 if (GifFile->SavedImages == NULL) in GifMakeSavedImage()
334 SavedImage *sp = &GifFile->SavedImages[GifFile->ImageCount++]; in GifMakeSavedImage()
352 FreeLastSavedImage(GifFile); in GifMakeSavedImage()
363 FreeLastSavedImage(GifFile); in GifMakeSavedImage()
376 FreeLastSavedImage(GifFile); in GifMakeSavedImage()
389 GifFreeSavedImages(GifFileType *GifFile) in GifFreeSavedImages() argument
393 if ((GifFile == NULL) || (GifFile->SavedImages == NULL)) { in GifFreeSavedImages()
396 for (sp = GifFile->SavedImages; in GifFreeSavedImages()
397 sp < GifFile->SavedImages + GifFile->ImageCount; sp++) { in GifFreeSavedImages()
408 free((char *)GifFile->SavedImages); in GifFreeSavedImages()
409 GifFile->SavedImages = NULL; in GifFreeSavedImages()