MCPcopy Create free account
hub / github.com/cisco/openh264 / GetTimestampForRc

Function GetTimestampForRc

codec/encoder/core/src/ratectl.cpp:1581–1586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581long long GetTimestampForRc (const long long uiTimeStamp, const long long uiLastTimeStamp, const float fFrameRate) {
1582 if ((uiLastTimeStamp >= uiTimeStamp) || ((uiTimeStamp == 0) && (uiLastTimeStamp != -1))) {
1583 return (uiLastTimeStamp + (int32_t) (1000.0 / fFrameRate));
1584 }
1585 return uiTimeStamp;
1586}
1587
1588}//end of namespace

Callers 1

WelsEncoderEncodeExtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected