Blender
V3.3
|
#include <math.h>
#include "BLI_fileops.h"
#include "BLI_utildefines.h"
#include "imbuf.h"
#include "IMB_filetype.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_colormanagement.h"
#include "IMB_colormanagement_intern.h"
Go to the source code of this file.
Classes | |
struct | BMPINFOHEADER |
Macros | |
#define | BMP_FILEHEADER_SIZE 14 |
#define | CHECK_HEADER_FIELD(_mem, _field) ((_mem[0] == _field[0]) && (_mem[1] == _field[1])) |
#define | CHECK_HEADER_FIELD_BMP(_mem) |
Typedefs | |
typedef struct BMPINFOHEADER | BMPINFOHEADER |
Functions | |
static bool | checkbmp (const uchar *mem, const size_t size) |
bool | imb_is_a_bmp (const uchar *buf, size_t size) |
static size_t | imb_bmp_calc_row_size_in_bytes (size_t x, size_t depth) |
ImBuf * | imb_bmp_decode (const uchar *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE]) |
static int | putIntLSB (uint ui, FILE *ofile) |
static int | putShortLSB (ushort us, FILE *ofile) |
bool | imb_savebmp (ImBuf *ibuf, const char *filepath, int UNUSED(flags)) |
#define CHECK_HEADER_FIELD | ( | _mem, | |
_field | |||
) | ((_mem[0] == _field[0]) && (_mem[1] == _field[1])) |
#define CHECK_HEADER_FIELD_BMP | ( | _mem | ) |
typedef struct BMPINFOHEADER BMPINFOHEADER |
Definition at line 59 of file bmp.c.
References BMPINFOHEADER::biBitCount, BMPINFOHEADER::biCompression, BMPINFOHEADER::biSize, BMP_FILEHEADER_SIZE, CHECK_HEADER_FIELD_BMP, LITTLE_LONG, LITTLE_SHORT, and size().
Referenced by imb_bmp_decode(), and imb_is_a_bmp().
|
static |
Definition at line 105 of file bmp.c.
References BMPINFOHEADER::biBitCount, BMPINFOHEADER::biHeight, BMPINFOHEADER::biSize, BMPINFOHEADER::biWidth, BMPINFOHEADER::biXPelsPerMeter, BMPINFOHEADER::biYPelsPerMeter, BMP_FILEHEADER_SIZE, checkbmp(), col, COLOR_ROLE_DEFAULT_BYTE, colorspace_set_default_role(), ELEM, ImBuf::ftype, IB_rect, IB_test, if(), IM_MAX_SPACE, IMB_allocImBuf(), imb_bmp_calc_row_size_in_bytes(), IMB_FTYPE_BMP, LITTLE_LONG, LITTLE_SHORT, NULL, ImBuf::ppm, ImBuf::rect, size(), x, and y.
Definition at line 93 of file bmp.c.
References checkbmp(), and size().
Definition at line 293 of file bmp.c.
References BLI_assert, BLI_fopen(), BMP_FILEHEADER_SIZE, data, ELEM, NULL, ImBuf::planes, ImBuf::ppm, ptr, putIntLSB(), putShortLSB(), ImBuf::rect, t, x, ImBuf::x, y, and ImBuf::y.
|
static |
Definition at line 279 of file bmp.c.
Referenced by imb_savebmp().
|
static |
Definition at line 287 of file bmp.c.
Referenced by imb_savebmp().