Program Listing for File scTDC_cam_types.h

Return to documentation for file (scTDC_cam_types.h)

#pragma once

struct sc_CamProperties1
{
  int supports_blob;
  int supports_upscaling;
  int supports_adc;
};

struct sc_CamProperties2
{
  int supports_convolution_mask;
};

struct sc_CamProperties3
{
  int sensor_max_intensity;
  int frame_max_intensity;
};

enum sc_cam_pixelformat_t
{
  SC_CAM_PIXELFORMAT_UINT8 = 0,
  SC_CAM_PIXELFORMAT_UINT16 = 1
};

enum sc_cam_frame_meta_flags_t {
  SC_CAM_FRAME_HAS_IMAGE_DATA = 1,
  SC_CAM_FRAME_IS_LAST_FRAME = 2
};

struct sc_cam_frame_meta_t
{
  unsigned data_offset;
  unsigned frame_idx;
  unsigned long long frame_time;
  unsigned short width;
  unsigned short height;
  unsigned short roi_offset_x;
  unsigned short roi_offset_y;
  unsigned short adc;
  unsigned char pixelformat;
  unsigned char flags;
  unsigned char reserved[4];
};

struct sc_cam_blob_meta_t
{
  unsigned data_offset;
  unsigned nr_blobs;
};

struct sc_cam_blob_position_t
{
  float x;
  float y;
};