Added last image capture time into shared memory.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@607 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
c90f7f0765
commit
feabf475df
|
@ -109,14 +109,13 @@ protected:
|
||||||
ForceState force_state;
|
ForceState force_state;
|
||||||
int last_write_index;
|
int last_write_index;
|
||||||
int last_read_index;
|
int last_read_index;
|
||||||
|
time_t last_image_time;
|
||||||
int last_event;
|
int last_event;
|
||||||
int action;
|
int action;
|
||||||
int brightness;
|
int brightness;
|
||||||
int hue;
|
int hue;
|
||||||
int colour;
|
int colour;
|
||||||
int contrast;
|
int contrast;
|
||||||
struct timeval *timestamps;
|
|
||||||
unsigned char *images;
|
|
||||||
} SharedData;
|
} SharedData;
|
||||||
|
|
||||||
SharedData *shared_data;
|
SharedData *shared_data;
|
||||||
|
@ -204,6 +203,7 @@ public:
|
||||||
image_buffer[index].image->CopyBuffer( image );
|
image_buffer[index].image->CopyBuffer( image );
|
||||||
|
|
||||||
shared_data->last_write_index = index;
|
shared_data->last_write_index = index;
|
||||||
|
shared_data->last_image_time = image_buffer[index].timestamp->tv_sec;
|
||||||
|
|
||||||
image_count++;
|
image_count++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue