Commit Graph

4641 Commits

Author SHA1 Message Date
Isaac Connor 15b01c2730 timestamp image before scaling. Fixes lack of scaling when TIMESTAMP_ON_CAPTURE
is off
2021-12-10 16:45:26 -05:00
pkubaj a577c3fe79 Fix build on FreeBSD/armv7
1. FreeBSD uses elf_aux_info instead of getauxval.
2. FreeBSD uses HWCAP_NEON macro for Neon.
2021-12-10 16:42:08 -05:00
Isaac Connor 5fdad04a9e Move Cleanup and framebuffer freeing into Close() so that we don't crash on Reload 2021-12-10 16:41:37 -05:00
Isaac Connor a0fd8d64d2 Wait for closeEvent thread to finish. Fixes unfinished event when zmc told to restart 2021-12-10 16:40:52 -05:00
Isaac Connor b7b49437b9 spacing 2021-12-10 16:23:46 -05:00
Isaac Connor 327f481893 must clear the monitors array before terminating log. 2021-12-10 16:23:31 -05:00
Isaac Connor fb0f184d1d Revert "timestamp image before scaling. Fixes lack of scaling when TIMESTAMP_ON_CAPTURE"
This reverts commit 59e8bca3bc.
2021-11-30 12:03:21 -05:00
Isaac Connor 59e8bca3bc timestamp image before scaling. Fixes lack of scaling when TIMESTAMP_ON_CAPTURE
is off
2021-11-29 13:57:39 -05:00
Isaac Connor 7d470fa059 Code comments and make warning when the first packet in queue is locked. 2021-11-29 13:53:37 -05:00
Isaac Connor 11c12f5d10 typo 2021-11-29 13:52:47 -05:00
Isaac Connor 209d45c5f0 include monitor dimensions when logging about zone mismatch 2021-11-29 13:52:31 -05:00
Isaac Connor 56fdae0f19 timestamp image before scaling. Fixes lack of scaling when TIMESTAMP_ON_CAPTURE
is off
2021-11-19 12:02:31 -05:00
Isaac Connor d8eb0b2350
Merge pull request #3383 from BlueMax/musl_build_fix
fix posix/musl build
2021-11-16 15:01:35 -05:00
BlueMax 8a4a530cf3
fix posix/musl build 2021-11-16 19:50:17 +00:00
Isaac Connor e3d2b14b69 Don't exit(0) on QUIT. Instead set zm_terminate=true so that all the cleanup routines run. 2021-11-09 15:49:25 -05:00
Isaac Connor 9b723d73a1 Set zm_terminate on crash so that other threads exit instead of continuing 2021-11-09 10:51:39 -05:00
Isaac Connor 5d93e9a957 av_write_trailer can return a positive value which is not an error 2021-11-02 17:24:54 -04:00
Isaac Connor 0dc9017472 reset starttime when changing events. Fixes super fast playback after switch to next event. Also, skip some unneeded calculations and logging. 2021-10-28 13:02:58 -04:00
Isaac Connor 4b5bc09c41 Merge new logic from master. We now delete a non-keyframe from head instead of waiting in capture. 2021-10-25 17:03:36 -04:00
Isaac Connor c600725a1a Fix monitor type labels by adding an Unknown for entry 0. Implement Function_Strings. Fix decoding_enabled not being recalculated correctly because we havn't loaded savejpegs or videowriter yet. 2021-10-25 16:44:09 -04:00
Isaac Connor 7517bdc6ec Merge branch 'release-1.36' of github.com:ZoneMinder/zoneminder into release-1.36 2021-10-25 16:44:01 -04:00
Isaac Connor 6245a4df6a Correct logic so that RECORD and MOCORD also get events. 2021-10-19 15:24:01 -04:00
Isaac Connor 7cd8f3d887 Only record when in modect or nodect. Linked monitors would cause a monitor in monitor mode to record 2021-10-19 14:55:59 -04:00
Isaac Connor 1dd19d425a always correct decoding_enable, as zms needs to know it's correct value 2021-10-19 13:15:54 -04:00
Isaac Connor f2e537f177 Fix loading importance. Needs to be -1 not -2. The first value is 1, but we want zero based. 2021-10-19 13:13:18 -04:00
Isaac Connor 7b5ab0adae fix index -> image_index 2021-10-17 15:13:14 -04:00
Isaac Connor ed901b0235 Improve debug logging of packetqueue cleaning 2021-10-17 15:01:55 -04:00
Isaac Connor aa44bb0d12 spacing. Use a separate boolean to tell if we have specified a new value for controls. This allows negative settings. Fix zmy outputting brightness when contrast is specified. 2021-10-06 10:37:54 -04:00
Isaac Connor cab4c24d06 Remove redundant notify_all, spelling mistake 2021-09-15 14:11:32 -04:00
Mike Dussault b670bf98e0 Fixed a bug in Image::Buffer that would return the wrong location in the image if the image had > 1 channels (and if the request were for x > 0). 2021-09-15 14:11:16 -04:00
Isaac Connor 2b18dd5978 Don't crash when unable to create source. erase will call the desctructor. Fixes #3344 2021-09-15 14:11:03 -04:00
Isaac Connor 6b8dc07018 wait won't wake up other threads, so notify first. Since we have the lock, this should be ok 2021-09-15 14:10:52 -04:00
Isaac Connor ef74294d32 More properly fix the threading lock. Instead of waiting on a packet, release it and wait on the packetqueue. 2021-09-15 14:10:25 -04:00
Isaac Connor 31a6ab2224 notify anyone waiting in packetqueue before waiting on a packet in motion detection. Should fix decode lockup 2021-09-15 14:09:31 -04:00
Isaac Connor 0162ec2c39 Add missing update_function_pointers so that we use SSE blend functions. Significantly reduces cpu use in motion detection. 2021-09-13 15:04:06 -04:00
Isaac Connor c47a66559a Need to increase frame_count or else frame_count%frame_mod will never == 0 2021-09-10 18:01:32 -04:00
Isaac Connor 6b095a17aa Fix std::string to const char * 2021-09-08 18:46:58 -04:00
Peter Keresztes Schmidt 9cc4bbbe86 LocalCamera: Add a missing include to fix FreeBSD build
Fixes #3330
2021-09-08 13:58:34 -04:00
Isaac Connor 1f5ae94c20 Fix errors due to not stopping the dbQueue. Fix crash when querying v4l devices 2021-09-04 12:33:23 -04:00
Isaac Connor 0e24b03785 Make failure to resolve non fatal 2021-09-04 12:17:50 -04:00
Isaac Connor ae90ebf74f Return early if packetqueue is empty instead of getting the lock. Return early in clear() if we are not initialised 2021-09-04 12:16:18 -04:00
Isaac Connor 431417ea8b Use old time code as this is 1.36 2021-09-03 12:19:53 -04:00
Isaac Connor e0e81a3769 Fix frame_count fps when paused 2021-09-03 11:39:34 -04:00
Isaac Connor 94662dc170 Fix viewing fps display by keeping track of last update time, last frame count and actually calculate it based on frames sent over a period of time. 2021-09-03 11:38:09 -04:00
Isaac Connor 132fc84c31 Spacing and fix the bogus setting shared_data->valid to false on disconnect. Other processes call disconnect. Only the capturing thread should set it to false. 2021-09-03 11:35:54 -04:00
Isaac Connor 199e86e92a spacing 2021-08-29 09:30:52 -04:00
Isaac Connor 85ade02cba Set shm->valid to false on disconnect. 2021-08-29 09:30:30 -04:00
Isaac Connor c06cda6a65 Handle the case when the monitor doesn't exist more gracefully and not crash. Fixes #3316 2021-07-08 10:06:49 -04:00
Isaac Connor 610fdd3129 Remove the code to do adaptive skipping. We should never sleep when doing Analysis unless an error occurred. 2021-06-22 14:34:28 -04:00
Isaac Connor 9dd960beac Actually close the camera in localcamera::Close 2021-06-08 14:09:33 -04:00