mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-04 01:45:21 -04: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)
|
m_inputSampleRate(48000)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
ui->screenTV->setColor(false);
|
||||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
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)
|
m_blnDoApplySettings(true)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
ui->screenTV->setColor(true);
|
||||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ public:
|
|||||||
GLShaderTVArray(bool blnColor);
|
GLShaderTVArray(bool blnColor);
|
||||||
~GLShaderTVArray();
|
~GLShaderTVArray();
|
||||||
|
|
||||||
|
void setColor(bool blnColor) { m_blnColor = blnColor; }
|
||||||
void InitializeGL(int intCols, int intRows);
|
void InitializeGL(int intCols, int intRows);
|
||||||
void ResizeContainer(int intCols, int intRows);
|
void ResizeContainer(int intCols, int intRows);
|
||||||
void Cleanup();
|
void Cleanup();
|
||||||
|
@ -50,6 +50,11 @@ TVScreen::~TVScreen()
|
|||||||
cleanup();
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TVScreen::setColor(bool blnColor)
|
||||||
|
{
|
||||||
|
m_objGLShaderArray.setColor(blnColor);
|
||||||
|
}
|
||||||
|
|
||||||
QRgb* TVScreen::getRowBuffer(int intRow)
|
QRgb* TVScreen::getRowBuffer(int intRow)
|
||||||
{
|
{
|
||||||
if (!m_blnGLContextInitialized)
|
if (!m_blnGLContextInitialized)
|
||||||
|
@ -44,6 +44,7 @@ public:
|
|||||||
TVScreen(bool blnColor, QWidget* parent = 0);
|
TVScreen(bool blnColor, QWidget* parent = 0);
|
||||||
~TVScreen();
|
~TVScreen();
|
||||||
|
|
||||||
|
void setColor(bool blnColor);
|
||||||
void resizeTVScreen(int intCols, int intRows);
|
void resizeTVScreen(int intCols, int intRows);
|
||||||
void renderImage(unsigned char * objData);
|
void renderImage(unsigned char * objData);
|
||||||
QRgb* getRowBuffer(int intRow);
|
QRgb* getRowBuffer(int intRow);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user