public class avfilter extends avfilter
| Modifier and Type | Class and Description |
|---|---|
static class |
avfilter.AVABufferSinkParams
Struct to use for initializing an abuffersink context.
|
static class |
avfilter.AVBufferSinkParams
Struct to use for initializing a buffersink context.
|
static class |
avfilter.AVBufferSrcParameters
This structure contains the parameters describing the frames that will be
passed to this filter.
|
static class |
avfilter.AVFilter
Filter definition.
|
static class |
avfilter.avfilter_action_func
A function pointer passed to the \ref AVFilterGraph.execute callback to be
executed multiple times, possibly in parallel.
|
static class |
avfilter.avfilter_execute_func
A function executing multiple jobs, possibly in parallel.
|
static class |
avfilter.AVFilterContext
An instance of a filter
|
static class |
avfilter.AVFilterFormats |
static class |
avfilter.AVFilterGraph |
static class |
avfilter.AVFilterGraphInternal |
static class |
avfilter.AVFilterInOut
A linked-list of the inputs/outputs of the filter chain.
|
static class |
avfilter.AVFilterInternal |
static class |
avfilter.AVFilterLink
A link between two filters.
|
static class |
avfilter.AVFilterPad |
| Modifier and Type | Field and Description |
|---|---|
static int |
AV_BUFFERSINK_FLAG_NO_REQUEST
Tell av_buffersink_get_buffer_ref() not to request a frame from its input.
|
static int |
AV_BUFFERSINK_FLAG_PEEK
Tell av_buffersink_get_buffer_ref() to read video/samples buffer
reference, but not remove it from the buffer.
|
static int |
AV_BUFFERSRC_FLAG_KEEP_REF
enum
|
static int |
AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT
enum
|
static int |
AV_BUFFERSRC_FLAG_PUSH
enum
|
static int |
AVFILTER_AUTO_CONVERT_ALL
enum
|
static int |
AVFILTER_AUTO_CONVERT_NONE
enum
|
static int |
AVFILTER_CMD_FLAG_FAST
Only execute command when its fast (like a video out that supports contrast adjustment in hw)
|
static int |
AVFILTER_CMD_FLAG_ONE
Stop once a filter understood the command (for target=all for example), fast filters are favored automatically
|
static int |
AVFILTER_FLAG_DYNAMIC_INPUTS
The number of the filter inputs is not determined just by AVFilter.inputs.
|
static int |
AVFILTER_FLAG_DYNAMIC_OUTPUTS
The number of the filter outputs is not determined just by AVFilter.outputs.
|
static int |
AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts
and processing them concurrently.
|
static int |
AVFILTER_FLAG_SUPPORT_TIMELINE
Handy mask to test whether the filter supports or no the timeline feature
(internally or generically).
|
static int |
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used
to enable or disable a filter in the timeline.
|
static int |
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will
have its filter_frame() callback(s) called as usual even when the enable
expression is false.
|
static int |
AVFILTER_THREAD_SLICE
Process multiple parts of the frame concurrently.
|
| Constructor and Description |
|---|
avfilter() |
| Modifier and Type | Method and Description |
|---|---|
static avfilter.AVABufferSinkParams |
av_abuffersink_params_alloc()
Create an AVABufferSinkParams structure.
|
static int |
av_buffersink_get_frame_flags(avfilter.AVFilterContext ctx,
avutil.AVFrame frame,
int flags)
Get a frame with filtered data from sink and put it in frame.
|
static avutil.AVRational |
av_buffersink_get_frame_rate(avfilter.AVFilterContext ctx)
Get the frame rate of the input.
|
static int |
av_buffersink_get_frame(avfilter.AVFilterContext ctx,
avutil.AVFrame frame)
Get a frame with filtered data from sink and put it in frame.
|
static int |
av_buffersink_get_samples(avfilter.AVFilterContext ctx,
avutil.AVFrame frame,
int nb_samples)
Same as av_buffersink_get_frame(), but with the ability to specify the number
of samples read.
|
static avfilter.AVBufferSinkParams |
av_buffersink_params_alloc()
Create an AVBufferSinkParams structure.
|
static void |
av_buffersink_set_frame_size(avfilter.AVFilterContext ctx,
int frame_size)
Set the frame size for an audio buffer sink.
|
static int |
av_buffersrc_add_frame_flags(avfilter.AVFilterContext buffer_src,
avutil.AVFrame frame,
int flags)
Add a frame to the buffer source.
|
static int |
av_buffersrc_add_frame(avfilter.AVFilterContext ctx,
avutil.AVFrame frame)
Add a frame to the buffer source.
|
static int |
av_buffersrc_get_nb_failed_requests(avfilter.AVFilterContext buffer_src)
Get the number of failed requests.
|
static avfilter.AVBufferSrcParameters |
av_buffersrc_parameters_alloc()
Allocate a new AVBufferSrcParameters instance.
|
static int |
av_buffersrc_parameters_set(avfilter.AVFilterContext ctx,
avfilter.AVBufferSrcParameters param)
Initialize the buffersrc or abuffersrc filter with the provided parameters.
|
static int |
av_buffersrc_write_frame(avfilter.AVFilterContext ctx,
avutil.AVFrame frame)
Add a frame to the buffer source.
|
static avfilter.AVFilter |
av_filter_next(avfilter.AVFilter filter)
Deprecated.
|
static PointerPointer |
av_filter_next(PointerPointer filter)
Deprecated.
use avfilter_next()
|
static int |
avfilter_config_links(avfilter.AVFilterContext filter)
Negotiate the media format, dimensions, etc of all inputs to a filter.
|
static BytePointer |
avfilter_configuration()
Return the libavfilter build-time configuration.
|
static void |
avfilter_free(avfilter.AVFilterContext filter)
Free a filter context.
|
static avfilter.AVFilter |
avfilter_get_by_name(BytePointer name)
Get a filter definition matching the given name.
|
static avfilter.AVFilter |
avfilter_get_by_name(String name) |
static avutil.AVClass |
avfilter_get_class() |
static int |
avfilter_graph_add_filter(avfilter.AVFilterGraph graphctx,
avfilter.AVFilterContext filter)
Deprecated.
use avfilter_graph_alloc_filter() to allocate a filter in a
filter graph
|
static avfilter.AVFilterContext |
avfilter_graph_alloc_filter(avfilter.AVFilterGraph graph,
avfilter.AVFilter filter,
BytePointer name)
Create a new filter instance in a filter graph.
|
static avfilter.AVFilterContext |
avfilter_graph_alloc_filter(avfilter.AVFilterGraph graph,
avfilter.AVFilter filter,
String name) |
static avfilter.AVFilterGraph |
avfilter_graph_alloc()
Allocate a filter graph.
|
static int |
avfilter_graph_config(avfilter.AVFilterGraph graphctx,
Pointer log_ctx)
Check validity and configure all the links and formats in the graph.
|
static int |
avfilter_graph_create_filter(avfilter.AVFilterContext filt_ctx,
avfilter.AVFilter filt,
BytePointer name,
BytePointer args,
Pointer opaque,
avfilter.AVFilterGraph graph_ctx) |
static int |
avfilter_graph_create_filter(avfilter.AVFilterContext filt_ctx,
avfilter.AVFilter filt,
String name,
String args,
Pointer opaque,
avfilter.AVFilterGraph graph_ctx) |
static int |
avfilter_graph_create_filter(PointerPointer filt_ctx,
avfilter.AVFilter filt,
BytePointer name,
BytePointer args,
Pointer opaque,
avfilter.AVFilterGraph graph_ctx)
Create and add a filter instance into an existing graph.
|
static BytePointer |
avfilter_graph_dump(avfilter.AVFilterGraph graph,
BytePointer options)
Dump a graph into a human-readable string representation.
|
static ByteBuffer |
avfilter_graph_dump(avfilter.AVFilterGraph graph,
String options) |
static void |
avfilter_graph_free(avfilter.AVFilterGraph graph) |
static void |
avfilter_graph_free(PointerPointer graph)
Free a graph, destroy its links, and set *graph to NULL.
|
static avfilter.AVFilterContext |
avfilter_graph_get_filter(avfilter.AVFilterGraph graph,
BytePointer name)
Get a filter instance identified by instance name from graph.
|
static avfilter.AVFilterContext |
avfilter_graph_get_filter(avfilter.AVFilterGraph graph,
String name) |
static int |
avfilter_graph_parse_ptr(avfilter.AVFilterGraph graph,
BytePointer filters,
avfilter.AVFilterInOut inputs,
avfilter.AVFilterInOut outputs,
Pointer log_ctx) |
static int |
avfilter_graph_parse_ptr(avfilter.AVFilterGraph graph,
BytePointer filters,
PointerPointer inputs,
PointerPointer outputs,
Pointer log_ctx)
Add a graph described by a string to a graph.
|
static int |
avfilter_graph_parse_ptr(avfilter.AVFilterGraph graph,
String filters,
avfilter.AVFilterInOut inputs,
avfilter.AVFilterInOut outputs,
Pointer log_ctx) |
static int |
avfilter_graph_parse(avfilter.AVFilterGraph graph,
BytePointer filters,
avfilter.AVFilterInOut inputs,
avfilter.AVFilterInOut outputs,
Pointer log_ctx)
Add a graph described by a string to a graph.
|
static int |
avfilter_graph_parse(avfilter.AVFilterGraph graph,
String filters,
avfilter.AVFilterInOut inputs,
avfilter.AVFilterInOut outputs,
Pointer log_ctx) |
static int |
avfilter_graph_parse2(avfilter.AVFilterGraph graph,
BytePointer filters,
avfilter.AVFilterInOut inputs,
avfilter.AVFilterInOut outputs) |
static int |
avfilter_graph_parse2(avfilter.AVFilterGraph graph,
BytePointer filters,
PointerPointer inputs,
PointerPointer outputs)
Add a graph described by a string to a graph.
|
static int |
avfilter_graph_parse2(avfilter.AVFilterGraph graph,
String filters,
avfilter.AVFilterInOut inputs,
avfilter.AVFilterInOut outputs) |
static int |
avfilter_graph_queue_command(avfilter.AVFilterGraph graph,
BytePointer target,
BytePointer cmd,
BytePointer arg,
int flags,
double ts)
Queue a command for one or more filter instances.
|
static int |
avfilter_graph_queue_command(avfilter.AVFilterGraph graph,
String target,
String cmd,
String arg,
int flags,
double ts) |
static int |
avfilter_graph_request_oldest(avfilter.AVFilterGraph graph)
Request a frame on the oldest sink link.
|
static int |
avfilter_graph_send_command(avfilter.AVFilterGraph graph,
BytePointer target,
BytePointer cmd,
BytePointer arg,
byte[] res,
int res_len,
int flags) |
static int |
avfilter_graph_send_command(avfilter.AVFilterGraph graph,
BytePointer target,
BytePointer cmd,
BytePointer arg,
ByteBuffer res,
int res_len,
int flags) |
static int |
avfilter_graph_send_command(avfilter.AVFilterGraph graph,
BytePointer target,
BytePointer cmd,
BytePointer arg,
BytePointer res,
int res_len,
int flags)
Send a command to one or more filter instances.
|
static int |
avfilter_graph_send_command(avfilter.AVFilterGraph graph,
String target,
String cmd,
String arg,
byte[] res,
int res_len,
int flags) |
static int |
avfilter_graph_send_command(avfilter.AVFilterGraph graph,
String target,
String cmd,
String arg,
ByteBuffer res,
int res_len,
int flags) |
static int |
avfilter_graph_send_command(avfilter.AVFilterGraph graph,
String target,
String cmd,
String arg,
BytePointer res,
int res_len,
int flags) |
static void |
avfilter_graph_set_auto_convert(avfilter.AVFilterGraph graph,
int flags)
Enable or disable automatic format conversion inside the graph.
|
static int |
avfilter_init_dict(avfilter.AVFilterContext ctx,
avutil.AVDictionary options) |
static int |
avfilter_init_dict(avfilter.AVFilterContext ctx,
PointerPointer options)
Initialize a filter with the supplied dictionary of options.
|
static int |
avfilter_init_filter(avfilter.AVFilterContext filter,
BytePointer args,
Pointer opaque)
Deprecated.
|
static int |
avfilter_init_filter(avfilter.AVFilterContext filter,
String args,
Pointer opaque)
Deprecated.
|
static int |
avfilter_init_str(avfilter.AVFilterContext ctx,
BytePointer args)
Initialize a filter with the supplied parameters.
|
static int |
avfilter_init_str(avfilter.AVFilterContext ctx,
String args) |
static avfilter.AVFilterInOut |
avfilter_inout_alloc()
Allocate a single AVFilterInOut entry.
|
static void |
avfilter_inout_free(avfilter.AVFilterInOut inout) |
static void |
avfilter_inout_free(PointerPointer inout)
Free the supplied list of AVFilterInOut and set *inout to NULL.
|
static int |
avfilter_insert_filter(avfilter.AVFilterLink link,
avfilter.AVFilterContext filt,
int filt_srcpad_idx,
int filt_dstpad_idx)
Insert a filter in the middle of an existing link.
|
static BytePointer |
avfilter_license()
Return the libavfilter license.
|
static void |
avfilter_link_free(avfilter.AVFilterLink link) |
static void |
avfilter_link_free(PointerPointer link)
Free the link in *link, and set its pointer to NULL.
|
static int |
avfilter_link_get_channels(avfilter.AVFilterLink link)
Get the number of channels of a link.
|
static void |
avfilter_link_set_closed(avfilter.AVFilterLink link,
int closed)
Deprecated.
applications are not supposed to mess with links, they should
close the sinks.
|
static int |
avfilter_link(avfilter.AVFilterContext src,
int srcpad,
avfilter.AVFilterContext dst,
int dstpad)
Link two filters together.
|
static avfilter.AVFilter |
avfilter_next(avfilter.AVFilter prev)
Iterate over all registered filters.
|
static int |
avfilter_open(avfilter.AVFilterContext filter_ctx,
avfilter.AVFilter filter,
BytePointer inst_name)
Deprecated.
|
static int |
avfilter_open(avfilter.AVFilterContext filter_ctx,
avfilter.AVFilter filter,
String inst_name)
Deprecated.
|
static int |
avfilter_open(PointerPointer filter_ctx,
avfilter.AVFilter filter,
BytePointer inst_name)
Deprecated.
use avfilter_graph_alloc_filter() instead
|
static int |
avfilter_pad_count(avfilter.AVFilterPad pads)
Get the number of elements in a NULL-terminated array of AVFilterPads (e.g.
|
static BytePointer |
avfilter_pad_get_name(avfilter.AVFilterPad pads,
int pad_idx)
Get the name of an AVFilterPad.
|
static int |
avfilter_pad_get_type(avfilter.AVFilterPad pads,
int pad_idx)
Get the type of an AVFilterPad.
|
static int |
avfilter_process_command(avfilter.AVFilterContext filter,
BytePointer cmd,
BytePointer arg,
byte[] res,
int res_len,
int flags) |
static int |
avfilter_process_command(avfilter.AVFilterContext filter,
BytePointer cmd,
BytePointer arg,
ByteBuffer res,
int res_len,
int flags) |
static int |
avfilter_process_command(avfilter.AVFilterContext filter,
BytePointer cmd,
BytePointer arg,
BytePointer res,
int res_len,
int flags)
Make the filter instance process a command.
|
static int |
avfilter_process_command(avfilter.AVFilterContext filter,
String cmd,
String arg,
byte[] res,
int res_len,
int flags) |
static int |
avfilter_process_command(avfilter.AVFilterContext filter,
String cmd,
String arg,
ByteBuffer res,
int res_len,
int flags) |
static int |
avfilter_process_command(avfilter.AVFilterContext filter,
String cmd,
String arg,
BytePointer res,
int res_len,
int flags) |
static void |
avfilter_register_all()
Initialize the filter system.
|
static int |
avfilter_register(avfilter.AVFilter filter)
Register a filter.
|
static void |
avfilter_uninit()
Deprecated.
|
static int |
avfilter_version()
Return the LIBAVFILTER_VERSION_INT constant.
|
public static final int AVFILTER_FLAG_DYNAMIC_INPUTS
public static final int AVFILTER_FLAG_DYNAMIC_OUTPUTS
public static final int AVFILTER_FLAG_SLICE_THREADS
public static final int AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
public static final int AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
public static final int AVFILTER_FLAG_SUPPORT_TIMELINE
public static final int AVFILTER_THREAD_SLICE
public static final int AVFILTER_CMD_FLAG_ONE
public static final int AVFILTER_CMD_FLAG_FAST
public static final int AVFILTER_AUTO_CONVERT_ALL
public static final int AVFILTER_AUTO_CONVERT_NONE
public static final int AV_BUFFERSINK_FLAG_PEEK
public static final int AV_BUFFERSINK_FLAG_NO_REQUEST
public static final int AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT
public static final int AV_BUFFERSRC_FLAG_PUSH
public static final int AV_BUFFERSRC_FLAG_KEEP_REF
@NoException @Cast(value="unsigned") public static int avfilter_version()
@NoException @Cast(value="const char*") public static BytePointer avfilter_configuration()
@NoException @Cast(value="const char*") public static BytePointer avfilter_license()
@NoException public static int avfilter_pad_count(@Const avfilter.AVFilterPad pads)
@NoException @Cast(value="const char*") public static BytePointer avfilter_pad_get_name(@Const avfilter.AVFilterPad pads, int pad_idx)
pads - an array of AVFilterPadspad_idx - index of the pad in the array it; is the caller's
responsibility to ensure the index is valid@NoException @Cast(value="AVMediaType") public static int avfilter_pad_get_type(@Const avfilter.AVFilterPad pads, int pad_idx)
pads - an array of AVFilterPadspad_idx - index of the pad in the array; it is the caller's
responsibility to ensure the index is valid@NoException public static int avfilter_link(avfilter.AVFilterContext src, @Cast(value="unsigned") int srcpad, avfilter.AVFilterContext dst, @Cast(value="unsigned") int dstpad)
src - the source filtersrcpad - index of the output pad on the source filterdst - the destination filterdstpad - index of the input pad on the destination filter@NoException public static void avfilter_link_free(@Cast(value="AVFilterLink**") PointerPointer link)
@NoException public static void avfilter_link_free(@ByPtrPtr avfilter.AVFilterLink link)
@NoException public static int avfilter_link_get_channels(avfilter.AVFilterLink link)
@NoException @Deprecated public static void avfilter_link_set_closed(avfilter.AVFilterLink link, int closed)
@NoException public static int avfilter_config_links(avfilter.AVFilterContext filter)
filter - the filter to negotiate the properties for its inputs@NoException public static int avfilter_process_command(avfilter.AVFilterContext filter, @Cast(value="const char*") BytePointer cmd, @Cast(value="const char*") BytePointer arg, @Cast(value="char*") BytePointer res, int res_len, int flags)
@NoException public static int avfilter_process_command(avfilter.AVFilterContext filter, String cmd, String arg, @Cast(value="char*") ByteBuffer res, int res_len, int flags)
@NoException public static int avfilter_process_command(avfilter.AVFilterContext filter, @Cast(value="const char*") BytePointer cmd, @Cast(value="const char*") BytePointer arg, @Cast(value="char*") byte[] res, int res_len, int flags)
@NoException public static int avfilter_process_command(avfilter.AVFilterContext filter, String cmd, String arg, @Cast(value="char*") BytePointer res, int res_len, int flags)
@NoException public static int avfilter_process_command(avfilter.AVFilterContext filter, @Cast(value="const char*") BytePointer cmd, @Cast(value="const char*") BytePointer arg, @Cast(value="char*") ByteBuffer res, int res_len, int flags)
@NoException public static int avfilter_process_command(avfilter.AVFilterContext filter, String cmd, String arg, @Cast(value="char*") byte[] res, int res_len, int flags)
@NoException public static void avfilter_register_all()
@NoException @Deprecated public static void avfilter_uninit()
@NoException public static int avfilter_register(avfilter.AVFilter filter)
filter - the filter to register@NoException @Const public static avfilter.AVFilter avfilter_get_by_name(@Cast(value="const char*") BytePointer name)
name - the filter name to find@NoException @Const public static avfilter.AVFilter avfilter_get_by_name(String name)
@NoException @Const public static avfilter.AVFilter avfilter_next(@Const avfilter.AVFilter prev)
@NoException @Cast(value="AVFilter**") @Deprecated public static PointerPointer av_filter_next(@Cast(value="AVFilter**") PointerPointer filter)
@NoException @Deprecated @ByPtrPtr public static avfilter.AVFilter av_filter_next(@ByPtrPtr avfilter.AVFilter filter)
@NoException @Deprecated public static int avfilter_open(@Cast(value="AVFilterContext**") PointerPointer filter_ctx, avfilter.AVFilter filter, @Cast(value="const char*") BytePointer inst_name)
filter_ctx - put here a pointer to the created filter context
on success, NULL on failurefilter - the filter to create an instance ofinst_name - Name to give to the new instance. Can be NULL for none.@NoException @Deprecated public static int avfilter_open(@ByPtrPtr avfilter.AVFilterContext filter_ctx, avfilter.AVFilter filter, @Cast(value="const char*") BytePointer inst_name)
@NoException @Deprecated public static int avfilter_open(@ByPtrPtr avfilter.AVFilterContext filter_ctx, avfilter.AVFilter filter, String inst_name)
@NoException @Deprecated public static int avfilter_init_filter(avfilter.AVFilterContext filter, @Cast(value="const char*") BytePointer args, Pointer opaque)
filter - the filter to initializeargs - A string of parameters to use when initializing the filter.
The format and meaning of this string varies by filter.opaque - Any extra non-string data needed by the filter. The meaning
of this parameter varies by filter.@NoException @Deprecated public static int avfilter_init_filter(avfilter.AVFilterContext filter, String args, Pointer opaque)
@NoException public static int avfilter_init_str(avfilter.AVFilterContext ctx, @Cast(value="const char*") BytePointer args)
ctx - uninitialized filter context to initializeargs - Options to initialize the filter with. This must be a
':'-separated list of options in the 'key=value' form.
May be NULL if the options have been set directly using the
AVOptions API or there are no options that need to be set.@NoException public static int avfilter_init_str(avfilter.AVFilterContext ctx, String args)
@NoException public static int avfilter_init_dict(avfilter.AVFilterContext ctx, @Cast(value="AVDictionary**") PointerPointer options)
ctx - uninitialized filter context to initializeoptions - An AVDictionary filled with options for this filter. On
return this parameter will be destroyed and replaced with
a dict containing options that were not found. This dictionary
must be freed by the caller.
May be NULL, then this function is equivalent to
avfilter_init_str() with the second parameter set to NULL.@NoException public static int avfilter_init_dict(avfilter.AVFilterContext ctx, @ByPtrPtr avutil.AVDictionary options)
@NoException public static void avfilter_free(avfilter.AVFilterContext filter)
filter - the filter to free@NoException public static int avfilter_insert_filter(avfilter.AVFilterLink link, avfilter.AVFilterContext filt, @Cast(value="unsigned") int filt_srcpad_idx, @Cast(value="unsigned") int filt_dstpad_idx)
link - the link into which the filter should be insertedfilt - the filter to be insertedfilt_srcpad_idx - the input pad on the filter to connectfilt_dstpad_idx - the output pad on the filter to connect@NoException @Const public static avutil.AVClass avfilter_get_class()
av_opt_find().@NoException public static avfilter.AVFilterGraph avfilter_graph_alloc()
@NoException public static avfilter.AVFilterContext avfilter_graph_alloc_filter(avfilter.AVFilterGraph graph, @Const avfilter.AVFilter filter, @Cast(value="const char*") BytePointer name)
graph - graph in which the new filter will be usedfilter - the filter to create an instance ofname - Name to give to the new instance (will be copied to
AVFilterContext.name). This may be used by the caller to identify
different filters, libavfilter itself assigns no semantics to
this parameter. May be NULL.@NoException public static avfilter.AVFilterContext avfilter_graph_alloc_filter(avfilter.AVFilterGraph graph, @Const avfilter.AVFilter filter, String name)
@NoException public static avfilter.AVFilterContext avfilter_graph_get_filter(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer name)
graph - filter graph to search through.name - filter instance name (should be unique in the graph).@NoException public static avfilter.AVFilterContext avfilter_graph_get_filter(avfilter.AVFilterGraph graph, String name)
@NoException @Deprecated public static int avfilter_graph_add_filter(avfilter.AVFilterGraph graphctx, avfilter.AVFilterContext filter)
graphctx - the filter graphfilter - the filter to be added@NoException public static int avfilter_graph_create_filter(@Cast(value="AVFilterContext**") PointerPointer filt_ctx, @Const avfilter.AVFilter filt, @Cast(value="const char*") BytePointer name, @Cast(value="const char*") BytePointer args, Pointer opaque, avfilter.AVFilterGraph graph_ctx)
name - the instance name to give to the created filter instancegraph_ctx - the filter graph@NoException public static int avfilter_graph_create_filter(@ByPtrPtr avfilter.AVFilterContext filt_ctx, @Const avfilter.AVFilter filt, @Cast(value="const char*") BytePointer name, @Cast(value="const char*") BytePointer args, Pointer opaque, avfilter.AVFilterGraph graph_ctx)
@NoException public static int avfilter_graph_create_filter(@ByPtrPtr avfilter.AVFilterContext filt_ctx, @Const avfilter.AVFilter filt, String name, String args, Pointer opaque, avfilter.AVFilterGraph graph_ctx)
@NoException public static void avfilter_graph_set_auto_convert(avfilter.AVFilterGraph graph, @Cast(value="unsigned") int flags)
flags - any of the AVFILTER_AUTO_CONVERT_* constants@NoException public static int avfilter_graph_config(avfilter.AVFilterGraph graphctx, Pointer log_ctx)
graphctx - the filter graphlog_ctx - context used for logging@NoException public static void avfilter_graph_free(@Cast(value="AVFilterGraph**") PointerPointer graph)
@NoException public static void avfilter_graph_free(@ByPtrPtr avfilter.AVFilterGraph graph)
@NoException public static avfilter.AVFilterInOut avfilter_inout_alloc()
@NoException public static void avfilter_inout_free(@Cast(value="AVFilterInOut**") PointerPointer inout)
@NoException public static void avfilter_inout_free(@ByPtrPtr avfilter.AVFilterInOut inout)
@NoException public static int avfilter_graph_parse(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, avfilter.AVFilterInOut inputs, avfilter.AVFilterInOut outputs, Pointer log_ctx)
graph - the filter graph where to link the parsed graph contextfilters - string to be parsedinputs - linked list to the inputs of the graphoutputs - linked list to the outputs of the graph@NoException public static int avfilter_graph_parse(avfilter.AVFilterGraph graph, String filters, avfilter.AVFilterInOut inputs, avfilter.AVFilterInOut outputs, Pointer log_ctx)
@NoException public static int avfilter_graph_parse_ptr(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, @Cast(value="AVFilterInOut**") PointerPointer inputs, @Cast(value="AVFilterInOut**") PointerPointer outputs, Pointer log_ctx)
graph - the filter graph where to link the parsed graph contextfilters - string to be parsedinputs - pointer to a linked list to the inputs of the graph, may be NULL.
If non-NULL, *inputs is updated to contain the list of open inputs
after the parsing, should be freed with avfilter_inout_free().outputs - pointer to a linked list to the outputs of the graph, may be NULL.
If non-NULL, *outputs is updated to contain the list of open outputs
after the parsing, should be freed with avfilter_inout_free().@NoException public static int avfilter_graph_parse_ptr(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, @ByPtrPtr avfilter.AVFilterInOut inputs, @ByPtrPtr avfilter.AVFilterInOut outputs, Pointer log_ctx)
@NoException public static int avfilter_graph_parse_ptr(avfilter.AVFilterGraph graph, String filters, @ByPtrPtr avfilter.AVFilterInOut inputs, @ByPtrPtr avfilter.AVFilterInOut outputs, Pointer log_ctx)
@NoException public static int avfilter_graph_parse2(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, @Cast(value="AVFilterInOut**") PointerPointer inputs, @Cast(value="AVFilterInOut**") PointerPointer outputs)
[in] - graph the filter graph where to link the parsed graph context[in] - filters string to be parsed[out] - inputs a linked list of all free (unlinked) inputs of the
parsed graph will be returned here. It is to be freed
by the caller using avfilter_inout_free().[out] - outputs a linked list of all free (unlinked) outputs of the
parsed graph will be returned here. It is to be freed by the
caller using avfilter_inout_free().@NoException public static int avfilter_graph_parse2(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, @ByPtrPtr avfilter.AVFilterInOut inputs, @ByPtrPtr avfilter.AVFilterInOut outputs)
@NoException public static int avfilter_graph_parse2(avfilter.AVFilterGraph graph, String filters, @ByPtrPtr avfilter.AVFilterInOut inputs, @ByPtrPtr avfilter.AVFilterInOut outputs)
@NoException public static int avfilter_graph_send_command(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer target, @Cast(value="const char*") BytePointer cmd, @Cast(value="const char*") BytePointer arg, @Cast(value="char*") BytePointer res, int res_len, int flags)
graph - the filter graphtarget - the filter(s) to which the command should be sent
"all" sends to all filters
otherwise it can be a filter or filter instance name
which will send the command to all matching filters.cmd - the command to send, for handling simplicity all commands must be alphanumeric onlyarg - the argument for the commandres - a buffer with size res_size where the filter(s) can return a response.@NoException public static int avfilter_graph_send_command(avfilter.AVFilterGraph graph, String target, String cmd, String arg, @Cast(value="char*") ByteBuffer res, int res_len, int flags)
@NoException public static int avfilter_graph_send_command(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer target, @Cast(value="const char*") BytePointer cmd, @Cast(value="const char*") BytePointer arg, @Cast(value="char*") byte[] res, int res_len, int flags)
@NoException public static int avfilter_graph_send_command(avfilter.AVFilterGraph graph, String target, String cmd, String arg, @Cast(value="char*") BytePointer res, int res_len, int flags)
@NoException public static int avfilter_graph_send_command(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer target, @Cast(value="const char*") BytePointer cmd, @Cast(value="const char*") BytePointer arg, @Cast(value="char*") ByteBuffer res, int res_len, int flags)
@NoException public static int avfilter_graph_send_command(avfilter.AVFilterGraph graph, String target, String cmd, String arg, @Cast(value="char*") byte[] res, int res_len, int flags)
@NoException public static int avfilter_graph_queue_command(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer target, @Cast(value="const char*") BytePointer cmd, @Cast(value="const char*") BytePointer arg, int flags, double ts)
graph - the filter graphtarget - the filter(s) to which the command should be sent
"all" sends to all filters
otherwise it can be a filter or filter instance name
which will send the command to all matching filters.cmd - the command to sent, for handling simplicity all commands must be alphanumeric onlyarg - the argument for the commandts - time at which the command should be sent to the filter
\note As this executes commands after this function returns, no return code
from the filter is provided, also AVFILTER_CMD_FLAG_ONE is not supported.@NoException public static int avfilter_graph_queue_command(avfilter.AVFilterGraph graph, String target, String cmd, String arg, int flags, double ts)
@NoException @Cast(value="char*") public static BytePointer avfilter_graph_dump(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer options)
graph - the graph to dumpoptions - formatting options; currently ignored@NoException @Cast(value="char*") public static ByteBuffer avfilter_graph_dump(avfilter.AVFilterGraph graph, String options)
@NoException public static int avfilter_graph_request_oldest(avfilter.AVFilterGraph graph)
@NoException public static int av_buffersink_get_frame_flags(avfilter.AVFilterContext ctx, avutil.AVFrame frame, int flags)
ctx - pointer to a buffersink or abuffersink filter context.frame - pointer to an allocated frame that will be filled with data.
The data must be freed using av_frame_unref() / av_frame_free()flags - a combination of AV_BUFFERSINK_FLAG_* flags@NoException public static avfilter.AVBufferSinkParams av_buffersink_params_alloc()
@NoException public static avfilter.AVABufferSinkParams av_abuffersink_params_alloc()
@NoException public static void av_buffersink_set_frame_size(avfilter.AVFilterContext ctx, @Cast(value="unsigned") int frame_size)
@NoException @ByVal public static avutil.AVRational av_buffersink_get_frame_rate(avfilter.AVFilterContext ctx)
@NoException public static int av_buffersink_get_frame(avfilter.AVFilterContext ctx, avutil.AVFrame frame)
ctx - pointer to a context of a buffersink or abuffersink AVFilter.frame - pointer to an allocated frame that will be filled with data.
The data must be freed using av_frame_unref() / av_frame_free()@NoException public static int av_buffersink_get_samples(avfilter.AVFilterContext ctx, avutil.AVFrame frame, int nb_samples)
ctx - pointer to a context of the abuffersink AVFilter.frame - pointer to an allocated frame that will be filled with data.
The data must be freed using av_frame_unref() / av_frame_free()
frame will contain exactly nb_samples audio samples, except at
the end of stream, when it can contain less than nb_samples.@NoException @Cast(value="unsigned") public static int av_buffersrc_get_nb_failed_requests(avfilter.AVFilterContext buffer_src)
@NoException public static avfilter.AVBufferSrcParameters av_buffersrc_parameters_alloc()
@NoException public static int av_buffersrc_parameters_set(avfilter.AVFilterContext ctx, avfilter.AVBufferSrcParameters param)
ctx - an instance of the buffersrc or abuffersrc filterparam - the stream parameters. The frames later passed to this filter
must conform to those parameters. All the allocated fields in
param remain owned by the caller, libavfilter will make internal
copies or references when necessary.@NoException public static int av_buffersrc_write_frame(avfilter.AVFilterContext ctx, @Const avutil.AVFrame frame)
ctx - an instance of the buffersrc filterframe - frame to be added. If the frame is reference counted, this
function will make a new reference to it. Otherwise the frame data will be
copied.@NoException public static int av_buffersrc_add_frame(avfilter.AVFilterContext ctx, avutil.AVFrame frame)
ctx - an instance of the buffersrc filterframe - frame to be added. If the frame is reference counted, this
function will take ownership of the reference(s) and reset the frame.
Otherwise the frame data will be copied. If this function returns an error,
the input frame is not touched.@NoException public static int av_buffersrc_add_frame_flags(avfilter.AVFilterContext buffer_src, avutil.AVFrame frame, int flags)
buffer_src - pointer to a buffer source contextframe - a frame, or NULL to mark EOFflags - a combination of AV_BUFFERSRC_FLAG_*Copyright © 2016. All rights reserved.