Fields (4) Methods (6) Properties (1)
Namespace: CSCore.DMO

Syntax

public struct DmoOutputDataBuffer : IDisposable, ValueType

Base Type

  • System.ValueType

Implements

  • System.IDisposable

Summary

Represents a Dmo output data buffer. For more details see .

Uses

Used by

Fields

Buffer

Pointer to the IMediaBuffer interface of a buffer allocated by the application.

public  IMediaBuffer Buffer

Status

Status flags. After processing output, the DMO sets this member to a bitwise combination of None or more OutputDataBufferFlags flags.

public  OutputDataBufferFlags Status

TimeLength

Reference time specifying the length of the data in the buffer. If the DMO sets this member to a valid value, it also sets the TimeLength flag in the dwStatus member. Otherwise, ignore this member.

public  Int64 TimeLength

Timestamp

Time stamp that specifies the start time of the data in the buffer. If the buffer has a valid time stamp, the DMO sets this member and also sets the Time flag in the dwStatus member. Otherwise, ignore this member.

public  Int64 Timestamp

Methods

DmoOutputDataBuffer()

Represents a Dmo output data buffer. For more details see .

public void DmoOutputDataBuffer()

DmoOutputDataBuffer(Int32 bufferSize)

Initializes a new instance of the DmoOutputDataBuffer struct.

public void DmoOutputDataBuffer(Int32 bufferSize)

Parameters

bufferSize

Int32

The maxlength (in bytes) of the internally used MediaBuffer.

Dispose()

Disposes the internally used MediaBuffer.

public void Dispose()

Read(Byte[] buffer, Int32 offset)

Reads a sequence of bytes from the MediaBuffer.

public void Read(Byte[] buffer, Int32 offset)

Parameters

buffer

Byte[]

Array of bytes to store the read bytes in.

offset

Int32

Zero-based byte offset in the specified buffer at which to begin storing the data read from the buffer.

Returns

The number of read bytes.

Read(Byte[] buffer, Int32 offset, Int32 count)

Reads a sequence of bytes from the MediaBuffer.

public Int32 Read(Byte[] buffer, Int32 offset, Int32 count)

Parameters

buffer

Byte[]

Array of bytes to store the read bytes in.

offset

Int32

Zero-based byte offset in the specified buffer at which to begin storing the data read from the buffer.

count

Int32

The maximum number of bytes to read from the buffer.

Returns

The number of read bytes.

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom

Reset()

Resets the Buffer. Sets the length of the MediaBuffer to zero and sets the Status to None.

public void Reset()

Properties

Length

Gets the length of the MediaBuffer.

public Int32 Length { get; }