1#ifndef _CHRONOPTICS_TOF_CSF_WRITER_H_
2#define _CHRONOPTICS_TOF_CSF_WRITER_H_
4#include <chronoptics/tof/camera_config.h>
5#include <chronoptics/tof/calibration.h>
6#include <chronoptics/tof/camera.h>
7#include <chronoptics/tof/data.h>
8#include <chronoptics/tof/csf_reader.h>
9#include <chronoptics/tof/gige_interface.h>
10#include <chronoptics/tof/usb_interface.h>
23typedef struct tof_csf_writer* tof_csf_writer_t;
26TOF_EXPORT
void tof_csf_writer_delete(tof_csf_writer_t ptr);
37TOF_EXPORT tof_csf_writer_t tof_csf_writer_new(
const char* file_location,
const tof_camera_config_t camera_config,
const tof_calibration_t calibration,
const char* serial, tof_error_t *error);
46TOF_EXPORT tof_csf_writer_t tof_csf_writer_new_from_camera(
const char* file_location, tof_camera_t camera, tof_error_t *error);
53TOF_EXPORT
void tof_csf_writer_write_frame(tof_csf_writer_t ptr,
const tof_data_t frame, tof_error_t *error);
61TOF_EXPORT tof_csf_writer_t tof_create_csf_writer_reader(
const char* file_location,
const tof_csf_reader_t reader, tof_error_t *error);
69TOF_EXPORT tof_csf_writer_t tof_create_csf_writer_camera(
const char* file_location,
const tof_camera_t camera, tof_error_t *error);
77TOF_EXPORT tof_csf_writer_t tof_create_csf_writer_gige_interface(
const char* file_location,
const tof_gige_interface_t gige_interface, tof_error_t *error);
85TOF_EXPORT tof_csf_writer_t tof_create_csf_writer_usb_interface(
const char* file_location,
const tof_usb_interface_t usb_interface, tof_error_t *error);