public abstract class FrameFilter extends Object implements Closeable
start(), we can add frames to the graph with
push(Frame) and get the filtered ones with pull().| Modifier and Type | Class and Description |
|---|---|
static class |
FrameFilter.Exception |
| Modifier and Type | Field and Description |
|---|---|
protected double |
aspectRatio |
protected String |
filters |
protected double |
frameRate |
protected int |
imageHeight |
protected int |
imageWidth |
protected int |
pixelFormat |
| Constructor and Description |
|---|
FrameFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static FrameFilter |
createDefault(String filtersDescr,
int imageWidth,
int imageHeight) |
void |
flush() |
double |
getAspectRatio() |
String |
getFilters() |
double |
getFrameRate() |
int |
getImageHeight() |
int |
getImageWidth() |
int |
getPixelFormat() |
abstract Frame |
pull() |
abstract void |
push(Frame frame) |
abstract void |
release() |
void |
restart() |
void |
setAspectRatio(double aspectRatio) |
void |
setFilters(String filters) |
void |
setFrameRate(double frameRate) |
void |
setImageHeight(int imageHeight) |
void |
setImageWidth(int imageWidth) |
void |
setPixelFormat(int pixelFormat) |
abstract void |
start() |
abstract void |
stop() |
protected String filters
protected int imageWidth
protected int imageHeight
protected int pixelFormat
protected double frameRate
protected double aspectRatio
public static FrameFilter createDefault(String filtersDescr, int imageWidth, int imageHeight) throws FrameFilter.Exception
FrameFilter.Exceptionpublic String getFilters()
public void setFilters(String filters)
public int getImageWidth()
public void setImageWidth(int imageWidth)
public int getImageHeight()
public void setImageHeight(int imageHeight)
public int getPixelFormat()
public void setPixelFormat(int pixelFormat)
public double getFrameRate()
public void setFrameRate(double frameRate)
public double getAspectRatio()
public void setAspectRatio(double aspectRatio)
public abstract void start()
throws FrameFilter.Exception
FrameFilter.Exceptionpublic abstract void stop()
throws FrameFilter.Exception
FrameFilter.Exceptionpublic abstract void push(Frame frame) throws FrameFilter.Exception
FrameFilter.Exceptionpublic abstract Frame pull() throws FrameFilter.Exception
FrameFilter.Exceptionpublic abstract void release()
throws FrameFilter.Exception
FrameFilter.Exceptionpublic void close()
throws FrameFilter.Exception
close in interface Closeableclose in interface AutoCloseableFrameFilter.Exceptionpublic void restart()
throws FrameFilter.Exception
FrameFilter.Exceptionpublic void flush()
throws FrameFilter.Exception
FrameFilter.ExceptionCopyright © 2018. All rights reserved.