mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
57 lines
2.2 KiB
C++
57 lines
2.2 KiB
C++
#pragma once
|
|
#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIAFORMAT_H
|
|
#define MIQT_QT6_MULTIMEDIA_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 /* 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);
|
|
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, bool isSubclass);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|