RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed::DummyPrefixCodeDecoder< CodeTag > Class Template Referencefinal

#include "codes/DummyPrefixCodeDecoder.h"

Collaboration diagram for rawspeed::DummyPrefixCodeDecoder< CodeTag >:
[legend]

Public Types

using Tag = CodeTag
using Traits = CodeTraits<CodeTag>

Public Member Functions

 DummyPrefixCodeDecoder (HuffmanCode< CodeTag > code)
 DummyPrefixCodeDecoder (PrefixCode< CodeTag > code)
void setup (bool fullDecode_, bool fixDNGBug16_)
bool isFullDecode () const
template<typename BIT_STREAM>
Traits::CodeValueTy decodeCodeValue (BIT_STREAM &bs) const
template<typename BIT_STREAM>
int decodeDifference (BIT_STREAM &bs) const
template<typename BIT_STREAM, bool FULL_DECODE>
int decode (BIT_STREAM &bs) const

Private Attributes

bool fullDecode = true
bool fixDNGBug16 = false

Detailed Description

template<typename CodeTag = BaselineCodeTag>
class rawspeed::DummyPrefixCodeDecoder< CodeTag >

Definition at line 33 of file DummyPrefixCodeDecoder.h.

Member Typedef Documentation

◆ Tag

template<typename CodeTag = BaselineCodeTag>
using rawspeed::DummyPrefixCodeDecoder< CodeTag >::Tag = CodeTag

Definition at line 35 of file DummyPrefixCodeDecoder.h.

◆ Traits

template<typename CodeTag = BaselineCodeTag>
using rawspeed::DummyPrefixCodeDecoder< CodeTag >::Traits = CodeTraits<CodeTag>

Definition at line 36 of file DummyPrefixCodeDecoder.h.

Constructor & Destructor Documentation

◆ DummyPrefixCodeDecoder() [1/2]

template<typename CodeTag = BaselineCodeTag>
rawspeed::DummyPrefixCodeDecoder< CodeTag >::DummyPrefixCodeDecoder ( HuffmanCode< CodeTag > code)
inlineexplicit

Definition at line 38 of file DummyPrefixCodeDecoder.h.

◆ DummyPrefixCodeDecoder() [2/2]

template<typename CodeTag = BaselineCodeTag>
rawspeed::DummyPrefixCodeDecoder< CodeTag >::DummyPrefixCodeDecoder ( PrefixCode< CodeTag > code)
inlineexplicit

Definition at line 39 of file DummyPrefixCodeDecoder.h.

Member Function Documentation

◆ decode()

template<typename CodeTag = BaselineCodeTag>
template<typename BIT_STREAM, bool FULL_DECODE>
int rawspeed::DummyPrefixCodeDecoder< CodeTag >::decode ( BIT_STREAM & bs) const
inline

Definition at line 75 of file DummyPrefixCodeDecoder.h.

References fullDecode, and invariant.

Referenced by decodeCodeValue(), and decodeDifference().

Here is the caller graph for this function:

◆ decodeCodeValue()

template<typename CodeTag = BaselineCodeTag>
template<typename BIT_STREAM>
Traits::CodeValueTy rawspeed::DummyPrefixCodeDecoder< CodeTag >::decodeCodeValue ( BIT_STREAM & bs) const
inline

Definition at line 54 of file DummyPrefixCodeDecoder.h.

References decode(), fullDecode, and invariant.

Here is the call graph for this function:

◆ decodeDifference()

template<typename CodeTag = BaselineCodeTag>
template<typename BIT_STREAM>
int rawspeed::DummyPrefixCodeDecoder< CodeTag >::decodeDifference ( BIT_STREAM & bs) const
inline

Definition at line 62 of file DummyPrefixCodeDecoder.h.

References decode(), fullDecode, and invariant.

Here is the call graph for this function:

◆ isFullDecode()

template<typename CodeTag = BaselineCodeTag>
bool rawspeed::DummyPrefixCodeDecoder< CodeTag >::isFullDecode ( ) const
inlinenodiscard

Definition at line 51 of file DummyPrefixCodeDecoder.h.

References fullDecode.

◆ setup()

template<typename CodeTag = BaselineCodeTag>
void rawspeed::DummyPrefixCodeDecoder< CodeTag >::setup ( bool fullDecode_,
bool fixDNGBug16_ )
inline

Definition at line 46 of file DummyPrefixCodeDecoder.h.

References fixDNGBug16, and fullDecode.

Member Data Documentation

◆ fixDNGBug16

template<typename CodeTag = BaselineCodeTag>
bool rawspeed::DummyPrefixCodeDecoder< CodeTag >::fixDNGBug16 = false
private

Definition at line 43 of file DummyPrefixCodeDecoder.h.

Referenced by setup().

◆ fullDecode

template<typename CodeTag = BaselineCodeTag>
bool rawspeed::DummyPrefixCodeDecoder< CodeTag >::fullDecode = true
private

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