• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

tests/testRestart.cpp

00001 #include <FCam/N900.h>
00002 
00003 // This program tests repeatedly restarting the sensor
00004 
00005 using namespace FCam;
00006 
00007 int main(int, char **) {
00008 
00009     for (int i = 0; i < 10; i++) {
00010         printf("Firing up sensor...\n");
00011         N900::Sensor sensor;
00012         Shot shot;
00013         shot.exposure = 30000;
00014         shot.gain = 2.0f;
00015         shot.image = FCam::Image(640, 480, UYVY);
00016         sensor.stream(shot);
00017         Frame frame = sensor.getFrame();
00018         char buf[128];
00019         sprintf(buf, "test_%d.jpg", i);
00020         saveJPEG(frame, buf, 50);
00021         printf("Shutting down sensor...\n");
00022     }
00023 }

Generated on Mon Aug 16 2010 14:25:45 for FCam by  doxygen 1.7.1