Click or drag to resize
MediaBufferT Class
MediaBuffer class holds buffering information for various media types.
Inheritance Hierarchy
SystemObject
  StreamCodersMediaBufferT
    StreamCodersAudioMediaBuffer
    StreamCodersPictureMediaBuffer

Namespace: StreamCoders
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class MediaBuffer<T> : IMediaBuffer<T>
where T : struct, new()

Type Parameters

T
Element type.

The MediaBufferT type exposes the following members.

Constructors
  NameDescription
Public methodMediaBufferT
Default constructor.
Public methodMediaBufferT(Int32)
Creates a buffer of type T with certain size.
Public methodMediaBufferT(T)
Creates a MediaBuffer by passing an external array. This buffer will not be associated with a LockableRingBuffer.
Public methodMediaBufferT(OffsetBufferT)
Constructs a MediaBuffer from an OffsetBuffer. This buffer will not be associated with a LockableRingBuffer.
Public methodMediaBufferT(T, Int32, Int32)
Creates a MediaBuffer by passing an external array. This buffer will not be associated with a LockableRingBuffer.
Public methodMediaBufferT(T, TimeSpan, TimeSpan)
Creates a MediaBuffer by passing an external array. This buffer will not be associated with a LockableRingBuffer.
Public methodMediaBufferT(OffsetBufferT, TimeSpan, TimeSpan)
Constructs a MediaBuffer from an OffsetBuffer. This buffer will not be associated with a LockableRingBuffer.
Public methodMediaBufferT(T, Int32, Int32, Double, Double)
Creates a MediaBuffer by passing an external array. This buffer will not be associated with a LockableRingBuffer.
Public methodMediaBufferT(T, Int32, Int32, TimeSpan, TimeSpan)
Creates a MediaBuffer by passing an external array. This buffer will not be associated with a LockableRingBuffer.
Top
Properties
  NameDescription
Public propertyCreationTime
Time of buffer creation.
Public propertyDuration
Media time (Duration). Effectively EndTime - StartTime
Public propertyProcessingTime
Top
Methods
  NameDescription
Public methodCopyMetaDataFrom
Copies meta data from a source MediaBuffer. This includes: StartTime, EndTime, IsKeyframe, PackageType, ExtendedInfo. Not included: OffsetBuffer.
Public methodDeepCopy
Creates a deep copy of MediaBuffer by cloning the OffsetBuffer and meta data. Exceptions are: ExtendedInfo and when a MediaBuffer is locked, then the lock state will remain unlocked (unacquired).
Public methodResetVariables
Resets StartTime, EndTime, Duration, Buffer.Offset to 0.
Public methodToString
Convert this instance into a string representation.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldBuffer
Holds elements relevant to MediaBuffer.
Public fieldEndTime
Media time (End). In most cases this represents the presentation time + duration.
Public fieldExtendedInfo
Is used to store additional/custom information within the buffer.
Public fieldIsDiscontinuity
Indicates that there was a discontinuity in the stream. This flag is passed to decoders.
Public fieldIsKeyFrame
true if this instance is key frame.
Public fieldPackageType
Describes the content of this buffer.
Public fieldStartTime
Media time (Start). In most cases this represents the presentation time.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
Remarks
MediaBuffer can be derived from and used in conjunction with LockableRingBuffer.
See Also

Reference

StreamCodersIMediaBufferT