diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-08-14 01:35:46 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-08-14 01:35:46 +0200 |
commit | 22cc3140070957fb1dc6b5efd68442d6d2105d5b (patch) | |
tree | 44847fbb9d9d33066979086aa6903dfa9aa64431 /base.c | |
parent | ad52865aefeef7c87506a45bf2515413c8092a09 (diff) | |
download | ipecamera-22cc3140070957fb1dc6b5efd68442d6d2105d5b.tar.gz ipecamera-22cc3140070957fb1dc6b5efd68442d6d2105d5b.tar.bz2 ipecamera-22cc3140070957fb1dc6b5efd68442d6d2105d5b.tar.xz ipecamera-22cc3140070957fb1dc6b5efd68442d6d2105d5b.zip |
Adjust buffer sizes to reduce memory consumption with CMOSIS20 camera
Diffstat (limited to 'base.c')
-rw-r--r-- | base.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -111,9 +111,8 @@ pcilib_context_t *ipecamera_init(pcilib_t *pcilib) { return NULL; } - ctx->buffer_size = IPECAMERA_DEFAULT_BUFFER_SIZE; - ctx->dim.bpp = sizeof(ipecamera_pixel_t) * 8; + ctx->buffer_size = IPECAMERA_DEFAULT_BUFFER_SIZE; FIND_REG(status_reg, "fpga", "status"); FIND_REG(control_reg, "fpga", "control"); @@ -136,6 +135,7 @@ pcilib_context_t *ipecamera_init(pcilib_t *pcilib) { break; case IPECAMERA_FIRMWARE_CMOSIS20: ctx->firmware = value; + ctx->buffer_size = IPECAMERA_DEFAULT_CMOSIS20_BUFFER_SIZE; err = pcilib_add_registers(pcilib, 0, cmosis20000_registers); break; default: |