svcore
1.9
|
RealTimeSV.cpp
Go to the documentation of this file.
148 cerr << "WARNING: This xsd:duration (\"" << xsdd << "\") contains a non-zero year.\nWith no origin and a limited data size, I will treat a year as exactly 31556952\nseconds and you should expect overflow and/or poor results." << endl;
153 cerr << "WARNING: This xsd:duration (\"" << xsdd << "\") contains a non-zero month.\nWith no origin and a limited data size, I will treat a month as exactly 2629746\nseconds and you should expect overflow and/or poor results." << endl;
static RealTime fromTimeval(const struct timeval &)
Definition: RealTimeSV.cpp:90
static RealTime fromString(std::string)
Convert a string as obtained from toString back to a RealTime object.
Definition: RealTimeSV.cpp:230
Definition: Preferences.h:97
static RealTime fromMilliseconds(int64_t msec)
Definition: RealTimeSV.cpp:64
static RealTime frame2RealTime(sv_frame_t frame, sv_samplerate_t sampleRate)
Convert a sample frame at the given sample rate into a RealTime.
Definition: RealTimeSV.cpp:498
static void writeSecPart(std::stringstream &out, bool hms, int sec)
Definition: RealTimeSV.cpp:307
std::ostream & operator<<(std::ostream &out, const RealTime &rt)
Definition: RealTimeSV.cpp:188
std::string toXsdDuration() const
Return a string in xsd:duration format.
Definition: RealTimeSV.cpp:424
std::string toString(bool align=false) const
Return a human-readable debug-type string to full precision (probably not a format to show to a user ...
Definition: RealTimeSV.cpp:213
Definition: Preferences.h:98
Definition: Preferences.h:93
Definition: Preferences.h:92
std::string toMSText(bool fixedDp, bool hms) const
Return a user-readable string to the nearest millisecond.
Definition: RealTimeSV.cpp:332
Definition: Preferences.h:94
std::string toSecText() const
Return a user-readable string to the nearest second, in H:M:S form.
Definition: RealTimeSV.cpp:406
static sv_frame_t realTime2Frame(const RealTime &r, sv_samplerate_t sampleRate)
Convert a RealTime into a sample frame at the given sample rate.
Definition: RealTimeSV.cpp:490
std::string toFrameText(int fps, bool hms, std::string frameDelimiter=":") const
Return a user-readable string in which seconds are divided into frames (presumably at a lower frame r...
Definition: RealTimeSV.cpp:367
std::string toText(bool fixedDp=false) const
Return a user-readable string to the nearest millisecond, typically in a form like HH:MM:SS...
Definition: RealTimeSV.cpp:274
static RealTime fromMicroseconds(int64_t usec)
Definition: RealTimeSV.cpp:77
Definition: Preferences.h:23
static RealTime fromXsdDuration(std::string xsdd)
Definition: RealTimeSV.cpp:96
Definition: Preferences.h:96
TimeToTextMode getTimeToTextMode() const
Definition: Preferences.h:100
static RealTime frame2RealTime_i(sv_frame_t frame, sv_frame_t iSampleRate)
Definition: RealTimeSV.cpp:476
Definition: Preferences.h:95
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...
Definition: RealTime.h:42
Generated by 1.8.11