61
61
printf("%lu\n", ctx->raw_size);*/
62
62
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);
66
sprintf(name, "%s/broken.%4lu", IPECAMERA_DEBUG_BROKEN_FRAMES, ctx->event_id);
69
fwrite(ctx->buffer + buf_ptr * ctx->padded_size, ctx->raw_size, 1, f);
64
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);
73
65
err = PCILIB_ERROR_FAILED;
74
66
ctx->frame[buf_ptr].event.image_broken = err;