Home | History | Annotate | Download | only in giflib

Lines Matching refs:READ

46 #define READ(_gif,_buf,_len)                                     \
47 (((GifFilePrivateType*)_gif->Private)->Read ? \
48 ((GifFilePrivateType*)_gif->Private)->Read(_gif,_buf,_len) : \
62 * Open a new gif file for read, given by its name.
128 Private->Read = 0; /* don't use alternate input method (TVT) */
132 if (READ(GifFile, Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) {
196 Private->Read = readFunc; /* TVT */
200 if (READ(GifFile, Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) {
250 if (READ(GifFile, Buf, 3) != 3) {
267 if (READ(GifFile, Buf, 3) != 3) {
285 * This routine should be called before any attempt to read an image.
300 if (READ(GifFile, &Buf, 1) != 1) {
325 * This routine should be called before any attempt to read an image.
326 * Note it is assumed the Image desc. header (',') has been read.
347 if (READ(GifFile, Buf, 1) != 1) {
368 if (READ(GifFile, Buf, 3) != 3) {
512 * Note it is assumed the Extension desc. header ('!') has been read.
528 if (READ(GifFile, &Buf, 1) != 1) {
549 if (READ(GifFile, &Buf, 1) != 1) {
556 if (READ(GifFile, &((*Extension)[1]), Buf) != Buf) {
626 if (READ(GifFile, c, 2) != 2) {
672 if (READ(GifFile, &Buf, 1) != 1) {
680 if (READ(GifFile, &((*CodeBlock)[1]), Buf) != Buf) {
687 Private->PixelCount = 0; /* And local info. indicate image read. */
704 READ(GifFile, &CodeSize, 1); /* Read Code size from file. */
756 /* Let pop the stack off before continueing to read the gif file: */
768 * not be read at all, and DGifGetLine/Pixel clean everything. */
923 * Returns GIF_OK if read succesfully.
973 * This routines read one gif data block at a time and buffers it internally
975 * The routine returns the next byte from its internal buffer (or read next
984 /* Needs to read the next buffer - this one is empty: */
985 if (READ(GifFile, Buf, 1) != 1) {
997 if (READ(GifFile, &Buf[1], Buf[0]) != Buf[0]) {
1002 Buf[1] = 2; /* We use now the second place as last char read! */