public class GStreamerDevice extends Object implements com.github.sarxos.webcam.WebcamDevice, org.gstreamer.elements.RGBDataSink.Listener, com.github.sarxos.webcam.WebcamDevice.FPSSource
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dispose() |
org.gstreamer.Caps |
getCaps() |
org.gstreamer.Element |
getFilter() |
double |
getFPS() |
BufferedImage |
getImage() |
String |
getName() |
org.gstreamer.Pipeline |
getPipe() |
Dimension |
getResolution() |
Dimension[] |
getResolutions() |
org.gstreamer.elements.RGBDataSink |
getSink() |
org.gstreamer.Element |
getSource() |
boolean |
isOpen() |
void |
open() |
void |
rgbFrame(boolean preroll,
int width,
int height,
IntBuffer rgb) |
void |
setResolution(Dimension size) |
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 rgbFrame(boolean preroll, int width, int height, IntBuffer rgb)
rgbFrame
in interface org.gstreamer.elements.RGBDataSink.Listener
public double getFPS()
getFPS
in interface com.github.sarxos.webcam.WebcamDevice.FPSSource
public org.gstreamer.Pipeline getPipe()
public org.gstreamer.Element getSource()
public org.gstreamer.Element getFilter()
public org.gstreamer.elements.RGBDataSink getSink()
public org.gstreamer.Caps getCaps()
Copyright © 2012-2014 Bartosz Firyn (SarXos). All Rights Reserved.