miqt/qt6/multimedia/gen_qmediaformat.h

57 lines
2.2 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIAFORMAT_H
#define MIQT_QT6_MULTIMEDIA_GEN_QMEDIAFORMAT_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 QMediaFormat;
class QMimeType;
#else
typedef struct QMediaFormat QMediaFormat;
typedef struct QMimeType QMimeType;
#endif
2024-11-19 06:29:06 +00:00
void QMediaFormat_new(QMediaFormat** outptr_QMediaFormat);
void QMediaFormat_new2(QMediaFormat* other, QMediaFormat** outptr_QMediaFormat);
void QMediaFormat_new3(int format, QMediaFormat** outptr_QMediaFormat);
2024-11-04 10:15:32 +00:00
void QMediaFormat_OperatorAssign(QMediaFormat* self, QMediaFormat* other);
void QMediaFormat_Swap(QMediaFormat* self, QMediaFormat* other);
int QMediaFormat_FileFormat(const QMediaFormat* self);
void QMediaFormat_SetFileFormat(QMediaFormat* self, int f);
void QMediaFormat_SetVideoCodec(QMediaFormat* self, int codec);
int QMediaFormat_VideoCodec(const QMediaFormat* self);
void QMediaFormat_SetAudioCodec(QMediaFormat* self, int codec);
int QMediaFormat_AudioCodec(const QMediaFormat* self);
bool QMediaFormat_IsSupported(const QMediaFormat* self, int mode);
QMimeType* QMediaFormat_MimeType(const QMediaFormat* self);
struct miqt_array /* of int */ QMediaFormat_SupportedFileFormats(QMediaFormat* self, int m);
struct miqt_array /* of int */ QMediaFormat_SupportedVideoCodecs(QMediaFormat* self, int m);
struct miqt_array /* of int */ QMediaFormat_SupportedAudioCodecs(QMediaFormat* self, int m);
2024-11-04 10:15:32 +00:00
struct miqt_string QMediaFormat_FileFormatName(int fileFormat);
struct miqt_string QMediaFormat_AudioCodecName(int codec);
struct miqt_string QMediaFormat_VideoCodecName(int codec);
struct miqt_string QMediaFormat_FileFormatDescription(int fileFormat);
struct miqt_string QMediaFormat_AudioCodecDescription(int codec);
struct miqt_string QMediaFormat_VideoCodecDescription(int codec);
bool QMediaFormat_OperatorEqual(const QMediaFormat* self, QMediaFormat* other);
bool QMediaFormat_OperatorNotEqual(const QMediaFormat* self, QMediaFormat* other);
void QMediaFormat_ResolveForEncoding(QMediaFormat* self, int flags);
2024-11-19 06:29:06 +00:00
void QMediaFormat_Delete(QMediaFormat* self, bool isSubclass);
2024-11-04 10:15:32 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif