public class FFmpegFrameFilter extends FrameFilter
FrameFilter that uses FFmpeg to filter frames. We can refer to
FFmpeg Filters Documentation
to get a list of filters and the options we can use. The input image width and
height must be specified on the constructor, while other optional values may be
set via corresponding properties.FrameFilter.ExceptionaspectRatio, filters, frameRate, imageHeight, imageWidth, pixelFormat| Constructor and Description |
|---|
FFmpegFrameFilter(String filters,
int imageWidth,
int imageHeight) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
double |
getAspectRatio() |
double |
getFrameRate() |
int |
getImageHeight() |
int |
getImageWidth() |
int |
getPixelFormat() |
Frame |
pull() |
void |
push(Frame frame) |
void |
push(Frame frame,
int pixelFormat) |
void |
pushImage(int width,
int height,
int depth,
int channels,
int stride,
int pixelFormat,
Buffer... image) |
void |
release() |
void |
start() |
void |
stop() |
static void |
tryLoad() |
close, createDefault, flush, getFilters, restart, setAspectRatio, setFilters, setFrameRate, setImageHeight, setImageWidth, setPixelFormatpublic FFmpegFrameFilter(String filters, int imageWidth, int imageHeight)
public static void tryLoad()
throws FrameFilter.Exception
FrameFilter.Exceptionpublic void release()
throws FrameFilter.Exception
release in class FrameFilterFrameFilter.Exceptionprotected void finalize()
throws Throwable
public int getImageWidth()
getImageWidth in class FrameFilterpublic int getImageHeight()
getImageHeight in class FrameFilterpublic int getPixelFormat()
getPixelFormat in class FrameFilterpublic double getFrameRate()
getFrameRate in class FrameFilterpublic double getAspectRatio()
getAspectRatio in class FrameFilterpublic void start()
throws FrameFilter.Exception
start in class FrameFilterFrameFilter.Exceptionpublic void stop()
throws FrameFilter.Exception
stop in class FrameFilterFrameFilter.Exceptionpublic void push(Frame frame) throws FrameFilter.Exception
push in class FrameFilterFrameFilter.Exceptionpublic void push(Frame frame, int pixelFormat) throws FrameFilter.Exception
FrameFilter.Exceptionpublic void pushImage(int width,
int height,
int depth,
int channels,
int stride,
int pixelFormat,
Buffer... image)
throws FrameFilter.Exception
FrameFilter.Exceptionpublic Frame pull() throws FrameFilter.Exception
pull in class FrameFilterFrameFilter.ExceptionCopyright © 2018. All rights reserved.