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
Thad House
78baa04ecc
Adds OpenCV to myRobotJava ( #350 )
2016-11-18 16:20:30 -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
Krypton Cougars
b78f580d47
Adds default methods for Commands ( #238 ) ( #238 )
...
Closes #235
2016-11-18 14:42:40 -08:00
Peter Johnson
cc20d9d0fe
Add no-parameter constructors for specific sources/sinks.
2016-11-18 14:33:47 -08:00
Thad House
b115c75226
Adds SPI DIO to WPILib ( #256 )
2016-11-18 14:15:53 -08:00
Thad House
6bc092f3ae
Updates SPI device pin ( #348 )
2016-11-18 14:14:51 -08:00
Thad House
f99a266ce4
Adds CsCore dependency to myRobotCpp ( #349 )
2016-11-18 14:14:11 -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
Peter Johnson
5ae1162378
Move MJPEG DHT insertion from SourceImpl to MJPEGServerImpl.
...
OpenCV imdecode supports images with no DHT, so it's not necessary to
add it on the source side.
2016-11-18 12:40:31 -08:00
Peter Johnson
c80c4ae55c
MJPEGServer: Use worker thread model.
...
Also make the worker thread a class for future per-client configuration use.
Depends on wpiutil #153 .
2016-11-18 12:40:31 -08:00
Peter Johnson
254b88bdbe
Start adding support for non-MJPEG frame types.
...
Not yet supported by MJPEGServer.
2016-11-18 12:40:31 -08:00
Thad House
2657d89178
Adds a c_str method to StringRef ( #155 )
...
The StringRef class does not ensure the string is null terminated. As there is
no defined way to actually check for a null terminator, we determine
if it is null terminated based on the constructor type. Then if on c_str
it is not known to be null terminated, we use a passed in buffer to copy
the string and ensure null termination.
2016-11-14 22:51:52 -08:00
Thad House
38ec59f03a
Adds a c_str method to StringRef ( #155 )
...
The StringRef class does not ensure the string is null terminated. As there is
no defined way to actually check for a null terminator, we determine
if it is null terminated based on the constructor type. Then if on c_str
it is not known to be null terminated, we use a passed in buffer to copy
the string and ensure null termination.
2016-11-14 22:51:52 -08:00
Fred Silberberg
1f724d58e0
Made the test scripts executable to fix -dirty on the version numbers. ( #347 )
2016-11-14 21:16:51 -08:00
Peter Johnson
259cf1ff3a
Mark NetworkTablesJNI callback interfaces as FunctionalInterface. ( #154 )
...
This allows them to be used in Java 8 lambdas.
2016-11-13 23:33:12 -08:00
Thad House
de4a246bb4
Adds OpenCV Loading to wpilib program startup ( #338 )
2016-11-11 22:32:13 -08:00
Peter Johnson
b12658afc2
Make SafeThreadOwner moveable. ( #153 )
...
This allows it to be used in data structures such as std::vector.
Also make GetThread() const.
2016-11-11 22:18:52 -08:00
Peter Johnson
c23880f829
Make SafeThreadOwner moveable. ( #153 )
...
This allows it to be used in data structures such as std::vector.
Also make GetThread() const.
2016-11-11 22:18:52 -08:00
Thad House
41dd9e4f06
Loads OpenCV JNI Library in Java ( #15 )
2016-11-11 21:55:13 -08:00
rrossbach
412b80da30
Fixes joystick button handling HAL JNI layer (buttons are in an ( #341 )
...
int, not a byte)
2016-11-10 20:21:54 -08:00
Thad House
47319960a5
Fixes a missed change to unique_ptr in the HAL ( #337 )
2016-11-08 16:53:17 -08:00
Thad House
b22d218236
Removes CANJaguar specific constants from JNI files ( #339 )
2016-11-08 16:52:24 -08:00
Thad House
3d1f69075a
Adds a size parameter to JStringRef ( #152 )
...
Want to use that for some allwpilib JNI cleanups and potential bug fixes
2016-11-07 19:35:48 -08:00
Thad House
dc94a3fac9
Adds a size parameter to JStringRef ( #152 )
...
Want to use that for some allwpilib JNI cleanups and potential bug fixes
2016-11-07 19:35:48 -08:00