blob: 3ff77bf69b52e353f0684fbaac0055768002f980 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <glib-object.h>
#include "uca-camera.h"
#include "uca-mock-camera.h"
int main(int argc, char **argv)
{
g_type_init();
GError *error = NULL;
UcaMockCamera *cam = uca_mock_camera_new(&error);
if (cam == NULL) {
g_error("Camera could not be initialized\n");
}
guint width, height;
g_object_get(cam,
"sensor-width", &width,
"sensor-height", &height,
NULL);
g_print("resolution %ix%i\n", width, height);
g_object_unref(cam);
}
|