AVBlocks for .NET  1.20
Audio and Video Software Development Kit
MediaSample Class Reference

Represents one or more samples of media data. More...

Public Member Functions

 MediaSample ()
 Creates and empty sample. More...
 

Properties

MediaBuffer Buffer [get, set]
 The buffer storage. More...
 
double EndTime [get, set]
 The time when the media sample should end. More...
 
MediaSampleFlags Flags [get, set]
 Various properties of the media sample. More...
 
PictureType PictureType [get, set]
 The picture type (I/P/B/etc.) of a demuxed, decoded or encoded frame. More...
 
double StartTime [get, set]
 Presentation timestamp. More...
 
UnmanagedMediaBuffer UnmanagedBuffer [get, set]
 Used to push and pull unmanaged data to/from Transcoder. More...
 

Detailed Description

Represents one or more samples of media data.

Constructor & Destructor Documentation

Creates and empty sample.

Property Documentation

MediaBuffer Buffer
getset

The buffer storage.

See Also
MediaBuffer

Referenced by Transcoder.Push().

double EndTime
getset

The time when the media sample should end.

The EndTime is valid only if it is positive and greater than the StartTime. The default value -1.0

MediaSampleFlags Flags
getset

Various properties of the media sample.

See Also
MediaSampleFlags

The picture type (I/P/B/etc.) of a demuxed, decoded or encoded frame.

Currently this is returned only by the MPEG-2 encoder and is ignored by all encoders.

See Also
PictureType
double StartTime
getset

Presentation timestamp.

The StartTime is valid if it is 0 or greater than 0. The default value -1.0

UnmanagedMediaBuffer UnmanagedBuffer
getset

Used to push and pull unmanaged data to/from Transcoder.

See Also
Transcoder.PushUnmanaged, Transcoder.PullUnmanaged

Referenced by Transcoder.PullUnmanaged(), and Transcoder.PushUnmanaged().