Skip to content
Snippets Groups Projects
Commit e3761e9e authored by Philippe Gorley's avatar Philippe Gorley
Browse files

video: add hardware decoding setting to lrc

Change-Id: I4d2659e6798b9ea461d1e214b89da20e0c26f878
parent cfa94b5b
Branches
No related tags found
No related merge requests found
......@@ -210,6 +210,16 @@ public Q_SLOTS: // METHODS
#endif
}
bool getDecodingAccelerated()
{
return DRing::getDecodingAccelerated();
}
void setDecodingAccelerated(bool state)
{
DRing::setDecodingAccelerated(state);
}
Q_SIGNALS: // SIGNALS
void deviceEvent();
void startedDecoding(const QString &id, const QString &shmPath, int width, int height, bool isMixer);
......
......@@ -28,6 +28,7 @@
#include <video/channel.h>
#include <video/resolution.h>
#include <video/rate.h>
#include <dbus/videomanager.h>
namespace ConfigurationProxyPrivate {
static QIdentityProxyModel* m_spDeviceModel = nullptr;
......@@ -291,3 +292,15 @@ QItemSelectionModel& Video::ConfigurationProxy::rateSelectionModel()
}
return *ConfigurationProxyPrivate::m_spRateSelectionModel;
}
bool Video::ConfigurationProxy::getDecodingAccelerated()
{
VideoManagerInterface& interface = VideoManager::instance();
return interface.getDecodingAccelerated();
}
void Video::ConfigurationProxy::setDecodingAccelerated(bool state)
{
VideoManagerInterface& interface = VideoManager::instance();
interface.setDecodingAccelerated(state);
}
......@@ -41,6 +41,9 @@ public:
static QItemSelectionModel& channelSelectionModel ();
static QItemSelectionModel& resolutionSelectionModel();
static QItemSelectionModel& rateSelectionModel ();
static bool getDecodingAccelerated();
static void setDecodingAccelerated(bool state);
};
} //namespace Video
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment