# dpx::RunLengthEncoding Class Reference

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

`#include <RunLengthEncoding.h>`

Inherits dpx::Codec.

Collaboration diagram for dpx::RunLengthEncoding:
[legend]

List of all members.

## 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
U32 * | scanline
| single scanline

## Detailed Description

compress / decompress data segments, used for RLE compression

## Constructor & Destructor Documentation

dpx::RunLengthEncoding::RunLengthEncoding | ( |  | ) |

constructor

dpx::RunLengthEncoding::~RunLengthEncoding | ( |  | ) | `[virtual]`

destructor

## 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:

  | dpxHeader | dpx header information
  | fd | field descriptor
  | element | element (0-7)
  | block | image area to read
  | data | buffer
  | size | size of the buffer component

Returns:
  success

Reimplemented from dpx::Codec.

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

reset instance

Reimplemented from dpx::Codec.

## Member Data Documentation

U8* dpx::RunLengthEncoding::buf`[protected]`

intermediate buffer

U32* dpx::Codec::scanline`[protected, inherited]`

single scanline

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

- /Users/patrick/Development/DPX/svn/source/RunLengthEncoding.h
- /Users/patrick/Development/DPX/svn/source/RunLengthEncoding.cpp