Isaac Connor
|
ff1242d839
|
Add reason for failure to rename
|
2025-09-04 15:23:23 -04:00 |
|
Isaac Connor
|
d390369f5e
|
Only do ai detection tagging if we have nlohmann_json
|
2025-07-19 19:14:42 -04:00 |
|
Isaac Connor
|
97877335db
|
Add MaxScoreFrameId to the events table and automatically update it during event creation so we don't have to look it up later. Finding the frame with the max score is actually a very heavy query, so lets not do it.
|
2025-07-15 16:17:36 -04:00 |
|
Isaac Connor
|
24e48c5683
|
Add tags support to events.
|
2025-07-05 08:09:09 -04:00 |
|
Isaac Connor
|
d2514b5e83
|
a while is better than a for
|
2024-10-03 14:42:51 -04:00 |
|
Isaac Connor
|
6b44fda57f
|
Don't need to delete packetqueue_it, as free_it does that.
|
2024-08-20 15:21:29 -04:00 |
|
Isaac Connor
|
912b1818b7
|
Use get_packet_no_wait and a sleep so that if told to close we give up on getting a packet
|
2024-08-01 18:01:28 -04:00 |
|
Isaac Connor
|
1ae223bfc1
|
Don't incremenet event it until we are done with the packet
|
2024-07-26 10:49:02 -04:00 |
|
Isaac Connor
|
174fb6ccf0
|
Remove warning about not getting packet lock
|
2024-07-04 10:24:28 -04:00 |
|
Isaac Connor
|
2755e5044f
|
Don't pass shared_ptr by ref. Defeats the ref counting
|
2024-06-28 09:40:49 -04:00 |
|
Isaac Connor
|
b1d0b57f61
|
test for zm_terminate in event run loop as well in order to reduce backtraces on segfault
|
2024-06-27 08:21:51 -04:00 |
|
Isaac Connor
|
c24f61e641
|
Wait for decoded flag so that we stay behind the decoder
|
2024-06-17 13:40:17 -04:00 |
|
Isaac Connor
|
742f36c58c
|
Redo the event thread. Instead of analysis adding packets to an event specific queue, just pass in the iterator and let the event thread do it's own locking. This allows us to free ram in packet in the event, and not segfault.
|
2024-06-14 18:34:33 -04:00 |
|
Isaac Connor
|
61c3943331
|
use RIAA style
|
2024-06-14 18:34:33 -04:00 |
|
Isaac Connor
|
371b4a9761
|
Free up raw images once we are done with them in event.
|
2024-05-22 09:15:57 -04:00 |
|
Isaac Connor
|
03e3d2245d
|
Remove the event summaries update as we havn't killed that trigger yet
|
2024-05-12 09:04:37 -04:00 |
|
Aaron Kling
|
402393f2ce
|
Set DiskSpace on event end
|
2024-05-12 08:57:50 -04:00 |
|
Aaron Kling
|
c4683d90a9
|
Format code using astyle google format
Commands used:
astyle --style=google --indent=spaces=2 --keep-one-line-blocks src/*.cpp
astyle --style=google --indent=spaces=2 --keep-one-line-blocks src/*.h
|
2024-03-26 13:43:58 -05:00 |
|
Isaac Connor
|
c5db82c082
|
Remove TAPE state.
|
2024-02-26 15:47:39 -05:00 |
|
Isaac Connor
|
63b3f2bd36
|
Always increment alarm_frames if it is an alarm packet. Doesn't have to have an image.
|
2024-02-21 14:21:16 -05:00 |
|
Alejandro Criado-Pérez
|
543683aa4c
|
Corrections on cpp and h files
|
2023-08-13 01:27:19 +02:00 |
|
Isaac Connor
|
33d9a974d5
|
white space
|
2023-07-19 12:38:32 -04:00 |
|
Isaac Connor
|
87fafa43a8
|
Add storing Latitude&Longitude in the event record.
|
2023-07-09 12:02:07 -04:00 |
|
Isaac Connor
|
9a996cb423
|
image may have been deleted, but analysis image may still be there. Correct logic so that analysis frame get saved again.
|
2023-02-19 14:47:43 -05:00 |
|
Isaac Connor
|
a0b23388b8
|
Handle failure to insert into Events table.
|
2023-02-02 10:03:18 -05:00 |
|
Isaac Connor
|
08f02ecd09
|
Queue packets instead of packet locks in event thread. Since we are using std::shared_ptr and not modifying the packet, should not need locking. Also, locking in one thread and unlocking in another is apparentlyundefined behaviour and doesn't work infreebsd.
|
2023-01-24 10:28:38 -05:00 |
|
Isaac Connor
|
388f1c6e1b
|
Add const to MonitorId
|
2023-01-18 16:01:32 -05:00 |
|
Isaac Connor
|
79026b77a1
|
Use monitor::Substitute on Event Prefix
|
2022-09-28 15:53:43 -04:00 |
|
Isaac Connor
|
2bb0db96d8
|
When adjusting start_time, set end_time as well.
|
2022-08-26 09:33:42 -04:00 |
|
Isaac Connor
|
341021de74
|
Use a flag to tell whether we have written the snapshot jpeg yet. If image data has been freed from packets, we may not write the snapshot because we already had a packet with a higher score.
|
2022-08-22 14:56:55 -04:00 |
|
Isaac Connor
|
1bbb2ea3d5
|
reuse event_file to shut up cppcheck
|
2022-07-14 09:59:38 -04:00 |
|
Isaac Connor
|
009c1ab0fb
|
We cannot break if there are packets in the queue. They must be deleted.
|
2022-06-23 16:57:08 -04:00 |
|
Isaac Connor
|
ca8ba73ee9
|
Revert "When we wake from wait, we MUST clear the queue. If a packet snuck in, it MUSt be deleted. Otherwise it remains locked. THis could likely be improved with RAII skills."
This reverts commit 80338467e7.
|
2022-06-23 16:55:34 -04:00 |
|
Isaac Connor
|
00b284314f
|
Revert "Redo the login in Event::Run. We cannot leave with packets still in the queue. I think."
This reverts commit b6c5b47d66.
|
2022-06-23 16:54:57 -04:00 |
|
Isaac Connor
|
b6c5b47d66
|
Redo the login in Event::Run. We cannot leave with packets still in the queue. I think.
|
2022-06-23 14:31:08 -04:00 |
|
Isaac Connor
|
80338467e7
|
When we wake from wait, we MUST clear the queue. If a packet snuck in, it MUSt be deleted. Otherwise it remains locked. THis could likely be improved with RAII skills.
|
2022-06-22 21:00:06 -04:00 |
|
Isaac Connor
|
210a9d035b
|
Fix a case where packets could be left in queue on delete
|
2022-04-30 14:04:09 -04:00 |
|
Isaac Connor
|
06dec70e57
|
Fix lockup due to not checking for terminate_ before grabbing the lock again
|
2022-04-30 14:04:09 -04:00 |
|
Isaac Connor
|
f72c85b110
|
Redo the body of event::Run() so that we don't hold the lock while actually processing the packets. Only around queue manipulation. Should free up analysis thread.
|
2022-04-28 16:42:54 -04:00 |
|
Isaac Connor
|
6f2b5f785d
|
Code comment reminding us that packets in the event queue are locked.
|
2022-04-28 10:36:06 -04:00 |
|
Isaac Connor
|
7dcb45b7b7
|
Remove debugging, code style, spacing. Free lock before notifying
|
2022-04-03 16:21:40 -04:00 |
|
Isaac Connor
|
f17ca48cab
|
Default end_time to start_time on event creation so that we don't get a negative duration
|
2022-03-26 12:47:46 -04:00 |
|
Isaac Connor
|
a40b305065
|
Merge branch 'master' into replace_function_concept
|
2022-02-20 09:52:03 -05:00 |
|
Isaac Connor
|
fe69261f10
|
Include MonitorId as second argument of EventStartCommand and EventEndCOmmand at @baudneo's request.
|
2022-02-19 15:33:05 -05:00 |
|
Isaac Connor
|
552974c5b7
|
Pass full packet to AddFrame so that we can also write other contents out
|
2022-02-12 22:14:21 -05:00 |
|
Isaac Connor
|
e5792c21c9
|
Push locked packets into event packetqueue instead of unlcoked contents. Prevents freeing of data before writing to event, hence crashing.
|
2022-01-28 15:38:18 -05:00 |
|
Isaac Connor
|
42e24614d6
|
Include filename in debugs when writing out jpegs
|
2022-01-26 11:45:07 -05:00 |
|
Isaac Connor
|
f764cfbc32
|
Fix deadlock on deleting event. Cannot race for the lock, joining will do the job
|
2022-01-12 23:11:19 -05:00 |
|
Isaac Connor
|
a9f7b257ea
|
Rough in a queue and a thread into the event to process packets. We do this so that the event creator can get back to analysis as fast as possible so as to avoid the packetqueue filling up.
|
2022-01-12 17:16:49 -05:00 |
|
Isaac Connor
|
7215756fed
|
Introduce a method update the noteSetMap after event creation (addNote).
|
2022-01-03 19:03:04 -05:00 |
|