24# define PATHSEP_CHAR '\\'
26# define PATHSEP_CHAR '/'
187 const char *creator);
204 return (
x >> 8) | (
x << 8);
212 return (
x >> 24) | ((
x << 8) & 0x00FF0000) | ((
x >> 8) & 0x0000FF00) | (
x << 24);
226 dat2.b[0] = dat1.b[3];
227 dat2.b[1] = dat1.b[2];
228 dat2.b[2] = dat1.b[1];
229 dat2.b[3] = dat1.b[0];
264 if (value > (1.0f - 0.5f / (
float)
max)) {
267 return (
unsigned int)(((
float)
max * value) + 0.5f);
BMesh const char void * data
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
BLI_INLINE float clamp_float(float x, float low, float high)
BLI_INLINE unsigned int clamp_uint(unsigned int x, unsigned int low, unsigned int high)
int logImageIsDpx(const void *buffer, unsigned int size)
LogImageFile * logImageOpenFromFile(const char *filepath, int cineon)
void logImageSetVerbose(int verbosity)
int logImageSetDataRGBA(LogImageFile *logImage, const float *data, int dataIsLinearRGB)
size_t getRowLength(size_t width, const LogImageElement *logElement)
@ descriptor_UserDefined3Elt
@ descriptor_UserDefined6Elt
@ descriptor_UserDefined5Elt
@ descriptor_UserDefined8Elt
@ descriptor_UserDefined4Elt
@ descriptor_UserDefined7Elt
@ descriptor_UserDefined2Elt
BLI_INLINE float swap_float(float x, int swap)
@ transfer_PrintingDensity
BLI_INLINE unsigned short swap_ushort(unsigned short x, int swap)
void logImageClose(LogImageFile *logImage)
LogImageFile * logImageOpenFromMemory(const unsigned char *buffer, unsigned int size)
LogImageFile * logImageCreate(const char *filepath, int cineon, int width, int height, int bitsPerSample, int isLogarithmic, int hasAlpha, int referenceWhite, int referenceBlack, float gamma, const char *creator)
BLI_INLINE unsigned int swap_uint(unsigned int x, int swap)
BLI_INLINE unsigned int float_uint(float value, unsigned int max)
int logImageGetDataRGBA(LogImageFile *logImage, float *data, int dataIsLinearRGB)
int logImageIsCineon(const void *buffer, unsigned int size)
void logImageGetSize(const LogImageFile *logImage, int *width, int *height, int *depth)
unsigned char * memBuffer
unsigned char * memCursor
LogImageElement element[8]