RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed::DngOpcodes::LookupOpcode Class Reference
Inheritance diagram for rawspeed::DngOpcodes::LookupOpcode:
[legend]
Collaboration diagram for rawspeed::DngOpcodes::LookupOpcode:
[legend]

Protected Member Functions

void setup (const RawImage &ri) final
void apply (const RawImage &ri) final
 PixelOpcode (const RawImage &ri, ByteStream &bs, const iRectangle2D &integrated_subimg_)
iPoint2D RAWSPEED_READONLY getPitch () const
template<typename T, typename OP>
void applyOP (const RawImage &ri, OP op) const
const iRectangle2D &RAWSPEED_READONLY getRoi () const

Protected Attributes

vector< uint16_tlookup = vector<uint16_t>(65536)

Private Member Functions

void anchor () const override

Private Attributes

uint32_t firstPlane
uint32_t planes
uint32_t rowPitch
uint32_t colPitch
iRectangle2D roi
const iRectangle2D integrated_subimg
bool setup_was_called = false

Detailed Description

Definition at line 418 of file DngOpcodes.cpp.

Member Function Documentation

◆ anchor()

void rawspeed::DngOpcodes::LookupOpcode::anchor ( ) const
overrideprivatevirtual

Reimplemented from rawspeed::DngOpcodes::DngOpcode.

Reimplemented in rawspeed::DngOpcodes::PolynomialMap, and rawspeed::DngOpcodes::TableMap.

Definition at line 440 of file DngOpcodes.cpp.

◆ apply()

void rawspeed::DngOpcodes::LookupOpcode::apply ( const RawImage & ri)
inlinefinalprotectedvirtual

Implements rawspeed::DngOpcodes::DngOpcode.

Definition at line 433 of file DngOpcodes.cpp.

References rawspeed::DngOpcodes::PixelOpcode::applyOP(), lookup, x, and y.

Here is the call graph for this function:

◆ applyOP()

template<typename T, typename OP>
void rawspeed::DngOpcodes::PixelOpcode::applyOP ( const RawImage & ri,
OP op ) const
inlineprotectedinherited

Definition at line 391 of file DngOpcodes.cpp.

References colPitch, dim, firstPlane, rawspeed::RawImageData::getCpp(), rawspeed::iRectangle2D::getLeft(), rawspeed::DngOpcodes::ROIOpcode::getRoi(), rawspeed::iRectangle2D::getTop(), rawspeed::implicit_cast(), planes, rawspeed::roundUpDivisionSafe(), roundUpDivisionSafe(), rowPitch, rawspeed::T(), rawspeed::iPoint2D::x, x, rawspeed::iPoint2D::y, and y.

Referenced by rawspeed::DngOpcodes::LookupOpcode::apply(), rawspeed::DngOpcodes::OffsetPerRowOrCol< S >::apply(), and rawspeed::DngOpcodes::ScalePerRowOrCol< S >::apply().

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

◆ getPitch()

iPoint2D RAWSPEED_READONLY rawspeed::DngOpcodes::PixelOpcode::getPitch ( ) const
inlinenodiscardprotectedinherited

Definition at line 383 of file DngOpcodes.cpp.

References colPitch, and rowPitch.

Referenced by rawspeed::DngOpcodes::DeltaRowOrCol< S >::DeltaRowOrCol().

Here is the caller graph for this function:

◆ getRoi()

const iRectangle2D &RAWSPEED_READONLY rawspeed::DngOpcodes::ROIOpcode::getRoi ( ) const
inlinenodiscardprotectedinherited

Definition at line 226 of file DngOpcodes.cpp.

References roi.

Referenced by rawspeed::DngOpcodes::DeltaRowOrCol< S >::DeltaRowOrCol(), rawspeed::DngOpcodes::PixelOpcode::PixelOpcode(), rawspeed::DngOpcodes::TrimBounds::TrimBounds(), rawspeed::DngOpcodes::TrimBounds::apply(), and rawspeed::DngOpcodes::PixelOpcode::applyOP().

Here is the caller graph for this function:

◆ PixelOpcode()

rawspeed::DngOpcodes::PixelOpcode::PixelOpcode ( const RawImage & ri,
ByteStream & bs,
const iRectangle2D & integrated_subimg_ )
inlineexplicitprotected

Definition at line 362 of file DngOpcodes.cpp.

◆ setup()

void rawspeed::DngOpcodes::LookupOpcode::setup ( const RawImage & ri)
inlinefinalprotectedvirtual

Reimplemented from rawspeed::DngOpcodes::DngOpcode.

Definition at line 426 of file DngOpcodes.cpp.

References rawspeed::DngOpcodes::DngOpcode::setup(), ThrowRDE, and rawspeed::UINT16.

Here is the call graph for this function:

Member Data Documentation

◆ colPitch

uint32_t rawspeed::DngOpcodes::PixelOpcode::colPitch
privateinherited

Definition at line 357 of file DngOpcodes.cpp.

Referenced by PixelOpcode(), applyOP(), and getPitch().

◆ firstPlane

uint32_t rawspeed::DngOpcodes::PixelOpcode::firstPlane
privateinherited

Definition at line 354 of file DngOpcodes.cpp.

Referenced by PixelOpcode(), and applyOP().

◆ integrated_subimg

const iRectangle2D rawspeed::DngOpcodes::DngOpcode::integrated_subimg
privateinherited

Definition at line 99 of file DngOpcodes.cpp.

Referenced by setup().

◆ lookup

vector<uint16_t> rawspeed::DngOpcodes::LookupOpcode::lookup = vector<uint16_t>(65536)
protected

◆ planes

uint32_t rawspeed::DngOpcodes::PixelOpcode::planes
privateinherited

Definition at line 355 of file DngOpcodes.cpp.

Referenced by PixelOpcode(), and applyOP().

◆ roi

iRectangle2D rawspeed::DngOpcodes::ROIOpcode::roi
privateinherited

Definition at line 194 of file DngOpcodes.cpp.

Referenced by ROIOpcode(), and getRoi().

◆ rowPitch

uint32_t rawspeed::DngOpcodes::PixelOpcode::rowPitch
privateinherited

Definition at line 356 of file DngOpcodes.cpp.

Referenced by PixelOpcode(), applyOP(), and getPitch().

◆ setup_was_called

bool rawspeed::DngOpcodes::DngOpcode::setup_was_called = false
privateinherited

Definition at line 100 of file DngOpcodes.cpp.

Referenced by ~DngOpcode(), and setup().


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