OpenImageIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
DeepData Struct Reference

Structure to hold "deep" data – multiple samples per pixel. More...

#include <imageio.h>

Public Member Functions

void init (int npix, int nchan, const TypeDesc *chbegin, const TypeDesc *chend)
 Initialize size and allocate nsamples, pointers.
 
void alloc ()
 
void clear ()
 Clear the vectors and reset size to 0.
 
void free ()
 Deallocate all space in the vectors.
 

Public Attributes

int npixels
 
int nchannels
 
std::vector< TypeDesc > channeltypes
 
std::vector< unsigned int > nsamples
 
std::vector< void * > pointers
 
std::vector< char > data
 

Detailed Description

Structure to hold "deep" data – multiple samples per pixel.

Member Function Documentation

void DeepData::alloc ( )

After nsamples[] has been filled in, allocate enough scratch space for data and set up all the pointers.

void DeepData::clear ( )

Clear the vectors and reset size to 0.

void DeepData::free ( )

Deallocate all space in the vectors.

void DeepData::init ( int  npix,
int  nchan,
const TypeDesc *  chbegin,
const TypeDesc *  chend 
)

Initialize size and allocate nsamples, pointers.


The documentation for this struct was generated from the following file: