43 #define OFFSET(x) offsetof(ChannelSplitContext, x) 44 #define A AV_OPT_FLAG_AUDIO_PARAM 143 .
name =
"channelsplit",
146 .priv_class = &channelsplit_class,
This structure describes decoded (raw) audio or video data.
static const AVFilterPad outputs[]
Main libavfilter public API header.
struct AVFilterChannelLayouts * in_channel_layouts
Macro definitions for various function/variable attributes.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVFilterLink ** inputs
array of pointers to input links
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
uint64_t av_channel_layout_extract_channel(uint64_t channel_layout, int index)
Get the channel with the given index in channel_layout.
static const AVClass channelsplit_class
#define AVFILTER_FLAG_DYNAMIC_OUTPUTS
The number of the filter outputs is not determined just by AVFilter.outputs.
A link between two filters.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
unsigned nb_outputs
number of output pads
#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.
static const AVFilterPad avfilter_af_channelsplit_inputs[]
struct AVFilterChannelLayouts * out_channel_layouts
void av_log(void *avcl, int level, const char *fmt,...)
const char * av_get_channel_name(uint64_t channel)
Get the name of a given channel.
uint64_t channel_layout
Channel layout of the audio data.
common internal API header
audio channel layout utility functions
static void ff_insert_outpad(AVFilterContext *f, unsigned index, AVFilterPad *p)
Insert a new output pad for the filter.
static const AVOption options[]
AVFrame * av_frame_clone(const AVFrame *src)
Create a new frame that references the same data as src.
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
char * channel_layout_str
Describe the class of an AVClass context structure.
static const AVFilterPad inputs[]
const char * name
Filter name.
static av_cold int init(AVFilterContext *ctx)
AVFilterLink ** outputs
array of pointers to output links
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
struct AVFilterPad AVFilterPad
AVFilterContext * dst
dest filter
static int query_formats(AVFilterContext *ctx)
AVFilter ff_af_channelsplit
uint64_t av_get_channel_layout(const char *name)
Return a channel layout id that matches name, or 0 if no match is found.
uint8_t ** extended_data
pointers to the data planes/channels.