summaryrefslogtreecommitdiffstats
path: root/data.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-05-02 00:36:09 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-05-02 00:36:09 +0200
commit6d3c61711bfe6524272bbde591e3494e0346a7da (patch)
tree086032b8036532898f9a9d4822f9f4b0a31f2b6f /data.c
parent993fb64bcbf75d2c447b718dff862c2124fbb062 (diff)
downloadipecamera-6d3c61711bfe6524272bbde591e3494e0346a7da.tar.gz
ipecamera-6d3c61711bfe6524272bbde591e3494e0346a7da.tar.bz2
ipecamera-6d3c61711bfe6524272bbde591e3494e0346a7da.tar.xz
ipecamera-6d3c61711bfe6524272bbde591e3494e0346a7da.zip
Cleanup
Diffstat (limited to 'data.c')
-rw-r--r--data.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/data.c b/data.c
index 50d431a..dc61234 100644
--- a/data.c
+++ b/data.c
@@ -54,11 +54,8 @@ inline static int ipecamera_decode_frame(ipecamera_t *ctx, pcilib_event_id_t eve
pixels = ctx->image + buf_ptr * ctx->image_size;
memset(ctx->cmask + ctx->buffer_pos * ctx->dim.height, 0, ctx->dim.height * sizeof(ipecamera_change_mask_t));
-/* printf("decoding %lx...\n", ctx->raw_size);
- FILE *f = fopen("/mnt/frame.xxx", "w");
- fwrite(ctx->buffer + buf_ptr * ctx->padded_size, 1, ctx->roi_raw_size, f);
- fclose(f);
- printf("%lu\n", ctx->raw_size);*/
+ ipecamera_debug_buffer(RAW_FRAMES, ctx->frame[buf_ptr].event.raw_size, ctx->buffer + buf_ptr * ctx->padded_size, PCILIB_DEBUG_BUFFER_MKDIR, "raw_frame.%4lu", ctx->event_id);
+
res = ufo_decoder_decode_frame(ctx->ipedec, ctx->buffer + buf_ptr * ctx->padded_size, ctx->frame[buf_ptr].event.raw_size, pixels, &ctx->frame[buf_ptr].event.meta);
if (!res) {
ipecamera_debug_buffer(BROKEN_FRAMES, ctx->frame[buf_ptr].event.raw_size, ctx->buffer + buf_ptr * ctx->padded_size, PCILIB_DEBUG_BUFFER_MKDIR, "broken_frame.%4lu", ctx->event_id);