|
|
@ -9,6 +9,10 @@ |
|
|
|
#include "ofMain.h" |
|
|
|
#include "FboSource.h" |
|
|
|
|
|
|
|
#ifdef TARGET_RASPBERRY_PI |
|
|
|
#include "RPiVideoGrabber.h" |
|
|
|
#endif |
|
|
|
|
|
|
|
class CameraSource : public ofx::piMapper::FboSource { |
|
|
|
public: |
|
|
|
CameraSource(); |
|
|
@ -17,7 +21,12 @@ class CameraSource : public ofx::piMapper::FboSource { |
|
|
|
void draw(); |
|
|
|
|
|
|
|
private: |
|
|
|
|
|
|
|
#ifdef TARGET_RASPBERRY_PI |
|
|
|
RPiVideoGrabber _videoGrabber; |
|
|
|
#else |
|
|
|
ofVideoGrabber _videoGrabber; |
|
|
|
#endif |
|
|
|
int _cameraWidth; |
|
|
|
int _cameraHeight; |
|
|
|
bool _cameraFound; |
|
|
|