CameraC328

Dependents:   CameraC328_TestProgram CameraC328_Thresholding Camera_TestProgram_2015 Camera_TestProgram_2015 ... more

Revision:
1:167e51d598cf
Parent:
0:7e51c3176eb7
Child:
2:6a72fcad5c0a
diff -r 7e51c3176eb7 -r 167e51d598cf CameraC328.h
--- a/CameraC328.h	Sun Jun 27 03:36:10 2010 +0000
+++ b/CameraC328.h	Sun Jun 27 05:04:04 2010 +0000
@@ -51,6 +51,11 @@
         SendPictureError = 0xf5,
         SendCommandError = 0xff
     };
+    
+    enum SnapshotType {
+        CompressedPicture = 0x00,
+        UncompressedPicture = 0x01
+    };
 
     enum PictureType {
         SnapshotPicture = 0x01,
@@ -59,8 +64,8 @@
     };
 
     ErrorNumber sync();
-    ErrorNumber getPicture(PictureType pt, void(*func)(size_t done, size_t total, char c));
     ErrorNumber init(ColorType ct, RawResolution rr, JpegResolution jr);
+    ErrorNumber getJpegSnapshotPicture(void(*func)(size_t done, size_t total, char c));
 
 private:
     Serial serial;
@@ -69,22 +74,6 @@
     static const int BAUD = 19600;
     static const int SYNCMAX = 60;
 
-    /*
-     * Get snapshot picture (uncompressed snapshot picture)
-     *
-     * @param func Pointer to a callback function.
-     * @return Status of the error.
-     */
-    ErrorNumber getSnapshotPicture(void(*func)(size_t done, size_t total, char c));
-
-    /*
-     * Get preview picture (uncompressed preview picture)
-     *
-     * @param func Pointer to a callback function.
-     * @return Status of the error.
-     */
-    ErrorNumber getPreviewPicture(void(*func)(size_t done, size_t total, char c));
-
     /**
      * Send bytes to camera module.
      *