Go to the source code of this file.
◆ OFFSET
◆ FLAGS
◆ BITCOUNTER
#define BITCOUNTER |
( |
|
type, |
|
|
|
depth, |
|
|
|
one |
|
) |
| |
Value: memset(counter, 0,
sizeof(
s->counter)); \
for (
int i = 0;
i < nb_samples;
i++) { \
for (int j = 0; j < depth && x; j++) \
counter[j] += !!(x & (one << j)); \
}
Definition at line 151 of file avf_abitscope.c.
◆ BARS
#define BARS |
( |
|
type, |
|
|
|
depth, |
|
|
|
one |
|
) |
| |
Value: for (
int ch = 0; ch <
inlink->ch_layout.nb_channels; ch++) { \
const int nb_samples = insamples->nb_samples; \
const
type *in = (
const type *)insamples->extended_data[ch]; \
const int w = outpicref->width /
inlink->ch_layout.nb_channels; \
const int h = outpicref->height / depth; \
uint64_t *counter =
s->counter;
\
for (
int b = 0;
b < depth;
b++) { \
for (
int j = 1; j <
h - 1; j++) { \
uint8_t *dst = outpicref->data[0] + (
b *
h + j) * outpicref->linesize[0] +
w * ch * 4; \
const int ww = (counter[depth -
b - 1] / (
float)nb_samples) * (
w - 1);
\
for (
int i = 0;
i < ww;
i++) { \
AV_WN32(&dst[
i * 4],
color); \
} \
} \
} \
}
Definition at line 159 of file avf_abitscope.c.
◆ DO_TRACE
#define DO_TRACE |
( |
|
type, |
|
|
|
depth, |
|
|
|
one |
|
) |
| |
Value: for (
int ch = 0; ch <
inlink->ch_layout.nb_channels; ch++) { \
const int nb_samples = insamples->nb_samples; \
const
int w = outpicref->width /
inlink->ch_layout.nb_channels; \
const
type *in = (
const type *)insamples->extended_data[ch]; \
uint64_t *counter =
s->counter; \
const int wb =
w / depth; \
int wv; \
\
for (
int b = 0;
b < depth;
b++) { \
uint8_t colors[4]; \
uint8_t *dst = outpicref->data[0] +
w * ch * 4 + wb *
b * 4 + \
s->current_vpos * outpicref->linesize[0]; \
wv = (counter[depth -
b - 1] * 255) / nb_samples; \
colors[0] = (wv *
s->fg[ch * 4 + 0] + 127) / 255; \
colors[1] = (wv *
s->fg[ch * 4 + 1] + 127) / 255; \
colors[2] = (wv *
s->fg[ch * 4 + 2] + 127) / 255; \
colors[3] = (wv *
s->fg[ch * 4 + 3] + 127) / 255; \
for (
int x = 0; x < wb; x++) \
} \
}
Definition at line 182 of file avf_abitscope.c.
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
abitscope |
| ) |
|
◆ query_formats()
◆ config_input()
◆ config_output()
◆ filter_frame()
◆ activate()
◆ uninit()
◆ abitscope_options
◆ inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 302 of file avf_abitscope.c.
◆ outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 310 of file avf_abitscope.c.
◆ ff_avf_abitscope
Initial value:= {
.name = "abitscope",
.priv_class = &abitscope_class,
}
Definition at line 318 of file avf_abitscope.c.