2024-11-04 10:15:32 +00:00
|
|
|
#include <QCameraViewfinderSettings>
|
|
|
|
#include <QSize>
|
|
|
|
#include <qcameraviewfindersettings.h>
|
|
|
|
#include "gen_qcameraviewfindersettings.h"
|
|
|
|
#include "_cgo_export.h"
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QCameraViewfinderSettings_new(QCameraViewfinderSettings** outptr_QCameraViewfinderSettings) {
|
|
|
|
QCameraViewfinderSettings* ret = new QCameraViewfinderSettings();
|
|
|
|
*outptr_QCameraViewfinderSettings = ret;
|
2024-11-04 10:15:32 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QCameraViewfinderSettings_new2(QCameraViewfinderSettings* other, QCameraViewfinderSettings** outptr_QCameraViewfinderSettings) {
|
|
|
|
QCameraViewfinderSettings* ret = new QCameraViewfinderSettings(*other);
|
|
|
|
*outptr_QCameraViewfinderSettings = ret;
|
2024-11-04 10:15:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_OperatorAssign(QCameraViewfinderSettings* self, QCameraViewfinderSettings* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_Swap(QCameraViewfinderSettings* self, QCameraViewfinderSettings* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QCameraViewfinderSettings_IsNull(const QCameraViewfinderSettings* self) {
|
|
|
|
return self->isNull();
|
|
|
|
}
|
|
|
|
|
|
|
|
QSize* QCameraViewfinderSettings_Resolution(const QCameraViewfinderSettings* self) {
|
|
|
|
return new QSize(self->resolution());
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_SetResolution(QCameraViewfinderSettings* self, QSize* resolution) {
|
|
|
|
self->setResolution(*resolution);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_SetResolution2(QCameraViewfinderSettings* self, int width, int height) {
|
|
|
|
self->setResolution(static_cast<int>(width), static_cast<int>(height));
|
|
|
|
}
|
|
|
|
|
|
|
|
double QCameraViewfinderSettings_MinimumFrameRate(const QCameraViewfinderSettings* self) {
|
|
|
|
qreal _ret = self->minimumFrameRate();
|
|
|
|
return static_cast<double>(_ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_SetMinimumFrameRate(QCameraViewfinderSettings* self, double rate) {
|
|
|
|
self->setMinimumFrameRate(static_cast<qreal>(rate));
|
|
|
|
}
|
|
|
|
|
|
|
|
double QCameraViewfinderSettings_MaximumFrameRate(const QCameraViewfinderSettings* self) {
|
|
|
|
qreal _ret = self->maximumFrameRate();
|
|
|
|
return static_cast<double>(_ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_SetMaximumFrameRate(QCameraViewfinderSettings* self, double rate) {
|
|
|
|
self->setMaximumFrameRate(static_cast<qreal>(rate));
|
|
|
|
}
|
|
|
|
|
|
|
|
int QCameraViewfinderSettings_PixelFormat(const QCameraViewfinderSettings* self) {
|
|
|
|
QVideoFrame::PixelFormat _ret = self->pixelFormat();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_SetPixelFormat(QCameraViewfinderSettings* self, int format) {
|
|
|
|
self->setPixelFormat(static_cast<QVideoFrame::PixelFormat>(format));
|
|
|
|
}
|
|
|
|
|
|
|
|
QSize* QCameraViewfinderSettings_PixelAspectRatio(const QCameraViewfinderSettings* self) {
|
|
|
|
return new QSize(self->pixelAspectRatio());
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_SetPixelAspectRatio(QCameraViewfinderSettings* self, QSize* ratio) {
|
|
|
|
self->setPixelAspectRatio(*ratio);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCameraViewfinderSettings_SetPixelAspectRatio2(QCameraViewfinderSettings* self, int horizontal, int vertical) {
|
|
|
|
self->setPixelAspectRatio(static_cast<int>(horizontal), static_cast<int>(vertical));
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QCameraViewfinderSettings_Delete(QCameraViewfinderSettings* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QCameraViewfinderSettings*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-11-04 10:15:32 +00:00
|
|
|
}
|
|
|
|
|