MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / Fps

Method Fps

examples/VulkanBenchmark.cpp:516–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514 }
515
516 double Fps() const {
517 const AVRational avg = stream_->avg_frame_rate.num > 0 ? stream_->avg_frame_rate : stream_->r_frame_rate;
518 if (avg.num <= 0 || avg.den <= 0)
519 return 30.0;
520 return av_q2d(avg);
521 }
522
523 int Width() const { return codec_context_ ? codec_context_->width : 0; }
524 int Height() const { return codec_context_ ? codec_context_->height : 0; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected