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 String |
afilters |
protected double |
aspectRatio |
protected int |
audioChannels |
protected int |
audioInputs |
protected String |
filters |
protected double |
frameRate |
protected int |
imageHeight |
protected int |
imageWidth |
protected int |
pixelFormat |
protected int |
sampleFormat |
protected int |
sampleRate |
protected int |
videoInputs |
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() |
int |
getAudioChannels() |
int |
getAudioInputs() |
String |
getFilters() |
double |
getFrameRate() |
int |
getImageHeight() |
int |
getImageWidth() |
int |
getPixelFormat() |
int |
getSampleFormat() |
int |
getSampleRate() |
int |
getVideoInputs() |
abstract Frame |
pull() |
abstract void |
push(Frame frame) |
abstract void |
release() |
void |
restart() |
void |
setAspectRatio(double aspectRatio) |
void |
setAudioChannels(int audioChannels) |
void |
setAudioInputs(int audioInputs) |
void |
setFilters(String filters) |
void |
setFrameRate(double frameRate) |
void |
setImageHeight(int imageHeight) |
void |
setImageWidth(int imageWidth) |
void |
setPixelFormat(int pixelFormat) |
void |
setSampleFormat(int sampleFormat) |
void |
setSampleRate(int sampleRate) |
void |
setVideoInputs(int videoInputs) |
abstract void |
start() |
abstract void |
stop() |
protected String filters
protected int imageWidth
protected int imageHeight
protected int pixelFormat
protected double frameRate
protected double aspectRatio
protected int videoInputs
protected String afilters
protected int audioChannels
protected int sampleFormat
protected int sampleRate
protected int audioInputs
public static FrameFilter createDefault(String filtersDescr, int imageWidth, int imageHeight) throws FrameFilter.Exception
FrameFilter.Exception
public 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 int getVideoInputs()
public void setVideoInputs(int videoInputs)
public int getAudioChannels()
public void setAudioChannels(int audioChannels)
public int getSampleFormat()
public void setSampleFormat(int sampleFormat)
public int getSampleRate()
public void setSampleRate(int sampleRate)
public int getAudioInputs()
public void setAudioInputs(int audioInputs)
public abstract void start() throws FrameFilter.Exception
FrameFilter.Exception
public abstract void stop() throws FrameFilter.Exception
FrameFilter.Exception
public abstract void push(Frame frame) throws FrameFilter.Exception
FrameFilter.Exception
public abstract Frame pull() throws FrameFilter.Exception
FrameFilter.Exception
public abstract void release() throws FrameFilter.Exception
FrameFilter.Exception
public void close() throws FrameFilter.Exception
close
in interface Closeable
close
in interface AutoCloseable
FrameFilter.Exception
public void restart() throws FrameFilter.Exception
FrameFilter.Exception
public void flush() throws FrameFilter.Exception
FrameFilter.Exception
Copyright © 2024. All rights reserved.