-
-
Notifications
You must be signed in to change notification settings - Fork 41
Description
I am working on a sports video analysis tool with Qt. Decoded frames are stored in a FIFO FrameBus waiting to be processed. My approach currently consists in converting the mdk::VideoFrames to cv::Mat / QImage and pushing them on the FrameBus. Ideally, I'd like to keep the mdk::VideoFrame on the frameBus for some amount of time, so it can then be rendered later, typically through a render(mdk::VideoFrame &) method to keep the benefits of an efficient (in my case, OpenGL) rendering.
I believe the memory of a given VideoFrame is quickly invalid after the frame has been processed and rendered, so it would require a deep copy of the VideoFrame.
Therefore, a method to get a copy of the current frame, together with a method to render it later would be nice (unless there's a simple workaround). It could also be useful when creating a simple caching system to very quickly scrub through a sequence of images with the mouse/keyboard (without converting all of them to cv::Mat or QImage).
And, by the way, great work on this mdk-sdk :)