Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/IMB_imbuf_types.h
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| * context. It requires an external jpeg module, and the avi-module | * context. It requires an external jpeg module, and the avi-module | ||||
| * (also external code) in order to function correctly. | * (also external code) in order to function correctly. | ||||
| * | * | ||||
| * This file contains types and some constants that go with them. Most | * This file contains types and some constants that go with them. Most | ||||
| * are self-explanatory (e.g. IS_amiga tests whether the buffer | * are self-explanatory (e.g. IS_amiga tests whether the buffer | ||||
| * contains an Amiga-format file). | * contains an Amiga-format file). | ||||
| */ | */ | ||||
| struct ImMetaData; | struct IDProperty; | ||||
| #define IB_MIPMAP_LEVELS 20 | #define IB_MIPMAP_LEVELS 20 | ||||
| #define IB_FILENAME_SIZE 1024 | #define IB_FILENAME_SIZE 1024 | ||||
| typedef struct DDSData { | typedef struct DDSData { | ||||
| unsigned int fourcc; /* DDS fourcc info */ | unsigned int fourcc; /* DDS fourcc info */ | ||||
| unsigned int nummipmaps; /* The number of mipmaps in the dds file */ | unsigned int nummipmaps; /* The number of mipmaps in the dds file */ | ||||
| unsigned char *data; /* The compressed image data */ | unsigned char *data; /* The compressed image data */ | ||||
| ▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | typedef struct ImBuf { | ||||
| /* mipmapping */ | /* mipmapping */ | ||||
| struct ImBuf *mipmap[IB_MIPMAP_LEVELS]; /* MipMap levels, a series of halved images */ | struct ImBuf *mipmap[IB_MIPMAP_LEVELS]; /* MipMap levels, a series of halved images */ | ||||
| int miptot, miplevel; | int miptot, miplevel; | ||||
| /* externally used data */ | /* externally used data */ | ||||
| int index; /* reference index for ImBuf lists */ | int index; /* reference index for ImBuf lists */ | ||||
| int userflags; /* used to set imbuf to dirty and other stuff */ | int userflags; /* used to set imbuf to dirty and other stuff */ | ||||
| struct ImMetaData *metadata; /* image metadata */ | struct IDProperty *metadata; /* image metadata */ | ||||
| void *userdata; /* temporary storage, only used by baking at the moment */ | void *userdata; /* temporary storage, only used by baking at the moment */ | ||||
| /* file information */ | /* file information */ | ||||
| int ftype; /* file type we are going to save as */ | int ftype; /* file type we are going to save as */ | ||||
| char name[IB_FILENAME_SIZE]; /* filename associated with this image */ | char name[IB_FILENAME_SIZE]; /* filename associated with this image */ | ||||
| char cachename[IB_FILENAME_SIZE]; /* full filename used for reading from cache */ | char cachename[IB_FILENAME_SIZE]; /* full filename used for reading from cache */ | ||||
| /* memory cache limiter */ | /* memory cache limiter */ | ||||
| ▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines | |||||