public class avfilter extends avfilter
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 AVABufferSinkParams |
av_abuffersink_params_alloc()
Create an AVABufferSinkParams structure.
|
static long |
av_buffersink_get_channel_layout(AVFilterContext ctx) |
static int |
av_buffersink_get_channels(AVFilterContext ctx) |
static int |
av_buffersink_get_format(AVFilterContext ctx) |
static int |
av_buffersink_get_frame_flags(AVFilterContext ctx,
AVFrame frame,
int flags)
Get a frame with filtered data from sink and put it in frame.
|
static AVRational |
av_buffersink_get_frame_rate(AVFilterContext ctx) |
static int |
av_buffersink_get_frame(AVFilterContext ctx,
AVFrame frame)
Get a frame with filtered data from sink and put it in frame.
|
static int |
av_buffersink_get_h(AVFilterContext ctx) |
static AVBufferRef |
av_buffersink_get_hw_frames_ctx(AVFilterContext ctx) |
static AVRational |
av_buffersink_get_sample_aspect_ratio(AVFilterContext ctx) |
static int |
av_buffersink_get_sample_rate(AVFilterContext ctx) |
static int |
av_buffersink_get_samples(AVFilterContext ctx,
AVFrame frame,
int nb_samples)
Same as av_buffersink_get_frame(), but with the ability to specify the number
of samples read.
|
static AVRational |
av_buffersink_get_time_base(AVFilterContext ctx) |
static int |
av_buffersink_get_type(AVFilterContext ctx)
\defgroup lavfi_buffersink_accessors Buffer sink accessors
Get the properties of the stream
\{
|
static int |
av_buffersink_get_w(AVFilterContext ctx) |
static AVBufferSinkParams |
av_buffersink_params_alloc()
Create an AVBufferSinkParams structure.
|
static void |
av_buffersink_set_frame_size(AVFilterContext ctx,
int frame_size)
Set the frame size for an audio buffer sink.
|
static int |
av_buffersrc_add_frame_flags(AVFilterContext buffer_src,
AVFrame frame,
int flags)
Add a frame to the buffer source.
|
static int |
av_buffersrc_add_frame(AVFilterContext ctx,
AVFrame frame)
Add a frame to the buffer source.
|
static int |
av_buffersrc_close(AVFilterContext ctx,
long pts,
int flags)
Close the buffer source after EOF.
|
static int |
av_buffersrc_get_nb_failed_requests(AVFilterContext buffer_src)
Get the number of failed requests.
|
static AVBufferSrcParameters |
av_buffersrc_parameters_alloc()
Allocate a new AVBufferSrcParameters instance.
|
static int |
av_buffersrc_parameters_set(AVFilterContext ctx,
AVBufferSrcParameters param)
Initialize the buffersrc or abuffersrc filter with the provided parameters.
|
static int |
av_buffersrc_write_frame(AVFilterContext ctx,
AVFrame frame)
Add a frame to the buffer source.
|
static AVFilter |
av_filter_iterate(Pointer opaque) |
static AVFilter |
av_filter_iterate(PointerPointer opaque)
Iterate over all registered filters.
|
static int |
avfilter_config_links(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(AVFilterContext filter)
Free a filter context.
|
static AVFilter |
avfilter_get_by_name(BytePointer name)
Get a filter definition matching the given name.
|
static AVFilter |
avfilter_get_by_name(String name) |
static AVClass |
avfilter_get_class() |
static AVFilterContext |
avfilter_graph_alloc_filter(AVFilterGraph graph,
AVFilter filter,
BytePointer name)
Create a new filter instance in a filter graph.
|
static AVFilterContext |
avfilter_graph_alloc_filter(AVFilterGraph graph,
AVFilter filter,
String name) |
static AVFilterGraph |
avfilter_graph_alloc()
Allocate a filter graph.
|
static int |
avfilter_graph_config(AVFilterGraph graphctx,
Pointer log_ctx)
Check validity and configure all the links and formats in the graph.
|
static int |
avfilter_graph_create_filter(AVFilterContext filt_ctx,
AVFilter filt,
BytePointer name,
BytePointer args,
Pointer opaque,
AVFilterGraph graph_ctx) |
static int |
avfilter_graph_create_filter(AVFilterContext filt_ctx,
AVFilter filt,
String name,
String args,
Pointer opaque,
AVFilterGraph graph_ctx) |
static int |
avfilter_graph_create_filter(PointerPointer filt_ctx,
AVFilter filt,
BytePointer name,
BytePointer args,
Pointer opaque,
AVFilterGraph graph_ctx)
Create and add a filter instance into an existing graph.
|
static BytePointer |
avfilter_graph_dump(AVFilterGraph graph,
BytePointer options)
Dump a graph into a human-readable string representation.
|
static ByteBuffer |
avfilter_graph_dump(AVFilterGraph graph,
String options) |
static void |
avfilter_graph_free(AVFilterGraph graph) |
static void |
avfilter_graph_free(PointerPointer graph)
Free a graph, destroy its links, and set *graph to NULL.
|
static AVFilterContext |
avfilter_graph_get_filter(AVFilterGraph graph,
BytePointer name)
Get a filter instance identified by instance name from graph.
|
static AVFilterContext |
avfilter_graph_get_filter(AVFilterGraph graph,
String name) |
static int |
avfilter_graph_parse_ptr(AVFilterGraph graph,
BytePointer filters,
AVFilterInOut inputs,
AVFilterInOut outputs,
Pointer log_ctx) |
static int |
avfilter_graph_parse_ptr(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(AVFilterGraph graph,
String filters,
AVFilterInOut inputs,
AVFilterInOut outputs,
Pointer log_ctx) |
static int |
avfilter_graph_parse(AVFilterGraph graph,
BytePointer filters,
AVFilterInOut inputs,
AVFilterInOut outputs,
Pointer log_ctx)
Add a graph described by a string to a graph.
|
static int |
avfilter_graph_parse(AVFilterGraph graph,
String filters,
AVFilterInOut inputs,
AVFilterInOut outputs,
Pointer log_ctx) |
static int |
avfilter_graph_parse2(AVFilterGraph graph,
BytePointer filters,
AVFilterInOut inputs,
AVFilterInOut outputs) |
static int |
avfilter_graph_parse2(AVFilterGraph graph,
BytePointer filters,
PointerPointer inputs,
PointerPointer outputs)
Add a graph described by a string to a graph.
|
static int |
avfilter_graph_parse2(AVFilterGraph graph,
String filters,
AVFilterInOut inputs,
AVFilterInOut outputs) |
static int |
avfilter_graph_queue_command(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(AVFilterGraph graph,
String target,
String cmd,
String arg,
int flags,
double ts) |
static int |
avfilter_graph_request_oldest(AVFilterGraph graph)
Request a frame on the oldest sink link.
|
static int |
avfilter_graph_send_command(AVFilterGraph graph,
BytePointer target,
BytePointer cmd,
BytePointer arg,
byte[] res,
int res_len,
int flags) |
static int |
avfilter_graph_send_command(AVFilterGraph graph,
BytePointer target,
BytePointer cmd,
BytePointer arg,
ByteBuffer res,
int res_len,
int flags) |
static int |
avfilter_graph_send_command(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(AVFilterGraph graph,
String target,
String cmd,
String arg,
byte[] res,
int res_len,
int flags) |
static int |
avfilter_graph_send_command(AVFilterGraph graph,
String target,
String cmd,
String arg,
ByteBuffer res,
int res_len,
int flags) |
static int |
avfilter_graph_send_command(AVFilterGraph graph,
String target,
String cmd,
String arg,
BytePointer res,
int res_len,
int flags) |
static void |
avfilter_graph_set_auto_convert(AVFilterGraph graph,
int flags)
Enable or disable automatic format conversion inside the graph.
|
static int |
avfilter_init_dict(AVFilterContext ctx,
AVDictionary options) |
static int |
avfilter_init_dict(AVFilterContext ctx,
PointerPointer options)
Initialize a filter with the supplied dictionary of options.
|
static int |
avfilter_init_str(AVFilterContext ctx,
BytePointer args)
Initialize a filter with the supplied parameters.
|
static int |
avfilter_init_str(AVFilterContext ctx,
String args) |
static AVFilterInOut |
avfilter_inout_alloc()
Allocate a single AVFilterInOut entry.
|
static void |
avfilter_inout_free(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(AVFilterLink link,
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(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(AVFilterLink link)
Deprecated.
Use av_buffersink_get_channels()
|
static void |
avfilter_link_set_closed(AVFilterLink link,
int closed)
Deprecated.
applications are not supposed to mess with links, they should
close the sinks.
|
static int |
avfilter_link(AVFilterContext src,
int srcpad,
AVFilterContext dst,
int dstpad)
Link two filters together.
|
static AVFilter |
avfilter_next(AVFilter prev)
Deprecated.
|
static int |
avfilter_pad_count(AVFilterPad pads)
Get the number of elements in a NULL-terminated array of AVFilterPads (e.g.
|
static BytePointer |
avfilter_pad_get_name(AVFilterPad pads,
int pad_idx)
Get the name of an AVFilterPad.
|
static int |
avfilter_pad_get_type(AVFilterPad pads,
int pad_idx)
Get the type of an AVFilterPad.
|
static int |
avfilter_process_command(AVFilterContext filter,
BytePointer cmd,
BytePointer arg,
byte[] res,
int res_len,
int flags) |
static int |
avfilter_process_command(AVFilterContext filter,
BytePointer cmd,
BytePointer arg,
ByteBuffer res,
int res_len,
int flags) |
static int |
avfilter_process_command(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(AVFilterContext filter,
String cmd,
String arg,
byte[] res,
int res_len,
int flags) |
static int |
avfilter_process_command(AVFilterContext filter,
String cmd,
String arg,
ByteBuffer res,
int res_len,
int flags) |
static int |
avfilter_process_command(AVFilterContext filter,
String cmd,
String arg,
BytePointer res,
int res_len,
int flags) |
static void |
avfilter_register_all()
Deprecated.
|
static int |
avfilter_register(AVFilter filter)
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 AVFilterPad pads)
@NoException @Cast(value="const char*") public static BytePointer avfilter_pad_get_name(@Const 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 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(AVFilterContext src, @Cast(value="unsigned") int srcpad, 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 AVFilterLink link)
@NoException @Deprecated public static int avfilter_link_get_channels(AVFilterLink link)
@NoException @Deprecated public static void avfilter_link_set_closed(AVFilterLink link, int closed)
@NoException public static int avfilter_config_links(AVFilterContext filter)
filter
- the filter to negotiate the properties for its inputs@NoException public static int avfilter_process_command(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(AVFilterContext filter, String cmd, String arg, @Cast(value="char*") ByteBuffer res, int res_len, int flags)
@NoException public static int avfilter_process_command(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(AVFilterContext filter, String cmd, String arg, @Cast(value="char*") BytePointer res, int res_len, int flags)
@NoException public static int avfilter_process_command(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(AVFilterContext filter, String cmd, String arg, @Cast(value="char*") byte[] res, int res_len, int flags)
@NoException @Const public static AVFilter av_filter_iterate(@Cast(value="void**") PointerPointer opaque)
opaque
- a pointer where libavfilter will store the iteration state. Must
point to NULL to start the iteration.@NoException @Const public static AVFilter av_filter_iterate(@Cast(value="void**") @ByPtrPtr Pointer opaque)
@NoException @Deprecated public static void avfilter_register_all()
@NoException @Deprecated public static int avfilter_register(AVFilter filter)
filter
- the filter to register@NoException @Const @Deprecated public static AVFilter avfilter_next(@Const AVFilter prev)
@NoException @Const public static AVFilter avfilter_get_by_name(@Cast(value="const char*") BytePointer name)
name
- the filter name to find@NoException @Const public static AVFilter avfilter_get_by_name(String name)
@NoException public static int avfilter_init_str(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(AVFilterContext ctx, String args)
@NoException public static int avfilter_init_dict(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(AVFilterContext ctx, @ByPtrPtr AVDictionary options)
@NoException public static void avfilter_free(AVFilterContext filter)
filter
- the filter to free@NoException public static int avfilter_insert_filter(AVFilterLink link, 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 AVClass avfilter_get_class()
av_opt_find().
@NoException public static AVFilterGraph avfilter_graph_alloc()
@NoException public static AVFilterContext avfilter_graph_alloc_filter(AVFilterGraph graph, @Const 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 AVFilterContext avfilter_graph_alloc_filter(AVFilterGraph graph, @Const AVFilter filter, String name)
@NoException public static AVFilterContext avfilter_graph_get_filter(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 AVFilterContext avfilter_graph_get_filter(AVFilterGraph graph, String name)
@NoException public static int avfilter_graph_create_filter(@Cast(value="AVFilterContext**") PointerPointer filt_ctx, @Const AVFilter filt, @Cast(value="const char*") BytePointer name, @Cast(value="const char*") BytePointer args, Pointer opaque, 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 AVFilterContext filt_ctx, @Const AVFilter filt, @Cast(value="const char*") BytePointer name, @Cast(value="const char*") BytePointer args, Pointer opaque, AVFilterGraph graph_ctx)
@NoException public static int avfilter_graph_create_filter(@ByPtrPtr AVFilterContext filt_ctx, @Const AVFilter filt, String name, String args, Pointer opaque, AVFilterGraph graph_ctx)
@NoException public static void avfilter_graph_set_auto_convert(AVFilterGraph graph, @Cast(value="unsigned") int flags)
flags
- any of the AVFILTER_AUTO_CONVERT_* constants@NoException public static int avfilter_graph_config(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 AVFilterGraph graph)
@NoException public static AVFilterInOut avfilter_inout_alloc()
@NoException public static void avfilter_inout_free(@Cast(value="AVFilterInOut**") PointerPointer inout)
@NoException public static void avfilter_inout_free(@ByPtrPtr AVFilterInOut inout)
@NoException public static int avfilter_graph_parse(AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, AVFilterInOut inputs, 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(AVFilterGraph graph, String filters, AVFilterInOut inputs, AVFilterInOut outputs, Pointer log_ctx)
@NoException public static int avfilter_graph_parse_ptr(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(AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, @ByPtrPtr AVFilterInOut inputs, @ByPtrPtr AVFilterInOut outputs, Pointer log_ctx)
@NoException public static int avfilter_graph_parse_ptr(AVFilterGraph graph, String filters, @ByPtrPtr AVFilterInOut inputs, @ByPtrPtr AVFilterInOut outputs, Pointer log_ctx)
@NoException public static int avfilter_graph_parse2(AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, @Cast(value="AVFilterInOut**") PointerPointer inputs, @Cast(value="AVFilterInOut**") PointerPointer outputs)
graph
- [in] the filter graph where to link the parsed graph contextfilters
- [in] string to be parsedinputs
- [out] 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().outputs
- [out] 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(AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, @ByPtrPtr AVFilterInOut inputs, @ByPtrPtr AVFilterInOut outputs)
@NoException public static int avfilter_graph_parse2(AVFilterGraph graph, String filters, @ByPtrPtr AVFilterInOut inputs, @ByPtrPtr AVFilterInOut outputs)
@NoException public static int avfilter_graph_send_command(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(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(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(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(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(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(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(AVFilterGraph graph, String target, String cmd, String arg, int flags, double ts)
@NoException @Cast(value="char*") public static BytePointer avfilter_graph_dump(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(AVFilterGraph graph, String options)
@NoException public static int avfilter_graph_request_oldest(AVFilterGraph graph)
@NoException public static int av_buffersink_get_frame_flags(AVFilterContext ctx, 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 AVBufferSinkParams av_buffersink_params_alloc()
@NoException public static AVABufferSinkParams av_abuffersink_params_alloc()
@NoException public static void av_buffersink_set_frame_size(AVFilterContext ctx, @Cast(value="unsigned") int frame_size)
@NoException @Cast(value="AVMediaType") public static int av_buffersink_get_type(@Const AVFilterContext ctx)
@NoException @ByVal public static AVRational av_buffersink_get_time_base(@Const AVFilterContext ctx)
@NoException public static int av_buffersink_get_format(@Const AVFilterContext ctx)
@NoException @ByVal public static AVRational av_buffersink_get_frame_rate(@Const AVFilterContext ctx)
@NoException public static int av_buffersink_get_w(@Const AVFilterContext ctx)
@NoException public static int av_buffersink_get_h(@Const AVFilterContext ctx)
@NoException @ByVal public static AVRational av_buffersink_get_sample_aspect_ratio(@Const AVFilterContext ctx)
@NoException public static int av_buffersink_get_channels(@Const AVFilterContext ctx)
@NoException @Cast(value="uint64_t") public static long av_buffersink_get_channel_layout(@Const AVFilterContext ctx)
@NoException public static int av_buffersink_get_sample_rate(@Const AVFilterContext ctx)
@NoException public static AVBufferRef av_buffersink_get_hw_frames_ctx(@Const AVFilterContext ctx)
@NoException public static int av_buffersink_get_frame(AVFilterContext ctx, 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(AVFilterContext ctx, 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(AVFilterContext buffer_src)
@NoException public static AVBufferSrcParameters av_buffersrc_parameters_alloc()
@NoException public static int av_buffersrc_parameters_set(AVFilterContext ctx, 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(AVFilterContext ctx, @Const 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(AVFilterContext ctx, 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(AVFilterContext buffer_src, 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_*@NoException public static int av_buffersrc_close(AVFilterContext ctx, @Cast(value="int64_t") long pts, @Cast(value="unsigned") int flags)
Copyright © 2020. All rights reserved.