37 VideoPlaybackThread::VideoPlaybackThread(RendererBase *rb)
38 : Thread(
"video-playback"), renderer(rb)
39 , render(), reset(false)
44 VideoPlaybackThread::~VideoPlaybackThread()
49 int64_t VideoPlaybackThread::getCurrentFramePosition()
58 void VideoPlaybackThread::run()
60 while (!threadShouldExit()) {
62 bool need_render = render.wait(500);
64 if (need_render &&
frame)
70 renderer->paint(
frame);
std::shared_ptr< Frame > frame
void AppendDebugMethod(std::string method_name, std::string arg1_name="", float arg1_value=-1.0, std::string arg2_name="", float arg2_value=-1.0, std::string arg3_name="", float arg3_value=-1.0, std::string arg4_name="", float arg4_value=-1.0, std::string arg5_name="", float arg5_value=-1.0, std::string arg6_name="", float arg6_value=-1.0)
Append debug information.
Source file for VideoPlaybackThread class.
static ZmqLogger * Instance()
Create or get an instance of this logger singleton (invoke the class with this method) ...
This namespace is the default namespace for all code in the openshot library.