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 /data.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 'data.c')
-rw-r--r-- | data.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -53,13 +53,13 @@ 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); + +/* printf("decoding %lx...\n", ctx->raw_size); FILE *f = fopen("/mnt/frame.xxx", "w"); - fwrite(ctx->buffer + buf_ptr * ctx->padded_size, 1, ctx->raw_size, f); - fclose(f);*/ - res = ufo_decoder_decode_frame(ctx->ipedec, ctx->buffer + buf_ptr * ctx->padded_size, ctx->raw_size, pixels, &ctx->frame[buf_ptr].event.meta); -// puts("done\n"); + fwrite(ctx->buffer + buf_ptr * ctx->padded_size, 1, ctx->roi_raw_size, f); + fclose(f); + printf("%lu\n", ctx->raw_size);*/ + 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) { #ifdef IPECAMERA_DEBUG_BROKEN_FRAMES char name[128]; |