add image rotation and flipping

This commit is contained in:
Maik Jurischka
2025-12-19 09:31:37 +01:00
parent bef80372b6
commit 705519ec39
4 changed files with 110 additions and 6 deletions

View File

@@ -31,6 +31,7 @@ void CameraControlWidget::setupUI()
scrollWidget->setLayout(scrollLayout);
scrollArea->setWidget(scrollWidget);
scrollWidget->setMaximumWidth(500);
mainLayout->addWidget(scrollArea);
@@ -48,6 +49,8 @@ QGroupBox* CameraControlWidget::createFormatGroup()
m_formatCombo = new QComboBox(this);
m_formatCombo->addItem("1280x720@30fps UYVY (Supported)", "1280,720,30,UYVY");
m_formatCombo->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
m_formatCombo->setMinimumContentsLength(20);
m_getFormatsBtn = new QPushButton("Get Available Formats", this);
m_setFormatBtn = new QPushButton("Set Format", this);
@@ -221,7 +224,7 @@ void CameraControlWidget::onGetFormats()
QString format = fmt["format"].toString();
QString displayText = QString("%1x%2@%3fps %4").arg(width, height, fps).arg(format);
QString data = QString("%1,%2,%3,%4").arg(width, height, fps).arg(format);
QString data = QString("%1,%2,%3,%4").arg(width).arg(height).arg(fps).arg(format);
m_formatCombo->addItem(displayText, data);
}