Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

bmp.c File Reference

#include "BLI_blenlib.h"
#include "imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_allocimbuf.h"
#include "IMB_filetype.h"

Go to the source code of this file.

Classes

struct  BMPINFOHEADER
struct  BMPHEADER

Defines

#define BMP_FILEHEADER_SIZE   14

Typedefs

typedef struct BMPINFOHEADER BMPINFOHEADER
typedef struct BMPHEADER BMPHEADER

Functions

static int checkbmp (unsigned char *mem)
int imb_is_a_bmp (unsigned char *buf)
struct ImBufimb_bmp_decode (unsigned char *mem, size_t size, int flags)
static int putIntLSB (unsigned int ui, FILE *ofile)
static int putShortLSB (unsigned short us, FILE *ofile)
int imb_savebmp (struct ImBuf *ibuf, const char *name, int flags)

Detailed Description

Definition in file bmp.c.


Define Documentation

#define BMP_FILEHEADER_SIZE   14

Definition at line 69 of file bmp.c.

Referenced by checkbmp(), imb_bmp_decode(), and imb_savebmp().


Typedef Documentation

typedef struct BMPHEADER BMPHEADER
typedef struct BMPINFOHEADER BMPINFOHEADER

Function Documentation

static int checkbmp ( unsigned char *  mem) [static]
struct ImBuf* imb_bmp_decode ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
int imb_is_a_bmp ( unsigned char *  buf)

Definition at line 102 of file bmp.c.

References checkbmp().

int imb_savebmp ( struct ImBuf ibuf,
const char *  name,
int  flags 
)

Definition at line 203 of file bmp.c.

References BMP_FILEHEADER_SIZE, data, putIntLSB(), putShortLSB(), ImBuf::rect, ImBuf::x, and ImBuf::y.

static int putIntLSB ( unsigned int  ui,
FILE *  ofile 
) [static]

Definition at line 188 of file bmp.c.

Referenced by imb_savebmp().

static int putShortLSB ( unsigned short  us,
FILE *  ofile 
) [static]

Definition at line 196 of file bmp.c.

Referenced by imb_savebmp().