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.WebcamDevicepublic Dimension[] getResolutions()
getResolutions in interface com.github.sarxos.webcam.WebcamDevicepublic Dimension getResolution()
getResolution in interface com.github.sarxos.webcam.WebcamDevicepublic void setResolution(Dimension size)
setResolution in interface com.github.sarxos.webcam.WebcamDevicepublic BufferedImage getImage()
getImage in interface com.github.sarxos.webcam.WebcamDevicepublic void open()
open in interface com.github.sarxos.webcam.WebcamDevicepublic void close()
close in interface com.github.sarxos.webcam.WebcamDevicepublic void dispose()
dispose in interface com.github.sarxos.webcam.WebcamDevicepublic boolean isOpen()
isOpen in interface com.github.sarxos.webcam.WebcamDevicepublic void rgbFrame(boolean preroll, int width, int height, IntBuffer rgb)
rgbFrame in interface org.gstreamer.elements.RGBDataSink.Listenerpublic double getFPS()
getFPS in interface com.github.sarxos.webcam.WebcamDevice.FPSSourcepublic 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.