ark::image::VideoStreamConfiguration

Defined in header “ark/image/video_device.hh”.


A configuration for an individual video stream. A video device may have multiple streams.

Variables

  • size_t width= 0
    The width you wish to receive camera images at. Set to zero for defaults.

  • size_t height= 0
    The height you wish to receive camera images at. Set to zero for defaults.

  • ImageDataFormat format= ImageDataFormat::Yuyv
    The desired format of the buffers.

  • size_t plane_count= 1
    The number of planes to request.

  • size_t frame_rate= 30
    The preferred frame rate for this device.

  • size_t buffer_count= 20
    The number of background buffers to use. This allows you to hold onto images a bit longer, at the cost of memory allocation.

  • size_t image_size= 0
    The size of individual images. This is almost always best to leave at zero for automatic.

  • bool request_descriptor= false
    If an individual file descriptor needs to be requested for this stream. This is typically not true, but on some devices, you may want a per-buffer descriptor.

  • bool automatically_memory_map_buffers= true
    Automatically memory map in buffers to use; if set to false, you must provide the buffer you wish to use for receiving/writing camera data.