MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / update

Method update

src/Abyss/Streams/VideoStream.cpp:250–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void VideoStream::update(const uint32_t ticks) {
251 _totalTicks += ticks;
252 while (_isPlaying) {
253 if (const auto diff = av_gettime() - _videoTimestamp; diff < _microsPerFrame)
254 break;
255
256 _videoTimestamp += _microsPerFrame;
257 while (!processFrame()) {
258 }
259 }
260}
261
262void VideoStream::render() const {
263 if (!_framesReady)

Callers 1

processEventsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected