public abstract class FrameGrabber extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FrameGrabber.Array |
static class |
FrameGrabber.Exception |
static class |
FrameGrabber.ImageMode |
static class |
FrameGrabber.PropertyEditor |
| Modifier and Type | Field and Description |
|---|---|
protected double |
aspectRatio |
protected int |
audioBitrate |
protected int |
audioChannels |
protected int |
audioCodec |
protected HashMap<String,String> |
audioMetadata |
protected HashMap<String,String> |
audioOptions |
protected int |
audioStream |
protected int |
bpp |
protected boolean |
deinterlace |
protected String |
format |
protected int |
frameNumber |
protected double |
frameRate |
protected double |
gamma |
protected int |
imageHeight |
protected FrameGrabber.ImageMode |
imageMode |
protected int |
imageWidth |
static List<String> |
list |
protected HashMap<String,String> |
metadata |
protected int |
numBuffers |
protected HashMap<String,String> |
options |
protected int |
pixelFormat |
protected int |
sampleFormat |
protected int |
sampleRate |
static long |
SENSOR_PATTERN_BGGR |
static long |
SENSOR_PATTERN_GBRG |
static long |
SENSOR_PATTERN_GRBG |
static long |
SENSOR_PATTERN_RGGB |
protected long |
sensorPattern |
protected int |
timeout |
protected long |
timestamp |
protected boolean |
triggerMode |
protected int |
videoBitrate |
protected int |
videoCodec |
protected HashMap<String,String> |
videoMetadata |
protected HashMap<String,String> |
videoOptions |
protected int |
videoStream |
| Constructor and Description |
|---|
FrameGrabber() |
public static final long SENSOR_PATTERN_RGGB
public static final long SENSOR_PATTERN_GBRG
public static final long SENSOR_PATTERN_GRBG
public static final long SENSOR_PATTERN_BGGR
protected int videoStream
protected int audioStream
protected String format
protected int imageWidth
protected int imageHeight
protected int audioChannels
protected FrameGrabber.ImageMode imageMode
protected long sensorPattern
protected int pixelFormat
protected int videoCodec
protected int videoBitrate
protected double aspectRatio
protected double frameRate
protected int sampleFormat
protected int audioCodec
protected int audioBitrate
protected int sampleRate
protected boolean triggerMode
protected int bpp
protected int timeout
protected int numBuffers
protected double gamma
protected boolean deinterlace
protected int frameNumber
protected long timestamp
public static void init()
public static Class<? extends FrameGrabber> getDefault()
public static Class<? extends FrameGrabber> get(String className) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FrameGrabber create(Class<? extends FrameGrabber> c, Class p, Object o) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FrameGrabber createDefault(File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FrameGrabber createDefault(String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FrameGrabber createDefault(int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FrameGrabber create(String className, File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FrameGrabber create(String className, String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static FrameGrabber create(String className, int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic int getVideoStream()
public void setVideoStream(int videoStream)
public int getAudioStream()
public void setAudioStream(int audioStream)
public String getFormat()
public void setFormat(String format)
public int getImageWidth()
public void setImageWidth(int imageWidth)
public int getImageHeight()
public void setImageHeight(int imageHeight)
public int getAudioChannels()
public void setAudioChannels(int audioChannels)
public FrameGrabber.ImageMode getImageMode()
public void setImageMode(FrameGrabber.ImageMode imageMode)
public long getSensorPattern()
public void setSensorPattern(long sensorPattern)
public int getPixelFormat()
public void setPixelFormat(int pixelFormat)
public int getVideoCodec()
public void setVideoCodec(int videoCodec)
public int getVideoBitrate()
public void setVideoBitrate(int videoBitrate)
public double getAspectRatio()
public void setAspectRatio(double aspectRatio)
public double getFrameRate()
public void setFrameRate(double frameRate)
public int getAudioCodec()
public void setAudioCodec(int audioCodec)
public int getAudioBitrate()
public void setAudioBitrate(int audioBitrate)
public int getSampleFormat()
public void setSampleFormat(int sampleFormat)
public int getSampleRate()
public void setSampleRate(int sampleRate)
public boolean isTriggerMode()
public void setTriggerMode(boolean triggerMode)
public int getBitsPerPixel()
public void setBitsPerPixel(int bitsPerPixel)
public int getTimeout()
public void setTimeout(int timeout)
public int getNumBuffers()
public void setNumBuffers(int numBuffers)
public double getGamma()
public void setGamma(double gamma)
public boolean isDeinterlace()
public void setDeinterlace(boolean deinterlace)
public int getFrameNumber()
public void setFrameNumber(int frameNumber)
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic long getTimestamp()
public void setTimestamp(long timestamp)
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic int getLengthInFrames()
public long getLengthInTime()
public abstract void start()
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic abstract void stop()
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic abstract void trigger()
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic abstract Frame grab() throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic Frame grabFrame() throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic abstract void release()
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic void restart()
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic void flush()
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic void delayedGrab(long delayTime)
public long getDelayedTime()
throws InterruptedException,
ExecutionException
public Frame getDelayedFrame() throws InterruptedException, ExecutionException
public FrameGrabber.Array createArray(FrameGrabber[] frameGrabbers)
Copyright © 2015. All Rights Reserved.