Loading src/camogm.c +7 −0 Original line number Original line Diff line number Diff line Loading @@ -332,6 +332,12 @@ int camogm_start(camogm_state *state) D1(fprintf(debug_file, "Starting recording\n")); D1(fprintf(debug_file, "Starting recording\n")); double dtime_stamp; double dtime_stamp; state->frameno = 0; state->frameno = 0; // do not trigger overrun alert on successfull (from GUI) restarts // if (state->prog_state != STATE_RESTARTING) // for (int p = 0; p < SENSOR_PORTS; p++) // state->buf_overruns[p] = -1; state->timescale = state->set_timescale; // current timescale, default 1 state->timescale = state->set_timescale; // current timescale, default 1 // debug // debug int * ifp = (int*)&(state->frame_params[port]); int * ifp = (int*)&(state->frame_params[port]); Loading Loading @@ -1606,6 +1612,7 @@ int listener_loop(camogm_state *state) // restart the file // restart the file D3(fprintf(debug_file,"%s:line %d - sendImageFrame() returned -%d\n", __FILE__, __LINE__, rslt)); D3(fprintf(debug_file,"%s:line %d - sendImageFrame() returned -%d\n", __FILE__, __LINE__, rslt)); camogm_stop(state); camogm_stop(state); state->prog_state = STATE_RESTARTING; camogm_start(state); camogm_start(state); break; break; case CAMOGM_FRAME_FILE_ERR: // error with file I/O case CAMOGM_FRAME_FILE_ERR: // error with file I/O Loading src/camogm.h +1 −0 Original line number Original line Diff line number Diff line Loading @@ -77,6 +77,7 @@ enum state_flags { STATE_STARTING, STATE_STARTING, STATE_RUNNING, STATE_RUNNING, STATE_READING, STATE_READING, STATE_RESTARTING, STATE_CANCEL STATE_CANCEL }; }; Loading Loading
src/camogm.c +7 −0 Original line number Original line Diff line number Diff line Loading @@ -332,6 +332,12 @@ int camogm_start(camogm_state *state) D1(fprintf(debug_file, "Starting recording\n")); D1(fprintf(debug_file, "Starting recording\n")); double dtime_stamp; double dtime_stamp; state->frameno = 0; state->frameno = 0; // do not trigger overrun alert on successfull (from GUI) restarts // if (state->prog_state != STATE_RESTARTING) // for (int p = 0; p < SENSOR_PORTS; p++) // state->buf_overruns[p] = -1; state->timescale = state->set_timescale; // current timescale, default 1 state->timescale = state->set_timescale; // current timescale, default 1 // debug // debug int * ifp = (int*)&(state->frame_params[port]); int * ifp = (int*)&(state->frame_params[port]); Loading Loading @@ -1606,6 +1612,7 @@ int listener_loop(camogm_state *state) // restart the file // restart the file D3(fprintf(debug_file,"%s:line %d - sendImageFrame() returned -%d\n", __FILE__, __LINE__, rslt)); D3(fprintf(debug_file,"%s:line %d - sendImageFrame() returned -%d\n", __FILE__, __LINE__, rslt)); camogm_stop(state); camogm_stop(state); state->prog_state = STATE_RESTARTING; camogm_start(state); camogm_start(state); break; break; case CAMOGM_FRAME_FILE_ERR: // error with file I/O case CAMOGM_FRAME_FILE_ERR: // error with file I/O Loading
src/camogm.h +1 −0 Original line number Original line Diff line number Diff line Loading @@ -77,6 +77,7 @@ enum state_flags { STATE_STARTING, STATE_STARTING, STATE_RUNNING, STATE_RUNNING, STATE_READING, STATE_READING, STATE_RESTARTING, STATE_CANCEL STATE_CANCEL }; }; Loading