mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
48 lines
1.5 KiB
C++
48 lines
1.5 KiB
C++
|
#include <QAbstractPlanarVideoBuffer>
|
||
|
#include <QAbstractVideoBuffer>
|
||
|
#include <QVariant>
|
||
|
#include <qabstractvideobuffer.h>
|
||
|
#include "gen_qabstractvideobuffer.h"
|
||
|
#include "_cgo_export.h"
|
||
|
|
||
|
void QAbstractVideoBuffer_Release(QAbstractVideoBuffer* self) {
|
||
|
self->release();
|
||
|
}
|
||
|
|
||
|
int QAbstractVideoBuffer_HandleType(const QAbstractVideoBuffer* self) {
|
||
|
QAbstractVideoBuffer::HandleType _ret = self->handleType();
|
||
|
return static_cast<int>(_ret);
|
||
|
}
|
||
|
|
||
|
int QAbstractVideoBuffer_MapMode(const QAbstractVideoBuffer* self) {
|
||
|
QAbstractVideoBuffer::MapMode _ret = self->mapMode();
|
||
|
return static_cast<int>(_ret);
|
||
|
}
|
||
|
|
||
|
unsigned char* QAbstractVideoBuffer_Map(QAbstractVideoBuffer* self, int mode, int* numBytes, int* bytesPerLine) {
|
||
|
uchar* _ret = self->map(static_cast<QAbstractVideoBuffer::MapMode>(mode), static_cast<int*>(numBytes), static_cast<int*>(bytesPerLine));
|
||
|
return static_cast<unsigned char*>(_ret);
|
||
|
}
|
||
|
|
||
|
void QAbstractVideoBuffer_Unmap(QAbstractVideoBuffer* self) {
|
||
|
self->unmap();
|
||
|
}
|
||
|
|
||
|
QVariant* QAbstractVideoBuffer_Handle(const QAbstractVideoBuffer* self) {
|
||
|
return new QVariant(self->handle());
|
||
|
}
|
||
|
|
||
|
void QAbstractVideoBuffer_Delete(QAbstractVideoBuffer* self) {
|
||
|
delete self;
|
||
|
}
|
||
|
|
||
|
unsigned char* QAbstractPlanarVideoBuffer_Map(QAbstractPlanarVideoBuffer* self, int mode, int* numBytes, int* bytesPerLine) {
|
||
|
uchar* _ret = self->map(static_cast<QAbstractVideoBuffer::MapMode>(mode), static_cast<int*>(numBytes), static_cast<int*>(bytesPerLine));
|
||
|
return static_cast<unsigned char*>(_ret);
|
||
|
}
|
||
|
|
||
|
void QAbstractPlanarVideoBuffer_Delete(QAbstractPlanarVideoBuffer* self) {
|
||
|
delete self;
|
||
|
}
|
||
|
|