SAFR Windows SDK
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
RealNetworks.CameraKit.Timestamp Struct Reference

A timestamp represents an absolute point in time on a (video stream) time line. A timestamp is based on a video frame presentation time stamp. It also stores the wall clock time that corresponds to the time when the video frame was decoded. More...

Inheritance diagram for RealNetworks.CameraKit.Timestamp:

Public Member Functions

 Timestamp (Microseconds microseconds)
 Creates a time stamp from the given microseconds value. More...
 
 Timestamp (long microseconds)
 Creates a time stamp from the given microseconds value. More...
 
override int GetHashCode ()
 
override string ToString ()
 
int CompareTo (Timestamp other)
 
override bool Equals (object obj)
 
bool Equals (Timestamp other)
 

Static Public Member Functions

static bool operator== (Timestamp lhs, Timestamp rhs)
 
static bool operator!= (Timestamp lhs, Timestamp rhs)
 
static bool operator< (Timestamp lhs, Timestamp rhs)
 
static bool operator<= (Timestamp lhs, Timestamp rhs)
 
static bool operator> (Timestamp lhs, Timestamp rhs)
 
static bool operator>= (Timestamp lhs, Timestamp rhs)
 
static Microseconds operator- (Timestamp lhs, Timestamp rhs)
 
static Microseconds operator- (Timestamp lhs, Microseconds rhs)
 

Static Public Attributes

static readonly Timestamp Zero = new Timestamp(0)
 
static readonly Timestamp MaxValue = new Timestamp(long.MaxValue)
 

Properties

Microseconds Microseconds [get]
 The video frame presentation time in microseconds. More...
 
DateTime Date [get]
 The video frame presentation time expressed as wall clock time. More...
 

Detailed Description

A timestamp represents an absolute point in time on a (video stream) time line. A timestamp is based on a video frame presentation time stamp. It also stores the wall clock time that corresponds to the time when the video frame was decoded.

Constructor & Destructor Documentation

◆ Timestamp() [1/2]

RealNetworks.CameraKit.Timestamp.Timestamp ( Microseconds  microseconds)

Creates a time stamp from the given microseconds value.

Parameters
microseconds

◆ Timestamp() [2/2]

RealNetworks.CameraKit.Timestamp.Timestamp ( long  microseconds)

Creates a time stamp from the given microseconds value.

Parameters
microseconds

Member Function Documentation

◆ CompareTo()

int RealNetworks.CameraKit.Timestamp.CompareTo ( Timestamp  other)

◆ Equals() [1/2]

override bool RealNetworks.CameraKit.Timestamp.Equals ( object  obj)

◆ Equals() [2/2]

bool RealNetworks.CameraKit.Timestamp.Equals ( Timestamp  other)

◆ GetHashCode()

override int RealNetworks.CameraKit.Timestamp.GetHashCode ( )

◆ operator!=()

static bool RealNetworks.CameraKit.Timestamp.operator!= ( Timestamp  lhs,
Timestamp  rhs 
)
static

◆ operator-() [1/2]

static Microseconds RealNetworks.CameraKit.Timestamp.operator- ( Timestamp  lhs,
Microseconds  rhs 
)
static

◆ operator-() [2/2]

static Microseconds RealNetworks.CameraKit.Timestamp.operator- ( Timestamp  lhs,
Timestamp  rhs 
)
static

◆ operator<()

static bool RealNetworks.CameraKit.Timestamp.operator< ( Timestamp  lhs,
Timestamp  rhs 
)
static

◆ operator<=()

static bool RealNetworks.CameraKit.Timestamp.operator<= ( Timestamp  lhs,
Timestamp  rhs 
)
static

◆ operator==()

static bool RealNetworks.CameraKit.Timestamp.operator== ( Timestamp  lhs,
Timestamp  rhs 
)
static

◆ operator>()

static bool RealNetworks.CameraKit.Timestamp.operator> ( Timestamp  lhs,
Timestamp  rhs 
)
static

◆ operator>=()

static bool RealNetworks.CameraKit.Timestamp.operator>= ( Timestamp  lhs,
Timestamp  rhs 
)
static

◆ ToString()

override string RealNetworks.CameraKit.Timestamp.ToString ( )

Member Data Documentation

◆ MaxValue

readonly Timestamp RealNetworks.CameraKit.Timestamp.MaxValue = new Timestamp(long.MaxValue)
static

◆ Zero

readonly Timestamp RealNetworks.CameraKit.Timestamp.Zero = new Timestamp(0)
static

Property Documentation

◆ Date

DateTime RealNetworks.CameraKit.Timestamp.Date
get

The video frame presentation time expressed as wall clock time.

◆ Microseconds

Microseconds RealNetworks.CameraKit.Timestamp.Microseconds
get

The video frame presentation time in microseconds.