diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-04-28 23:35:25 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-04-28 23:35:25 +0200 |
commit | c177a207d4c1a02d9093b03fdd64533d2dbfa9b6 (patch) | |
tree | 070d766667c1f4300bf24e2db1c742e3d56294f0 /base.c | |
parent | 4130584c764aecb55ccb259ad8e9816a6fd423b9 (diff) | |
download | ipecamera-c177a207d4c1a02d9093b03fdd64533d2dbfa9b6.tar.gz ipecamera-c177a207d4c1a02d9093b03fdd64533d2dbfa9b6.tar.bz2 ipecamera-c177a207d4c1a02d9093b03fdd64533d2dbfa9b6.tar.xz ipecamera-c177a207d4c1a02d9093b03fdd64533d2dbfa9b6.zip |
Simplify size tracking in the reader
Diffstat (limited to 'base.c')
-rw-r--r-- | base.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -321,9 +321,8 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev ipecamera_compute_buffer_size(ctx, ctx->dim.height); - ctx->raw_size = ctx->cur_raw_size; - ctx->full_size = ctx->cur_full_size; - ctx->padded_size = ctx->cur_padded_size; + ctx->raw_size = ctx->roi_raw_size; + ctx->padded_size = ctx->roi_padded_size; ctx->image_size = ctx->dim.width * ctx->dim.height; |