]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
support for higher resolution cameras
authorkusy <kusy>
Wed, 6 May 2009 16:36:55 +0000 (16:36 +0000)
committerkusy <kusy>
Wed, 6 May 2009 16:36:55 +0000 (16:36 +0000)
tos/chips/pxa27x/cif/HplPXA27XQuickCaptIntM.nc
tos/chips/pxa27x/cif/dmaArray.h

index 7f9d58043a837aa0d278d7149e75280d1f6128ae..f8ddab13948123b44743413a68aabeb027c30268 100644 (file)
@@ -169,11 +169,8 @@ implementation
 
     command error_t HplPXA27XQuickCaptInt.setImageSize(uint16_t sizeX, uint16_t sizeY, uint8_t colorType)
     {
-        //was: if (sizeX > 2048 || sizeY > 2048)
-    if (sizeX > 320 || sizeY > 240) 
-            return FAIL;
-
-    
+    if (sizeX > 2048 || sizeY > 2048)
+      return FAIL;
 
     // (1) - Set the Quick Capture Interface Size
     //was: call HplPXA27XQuickCaptInt.disableQuick();
index d501b66525a78a102ab404439b9991b97a4660f1..2822db87289a1e56e589b8d7b0212f70ece3bda3 100644 (file)
@@ -58,7 +58,7 @@ typedef struct {
 #define MAX_DESC_TRANSFER  8184                // max is 8K-1, CIF requires a multiple of 8    //8192
 
 // ----------------------------------------------
-#define DescArray_NBR_DESC         20//8
+#define DescArray_NBR_DESC         100//8
 #define DescArray_BYTE_ALLIGNMENT  16
 #define DescArray_BUFFER_SIZE      (DescArray_NBR_DESC*sizeof(DMADescriptor_t) + DescArray_BYTE_ALLIGNMENT)