• Home
  • Raw
  • Download

Lines Matching refs:Private

91     GifFilePrivateType *Private;  in EGifOpenFileHandle()  local
101 Private = (GifFilePrivateType *)malloc(sizeof(GifFilePrivateType)); in EGifOpenFileHandle()
102 if (Private == NULL) { in EGifOpenFileHandle()
108 /*@i1@*/memset(Private, '\0', sizeof(GifFilePrivateType)); in EGifOpenFileHandle()
109 if ((Private->HashTable = _InitHashTable()) == NULL) { in EGifOpenFileHandle()
111 free(Private); in EGifOpenFileHandle()
123 GifFile->Private = (void *)Private; in EGifOpenFileHandle()
124 Private->FileHandle = FileHandle; in EGifOpenFileHandle()
125 Private->File = f; in EGifOpenFileHandle()
126 Private->FileState = FILE_STATE_WRITE; in EGifOpenFileHandle()
127 Private->gif89 = false; in EGifOpenFileHandle()
129 Private->Write = (OutputFunc) 0; /* No user write routine (MRB) */ in EGifOpenFileHandle()
145 GifFilePrivateType *Private; in EGifOpen() local
156 Private = (GifFilePrivateType *)malloc(sizeof(GifFilePrivateType)); in EGifOpen()
157 if (Private == NULL) { in EGifOpen()
164 memset(Private, '\0', sizeof(GifFilePrivateType)); in EGifOpen()
166 Private->HashTable = _InitHashTable(); in EGifOpen()
167 if (Private->HashTable == NULL) { in EGifOpen()
169 free (Private); in EGifOpen()
175 GifFile->Private = (void *)Private; in EGifOpen()
176 Private->FileHandle = 0; in EGifOpen()
177 Private->File = (FILE *) 0; in EGifOpen()
178 Private->FileState = FILE_STATE_WRITE; in EGifOpen()
180 Private->Write = writeFunc; /* User write routine (MRB) */ in EGifOpen()
183 Private->gif89 = false; /* initially, write GIF87 */ in EGifOpen()
196 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifGetGifVersion() local
214 Private->gif89 = true; in EGifGetGifVersion()
224 Private->gif89 = true; in EGifGetGifVersion()
227 if (Private->gif89) in EGifGetGifVersion()
242 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifSetGifVersion() local
244 Private->gif89 = gif89; in EGifSetGifVersion()
253 GifFilePrivateType *Private = (GifFilePrivateType*)GifFileOut->Private; in InternalWrite() local
254 if (Private->Write) in InternalWrite()
255 return Private->Write(GifFileOut,buf,len); in InternalWrite()
257 return fwrite(buf, 1, len, Private->File); in InternalWrite()
273 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifPutScreenDesc() local
276 if (Private->FileState & FILE_STATE_SCREEN) { in EGifPutScreenDesc()
281 if (!IS_WRITEABLE(Private)) { in EGifPutScreenDesc()
348 Private->FileState |= FILE_STATE_SCREEN; in EGifPutScreenDesc()
367 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutImageDesc() local
369 if (Private->FileState & FILE_STATE_IMAGE && in EGifPutImageDesc()
370 Private->PixelCount > 0xffff0000UL) { in EGifPutImageDesc()
375 if (!IS_WRITEABLE(Private)) { in EGifPutImageDesc()
432 Private->FileState |= FILE_STATE_IMAGE; in EGifPutImageDesc()
433 Private->PixelCount = (long)Width *(long)Height; in EGifPutImageDesc()
449 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifPutLine() local
451 if (!IS_WRITEABLE(Private)) { in EGifPutLine()
459 if (Private->PixelCount < (unsigned)LineLen) { in EGifPutLine()
463 Private->PixelCount -= LineLen; in EGifPutLine()
467 Mask = CodeMask[Private->BitsPerPixel]; in EGifPutLine()
480 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutPixel() local
482 if (!IS_WRITEABLE(Private)) { in EGifPutPixel()
488 if (Private->PixelCount == 0) { in EGifPutPixel()
492 --Private->PixelCount; in EGifPutPixel()
496 Pixel &= CodeMask[Private->BitsPerPixel]; in EGifPutPixel()
551 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutExtensionLeader() local
553 if (!IS_WRITEABLE(Private)) { in EGifPutExtensionLeader()
575 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutExtensionBlock() local
577 if (!IS_WRITEABLE(Private)) { in EGifPutExtensionBlock()
597 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutExtensionTrailer() local
599 if (!IS_WRITEABLE(Private)) { in EGifPutExtensionTrailer()
625 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutExtension() local
627 if (!IS_WRITEABLE(Private)) { in EGifPutExtension()
708 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutCode() local
710 if (!IS_WRITEABLE(Private)) { in EGifPutCode()
737 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutCodeNext() local
751 Private->PixelCount = 0; /* And local info. indicate image read. */ in EGifPutCodeNext()
764 GifFilePrivateType *Private; in EGifCloseFile() local
770 Private = (GifFilePrivateType *) GifFile->Private; in EGifCloseFile()
771 if (Private == NULL) in EGifCloseFile()
773 if (!IS_WRITEABLE(Private)) { in EGifCloseFile()
781 File = Private->File; in EGifCloseFile()
794 if (Private) { in EGifCloseFile()
795 if (Private->HashTable) { in EGifCloseFile()
796 free((char *) Private->HashTable); in EGifCloseFile()
798 free((char *) Private); in EGifCloseFile()
838 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifSetupCompress() local
853 Private->Buf[0] = 0; /* Nothing was output yet. */ in EGifSetupCompress()
854 Private->BitsPerPixel = BitsPerPixel; in EGifSetupCompress()
855 Private->ClearCode = (1 << BitsPerPixel); in EGifSetupCompress()
856 Private->EOFCode = Private->ClearCode + 1; in EGifSetupCompress()
857 Private->RunningCode = Private->EOFCode + 1; in EGifSetupCompress()
858 Private->RunningBits = BitsPerPixel + 1; /* Number of bits per code. */ in EGifSetupCompress()
859 Private->MaxCode1 = 1 << Private->RunningBits; /* Max. code + 1. */ in EGifSetupCompress()
860 Private->CrntCode = FIRST_CODE; /* Signal that this is first one! */ in EGifSetupCompress()
861 Private->CrntShiftState = 0; /* No information in CrntShiftDWord. */ in EGifSetupCompress()
862 Private->CrntShiftDWord = 0; in EGifSetupCompress()
865 _ClearHashTable(Private->HashTable); in EGifSetupCompress()
867 if (EGifCompressOutput(GifFile, Private->ClearCode) == GIF_ERROR) { in EGifSetupCompress()
889 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifCompressLine() local
891 HashTable = Private->HashTable; in EGifCompressLine()
893 if (Private->CrntCode == FIRST_CODE) /* Its first time! */ in EGifCompressLine()
896 CrntCode = Private->CrntCode; /* Get last code in compression. */ in EGifCompressLine()
922 if (Private->RunningCode >= LZ_MAX_CODE) { in EGifCompressLine()
924 if (EGifCompressOutput(GifFile, Private->ClearCode) in EGifCompressLine()
929 Private->RunningCode = Private->EOFCode + 1; in EGifCompressLine()
930 Private->RunningBits = Private->BitsPerPixel + 1; in EGifCompressLine()
931 Private->MaxCode1 = 1 << Private->RunningBits; in EGifCompressLine()
935 _InsertHashTable(HashTable, NewKey, Private->RunningCode++); in EGifCompressLine()
942 Private->CrntCode = CrntCode; in EGifCompressLine()
944 if (Private->PixelCount == 0) { in EGifCompressLine()
950 if (EGifCompressOutput(GifFile, Private->EOFCode) == GIF_ERROR) { in EGifCompressLine()
973 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifCompressOutput() local
977 while (Private->CrntShiftState > 0) { in EGifCompressOutput()
979 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
980 Private->CrntShiftDWord & 0xff) == GIF_ERROR) in EGifCompressOutput()
982 Private->CrntShiftDWord >>= 8; in EGifCompressOutput()
983 Private->CrntShiftState -= 8; in EGifCompressOutput()
985 Private->CrntShiftState = 0; /* For next time. */ in EGifCompressOutput()
986 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
990 Private->CrntShiftDWord |= ((long)Code) << Private->CrntShiftState; in EGifCompressOutput()
991 Private->CrntShiftState += Private->RunningBits; in EGifCompressOutput()
992 while (Private->CrntShiftState >= 8) { in EGifCompressOutput()
994 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
995 Private->CrntShiftDWord & 0xff) == GIF_ERROR) in EGifCompressOutput()
997 Private->CrntShiftDWord >>= 8; in EGifCompressOutput()
998 Private->CrntShiftState -= 8; in EGifCompressOutput()
1004 if (Private->RunningCode >= Private->MaxCode1 && Code <= 4095) { in EGifCompressOutput()
1005 Private->MaxCode1 = 1 << ++Private->RunningBits; in EGifCompressOutput()