Blender V2.61 - r43446
Defines | Typedefs

imbuf.h File Reference

#include <stdlib.h>
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <string.h>
#include <math.h>
#include <sys/mman.h>

Go to the source code of this file.

Defines

#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 TRUE   1
#define FALSE   0

Typedefs

typedef unsigned char uchar

Detailed Description

Definition in file imbuf.h.


Define Documentation

#define BIG_LONG   SWAP_LONG

Definition at line 73 of file imbuf.h.

Referenced by handle_app1(), IMB_ispic_name(), imb_loadtarga(), test_endian_zbuf(), and write_jpeg().

#define BIG_SHORT   SWAP_SHORT

Definition at line 72 of file imbuf.h.

#define ENDIAN_NOP (   x)    (x)

Definition at line 62 of file imbuf.h.

#define FALSE   0

Definition at line 79 of file imbuf.h.

#define LITTLE_LONG   ENDIAN_NOP

Definition at line 71 of file imbuf.h.

#define LITTLE_SHORT   ENDIAN_NOP

Definition at line 70 of file imbuf.h.

Referenced by checkbmp(), and imb_bmp_decode().

#define O_BINARY   0

Definition at line 56 of file imbuf.h.

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

Definition at line 60 of file imbuf.h.

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

Definition at line 59 of file imbuf.h.

#define TRUE   1

Definition at line 78 of file imbuf.h.


Typedef Documentation

typedef unsigned char uchar

Definition at line 76 of file imbuf.h.