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

Public Member Functions

 LJpegDecompressor (IO::Stream *, RawContainer *)
 
virtual RawDatadecompress (RawData *in=NULL)
 
void setSlices (const std::vector< uint16_t > &slices)
 
bool isSliced () const
 
- 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 44 of file ljpegdecompressor.h.

Member Function Documentation

RawData * OpenRaw::Internals::LJpegDecompressor::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 1530 of file ljpegdecompressor.cpp.

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

void OpenRaw::Internals::LJpegDecompressor::setSlices ( const std::vector< uint16_t > &  slices)

Set the "slices"

Parameters
slicesthe vector containing the Canon-style slices.

the format of the slices vector is as follow N col1 col2 N is the number of repeat for col1. The total number of slices is always N+1 This is for Canon CR2.

Definition at line 112 of file ljpegdecompressor.cpp.


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