Commit 4567a7bf authored by Mikhail Karpenko's avatar Mikhail Karpenko

Move main loop to separate function, spawn processes

parent 38f6a374
This diff is collapsed.
...@@ -87,7 +87,7 @@ typedef struct { ...@@ -87,7 +87,7 @@ typedef struct {
int fd_fparmsall; //! file descriptor for sensor/compressor parameters int fd_fparmsall; //! file descriptor for sensor/compressor parameters
int fd_exif; //! file descriptor for Exif data int fd_exif; //! file descriptor for Exif data
int head_size; //! JPEG header size int head_size; //! JPEG header size
char jpegHeader [JPEG_HEADER_MAXSIZE]; unsigned char jpegHeader [JPEG_HEADER_MAXSIZE];
int metadata_start; int metadata_start;
struct interframe_params_t frame_params; struct interframe_params_t frame_params;
struct interframe_params_t this_frame_params; struct interframe_params_t this_frame_params;
...@@ -158,7 +158,8 @@ typedef struct { ...@@ -158,7 +158,8 @@ typedef struct {
int kml_last_uts; //! last generated kml file timestamp, microseconds int kml_last_uts; //! last generated kml file timestamp, microseconds
struct exif_dir_table_t kml_exif[ExifKmlNumber]; //! store locations of the fields needed for KML generations in the Exif block struct exif_dir_table_t kml_exif[ExifKmlNumber]; //! store locations of the fields needed for KML generations in the Exif block
unsigned int port_num; unsigned int port_num; // sensor port this state assigned to
char *pipe_name; // command pipe name for this sensor port
} camogm_state; } camogm_state;
extern int debug_level; extern int debug_level;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment