From c177a207d4c1a02d9093b03fdd64533d2dbfa9b6 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 28 Apr 2015 23:35:25 +0200 Subject: Simplify size tracking in the reader --- base.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'base.c') 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; -- cgit v1.2.3