Blender  V3.3
Macros
imbuf.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <math.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/mman.h>

Go to the source code of this file.

Macros

#define O_BINARY   0
 
#define SWAP_SHORT(x)   (((x & 0xff) << 8) | ((x >> 8) & 0xff))
 
#define SWAP_LONG(x)    (((x) << 24) | (((x)&0xff00) << 8) | (((x) >> 8) & 0xff00) | (((x) >> 24) & 0xff))
 
#define ENDIAN_NOP(x)   (x)
 
#define LITTLE_SHORT   ENDIAN_NOP
 
#define LITTLE_LONG   ENDIAN_NOP
 
#define BIG_SHORT   SWAP_SHORT
 
#define BIG_LONG   SWAP_LONG
 
#define IMB_DPI_DEFAULT   72.0f
 

Macro Definition Documentation

◆ BIG_LONG

#define BIG_LONG   SWAP_LONG

Definition at line 43 of file imbuf.h.

◆ BIG_SHORT

#define BIG_SHORT   SWAP_SHORT

Definition at line 42 of file imbuf.h.

◆ ENDIAN_NOP

#define ENDIAN_NOP (   x)    (x)

Definition at line 32 of file imbuf.h.

◆ IMB_DPI_DEFAULT

#define IMB_DPI_DEFAULT   72.0f

Definition at line 46 of file imbuf.h.

◆ LITTLE_LONG

#define LITTLE_LONG   ENDIAN_NOP

Definition at line 41 of file imbuf.h.

◆ LITTLE_SHORT

#define LITTLE_SHORT   ENDIAN_NOP

Definition at line 40 of file imbuf.h.

◆ O_BINARY

#define O_BINARY   0

Definition at line 25 of file imbuf.h.

◆ SWAP_LONG

#define SWAP_LONG (   x)     (((x) << 24) | (((x)&0xff00) << 8) | (((x) >> 8) & 0xff00) | (((x) >> 24) & 0xff))

Definition at line 29 of file imbuf.h.

◆ SWAP_SHORT

#define SWAP_SHORT (   x)    (((x & 0xff) << 8) | ((x >> 8) & 0xff))

Definition at line 28 of file imbuf.h.