TuttleOFX
1
|
compress / decompress data segments, used for RLE compression More...
#include <RunLengthEncoding.h>
Public Member Functions | |
RunLengthEncoding () | |
constructor | |
virtual | ~RunLengthEncoding () |
destructor | |
virtual void | Reset () |
reset instance | |
virtual bool | Read (const dpx::Header &dpxHeader, ElementReadStream *fd, const int element, const Block &block, void *data, const DataSize size) |
read data | |
Protected Attributes | |
U8 * | buf |
intermediate buffer |
compress / decompress data segments, used for RLE compression
Definition at line 50 of file RunLengthEncoding.h.
dpx::RunLengthEncoding::RunLengthEncoding | ( | ) |
constructor
Definition at line 48 of file RunLengthEncoding.cpp.
dpx::RunLengthEncoding::~RunLengthEncoding | ( | ) | [virtual] |
destructor
Definition at line 53 of file RunLengthEncoding.cpp.
bool dpx::RunLengthEncoding::Read | ( | const dpx::Header & | dpxHeader, |
ElementReadStream * | fd, | ||
const int | element, | ||
const Block & | block, | ||
void * | data, | ||
const DataSize | size | ||
) | [virtual] |
read data
dpxHeader | dpx header information |
fd | field descriptor |
element | element (0-7) |
block | image area to read |
data | buffer |
size | size of the buffer component |
Reimplemented from dpx::Codec.
Definition at line 70 of file RunLengthEncoding.cpp.
References dpx::GenericHeader::BitDepth(), BUFFER_SIZE, dpx::GenericHeader::ComponentByteCount(), dpx::GenericHeader::DataOffset(), dpx::GenericHeader::EndOfLinePadding(), EXPANDED_BUFFER_SIZE, height, dpx::Header::Height(), dpx::GenericHeader::ImageElementComponentCount(), dpx::GenericHeader::ImageEncoding(), dpx::kDouble, dpx::kFloat, dpx::kRLE, MAX_ELEMENTS, tuttle::ofx::imageEffect::numberOfComponents(), dpx::ElementReadStream::ReadDirect(), width, and dpx::Header::Width().
void dpx::RunLengthEncoding::Reset | ( | ) | [virtual] |
U8* dpx::RunLengthEncoding::buf [protected] |
intermediate buffer
Definition at line 86 of file RunLengthEncoding.h.