Lines Matching refs:Buf
40 static int EGifBufferedOutput(GifFileType * GifFile, GifByteType * Buf,
268 GifByteType Buf[3]; in EGifPutScreenDesc() local
318 Buf[0] = (ColorMap ? 0x80 : 0x00) | /* Yes/no global colormap */ in EGifPutScreenDesc()
323 Buf[0] |= 0x08; in EGifPutScreenDesc()
324 Buf[1] = BackGround; /* Index into the ColorTable for background color */ in EGifPutScreenDesc()
325 Buf[2] = GifFile->AspectByte; /* Pixel Aspect Ratio */ in EGifPutScreenDesc()
326 InternalWrite(GifFile, Buf, 3); in EGifPutScreenDesc()
333 Buf[0] = ColorMap->Colors[i].Red; in EGifPutScreenDesc()
334 Buf[1] = ColorMap->Colors[i].Green; in EGifPutScreenDesc()
335 Buf[2] = ColorMap->Colors[i].Blue; in EGifPutScreenDesc()
336 if (InternalWrite(GifFile, Buf, 3) != 3) { in EGifPutScreenDesc()
362 GifByteType Buf[3]; in EGifPutImageDesc() local
397 Buf[0] = DESCRIPTOR_INTRODUCER; /* Image separator character. */ in EGifPutImageDesc()
398 InternalWrite(GifFile, Buf, 1); in EGifPutImageDesc()
403 Buf[0] = (ColorMap ? 0x80 : 0x00) | in EGifPutImageDesc()
406 InternalWrite(GifFile, Buf, 1); in EGifPutImageDesc()
413 Buf[0] = ColorMap->Colors[i].Red; in EGifPutImageDesc()
414 Buf[1] = ColorMap->Colors[i].Green; in EGifPutImageDesc()
415 Buf[2] = ColorMap->Colors[i].Blue; in EGifPutImageDesc()
416 if (InternalWrite(GifFile, Buf, 3) != 3) { in EGifPutImageDesc()
546 GifByteType Buf[3]; in EGifPutExtensionLeader() local
555 Buf[0] = EXTENSION_INTRODUCER; in EGifPutExtensionLeader()
556 Buf[1] = ExtCode; in EGifPutExtensionLeader()
557 InternalWrite(GifFile, Buf, 2); in EGifPutExtensionLeader()
570 GifByteType Buf; in EGifPutExtensionBlock() local
579 Buf = ExtLen; in EGifPutExtensionBlock()
580 InternalWrite(GifFile, &Buf, 1); in EGifPutExtensionBlock()
592 GifByteType Buf; in EGifPutExtensionTrailer() local
602 Buf = 0; in EGifPutExtensionTrailer()
603 InternalWrite(GifFile, &Buf, 1); in EGifPutExtensionTrailer()
620 GifByteType Buf[3]; in EGifPutExtension() local
632 Buf[0] = EXTENSION_INTRODUCER; in EGifPutExtension()
633 Buf[1] = ExtCode; /* Extension Label */ in EGifPutExtension()
634 Buf[2] = ExtLen; /* Extension length */ in EGifPutExtension()
635 InternalWrite(GifFile, Buf, 3); in EGifPutExtension()
638 Buf[0] = 0; in EGifPutExtension()
639 InternalWrite(GifFile, Buf, 1); in EGifPutExtension()
732 GifByteType Buf; in EGifPutCodeNext() local
742 Buf = 0; in EGifPutCodeNext()
743 if (InternalWrite(GifFile, &Buf, 1) != 1) { in EGifPutCodeNext()
759 GifByteType Buf; in EGifCloseFile() local
779 Buf = TERMINATOR_INTRODUCER; in EGifCloseFile()
780 InternalWrite(GifFile, &Buf, 1); in EGifCloseFile()
833 GifByteType Buf; in EGifSetupCompress() local
846 Buf = BitsPerPixel = (BitsPerPixel < 2 ? 2 : BitsPerPixel); in EGifSetupCompress()
847 InternalWrite(GifFile, &Buf, 1); /* Write the Code size to file. */ in EGifSetupCompress()
849 Private->Buf[0] = 0; /* Nothing was output yet. */ in EGifSetupCompress()
975 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
982 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
990 if (EGifBufferedOutput(GifFile, Private->Buf, in EGifCompressOutput()
1015 GifByteType *Buf, in EGifBufferedOutput() argument
1020 if (Buf[0] != 0 in EGifBufferedOutput()
1021 && InternalWrite(GifFile, Buf, Buf[0] + 1) != (unsigned)(Buf[0] + 1)) { in EGifBufferedOutput()
1026 Buf[0] = 0; in EGifBufferedOutput()
1027 if (InternalWrite(GifFile, Buf, 1) != 1) { in EGifBufferedOutput()
1032 if (Buf[0] == 255) { in EGifBufferedOutput()
1034 if (InternalWrite(GifFile, Buf, Buf[0] + 1) != (unsigned)(Buf[0] + 1)) { in EGifBufferedOutput()
1038 Buf[0] = 0; in EGifBufferedOutput()
1040 Buf[++Buf[0]] = c; in EGifBufferedOutput()