-
Add a global property controlling whether or not GUI functions are enabled
-
Qt prefers calling abort to throwing exceptions, so there's no use trying to recover from a failed attempt to create a QApplication. Add an optional bool use_gui paramter to br_intialize in case people want to set that value without going through the command line arguments.
-
Rename Show2 to Show, remove special casing of Parallelism=0 (not ready to merge yet)
-
Also, remove some extraneous curly braces.
-
Default parallelism to IdealThreadCount+1, remove checks for input parallelism > IdealThreadCount, since we find that a higher thread count can help in some circumstances. Don't use release/reserve thread to increase the size of the thread pool in init, instead just set the max pool size directly.
-
Drop most special casing of parallelism=0, if parallelism=0 is received, set the max number of threads to 1, and go through the same code as when more threads are available. Some outstanding issues, the following transforms are blocked out since they aren't consistent with this change: EditTransform ElicitMetaDataTransform StasmTransform In stasm's case, a global mutex must be used, similarly ElicitMetaData reads from stdin, and would also require a global lock. EditTransform can probably be reimplemented through Qt similarly to Show
-
Also, change the default waitKey value to be consistent with original Show
-
When doing a const project, using the default CompositeTransform implementation (with time-varying child transforms), don't make twice as many copies of things as necessary. Also, allow stream to use the CompositeTransform const project method.
-
Now that we are explicitly cloning every frame that we get, releasing VideoCaptures no longer causes segfaults.
-
We can just send a close event, then we don't have to worry about new display events showing the window after we hid it.