mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Unify TV screen (5)
This commit is contained in:
parent
6109be8eeb
commit
35138b0e93
@ -278,6 +278,7 @@ ATVDemodGUI::ATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, Base
|
||||
m_inputSampleRate(48000)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->screenTV->setColor(false);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
||||
|
||||
|
@ -260,6 +260,7 @@ DATVDemodGUI::DATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, Ba
|
||||
m_blnDoApplySettings(true)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->screenTV->setColor(true);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
||||
|
||||
|
@ -42,6 +42,7 @@ public:
|
||||
GLShaderTVArray(bool blnColor);
|
||||
~GLShaderTVArray();
|
||||
|
||||
void setColor(bool blnColor) { m_blnColor = blnColor; }
|
||||
void InitializeGL(int intCols, int intRows);
|
||||
void ResizeContainer(int intCols, int intRows);
|
||||
void Cleanup();
|
||||
|
@ -50,6 +50,11 @@ TVScreen::~TVScreen()
|
||||
cleanup();
|
||||
}
|
||||
|
||||
void TVScreen::setColor(bool blnColor)
|
||||
{
|
||||
m_objGLShaderArray.setColor(blnColor);
|
||||
}
|
||||
|
||||
QRgb* TVScreen::getRowBuffer(int intRow)
|
||||
{
|
||||
if (!m_blnGLContextInitialized)
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
TVScreen(bool blnColor, QWidget* parent = 0);
|
||||
~TVScreen();
|
||||
|
||||
void setColor(bool blnColor);
|
||||
void resizeTVScreen(int intCols, int intRows);
|
||||
void renderImage(unsigned char * objData);
|
||||
QRgb* getRowBuffer(int intRow);
|
||||
|
Loading…
Reference in New Issue
Block a user