Update ffmpeg to include the ac-3 encoder.
This commit is contained in:
1 parent
e9270b2f75
commit
b6bb6e02ca
61 files changed
+1417
-347
No files matched your search
@@ -268,6 +268,8 @@ typedef struct AVFilter {
|
||||
|
||||
int priv_size; ///< size of private data to allocate for the filter
|
||||
|
||||
int flags_internal; ///< Additional flags for avfilter internal use only.
|
||||
|
||||
/**
|
||||
* Used by the filter registration system. Must not be touched by any other
|
||||
* code.
|
||||
@@ -294,6 +296,20 @@ typedef struct AVFilter {
|
||||
* used for providing binary data.
|
||||
*/
|
||||
int (*init_opaque)(AVFilterContext *ctx, void *opaque);
|
||||
|
||||
/**
|
||||
* Filter activation function.
|
||||
*
|
||||
* Called when any processing is needed from the filter, instead of any
|
||||
* filter_frame and request_frame on pads.
|
||||
*
|
||||
* The function must examine inlinks and outlinks and perform a single
|
||||
* step of processing. If there is nothing to do, the function must do
|
||||
* nothing and not return an error. If more steps are or may be
|
||||
* possible, it must use ff_filter_set_ready() to schedule another
|
||||
* activation.
|
||||
*/
|
||||
int (*activate)(AVFilterContext *ctx);
|
||||
} AVFilter;
|
||||
|
||||
/**
|
||||
@@ -368,6 +384,13 @@ struct AVFilterContext {
|
||||
* Overrides global number of threads set per filter graph.
|
||||
*/
|
||||
int nb_threads;
|
||||
|
||||
/**
|
||||
* Ready status of the filter.
|
||||
* A non-0 value means that the filter needs activating;
|
||||
* a higher value suggests a more urgent activation.
|
||||
*/
|
||||
unsigned ready;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -376,6 +399,11 @@ struct AVFilterContext {
|
||||
* the pads involved. In addition, this link also contains the parameters
|
||||
* which have been negotiated and agreed upon between the filter, such as
|
||||
* image dimensions, format, etc.
|
||||
*
|
||||
* Applications must not normally access the link structure directly.
|
||||
* Use the buffersrc and buffersink API instead.
|
||||
* In the future, access to the header may be reserved for filters
|
||||
* implementation.
|
||||
*/
|
||||
struct AVFilterLink {
|
||||
AVFilterContext *src; ///< source filter
|
||||
@@ -508,18 +536,6 @@ struct AVFilterLink {
|
||||
*/
|
||||
int max_samples;
|
||||
|
||||
/**
|
||||
* Link status.
|
||||
* If not zero, all attempts of filter_frame or request_frame
|
||||
* will fail with the corresponding code, and if necessary the reference
|
||||
* will be destroyed.
|
||||
* If request_frame returns an error, the status is set on the
|
||||
* corresponding link.
|
||||
* It can be set also be set by either the source or the destination
|
||||
* filter.
|
||||
*/
|
||||
int status;
|
||||
|
||||
/**
|
||||
* Number of channels.
|
||||
*/
|
||||
@@ -533,19 +549,12 @@ struct AVFilterLink {
|
||||
/**
|
||||
* Number of past frames sent through the link.
|
||||
*/
|
||||
int64_t frame_count;
|
||||
int64_t frame_count_in, frame_count_out;
|
||||
|
||||
/**
|
||||
* A pointer to a FFVideoFramePool struct.
|
||||
* A pointer to a FFFramePool struct.
|
||||
*/
|
||||
void *video_frame_pool;
|
||||
|
||||
/**
|
||||
* True if a frame is currently wanted on the input of this filter.
|
||||
* Set when ff_request_frame() is called by the output,
|
||||
* cleared when the request is handled or forwarded.
|
||||
*/
|
||||
int frame_wanted_in;
|
||||
void *frame_pool;
|
||||
|
||||
/**
|
||||
* True if a frame is currently wanted on the output of this filter.
|
||||
@@ -559,6 +568,51 @@ struct AVFilterLink {
|
||||
* AVHWFramesContext describing the frames.
|
||||
*/
|
||||
AVBufferRef *hw_frames_ctx;
|
||||
|
||||
#ifndef FF_INTERNAL_FIELDS
|
||||
|
||||
/**
|
||||
* Internal structure members.
|
||||
* The fields below this limit are internal for libavfilter's use
|
||||
* and must in no way be accessed by applications.
|
||||
*/
|
||||
char reserved[0xF000];
|
||||
|
||||
#else /* FF_INTERNAL_FIELDS */
|
||||
|
||||
/**
|
||||
* Queue of frames waiting to be filtered.
|
||||
*/
|
||||
FFFrameQueue fifo;
|
||||
|
||||
/**
|
||||
* If set, the source filter can not generate a frame as is.
|
||||
* The goal is to avoid repeatedly calling the request_frame() method on
|
||||
* the same link.
|
||||
*/
|
||||
int frame_blocked_in;
|
||||
|
||||
/**
|
||||
* Link input status.
|
||||
* If not zero, all attempts of filter_frame will fail with the
|
||||
* corresponding code.
|
||||
*/
|
||||
int status_in;
|
||||
|
||||
/**
|
||||
* Timestamp of the input status change.
|
||||
*/
|
||||
int64_t status_in_pts;
|
||||
|
||||
/**
|
||||
* Link output status.
|
||||
* If not zero, all attempts of request_frame will fail with the
|
||||
* corresponding code.
|
||||
*/
|
||||
int status_out;
|
||||
|
||||
#endif /* FF_INTERNAL_FIELDS */
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -789,7 +843,9 @@ typedef struct AVFilterGraph {
|
||||
unsigned nb_filters;
|
||||
|
||||
char *scale_sws_opts; ///< sws options to use for the auto-inserted scale filters
|
||||
char *resample_lavr_opts; ///< libavresample options to use for the auto-inserted resample filters
|
||||
#if FF_API_LAVR_OPTS
|
||||
attribute_deprecated char *resample_lavr_opts; ///< libavresample options to use for the auto-inserted resample filters
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Type of multithreading allowed for filters in this graph. A combination
|
||||
|
||||
@@ -101,9 +101,27 @@ AVABufferSinkParams *av_abuffersink_params_alloc(void);
|
||||
void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size);
|
||||
|
||||
/**
|
||||
* Get the frame rate of the input.
|
||||
* @defgroup lavfi_buffersink_accessors Buffer sink accessors
|
||||
* Get the properties of the stream
|
||||
* @{
|
||||
*/
|
||||
AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx);
|
||||
|
||||
enum AVMediaType av_buffersink_get_type (const AVFilterContext *ctx);
|
||||
AVRational av_buffersink_get_time_base (const AVFilterContext *ctx);
|
||||
int av_buffersink_get_format (const AVFilterContext *ctx);
|
||||
|
||||
AVRational av_buffersink_get_frame_rate (const AVFilterContext *ctx);
|
||||
int av_buffersink_get_w (const AVFilterContext *ctx);
|
||||
int av_buffersink_get_h (const AVFilterContext *ctx);
|
||||
AVRational av_buffersink_get_sample_aspect_ratio (const AVFilterContext *ctx);
|
||||
|
||||
int av_buffersink_get_channels (const AVFilterContext *ctx);
|
||||
uint64_t av_buffersink_get_channel_layout (const AVFilterContext *ctx);
|
||||
int av_buffersink_get_sample_rate (const AVFilterContext *ctx);
|
||||
|
||||
AVBufferRef * av_buffersink_get_hw_frames_ctx (const AVFilterContext *ctx);
|
||||
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* Get a frame with filtered data from sink and put it in frame.
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
* Memory buffer source API.
|
||||
*/
|
||||
|
||||
#include "libavcodec/avcodec.h"
|
||||
#include "avfilter.h"
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "libavutil/version.h"
|
||||
|
||||
#define LIBAVFILTER_VERSION_MAJOR 6
|
||||
#define LIBAVFILTER_VERSION_MINOR 61
|
||||
#define LIBAVFILTER_VERSION_MINOR 88
|
||||
#define LIBAVFILTER_VERSION_MICRO 100
|
||||
|
||||
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
|
||||
@@ -67,5 +67,8 @@
|
||||
#ifndef FF_API_NOCONST_GET_NAME
|
||||
#define FF_API_NOCONST_GET_NAME (LIBAVFILTER_VERSION_MAJOR < 7)
|
||||
#endif
|
||||
#ifndef FF_API_LAVR_OPTS
|
||||
#define FF_API_LAVR_OPTS (LIBAVFILTER_VERSION_MAJOR < 7)
|
||||
#endif
|
||||
|
||||
#endif /* AVFILTER_VERSION_H */
|
||||
Reference in new issue
Block a user