SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <tvscreen.h>
Signals | |
void | traceSizeChanged (int) |
void | sampleRateChanged (int) |
Public Member Functions | |
TVScreen (bool blnColor, QWidget *parent=0) | |
virtual | ~TVScreen () |
void | setColor (bool blnColor) |
void | resizeTVScreen (int intCols, int intRows) |
void | getSize (int &intCols, int &intRows) const |
void | renderImage (unsigned char *objData) |
QRgb * | getRowBuffer (int intRow) |
void | resetImage () |
void | resetImage (int alpha) |
bool | selectRow (int intLine) |
bool | setDataColor (int intCol, int intRed, int intGreen, int intBlue) |
bool | setDataColor (int intCol, int intRed, int intGreen, int intBlue, int intAlpha) |
void | setAlphaBlend (bool blnAlphaBlend) |
void | setAlphaReset () |
void | connectTimer (const QTimer &timer) |
Static Public Attributes | |
static const int | TV_COLS =256 |
static const int | TV_ROWS =256 |
Protected Slots | |
void | cleanup () |
void | tick () |
Private Member Functions | |
void | initializeGL () |
void | resizeGL (int width, int height) |
void | paintGL () |
void | mousePressEvent (QMouseEvent *) |
Private Attributes | |
bool | m_blnGLContextInitialized |
int | m_intAskedCols |
int | m_intAskedRows |
QTimer | m_objTimer |
QMutex | m_objMutex |
bool | m_blnDataChanged |
bool | m_blnConfigChanged |
GLShaderTVArray | m_objGLShaderArray |
int | m_cols |
int | m_rows |
unsigned char * | m_chrLastData |
Definition at line 39 of file tvscreen.h.
TVScreen::TVScreen | ( | bool | blnColor, |
QWidget * | parent = 0 |
||
) |
Definition at line 31 of file tvscreen.cpp.
References m_blnConfigChanged, m_blnDataChanged, m_blnGLContextInitialized, m_chrLastData, m_cols, m_intAskedCols, m_intAskedRows, m_objTimer, m_rows, tick(), TV_COLS, and TV_ROWS.
|
virtual |
Definition at line 50 of file tvscreen.cpp.
References cleanup().
|
protectedslot |
Definition at line 204 of file tvscreen.cpp.
References GLShaderTVArray::Cleanup(), m_blnGLContextInitialized, and m_objGLShaderArray.
Referenced by initializeGL(), and ~TVScreen().
void TVScreen::connectTimer | ( | const QTimer & | timer | ) |
Definition at line 196 of file tvscreen.cpp.
References m_objTimer, and tick().
QRgb * TVScreen::getRowBuffer | ( | int | intRow | ) |
Definition at line 60 of file tvscreen.cpp.
References GLShaderTVArray::GetRowBuffer(), m_blnGLContextInitialized, and m_objGLShaderArray.
void TVScreen::getSize | ( | int & | intCols, |
int & | intRows | ||
) | const |
Definition at line 95 of file tvscreen.cpp.
References m_cols, and m_rows.
Referenced by ScopeVisXY::feed().
|
private |
Definition at line 101 of file tvscreen.cpp.
References cleanup(), m_blnGLContextInitialized, and m_objMutex.
|
private |
Definition at line 184 of file tvscreen.cpp.
|
private |
Definition at line 165 of file tvscreen.cpp.
References GLShaderTVArray::InitializeGL(), m_blnDataChanged, m_chrLastData, m_intAskedCols, m_intAskedRows, m_objGLShaderArray, m_objMutex, and GLShaderTVArray::RenderPixels().
void TVScreen::renderImage | ( | unsigned char * | objData | ) |
Definition at line 70 of file tvscreen.cpp.
References m_blnDataChanged, and m_chrLastData.
Referenced by ScopeVisXY::feed(), ATVDemod::processClassic(), ATVDemod::processHSkip(), DATVideoRender::RenderStream(), leansdr::datvconstellation< leansdr::f32 >::run(), and leansdr::datvdvbs2constellation< leansdr::f32 >::run().
void TVScreen::resetImage | ( | ) |
Definition at line 76 of file tvscreen.cpp.
References m_objGLShaderArray, and GLShaderTVArray::ResetPixels().
Referenced by ScopeVisXY::feed(), DATVideoRender::RenderStream(), leansdr::datvconstellation< leansdr::f32 >::run(), and leansdr::datvdvbs2constellation< leansdr::f32 >::run().
void TVScreen::resetImage | ( | int | alpha | ) |
Definition at line 81 of file tvscreen.cpp.
References m_objGLShaderArray, and GLShaderTVArray::ResetPixels().
|
private |
void TVScreen::resizeTVScreen | ( | int | intCols, |
int | intRows | ||
) |
Definition at line 86 of file tvscreen.cpp.
References m_cols, m_intAskedCols, m_intAskedRows, and m_rows.
Referenced by ATVDemod::applySettings(), and DATVideoRender::RenderStream().
|
signal |
bool TVScreen::selectRow | ( | int | intLine | ) |
Definition at line 212 of file tvscreen.cpp.
References m_blnGLContextInitialized, m_objGLShaderArray, and GLShaderTVArray::SelectRow().
Referenced by ScopeVisXY::drawGraticule(), ScopeVisXY::feed(), ATVDemod::processClassic(), ATVDemod::processHSkip(), leansdr::datvconstellation< leansdr::f32 >::run(), and leansdr::datvdvbs2constellation< leansdr::f32 >::run().
|
inline |
Definition at line 59 of file tvscreen.h.
Referenced by ScopeVisXY::ScopeVisXY().
|
inline |
Definition at line 60 of file tvscreen.h.
Referenced by ScopeVisXY::setPixelsPerFrame().
void TVScreen::setColor | ( | bool | blnColor | ) |
Definition at line 55 of file tvscreen.cpp.
References m_objGLShaderArray, and GLShaderTVArray::setColor().
bool TVScreen::setDataColor | ( | int | intCol, |
int | intRed, | ||
int | intGreen, | ||
int | intBlue | ||
) |
Definition at line 224 of file tvscreen.cpp.
References m_blnGLContextInitialized, m_objGLShaderArray, and GLShaderTVArray::SetDataColor().
Referenced by ScopeVisXY::drawGraticule(), ScopeVisXY::feed(), ATVDemod::processClassic(), ATVDemod::processHSkip(), leansdr::datvconstellation< leansdr::f32 >::run(), and leansdr::datvdvbs2constellation< leansdr::f32 >::run().
bool TVScreen::setDataColor | ( | int | intCol, |
int | intRed, | ||
int | intGreen, | ||
int | intBlue, | ||
int | intAlpha | ||
) |
Definition at line 236 of file tvscreen.cpp.
References m_blnGLContextInitialized, m_objGLShaderArray, and GLShaderTVArray::SetDataColor().
|
protectedslot |
Definition at line 189 of file tvscreen.cpp.
References m_blnDataChanged.
Referenced by connectTimer(), and TVScreen().
|
signal |
|
private |
Definition at line 82 of file tvscreen.h.
Referenced by resizeGL(), and TVScreen().
|
private |
Definition at line 81 of file tvscreen.h.
Referenced by paintGL(), renderImage(), tick(), and TVScreen().
|
private |
Definition at line 73 of file tvscreen.h.
Referenced by cleanup(), getRowBuffer(), initializeGL(), selectRow(), setDataColor(), and TVScreen().
|
private |
Definition at line 95 of file tvscreen.h.
Referenced by paintGL(), renderImage(), and TVScreen().
|
private |
Definition at line 86 of file tvscreen.h.
Referenced by getSize(), resizeTVScreen(), and TVScreen().
|
private |
Definition at line 74 of file tvscreen.h.
Referenced by paintGL(), resizeTVScreen(), and TVScreen().
|
private |
Definition at line 75 of file tvscreen.h.
Referenced by paintGL(), resizeTVScreen(), and TVScreen().
|
private |
Definition at line 84 of file tvscreen.h.
Referenced by cleanup(), getRowBuffer(), paintGL(), resetImage(), selectRow(), setColor(), and setDataColor().
|
private |
Definition at line 80 of file tvscreen.h.
Referenced by initializeGL(), and paintGL().
|
private |
Definition at line 79 of file tvscreen.h.
Referenced by connectTimer(), and TVScreen().
|
private |
Definition at line 87 of file tvscreen.h.
Referenced by getSize(), resizeTVScreen(), and TVScreen().
|
static |
Definition at line 65 of file tvscreen.h.
Referenced by TVScreen().
|
static |
Definition at line 66 of file tvscreen.h.
Referenced by TVScreen().