Class AudioEncoder
public class AudioEncoder
- Inheritance
-
AudioEncoder
- Inherited Members
Methods
AllocateOutputBuffer(IntPtr, nuint)
Calls native method gst_audio_encoder_allocate_output_buffer.
public static extern BufferOwnedHandle AllocateOutputBuffer(IntPtr enc, nuint size)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
size
nuintTransfer ownership: None Nullable: False
Returns
- BufferOwnedHandle
Transfer ownership: Full Nullable: False
FinishFrame(IntPtr, BufferUnownedHandle, int)
Calls native method gst_audio_encoder_finish_frame.
public static extern FlowReturn FinishFrame(IntPtr enc, BufferUnownedHandle buffer, int samples)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
buffer
BufferUnownedHandleTransfer ownership: Full Nullable: True
samples
intTransfer ownership: None Nullable: False
Returns
- FlowReturn
Transfer ownership: None Nullable: False
GetAudioInfo(IntPtr)
Calls native method gst_audio_encoder_get_audio_info.
public static extern AudioInfoUnownedHandle GetAudioInfo(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- AudioInfoUnownedHandle
Transfer ownership: None Nullable: False
GetDrainable(IntPtr)
Calls native method gst_audio_encoder_get_drainable.
public static extern bool GetDrainable(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetFrameMax(IntPtr)
Calls native method gst_audio_encoder_get_frame_max.
public static extern int GetFrameMax(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetFrameSamplesMax(IntPtr)
Calls native method gst_audio_encoder_get_frame_samples_max.
public static extern int GetFrameSamplesMax(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetFrameSamplesMin(IntPtr)
Calls native method gst_audio_encoder_get_frame_samples_min.
public static extern int GetFrameSamplesMin(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetGType()
Calls native function gst_audio_encoder_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetHardMin(IntPtr)
Calls native method gst_audio_encoder_get_hard_min.
public static extern bool GetHardMin(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetHardResync(IntPtr)
Calls native method gst_audio_encoder_get_hard_resync.
public static extern bool GetHardResync(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetLatency(IntPtr, out ClockTime, out ClockTime)
Calls native method gst_audio_encoder_get_latency.
public static extern void GetLatency(IntPtr enc, out ClockTime min, out ClockTime max)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
min
ClockTimeTransfer ownership: Full Nullable: False
max
ClockTimeTransfer ownership: Full Nullable: False
GetLookahead(IntPtr)
Calls native method gst_audio_encoder_get_lookahead.
public static extern int GetLookahead(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetMarkGranule(IntPtr)
Calls native method gst_audio_encoder_get_mark_granule.
public static extern bool GetMarkGranule(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetPerfectTimestamp(IntPtr)
Calls native method gst_audio_encoder_get_perfect_timestamp.
public static extern bool GetPerfectTimestamp(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetTolerance(IntPtr)
Calls native method gst_audio_encoder_get_tolerance.
public static extern ulong GetTolerance(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- ulong
Transfer ownership: None Nullable: False
MergeTags(IntPtr, TagListHandle, TagMergeMode)
Calls native method gst_audio_encoder_merge_tags.
public static extern void MergeTags(IntPtr enc, TagListHandle tags, TagMergeMode mode)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
tags
TagListHandleTransfer ownership: None Nullable: True
mode
TagMergeModeTransfer ownership: None Nullable: False
Negotiate(IntPtr)
Calls native method gst_audio_encoder_negotiate.
public static extern bool Negotiate(IntPtr enc)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
ProxyGetcaps(IntPtr, CapsHandle, CapsHandle)
Calls native method gst_audio_encoder_proxy_getcaps.
public static extern CapsOwnedHandle ProxyGetcaps(IntPtr enc, CapsHandle caps, CapsHandle filter)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
caps
CapsHandleTransfer ownership: None Nullable: True
filter
CapsHandleTransfer ownership: None Nullable: True
Returns
- CapsOwnedHandle
Transfer ownership: Full Nullable: False
SetAllocationCaps(IntPtr, CapsHandle)
Calls native method gst_audio_encoder_set_allocation_caps. Version: 1.10
[Version("1.10")]
public static extern void SetAllocationCaps(IntPtr enc, CapsHandle allocationCaps)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
allocationCaps
CapsHandleTransfer ownership: None Nullable: True
SetDrainable(IntPtr, bool)
Calls native method gst_audio_encoder_set_drainable.
public static extern void SetDrainable(IntPtr enc, bool enabled)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
enabled
boolTransfer ownership: None Nullable: False
SetFrameMax(IntPtr, int)
Calls native method gst_audio_encoder_set_frame_max.
public static extern void SetFrameMax(IntPtr enc, int num)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
num
intTransfer ownership: None Nullable: False
SetFrameSamplesMax(IntPtr, int)
Calls native method gst_audio_encoder_set_frame_samples_max.
public static extern void SetFrameSamplesMax(IntPtr enc, int num)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
num
intTransfer ownership: None Nullable: False
SetFrameSamplesMin(IntPtr, int)
Calls native method gst_audio_encoder_set_frame_samples_min.
public static extern void SetFrameSamplesMin(IntPtr enc, int num)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
num
intTransfer ownership: None Nullable: False
SetHardMin(IntPtr, bool)
Calls native method gst_audio_encoder_set_hard_min.
public static extern void SetHardMin(IntPtr enc, bool enabled)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
enabled
boolTransfer ownership: None Nullable: False
SetHardResync(IntPtr, bool)
Calls native method gst_audio_encoder_set_hard_resync.
public static extern void SetHardResync(IntPtr enc, bool enabled)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
enabled
boolTransfer ownership: None Nullable: False
SetLatency(IntPtr, ClockTime, ClockTime)
Calls native method gst_audio_encoder_set_latency.
public static extern void SetLatency(IntPtr enc, ClockTime min, ClockTime max)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
min
ClockTimeTransfer ownership: None Nullable: False
max
ClockTimeTransfer ownership: None Nullable: False
SetLookahead(IntPtr, int)
Calls native method gst_audio_encoder_set_lookahead.
public static extern void SetLookahead(IntPtr enc, int num)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
num
intTransfer ownership: None Nullable: False
SetMarkGranule(IntPtr, bool)
Calls native method gst_audio_encoder_set_mark_granule.
public static extern void SetMarkGranule(IntPtr enc, bool enabled)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
enabled
boolTransfer ownership: None Nullable: False
SetOutputFormat(IntPtr, CapsHandle)
Calls native method gst_audio_encoder_set_output_format.
public static extern bool SetOutputFormat(IntPtr enc, CapsHandle caps)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
caps
CapsHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
SetPerfectTimestamp(IntPtr, bool)
Calls native method gst_audio_encoder_set_perfect_timestamp.
public static extern void SetPerfectTimestamp(IntPtr enc, bool enabled)
Parameters
enc
IntPtrTransfer ownership: None Nullable: False
enabled
boolTransfer ownership: None Nullable: False
SetTolerance(IntPtr, ClockTime)
Calls native method gst_audio_encoder_set_tolerance.
public static extern void SetTolerance(IntPtr enc, ClockTime tolerance)