Home | History | Annotate | Download | only in giflib

Lines Matching refs:Image

288  This routine should be called before any attempt to read an image.
327 This routine should be called before any attempt to read an image.
328 Note it is assumed the Image desc. header has been read.
344 if (DGifGetWord(GifFile, &GifFile->Image.Left) == GIF_ERROR ||
345 DGifGetWord(GifFile, &GifFile->Image.Top) == GIF_ERROR ||
346 DGifGetWord(GifFile, &GifFile->Image.Width) == GIF_ERROR ||
347 DGifGetWord(GifFile, &GifFile->Image.Height) == GIF_ERROR)
351 GifFreeMapObject(GifFile->Image.ColorMap);
352 GifFile->Image.ColorMap = NULL;
356 GifFile->Image.Interlace = (Buf[0] & 0x40) ? true : false;
359 if (GifFile->Image.ColorMap) {
360 GifFreeMapObject(GifFile->Image.ColorMap);
361 GifFile->Image.ColorMap = NULL;
363 /* Does this image have local color map? */
367 GifFile->Image.ColorMap = GifMakeMapObject(1 << BitsPerPixel, NULL);
368 if (GifFile->Image.ColorMap == NULL) {
373 /* Get the image local color map: */
374 for (i = 0; i < GifFile->Image.ColorMap->ColorCount; i++) {
376 GifFreeMapObject(GifFile->Image.ColorMap);
378 GifFile->Image.ColorMap = NULL;
381 GifFile->Image.ColorMap->Colors[i].Red = Buf[0];
382 GifFile->Image.ColorMap->Colors[i].Green = Buf[1];
383 GifFile->Image.ColorMap->Colors[i].Blue = Buf[2];
403 memcpy(&sp->ImageDesc, &GifFile->Image, sizeof(GifImageDesc));
404 if (GifFile->Image.ColorMap != NULL) {
406 GifFile->Image.ColorMap->ColorCount,
407 GifFile->Image.ColorMap->Colors);
419 Private->PixelCount = (long)GifFile->Image.Width *
420 (long)GifFile->Image.Height;
444 LineLen = GifFile->Image.Width;
455 * rest of image until an empty block (size 0)
492 * rest of image until an empty block (size 0)
586 Extract the Graphics Control Block for a saved image, if it exists.
622 if (GifFile->Image.ColorMap) {
623 GifFreeMapObject(GifFile->Image.ColorMap);
624 GifFile->Image.ColorMap = NULL;
683 Get the image code in compressed form. This routine can be called if the
706 Continue to get the image code in compressed form. This routine should be
734 Private->PixelCount = 0; /* And local info. indicate image read. */
741 Setup the LZ decompression for this image:
777 order the complete the whole image.
854 /* Now (if image is O.K.) we should not get a NO_SUCH_CODE
856 * defective image, we use StackPtr as loop counter and stop
902 If image is defective, we might loop here forever, so we limit the loops to
903 the maximum possible if image O.k. - LZ_MAX_CODE times.
976 /* The image can't contain more than LZ_BITS per code. */
1083 /* Allocate memory for the image */
1103 * The way an interlaced image should be read -
1108 /* Need to perform 4 passes on the image */