Logo Search packages:      
Sourcecode: blender version File versions

struct ImBuf* IMB_testiffname ( char *  naam,
int  flags 
) [read]

Attention:
Defined in readimage.c

Definition at line 278 of file readimage.c.

References IMB_loadifffile(), IMB_testiffname(), and ImBuf::name.

Referenced by IMB_testiffname().

                                                    {
      int file;
      struct ImBuf *ibuf;

      flags |= IB_test;
      file = open(naam,O_BINARY|O_RDONLY);

      if (file<=0) return (0);

      ibuf=IMB_loadifffile(file,flags);
      if (ibuf) {
            strncpy(ibuf->name, naam, sizeof(ibuf->name));
      }
      close(file);
      return(ibuf);
}


Generated by  Doxygen 1.6.0   Back to index