Lines Matching refs:Code
42 #define COMMENT_EXT_FUNC_CODE 0xfe /* Extension function code for
55 static int DGifGetPrefixChar(GifPrefixType *Prefix, int Code, int ClearCode);
56 static int DGifDecompressInput(GifFileType *GifFile, int *Code);
636 * Get the image code in compressed form. This routine can be called if the
661 * Continue to get the image code in compressed form. This routine should be
704 READ(GifFile, &CodeSize, 1); /* Read Code size from file. */
712 Private->RunningBits = BitsPerPixel + 1; /* Number of bits per code. */
713 Private->MaxCode1 = 1 << Private->RunningBits; /* Max. code + 1. */
767 * decoding as soon as we got all the pixel, or EOF code will
783 /* Its regular code - if in pixel range simply add it to output
790 /* Its a code to needed to be traced: trace the linked list
795 /* Only allowed if CrntCode is exactly the running code:
797 * prefix code is last code and the suffix char is
798 * exactly the prefix of last code! */
838 /* Only allowed if CrntCode is exactly the running code:
840 * prefix code is last code and the suffix char is
841 * exactly the prefix of last code! */
861 * not code, but a pixel value (less than ClearCode). Returns that pixel value.
867 int Code,
872 while (Code > ClearCode && i++ <= LZ_MAX_CODE) {
873 if (Code > LZ_MAX_CODE) {
876 Code = Prefix[Code];
878 return Code;
882 * Interface for accessing the LZ codes directly. Set Code to the real code
883 * (12bits), or to -1 if EOF code is returned.
887 int *Code) {
898 if (DGifDecompressInput(GifFile, Code) == GIF_ERROR)
901 if (*Code == Private->EOFCode) {
908 *Code = -1;
909 } else if (*Code == Private->ClearCode) {
927 int *Code) {
938 code. */
945 /* Needs to get more bytes from input stream for next code: */
953 *Code = Private->CrntShiftDWord & CodeMasks[Private->RunningBits];
958 /* If code cannot fit into RunningBits bits, must raise its size. Note
960 * If we're using LZ_BITS bits already and we're at the max code, just
990 * says the LZW termination code should come first. Therefore we
1091 * instead? Have to check if the present writing code can handle that as