- public const string CHANNELS_RANGE
Maximum range of allowed channels, for use in template caps strings.
- public const string CONVERTER_OPT_DITHER_METHOD
DitherMethod,
The dither method to use when changing bit depth.
- public const string CONVERTER_OPT_DITHER_THRESHOLD
Threshold for the output bit depth at/below which to apply dithering.
- public const string CONVERTER_OPT_MIX_MATRIX
GST_TYPE_LIST
, The channel mapping matrix.
- public const string CONVERTER_OPT_NOISE_SHAPING_METHOD
NoiseShapingMethod, The noise shaping method to use to mask noise from quantization errors.
- public const string CONVERTER_OPT_QUANTIZATION
UINT, The quantization amount.
- public const string CONVERTER_OPT_RESAMPLER_METHOD
- public const int DECODER_MAX_ERRORS
Default maximum number of errors tolerated before signaling error.
- public const string DECODER_SINK_NAME
The name of the templates for the sink pad.
- public const string DECODER_SRC_NAME
The name of the templates for the source pad.
- public const int DEF_CHANNELS
Standard number of channels used in consumer audio.
- public const string DEF_FORMAT
Standard format used in consumer audio.
- public const int DEF_RATE
Standard sampling rate used in consumer audio.
- public const string ENCODER_SINK_NAME
the name of the templates for the sink pad
- public const string ENCODER_SRC_NAME
the name of the templates for the source pad
- public const string FORMATS_ALL
List of all audio formats, for use in template caps strings.
- public const string META_TAG_AUDIO_CHANNELS_STR
This metadata stays relevant as long as channels are unchanged.
- public const string META_TAG_AUDIO_RATE_STR
This metadata stays relevant as long as sample rate is unchanged.
- public const string META_TAG_AUDIO_STR
This metadata is relevant for audio streams.
- public const string RATE_RANGE
Maximum range of allowed sample rates, for use in template caps
strings.
- public const string RESAMPLER_OPT_CUBIC_B
G_TYPE_DOUBLE, B parameter of the cubic filter.
- public const string RESAMPLER_OPT_CUBIC_C
G_TYPE_DOUBLE, C parameter of the cubic filter.
- public const string RESAMPLER_OPT_CUTOFF
G_TYPE_DOUBLE, Cutoff parameter for the filter.
- public const string RESAMPLER_OPT_FILTER_INTERPOLATION
GST_TYPE_AUDIO_RESAMPLER_INTERPOLATION: how the filter coefficients
should be interpolated.
- public const string RESAMPLER_OPT_FILTER_MODE
GST_TYPE_AUDIO_RESAMPLER_FILTER_MODE: how the filter tables should be
constructed.
- public const string RESAMPLER_OPT_FILTER_MODE_THRESHOLD
G_TYPE_UINT: the amount of memory to use for full filter tables before
switching to interpolated filter tables.
- public const string RESAMPLER_OPT_FILTER_OVERSAMPLE
G_TYPE_UINT, oversampling to use when interpolating filters 8 is the
default.
- public const string RESAMPLER_OPT_MAX_PHASE_ERROR
G_TYPE_DOUBLE: The maximum allowed phase error when switching sample
rates.
- public const string RESAMPLER_OPT_N_TAPS
G_TYPE_INT: the number of taps to use for the filter.
- public const string RESAMPLER_OPT_STOP_ATTENUATION
G_TYPE_DOUBLE, stopband attenuation in decibels.
- public const string RESAMPLER_OPT_TRANSITION_BANDWIDTH
G_TYPE_DOUBLE, transition bandwidth.
- public const int RESAMPLER_QUALITY_DEFAULT
- public const int RESAMPLER_QUALITY_MAX
- public const int RESAMPLER_QUALITY_MIN
- public Buffer audio_buffer_clip (owned Buffer buffer, Segment segment, int rate, int bpf)
- public bool audio_buffer_map (out Buffer buffer, Info info, Buffer gstbuffer, MapFlags flags)
- public bool audio_buffer_reorder_channels (Buffer buffer, Format format, ChannelPosition[] from, ChannelPosition[] to)
- public Buffer audio_buffer_truncate (owned Buffer buffer, int bpf, size_t trim, size_t samples)
- public uint64 audio_channel_get_fallback_mask (int channels)
Get the fallback channel-mask for the given number of channels.
- public bool audio_channel_positions_from_mask (uint64 channel_mask, ChannelPosition[] position)
Convert the position.length
present in channel_mask
to a position
array (which should have at least position.length
entries ensured by caller).
- public bool audio_channel_positions_to_mask (ChannelPosition[] position, bool force_order, out uint64 channel_mask)
Convert the position
array of position.length
channels to a bitmask.
- public string audio_channel_positions_to_string (ChannelPosition[] position)
Converts position
to a human-readable string
representation for debugging purposes.
- public bool audio_channel_positions_to_valid_order (ChannelPosition[] position)
Reorders the channel positions in position
from any order
to the GStreamer channel order.
- public bool audio_check_valid_channel_positions (ChannelPosition[] position, bool force_order)
Checks if position
contains valid channel positions for
position.length
channels.
- public Type audio_clipping_meta_api_get_type ()
- public unowned MetaInfo? audio_clipping_meta_get_info ()
- public Type audio_downmix_meta_api_get_type ()
- public unowned MetaInfo? audio_downmix_meta_get_info ()
- public Format audio_format_build_integer (bool sign, int endianness, int width, int depth)
- public void audio_format_fill_silence (FormatInfo info, uint8[] dest)
- public Format audio_format_from_string (string format)
- public unowned FormatInfo? audio_format_get_info (Format format)
- public Type audio_format_info_get_type ()
- public unowned string audio_format_to_string (Format format)
- public unowned Format[] audio_formats_raw ()
Return all the raw audio formats supported by GStreamer.
- public bool audio_get_channel_reorder_map (ChannelPosition[] from, ChannelPosition[] to, int[] reorder_map)
Returns a reorder map for from
to to
that
can be used in custom channel reordering code, e.g. to convert from or to the GStreamer channel order.
- public uint audio_iec61937_frame_size (RingBufferSpec spec)
- public bool audio_iec61937_payload (uint8[] src, uint8[] dst, RingBufferSpec spec, int endianness)
Payloads src
in the form specified by IEC 61937 for the
type from spec
and stores the result in dst
.
- public bool audio_info_from_caps (out unowned Info info, Caps caps)
Parse caps
and update info
.
- public void audio_info_init (out unowned Info info)
Initialize info
with default values.
- public Type audio_level_meta_api_get_type ()
- public unowned MetaInfo? audio_level_meta_get_info ()
- public Caps audio_make_raw_caps (Format[]? formats, Layout layout)
Return a generic raw audio caps for formats defined in formats
.
- public Type audio_meta_api_get_type ()
- public unowned MetaInfo? audio_meta_get_info ()
- public bool audio_reorder_channels (uint8[] data, Format format, ChannelPosition[] from, ChannelPosition[] to)
Reorders data
from the channel positions from
to the channel positions to
.
- public void audio_resampler_options_set_quality (ResamplerMethod method, uint quality, int in_rate, int out_rate, Structure options)
Set the parameters for resampling from in_rate
to
out_rate
using method
for quality
in options
.
- public unowned ClippingMeta? buffer_add_audio_clipping_meta (Buffer buffer, Format format, uint64 start, uint64 end)
Attaches
ClippingMeta metadata to buffer
with the given parameters.
- public unowned DownmixMeta? buffer_add_audio_downmix_meta (Buffer buffer, ChannelPosition[] from_position, ChannelPosition[] to_position, float*[] matrix)
Attaches
DownmixMeta metadata to buffer
with the given parameters.
- public unowned LevelMeta? buffer_add_audio_level_meta (Buffer buffer, uint8 level, bool voice_activity)
Attaches audio level information to buffer
.
- public unowned Meta? buffer_add_audio_meta (Buffer buffer, Info info, size_t samples, size_t? offsets)
Allocates and attaches a
Meta on buffer
, which must be writable for that purpose.
- public unowned DownmixMeta? buffer_get_audio_downmix_meta_for_channels (Buffer buffer, ChannelPosition[] to_position)
Find the
DownmixMeta on buffer
for the given destination channel positions.
- public unowned LevelMeta? buffer_get_audio_level_meta (Buffer buffer)
- public double stream_volume_convert_volume (StreamVolumeFormat from, StreamVolumeFormat to, double val)