TuttleOFX  1
dpx::RunLengthEncoding Class Reference

compress / decompress data segments, used for RLE compression More...

#include <RunLengthEncoding.h>

Inheritance diagram for dpx::RunLengthEncoding:
Collaboration diagram for dpx::RunLengthEncoding:

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

U8buf
 intermediate buffer

Detailed Description

compress / decompress data segments, used for RLE compression

Definition at line 50 of file RunLengthEncoding.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool dpx::RunLengthEncoding::Read ( const dpx::Header dpxHeader,
ElementReadStream fd,
const int  element,
const Block block,
void *  data,
const DataSize  size 
) [virtual]

read data

Parameters:
dpxHeaderdpx header information
fdfield descriptor
elementelement (0-7)
blockimage area to read
databuffer
sizesize of the buffer component
Returns:
success

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

Here is the call graph for this function:

void dpx::RunLengthEncoding::Reset ( ) [virtual]

reset instance

Reimplemented from dpx::Codec.

Definition at line 60 of file RunLengthEncoding.cpp.


Field Documentation

intermediate buffer

Definition at line 86 of file RunLengthEncoding.h.


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