Thad House
d47bd1ecbc
Fixes embedded library name used for extraction in Java ( #45 )
2017-01-09 20:49:02 -08:00
Peter Johnson
593ba37c43
Java VideoEvent: Make propertyHandle public.
2017-01-04 01:16:10 -08:00
Peter Johnson
4ed78a84ef
Java VideoMode: Provide PixelFormat-taking constructor.
2017-01-04 01:16:10 -08:00
Peter Johnson
883fd5b062
For property events, provide property name rather than source name.
...
This is much more useful.
2017-01-02 23:17:00 -08:00
Peter Johnson
7ddbf20108
Create VideoCamera base class and move camera settings functions to it.
...
This makes them available for both UsbCamera and HttpCamera / AxisCamera.
To avoid virtual functions in the public-facing interface, move the
implementation of the camera settings functions to the core library.
2017-01-02 23:17:00 -08:00
Peter Johnson
23135d7a5a
Allow Sink.SetSource() to be given an empty source.
...
In Java, allow source to be null (pointers are not used in C++, so
this isn't necessary).
2017-01-02 23:17:00 -08:00
Peter Johnson
318d23ba1c
Add AxisCamera wrapper class.
...
This takes hosts (IP or DNS name) rather than URLs, making it easier
to use.
Also add more overloads to resolve ambiguities encountered when using
std::string and const char*, and also add overloads for
std::initializer_list<T> so braced initializer lists can be used.
2016-12-23 22:26:27 -08:00
Peter Johnson
9c4c7c08bf
Java HttpCamera: Make accessor functions public.
2016-12-23 22:26:27 -08:00
Peter Johnson
9016a9e8b8
Start implementing HttpCamera.
...
This is a work in progress that does not yet support camera settings.
2016-12-23 22:26:27 -08:00
Peter Johnson
4c8c41fdc0
CvSink: Support grayscale images.
...
Also support 4-channel BGRx images and provide better error reporting
on bad images passed to PutFrame.
2016-12-23 22:25:11 -08:00
Peter Johnson
80abf6bf24
Support per-stream resolution settings.
...
The code now automatically resizes as required.
This change also disconnects camera resolution settings from MJPEG
stream connections; setting the camera resolution can now only be done
via code.
2016-12-20 20:48:31 -08:00
Peter Johnson
28a2ba4bf8
Add external logger interface.
2016-12-18 09:13:01 -08:00
Peter Johnson
1f93a4ab4f
Change acronym class names to use MixedCase (UsbCamera, MjpegServer). ( #22 )
2016-12-04 00:08:47 -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
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
736b5ff424
Java: throw VideoException on error.
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
Thad House
41dd9e4f06
Loads OpenCV JNI Library in Java ( #15 )
2016-11-11 21:55:13 -08:00
Thad House
468cac543f
Fixes JNI
2016-11-06 19:28:14 -08:00
Peter Johnson
f83ff41e47
Rename from cameraserver to cscore.
...
This is primarily to avoid header naming conflicts with wpilib.
2016-11-05 22:11:55 -07:00