Class Functions
public class Functions
- Inheritance
-
Functions
- Inherited Members
Methods
AudioBufferClip(BufferUnownedHandle, SegmentHandle, int, int)
Calls native function gst_audio_buffer_clip.
public static extern BufferOwnedHandle AudioBufferClip(BufferUnownedHandle buffer, SegmentHandle segment, int rate, int bpf)
Parameters
buffer
BufferUnownedHandleTransfer ownership: Full Nullable: False
segment
SegmentHandleTransfer ownership: None Nullable: False
rate
intTransfer ownership: None Nullable: False
bpf
intTransfer ownership: None Nullable: False
Returns
- BufferOwnedHandle
Transfer ownership: Full Nullable: True
AudioBufferMap(AudioBufferOwnedHandle, AudioInfoHandle, BufferHandle, MapFlags)
Calls native function gst_audio_buffer_map. Version: 1.16
[Version("1.16")]
public static extern bool AudioBufferMap(AudioBufferOwnedHandle buffer, AudioInfoHandle info, BufferHandle gstbuffer, MapFlags flags)
Parameters
buffer
AudioBufferOwnedHandleTransfer ownership: None Nullable: False
info
AudioInfoHandleTransfer ownership: None Nullable: False
gstbuffer
BufferHandleTransfer ownership: None Nullable: False
flags
MapFlagsTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioBufferReorderChannels(BufferHandle, AudioFormat, int, AudioChannelPosition[], AudioChannelPosition[])
Calls native function gst_audio_buffer_reorder_channels.
public static extern bool AudioBufferReorderChannels(BufferHandle buffer, AudioFormat format, int channels, AudioChannelPosition[] from, AudioChannelPosition[] to)
Parameters
buffer
BufferHandleTransfer ownership: None Nullable: False
format
AudioFormatTransfer ownership: None Nullable: False
channels
intTransfer ownership: None Nullable: False
from
AudioChannelPosition[]Transfer ownership: None Nullable: False
to
AudioChannelPosition[]Transfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioBufferTruncate(BufferUnownedHandle, int, nuint, nuint)
Calls native function gst_audio_buffer_truncate. Version: 1.16
[Version("1.16")]
public static extern BufferOwnedHandle AudioBufferTruncate(BufferUnownedHandle buffer, int bpf, nuint trim, nuint samples)
Parameters
buffer
BufferUnownedHandleTransfer ownership: Full Nullable: False
bpf
intTransfer ownership: None Nullable: False
trim
nuintTransfer ownership: None Nullable: False
samples
nuintTransfer ownership: None Nullable: False
Returns
- BufferOwnedHandle
Transfer ownership: Full Nullable: False
AudioChannelGetFallbackMask(int)
Calls native function gst_audio_channel_get_fallback_mask. Version: 1.8
[Version("1.8")]
public static extern ulong AudioChannelGetFallbackMask(int channels)
Parameters
channels
intTransfer ownership: None Nullable: False
Returns
- ulong
Transfer ownership: None Nullable: False
AudioChannelMixerNew(AudioChannelMixerFlags, AudioFormat, int, IntPtr, int, IntPtr)
Calls native function gst_audio_channel_mixer_new.
public static extern AudioChannelMixerUnownedHandle AudioChannelMixerNew(AudioChannelMixerFlags flags, AudioFormat format, int inChannels, IntPtr inPosition, int outChannels, IntPtr outPosition)
Parameters
flags
AudioChannelMixerFlagsTransfer ownership: None Nullable: False
format
AudioFormatTransfer ownership: None Nullable: False
inChannels
intTransfer ownership: None Nullable: False
inPosition
IntPtrTransfer ownership: None Nullable: False
outChannels
intTransfer ownership: None Nullable: False
outPosition
IntPtrTransfer ownership: None Nullable: False
Returns
- AudioChannelMixerUnownedHandle
Transfer ownership: None Nullable: False
AudioChannelMixerNewWithMatrix(AudioChannelMixerFlags, AudioFormat, int, int, ref float)
Calls native function gst_audio_channel_mixer_new_with_matrix. Version: 1.14
[Version("1.14")]
public static extern AudioChannelMixerUnownedHandle AudioChannelMixerNewWithMatrix(AudioChannelMixerFlags flags, AudioFormat format, int inChannels, int outChannels, ref float matrix)
Parameters
flags
AudioChannelMixerFlagsTransfer ownership: None Nullable: False
format
AudioFormatTransfer ownership: None Nullable: False
inChannels
intTransfer ownership: None Nullable: False
outChannels
intTransfer ownership: None Nullable: False
matrix
floatTransfer ownership: Full Nullable: True
Returns
- AudioChannelMixerUnownedHandle
Transfer ownership: None Nullable: False
AudioChannelPositionsFromMask(int, ulong, AudioChannelPosition[])
Calls native function gst_audio_channel_positions_from_mask.
public static extern bool AudioChannelPositionsFromMask(int channels, ulong channelMask, AudioChannelPosition[] position)
Parameters
channels
intTransfer ownership: None Nullable: False
channelMask
ulongTransfer ownership: None Nullable: False
position
AudioChannelPosition[]Transfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioChannelPositionsToMask(AudioChannelPosition[], int, bool, out ulong)
Calls native function gst_audio_channel_positions_to_mask.
public static extern bool AudioChannelPositionsToMask(AudioChannelPosition[] position, int channels, bool forceOrder, out ulong channelMask)
Parameters
position
AudioChannelPosition[]Transfer ownership: None Nullable: False
channels
intTransfer ownership: None Nullable: False
forceOrder
boolTransfer ownership: None Nullable: False
channelMask
ulongTransfer ownership: Full Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioChannelPositionsToString(AudioChannelPosition[], int)
Calls native function gst_audio_channel_positions_to_string. Version: 1.10
[Version("1.10")]
public static extern NonNullableUtf8StringOwnedHandle AudioChannelPositionsToString(AudioChannelPosition[] position, int channels)
Parameters
position
AudioChannelPosition[]Transfer ownership: None Nullable: False
channels
intTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
AudioChannelPositionsToValidOrder(AudioChannelPosition[], int)
Calls native function gst_audio_channel_positions_to_valid_order.
public static extern bool AudioChannelPositionsToValidOrder(AudioChannelPosition[] position, int channels)
Parameters
position
AudioChannelPosition[]Transfer ownership: None Nullable: False
channels
intTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioCheckValidChannelPositions(AudioChannelPosition[], int, bool)
Calls native function gst_audio_check_valid_channel_positions.
public static extern bool AudioCheckValidChannelPositions(AudioChannelPosition[] position, int channels, bool forceOrder)
Parameters
position
AudioChannelPosition[]Transfer ownership: None Nullable: False
channels
intTransfer ownership: None Nullable: False
forceOrder
boolTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioClippingMetaApiGetType()
Calls native function gst_audio_clipping_meta_api_get_type.
public static extern nuint AudioClippingMetaApiGetType()
Returns
- nuint
Transfer ownership: None Nullable: False
AudioClippingMetaGetInfo()
Calls native function gst_audio_clipping_meta_get_info.
public static extern MetaInfoUnownedHandle AudioClippingMetaGetInfo()
Returns
- MetaInfoUnownedHandle
Transfer ownership: None Nullable: False
AudioDownmixMetaApiGetType()
Calls native function gst_audio_downmix_meta_api_get_type.
public static extern nuint AudioDownmixMetaApiGetType()
Returns
- nuint
Transfer ownership: None Nullable: False
AudioDownmixMetaGetInfo()
Calls native function gst_audio_downmix_meta_get_info.
public static extern MetaInfoUnownedHandle AudioDownmixMetaGetInfo()
Returns
- MetaInfoUnownedHandle
Transfer ownership: None Nullable: False
AudioFormatBuildInteger(bool, int, int, int)
Calls native function gst_audio_format_build_integer.
public static extern AudioFormat AudioFormatBuildInteger(bool sign, int endianness, int width, int depth)
Parameters
sign
boolTransfer ownership: None Nullable: False
endianness
intTransfer ownership: None Nullable: False
width
intTransfer ownership: None Nullable: False
depth
intTransfer ownership: None Nullable: False
Returns
- AudioFormat
Transfer ownership: None Nullable: False
AudioFormatFillSilence(AudioFormatInfoHandle, ref byte, nuint)
Calls native function gst_audio_format_fill_silence.
public static extern void AudioFormatFillSilence(AudioFormatInfoHandle info, ref byte dest, nuint length)
Parameters
info
AudioFormatInfoHandleTransfer ownership: None Nullable: False
dest
byteTransfer ownership: None Nullable: False
length
nuintTransfer ownership: None Nullable: False
AudioFormatFromString(NonNullableUtf8StringHandle)
Calls native function gst_audio_format_from_string.
public static extern AudioFormat AudioFormatFromString(NonNullableUtf8StringHandle format)
Parameters
format
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- AudioFormat
Transfer ownership: None Nullable: False
AudioFormatGetInfo(AudioFormat)
Calls native function gst_audio_format_get_info.
public static extern AudioFormatInfoUnownedHandle AudioFormatGetInfo(AudioFormat format)
Parameters
format
AudioFormatTransfer ownership: None Nullable: False
Returns
- AudioFormatInfoUnownedHandle
Transfer ownership: None Nullable: False
AudioFormatInfoGetType()
Calls native function gst_audio_format_info_get_type.
public static extern nuint AudioFormatInfoGetType()
Returns
- nuint
Transfer ownership: None Nullable: False
AudioFormatToString(AudioFormat)
Calls native function gst_audio_format_to_string.
public static extern NonNullableUtf8StringUnownedHandle AudioFormatToString(AudioFormat format)
Parameters
format
AudioFormatTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
AudioGetChannelReorderMap(int, AudioChannelPosition[], AudioChannelPosition[], ref int)
Calls native function gst_audio_get_channel_reorder_map.
public static extern bool AudioGetChannelReorderMap(int channels, AudioChannelPosition[] from, AudioChannelPosition[] to, ref int reorderMap)
Parameters
channels
intTransfer ownership: None Nullable: False
from
AudioChannelPosition[]Transfer ownership: None Nullable: False
to
AudioChannelPosition[]Transfer ownership: None Nullable: False
reorderMap
intTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioIec61937FrameSize(AudioRingBufferSpecHandle)
Calls native function gst_audio_iec61937_frame_size.
public static extern uint AudioIec61937FrameSize(AudioRingBufferSpecHandle spec)
Parameters
spec
AudioRingBufferSpecHandleTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
AudioIec61937Payload(ref byte, uint, ref byte, uint, AudioRingBufferSpecHandle, int)
Calls native function gst_audio_iec61937_payload.
public static extern bool AudioIec61937Payload(ref byte src, uint srcN, ref byte dst, uint dstN, AudioRingBufferSpecHandle spec, int endianness)
Parameters
src
byteTransfer ownership: None Nullable: False
srcN
uintTransfer ownership: None Nullable: False
dst
byteTransfer ownership: None Nullable: False
dstN
uintTransfer ownership: None Nullable: False
spec
AudioRingBufferSpecHandleTransfer ownership: None Nullable: False
endianness
intTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioLevelMetaApiGetType()
Calls native function gst_audio_level_meta_api_get_type. Version: 1.20
[Version("1.20")]
public static extern nuint AudioLevelMetaApiGetType()
Returns
- nuint
Transfer ownership: None Nullable: False
AudioLevelMetaGetInfo()
Calls native function gst_audio_level_meta_get_info. Version: 1.20
[Version("1.20")]
public static extern MetaInfoUnownedHandle AudioLevelMetaGetInfo()
Returns
- MetaInfoUnownedHandle
Transfer ownership: None Nullable: False
AudioMakeRawCaps(AudioFormat[], uint, AudioLayout)
Calls native function gst_audio_make_raw_caps. Version: 1.18
[Version("1.18")]
public static extern CapsOwnedHandle AudioMakeRawCaps(AudioFormat[] formats, uint len, AudioLayout layout)
Parameters
formats
AudioFormat[]Transfer ownership: None Nullable: True
len
uintTransfer ownership: None Nullable: False
layout
AudioLayoutTransfer ownership: None Nullable: False
Returns
- CapsOwnedHandle
Transfer ownership: Full Nullable: False
AudioMetaApiGetType()
Calls native function gst_audio_meta_api_get_type.
public static extern nuint AudioMetaApiGetType()
Returns
- nuint
Transfer ownership: None Nullable: False
AudioMetaGetInfo()
Calls native function gst_audio_meta_get_info.
public static extern MetaInfoUnownedHandle AudioMetaGetInfo()
Returns
- MetaInfoUnownedHandle
Transfer ownership: None Nullable: False
AudioQuantizeNew(AudioDitherMethod, AudioNoiseShapingMethod, AudioQuantizeFlags, AudioFormat, uint, uint)
Calls native function gst_audio_quantize_new.
public static extern AudioQuantizeUnownedHandle AudioQuantizeNew(AudioDitherMethod dither, AudioNoiseShapingMethod ns, AudioQuantizeFlags flags, AudioFormat format, uint channels, uint quantizer)
Parameters
dither
AudioDitherMethodTransfer ownership: None Nullable: False
ns
AudioNoiseShapingMethodTransfer ownership: None Nullable: False
flags
AudioQuantizeFlagsTransfer ownership: None Nullable: False
format
AudioFormatTransfer ownership: None Nullable: False
channels
uintTransfer ownership: None Nullable: False
quantizer
uintTransfer ownership: None Nullable: False
Returns
- AudioQuantizeUnownedHandle
Transfer ownership: None Nullable: False
AudioReorderChannels(ref byte, nuint, AudioFormat, int, AudioChannelPosition[], AudioChannelPosition[])
Calls native function gst_audio_reorder_channels.
public static extern bool AudioReorderChannels(ref byte data, nuint size, AudioFormat format, int channels, AudioChannelPosition[] from, AudioChannelPosition[] to)
Parameters
data
byteTransfer ownership: None Nullable: False
size
nuintTransfer ownership: None Nullable: False
format
AudioFormatTransfer ownership: None Nullable: False
channels
intTransfer ownership: None Nullable: False
from
AudioChannelPosition[]Transfer ownership: None Nullable: False
to
AudioChannelPosition[]Transfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
AudioResamplerNew(AudioResamplerMethod, AudioResamplerFlags, AudioFormat, int, int, int, StructureHandle)
Calls native function gst_audio_resampler_new.
public static extern AudioResamplerOwnedHandle AudioResamplerNew(AudioResamplerMethod method, AudioResamplerFlags flags, AudioFormat format, int channels, int inRate, int outRate, StructureHandle options)
Parameters
method
AudioResamplerMethodTransfer ownership: None Nullable: False
flags
AudioResamplerFlagsTransfer ownership: None Nullable: False
format
AudioFormatTransfer ownership: None Nullable: False
channels
intTransfer ownership: None Nullable: False
inRate
intTransfer ownership: None Nullable: False
outRate
intTransfer ownership: None Nullable: False
options
StructureHandleTransfer ownership: None Nullable: False
Returns
- AudioResamplerOwnedHandle
Transfer ownership: Full Nullable: False
AudioResamplerOptionsSetQuality(AudioResamplerMethod, uint, int, int, StructureHandle)
Calls native function gst_audio_resampler_options_set_quality.
public static extern void AudioResamplerOptionsSetQuality(AudioResamplerMethod method, uint quality, int inRate, int outRate, StructureHandle options)
Parameters
method
AudioResamplerMethodTransfer ownership: None Nullable: False
quality
uintTransfer ownership: None Nullable: False
inRate
intTransfer ownership: None Nullable: False
outRate
intTransfer ownership: None Nullable: False
options
StructureHandleTransfer ownership: None Nullable: False
BufferAddAudioClippingMeta(BufferHandle, Format, ulong, ulong)
Calls native function gst_buffer_add_audio_clipping_meta. Version: 1.8
[Version("1.8")]
public static extern AudioClippingMetaUnownedHandle BufferAddAudioClippingMeta(BufferHandle buffer, Format format, ulong start, ulong end)
Parameters
buffer
BufferHandleTransfer ownership: None Nullable: False
format
FormatTransfer ownership: None Nullable: False
start
ulongTransfer ownership: None Nullable: False
end
ulongTransfer ownership: None Nullable: False
Returns
- AudioClippingMetaUnownedHandle
Transfer ownership: None Nullable: False
BufferAddAudioDownmixMeta(BufferHandle, AudioChannelPosition[], int, AudioChannelPosition[], int, ref float)
Calls native function gst_buffer_add_audio_downmix_meta.
public static extern AudioDownmixMetaUnownedHandle BufferAddAudioDownmixMeta(BufferHandle buffer, AudioChannelPosition[] fromPosition, int fromChannels, AudioChannelPosition[] toPosition, int toChannels, ref float matrix)
Parameters
buffer
BufferHandleTransfer ownership: None Nullable: False
fromPosition
AudioChannelPosition[]Transfer ownership: None Nullable: False
fromChannels
intTransfer ownership: None Nullable: False
toPosition
AudioChannelPosition[]Transfer ownership: None Nullable: False
toChannels
intTransfer ownership: None Nullable: False
matrix
floatTransfer ownership: None Nullable: False
Returns
- AudioDownmixMetaUnownedHandle
Transfer ownership: None Nullable: False
BufferAddAudioLevelMeta(BufferHandle, byte, bool)
Calls native function gst_buffer_add_audio_level_meta. Version: 1.20
[Version("1.20")]
public static extern AudioLevelMetaUnownedHandle BufferAddAudioLevelMeta(BufferHandle buffer, byte level, bool voiceActivity)
Parameters
buffer
BufferHandleTransfer ownership: None Nullable: False
level
byteTransfer ownership: None Nullable: False
voiceActivity
boolTransfer ownership: None Nullable: False
Returns
- AudioLevelMetaUnownedHandle
Transfer ownership: None Nullable: True
BufferAddAudioMeta(BufferHandle, AudioInfoHandle, nuint, ref nuint)
Calls native function gst_buffer_add_audio_meta. Version: 1.16
[Version("1.16")]
public static extern AudioMetaUnownedHandle BufferAddAudioMeta(BufferHandle buffer, AudioInfoHandle info, nuint samples, ref nuint offsets)
Parameters
buffer
BufferHandleTransfer ownership: None Nullable: False
info
AudioInfoHandleTransfer ownership: None Nullable: False
samples
nuintTransfer ownership: None Nullable: False
offsets
nuintTransfer ownership: None Nullable: True
Returns
- AudioMetaUnownedHandle
Transfer ownership: None Nullable: False
BufferGetAudioDownmixMetaForChannels(BufferHandle, AudioChannelPosition[], int)
Calls native function gst_buffer_get_audio_downmix_meta_for_channels.
public static extern AudioDownmixMetaUnownedHandle BufferGetAudioDownmixMetaForChannels(BufferHandle buffer, AudioChannelPosition[] toPosition, int toChannels)
Parameters
buffer
BufferHandleTransfer ownership: None Nullable: False
toPosition
AudioChannelPosition[]Transfer ownership: None Nullable: False
toChannels
intTransfer ownership: None Nullable: False
Returns
- AudioDownmixMetaUnownedHandle
Transfer ownership: None Nullable: False
BufferGetAudioLevelMeta(BufferHandle)
Calls native function gst_buffer_get_audio_level_meta. Version: 1.20
[Version("1.20")]
public static extern AudioLevelMetaUnownedHandle BufferGetAudioLevelMeta(BufferHandle buffer)
Parameters
buffer
BufferHandleTransfer ownership: None Nullable: False
Returns
- AudioLevelMetaUnownedHandle
Transfer ownership: None Nullable: True
StreamVolumeConvertVolume(StreamVolumeFormat, StreamVolumeFormat, double)
Calls native function gst_stream_volume_convert_volume.
public static extern double StreamVolumeConvertVolume(StreamVolumeFormat from, StreamVolumeFormat to, double val)
Parameters
from
StreamVolumeFormatTransfer ownership: None Nullable: False
to
StreamVolumeFormatTransfer ownership: None Nullable: False
val
doubleTransfer ownership: None Nullable: False
Returns
- double
Transfer ownership: None Nullable: False