diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-03-10 21:47:38 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-03-10 21:47:38 +0100 |
commit | b222af943c405df509eb9df084d203da4fbd324e (patch) | |
tree | f5dc06ba386a2c079bdf295adeec64b1bdf73543 /ipecamera/data.c | |
parent | f3d280fb8a7f2bccd4367349e00be00d25702195 (diff) | |
download | ipecamera-b222af943c405df509eb9df084d203da4fbd324e.tar.gz ipecamera-b222af943c405df509eb9df084d203da4fbd324e.tar.bz2 ipecamera-b222af943c405df509eb9df084d203da4fbd324e.tar.xz ipecamera-b222af943c405df509eb9df084d203da4fbd324e.zip |
ipecamera hack
Diffstat (limited to 'ipecamera/data.c')
-rw-r--r-- | ipecamera/data.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipecamera/data.c b/ipecamera/data.c index 115d12e..fb29018 100644 --- a/ipecamera/data.c +++ b/ipecamera/data.c @@ -53,7 +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); + 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"); if (!res) { err = PCILIB_ERROR_FAILED; ctx->frame[buf_ptr].event.image_broken = err; |