23 #define CDF_ENDIAN_LITTLE 0
24 #define CDF_ENDIAN_BIG 1
26 #define CDF_DATA_FLOAT 0
62 #define CDF_SUBVERSION 0
63 #define CDF_TILE_SIZE 64
123 FILE *f = cdf->
readf;
133 if (memcmp(header->
ID,
"BCDF",
sizeof(header->
ID)) != 0) {
303 if (&cdf->
layer[
a] == blay) {
435 cdf->
layer = newlayer;
#define CDF_LAYER_NAME_MAX
struct CDataFileLayer CDataFileLayer
BLI_INLINE void BLI_endian_switch_uint64(uint64_t *val) ATTR_NONNULL(1)
void BLI_endian_switch_float_array(float *val, int size) ATTR_NONNULL(1)
BLI_INLINE void BLI_endian_switch_int32(int *val) ATTR_NONNULL(1)
File and directory operations.
FILE * BLI_fopen(const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int BLI_delete(const char *file, bool dir, bool recursive) ATTR_NONNULL()
int BLI_fseek(FILE *stream, int64_t offset, int whence)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
struct CDataFileHeader CDataFileHeader
void cdf_remove(const char *filepath)
#define CDF_ENDIAN_LITTLE
bool cdf_write_open(CDataFile *cdf, const char *filepath)
static int cdf_endian(void)
static bool cdf_read_header(CDataFile *cdf)
bool cdf_read_data(CDataFile *cdf, unsigned int size, void *data)
bool cdf_write_layer(CDataFile *UNUSED(cdf), CDataFileLayer *UNUSED(blay))
static bool cdf_write_header(CDataFile *cdf)
struct CDataFileImageHeader CDataFileImageHeader
void cdf_read_close(CDataFile *cdf)
CDataFile * cdf_create(int type)
void cdf_write_close(CDataFile *cdf)
void cdf_free(CDataFile *cdf)
bool cdf_read_layer(CDataFile *cdf, CDataFileLayer *blay)
CDataFileLayer * cdf_layer_add(CDataFile *cdf, int type, const char *name, size_t datasize)
CDataFileLayer * cdf_layer_find(CDataFile *cdf, int type, const char *name)
bool cdf_read_open(CDataFile *cdf, const char *filepath)
bool cdf_write_data(CDataFile *cdf, unsigned int size, void *data)
struct CDataFileMeshHeader CDataFileMeshHeader
depth_tx normal_tx diffuse_light_tx specular_light_tx volume_light_tx environment_tx ambient_occlusion_tx aov_value_tx in_weight_img image(1, GPU_R32F, Qualifier::WRITE, ImageType::FLOAT_2D_ARRAY, "out_weight_img") .image(3
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
void(* MEM_freeN)(void *vmemh)
void *(* MEM_calloc_arrayN)(size_t len, size_t size, const char *str)
void *(* MEM_callocN)(size_t len, const char *str)
unsigned __int64 uint64_t
char name[CDF_LAYER_NAME_MAX]
union CDataFile::@88 btype
CDataFileImageHeader image