VLC 4.0.0-dev
|
Data Structures | |
struct | aout_filter |
struct | aout_filters |
struct | filter_owner_sys |
Macros | |
#define | AOUT_MAX_FILTERS 10 |
Functions | |
static void | aout_filter_Init (struct aout_filter *tab, filter_t *f) |
filter_t * | aout_filter_Create (vlc_object_t *obj, const filter_owner_t *restrict owner, const char *type, const char *name, const audio_sample_format_t *infmt, const audio_sample_format_t *outfmt, config_chain_t *cfg, bool const_fmt) |
static filter_t * | FindConverter (vlc_object_t *obj, const audio_sample_format_t *infmt, const audio_sample_format_t *outfmt) |
static filter_t * | FindResampler (vlc_object_t *obj, const audio_sample_format_t *infmt, const audio_sample_format_t *outfmt) |
static void | aout_FiltersPipelineDestroy (struct aout_filter *tab, unsigned n) |
Destroys a chain of audio filters. | |
static filter_t * | TryFormat (vlc_object_t *obj, vlc_fourcc_t codec, audio_sample_format_t *restrict fmt) |
static int | aout_FiltersPipelineCreate (vlc_object_t *obj, struct aout_filter *filters, unsigned *count, unsigned max, const audio_sample_format_t *restrict infmt, const audio_sample_format_t *restrict outfmt) |
Allocates audio format conversion filters. | |
static block_t * | aout_FiltersPipelinePlay (const struct aout_filter *tab, unsigned count, block_t *block) |
Filters an audio buffer through a chain of filters. | |
static block_t * | aout_FiltersPipelineDrain (const struct aout_filter *tab, unsigned count) |
Drain the chain of filters. | |
static void | aout_FiltersPipelineFlush (const struct aout_filter *tab, unsigned count) |
Flush the chain of filters. | |
static void | aout_FiltersPipelineChangeViewpoint (const struct aout_filter *tab, unsigned count, const vlc_viewpoint_t *vp) |
static int | VisualizationCallback (vlc_object_t *obj, const char *var, vlc_value_t oldval, vlc_value_t newval, void *data) |
Callback for visualization selection. | |
vout_thread_t * | aout_filter_GetVout (filter_t *filter, const video_format_t *fmt) |
Create a vout from an "visualization" audio filter. | |
static int | AppendFilter (vlc_object_t *obj, const char *type, const char *name, aout_filters_t *restrict filters, audio_sample_format_t *restrict infmt, const audio_sample_format_t *restrict outfmt, config_chain_t *cfg) |
static int | AppendRemapFilter (vlc_object_t *obj, aout_filters_t *restrict filters, audio_sample_format_t *restrict infmt, const audio_sample_format_t *restrict outfmt, const int *wg4_remap) |
aout_filters_t * | aout_FiltersNewWithClock (vlc_object_t *obj, vlc_clock_t *clock, const audio_sample_format_t *restrict infmt, const audio_sample_format_t *restrict outfmt, const aout_filters_cfg_t *cfg) |
static void | aout_FiltersPipelineResetClock (const struct aout_filter *tab, unsigned count) |
void | aout_FiltersResetClock (aout_filters_t *filters) |
static void | aout_FiltersPipelineSetClockDelay (const struct aout_filter *tab, unsigned count, vlc_tick_t delay) |
void | aout_FiltersSetClockDelay (aout_filters_t *filters, vlc_tick_t delay) |
aout_filters_t * | aout_FiltersNew (vlc_object_t *obj, const audio_sample_format_t *restrict infmt, const audio_sample_format_t *restrict outfmt, const aout_filters_cfg_t *cfg) |
Sets a chain of audio filters up. | |
void | aout_FiltersDelete (vlc_object_t *obj, aout_filters_t *filters) |
Destroys a chain of audio filters. | |
bool | aout_FiltersCanResample (aout_filters_t *filters) |
bool | aout_FiltersAdjustResampling (aout_filters_t *filters, int adjust) |
block_t * | aout_FiltersPlay (aout_filters_t *filters, block_t *block, float rate) |
block_t * | aout_FiltersDrain (aout_filters_t *filters) |
void | aout_FiltersFlush (aout_filters_t *filters) |
void | aout_FiltersChangeViewpoint (aout_filters_t *filters, const vlc_viewpoint_t *vp) |
#define AOUT_MAX_FILTERS 10 |
filter_t * aout_filter_Create | ( | vlc_object_t * | obj, |
const filter_owner_t *restrict | owner, | ||
const char * | type, | ||
const char * | name, | ||
const audio_sample_format_t * | infmt, | ||
const audio_sample_format_t * | outfmt, | ||
config_chain_t * | cfg, | ||
bool | const_fmt | ||
) |
References AOUT_FMTS_IDENTICAL, aout_FormatNbChannels(), es_format_t::audio, vlc_filter_operations::filter_audio, filter_t::fmt_in, filter_t::fmt_out, audio_format_t::i_channels, es_format_t::i_codec, audio_format_t::i_format, audio_format_t::i_physical_channels, module_need, name, filter_t::ops, filter_t::owner, filter_t::p_cfg, filter_t::p_module, unlikely, vlc_custom_create, and vlc_object_delete.
Referenced by aout_FiltersPipelineCreate(), AppendFilter(), FindConverter(), FindResampler(), and vlc_audio_meter_CreatePluginFilter().
|
inlinestatic |
References aout_filter::clock, aout_filter::f, and aout_filter::vout.
Referenced by aout_FiltersNewWithClock(), aout_FiltersPipelineCreate(), and AppendFilter().
bool aout_FiltersCanResample | ( | aout_filters_t * | filters | ) |
References aout_filter::f, and aout_filters::resampler.
Referenced by stream_HandleDrift().
aout_filters_t * aout_FiltersNew | ( | vlc_object_t * | obj, |
const audio_sample_format_t *restrict | infmt, | ||
const audio_sample_format_t *restrict | outfmt, | ||
const aout_filters_cfg_t * | cfg | ||
) |
Sets a chain of audio filters up.
obj | parent object for the filters |
infmt | chain input format [IN] |
outfmt | chain output format [IN] |
cfg | a valid aout_filters_cfg_t struct or NULL. |
References aout_FiltersNewWithClock().
aout_filters_t * aout_FiltersNewWithClock | ( | vlc_object_t * | obj, |
vlc_clock_t * | clock, | ||
const audio_sample_format_t *restrict | infmt, | ||
const audio_sample_format_t *restrict | outfmt, | ||
const aout_filters_cfg_t * | cfg | ||
) |
References aout_filter_Init(), aout_FiltersPipelineCreate(), aout_FiltersPipelineDestroy(), AOUT_FMT_LINEAR, AOUT_FMTS_IDENTICAL, aout_FormatNbChannels(), aout_FormatPrepare(), aout_FormatPrint, aout_FormatsPrint, AOUT_MAX_FILTERS, aout_SetWavePhysicalChannels(), AppendFilter(), AppendRemapFilter(), AUDIO_CHANNEL_TYPE_BITMAP, audio_format_t::channel_type, filter_owner_sys::clock, aout_filters::clock_source, aout_filters::count, aout_filter::f, FindConverter(), FindResampler(), audio_format_t::i_channels, audio_format_t::i_rate, msg_Err, msg_Info, msg_Warn, name, p, aout_filters::rate_filter, aout_filters_cfg_t::remap, aout_filters::resampler, aout_filters::resampling, strcasecmp(), strsep(), aout_filters::tab, unlikely, var_AddCallback(), var_DelCallback(), var_InheritBool(), var_InheritString(), and VisualizationCallback().
Referenced by aout_FiltersNew().
|
static |
References count, and filter_ChangeViewpoint().
Referenced by aout_FiltersChangeViewpoint().
|
static |
Allocates audio format conversion filters.
obj | parent VLC object for new filters |
filters | table of filters [IN/OUT] |
count | pointer to the number of filters in the table [IN/OUT] |
max | size of filters table [IN] |
infmt | input audio format |
outfmt | output audio format |
References _, aout_filter_Create(), aout_filter_Init(), aout_FiltersPipelineDestroy(), AOUT_FMT_LINEAR, aout_FormatPrepare(), aout_FormatsPrint, audio_format_t::channel_type, count, FindConverter(), audio_format_t::i_chan_mode, audio_format_t::i_format, audio_format_t::i_physical_channels, audio_format_t::i_rate, msg_Dbg, msg_Err, TryFormat(), VLC_CODEC_FL32, and vlc_dialog_display_error.
Referenced by aout_FiltersNewWithClock(), and AppendFilter().
|
static |
Destroys a chain of audio filters.
References aout_filter::f, vlc_clock_Delete(), vlc_clock_Lock(), vlc_clock_Reset(), vlc_clock_Unlock(), vlc_filter_Delete(), and vout_Close().
Referenced by aout_FiltersDelete(), aout_FiltersNewWithClock(), and aout_FiltersPipelineCreate().
|
static |
Drain the chain of filters.
References aout_FiltersPipelinePlay(), block_ChainAppend, block_ChainGather, count, aout_filter::f, and filter_DrainAudio().
Referenced by aout_FiltersDrain().
|
static |
Flush the chain of filters.
References count, and filter_Flush().
Referenced by aout_FiltersFlush().
|
static |
Filters an audio buffer through a chain of filters.
References count, aout_filter::f, vlc_filter_operations::filter_audio, and filter_t::ops.
Referenced by aout_FiltersDrain(), aout_FiltersPipelineDrain(), and aout_FiltersPlay().
|
static |
References aout_filter::clock, filter_owner_sys::clock, count, vlc_clock_Lock(), vlc_clock_Reset(), and vlc_clock_Unlock().
Referenced by aout_FiltersResetClock().
|
static |
References aout_filter::clock, filter_owner_sys::clock, count, vlc_clock_Lock(), vlc_clock_SetDelay(), and vlc_clock_Unlock().
Referenced by aout_FiltersSetClockDelay().
void aout_FiltersResetClock | ( | aout_filters_t * | filters | ) |
References aout_FiltersPipelineResetClock(), aout_filters::clock_source, aout_filters::count, and aout_filters::tab.
Referenced by stream_Reset().
void aout_FiltersSetClockDelay | ( | aout_filters_t * | filters, |
vlc_tick_t | delay | ||
) |
References aout_FiltersPipelineSetClockDelay(), aout_filters::clock_source, aout_filters::count, and aout_filters::tab.
Referenced by stream_CheckReady(), stream_Reset(), and vlc_aout_stream_Play().
|
static |
References aout_filter_Create(), aout_filter_Init(), aout_FiltersPipelineCreate(), es_format_t::audio, filter_owner_sys::clock, filter_owner_sys::clock_source, filter_t::fmt_in, filter_t::fmt_out, msg_Err, name, filter_owner_t::sys, vlc_clock_Delete(), vlc_filter_Delete(), filter_owner_sys::vout, and vout_Close().
Referenced by aout_FiltersNewWithClock(), and AppendRemapFilter().
|
static |
References AOUT_CHAN_MAX, AppendFilter(), asprintf(), config_ChainCreate(), config_ChainDestroy(), and name.
Referenced by aout_FiltersNewWithClock().
|
static |
References aout_filter_Create().
Referenced by aout_FiltersNewWithClock(), aout_FiltersPipelineCreate(), and TryFormat().
|
static |
References aout_filter_Create(), and var_InheritString().
Referenced by aout_FiltersNewWithClock().
|
static |
References aout_FormatPrepare(), FindConverter(), and audio_format_t::i_format.
Referenced by aout_FiltersPipelineCreate().
|
static |
Callback for visualization selection.
References aout_InputRequestRestart(), vlc_value_t::psz_string, strcasecmp(), var, var_Create(), var_SetString(), VLC_SUCCESS, and VLC_VAR_STRING.
Referenced by aout_FiltersDelete(), and aout_FiltersNewWithClock().