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

IMB_filetype.h File Reference

Go to the source code of this file.

Classes

struct  ImFileType

Defines

#define IM_FTYPE_FLOAT   1

Typedefs

typedef struct ImFileType ImFileType

Functions

void imb_filetypes_init (void)
void imb_filetypes_exit (void)
void imb_tile_cache_init (void)
void imb_tile_cache_exit (void)
void imb_loadtile (struct ImBuf *ibuf, int tx, int ty, unsigned int *rect)
void imb_tile_cache_tile_free (struct ImBuf *ibuf, int tx, int ty)
int imb_is_a_png (unsigned char *buf)
struct ImBufimb_loadpng (unsigned char *mem, size_t size, int flags)
int imb_savepng (struct ImBuf *ibuf, const char *name, int flags)
int imb_is_a_targa (unsigned char *buf)
struct ImBufimb_loadtarga (unsigned char *mem, size_t size, int flags)
int imb_savetarga (struct ImBuf *ibuf, const char *name, int flags)
int imb_is_a_iris (unsigned char *mem)
struct ImBufimb_loadiris (unsigned char *mem, size_t size, int flags)
int imb_saveiris (struct ImBuf *ibuf, const char *name, int flags)
int imb_is_a_jp2 (unsigned char *buf)
struct ImBufimb_jp2_decode (unsigned char *mem, size_t size, int flags)
int imb_savejp2 (struct ImBuf *ibuf, const char *name, int flags)
int imb_is_a_jpeg (unsigned char *mem)
int imb_savejpeg (struct ImBuf *ibuf, const char *name, int flags)
struct ImBufimb_load_jpeg (unsigned char *buffer, size_t size, int flags)
int imb_is_a_bmp (unsigned char *buf)
struct ImBufimb_bmp_decode (unsigned char *mem, size_t size, int flags)
int imb_savebmp (struct ImBuf *ibuf, const char *name, int flags)
struct ImBufimb_cocoaLoadImage (unsigned char *mem, size_t size, int flags)
short imb_cocoaSaveImage (struct ImBuf *ibuf, const char *name, int flags)
int imb_savecineon (struct ImBuf *buf, const char *name, int flags)
struct ImBufimb_loadcineon (unsigned char *mem, size_t size, int flags)
int imb_is_cineon (unsigned char *buf)
int imb_save_dpx (struct ImBuf *buf, const char *name, int flags)
struct ImBufimb_loaddpx (unsigned char *mem, size_t size, int flags)
int imb_is_dpx (unsigned char *buf)
int imb_is_a_hdr (unsigned char *buf)
struct ImBufimb_loadhdr (unsigned char *mem, size_t size, int flags)
int imb_savehdr (struct ImBuf *ibuf, const char *name, int flags)
void imb_inittiff (void)
int imb_is_a_tiff (unsigned char *buf)
struct ImBufimb_loadtiff (unsigned char *mem, size_t size, int flags)
void imb_loadtiletiff (struct ImBuf *ibuf, unsigned char *mem, size_t size, int tx, int ty, unsigned int *rect)
int imb_savetiff (struct ImBuf *ibuf, const char *name, int flags)
void * libtiff_findsymbol (char *name)

Variables

ImFileType IMB_FILE_TYPES []

Detailed Description

Definition in file IMB_filetype.h.


Define Documentation

#define IM_FTYPE_FLOAT   1

Definition at line 35 of file IMB_filetype.h.

Referenced by IMB_saveiff().


Typedef Documentation

typedef struct ImFileType ImFileType

Function Documentation

struct ImBuf* imb_bmp_decode ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
struct ImBuf* imb_cocoaLoadImage ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
short imb_cocoaSaveImage ( struct ImBuf ibuf,
const char *  name,
int  flags 
)
void imb_filetypes_exit ( void  )

Definition at line 102 of file filetype.c.

References ImFileType::exit, ImFileType::is_a, and direntry::type.

Referenced by IMB_exit().

void imb_filetypes_init ( void  )

Definition at line 93 of file filetype.c.

References ImFileType::init, ImFileType::is_a, and direntry::type.

Referenced by IMB_init().

void imb_inittiff ( void  )

Definition at line 488 of file tiff.c.

References G, G_DEBUG, and NULL.

int imb_is_a_bmp ( unsigned char *  buf)

Definition at line 102 of file bmp.c.

References checkbmp().

int imb_is_a_hdr ( unsigned char *  buf)

Definition at line 164 of file radiance_hdr.c.

Referenced by imb_loadhdr().

int imb_is_a_iris ( unsigned char *  mem)

Definition at line 237 of file iris.c.

References GS, GSS, and IMAGIC.

Referenced by imb_loadiris().

int imb_is_a_jp2 ( unsigned char *  buf)

Definition at line 64 of file jp2.c.

References check_jp2().

int imb_is_a_jpeg ( unsigned char *  mem)

Definition at line 83 of file jpeg.c.

Referenced by imb_load_jpeg().

int imb_is_a_png ( unsigned char *  buf)

Definition at line 58 of file png.c.

Referenced by imb_loadpng().

