Commit 67643efd authored by Andrey Filippov's avatar Andrey Filippov

Start/restart behavior, more of relevant status output

parent eb2f643e
This diff is collapsed.
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#define NUM_NEED_NEMPTY (NUM_WRITER_THREADS + 0) // wake up main thread if there are at least this number of empty pages #define NUM_NEED_NEMPTY (NUM_WRITER_THREADS + 0) // wake up main thread if there are at least this number of empty pages
#define NUM_FREE_MANY (NUM_WRITER_THREADS + 1) // Set many if get_num_empty() < NUM_FREE_MANY #define NUM_FREE_MANY (NUM_WRITER_THREADS + 1) // Set many if get_num_empty() < NUM_FREE_MANY
#define ERRORS_FROM_START 1 ///< Reset errors only when starting recording, not after reading status
//#define NODEBUG //#define NODEBUG
#define CAMOGM_FRAME_NOT_READY 1 ///< frame pointer valid, but not yet acquired #define CAMOGM_FRAME_NOT_READY 1 ///< frame pointer valid, but not yet acquired
#define CAMOGM_FRAME_INVALID 2 ///< invalid frame pointer #define CAMOGM_FRAME_INVALID 2 ///< invalid frame pointer
...@@ -172,7 +173,7 @@ enum state_flags { ...@@ -172,7 +173,7 @@ enum state_flags {
STATE_STARTING, STATE_STARTING,
STATE_RUNNING, STATE_RUNNING,
STATE_READING, STATE_READING,
STATE_RESTARTING, STATE_RESTARTING, // after errors, until started
STATE_CANCEL STATE_CANCEL
}; };
...@@ -337,6 +338,10 @@ typedef struct { ...@@ -337,6 +338,10 @@ typedef struct {
int data_segments; ///< the number of segments in frame int data_segments; ///< the number of segments in frame
int buf_overruns[SENSOR_PORTS]; int buf_overruns[SENSOR_PORTS];
int buf_min[SENSOR_PORTS]; int buf_min[SENSOR_PORTS];
int buf_free[SENSOR_PORTS]; ///< free buffer size last measured, per port
int buf_mfree; ///< free buffer size - minimal for all ports
int buf_mmin; ///< minimum of buf_min[port]
int error_restarts; ///< number of restarts due to errors;
int set_frames_skip; ///< will be copied to frames_skip if stopped or at start int set_frames_skip; ///< will be copied to frames_skip if stopped or at start
int frames_skip; ///< number of frames to skip after the one recorded (for time lapse) int frames_skip; ///< number of frames to skip after the one recorded (for time lapse)
///< if negative - -(interval between frames in seconds) ///< if negative - -(interval between frames in seconds)
......
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