created widget bridge

This commit is contained in:
itsmattkc
2019-08-04 10:00:29 +10:00
parent e5481b19f5
commit fb8d5df24b
7 changed files with 194 additions and 82 deletions
+18 -2
View File
@@ -22,6 +22,8 @@
#include <QDebug>
#include "project/item/footage/footage.h"
MediaInput::MediaInput() :
texture_(nullptr)
{
@@ -63,9 +65,23 @@ void MediaInput::Process(const rational &time)
{
// FIXME: Use OIIO and OCIO here
// FIXME: Test code
Q_UNUSED(time)
// Get currently selected Footage
Footage* footage = ValueToPtr<Footage>(footage_input_->get_value(time));
// If no footage is selected, return nothing
if (footage == nullptr) {
texture_output_->set_value(0);
return;
}
// Otherwise try to get frame of footage from decoder
// Determine which decoder to use
// Grab frame from decoder
// FIXME: Test code
if (texture_ == nullptr) {
QImage img("/home/matt/Desktop/oof.png");