Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java 8 generics support #9

Open
mailmindlin opened this issue Mar 8, 2016 · 1 comment
Open

Add Java 8 generics support #9

mailmindlin opened this issue Mar 8, 2016 · 1 comment
Assignees
Milestone

Comments

@mailmindlin
Copy link
Owner

When writing applications to recieve data from a camera, it would be nice to be able to utilize some of the nice Java 8 things.

For convenience, it would be nice to have a method on FrameGrabber like setCaptureCallback(Consumer<VideoFrame>, Consumer<V4L4JException>). V4L4J would lose compliance with Java 7, but that would occur for almost all of these ideas.

Another way to update is to support streams (i.e., Stream<VideoFrame> FrameGrabber#videoStream()). The major caveat is the undefined behavior upon an exception, and Stream is hard to implement.

@mailmindlin mailmindlin self-assigned this Aug 29, 2016
@mailmindlin
Copy link
Owner Author

@mailmindlin mailmindlin added this to the 2.0 milestone Jan 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant