Peter Johnson
bdaf60b2d6
Replace tabs with spaces in gradle files.
2016-12-18 09:05:03 -08:00
Peter Johnson
7c2f994a66
Refactor source IsConnected() and connected notification.
2016-12-18 09:05:03 -08:00
Peter Johnson
81fd0eefac
usbcvstream example: Print error from GrabFrame.
2016-12-04 21:45:37 -08:00
Peter Johnson
b5fd15e052
CvSink::GrabFrame(): Add delays like MjpegServer to avoid consuming CPU.
2016-12-04 21:45:37 -08:00
Peter Johnson
ecfc684174
MjpegServer: Increase bad frame wait from 10 to 20 ms.
2016-12-04 21:45:37 -08:00
Peter Johnson
4600ea135c
Frame: Make Data struct public.
2016-12-04 21:45:37 -08:00
Peter Johnson
3b82ba8945
Refactor JPEG functions to JpegUtil.
2016-12-04 21:45:37 -08:00
Peter Johnson
c32fc57ce1
Refactor HTTP utilities.
2016-12-04 21:45:37 -08:00
Peter Johnson
9a8f66e3e5
SourceImpl: Add no-copy PutFrame.
2016-12-04 21:45:37 -08:00
Peter Johnson
ef39713219
Revert "Don't output \r\n before boundary. This throws off some clients."
...
This reverts commit ae8c8ec230 .
2016-12-04 21:45:37 -08:00
Thad House
da68fea081
Fixes shared wpiutil switch on athena ( #24 )
2016-12-04 21:44:06 -08:00
Peter Johnson
1f93a4ab4f
Change acronym class names to use MixedCase (UsbCamera, MjpegServer). ( #22 )
2016-12-04 00:08:47 -08:00
Thad House
7a587390ba
Fixes OpenCV on windows when we get to it. ( #23 )
2016-12-04 00:08:26 -08:00
Thad House
3625f11e08
Adds C methods that take a cv::Mat* ( #21 )
...
Some implementations of OpenCV use cv::Mat as their native pointer
rather then CvMat, so we need to support both in the C interface
2016-11-30 22:00:44 -08:00
Thad House
1332ba3ad2
Adds JNI symbol check to ensure we don't miss any definitions ( #19 )
2016-11-27 23:17:26 -08:00
Thad House
a19b1b9341
Adds data accessor functions to JNI ( #18 )
2016-11-19 19:02:20 -08:00
Peter Johnson
ae8c8ec230
Don't output \r\n before boundary. This throws off some clients.
2016-11-18 19:52:22 -08:00
Peter Johnson
ec8c0eb3c2
Fix FPS setting and crash in reapplying settings.
2016-11-18 19:23:35 -08:00
Peter Johnson
3d898dd8f7
MJPEGServer: Fix URI %xx-decoding.
2016-11-18 19:03:35 -08:00
Peter Johnson
df18e178ee
MJPEGServer: Provide a bare-bones HTML root page.
2016-11-18 18:58:03 -08:00
Peter Johnson
71a6e08988
MJPEGServer: Make a couple of tweaks for Axis camera compatibility.
2016-11-18 18:33:49 -08:00
Peter Johnson
a05636d9a6
Add data accessors for USBCamera and MJPEGServer.
...
USBCamera: getPath()
MJPEGServer: getListenAddress() and getPort()
2016-11-18 17:21:03 -08:00
Peter Johnson
5eecbfd9bf
Implement immediate notify on network interfaces event.
2016-11-18 16:27:26 -08:00
Peter Johnson
65514b3028
USBCamera: Update description on reconnect.
2016-11-18 16:16:04 -08:00
Peter Johnson
881d55f858
VideoListener: Add move assignment operator.
2016-11-18 15:10:37 -08:00
Peter Johnson
cc20d9d0fe
Add no-parameter constructors for specific sources/sinks.
2016-11-18 14:33:47 -08:00
Peter Johnson
35aa544415
VideoEvent: Make sourceHandle and sinkHandle public.
2016-11-18 13:20:50 -08:00
Peter Johnson
bad4ca4666
Add event for network interfaces change.
2016-11-18 12:41:08 -08:00
Peter Johnson
5fecc57e8a
Add methods to get the hostname and network interfaces.
2016-11-18 12:41:08 -08:00
Peter Johnson
e1f4e3d2d7
Fix mapping into Java enums.
...
The values are bitmask not contiguous, so we need to use a switch instead
of an array.
2016-11-18 12:41:08 -08:00
Peter Johnson
5ace9e4189
Renumber event kind values.
2016-11-18 12:41:08 -08:00
Peter Johnson
9945459a41
Notify sink enable and disable events.
2016-11-18 12:41:08 -08:00
Peter Johnson
22c11fad36
Notify source property events.
2016-11-18 12:41:08 -08:00
Peter Johnson
c6b527d452
Notify source connect, disconnect, and video mode changes.
2016-11-18 12:41:08 -08:00
Peter Johnson
8e9911d330
Notify on sink source change.
2016-11-18 12:41:08 -08:00
Peter Johnson
b245725941
Notify on source and sink create and destroy.
2016-11-18 12:41:08 -08:00
Peter Johnson
154ae5dcbf
Notifier: Take Impl rather than handle in notification functions.
...
Also take CS_EventKind rather than RawEvent::Kind.
Still provide the handle methods for the basic events (this is particularly
useful for create and destroy events).
This makes these functions easier to use from within the implementation.
2016-11-18 12:41:08 -08:00
Peter Johnson
bae2037086
Handle: Add methods to get Data struct from Impl pointer.
...
Also make a number of methods in UnlimitedHandleResource inline.
2016-11-18 12:41:08 -08:00
Peter Johnson
c0bc8d7028
Change examples to start at port 8081 rather than 8080.
...
Port 8080 is too commonly used for other purposes.
2016-11-18 12:41:08 -08:00
Peter Johnson
736b5ff424
Java: throw VideoException on error.
2016-11-18 12:41:08 -08:00
Peter Johnson
29cd2b11be
enum_usb example: output the property type.
2016-11-18 12:41:08 -08:00
Peter Johnson
dcf773c3ef
Add USBCamera setting functions similar to the old WPILib nivision ones.
2016-11-18 12:41:08 -08:00
Peter Johnson
791cabbc26
Rename Type to Kind.
2016-11-18 12:41:08 -08:00
Peter Johnson
3c7d8063f6
VideoProperty: rename type() to getType().
2016-11-18 12:41:08 -08:00
Peter Johnson
3381340eb5
Add method to get source/sink type.
...
Also provide convenience method to enumerate all sinks connected to a source.
2016-11-18 12:41:08 -08:00
Peter Johnson
6446b9ef10
Add sink source changed event.
2016-11-18 12:41:08 -08:00
Peter Johnson
6c19eb59b2
VideoSource, VideoSink: Provide equality operation.
...
* Provide hashCode implementation for Java.
* Provide getHandle for both C++ and Java.
2016-11-18 12:41:08 -08:00
Peter Johnson
797d049f31
Use java.util.function.Consumer for event listener.
2016-11-18 12:41:08 -08:00
Peter Johnson
0bcafedebf
MJPEGServerImpl: Refactor NeedsDHT.
2016-11-18 12:40:31 -08:00
Peter Johnson
7e0e8286eb
SourceImpl: Refactor frame allocation into AllocFrame.
2016-11-18 12:40:31 -08:00