From d759bc1fc811ea579847d8401c6dff3abacc9e69 Mon Sep 17 00:00:00 2001 From: kusy Date: Wed, 6 May 2009 16:36:55 +0000 Subject: [PATCH] support for higher resolution cameras --- tos/chips/pxa27x/cif/HplPXA27XQuickCaptIntM.nc | 7 ++----- tos/chips/pxa27x/cif/dmaArray.h | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tos/chips/pxa27x/cif/HplPXA27XQuickCaptIntM.nc b/tos/chips/pxa27x/cif/HplPXA27XQuickCaptIntM.nc index 7f9d5804..f8ddab13 100644 --- a/tos/chips/pxa27x/cif/HplPXA27XQuickCaptIntM.nc +++ b/tos/chips/pxa27x/cif/HplPXA27XQuickCaptIntM.nc @@ -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(); diff --git a/tos/chips/pxa27x/cif/dmaArray.h b/tos/chips/pxa27x/cif/dmaArray.h index d501b665..2822db87 100644 --- a/tos/chips/pxa27x/cif/dmaArray.h +++ b/tos/chips/pxa27x/cif/dmaArray.h @@ -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) -- 2.39.2