Skip to content

Commit

Permalink
v4l2: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelP committed Sep 3, 2024
1 parent ae9c8ab commit 8d7c1a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/arvv4l2device.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@

#define ARV_V4L2_ADDRESS_WIDTH 0x0100
#define ARV_V4L2_ADDRESS_HEIGHT 0x0104
#define ARV_V4L2_ADDRESS_GAIN 0x0110
#define ARV_V4L2_ADDRESS_PAYLOAD_SIZE 0x0118
#define ARV_V4L2_ADDRESS_EXPOSURE_TIME 0x0120
#define ARV_V4L2_ADDRESS_ACQUISITION_COMMAND 0x0124
#define ARV_V4L2_ADDRESS_PIXEL_FORMAT 0x0128

Expand Down Expand Up @@ -309,6 +311,12 @@ arv_v4l2_device_read_memory (ArvDevice *device, guint64 address, guint32 size, v
frame_size->discrete.height :
frame_size->stepwise.max_height;
break;
case ARV_V4L2_ADDRESS_GAIN:
value = 0;
break;
case ARV_V4L2_ADDRESS_EXPOSURE_TIME:
value = 10;
break;
case ARV_V4L2_ADDRESS_PAYLOAD_SIZE:
arv_v4l2_device_set_image_format (v4l2_device);
arv_v4l2_device_get_image_format (v4l2_device, (guint32 *) &value,
Expand Down

0 comments on commit 8d7c1a7

Please sign in to comment.