Go to the source code of this file.
◆ SDR_FILTER
Value:
{ \
const int channels =
u->ch_layout.nb_channels; \
const int nb_samples =
u->nb_samples; \
\
for (int ch = start; ch < end; ch++) { \
double sum_uv = 0.; \
double sum_u = 0.; \
\
for (int n = 0; n < nb_samples; n++) { \
sum_u +=
us[n] *
us[n]; \
sum_uv += (
us[n] - vs[n]) * (
us[n] - vs[n]); \
} \
\
chs->uv += sum_uv; \
chs->u += sum_u; \
} \
\
return 0; \
}
#define u(width, name, range_min, range_max)
#define us(width, name, range_min, range_max, subs,...)
static int ff_slice_pos(int total, int jobnr, int nb_jobs)
Compute the boundary index for a slice when work of size total is split into nb_jobs slices.
This structure describes decoded (raw) audio or video data.
uint8_t ** extended_data
pointers to the data planes/channels.
static AVFormatContext * ctx
Definition at line 48 of file af_asdr.c.
◆ SISDR_FILTER
◆ PSNR_FILTER
Value:
{ \
const int channels =
u->ch_layout.nb_channels; \
const int nb_samples =
u->nb_samples; \
\
for (int ch = start; ch < end; ch++) { \
double sum_uv = 0.; \
\
for (int n = 0; n < nb_samples; n++) \
sum_uv += (
us[n] - vs[n]) * (
us[n] - vs[n]); \
\
chs->uv += sum_uv; \
} \
\
return 0; \
}
Definition at line 117 of file af_asdr.c.
◆ activate()
◆ config_output()
◆ uninit()
◆ inputs
Initial value:= {
{
.name = "input0",
},
{
.name = "input1",
},
}
Definition at line 250 of file af_asdr.c.
◆ outputs
Initial value:= {
{
.name = "default",
},
}
static int config_output(AVBitStreamFilterLink *outlink)
Definition at line 261 of file af_asdr.c.
◆ ff_af_asdr
Initial value:= {
.p.name = "asdr",
}
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
@ AV_SAMPLE_FMT_FLTP
float, planar
@ AV_SAMPLE_FMT_DBLP
double, planar
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FILTER_SAMPLEFMTS(...)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition at line 269 of file af_asdr.c.
◆ ff_af_apsnr
◆ ff_af_asisdr
Initial value:= {
.p.name = "asisdr",
}
Definition at line 299 of file af_asdr.c.