From 010b46493f7393f2d67276b292e355e2b992f43f Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 30 Aug 2018 15:52:56 +0200 Subject: Fix estimation of size of UFO6 frame (works for Desy camera) --- base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'base.c') diff --git a/base.c b/base.c index a6c0d91..f8e6457 100644 --- a/base.c +++ b/base.c @@ -361,7 +361,8 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev ctx->dim.width = CMOSIS20_WIDTH; ctx->dim.height = CMOSIS20_MAX_LINES; - ctx->data_line_size = (2 + CMOSIS20_PIXELS_PER_CHANNEL) * 32; + // There is skipped C0 line once per every two lines (which are in fact encoded together) + ctx->data_line_size = CMOSIS20_PIXELS_PER_CHANNEL * 32 + 16; break; default: UNLOCK(run); -- cgit v1.2.3