public class V4l4jDevice extends Object implements com.github.sarxos.webcam.WebcamDevice, au.edu.jcu.v4l4j.CaptureCallback, com.github.sarxos.webcam.WebcamDevice.FPSSource
Constructor and Description |
---|
V4l4jDevice(File vfile) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dispose() |
void |
exceptionReceived(au.edu.jcu.v4l4j.exceptions.V4L4JException e) |
double |
getFPS() |
BufferedImage |
getImage() |
String |
getName() |
Dimension |
getResolution() |
Dimension[] |
getResolutions() |
boolean |
isOpen() |
void |
nextFrame(au.edu.jcu.v4l4j.VideoFrame frame) |
void |
open() |
void |
setResolution(Dimension size) |
public V4l4jDevice(File vfile)
public String getName()
getName
in interface com.github.sarxos.webcam.WebcamDevice
public Dimension[] getResolutions()
getResolutions
in interface com.github.sarxos.webcam.WebcamDevice
public Dimension getResolution()
getResolution
in interface com.github.sarxos.webcam.WebcamDevice
public void setResolution(Dimension size)
setResolution
in interface com.github.sarxos.webcam.WebcamDevice
public BufferedImage getImage()
getImage
in interface com.github.sarxos.webcam.WebcamDevice
public void open()
open
in interface com.github.sarxos.webcam.WebcamDevice
public void close()
close
in interface com.github.sarxos.webcam.WebcamDevice
public void dispose()
dispose
in interface com.github.sarxos.webcam.WebcamDevice
public boolean isOpen()
isOpen
in interface com.github.sarxos.webcam.WebcamDevice
public void nextFrame(au.edu.jcu.v4l4j.VideoFrame frame)
nextFrame
in interface au.edu.jcu.v4l4j.CaptureCallback
public void exceptionReceived(au.edu.jcu.v4l4j.exceptions.V4L4JException e)
exceptionReceived
in interface au.edu.jcu.v4l4j.CaptureCallback
public double getFPS()
getFPS
in interface com.github.sarxos.webcam.WebcamDevice.FPSSource
Copyright © 2012-2014 Bartosz Firyn (SarXos). All Rights Reserved.