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.

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 setPatternPattern(), and setSize().

◆ 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::OrfFile::_getRawData(), OpenRaw::Internals::CRWFile::_getRawData(), OpenRaw::RawData::getRenderedImage(), and OpenRaw::Internals::NefFile::isCompressed().

◆ 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.

References is2by2Rgb(), and setSize().

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

Referenced by setPatternPattern().

◆ 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.

Referenced by OpenRaw::RawData::setDimensions().


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