Click or drag to resize
PresentationBuffer Class
The PresentationBuffer helps re-ordering pictures based on their presentation time. This is necessary when DTS are not equal to PTS.
Inheritance Hierarchy
SystemObject
  StreamCodersPresentationBuffer

Namespace: StreamCoders
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class PresentationBuffer

The PresentationBuffer type exposes the following members.

Constructors
  NameDescription
Public methodPresentationBuffer
Initializes a new instance of the PresentationBuffer class. The OutputQueue with the default constructor does not have a Count limit.
Public methodPresentationBuffer(Int32)
Initializes a new instance of the PresentationBuffer class.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of items current held in the presentation buffer.
Public propertyCurrentReorderDelay
Current re-order delay of the presentation buffer.
Public propertyMaximumReorderDelay
The maximum delay introduced when re-ordering of pictures in the presentation is necessary.
Top
Methods
Fields
  NameDescription
Public fieldOutputQueue
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

In scenarios with B-Frames it is necessary to re-order pictures from decode order to presentation order.

PresentationBuffer automatically detects non-monotonically increasing presentation times and introduces an artificial delay in the playout so that the most recent decoded frames can be ordered correctly.

At best the presentation buffer introduces a delay of 1 frame, at worst it can be up to 16 frames for H.264 when using B-Frames or in general with any decoder, it can introduce a delay of the IPB-frame distance.

See Also