RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed::SamsungV1Decompressor Class Referencefinal

#include "decompressors/SamsungV1Decompressor.h"

Inheritance diagram for rawspeed::SamsungV1Decompressor:
[legend]
Collaboration diagram for rawspeed::SamsungV1Decompressor:
[legend]

Classes

struct  encTableItem

Public Member Functions

 SamsungV1Decompressor (const RawImage &image, ByteStream bs_, int bit)
void decompress () const

Protected Attributes

RawImage mRaw

Static Private Member Functions

static int32_t samsungDiff (BitStreamerMSB &pump, const std::vector< encTableItem > &tbl)

Private Attributes

ByteStream bs

Static Private Attributes

static constexpr int bits = 12

Detailed Description

Definition at line 35 of file SamsungV1Decompressor.h.

Constructor & Destructor Documentation

◆ SamsungV1Decompressor()

rawspeed::SamsungV1Decompressor::SamsungV1Decompressor ( const RawImage & image,
ByteStream bs_,
int bit )

Definition at line 45 of file SamsungV1Decompressor.cpp.

References rawspeed::AbstractSamsungDecompressor::AbstractSamsungDecompressor(), bs, rawspeed::AbstractSamsungDecompressor::mRaw, ThrowRDE, and rawspeed::UINT16.

Here is the call graph for this function:

Member Function Documentation

◆ decompress()

void rawspeed::SamsungV1Decompressor::decompress ( ) const

Definition at line 81 of file SamsungV1Decompressor.cpp.

References bits, bs, rawspeed::Array2DRef< T >::height(), rawspeed::implicit_cast(), invariant, rawspeed::isIntN(), rawspeed::AbstractSamsungDecompressor::mRaw, samsungDiff(), ThrowRDE, and rawspeed::Array2DRef< T >::width().

Referenced by rawspeed::SrwDecoder::decodeRawInternal().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ samsungDiff()

int32_t rawspeed::SamsungV1Decompressor::samsungDiff ( BitStreamerMSB & pump,
const std::vector< encTableItem > & tbl )
inlinestaticprivate

Definition at line 64 of file SamsungV1Decompressor.cpp.

References rawspeed::AbstractPrefixCodeDecoder< CodeTag >::extend(), rawspeed::BitStreamer< Tag >::fill(), rawspeed::BitStreamer< Tag >::getBitsNoFill(), rawspeed::BitStreamer< Tag >::peekBitsNoFill(), and rawspeed::BitStreamer< Tag >::skipBitsNoFill().

Referenced by decompress().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bits

int rawspeed::SamsungV1Decompressor::bits = 12
staticconstexprprivate

Definition at line 42 of file SamsungV1Decompressor.h.

Referenced by decompress().

◆ bs

ByteStream rawspeed::SamsungV1Decompressor::bs
private

Definition at line 41 of file SamsungV1Decompressor.h.

Referenced by SamsungV1Decompressor(), and decompress().

◆ mRaw


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