|
Blender V4.3
|
#include "oiio/openimageio_support.hh"#include "IMB_colormanagement.hh"#include "IMB_filetype.hh"#include "IMB_imbuf_types.hh"Go to the source code of this file.
Functions | |
| bool | imb_is_a_tiff (const uchar *mem, size_t size) |
| ImBuf * | imb_load_tiff (const uchar *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE]) |
| bool | imb_save_tiff (ImBuf *ibuf, const char *filepath, int flags) |
| bool imb_is_a_tiff | ( | const uchar * | mem, |
| size_t | size ) |
Definition at line 18 of file format_tiff.cc.
References blender::imbuf::imb_oiio_check().
| ImBuf * imb_load_tiff | ( | const unsigned char * | mem, |
| size_t | size, | ||
| int | flags, | ||
| char | colorspace[IM_MAX_SPACE] ) |
Loads a TIFF file.
| 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. |
Definition at line 23 of file format_tiff.cc.
References COLOR_ROLE_DEFAULT_BYTE, ImBuf::flags, IB_alphamode_detect, IB_alphamode_premul, IMB_FTYPE_TIF, blender::imbuf::imb_oiio_read(), size(), and blender::imbuf::ReadContext::use_colorspace_role.
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.
| ibuf | Image buffer. |
| filepath | Name of the TIFF file to create. |
| flags | Currently largely ignored. |
Definition at line 45 of file format_tiff.cc.
References ImBufFloatBuffer::data, ImbFormatOptions::flag, ImBuf::float_buffer, ImBuf::foptions, blender::imbuf::imb_create_write_context(), blender::imbuf::imb_create_write_spec(), blender::imbuf::imb_oiio_write(), ImBuf::planes, TIF_16BIT, TIF_COMPRESS_DEFLATE, TIF_COMPRESS_LZW, TIF_COMPRESS_NONE, and TIF_COMPRESS_PACKBITS.