opencv/modules/highgui
Frédéric Devernay 4ad12a680c fix cap_qtkit.mm for multithreaded applications
cap_qtkit does not work when the capture is run outside of the main
thread.
If the capture is launched in a separate thread, then [NSRunLoop
currentRunLoop] is not the same as in the main thread, and has no timer.
see
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/F
oundation/Classes/nsrunloop_Class/Reference/Reference.html
"If no input sources or timers are attached to the run loop, this
method exits immediately"

Using usleep() (which I previously proposed, and was reverted) is not a
good alternative, because it may block the GUI.

Here is the new proposed solution:
- create a dummy timer so that runUntilDate does not exit immediately
- simplify the loop by using runUntilDate instead of runMode:beforeDate
- fix potential memory leaks (pointed out by Xcode's static analysis)
- fix init to follow Objective-C guidelines
- fax warnings about conversions from size_t to int
2013-07-26 18:39:03 +02:00
..
doc Fixed multiple issues in docs (bug #2410) 2013-01-31 17:34:40 +04:00
include/opencv2/highgui Merge pull request #1063 from alekcac:conversion 2013-06-28 14:41:35 +04:00
perf Perf test failure fixes for Media Foundation. 2013-06-25 03:35:57 -07:00
src fix cap_qtkit.mm for multithreaded applications 2013-07-26 18:39:03 +02:00
test Test fixes 2013-06-27 15:47:37 +04:00
CMakeLists.txt added conversions between UIImage and cv::Mat 2013-06-28 13:26:54 +04:00