Table of Contents

Class VideoDecoder

Namespace
GstVideo.Internal
Assembly
GstVideo-1.0.dll
public class VideoDecoder
Inheritance
VideoDecoder
Inherited Members

Methods

AddToFrame(IntPtr, int)

Calls native method gst_video_decoder_add_to_frame.

public static extern void AddToFrame(IntPtr decoder, int nBytes)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

nBytes int

Transfer ownership: None Nullable: False

AllocateOutputBuffer(IntPtr)

Calls native method gst_video_decoder_allocate_output_buffer.

public static extern BufferOwnedHandle AllocateOutputBuffer(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

BufferOwnedHandle

Transfer ownership: Full Nullable: True

AllocateOutputFrame(IntPtr, VideoCodecFrameHandle)

Calls native method gst_video_decoder_allocate_output_frame.

public static extern FlowReturn AllocateOutputFrame(IntPtr decoder, VideoCodecFrameHandle frame)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameHandle

Transfer ownership: None Nullable: False

Returns

FlowReturn

Transfer ownership: None Nullable: False

AllocateOutputFrameWithParams(IntPtr, VideoCodecFrameHandle, BufferPoolAcquireParamsHandle)

Calls native method gst_video_decoder_allocate_output_frame_with_params. Version: 1.12

[Version("1.12")]
public static extern FlowReturn AllocateOutputFrameWithParams(IntPtr decoder, VideoCodecFrameHandle frame, BufferPoolAcquireParamsHandle @params)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameHandle

Transfer ownership: None Nullable: False

params BufferPoolAcquireParamsHandle

Returns

FlowReturn

Transfer ownership: None Nullable: False

DropFrame(IntPtr, VideoCodecFrameUnownedHandle)

Calls native method gst_video_decoder_drop_frame.

public static extern FlowReturn DropFrame(IntPtr dec, VideoCodecFrameUnownedHandle frame)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameUnownedHandle

Transfer ownership: Full Nullable: False

Returns

FlowReturn

Transfer ownership: None Nullable: False

DropSubframe(IntPtr, VideoCodecFrameUnownedHandle)

Calls native method gst_video_decoder_drop_subframe. Version: 1.20

[Version("1.20")]
public static extern FlowReturn DropSubframe(IntPtr dec, VideoCodecFrameUnownedHandle frame)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameUnownedHandle

Transfer ownership: Full Nullable: False

Returns

FlowReturn

Transfer ownership: None Nullable: False

FinishFrame(IntPtr, VideoCodecFrameUnownedHandle)

Calls native method gst_video_decoder_finish_frame.

public static extern FlowReturn FinishFrame(IntPtr decoder, VideoCodecFrameUnownedHandle frame)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameUnownedHandle

Transfer ownership: Full Nullable: False

Returns

FlowReturn

Transfer ownership: None Nullable: False

FinishSubframe(IntPtr, VideoCodecFrameUnownedHandle)

Calls native method gst_video_decoder_finish_subframe. Version: 1.20

[Version("1.20")]
public static extern FlowReturn FinishSubframe(IntPtr decoder, VideoCodecFrameUnownedHandle frame)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameUnownedHandle

Transfer ownership: Full Nullable: False

Returns

FlowReturn

Transfer ownership: None Nullable: False

GetBufferPool(IntPtr)

Calls native method gst_video_decoder_get_buffer_pool.

public static extern IntPtr GetBufferPool(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

GetEstimateRate(IntPtr)

Calls native method gst_video_decoder_get_estimate_rate.

public static extern int GetEstimateRate(IntPtr dec)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetFrame(IntPtr, int)

Calls native method gst_video_decoder_get_frame.

public static extern VideoCodecFrameOwnedHandle GetFrame(IntPtr decoder, int frameNumber)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frameNumber int

Transfer ownership: None Nullable: False

Returns

VideoCodecFrameOwnedHandle

Transfer ownership: Full Nullable: True

GetFrames(IntPtr)

Calls native method gst_video_decoder_get_frames.

public static extern ListOwnedHandle GetFrames(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

ListOwnedHandle

Transfer ownership: Full Nullable: False

GetGType()

Calls native function gst_video_decoder_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetInputSubframeIndex(IntPtr, VideoCodecFrameHandle)

Calls native method gst_video_decoder_get_input_subframe_index. Version: 1.20

[Version("1.20")]
public static extern uint GetInputSubframeIndex(IntPtr decoder, VideoCodecFrameHandle frame)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetLatency(IntPtr, out ClockTime, out ClockTime)

Calls native method gst_video_decoder_get_latency.

public static extern void GetLatency(IntPtr decoder, out ClockTime minLatency, out ClockTime maxLatency)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

minLatency ClockTime

Transfer ownership: Full Nullable: False

maxLatency ClockTime

Transfer ownership: Full Nullable: False

GetMaxDecodeTime(IntPtr, VideoCodecFrameHandle)

Calls native method gst_video_decoder_get_max_decode_time.

public static extern long GetMaxDecodeTime(IntPtr decoder, VideoCodecFrameHandle frame)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameHandle

Transfer ownership: None Nullable: False

Returns

long

Transfer ownership: None Nullable: False

GetMaxErrors(IntPtr)

Calls native method gst_video_decoder_get_max_errors.

public static extern int GetMaxErrors(IntPtr dec)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetNeedsFormat(IntPtr)

Calls native method gst_video_decoder_get_needs_format. Version: 1.4

[Version("1.4")]
public static extern bool GetNeedsFormat(IntPtr dec)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetNeedsSyncPoint(IntPtr)

Calls native method gst_video_decoder_get_needs_sync_point. Version: 1.20

[Version("1.20")]
public static extern bool GetNeedsSyncPoint(IntPtr dec)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetOldestFrame(IntPtr)

Calls native method gst_video_decoder_get_oldest_frame.

public static extern VideoCodecFrameOwnedHandle GetOldestFrame(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

VideoCodecFrameOwnedHandle

Transfer ownership: Full Nullable: True

GetOutputState(IntPtr)

Calls native method gst_video_decoder_get_output_state.

public static extern VideoCodecStateOwnedHandle GetOutputState(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

VideoCodecStateOwnedHandle

Transfer ownership: Full Nullable: True

GetPacketized(IntPtr)

Calls native method gst_video_decoder_get_packetized.

public static extern bool GetPacketized(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetPendingFrameSize(IntPtr)

Calls native method gst_video_decoder_get_pending_frame_size. Version: 1.4

[Version("1.4")]
public static extern nuint GetPendingFrameSize(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

GetProcessedSubframeIndex(IntPtr, VideoCodecFrameHandle)

Calls native method gst_video_decoder_get_processed_subframe_index. Version: 1.20

[Version("1.20")]
public static extern uint GetProcessedSubframeIndex(IntPtr decoder, VideoCodecFrameHandle frame)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetQosProportion(IntPtr)

Calls native method gst_video_decoder_get_qos_proportion. Version: 1.0.3

[Version("1.0.3")]
public static extern double GetQosProportion(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetSubframeMode(IntPtr)

Calls native method gst_video_decoder_get_subframe_mode. Version: 1.20

[Version("1.20")]
public static extern bool GetSubframeMode(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

HaveFrame(IntPtr)

Calls native method gst_video_decoder_have_frame.

public static extern FlowReturn HaveFrame(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

FlowReturn

Transfer ownership: None Nullable: False

HaveLastSubframe(IntPtr, VideoCodecFrameHandle)

Calls native method gst_video_decoder_have_last_subframe. Version: 1.20

[Version("1.20")]
public static extern FlowReturn HaveLastSubframe(IntPtr decoder, VideoCodecFrameHandle frame)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameHandle

Transfer ownership: None Nullable: False

Returns

FlowReturn

Transfer ownership: None Nullable: False

MergeTags(IntPtr, TagListHandle, TagMergeMode)

Calls native method gst_video_decoder_merge_tags.

public static extern void MergeTags(IntPtr decoder, TagListHandle tags, TagMergeMode mode)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

tags TagListHandle

Transfer ownership: None Nullable: True

mode TagMergeMode

Transfer ownership: None Nullable: False

Negotiate(IntPtr)

Calls native method gst_video_decoder_negotiate.

public static extern bool Negotiate(IntPtr decoder)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ProxyGetcaps(IntPtr, CapsHandle, CapsHandle)

Calls native method gst_video_decoder_proxy_getcaps. Version: 1.6

[Version("1.6")]
public static extern CapsOwnedHandle ProxyGetcaps(IntPtr decoder, CapsHandle caps, CapsHandle filter)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

caps CapsHandle

Transfer ownership: None Nullable: True

filter CapsHandle

Transfer ownership: None Nullable: True

Returns

CapsOwnedHandle

Transfer ownership: Full Nullable: False

ReleaseFrame(IntPtr, VideoCodecFrameUnownedHandle)

Calls native method gst_video_decoder_release_frame. Version: 1.2.2

[Version("1.2.2")]
public static extern void ReleaseFrame(IntPtr dec, VideoCodecFrameUnownedHandle frame)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameUnownedHandle

Transfer ownership: Full Nullable: False

RequestSyncPoint(IntPtr, VideoCodecFrameHandle, VideoDecoderRequestSyncPointFlags)

Calls native method gst_video_decoder_request_sync_point. Version: 1.20

[Version("1.20")]
public static extern void RequestSyncPoint(IntPtr dec, VideoCodecFrameHandle frame, VideoDecoderRequestSyncPointFlags flags)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

frame VideoCodecFrameHandle

Transfer ownership: None Nullable: False

flags VideoDecoderRequestSyncPointFlags

Transfer ownership: None Nullable: False

SetEstimateRate(IntPtr, bool)

Calls native method gst_video_decoder_set_estimate_rate.

public static extern void SetEstimateRate(IntPtr dec, bool enabled)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

enabled bool

Transfer ownership: None Nullable: False

SetInterlacedOutputState(IntPtr, VideoFormat, VideoInterlaceMode, uint, uint, VideoCodecStateHandle)

Calls native method gst_video_decoder_set_interlaced_output_state. Version: 1.16.

[Version("1.16.")]
public static extern VideoCodecStateOwnedHandle SetInterlacedOutputState(IntPtr decoder, VideoFormat fmt, VideoInterlaceMode interlaceMode, uint width, uint height, VideoCodecStateHandle reference)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

fmt VideoFormat

Transfer ownership: None Nullable: False

interlaceMode VideoInterlaceMode

Transfer ownership: None Nullable: False

width uint

Transfer ownership: None Nullable: False

height uint

Transfer ownership: None Nullable: False

reference VideoCodecStateHandle

Transfer ownership: None Nullable: True

Returns

VideoCodecStateOwnedHandle

Transfer ownership: Full Nullable: True

SetLatency(IntPtr, ClockTime, ClockTime)

Calls native method gst_video_decoder_set_latency.

public static extern void SetLatency(IntPtr decoder, ClockTime minLatency, ClockTime maxLatency)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

minLatency ClockTime

Transfer ownership: None Nullable: False

maxLatency ClockTime

Transfer ownership: None Nullable: False

SetMaxErrors(IntPtr, int)

Calls native method gst_video_decoder_set_max_errors.

public static extern void SetMaxErrors(IntPtr dec, int num)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

num int

Transfer ownership: None Nullable: False

SetNeedsFormat(IntPtr, bool)

Calls native method gst_video_decoder_set_needs_format. Version: 1.4

[Version("1.4")]
public static extern void SetNeedsFormat(IntPtr dec, bool enabled)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

enabled bool

Transfer ownership: None Nullable: False

SetNeedsSyncPoint(IntPtr, bool)

Calls native method gst_video_decoder_set_needs_sync_point. Version: 1.20

[Version("1.20")]
public static extern void SetNeedsSyncPoint(IntPtr dec, bool enabled)

Parameters

dec IntPtr

Transfer ownership: None Nullable: False

enabled bool

Transfer ownership: None Nullable: False

SetOutputState(IntPtr, VideoFormat, uint, uint, VideoCodecStateHandle)

Calls native method gst_video_decoder_set_output_state.

public static extern VideoCodecStateOwnedHandle SetOutputState(IntPtr decoder, VideoFormat fmt, uint width, uint height, VideoCodecStateHandle reference)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

fmt VideoFormat

Transfer ownership: None Nullable: False

width uint

Transfer ownership: None Nullable: False

height uint

Transfer ownership: None Nullable: False

reference VideoCodecStateHandle

Transfer ownership: None Nullable: True

Returns

VideoCodecStateOwnedHandle

Transfer ownership: Full Nullable: True

SetPacketized(IntPtr, bool)

Calls native method gst_video_decoder_set_packetized.

public static extern void SetPacketized(IntPtr decoder, bool packetized)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

packetized bool

Transfer ownership: None Nullable: False

SetSubframeMode(IntPtr, bool)

Calls native method gst_video_decoder_set_subframe_mode. Version: 1.20

[Version("1.20")]
public static extern void SetSubframeMode(IntPtr decoder, bool subframeMode)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

subframeMode bool

Transfer ownership: None Nullable: False

SetUseDefaultPadAcceptcaps(IntPtr, bool)

Calls native method gst_video_decoder_set_use_default_pad_acceptcaps. Version: 1.6

[Version("1.6")]
public static extern void SetUseDefaultPadAcceptcaps(IntPtr decoder, bool use)

Parameters

decoder IntPtr

Transfer ownership: None Nullable: False

use bool

Transfer ownership: None Nullable: False