libopenraw
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenRaw::CfaPattern Class Reference
Inheritance diagram for OpenRaw::CfaPattern:
OpenRaw::Internals::Cfa2x2RgbPattern OpenRaw::Internals::XTransPattern

Classes

class  Private
 

Public Member Functions

void setSize (uint16_t x, uint16_t y)
 
bool is2by2Rgb () const
 
::or_cfa_pattern patternType () const
 
const uint8_t * patternPattern (uint16_t &count) const
 

Static Public Member Functions

static const CfaPatterntwoByTwoPattern (::or_cfa_pattern)
 

Protected Member Functions

 CfaPattern (::or_cfa_pattern pattern, uint16_t width, uint16_t height)
 
void setPatternPattern (const uint8_t *pattern, uint16_t count)
 

Detailed Description

Definition at line 29 of file cfapattern.hpp.

Constructor & Destructor Documentation

◆ ~CfaPattern()

OpenRaw::CfaPattern::~CfaPattern ( )
virtual

Definition at line 130 of file cfapattern.cpp.

◆ CfaPattern() [1/2]

OpenRaw::CfaPattern::CfaPattern ( )
protected

Definition at line 117 of file cfapattern.cpp.

◆ CfaPattern() [2/2]

OpenRaw::CfaPattern::CfaPattern ( ::or_cfa_pattern  pattern,
uint16_t  width,
uint16_t  height 
)
protected

Definition at line 122 of file cfapattern.cpp.

Member Function Documentation

◆ is2by2Rgb()

bool OpenRaw::CfaPattern::is2by2Rgb ( ) const

Return if the pattern is 2x2 RGB

Definition at line 147 of file cfapattern.cpp.

Referenced by setSize().

◆ patternPattern()

const uint8_t * OpenRaw::CfaPattern::patternPattern ( uint16_t &  count) const

Definition at line 165 of file cfapattern.cpp.

◆ patternType()

or_cfa_pattern OpenRaw::CfaPattern::patternType ( ) const
Returns
the pattern type. Be cautious as this does not cover non 2x2 RGB.

Definition at line 186 of file cfapattern.cpp.

Referenced by OpenRaw::Internals::CRWFile::_getRawData(), OpenRaw::Internals::OrfFile::_getRawData(), and OpenRaw::RawData::getRenderedImage().

◆ setPatternPattern()

void OpenRaw::CfaPattern::setPatternPattern ( const uint8_t *  pattern,
uint16_t  count 
)
protected

Set the pattern pattern.

Parameters
patternthe actual pattern sequence left to right, top to bottom
countthe number of element. Should be width x height

Definition at line 154 of file cfapattern.cpp.

◆ setSize()

void OpenRaw::CfaPattern::setSize ( uint16_t  x,
uint16_t  y 
)

Set the pattern size

Definition at line 135 of file cfapattern.cpp.

References is2by2Rgb().

◆ twoByTwoPattern()

const CfaPattern * OpenRaw::CfaPattern::twoByTwoPattern ( ::or_cfa_pattern  pattern)
static

factory to return a singleton instance of the right pattern

Returns
a const CfaPattern. Never delete it. MAY BE NULL.

Definition at line 77 of file cfapattern.cpp.


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