#include <ctype.h>
#include "libavutil/audioconvert.h"
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
| struct | ChannelMap |
| struct | ChannelMapContext |
Defines | |
| #define | MAX_CH 64 |
| #define | OFFSET(x) offsetof(ChannelMapContext, x) |
| #define | A AV_OPT_FLAG_AUDIO_PARAM |
| #define | F AV_OPT_FLAG_FILTERING_PARAM |
Enumerations | |
| enum | MappingMode { MAP_NONE, MAP_ONE_INT, MAP_ONE_STR, MAP_PAIR_INT_INT, MAP_PAIR_INT_STR, MAP_PAIR_STR_INT, MAP_PAIR_STR_STR } |
Functions | |
| static char * | split (char *message, char delim) |
| static int | get_channel_idx (char **map, int *ch, char delim, int max_ch) |
| static int | get_channel (char **map, uint64_t *ch, char delim) |
| static av_cold int | channelmap_init (AVFilterContext *ctx, const char *args) |
| static int | channelmap_query_formats (AVFilterContext *ctx) |
| static int | channelmap_filter_samples (AVFilterLink *inlink, AVFilterBufferRef *buf) |
| static int | channelmap_config_input (AVFilterLink *inlink) |
Variables | |
| static const AVOption | options [] |
| static const AVClass | channelmap_class |
| AVFilter | avfilter_af_channelmap |
Definition in file af_channelmap.c.
| #define A AV_OPT_FLAG_AUDIO_PARAM |
Definition at line 70 of file af_channelmap.c.
| #define F AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 71 of file af_channelmap.c.
| #define MAX_CH 64 |
Definition at line 57 of file af_channelmap.c.
Referenced by channelmap_filter_samples(), and channelmap_init().
| #define OFFSET | ( | x | ) | offsetof(ChannelMapContext, x) |
Definition at line 69 of file af_channelmap.c.
| enum MappingMode |
| MAP_NONE | |
| MAP_ONE_INT | |
| MAP_ONE_STR | |
| MAP_PAIR_INT_INT | |
| MAP_PAIR_INT_STR | |
| MAP_PAIR_STR_INT | |
| MAP_PAIR_STR_STR |
Definition at line 47 of file af_channelmap.c.
| static int channelmap_config_input | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 361 of file af_channelmap.c.
| static int channelmap_filter_samples | ( | AVFilterLink * | inlink, | |
| AVFilterBufferRef * | buf | |||
| ) | [static] |
Definition at line 316 of file af_channelmap.c.
| static av_cold int channelmap_init | ( | AVFilterContext * | ctx, | |
| const char * | args | |||
| ) | [static] |
Definition at line 123 of file af_channelmap.c.
| static int channelmap_query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 304 of file af_channelmap.c.
| static char* split | ( | char * | message, | |
| char | delim | |||
| ) | [static] |
Definition at line 87 of file af_channelmap.c.
Referenced by arith2_get_scaled_value(), arith2_rescale_interval(), avfilter_register_all(), dirac_unpack_block_motion_data(), encode_block(), get_channel(), get_channel_idx(), main(), and mss4_decode_image_block().
Initial value:
{
.name = "channelmap",
.description = NULL_IF_CONFIG_SMALL("Remap audio channels."),
.init = channelmap_init,
.query_formats = channelmap_query_formats,
.priv_size = sizeof(ChannelMapContext),
.inputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.min_perms = AV_PERM_READ | AV_PERM_WRITE,
.filter_samples = channelmap_filter_samples,
.config_props = channelmap_config_input },
{ .name = NULL }},
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_AUDIO },
{ .name = NULL }},
.priv_class = &channelmap_class,
}
Definition at line 388 of file af_channelmap.c.
const AVClass channelmap_class [static] |
Initial value:
{
.class_name = "channel map filter",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
Definition at line 80 of file af_channelmap.c.
Initial value:
{
{ "map", "A comma-separated list of input channel numbers in output order.",
OFFSET(mapping_str), AV_OPT_TYPE_STRING, .flags = A|F },
{ "channel_layout", "Output channel layout.",
OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, .flags = A|F },
{ NULL },
}
Definition at line 72 of file af_channelmap.c.
1.5.8