Go to the source code of this file.
◆ OFFSET
◆ FLAGS
◆ BARS
      
        
          | #define BARS | ( |  | type, | 
        
          |  |  |  | depth, | 
        
          |  |  |  | one | 
        
          |  | ) |  |  | 
      
 
Value:    for (
int ch = 0; ch < 
inlink->ch_layout.nb_channels; ch++) {            \
 
        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;                            \
 
                                                                            \
        memset(
s->counter, 0, 
sizeof(
s->counter));                          \
        for (
int i = 0; 
i < insamples->nb_samples; 
i++) {                   \
            for (int j = 0; j < depth; j++) {                               \
                if (in[
i] & (one << j))                                     \
                    s->counter[j]++;                                        \
            }                                                               \
        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 = (
s->counter[depth - 
b - 1] / (
float)insamples->nb_samples) * (
w - 1); 
\ 
                for (
int i = 0; 
i < ww; 
i++) {                              \
 
                    AV_WN32(&dst[
i * 4], 
color);                            \
                }                                                           \
            }                                                               \
        }                                                                   \
    }
Definition at line 150 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 w = outpicref->width / 
inlink->ch_layout.nb_channels;     \
        const 
type *in = (
const type *)insamples->extended_data[ch];        \
        const int wb = 
w / depth;                                           \
 
        int wv;                                                             \
                                                                            \
        memset(
s->counter, 0, 
sizeof(
s->counter));                          \
        for (
int i = 0; 
i < insamples->nb_samples; 
i++) {                   \
            for (int j = 0; j < depth; j++) {                               \
                if (in[
i] & (one << j))                                     \
                    s->counter[j]++;                                        \
            }                                                               \
        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 = (
s->counter[depth - 
b - 1] * 255) / insamples->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 177 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 293 of file avf_abitscope.c.
 
 
◆ outputs
Initial value:= {
    {
        .name         = "default",
    },
}
Definition at line 301 of file avf_abitscope.c.
 
 
◆ ff_avf_abitscope
Initial value:= {
    .name          = "abitscope",
    .priv_class    = &abitscope_class,
}
Definition at line 309 of file avf_abitscope.c.