Mp7Jrs  2.7.1
Mp7JrsSettings Class Reference

Mp7Jrs settings. More...

Static Public Member Functions

Constructors and Destructors
static Mp7JrsSettings & GetInstance ()

Public Attributes

bool TreatRelIncrTimeAsAbsolute
 Triggers special treatment of MediaTime in AVDP.

Detailed Description

Mp7Jrs settings.

A singleton class which contains all global settings. This class is NOT threadsafe.

Member Data Documentation

bool Mp7JrsSettings::TreatRelIncrTimeAsAbsolute

Triggers special treatment of MediaTime in AVDP.

In MPEG-7 V2 MediaTime offers a choice of MediaTimePoint, MediaRelTimePoint and MediaRelIncrTimePoint. In AVDP we only have MediaRelIncrTimePoint (+ and optional MediaIncrDuration)

Since we don't want an extra lib for AVDP the MediaTimePoint is used to retrieve the absolute timepoint calculated from the MediaRelIncrTimePoint and the mediaTimeUnit and mediaTimeBase taken from an outer DOM element (like AudioVisual). mediaTimeBase points to a MediaLocator, that now contains an absolute TimePoint so that MediaTimePoint (absolute) = MediaRelIncrTimePoint * mediaTimeUnit + mediaTimeBase (from MediaLocator) This behaviour is only available if Mp7JrsSettings.instance().TreatRelIncrTimeAsAbsolute is set to true.

Default setting: false.