Lines Matching refs:Private
47 (((GifFilePrivateType*)_gif->Private)->Read ? \
48 ((GifFilePrivateType*)_gif->Private)->Read(_gif,_buf,_len) : \
49 fread(_buf,1,_len,((GifFilePrivateType*)_gif->Private)->File))
94 GifFilePrivateType *Private; in DGifOpenFileHandle() local
106 Private = (GifFilePrivateType *)malloc(sizeof(GifFilePrivateType)); in DGifOpenFileHandle()
107 if (Private == NULL) { in DGifOpenFileHandle()
124 GifFile->Private = (VoidPtr)Private; in DGifOpenFileHandle()
125 Private->FileHandle = FileHandle; in DGifOpenFileHandle()
126 Private->File = f; in DGifOpenFileHandle()
127 Private->FileState = FILE_STATE_READ; in DGifOpenFileHandle()
128 Private->Read = 0; /* don't use alternate input method (TVT) */ in DGifOpenFileHandle()
135 free((char *)Private); in DGifOpenFileHandle()
146 free((char *)Private); in DGifOpenFileHandle()
153 free((char *)Private); in DGifOpenFileHandle()
174 GifFilePrivateType *Private; in DGifOpen() local
184 Private = (GifFilePrivateType *)malloc(sizeof(GifFilePrivateType)); in DGifOpen()
185 if (!Private) { in DGifOpen()
191 GifFile->Private = (VoidPtr)Private; in DGifOpen()
192 Private->FileHandle = 0; in DGifOpen()
193 Private->File = 0; in DGifOpen()
194 Private->FileState = FILE_STATE_READ; in DGifOpen()
196 Private->Read = readFunc; /* TVT */ in DGifOpen()
202 free((char *)Private); in DGifOpen()
212 free((char *)Private); in DGifOpen()
218 free((char *)Private); in DGifOpen()
237 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in DGifGetScreenDesc() local
239 if (!IS_READABLE(Private)) { in DGifGetScreenDesc()
292 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in DGifGetRecordType() local
294 if (!IS_READABLE(Private)) { in DGifGetRecordType()
333 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; in DGifGetImageDesc() local
336 if (!IS_READABLE(Private)) { in DGifGetImageDesc()
415 Private->PixelCount = (long)GifFile->Image.Width * in DGifGetImageDesc()
432 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; local
434 if (!IS_READABLE(Private)) {
444 if ((Private->PixelCount -= LineLen) > 0xffff0000UL) {
446 if ((Private->PixelCount -= LineLen) > 0xffff0000) {
453 if (Private->PixelCount == 0) {
475 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; local
477 if (!IS_READABLE(Private)) {
483 if (--Private->PixelCount > 0xffff0000UL)
485 if (--Private->PixelCount > 0xffff0000)
493 if (Private->PixelCount == 0) {
520 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; local
522 if (!IS_READABLE(Private)) {
547 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; local
554 *Extension = Private->Buf; /* Use private unused buffer. */
572 GifFilePrivateType *Private; local
578 Private = (GifFilePrivateType *) GifFile->Private;
580 if (!IS_READABLE(Private)) {
586 File = Private->File;
598 if (Private) {
599 free((char *)Private);
600 Private = NULL;
647 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; local
649 if (!IS_READABLE(Private)) {
655 *CodeSize = Private->BitsPerPixel;
670 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; local
678 *CodeBlock = Private->Buf; /* Use private unused buffer. */
686 Private->Buf[0] = 0; /* Make sure the buffer is empty! */
687 Private->PixelCount = 0; /* And local info. indicate image read. */
702 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; local
707 Private->Buf[0] = 0; /* Input Buffer empty. */
708 Private->BitsPerPixel = BitsPerPixel;
709 Private->ClearCode = (1 << BitsPerPixel);
710 Private->EOFCode = Private->ClearCode + 1;
711 Private->RunningCode = Private->EOFCode + 1;
712 Private->RunningBits = BitsPerPixel + 1; /* Number of bits per code. */
713 Private->MaxCode1 = 1 << Private->RunningBits; /* Max. code + 1. */
714 Private->StackPtr = 0; /* No pixels on the pixel stack. */
715 Private->LastCode = NO_SUCH_CODE;
716 Private->CrntShiftState = 0; /* No information in CrntShiftDWord. */
717 Private->CrntShiftDWord = 0;
719 Prefix = Private->Prefix;
741 GifFilePrivateType *Private = (GifFilePrivateType *) GifFile->Private; local
743 StackPtr = Private->StackPtr;
744 Prefix = Private->Prefix;
745 Suffix = Private->Suffix;
746 Stack = Private->Stack;
747 EOFCode = Private->EOFCode;
748 ClearCode = Private->ClearCode;
749 LastCode = Private->LastCode;
769 if (i != LineLen - 1 || Private->PixelCount != 0) {
778 Private->RunningCode = Private->EOFCode + 1;
779 Private->RunningBits = Private->BitsPerPixel + 1;
780 Private->MaxCode1 = 1 << Private->RunningBits;
781 LastCode = Private->LastCode = NO_SUCH_CODE;
799 if (CrntCode == Private->RunningCode - 2) {
801 Suffix[Private->RunningCode - 2] =
835 Prefix[Private->RunningCode - 2] = LastCode;
837 if (CrntCode == Private->RunningCode - 2) {
842 Suffix[Private->RunningCode - 2] =
845 Suffix[Private->RunningCode - 2] =
853 Private->LastCode = LastCode;
854 Private->StackPtr = StackPtr;
890 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; local
892 if (!IS_READABLE(Private)) {
901 if (*Code == Private->EOFCode) {
909 } else if (*Code == Private->ClearCode) {
911 Private->RunningCode = Private->EOFCode + 1;
912 Private->RunningBits = Private->BitsPerPixel + 1;
913 Private->MaxCode1 = 1 << Private->RunningBits;
929 GifFilePrivateType *Private = (GifFilePrivateType *)GifFile->Private; local
939 if (Private->RunningBits > LZ_BITS) {
944 while (Private->CrntShiftState < Private->RunningBits) {
946 if (DGifBufferedInput(GifFile, Private->Buf, &NextByte) == GIF_ERROR) {
949 Private->CrntShiftDWord |=
950 ((unsigned long)NextByte) << Private->CrntShiftState;
951 Private->CrntShiftState += 8;
953 *Code = Private->CrntShiftDWord & CodeMasks[Private->RunningBits];
955 Private->CrntShiftDWord >>= Private->RunningBits;
956 Private->CrntShiftState -= Private->RunningBits;
963 if (Private->RunningCode < LZ_MAX_CODE + 2 &&
964 ++Private->RunningCode > Private->MaxCode1 &&
965 Private->RunningBits < LZ_BITS) {
966 Private->MaxCode1 <<= 1;
967 Private->RunningBits++;