Tedd OKANO / MARY_CAMERA
Revision:
22:1a923c255be6
Parent:
21:db9c0690c0a2
Child:
25:8f6c2a094544
Child:
28:b5d5a2f7f0d0
--- a/MARY_CAMERA.h	Tue Mar 11 09:44:05 2014 +0000
+++ b/MARY_CAMERA.h	Tue Mar 11 11:40:30 2014 +0000
@@ -57,11 +57,11 @@
 {
 public:
     typedef enum  {
-        QCIF    = 0,            /**< QCIF       */
+        QCIF    = 1,            /**< QCIF       */
         VGA,                    /**< VGA        */
         QVGA,                   /**< QVGA       */
         QQVGA,                  /**< QQVGA      */
-    } CameraPictureSize;
+    } CameraResolution;
 
     typedef enum  {
         OFF    = 0,             /**< ON         */
@@ -111,13 +111,21 @@
      *
      *  This function takes about 2 seconds because there is 99 times I2C access with 20ms interval.
      */
-    int init( CameraPictureSize picture_size );
+    int init( void );
+
+    /** Resolution
+     *
+     *  Change camera resolution
+     *
+     *  @param res   select camera resolution : QCIF(default), VGA, QVGA or QQVGA
+     */
+    void resolution( CameraResolution res );
 
     /** Color bar ON/OFF
      *
      *  Set colorbar ON/OFF
      *
-     *  @param sw
+     *  @param sw   turn-ON or -OFF colorbar : ON or OFF
      */
     void colorbar( SwitchState sw );