HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Compressor Class Reference

#include <ImfCompressor.h>

Public Member Functions

IMF_EXPORT Compressor (const Header &hdr, exr_compression_t compression_type, size_t maxScanLineSize, int scanlines=-1)
 
virtual IMF_EXPORT ~Compressor ()
 
 Compressor (const Compressor &other)=delete
 
Compressoroperator= (const Compressor &other)=delete
 
 Compressor (Compressor &&other)=delete
 
Compressoroperator= (Compressor &&other)=delete
 
virtual IMF_EXPORT int numScanLines () const
 
virtual IMF_EXPORT Format format () const
 
const Headerheader () const
 
virtual int compress (const char *inPtr, int inSize, int minY, const char *&outPtr)
 
virtual IMF_EXPORT int compressTile (const char *inPtr, int inSize, IMATH_NAMESPACE::Box2i range, const char *&outPtr)
 
virtual int uncompress (const char *inPtr, int inSize, int minY, const char *&outPtr)
 
virtual IMF_EXPORT int uncompressTile (const char *inPtr, int inSize, IMATH_NAMESPACE::Box2i range, const char *&outPtr)
 
void setExpectedSize (size_t sz)
 
void setTileLevel (int lx, int ly)
 
exr_storage_t storageType () const
 
void setStorageType (exr_storage_t st)
 

Protected Member Functions

uint64_t runEncodeStep (const char *inPtr, int inSize, IMATH_NAMESPACE::Box2i range, const char *&outPtr)
 
uint64_t runDecodeStep (const char *inPtr, int inSize, IMATH_NAMESPACE::Box2i range, const char *&outPtr)
 

Protected Attributes

Context _ctxt
 
const Header_header
 
size_t _maxScanLineSize = 0
 
int _numScanLines = -1
 
exr_compression_t _comp_type
 
exr_storage_t _store_type
 
exr_decode_pipeline_t _decoder = EXR_DECODE_PIPELINE_INITIALIZER
 
exr_encode_pipeline_t _encoder = EXR_ENCODE_PIPELINE_INITIALIZER
 
bool _decoder_init = false
 
bool _encoder_init = false
 
std::unique_ptr< char[]> _memory_buffer
 
uint64_t _buf_sz = 0
 
size_t _expectedSize = 0
 
int _levelX = 0
 
int _levelY = 0
 

Detailed Description

Definition at line 30 of file ImfCompressor.h.

Constructor & Destructor Documentation

IMF_EXPORT Compressor::Compressor ( const Header hdr,
exr_compression_t  compression_type,
size_t  maxScanLineSize,
int  scanlines = -1 
)
virtual IMF_EXPORT Compressor::~Compressor ( )
virtual
Compressor::Compressor ( const Compressor other)
delete
Compressor::Compressor ( Compressor &&  other)
delete

Member Function Documentation

virtual int Compressor::compress ( const char *  inPtr,
int  inSize,
int  minY,
const char *&  outPtr 
)
virtual
virtual IMF_EXPORT int Compressor::compressTile ( const char *  inPtr,
int  inSize,
IMATH_NAMESPACE::Box2i  range,
const char *&  outPtr 
)
virtual
virtual IMF_EXPORT Format Compressor::format ( ) const
virtual
const Header& Compressor::header ( ) const
inline

Definition at line 84 of file ImfCompressor.h.

virtual IMF_EXPORT int Compressor::numScanLines ( ) const
virtual
Compressor& Compressor::operator= ( const Compressor other)
delete
Compressor& Compressor::operator= ( Compressor &&  other)
delete
uint64_t Compressor::runDecodeStep ( const char *  inPtr,
int  inSize,
IMATH_NAMESPACE::Box2i  range,
const char *&  outPtr 
)
protected
uint64_t Compressor::runEncodeStep ( const char *  inPtr,
int  inSize,
IMATH_NAMESPACE::Box2i  range,
const char *&  outPtr 
)
protected
void Compressor::setExpectedSize ( size_t  sz)
inline

Definition at line 175 of file ImfCompressor.h.

void Compressor::setStorageType ( exr_storage_t  st)
inline

Definition at line 179 of file ImfCompressor.h.

void Compressor::setTileLevel ( int  lx,
int  ly 
)
inline

Definition at line 176 of file ImfCompressor.h.

exr_storage_t Compressor::storageType ( ) const
inline

Definition at line 178 of file ImfCompressor.h.

virtual int Compressor::uncompress ( const char *  inPtr,
int  inSize,
int  minY,
const char *&  outPtr 
)
virtual
virtual IMF_EXPORT int Compressor::uncompressTile ( const char *  inPtr,
int  inSize,
IMATH_NAMESPACE::Box2i  range,
const char *&  outPtr 
)
virtual

Member Data Documentation

uint64_t Compressor::_buf_sz = 0
protected

Definition at line 196 of file ImfCompressor.h.

exr_compression_t Compressor::_comp_type
protected

Definition at line 188 of file ImfCompressor.h.

Context Compressor::_ctxt
protected

Definition at line 182 of file ImfCompressor.h.

exr_decode_pipeline_t Compressor::_decoder = EXR_DECODE_PIPELINE_INITIALIZER
protected

Definition at line 191 of file ImfCompressor.h.

bool Compressor::_decoder_init = false
protected

Definition at line 193 of file ImfCompressor.h.

exr_encode_pipeline_t Compressor::_encoder = EXR_ENCODE_PIPELINE_INITIALIZER
protected

Definition at line 192 of file ImfCompressor.h.

bool Compressor::_encoder_init = false
protected

Definition at line 194 of file ImfCompressor.h.

size_t Compressor::_expectedSize = 0
protected

Definition at line 197 of file ImfCompressor.h.

const Header& Compressor::_header
protected

Definition at line 183 of file ImfCompressor.h.

int Compressor::_levelX = 0
protected

Definition at line 199 of file ImfCompressor.h.

int Compressor::_levelY = 0
protected

Definition at line 200 of file ImfCompressor.h.

size_t Compressor::_maxScanLineSize = 0
protected

Definition at line 185 of file ImfCompressor.h.

std::unique_ptr<char[]> Compressor::_memory_buffer
protected

Definition at line 195 of file ImfCompressor.h.

int Compressor::_numScanLines = -1
protected

Definition at line 186 of file ImfCompressor.h.

exr_storage_t Compressor::_store_type
protected

Definition at line 189 of file ImfCompressor.h.


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