Go to the source code of this file.
|
#define | CHECK_VIDEO_PARAM_CHANGE(s, c, width, height, format, csp, range, pts) |
|
#define | CHECK_AUDIO_PARAM_CHANGE(s, c, srate, layout, format, pts) |
|
#define | OFFSET(x) offsetof(BufferSourceContext, x) |
|
#define | A AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM |
|
#define | V AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
|
memory buffer source filter
Definition in file buffersrc.c.
◆ CHECK_VIDEO_PARAM_CHANGE
Value:
c->color_space != csp ||
c->color_range !=
range;\
c->prev_color_space != csp ||
c->prev_color_range !=
range;\
av_log(
s, loglevel,
"Changing video frame properties on the fly is not supported by all filters.\n");\
av_log(
s, loglevel,
"filter context - w: %d h: %d fmt: %d csp: %s range: %s, incoming frame - w: %d h: %d fmt: %d csp: %s range: %s pts_time: %s\n",\
}\
c->prev_color_space = csp;\
c->prev_color_range =
range;\
}
Definition at line 71 of file buffersrc.c.
◆ CHECK_AUDIO_PARAM_CHANGE
Value: if (
c->sample_fmt !=
format ||
c->sample_rate != srate ||\
av_log(
s,
AV_LOG_INFO,
"filter context - fmt: %s r: %d layout: %"PRIX64
" ch: %d, incoming frame - fmt: %s r: %d layout: %"PRIX64
" ch: %d pts_time: %s\n",\
av_log(
s,
AV_LOG_ERROR,
"Changing audio frame properties on the fly is not supported.\n");\
}
Definition at line 94 of file buffersrc.c.
◆ OFFSET
◆ push_frame()
◆ init_video()
◆ AVFILTER_DEFINE_CLASS() [1/2]
AVFILTER_DEFINE_CLASS |
( |
buffer |
| ) |
|
◆ AVFILTER_DEFINE_CLASS() [2/2]
AVFILTER_DEFINE_CLASS |
( |
abuffer |
| ) |
|
◆ init_audio()
◆ uninit()
◆ query_formats()
◆ config_props()
◆ activate()
◆ buffer_options
◆ abuffer_options
◆ avfilter_vsrc_buffer_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 554 of file buffersrc.c.
◆ ff_vsrc_buffer
Initial value:= {
.name = "buffer",
.description =
NULL_IF_CONFIG_SMALL(
"Buffer video frames, and make them accessible to the filterchain."),
.priv_class = &buffer_class,
}
Definition at line 562 of file buffersrc.c.
◆ avfilter_asrc_abuffer_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 576 of file buffersrc.c.
◆ ff_asrc_abuffer
Initial value:= {
.name = "abuffer",
.description =
NULL_IF_CONFIG_SMALL(
"Buffer audio frames, and make them accessible to the filterchain."),
.priv_class = &abuffer_class,
}
Definition at line 584 of file buffersrc.c.
#define AV_LOG_WARNING
Something somehow does not look correct.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
@ AV_OPT_TYPE_SAMPLE_FMT
Underlying C type is enum AVSampleFormat.
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
#define AV_LOG_VERBOSE
Detailed information.
@ AV_OPT_TYPE_RATIONAL
Underlying C type is AVRational.
static av_cold void uninit(AVFilterContext *ctx)
const char * av_color_space_name(enum AVColorSpace space)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample format(the sample packing is implied by the sample format) and sample rate. The lists are not just lists
static const AVFilterPad avfilter_vsrc_buffer_outputs[]
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
const char * av_get_sample_fmt_name(enum AVSampleFormat sample_fmt)
Return the name of sample_fmt, or NULL if sample_fmt is not recognized.
#define FILTER_OUTPUTS(array)
const char * av_color_range_name(enum AVColorRange range)
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
int(* init)(AVBSFContext *ctx)
#define av_ts2timestr(ts, tb)
Convenience macro, the return value should be used only directly in function arguments but never stan...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int config_props(AVFilterLink *link)
static av_cold int init_audio(AVFilterContext *ctx)
@ AV_CHANNEL_ORDER_NATIVE
The native channel order, i.e.
int av_channel_layout_compare(const AVChannelLayout *chl, const AVChannelLayout *chl1)
Check whether two channel layouts are semantically the same, i.e.
#define AV_LOG_INFO
Standard information.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel layout
#define FILTER_QUERY_FUNC2(func)
static av_cold int init_video(AVFilterContext *ctx)
static int activate(AVFilterContext *ctx)
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
static const AVFilterPad avfilter_asrc_abuffer_outputs[]