diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-02-06 11:13:12 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-02-06 11:13:12 +0100 |
commit | 9fbb0ddf466556f762f191415c27a50b96a71787 (patch) | |
tree | 4de40f1980f293a57c3a6497a33f19337145f0d3 /plugins | |
parent | 15390deea4747d1b1fbf457162564b496ae0537e (diff) | |
download | libuca-9fbb0ddf466556f762f191415c27a50b96a71787.tar.gz libuca-9fbb0ddf466556f762f191415c27a50b96a71787.tar.bz2 libuca-9fbb0ddf466556f762f191415c27a50b96a71787.tar.xz libuca-9fbb0ddf466556f762f191415c27a50b96a71787.zip |
Increase default "sensor" size of mock
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mock/uca-mock-camera.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mock/uca-mock-camera.c b/plugins/mock/uca-mock-camera.c index bf3124e..13bdd51 100644 --- a/plugins/mock/uca-mock-camera.c +++ b/plugins/mock/uca-mock-camera.c @@ -232,9 +232,9 @@ static void uca_mock_camera_grab(UcaCamera *camera, gpointer *data, GError **err UcaMockCameraPrivate *priv = UCA_MOCK_CAMERA_GET_PRIVATE(camera); if (*data == NULL) - *data = g_malloc0(priv->width * priv->height); + *data = g_malloc0(priv->roi_width * priv->roi_height); - g_memmove(*data, priv->dummy_data, priv->width * priv->height); + g_memmove(*data, priv->dummy_data, priv->roi_width * priv->roi_height); print_current_frame(priv, *data); priv->current_frame++; } @@ -385,8 +385,8 @@ static void uca_mock_camera_init(UcaMockCamera *self) self->priv = UCA_MOCK_CAMERA_GET_PRIVATE(self); self->priv->roi_x = 0; self->priv->roi_y = 0; - self->priv->width = self->priv->roi_width = 640; - self->priv->height = self->priv->roi_height = 480; + self->priv->width = self->priv->roi_width = 2016; + self->priv->height = self->priv->roi_height = 2016; self->priv->frame_rate = self->priv->max_frame_rate = 100000.0f; self->priv->grab_thread = NULL; self->priv->current_frame = 0; |