diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2014-02-22 23:45:53 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2014-02-22 23:45:53 +0100 |
commit | c78961cb3b218c96f36ee96a4fcb6217080dd9f0 (patch) | |
tree | 1b3f5e2c4c42746adf9572b51fe64080174914f2 /ipecamera | |
parent | b53c207619ccbb090b170b1eda5c19bf3ea94eb0 (diff) | |
download | ipecamera-c78961cb3b218c96f36ee96a4fcb6217080dd9f0.tar.gz ipecamera-c78961cb3b218c96f36ee96a4fcb6217080dd9f0.tar.bz2 ipecamera-c78961cb3b218c96f36ee96a4fcb6217080dd9f0.tar.xz ipecamera-c78961cb3b218c96f36ee96a4fcb6217080dd9f0.zip |
Use seqnum from the frame header
Diffstat (limited to 'ipecamera')
-rw-r--r-- | ipecamera/reader.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ipecamera/reader.c b/ipecamera/reader.c index 5fadaca..b9b7193 100644 --- a/ipecamera/reader.c +++ b/ipecamera/reader.c @@ -156,14 +156,10 @@ static int ipecamera_data_callback(void *user, pcilib_dma_flags_t flags, size_t size_t n_lines = ((uint32_t*)buf)[5] & 0x7FF; ipecamera_compute_buffer_size(ctx, n_lines); -/* - // Not implemented in hardware yet ctx->frame[ctx->buffer_pos].event.info.seqnum = ((uint32_t*)buf)[6] & 0x1FFFFFF; -*/ ctx->frame[ctx->buffer_pos].event.info.offset = (((uint32_t*)buf)[7] & 0xFFFFFF) * 80; - - ctx->frame[ctx->buffer_pos].event.info.seqnum = ctx->event_id + 1; +// ctx->frame[ctx->buffer_pos].event.info.seqnum = ctx->event_id + 1; gettimeofday(&ctx->frame[ctx->buffer_pos].event.info.timestamp, NULL); } else { |