Blender V5.3
OIIOImageLoader Class Reference

#include <image_oiio.h>

Inherits ImageLoader.

Public Member Functions

 OIIOImageLoader (const string &filepath)
 ~OIIOImageLoader () override
bool load_metadata (ImageMetaData &metadata, const ImageLoaderParams &params, Progress &progress) override
bool load_pixels (const ImageMetaData &metadata, void *pixels) override
bool load_pixels_tile (const ImageMetaData &metadata, int miplevel, int64_t x, int64_t y, int64_t w, int64_t h, int64_t x_stride, int64_t y_stride, int64_t padding, ExtensionType extension, uint8_t *pixels) override
string name () const override
bool equals (const ImageLoader &other) const override
Public Member Functions inherited from ImageLoader
 ImageLoader ()
virtual ~ImageLoader ()=default
virtual int get_tile_number () const
virtual void cleanup ()
virtual bool is_vdb_loader () const

Protected Member Functions

const string & get_filepath () const

Protected Attributes

string original_filepath_
string texture_cache_filepath_
CacheHandle< ImageInput > texture_cache_file_handle
bool texture_cache_file_handle_failed = false

Additional Inherited Members

Static Public Member Functions inherited from ImageLoader
static bool equals (const ImageLoader *a, const ImageLoader *b)

Detailed Description

Definition at line 16 of file image_oiio.h.

Constructor & Destructor Documentation

◆ OIIOImageLoader()

OIIOImageLoader::OIIOImageLoader ( const string & filepath)

Definition at line 27 of file image_oiio.cpp.

References original_filepath_.

Referenced by equals().

◆ ~OIIOImageLoader()

OIIOImageLoader::~OIIOImageLoader ( )
overridedefault

Member Function Documentation

◆ equals()

bool OIIOImageLoader::equals ( const ImageLoader & other) const
overridevirtual

Implements ImageLoader.

Definition at line 457 of file image_oiio.cpp.

References ImageLoader::ImageLoader(), OIIOImageLoader(), and original_filepath_.

Referenced by ~OIIOImageLoader().

◆ get_filepath()

const string & OIIOImageLoader::get_filepath ( ) const
protected

◆ load_metadata()

◆ load_pixels()

bool OIIOImageLoader::load_pixels ( const ImageMetaData & metadata,
void * pixels )
overridevirtual

◆ load_pixels_tile()

bool OIIOImageLoader::load_pixels_tile ( const ImageMetaData & metadata,
int miplevel,
int64_t x,
int64_t y,
int64_t w,
int64_t h,
int64_t x_stride,
int64_t y_stride,
int64_t padding,
ExtensionType extension,
uint8_t * pixels )
overridevirtual

◆ name()

string OIIOImageLoader::name ( ) const
overridevirtual

Implements ImageLoader.

Definition at line 447 of file image_oiio.cpp.

References get_filepath(), and path_filename().

Referenced by ~OIIOImageLoader().

Member Data Documentation

◆ original_filepath_

string OIIOImageLoader::original_filepath_
protected

Definition at line 46 of file image_oiio.h.

Referenced by equals(), get_filepath(), load_metadata(), and OIIOImageLoader().

◆ texture_cache_file_handle

CacheHandle<ImageInput> OIIOImageLoader::texture_cache_file_handle
protected

Definition at line 48 of file image_oiio.h.

Referenced by load_pixels_tile().

◆ texture_cache_file_handle_failed

bool OIIOImageLoader::texture_cache_file_handle_failed = false
protected

Definition at line 49 of file image_oiio.h.

Referenced by load_pixels_tile().

◆ texture_cache_filepath_

string OIIOImageLoader::texture_cache_filepath_
protected

Definition at line 47 of file image_oiio.h.

Referenced by get_filepath(), and load_metadata().


The documentation for this class was generated from the following files: