73 char chlayout_str[128];
74 uint32_t checksum = 0;
79 int planes = planar ? channels : 1;
82 for (i = 0; i < planes; i++) {
94 "n:%"PRIu64
" pts:%"PRId64
" pts_time:%f "
95 "fmt:%s chlayout:%s rate:%d nb_samples:%d "
103 for (i = 0; i < planes; i++)
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
This structure describes decoded (raw) audio or video data.
static const AVFilterPad outputs[]
Main libavfilter public API header.
memory handling functions
Macro definitions for various function/variable attributes.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
const char * name
Pad name.
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
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.
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,...)
uint64_t channel_layout
Channel layout of the audio data.
static int config_input(AVFilterLink *inlink)
audio channel layout utility functions
uint64_t frame
Frame counter.
static av_cold void uninit(AVFilterContext *ctx)
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.
AVFrame * ff_null_get_audio_buffer(AVFilterLink *link, int nb_samples)
get_audio_buffer() handler for filters which simply pass audio along
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt)
Return number of bytes per sample.
int format
format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames...
uint32_t * plane_checksums
Scratch space for individual plane checksums for planar audio.
#define AV_LOG_INFO
Standard information.
int sample_rate
Sample rate of the audio data.
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.
AVFilterLink ** outputs
array of pointers to output links
common internal and external API header
uint64_t channel_layout
channel layout of current buffer (see libavutil/channel_layout.h)
AVFilterContext * dst
dest filter
uint8_t ** extended_data
pointers to the data planes/channels.
int nb_samples
number of audio samples (per channel) described by this frame
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.