2024-11-17 06:21:37 +00:00
|
|
|
#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
|
|
|
|
|
|
|
|
QMediaFormat* QMediaFormat_new();
|
|
|
|
QMediaFormat* QMediaFormat_new2(QMediaFormat* other);
|
|
|
|
QMediaFormat* QMediaFormat_new3(int format);
|
|
|
|
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);
|
2024-11-17 06:21:37 +00:00
|
|
|
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);
|
|
|
|
void QMediaFormat_Delete(QMediaFormat* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|