The TestCardPreview class renders test card patterns locally at 25 Hz.
More...
#include <testcard_preview.h>
|
|
void | startPreview () |
| | Start playing the preview at 25 Hz.
|
|
void | stopPreview () |
| | Stop the preview.
|
| void | setPattern (int index) |
| | Change the test card pattern.
|
| void | setWidth (int width) |
| | Change the preview resolution width.
|
| void | setHeight (int height) |
| | Change the preview resolution height.
|
|
| bool | eventFilter (QObject *obj, QEvent *event) override |
| | Event filter to handle resize events on the preview view.
|
|
|
void | renderFrame () |
| | Timer callback to render the next frame.
|
|
|
void | generateTestCard () |
| | Generate the test card into the buffer.
|
|
|
Ui::Dialog & | m_ui |
| | The main UI reference.
|
|
QTimer | m_timer |
| | Timer for 25 Hz frame updates.
|
|
QGraphicsScene * | m_scene = nullptr |
| | The graphics scene.
|
|
QGraphicsPixmapItem * | m_pixmapItem = nullptr |
| | The pixmap item in the scene.
|
|
std::vector< uint8_t > | m_buffer |
| | Raw pixel buffer (RGB24).
|
|
int | m_pattern = 0 |
| | Current test card pattern index.
|
|
uint32_t | m_width = 640 |
| | Preview width.
|
|
uint32_t | m_height = 480 |
| | Preview height.
|
|
bool | m_running = false |
| | Whether preview is running.
|
|
uint64_t | m_frameCount = 0 |
| | Frame counter for animated patterns.
|
|
mediax::rtp::TestCardState | m_state |
| | Animation state carried between frames.
|
The TestCardPreview class renders test card patterns locally at 25 Hz.
◆ TestCardPreview()
| TestCardPreview::TestCardPreview |
( |
Ui::Dialog & | ui, |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
Construct a new TestCardPreview object.
- Parameters
-
| ui | Reference to the main UI |
| parent | Optional parent widget |
◆ eventFilter()
| bool TestCardPreview::eventFilter |
( |
QObject * | obj, |
|
|
QEvent * | event ) |
|
overrideprotected |
Event filter to handle resize events on the preview view.
- Parameters
-
| obj | The object that received the event |
| event | The event |
- Returns
- true if the event was handled
◆ setHeight
| void TestCardPreview::setHeight |
( |
int | height | ) |
|
|
slot |
Change the preview resolution height.
- Parameters
-
| height | The height in pixels |
◆ setPattern
| void TestCardPreview::setPattern |
( |
int | index | ) |
|
|
slot |
Change the test card pattern.
- Parameters
-
◆ setWidth
| void TestCardPreview::setWidth |
( |
int | width | ) |
|
|
slot |
Change the preview resolution width.
- Parameters
-
The documentation for this class was generated from the following files: