2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT6_MULTIMEDIA_GEN_QVIDEOFRAMEFORMAT_H
|
|
|
|
#define MIQT_QT6_MULTIMEDIA_GEN_QVIDEOFRAMEFORMAT_H
|
2024-11-04 10:15:32 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#include "../../libmiqt/libmiqt.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QRect;
|
|
|
|
class QSize;
|
|
|
|
class QVideoFrameFormat;
|
|
|
|
#else
|
|
|
|
typedef struct QRect QRect;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QVideoFrameFormat QVideoFrameFormat;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QVideoFrameFormat* QVideoFrameFormat_new();
|
|
|
|
QVideoFrameFormat* QVideoFrameFormat_new2(QSize* size, int pixelFormat);
|
|
|
|
QVideoFrameFormat* QVideoFrameFormat_new3(QVideoFrameFormat* format);
|
2024-11-04 10:15:32 +00:00
|
|
|
void QVideoFrameFormat_Swap(QVideoFrameFormat* self, QVideoFrameFormat* other);
|
|
|
|
void QVideoFrameFormat_Detach(QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_OperatorAssign(QVideoFrameFormat* self, QVideoFrameFormat* format);
|
|
|
|
bool QVideoFrameFormat_OperatorEqual(const QVideoFrameFormat* self, QVideoFrameFormat* format);
|
|
|
|
bool QVideoFrameFormat_OperatorNotEqual(const QVideoFrameFormat* self, QVideoFrameFormat* format);
|
|
|
|
bool QVideoFrameFormat_IsValid(const QVideoFrameFormat* self);
|
|
|
|
int QVideoFrameFormat_PixelFormat(const QVideoFrameFormat* self);
|
|
|
|
QSize* QVideoFrameFormat_FrameSize(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetFrameSize(QVideoFrameFormat* self, QSize* size);
|
|
|
|
void QVideoFrameFormat_SetFrameSize2(QVideoFrameFormat* self, int width, int height);
|
|
|
|
int QVideoFrameFormat_FrameWidth(const QVideoFrameFormat* self);
|
|
|
|
int QVideoFrameFormat_FrameHeight(const QVideoFrameFormat* self);
|
|
|
|
int QVideoFrameFormat_PlaneCount(const QVideoFrameFormat* self);
|
|
|
|
QRect* QVideoFrameFormat_Viewport(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetViewport(QVideoFrameFormat* self, QRect* viewport);
|
|
|
|
int QVideoFrameFormat_ScanLineDirection(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetScanLineDirection(QVideoFrameFormat* self, int direction);
|
|
|
|
double QVideoFrameFormat_FrameRate(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetFrameRate(QVideoFrameFormat* self, double rate);
|
|
|
|
int QVideoFrameFormat_YCbCrColorSpace(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetYCbCrColorSpace(QVideoFrameFormat* self, int colorSpace);
|
|
|
|
int QVideoFrameFormat_ColorSpace(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetColorSpace(QVideoFrameFormat* self, int colorSpace);
|
|
|
|
int QVideoFrameFormat_ColorTransfer(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetColorTransfer(QVideoFrameFormat* self, int colorTransfer);
|
|
|
|
int QVideoFrameFormat_ColorRange(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetColorRange(QVideoFrameFormat* self, int rangeVal);
|
|
|
|
bool QVideoFrameFormat_IsMirrored(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetMirrored(QVideoFrameFormat* self, bool mirrored);
|
|
|
|
struct miqt_string QVideoFrameFormat_VertexShaderFileName(const QVideoFrameFormat* self);
|
|
|
|
struct miqt_string QVideoFrameFormat_FragmentShaderFileName(const QVideoFrameFormat* self);
|
|
|
|
float QVideoFrameFormat_MaxLuminance(const QVideoFrameFormat* self);
|
|
|
|
void QVideoFrameFormat_SetMaxLuminance(QVideoFrameFormat* self, float lum);
|
|
|
|
int QVideoFrameFormat_PixelFormatFromImageFormat(int format);
|
|
|
|
int QVideoFrameFormat_ImageFormatFromPixelFormat(int format);
|
|
|
|
struct miqt_string QVideoFrameFormat_PixelFormatToString(int pixelFormat);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QVideoFrameFormat_Delete(QVideoFrameFormat* self, bool isSubclass);
|
2024-11-04 10:15:32 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|