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.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.AVFilterBuffer
A reference-counted buffer data type used by the filter system.
|
static class |
avfilter.AVFilterBufferRef
A reference to an AVFilterBuffer.
|
static class |
avfilter.AVFilterBufferRefAudioProps
Audio specific properties in a reference to an AVFilterBuffer.
|
static class |
avfilter.AVFilterBufferRefVideoProps
Video specific properties in a reference to an AVFilterBuffer.
|
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
A filter pad used for either input or output.
|
| 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_NO_COPY
enum
|
static int |
AV_BUFFERSRC_FLAG_PUSH
enum
|
static int |
AV_PERM_ALIGN
the buffer must be aligned
|
static int |
AV_PERM_NEG_LINESIZES
the buffer requested can have negative linesizes
|
static int |
AV_PERM_PRESERVE
nobody else can overwrite the buffer
|
static int |
AV_PERM_READ
can read from the buffer
|
static int |
AV_PERM_REUSE
can output the buffer multiple times, with the same contents each time
|
static int |
AV_PERM_REUSE2
can output the buffer multiple times, modified each time
|
static int |
AV_PERM_WRITE
can write to the buffer
|
static int |
AVFILTER_ALIGN |
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_buffer_ref(avfilter.AVFilterContext buffer_sink,
avfilter.AVFilterBufferRef bufref,
int flags)
Deprecated.
|
static int |
av_buffersink_get_buffer_ref(avfilter.AVFilterContext buffer_sink,
PointerPointer bufref,
int flags)
Deprecated.
|
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 int |
av_buffersink_poll_frame(avfilter.AVFilterContext ctx)
Deprecated.
|
static int |
av_buffersink_read_samples(avfilter.AVFilterContext ctx,
avfilter.AVFilterBufferRef buf,
int nb_samples)
Deprecated.
|
static int |
av_buffersink_read_samples(avfilter.AVFilterContext ctx,
PointerPointer buf,
int nb_samples)
Deprecated.
|
static int |
av_buffersink_read(avfilter.AVFilterContext ctx,
avfilter.AVFilterBufferRef buf)
Deprecated.
|
static int |
av_buffersink_read(avfilter.AVFilterContext ctx,
PointerPointer buf)
Deprecated.
|
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_add_ref(avfilter.AVFilterContext buffer_src,
avfilter.AVFilterBufferRef picref,
int flags)
Add buffer data in picref to buffer_src.
|
static int |
av_buffersrc_buffer(avfilter.AVFilterContext ctx,
avfilter.AVFilterBufferRef buf)
Deprecated.
use av_buffersrc_write_frame() or av_buffersrc_add_frame()
|
static int |
av_buffersrc_get_nb_failed_requests(avfilter.AVFilterContext buffer_src)
Get the number of failed requests.
|
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 int |
avfilter_copy_buf_props(avutil.AVFrame dst,
avfilter.AVFilterBufferRef src)
Deprecated.
|
static void |
avfilter_copy_buffer_ref_props(avfilter.AVFilterBufferRef dst,
avfilter.AVFilterBufferRef src)
Deprecated.
|
static int |
avfilter_copy_frame_props(avfilter.AVFilterBufferRef dst,
avutil.AVFrame src)
Deprecated.
|
static void |
avfilter_free(avfilter.AVFilterContext filter)
Free a filter context.
|
static avfilter.AVFilterBufferRef |
avfilter_get_audio_buffer_ref_from_arrays_channels(byte[] data,
int linesize,
int perms,
int nb_samples,
int sample_fmt,
int channels,
long channel_layout)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_audio_buffer_ref_from_arrays_channels(ByteBuffer data,
int linesize,
int perms,
int nb_samples,
int sample_fmt,
int channels,
long channel_layout)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_audio_buffer_ref_from_arrays_channels(BytePointer data,
int linesize,
int perms,
int nb_samples,
int sample_fmt,
int channels,
long channel_layout)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_audio_buffer_ref_from_arrays_channels(PointerPointer data,
int linesize,
int perms,
int nb_samples,
int sample_fmt,
int channels,
long channel_layout)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_audio_buffer_ref_from_arrays(byte[] data,
int linesize,
int perms,
int nb_samples,
int sample_fmt,
long channel_layout)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_audio_buffer_ref_from_arrays(ByteBuffer data,
int linesize,
int perms,
int nb_samples,
int sample_fmt,
long channel_layout)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_audio_buffer_ref_from_arrays(BytePointer data,
int linesize,
int perms,
int nb_samples,
int sample_fmt,
long channel_layout)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_audio_buffer_ref_from_arrays(PointerPointer data,
int linesize,
int perms,
int nb_samples,
int sample_fmt,
long channel_layout)
Deprecated.
|
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 avfilter.AVFilterBufferRef |
avfilter_get_video_buffer_ref_from_arrays(byte[] data,
int[] linesize,
int perms,
int w,
int h,
int format)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_video_buffer_ref_from_arrays(ByteBuffer data,
IntBuffer linesize,
int perms,
int w,
int h,
int format)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_video_buffer_ref_from_arrays(BytePointer data,
IntPointer linesize,
int perms,
int w,
int h,
int format)
Deprecated.
|
static avfilter.AVFilterBufferRef |
avfilter_get_video_buffer_ref_from_arrays(PointerPointer data,
IntPointer linesize,
int perms,
int w,
int h,
int format)
Deprecated.
|
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)
Set the closed field of a link.
|
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 avfilter.AVFilterBufferRef |
avfilter_ref_buffer(avfilter.AVFilterBufferRef ref,
int pmask)
Deprecated.
|
static int |
avfilter_ref_get_channels(avfilter.AVFilterBufferRef ref)
Deprecated.
|
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 void |
avfilter_unref_buffer(avfilter.AVFilterBufferRef ref)
Deprecated.
|
static void |
avfilter_unref_bufferp(avfilter.AVFilterBufferRef ref)
Deprecated.
|
static void |
avfilter_unref_bufferp(PointerPointer ref)
Deprecated.
|
static int |
avfilter_version()
Return the LIBAVFILTER_VERSION_INT constant.
|
public static final int AV_PERM_READ
public static final int AV_PERM_WRITE
public static final int AV_PERM_PRESERVE
public static final int AV_PERM_REUSE
public static final int AV_PERM_REUSE2
public static final int AV_PERM_NEG_LINESIZES
public static final int AV_PERM_ALIGN
public static final int AVFILTER_ALIGN
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_NO_COPY
public static final int AV_BUFFERSRC_FLAG_PUSH
public static final int AV_BUFFERSRC_FLAG_KEEP_REF
@Cast(value="unsigned") public static int avfilter_version()
@Cast(value="const char*") public static BytePointer avfilter_configuration()
@Cast(value="const char*") public static BytePointer avfilter_license()
@Deprecated public static void avfilter_copy_buffer_ref_props(avfilter.AVFilterBufferRef dst, @Const avfilter.AVFilterBufferRef src)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_ref_buffer(avfilter.AVFilterBufferRef ref, int pmask)
ref - an existing reference to the bufferpmask - a bitmask containing the allowable permissions in the new
reference@Deprecated public static void avfilter_unref_buffer(avfilter.AVFilterBufferRef ref)
ref - reference to the buffer, may be NULL@Deprecated public static void avfilter_unref_bufferp(@Cast(value="AVFilterBufferRef**") PointerPointer ref)
ref - pointer to the buffer reference@Deprecated public static void avfilter_unref_bufferp(@ByPtrPtr avfilter.AVFilterBufferRef ref)
@Deprecated public static int avfilter_ref_get_channels(avfilter.AVFilterBufferRef ref)
public static int avfilter_pad_count(@Const avfilter.AVFilterPad pads)
@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@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 validpublic 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 filterpublic static void avfilter_link_free(@Cast(value="AVFilterLink**") PointerPointer link)
public static void avfilter_link_free(@ByPtrPtr avfilter.AVFilterLink link)
public static int avfilter_link_get_channels(avfilter.AVFilterLink link)
public static void avfilter_link_set_closed(avfilter.AVFilterLink link, int closed)
public static int avfilter_config_links(avfilter.AVFilterContext filter)
filter - the filter to negotiate the properties for its inputs@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_video_buffer_ref_from_arrays(@Cast(value="uint8_t*const*") PointerPointer data, @Const IntPointer linesize, int perms, int w, int h, @Cast(value="AVPixelFormat") int format)
data - pointers to the planes of the image to referencelinesize - linesizes for the planes of the image to referenceperms - the required access permissionsw - the width of the image specified by the data and linesize arraysh - the height of the image specified by the data and linesize arraysformat - the pixel format of the image specified by the data and linesize arrays@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_video_buffer_ref_from_arrays(@Cast(value="uint8_t*const*") @ByPtrPtr BytePointer data, @Const IntPointer linesize, int perms, int w, int h, @Cast(value="AVPixelFormat") int format)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_video_buffer_ref_from_arrays(@Cast(value="uint8_t*const*") @ByPtrPtr ByteBuffer data, @Const IntBuffer linesize, int perms, int w, int h, @Cast(value="AVPixelFormat") int format)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_video_buffer_ref_from_arrays(@Cast(value="uint8_t*const*") @ByPtrPtr byte[] data, @Const int[] linesize, int perms, int w, int h, @Cast(value="AVPixelFormat") int format)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_audio_buffer_ref_from_arrays(@Cast(value="uint8_t**") PointerPointer data, int linesize, int perms, int nb_samples, @Cast(value="AVSampleFormat") int sample_fmt, @Cast(value="uint64_t") long channel_layout)
data - pointers to the samples plane bufferslinesize - linesize for the samples plane buffersperms - the required access permissionsnb_samples - number of samples per channelsample_fmt - the format of each sample in the buffer to allocatechannel_layout - the channel layout of the buffer@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_audio_buffer_ref_from_arrays(@Cast(value="uint8_t**") @ByPtrPtr BytePointer data, int linesize, int perms, int nb_samples, @Cast(value="AVSampleFormat") int sample_fmt, @Cast(value="uint64_t") long channel_layout)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_audio_buffer_ref_from_arrays(@Cast(value="uint8_t**") @ByPtrPtr ByteBuffer data, int linesize, int perms, int nb_samples, @Cast(value="AVSampleFormat") int sample_fmt, @Cast(value="uint64_t") long channel_layout)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_audio_buffer_ref_from_arrays(@Cast(value="uint8_t**") @ByPtrPtr byte[] data, int linesize, int perms, int nb_samples, @Cast(value="AVSampleFormat") int sample_fmt, @Cast(value="uint64_t") long channel_layout)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_audio_buffer_ref_from_arrays_channels(@Cast(value="uint8_t**") PointerPointer data, int linesize, int perms, int nb_samples, @Cast(value="AVSampleFormat") int sample_fmt, int channels, @Cast(value="uint64_t") long channel_layout)
data - pointers to the samples plane bufferslinesize - linesize for the samples plane buffersperms - the required access permissionsnb_samples - number of samples per channelsample_fmt - the format of each sample in the buffer to allocatechannels - the number of channels of the bufferchannel_layout - the channel layout of the buffer,
must be either 0 or consistent with channels@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_audio_buffer_ref_from_arrays_channels(@Cast(value="uint8_t**") @ByPtrPtr BytePointer data, int linesize, int perms, int nb_samples, @Cast(value="AVSampleFormat") int sample_fmt, int channels, @Cast(value="uint64_t") long channel_layout)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_audio_buffer_ref_from_arrays_channels(@Cast(value="uint8_t**") @ByPtrPtr ByteBuffer data, int linesize, int perms, int nb_samples, @Cast(value="AVSampleFormat") int sample_fmt, int channels, @Cast(value="uint64_t") long channel_layout)
@Deprecated public static avfilter.AVFilterBufferRef avfilter_get_audio_buffer_ref_from_arrays_channels(@Cast(value="uint8_t**") @ByPtrPtr byte[] data, int linesize, int perms, int nb_samples, @Cast(value="AVSampleFormat") int sample_fmt, int channels, @Cast(value="uint64_t") long channel_layout)
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)
public static int avfilter_process_command(avfilter.AVFilterContext filter, String cmd, String arg, @Cast(value="char*") ByteBuffer res, int res_len, int flags)
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)
public static int avfilter_process_command(avfilter.AVFilterContext filter, String cmd, String arg, @Cast(value="char*") BytePointer res, int res_len, int flags)
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)
public static int avfilter_process_command(avfilter.AVFilterContext filter, String cmd, String arg, @Cast(value="char*") byte[] res, int res_len, int flags)
public static void avfilter_register_all()
@Deprecated public static void avfilter_uninit()
public static int avfilter_register(avfilter.AVFilter filter)
filter - the filter to register@Const public static avfilter.AVFilter avfilter_get_by_name(@Cast(value="const char*") BytePointer name)
name - the filter name to find@Const public static avfilter.AVFilter avfilter_get_by_name(String name)
@Const public static avfilter.AVFilter avfilter_next(@Const avfilter.AVFilter prev)
@Cast(value="AVFilter**") @Deprecated public static PointerPointer av_filter_next(@Cast(value="AVFilter**") PointerPointer filter)
@Deprecated @ByPtrPtr public static avfilter.AVFilter av_filter_next(@ByPtrPtr avfilter.AVFilter filter)
@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.@Deprecated public static int avfilter_open(@ByPtrPtr avfilter.AVFilterContext filter_ctx, avfilter.AVFilter filter, @Cast(value="const char*") BytePointer inst_name)
@Deprecated public static int avfilter_open(@ByPtrPtr avfilter.AVFilterContext filter_ctx, avfilter.AVFilter filter, String inst_name)
@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.@Deprecated public static int avfilter_init_filter(avfilter.AVFilterContext filter, String args, Pointer opaque)
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.public static int avfilter_init_str(avfilter.AVFilterContext ctx, String args)
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.public static int avfilter_init_dict(avfilter.AVFilterContext ctx, @ByPtrPtr avutil.AVDictionary options)
public static void avfilter_free(avfilter.AVFilterContext filter)
filter - the filter to freepublic 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@Deprecated public static int avfilter_copy_frame_props(avfilter.AVFilterBufferRef dst, @Const avutil.AVFrame src)
@Deprecated public static int avfilter_copy_buf_props(avutil.AVFrame dst, @Const avfilter.AVFilterBufferRef src)
@Const public static avutil.AVClass avfilter_get_class()
av_opt_find().public static avfilter.AVFilterGraph avfilter_graph_alloc()
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.public static avfilter.AVFilterContext avfilter_graph_alloc_filter(avfilter.AVFilterGraph graph, @Const avfilter.AVFilter filter, String name)
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).public static avfilter.AVFilterContext avfilter_graph_get_filter(avfilter.AVFilterGraph graph, String name)
@Deprecated public static int avfilter_graph_add_filter(avfilter.AVFilterGraph graphctx, avfilter.AVFilterContext filter)
graphctx - the filter graphfilter - the filter to be addedpublic 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 graphpublic 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)
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)
public static void avfilter_graph_set_auto_convert(avfilter.AVFilterGraph graph, @Cast(value="unsigned") int flags)
flags - any of the AVFILTER_AUTO_CONVERT_* constantspublic static int avfilter_graph_config(avfilter.AVFilterGraph graphctx, Pointer log_ctx)
graphctx - the filter graphlog_ctx - context used for loggingpublic static void avfilter_graph_free(@Cast(value="AVFilterGraph**") PointerPointer graph)
public static void avfilter_graph_free(@ByPtrPtr avfilter.AVFilterGraph graph)
public static avfilter.AVFilterInOut avfilter_inout_alloc()
public static void avfilter_inout_free(@Cast(value="AVFilterInOut**") PointerPointer inout)
public static void avfilter_inout_free(@ByPtrPtr avfilter.AVFilterInOut inout)
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 graphpublic static int avfilter_graph_parse(avfilter.AVFilterGraph graph, String filters, avfilter.AVFilterInOut inputs, avfilter.AVFilterInOut outputs, Pointer log_ctx)
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().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)
public static int avfilter_graph_parse_ptr(avfilter.AVFilterGraph graph, String filters, @ByPtrPtr avfilter.AVFilterInOut inputs, @ByPtrPtr avfilter.AVFilterInOut outputs, Pointer log_ctx)
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)
public static int avfilter_graph_parse2(avfilter.AVFilterGraph graph, @Cast(value="const char*") BytePointer filters, @ByPtrPtr avfilter.AVFilterInOut inputs, @ByPtrPtr avfilter.AVFilterInOut outputs)
public static int avfilter_graph_parse2(avfilter.AVFilterGraph graph, String filters, @ByPtrPtr avfilter.AVFilterInOut inputs, @ByPtrPtr avfilter.AVFilterInOut outputs)
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.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)
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)
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)
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)
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)
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 filterpublic static int avfilter_graph_queue_command(avfilter.AVFilterGraph graph, String target, String cmd, String arg, int flags, double ts)
@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@Cast(value="char*") public static ByteBuffer avfilter_graph_dump(avfilter.AVFilterGraph graph, String options)
public static int avfilter_graph_request_oldest(avfilter.AVFilterGraph graph)
@Deprecated public static int av_buffersink_get_buffer_ref(avfilter.AVFilterContext buffer_sink, @Cast(value="AVFilterBufferRef**") PointerPointer bufref, int flags)
buffer_sink - pointer to a buffersink or abuffersink contextflags - a combination of AV_BUFFERSINK_FLAG_* flags@Deprecated public static int av_buffersink_get_buffer_ref(avfilter.AVFilterContext buffer_sink, @ByPtrPtr avfilter.AVFilterBufferRef bufref, int flags)
@Deprecated public static int av_buffersink_poll_frame(avfilter.AVFilterContext ctx)
@Deprecated public static int av_buffersink_read(avfilter.AVFilterContext ctx, @Cast(value="AVFilterBufferRef**") PointerPointer buf)
ctx - pointer to a context of a buffersink or abuffersink AVFilter.buf - pointer to the buffer will be written here if buf is non-NULL. buf
must be freed by the caller using avfilter_unref_buffer().
Buf may also be NULL to query whether a buffer is ready to be
output.@Deprecated public static int av_buffersink_read(avfilter.AVFilterContext ctx, @ByPtrPtr avfilter.AVFilterBufferRef buf)
@Deprecated public static int av_buffersink_read_samples(avfilter.AVFilterContext ctx, @Cast(value="AVFilterBufferRef**") PointerPointer buf, int nb_samples)
ctx - pointer to a context of the abuffersink AVFilter.buf - pointer to the buffer will be written here if buf is non-NULL. buf
must be freed by the caller using avfilter_unref_buffer(). buf
will contain exactly nb_samples audio samples, except at the end
of stream, when it can contain less than nb_samples.
Buf may also be NULL to query whether a buffer is ready to be
output.@Deprecated public static int av_buffersink_read_samples(avfilter.AVFilterContext ctx, @ByPtrPtr avfilter.AVFilterBufferRef buf, int nb_samples)
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_* flagspublic static avfilter.AVBufferSinkParams av_buffersink_params_alloc()
public static avfilter.AVABufferSinkParams av_abuffersink_params_alloc()
public static void av_buffersink_set_frame_size(avfilter.AVFilterContext ctx, @Cast(value="unsigned") int frame_size)
@ByVal public static avutil.AVRational av_buffersink_get_frame_rate(avfilter.AVFilterContext ctx)
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()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.public static int av_buffersrc_add_ref(avfilter.AVFilterContext buffer_src, avfilter.AVFilterBufferRef picref, int flags)
buffer_src - pointer to a buffer source contextpicref - a buffer reference, or NULL to mark EOFflags - a combination of AV_BUFFERSRC_FLAG_*@Cast(value="unsigned") public static int av_buffersrc_get_nb_failed_requests(avfilter.AVFilterContext buffer_src)
@Deprecated public static int av_buffersrc_buffer(avfilter.AVFilterContext ctx, avfilter.AVFilterBufferRef buf)
ctx - an instance of the buffersrc filterbuf - buffer containing frame data to be passed down the filtergraph.
This function will take ownership of buf, the user must not free it.
A NULL buf signals EOF -- i.e. no more frames will be sent to this filter.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.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.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 © 2015. All Rights Reserved.