• 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 if ((Private->HashTable = _InitHashTable()) == NULL) { in EGifOpenFileHandle()
110 free(Private); in EGifOpenFileHandle()
122 GifFile->Private = (void *)Private; in EGifOpenFileHandle()
123 Private->FileHandle = FileHandle; in EGifOpenFileHandle()
124 Private->File = f; in EGifOpenFileHandle()
125 Private->FileState = FILE_STATE_WRITE; in EGifOpenFileHandle()
127 Private->Write = (OutputFunc) 0; /* No user write routine (MRB) */ in EGifOpenFileHandle()
143 GifFilePrivateType *Private; in EGifOpen() local
154 Private = (GifFilePrivateType *)malloc(sizeof(GifFilePrivateType)); in EGifOpen()
155 if (Private == NULL) { in EGifOpen()
162 Private->HashTable = _InitHashTable(); in EGifOpen()
163 if (Private->HashTable == NULL) { in EGifOpen()
165 free (Private); in EGifOpen()
171 GifFile->Private = (void *)Private; in EGifOpen()
172 Private->FileHandle = 0; in EGifOpen()
173 Private->File = (FILE *) 0; in EGifOpen()
174 Private->FileState = FILE_STATE_WRITE; in EGifOpen()
176 Private->Write = writeFunc; /* User write routine (MRB) */ in EGifOpen()
179 Private->gif89 = false; /* initially, write GIF87 */ in EGifOpen()
192 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifGetGifVersion() local
210 Private->gif89 = true; in EGifGetGifVersion()
220 Private->gif89 = true; in EGifGetGifVersion()
223 if (Private->gif89) in EGifGetGifVersion()
238 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifSetGifVersion() local
240 Private->gif89 = gif89; in EGifSetGifVersion()
249 GifFilePrivateType *Private = (GifFilePrivateType*)GifFileOut->Private; in InternalWrite() local
250 if (Private->Write) in InternalWrite()
251 return Private->Write(GifFileOut,buf,len); in InternalWrite()
253 return fwrite(buf, 1, len, Private->File); in InternalWrite()
269 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifPutScreenDesc() local
272 if (Private->FileState & FILE_STATE_SCREEN) { in EGifPutScreenDesc()
277 if (!IS_WRITEABLE(Private)) { in EGifPutScreenDesc()
344 Private->FileState |= FILE_STATE_SCREEN; in EGifPutScreenDesc()
363 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutImageDesc() local
365 if (Private->FileState & FILE_STATE_IMAGE && in EGifPutImageDesc()
366 Private->PixelCount > 0xffff0000UL) { in EGifPutImageDesc()
371 if (!IS_WRITEABLE(Private)) { in EGifPutImageDesc()
424 Private->FileState |= FILE_STATE_IMAGE; in EGifPutImageDesc()
425 Private->PixelCount = (long)Width *(long)Height; in EGifPutImageDesc()
441 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifPutLine() local
443 if (!IS_WRITEABLE(Private)) { in EGifPutLine()
451 if (Private->PixelCount < (unsigned)LineLen) { in EGifPutLine()
455 Private->PixelCount -= LineLen; in EGifPutLine()
459 Mask = CodeMask[Private->BitsPerPixel]; in EGifPutLine()
472 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutPixel() local
474 if (!IS_WRITEABLE(Private)) { in EGifPutPixel()
480 if (Private->PixelCount == 0) { in EGifPutPixel()
484 --Private->PixelCount; in EGifPutPixel()
488 Pixel &= CodeMask[Private->BitsPerPixel]; in EGifPutPixel()
543 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutExtensionLeader() local
545 if (!IS_WRITEABLE(Private)) { in EGifPutExtensionLeader()
567 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutExtensionBlock() local
569 if (!IS_WRITEABLE(Private)) { in EGifPutExtensionBlock()
589 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutExtensionTrailer() local
591 if (!IS_WRITEABLE(Private)) { in EGifPutExtensionTrailer()
617 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutExtension() local
619 if (!IS_WRITEABLE(Private)) { in EGifPutExtension()
700 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutCode() local
702 if (!IS_WRITEABLE(Private)) { in EGifPutCode()
729 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in EGifPutCodeNext() local
743 Private->PixelCount = 0; /* And local info. indicate image read. */ in EGifPutCodeNext()
756 GifFilePrivateType *Private; in EGifCloseFile() local
762 Private = (GifFilePrivateType *) GifFile->Private; in EGifCloseFile()
763 if (Private == NULL) in EGifCloseFile()
765 if (!IS_WRITEABLE(Private)) { in EGifCloseFile()
771 File = Private->File; in EGifCloseFile()
784 if (Private) { in EGifCloseFile()
785 if (Private->HashTable) { in EGifCloseFile()
786 free((char *) Private->HashTable); in EGifCloseFile()
788 free((char *) Private); in EGifCloseFile()
831 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifSetupCompress() local
846 Private->Buf[0] = 0; /* Nothing was output yet. */ in EGifSetupCompress()
847 Private->BitsPerPixel = BitsPerPixel; in EGifSetupCompress()
848 Private->ClearCode = (1 << BitsPerPixel); in EGifSetupCompress()
849 Private->EOFCode = Private->ClearCode + 1; in EGifSetupCompress()
850 Private->RunningCode = Private->EOFCode + 1; in EGifSetupCompress()
851 Private->RunningBits = BitsPerPixel + 1; /* Number of bits per code. */ in EGifSetupCompress()
852 Private->MaxCode1 = 1 << Private->RunningBits; /* Max. code + 1. */ in EGifSetupCompress()
853 Private->CrntCode = FIRST_CODE; /* Signal that this is first one! */ in EGifSetupCompress()
854 Private->CrntShiftState = 0; /* No information in CrntShiftDWord. */ in EGifSetupCompress()
855 Private->CrntShiftDWord = 0; in EGifSetupCompress()
858 _ClearHashTable(Private->HashTable); in EGifSetupCompress()
860 if (EGifCompressOutput(GifFile, Private->ClearCode) == GIF_ERROR) { in EGifSetupCompress()
882 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifCompressLine() local
884 HashTable = Private->HashTable; in EGifCompressLine()
886 if (Private->CrntCode == FIRST_CODE) /* Its first time! */ in EGifCompressLine()
889 CrntCode = Private->CrntCode; /* Get last code in compression. */ in EGifCompressLine()
915 if (Private->RunningCode >= LZ_MAX_CODE) { in EGifCompressLine()
917 if (EGifCompressOutput(GifFile, Private->ClearCode) in EGifCompressLine()
922 Private->RunningCode = Private->EOFCode + 1; in EGifCompressLine()
923 Private->RunningBits = Private->BitsPerPixel + 1; in EGifCompressLine()
924 Private->MaxCode1 = 1 << Private->RunningBits; in EGifCompressLine()
928 _InsertHashTable(HashTable, NewKey, Private->RunningCode++); in EGifCompressLine()
935 Private->CrntCode = CrntCode; in EGifCompressLine()
937 if (Private->PixelCount == 0) { in EGifCompressLine()
943 if (EGifCompressOutput(GifFile, Private->EOFCode) == GIF_ERROR) { in EGifCompressLine()
966 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; in EGifCompressOutput() local
970 while (Private->CrntShiftState > 0) { in EGifCompressOutput()
972 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
973 Private->CrntShiftDWord & 0xff) == GIF_ERROR) in EGifCompressOutput()
975 Private->CrntShiftDWord >>= 8; in EGifCompressOutput()
976 Private->CrntShiftState -= 8; in EGifCompressOutput()
978 Private->CrntShiftState = 0; /* For next time. */ in EGifCompressOutput()
979 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
983 Private->CrntShiftDWord |= ((long)Code) << Private->CrntShiftState; in EGifCompressOutput()
984 Private->CrntShiftState += Private->RunningBits; in EGifCompressOutput()
985 while (Private->CrntShiftState >= 8) { in EGifCompressOutput()
987 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
988 Private->CrntShiftDWord & 0xff) == GIF_ERROR) in EGifCompressOutput()
990 Private->CrntShiftDWord >>= 8; in EGifCompressOutput()
991 Private->CrntShiftState -= 8; in EGifCompressOutput()
997 if (Private->RunningCode >= Private->MaxCode1 && Code <= 4095) { in EGifCompressOutput()
998 Private->MaxCode1 = 1 << ++Private->RunningBits; in EGifCompressOutput()