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

#include "common/TableLookUp.h"

Collaboration diagram for rawspeed::TableLookUp:
[legend]

Public Member Functions

 TableLookUp (int ntables, bool dither)
void setTable (int ntable, const std::vector< uint16_t > &table)
Array1DRef< uint16_tgetTable (int n)

Public Attributes

const int ntables
std::vector< uint16_ttables
const bool dither

Detailed Description

Definition at line 30 of file TableLookUp.h.

Constructor & Destructor Documentation

◆ TableLookUp()

rawspeed::TableLookUp::TableLookUp ( int ntables,
bool dither )

Definition at line 42 of file TableLookUp.cpp.

References dither, ntables, rawspeed::TABLE_SIZE, tables, and ThrowRDE.

Member Function Documentation

◆ getTable()

Array1DRef< uint16_t > rawspeed::TableLookUp::getTable ( int n)

Definition at line 87 of file TableLookUp.cpp.

References rawspeed::Array2DRef(), ntables, rawspeed::TABLE_SIZE, tables, and ThrowRDE.

Here is the call graph for this function:

◆ setTable()

void rawspeed::TableLookUp::setTable ( int ntable,
const std::vector< uint16_t > & table )

Definition at line 50 of file TableLookUp.cpp.

References rawspeed::Array2DRef(), assert(), rawspeed::clampBits(), dither, rawspeed::implicit_cast(), invariant, ntables, rawspeed::TABLE_MAX_ELTS, rawspeed::TABLE_SIZE, tables, and ThrowRDE.

Here is the call graph for this function:

Member Data Documentation

◆ dither

const bool rawspeed::TableLookUp::dither

Definition at line 38 of file TableLookUp.h.

Referenced by TableLookUp(), and setTable().

◆ ntables

const int rawspeed::TableLookUp::ntables

Definition at line 36 of file TableLookUp.h.

Referenced by TableLookUp(), getTable(), and setTable().

◆ tables

std::vector<uint16_t> rawspeed::TableLookUp::tables

Definition at line 37 of file TableLookUp.h.

Referenced by TableLookUp(), getTable(), and setTable().


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