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 RawDataPtr decompress () override
 
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)
 
 Decompressor (const Decompressor &)=delete
 
Decompressoroperator= (const Decompressor &)=delete
 
virtual RawDataPtr decompress ()=0
 

Additional Inherited Members

- Protected Attributes inherited from OpenRaw::Internals::Decompressor
IO::Streamm_stream
 
RawContainerm_container
 

Detailed Description

Definition at line 48 of file ljpegdecompressor.hpp.

Constructor & Destructor Documentation

◆ LJpegDecompressor()

OpenRaw::Internals::LJpegDecompressor::LJpegDecompressor ( IO::Stream stream,
RawContainer container 
)

Definition at line 86 of file ljpegdecompressor.cpp.

◆ ~LJpegDecompressor()

OpenRaw::Internals::LJpegDecompressor::~LJpegDecompressor ( )
virtual

Definition at line 98 of file ljpegdecompressor.cpp.

Member Function Documentation

◆ decompress()

RawDataPtr OpenRaw::Internals::LJpegDecompressor::decompress ( )
overridevirtual

decompress the bitmapdata and return a new bitmap

Returns
the new bitmap decompressed. NULL is failure.

Implements OpenRaw::Internals::Decompressor.

Definition at line 1534 of file ljpegdecompressor.cpp.

Referenced by OpenRaw::Internals::DngFile::_getRawData().

◆ isSliced()

bool OpenRaw::Internals::LJpegDecompressor::isSliced ( ) const
inline

Definition at line 70 of file ljpegdecompressor.hpp.

◆ setSlices()

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 115 of file ljpegdecompressor.cpp.


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