#include #include #include #include #include #include #include #include #include #include "gen_qcameracapturebufferformatcontrol.h" #include "_cgo_export.h" QMetaObject* QCameraCaptureBufferFormatControl_MetaObject(const QCameraCaptureBufferFormatControl* self) { return (QMetaObject*) self->metaObject(); } void* QCameraCaptureBufferFormatControl_Metacast(QCameraCaptureBufferFormatControl* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QCameraCaptureBufferFormatControl_Tr(const char* s) { QString _ret = QCameraCaptureBufferFormatControl::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraCaptureBufferFormatControl_TrUtf8(const char* s) { QString _ret = QCameraCaptureBufferFormatControl::trUtf8(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_array /* of int */ QCameraCaptureBufferFormatControl_SupportedBufferFormats(const QCameraCaptureBufferFormatControl* self) { QList _ret = self->supportedBufferFormats(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { QVideoFrame::PixelFormat _lv_ret = _ret[i]; _arr[i] = static_cast(_lv_ret); } struct miqt_array _out; _out.len = _ret.length(); _out.data = static_cast(_arr); return _out; } int QCameraCaptureBufferFormatControl_BufferFormat(const QCameraCaptureBufferFormatControl* self) { QVideoFrame::PixelFormat _ret = self->bufferFormat(); return static_cast(_ret); } void QCameraCaptureBufferFormatControl_SetBufferFormat(QCameraCaptureBufferFormatControl* self, int format) { self->setBufferFormat(static_cast(format)); } void QCameraCaptureBufferFormatControl_BufferFormatChanged(QCameraCaptureBufferFormatControl* self, int format) { self->bufferFormatChanged(static_cast(format)); } void QCameraCaptureBufferFormatControl_connect_BufferFormatChanged(QCameraCaptureBufferFormatControl* self, intptr_t slot) { QCameraCaptureBufferFormatControl::connect(self, static_cast(&QCameraCaptureBufferFormatControl::bufferFormatChanged), self, [=](QVideoFrame::PixelFormat format) { QVideoFrame::PixelFormat format_ret = format; int sigval1 = static_cast(format_ret); miqt_exec_callback_QCameraCaptureBufferFormatControl_BufferFormatChanged(slot, sigval1); }); } struct miqt_string QCameraCaptureBufferFormatControl_Tr2(const char* s, const char* c) { QString _ret = QCameraCaptureBufferFormatControl::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraCaptureBufferFormatControl_Tr3(const char* s, const char* c, int n) { QString _ret = QCameraCaptureBufferFormatControl::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraCaptureBufferFormatControl_TrUtf82(const char* s, const char* c) { QString _ret = QCameraCaptureBufferFormatControl::trUtf8(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraCaptureBufferFormatControl_TrUtf83(const char* s, const char* c, int n) { QString _ret = QCameraCaptureBufferFormatControl::trUtf8(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QCameraCaptureBufferFormatControl_Delete(QCameraCaptureBufferFormatControl* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }