libopenraw
Classes | Public Member Functions | List of all members
OpenRaw::Internals::CrwDecompressor Class Reference
Inheritance diagram for OpenRaw::Internals::CrwDecompressor:
OpenRaw::Internals::Decompressor

Public Member Functions

 CrwDecompressor (IO::Stream *stream, RawContainer *container)
 
virtual RawDatadecompress (RawData *in=NULL)
 
void setDecoderTable (uint32_t t)
 
void setOutputDimensions (uint32_t x, uint32_t y)
 
- Public Member Functions inherited from OpenRaw::Internals::Decompressor
 Decompressor (IO::Stream *stream, RawContainer *container)
 

Additional Inherited Members

- Protected Member Functions inherited from OpenRaw::Internals::Decompressor
 Decompressor (const Decompressor &f)
 
Decompressoroperator= (const Decompressor &)
 
- Protected Attributes inherited from OpenRaw::Internals::Decompressor
IO::Streamm_stream
 
RawContainerm_container
 

Detailed Description

Definition at line 42 of file crwdecompressor.h.

Member Function Documentation

RawData * OpenRaw::Internals::CrwDecompressor::decompress ( RawData in = NULL)
virtual

decompress the bitmapdata and return a new bitmap

Parameters
ina preallocated BitmapData instance or NULL if decompress has to allocate it.
Returns
the new bitmap decompressed. NULL is failure. Caller owns it.
Todo:
use a shared_ptr here, or something

Implements OpenRaw::Internals::Decompressor.

Definition at line 263 of file crwdecompressor.cpp.

References OpenRaw::IO::Stream::seek(), OpenRaw::BitmapData::setBpc(), OpenRaw::BitmapData::setDataType(), and OpenRaw::RawData::setDimensions().


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