00001 #include <FCam/N900.h>
00002
00003
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 }