Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
DemosaicCore.h
Go to the documentation of this file.
1 #ifndef DEMOSAICCORE_H
2 #define DEMOSAICCORE_H
3 
4 #include <libfpga/fpgaregister.h>
5 
7 {
8 public:
9  tcDemosaicCore(int anAddress);
10 
25  eeGBRG = 0,
26  eeGRBG = 1,
27  eeBGGR = 2,
28  eeRGGB = 3,
29  };
30 
31  bool initialized();
32 
33  void enable(bool abEnable);
34 
35  void capHeaderArm();
36 
37  void setDemosaicMode(teDemosaicMode value);
38 
39  void setWhiteBalance(float anRed, float anGreen, float anBlue);
40 
41  void setRed(float anRed);
42 
43  void setGreen(float anGreen);
44 
45  void setBlue(float anGreen);
46 
47 private:
48  void writeScale(int anOffset, float anValue);
49 
50  tcFPGARegister<uint32_t> mcReg;
51 };
52 
53 #endif // DEMOSAICCORE_H
tcDemosaicCore::initialized
bool initialized()
Definition: DemosaicCore.cpp:20
tcDemosaicCore::teDemosaicMode
teDemosaicMode
Definition: DemosaicCore.h:24
tcDemosaicCore::setWhiteBalance
void setWhiteBalance(float anRed, float anGreen, float anBlue)
Definition: DemosaicCore.cpp:42
tcDemosaicCore::setBlue
void setBlue(float anGreen)
set the blue component of white balancing
Definition: DemosaicCore.cpp:71
tcDemosaicCore::tcDemosaicCore
tcDemosaicCore(int anAddress)
Definition: DemosaicCore.cpp:15
tcDemosaicCore::eeBGGR
@ eeBGGR
Definition: DemosaicCore.h:27
tcDemosaicCore::enable
void enable(bool abEnable)
Definition: DemosaicCore.cpp:25
tcDemosaicCore::setRed
void setRed(float anRed)
set the red component of white balancing
Definition: DemosaicCore.cpp:53
tcDemosaicCore::eeGBRG
@ eeGBRG
Definition: DemosaicCore.h:25
tcDemosaicCore::setGreen
void setGreen(float anGreen)
set the green component of white balancing
Definition: DemosaicCore.cpp:62
tcDemosaicCore::eeRGGB
@ eeRGGB
Definition: DemosaicCore.h:28
tcDemosaicCore::capHeaderArm
void capHeaderArm()
Definition: DemosaicCore.cpp:30
tcDemosaicCore::setDemosaicMode
void setDemosaicMode(teDemosaicMode value)
Definition: DemosaicCore.cpp:35
tcDemosaicCore
Definition: DemosaicCore.h:6
tcDemosaicCore::eeGRBG
@ eeGRBG
Definition: DemosaicCore.h:26