mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
56 lines
2.1 KiB
C++
56 lines
2.1 KiB
C++
#ifndef GEN_QMEDIAFORMAT_H
|
|
#define GEN_QMEDIAFORMAT_H
|
|
|
|
#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);
|
|
struct miqt_array QMediaFormat_SupportedFileFormats(QMediaFormat* self, int m);
|
|
struct miqt_array QMediaFormat_SupportedVideoCodecs(QMediaFormat* self, int m);
|
|
struct miqt_array QMediaFormat_SupportedAudioCodecs(QMediaFormat* self, int m);
|
|
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
|