Blender
V3.3
|
#include <set>
#include "openimageio_api.h"
#include <OpenImageIO/imageio.h>
#include <memory>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "IMB_allocimbuf.h"
#include "IMB_colormanagement.h"
#include "IMB_colormanagement_intern.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
Go to the source code of this file.
Typedefs | |
using | uchar = unsigned char |
Functions | |
template<class T , class Q > | |
static void | fill_all_channels (T *pixels, int width, int height, int components, Q alpha) |
static ImBuf * | imb_oiio_load_image (ImageInput *in, int width, int height, int components, int flags, bool is_alpha) |
static ImBuf * | imb_oiio_load_image_float (ImageInput *in, int width, int height, int components, int flags, bool is_alpha) |
bool | imb_is_a_photoshop (const unsigned char *mem, size_t size) |
int | imb_save_photoshop (struct ImBuf *ibuf, const char *, int flags) |
struct ImBuf * | imb_load_photoshop (const char *filename, int flags, char colorspace[IM_MAX_SPACE]) |
int | OIIO_getVersionHex (void) |
using uchar = unsigned char |
Definition at line 35 of file openimageio_api.cpp.
|
static |
Definition at line 38 of file openimageio_api.cpp.
Referenced by imb_oiio_load_image(), and imb_oiio_load_image_float().
bool imb_is_a_photoshop | ( | const unsigned char * | mem, |
size_t | size | ||
) |
Definition at line 150 of file openimageio_api.cpp.
struct ImBuf* imb_load_photoshop | ( | const char * | filename, |
int | flags, | ||
char | colorspace[IM_MAX_SPACE] | ||
) |
Definition at line 172 of file openimageio_api.cpp.
References BLI_strncpy(), ImBuf::channels, COLOR_ROLE_DEFAULT_BYTE, colormanage_colorspace_get_named(), colorspace_set_default_role(), blender::bke::idprop::create(), ImBuf::flags, ImBuf::ftype, HALF, height, IB_halffloat, IM_MAX_SPACE, IMB_freeImBuf(), IMB_ispic_type_matches(), imb_oiio_load_image(), imb_oiio_load_image_float(), ImBuf::planes, and width.
|
static |
Definition at line 66 of file openimageio_api.cpp.
References fill_all_channels(), height, IB_rect, IMB_allocImBuf(), IMB_freeImBuf(), ImBuf::rect, and width.
Referenced by imb_load_photoshop().
|
static |
Definition at line 106 of file openimageio_api.cpp.
References fill_all_channels(), FLOAT, float(), height, IB_rectfloat, IMB_allocImBuf(), IMB_freeImBuf(), ImBuf::rect_float, and width.
Referenced by imb_load_photoshop().
int imb_save_photoshop | ( | struct ImBuf * | ibuf, |
const char * | name, | ||
int | flags | ||
) |
Definition at line 159 of file openimageio_api.cpp.
References ImBuf::encodedsize, IB_mem, and imb_addencodedbufferImBuf().
int OIIO_getVersionHex | ( | void | ) |
Definition at line 269 of file openimageio_api.cpp.
Referenced by make_oiio_info().