mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-28 16:41:52 +08:00
39 lines
1.4 KiB
C
39 lines
1.4 KiB
C
#ifndef MFX_FFI_H
|
|
#define MFX_FFI_H
|
|
|
|
#include "../common/callback.h"
|
|
#include <stdbool.h>
|
|
|
|
int mfx_driver_support();
|
|
|
|
void *mfx_new_encoder(void *handle, int64_t luid,
|
|
int32_t dataFormat, int32_t width, int32_t height,
|
|
int32_t kbs, int32_t framerate, int32_t gop);
|
|
|
|
int mfx_encode(void *encoder, void *tex, EncodeCallback callback, void *obj,
|
|
int64_t ms);
|
|
|
|
int mfx_destroy_encoder(void *encoder);
|
|
|
|
void *mfx_new_decoder(void *device, int64_t luid,
|
|
int32_t dataFormat);
|
|
|
|
int mfx_decode(void *decoder, uint8_t *data, int len, DecodeCallback callback,
|
|
void *obj);
|
|
|
|
int mfx_destroy_decoder(void *decoder);
|
|
|
|
int mfx_test_encode(int64_t *outLuids, int32_t *outVendors, int32_t maxDescNum, int32_t *outDescNum,
|
|
int32_t dataFormat, int32_t width,
|
|
int32_t height, int32_t kbs, int32_t framerate,
|
|
int32_t gop, const int64_t *excludedLuids, const int32_t *excludeFormats, int32_t excludeCount);
|
|
|
|
int mfx_test_decode(int64_t *outLuids, int32_t *outVendors, int32_t maxDescNum, int32_t *outDescNum,
|
|
int32_t dataFormat, uint8_t *data,
|
|
int32_t length, const int64_t *excludedLuids, const int32_t *excludeFormats, int32_t excludeCount);
|
|
|
|
int mfx_set_bitrate(void *encoder, int32_t kbs);
|
|
|
|
int mfx_set_framerate(void *encoder, int32_t framerate);
|
|
|
|
#endif // MFX_FFI_H
|