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() |
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 @Deprecated 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 @Const public static avfilter.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.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.AVFilter filter)
filter - the filter to register@NoException @Const @Deprecated public static avfilter.AVFilter avfilter_next(@Const avfilter.AVFilter prev)
@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 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 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 @Cast(value="AVMediaType") public static int av_buffersink_get_type(@Const avfilter.AVFilterContext ctx)
@NoException @ByVal public static avutil.AVRational av_buffersink_get_time_base(@Const avfilter.AVFilterContext ctx)
@NoException public static int av_buffersink_get_format(@Const avfilter.AVFilterContext ctx)
@NoException @ByVal public static avutil.AVRational av_buffersink_get_frame_rate(@Const avfilter.AVFilterContext ctx)
@NoException public static int av_buffersink_get_w(@Const avfilter.AVFilterContext ctx)
@NoException public static int av_buffersink_get_h(@Const avfilter.AVFilterContext ctx)
@NoException @ByVal public static avutil.AVRational av_buffersink_get_sample_aspect_ratio(@Const avfilter.AVFilterContext ctx)
@NoException public static int av_buffersink_get_channels(@Const avfilter.AVFilterContext ctx)
@NoException @Cast(value="uint64_t") public static long av_buffersink_get_channel_layout(@Const avfilter.AVFilterContext ctx)
@NoException public static int av_buffersink_get_sample_rate(@Const avfilter.AVFilterContext ctx)
@NoException public static avutil.AVBufferRef av_buffersink_get_hw_frames_ctx(@Const 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_*@NoException public static int av_buffersrc_close(avfilter.AVFilterContext ctx, @Cast(value="int64_t") long pts, @Cast(value="unsigned") int flags)
Copyright © 2019. All rights reserved.