72 char chlayout_str[128];
73 uint32_t checksum = 0;
78 int planes = planar ? channels : 1;
81 for (i = 0; i < planes; i++) {
93 "n:%"PRIu64
" pts:%"PRId64
" pts_time:%f "
94 "fmt:%s chlayout:%s rate:%d nb_samples:%d "
102 for (i = 0; i < planes; i++)
uint8_t ** extended_data
pointers to the data planes/channels.
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
int nb_samples
number of audio samples
AVFilterBufferRefAudioProps * audio
audio buffer specific properties
static const AVFilterPad outputs[]
memory handling functions
int ff_filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
Send a frame of data to the next filter.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
#define AV_PERM_READ
can read from the buffer
const char * name
Pad name.
static double av_q2d(AVRational a)
Convert rational to double.
unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigned int len)
Calculate the Adler32 checksum of a buffer.
int64_t pts
presentation timestamp.
A filter pad used for either input or output.
A link between two filters.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
int av_get_channel_layout_nb_channels(uint64_t channel_layout)
Return the number of channels in the channel layout.
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
void av_log(void *avcl, int level, const char *fmt,...)
struct AShowInfoContext AShowInfoContext
static int config_input(AVFilterLink *inlink)
audio channel layout utility functions
uint64_t frame
Frame counter.
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.
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *buf)
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt)
Return number of bytes per sample.
A reference to an AVFilterBuffer.
uint32_t * plane_checksums
Scratch space for individual plane checksums for planar audio.
int sample_rate
audio buffer sample rate
static const AVFilterPad inputs[]
int av_sample_fmt_is_planar(enum AVSampleFormat sample_fmt)
Check if the sample format is planar.
const char * name
filter name
AVFilter avfilter_af_ashowinfo
uint64_t channel_layout
channel layout of audio buffer
AVFilterLink ** outputs
array of pointers to output links
static void uninit(AVFilterContext *ctx)
common internal and external API header
uint64_t channel_layout
channel layout of current buffer (see libavutil/channel_layout.h)
AVFilterContext * dst
dest filter
AVFilterBufferRef * ff_null_get_audio_buffer(AVFilterLink *link, int perms, int nb_samples)
get_audio_buffer() handler for filters which simply pass audio along
void av_get_channel_layout_string(char *buf, int buf_size, int nb_channels, uint64_t channel_layout)
Return a description of a channel layout.