int imb_is_a_targa ( unsigned char *  buf)

Definition at line 339 of file targa.c.

References checktarga().

int imb_is_a_tiff ( unsigned char *  buf)

Definition at line 309 of file tiff.c.

References IMB_TIFF_NCB.

Referenced by imb_loadtiff().

int imb_is_cineon ( unsigned char *  buf)

Definition at line 200 of file cineon_dpx.c.

References cineonIsMemFileCineon().

Referenced by imb_loadcineon().

int imb_is_dpx ( unsigned char *  buf)

Definition at line 217 of file cineon_dpx.c.

References dpxIsMemFileCineon().

Referenced by imb_loaddpx().

struct ImBuf* imb_jp2_decode ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
struct ImBuf* imb_load_jpeg ( unsigned char *  buffer,
size_t  size,
int  flags 
) [read]
struct ImBuf* imb_loadcineon ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]

Definition at line 205 of file cineon_dpx.c.

References imb_is_cineon(), imb_load_dpx_cineon(), and NULL.

struct ImBuf* imb_loaddpx ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]

Definition at line 222 of file cineon_dpx.c.

References imb_is_dpx(), imb_load_dpx_cineon(), and NULL.

struct ImBuf* imb_loadhdr ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
struct ImBuf* imb_loadiris ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
struct ImBuf* imb_loadpng ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
struct ImBuf* imb_loadtarga ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
struct ImBuf* imb_loadtiff ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]

Loads a TIFF file.

Parameters:
mem,:Memory containing the TIFF file.
size,:Size of the mem buffer.
flags,:If flags has IB_test set then the file is not actually loaded, but all other operations take place.
Returns:
: A newly allocated ImBuf structure if successful, otherwise NULL.

Definition at line 505 of file tiff.c.

References ImBuf::flags, ImBuf::ftype, IB_premul, IB_test, IB_tilecache, imb_addtilesImBuf(), IMB_allocImBuf(), imb_is_a_tiff(), imb_read_tiff_pixels(), imb_tiff_client_open(), IMB_TIFF_NCB, ImBuf::mipmap, ImBuf::miptot, and NULL.

void imb_loadtile ( struct ImBuf ibuf,
int  tx,
int  ty,
unsigned int *  rect 
)

Definition at line 194 of file readimage.c.

References ImBuf::cachename, imb_loadtilefile(), and O_BINARY.

Referenced by imb_global_cache_tile_load().

void imb_loadtiletiff ( struct ImBuf ibuf,
unsigned char *  mem,
size_t  size,
int  tx,
int  ty,
unsigned int *  rect 
)
int imb_save_dpx ( struct ImBuf buf,
const char *  name,
int  flags 
)

Definition at line 212 of file cineon_dpx.c.

References imb_save_dpx_cineon().

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.

int imb_savecineon ( struct ImBuf buf,
const char *  name,
int  flags 
)

Definition at line 194 of file cineon_dpx.c.

References imb_save_dpx_cineon().

int imb_savehdr ( struct ImBuf ibuf,
const char *  name,
int  flags 
)
int imb_saveiris ( struct ImBuf ibuf,
const char *  name,
int  flags 
)
int imb_savejp2 ( struct ImBuf ibuf,
const char *  name,
int  flags 
)

Definition at line 671 of file jp2.c.

References error_callback(), ImBuf::ftype, ibuftoimage(), info_callback(), NULL, and warning_callback().

int imb_savejpeg ( struct ImBuf ibuf,
const char *  name,
int  flags 
)
int imb_savepng ( struct ImBuf ibuf,
const char *  name,
int  flags 
)
int imb_savetarga ( struct ImBuf ibuf,
const char *  name,
int  flags 
)
int imb_savetiff ( ImBuf ibuf,
const char *  name,
int  flags 
)

Saves a TIFF file.

ImBuf structures with 1, 3 or 4 bytes per pixel (GRAY, RGB, RGBA respectively) are accepted, and interpreted correctly. Note that the TIFF convention is to use pre-multiplied alpha, which can be achieved within Blender by setting "Premul" alpha handling. Other alpha conventions are not strictly correct, but are permitted anyhow.

Parameters:
ibuf,:Image buffer.
name,:Name of the TIFF file to create.
flags,:Currently largely ignored.
Returns:
: 1 if the function is successful, 0 on failure.

Definition at line 671 of file tiff.c.

References copy_v3_v3(), FTOUSHORT, ImBuf::ftype, i, IB_mem, IB_PROFILE_LINEAR_RGB, linearrgb_to_srgb_v3_v3(), NULL, ImBuf::planes, ImBuf::ppm, ImBuf::profile, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.

void imb_tile_cache_exit ( void  )
void imb_tile_cache_init ( void  )
void imb_tile_cache_tile_free ( struct ImBuf ibuf,
int  tx,
int  ty 
)
void* libtiff_findsymbol ( char *  name)

Variable Documentation

Definition at line 61 of file filetype.c.

Referenced by IMB_ibImageFromMemory(), IMB_ispic_name(), imb_loadtilefile(), and IMB_saveiff().