Blender  V3.3
Typedefs | Functions
openimageio_api.cpp File Reference
#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 ImBufimb_oiio_load_image (ImageInput *in, int width, int height, int components, int flags, bool is_alpha)
 
static ImBufimb_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 ImBufimb_load_photoshop (const char *filename, int flags, char colorspace[IM_MAX_SPACE])
 
int OIIO_getVersionHex (void)
 

Typedef Documentation

◆ uchar

using uchar = unsigned char

Definition at line 35 of file openimageio_api.cpp.

Function Documentation

◆ fill_all_channels()

template<class T , class Q >
static void fill_all_channels ( T pixels,
int  width,
int  height,
int  components,
alpha 
)
static

Definition at line 38 of file openimageio_api.cpp.

References height, and width.

Referenced by imb_oiio_load_image(), and imb_oiio_load_image_float().

◆ imb_is_a_photoshop()

bool imb_is_a_photoshop ( const unsigned char *  mem,
size_t  size 
)

Definition at line 150 of file openimageio_api.cpp.

References magic(), and size().

◆ imb_load_photoshop()

struct ImBuf* imb_load_photoshop ( const char *  filename,
int  flags,
char  colorspace[IM_MAX_SPACE] 
)

◆ imb_oiio_load_image()

static ImBuf* imb_oiio_load_image ( ImageInput *  in,
int  width,
int  height,
int  components,
int  flags,
bool  is_alpha 
)
static

◆ imb_oiio_load_image_float()

static ImBuf* imb_oiio_load_image_float ( ImageInput *  in,
int  width,
int  height,
int  components,
int  flags,
bool  is_alpha 
)
static

◆ imb_save_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().

◆ OIIO_getVersionHex()

int OIIO_getVersionHex ( void  )

Definition at line 269 of file openimageio_api.cpp.

Referenced by make_oiio_info().