[aravis/wip/emmanuel/wakeup] fakecamera: increment frame id on each new frame
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis/wip/emmanuel/wakeup] fakecamera: increment frame id on each new frame
- Date: Wed, 27 May 2015 15:12:58 +0000 (UTC)
commit ed237d97f65c287dd522ade813c508a17160648b
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed May 27 17:12:15 2015 +0200
fakecamera: increment frame id on each new frame
src/arvfakegvcamera.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/arvfakegvcamera.c b/src/arvfakegvcamera.c
index f6f7f40..009934f 100644
--- a/src/arvfakegvcamera.c
+++ b/src/arvfakegvcamera.c
@@ -132,11 +132,17 @@ arv_fake_gv_camera_thread (void *user_data)
image_buffer = arv_buffer_new (payload, NULL);
}
+ image_buffer->priv->frame_id++;
+ if (image_buffer->priv->frame_id == 0)
+ image_buffer->priv->frame_id = 1;
+
arv_fake_camera_wait_for_next_frame (gv_camera->camera);
arv_fake_camera_fill_buffer (gv_camera->camera, image_buffer, &gv_packet_size);
block_id = 0;
+ arv_debug_stream_thread ("[FakeGvCamera::stream_thread] Send frame id=%d",
image_buffer->priv->frame_id);
+
packet_size = ARV_FAKE_GV_CAMERA_BUFFER_SIZE;
arv_gvsp_packet_new_data_leader (image_buffer->priv->frame_id,
block_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]