summaryrefslogtreecommitdiffstats
path: root/base.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-28 23:35:25 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-28 23:35:25 +0200
commitc177a207d4c1a02d9093b03fdd64533d2dbfa9b6 (patch)
tree070d766667c1f4300bf24e2db1c742e3d56294f0 /base.c
parent4130584c764aecb55ccb259ad8e9816a6fd423b9 (diff)
downloadipecamera-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/base.c b/base.c
index 3d06bf3..29363c1 100644
--- a/base.c
+++ b/base.c
@@ -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;