/alps/ipecamera

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to base.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-13 23:35:46 UTC
  • Revision ID: csa@suren.me-20150813233546-41w5ofer2wotrl49
Adjust buffer sizes to reduce memory consumption with CMOSIS20 camera

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
            return NULL;
112
112
        }
113
113
 
 
114
        ctx->dim.bpp = sizeof(ipecamera_pixel_t) * 8;
114
115
        ctx->buffer_size = IPECAMERA_DEFAULT_BUFFER_SIZE;
115
116
 
116
 
        ctx->dim.bpp = sizeof(ipecamera_pixel_t) * 8;
117
 
 
118
117
        FIND_REG(status_reg, "fpga", "status");
119
118
        FIND_REG(control_reg, "fpga", "control");
120
119
 
136
135
            break;
137
136
         case IPECAMERA_FIRMWARE_CMOSIS20:
138
137
            ctx->firmware = value;
 
138
            ctx->buffer_size = IPECAMERA_DEFAULT_CMOSIS20_BUFFER_SIZE;
139
139
            err = pcilib_add_registers(pcilib, 0, cmosis20000_registers);
140
140
            break;
141
141
         default: