libopenraw  0.3.7
Public Member Functions | List of all members
OpenRaw::Internals::Unpack Class Reference

#include <unpack.hpp>

Public Member Functions

 Unpack (uint32_t w, uint32_t t)
 
 Unpack (const Unpack &)=delete
 
Unpackoperator= (const Unpack &)=delete
 
size_t block_size () const
 
or_error unpack_be12to16 (uint16_t *dest, size_t destsize, const uint8_t *src, size_t size, size_t &outsize) const
 
or_error unpack_le12to16 (uint16_t *dest, size_t destsize, const uint8_t *src, size_t size, size_t &out) const
 

Detailed Description

Unpack class. Because we need to maintain a state

Definition at line 33 of file unpack.hpp.

Member Function Documentation

◆ unpack_be12to16()

or_error OpenRaw::Internals::Unpack::unpack_be12to16 ( uint16_t *  dest,
size_t  destsize,
const uint8_t *  src,
size_t  size,
size_t &  out 
) const

source is in BE byte order the output is always 16-bits values in native (host) byte order. the source must correspond to an image row.

Definition at line 58 of file unpack.cpp.

References OR_ERROR_DECOMPRESSION, and OR_ERROR_NONE.

Referenced by OpenRaw::Internals::MRWFile::_getRawData(), and OpenRaw::Internals::IfdFile::_unpackData().

◆ unpack_le12to16()

or_error OpenRaw::Internals::Unpack::unpack_le12to16 ( uint16_t *  dest,
size_t  destsize,
const uint8_t *  src,
size_t  size,
size_t &  out 
) const

source is in LE byte order the output is always 16-bits values in native (host) byte order. the source must correspond to an image row.

Definition at line 117 of file unpack.cpp.

References OR_ERROR_DECOMPRESSION, and OR_ERROR_NONE.


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