mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
lavfi: Drop deprecated public AVFilterPad struct
Deprecated in 06/2012.
This commit is contained in:
parent
11b2eed43e
commit
86e5056575
@ -228,145 +228,6 @@ attribute_deprecated
|
|||||||
void avfilter_unref_bufferp(AVFilterBufferRef **ref);
|
void avfilter_unref_bufferp(AVFilterBufferRef **ref);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FF_API_AVFILTERPAD_PUBLIC
|
|
||||||
/**
|
|
||||||
* A filter pad used for either input or output.
|
|
||||||
*
|
|
||||||
* @warning this struct will be removed from public API.
|
|
||||||
* users should call avfilter_pad_get_name() and avfilter_pad_get_type()
|
|
||||||
* to access the name and type fields; there should be no need to access
|
|
||||||
* any other fields from outside of libavfilter.
|
|
||||||
*/
|
|
||||||
struct AVFilterPad {
|
|
||||||
/**
|
|
||||||
* Pad name. The name is unique among inputs and among outputs, but an
|
|
||||||
* input may have the same name as an output. This may be NULL if this
|
|
||||||
* pad has no need to ever be referenced by name.
|
|
||||||
*/
|
|
||||||
const char *name;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AVFilterPad type.
|
|
||||||
*/
|
|
||||||
enum AVMediaType type;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Minimum required permissions on incoming buffers. Any buffer with
|
|
||||||
* insufficient permissions will be automatically copied by the filter
|
|
||||||
* system to a new buffer which provides the needed access permissions.
|
|
||||||
*
|
|
||||||
* Input pads only.
|
|
||||||
*/
|
|
||||||
attribute_deprecated int min_perms;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Permissions which are not accepted on incoming buffers. Any buffer
|
|
||||||
* which has any of these permissions set will be automatically copied
|
|
||||||
* by the filter system to a new buffer which does not have those
|
|
||||||
* permissions. This can be used to easily disallow buffers with
|
|
||||||
* AV_PERM_REUSE.
|
|
||||||
*
|
|
||||||
* Input pads only.
|
|
||||||
*/
|
|
||||||
attribute_deprecated int rej_perms;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated unused
|
|
||||||
*/
|
|
||||||
int (*start_frame)(AVFilterLink *link, AVFilterBufferRef *picref);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Callback function to get a video buffer. If NULL, the filter system will
|
|
||||||
* use avfilter_default_get_video_buffer().
|
|
||||||
*
|
|
||||||
* Input video pads only.
|
|
||||||
*/
|
|
||||||
AVFrame *(*get_video_buffer)(AVFilterLink *link, int w, int h);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Callback function to get an audio buffer. If NULL, the filter system will
|
|
||||||
* use avfilter_default_get_audio_buffer().
|
|
||||||
*
|
|
||||||
* Input audio pads only.
|
|
||||||
*/
|
|
||||||
AVFrame *(*get_audio_buffer)(AVFilterLink *link, int nb_samples);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated unused
|
|
||||||
*/
|
|
||||||
int (*end_frame)(AVFilterLink *link);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated unused
|
|
||||||
*/
|
|
||||||
int (*draw_slice)(AVFilterLink *link, int y, int height, int slice_dir);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Filtering callback. This is where a filter receives a frame with
|
|
||||||
* audio/video data and should do its processing.
|
|
||||||
*
|
|
||||||
* Input pads only.
|
|
||||||
*
|
|
||||||
* @return >= 0 on success, a negative AVERROR on error. This function
|
|
||||||
* must ensure that samplesref is properly unreferenced on error if it
|
|
||||||
* hasn't been passed on to another filter.
|
|
||||||
*/
|
|
||||||
int (*filter_frame)(AVFilterLink *link, AVFrame *frame);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Frame poll callback. This returns the number of immediately available
|
|
||||||
* samples. It should return a positive value if the next request_frame()
|
|
||||||
* is guaranteed to return one frame (with no delay).
|
|
||||||
*
|
|
||||||
* Defaults to just calling the source poll_frame() method.
|
|
||||||
*
|
|
||||||
* Output pads only.
|
|
||||||
*/
|
|
||||||
int (*poll_frame)(AVFilterLink *link);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Frame request callback. A call to this should result in at least one
|
|
||||||
* frame being output over the given link. This should return zero on
|
|
||||||
* success, and another value on error.
|
|
||||||
*
|
|
||||||
* Output pads only.
|
|
||||||
*/
|
|
||||||
int (*request_frame)(AVFilterLink *link);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Link configuration callback.
|
|
||||||
*
|
|
||||||
* For output pads, this should set the link properties such as
|
|
||||||
* width/height. This should NOT set the format property - that is
|
|
||||||
* negotiated between filters by the filter system using the
|
|
||||||
* query_formats() callback before this function is called.
|
|
||||||
*
|
|
||||||
* For input pads, this should check the properties of the link, and update
|
|
||||||
* the filter's internal state as necessary.
|
|
||||||
*
|
|
||||||
* For both input and output filters, this should return zero on success,
|
|
||||||
* and another value on error.
|
|
||||||
*/
|
|
||||||
int (*config_props)(AVFilterLink *link);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The filter expects a fifo to be inserted on its input link,
|
|
||||||
* typically because it has a delay.
|
|
||||||
*
|
|
||||||
* input pads only.
|
|
||||||
*/
|
|
||||||
int needs_fifo;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The filter expects writable frames from its input link,
|
|
||||||
* duplicating data buffers if needed.
|
|
||||||
*
|
|
||||||
* input pads only.
|
|
||||||
*/
|
|
||||||
int needs_writable;
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the number of elements in a NULL-terminated array of AVFilterPads (e.g.
|
* Get the number of elements in a NULL-terminated array of AVFilterPads (e.g.
|
||||||
* AVFilter.inputs/outputs).
|
* AVFilter.inputs/outputs).
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
#if !FF_API_AVFILTERPAD_PUBLIC
|
|
||||||
/**
|
/**
|
||||||
* A filter pad used for either input or output.
|
* A filter pad used for either input or output.
|
||||||
*/
|
*/
|
||||||
@ -126,7 +125,6 @@ struct AVFilterPad {
|
|||||||
*/
|
*/
|
||||||
int needs_writable;
|
int needs_writable;
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
struct AVFilterGraphInternal {
|
struct AVFilterGraphInternal {
|
||||||
void *thread;
|
void *thread;
|
||||||
|
@ -49,9 +49,6 @@
|
|||||||
* the public API and may change, break or disappear at any time.
|
* the public API and may change, break or disappear at any time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FF_API_AVFILTERPAD_PUBLIC
|
|
||||||
#define FF_API_AVFILTERPAD_PUBLIC (LIBAVFILTER_VERSION_MAJOR < 6)
|
|
||||||
#endif
|
|
||||||
#ifndef FF_API_FOO_COUNT
|
#ifndef FF_API_FOO_COUNT
|
||||||
#define FF_API_FOO_COUNT (LIBAVFILTER_VERSION_MAJOR < 6)
|
#define FF_API_FOO_COUNT (LIBAVFILTER_VERSION_MAJOR < 6)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user