|
libopenraw
0.3.7
|
Info on the mosaic for the Colour Filter Array. More...
#include <mosaicinfo.hpp>
Classes | |
| class | Private |
Public Member Functions | |
| void | setSize (uint16_t x, uint16_t y) |
| Set the pattern size. | |
| void | getSize (uint16_t &x, uint16_t &y) const |
| Get the pattern size. | |
| bool | isCFA () const |
| Return of the mosaic is a Color Filter Array. | |
| bool | is2by2Rgb () const |
| Return if the pattern is 2x2 RGB. | |
| ::or_cfa_pattern | patternType () const |
| const uint8_t * | patternPattern (uint16_t &count) const |
| Return the pattern's pattern. More... | |
Static Public Member Functions | |
| static const MosaicInfo * | twoByTwoPattern (::or_cfa_pattern) |
| Factory to return a singleton instance of the right pattern. More... | |
Protected Member Functions | |
| MosaicInfo (::or_cfa_pattern pattern, uint16_t width, uint16_t height) | |
| Construct a MosaicInfo. More... | |
| void | setPatternPattern (const uint8_t *pattern, uint16_t count) |
| Set the pattern pattern. More... | |
| MosaicInfo (const MosaicInfo &)=delete | |
| MosaicInfo & | operator= (const MosaicInfo &)=delete |
| void | setPatternType (::or_cfa_pattern pattern) |
| Set the pattern type. | |
Protected Attributes | |
| Private * | d |
| Private data. | |
Info on the mosaic for the Colour Filter Array.
Definition at line 32 of file mosaicinfo.hpp.
|
protected |
Construct a MosaicInfo.
| pattern | The pattern. |
| width | The horizontal dimension in pixels. |
| height | The vertical dimension in pixels. |
Definition at line 129 of file mosaicinfo.cpp.
References setPatternType(), and setSize().
| const uint8_t * OpenRaw::MosaicInfo::patternPattern | ( | uint16_t & | count | ) | const |
Return the pattern's pattern.
| [out] | count | The number of elements in the pattern. |
Definition at line 178 of file mosaicinfo.cpp.
References d.
Referenced by or_mosaicinfo_get_pattern().
| or_cfa_pattern OpenRaw::MosaicInfo::patternType | ( | ) | const |
Definition at line 199 of file mosaicinfo.cpp.
References d.
|
protected |
Set the pattern pattern.
| pattern | the actual pattern sequence left to right, top to bottom |
| count | the number of element. Should be width x height |
Definition at line 167 of file mosaicinfo.cpp.
References d.
|
static |
Factory to return a singleton instance of the right pattern.
Definition at line 84 of file mosaicinfo.cpp.