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

Public Member Functions

virtual void setup (const RawImage &ri)
virtual void apply (const RawImage &ri)=0

Protected Member Functions

 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

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 353 of file DngOpcodes.cpp.

Constructor & Destructor Documentation

◆ PixelOpcode()

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

Definition at line 362 of file DngOpcodes.cpp.

References rawspeed::DngOpcodes::ROIOpcode::ROIOpcode(), colPitch, firstPlane, rawspeed::RawImageData::getCpp(), rawspeed::DngOpcodes::ROIOpcode::getRoi(), rawspeed::ByteStream::getU32(), planes, rowPitch, and ThrowRDE.

Referenced by rawspeed::DngOpcodes::DeltaRowOrColBase::DeltaRowOrColBase().

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

Member Function Documentation

◆ anchor()

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

Reimplemented from rawspeed::DngOpcodes::DngOpcode.

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

Definition at line 411 of file DngOpcodes.cpp.

◆ apply()

◆ applyOP()

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

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
inlinenodiscardprotected

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:

◆ setup()

virtual void rawspeed::DngOpcodes::DngOpcode::setup ( const RawImage & ri)
inlinevirtualinherited

Reimplemented in rawspeed::DngOpcodes::DeltaRowOrCol< S >, rawspeed::DngOpcodes::FixBadPixelsConstant, and rawspeed::DngOpcodes::LookupOpcode.

Definition at line 128 of file DngOpcodes.cpp.

References assert(), integrated_subimg, and setup_was_called.

Referenced by rawspeed::DngOpcodes::DummyROIOpcode::DummyROIOpcode(), rawspeed::DngOpcodes::DeltaRowOrCol< S >::setup(), rawspeed::DngOpcodes::FixBadPixelsConstant::setup(), and rawspeed::DngOpcodes::LookupOpcode::setup().

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

Member Data Documentation

◆ colPitch

uint32_t rawspeed::DngOpcodes::PixelOpcode::colPitch
private

Definition at line 357 of file DngOpcodes.cpp.

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

◆ firstPlane

uint32_t rawspeed::DngOpcodes::PixelOpcode::firstPlane
private

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().

◆ planes

uint32_t rawspeed::DngOpcodes::PixelOpcode::planes
private

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
private

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: