Bartosz Firyn (SarXos)

com.github.sarxos.webcam.ds.gstreamer
Class GStreamerDevice

java.lang.Object
  extended by com.github.sarxos.webcam.ds.gstreamer.GStreamerDevice
All Implemented Interfaces:
com.github.sarxos.webcam.WebcamDevice, com.github.sarxos.webcam.WebcamDevice.FPSSource, org.gstreamer.elements.RGBDataSink.Listener

public class GStreamerDevice
extends Object
implements com.github.sarxos.webcam.WebcamDevice, org.gstreamer.elements.RGBDataSink.Listener, com.github.sarxos.webcam.WebcamDevice.FPSSource


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.sarxos.webcam.WebcamDevice
com.github.sarxos.webcam.WebcamDevice.BufferAccess, com.github.sarxos.webcam.WebcamDevice.FPSSource
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()
Specified by:
getName in interface com.github.sarxos.webcam.WebcamDevice

getResolutions

public Dimension[] getResolutions()
Specified by:
getResolutions in interface com.github.sarxos.webcam.WebcamDevice

getResolution

public Dimension getResolution()
Specified by:
getResolution in interface com.github.sarxos.webcam.WebcamDevice

setResolution

public void setResolution(Dimension size)
Specified by:
setResolution in interface com.github.sarxos.webcam.WebcamDevice

getImage

public BufferedImage getImage()
Specified by:
getImage in interface com.github.sarxos.webcam.WebcamDevice

open

public void open()
Specified by:
open in interface com.github.sarxos.webcam.WebcamDevice

close

public void close()
Specified by:
close in interface com.github.sarxos.webcam.WebcamDevice

dispose

public void dispose()
Specified by:
dispose in interface com.github.sarxos.webcam.WebcamDevice

isOpen

public boolean isOpen()
Specified by:
isOpen in interface com.github.sarxos.webcam.WebcamDevice

rgbFrame

public void rgbFrame(boolean preroll,
                     int width,
                     int height,
                     IntBuffer rgb)
Specified by:
rgbFrame in interface org.gstreamer.elements.RGBDataSink.Listener

getFPS

public double getFPS()
Specified by:
getFPS in interface com.github.sarxos.webcam.WebcamDevice.FPSSource

getPipe

public org.gstreamer.Pipeline getPipe()

getSource

public org.gstreamer.Element getSource()

getFilter

public org.gstreamer.Element getFilter()

getSink

public org.gstreamer.elements.RGBDataSink getSink()

getCaps

public org.gstreamer.Caps getCaps()

Bartosz Firyn (SarXos)

Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.