28 #define MWVENC_API __declspec(dllexport) 30 #define MWVENC_API __declspec(dllimport) 34 #include "mw_venc_common.h" 124 typedef struct venc_handle *mw_venc_handle_t;
393 mw_venc_handle_t handle,
429 mw_venc_handle_t handle,
496 mw_venc_handle_t handle,
534 mw_venc_handle_t handle,
enum mw_venc_property mw_venc_property_t
mw_venc_property_t
mw_venc_status_t mw_venc_destory(mw_venc_handle_t handle)
Destroys encoders.
mw_venc_status_t mw_venc_get_default_param(mw_venc_param_t *p_param)
Gets the default value of encoding parameters.
mw_venc_status_t mw_venc_get_gpu_info_by_index(int32_t index, mw_venc_gpu_info_t *info)
Obtains hardware information of GPU by index.
mw_venc_handle_t mw_venc_create_by_index(int32_t index, mw_venc_param_t *p_param, MW_ENCODER_CALLBACK frame_callback, void *user_ptr)
Ctreats an encoder.
mw_venc_handle_t mw_venc_create(mw_venc_platform_t platform, mw_venc_param_t *p_param, MW_ENCODER_CALLBACK frame_callback, void *user_ptr)
Creates an encoder.
void(* MW_ENCODER_CALLBACK)(void *user_ptr, const uint8_t *p_frame, uint32_t frame_len, mw_venc_frame_info_t *p_frame_info)
Callback functions.
Definition: mw_venc_common.h:52
enum mw_venc_platform mw_venc_platform_t
mw_venc_platform_t
mw_venc_gpu_info_t
Definition: mw_venc_common.h:372
mw_venc_status_t mw_venc_init()
Initializes mw_venc.
mw_venc_status_t mw_venc_put_frame_ex(mw_venc_handle_t handle, uint8_t *p_frame, int64_t pts)
Imports data to encoders.
mw_venc_param_t
Definition: mw_venc_common.h:345
int32_t mw_venc_get_gpu_num()
Obtains the number of GPUs for hardware video encoding and decoding.
mw_venc_status_t mw_venc_put_frame(mw_venc_handle_t handle, uint8_t *p_frame)
Imports data to encoders.
mw_venc_status_t mw_venc_get_property(mw_venc_handle_t handle, mw_venc_property_t param, void *args)
Gets encoder parameters.
uint32_t mw_venc_get_support_platfrom()
Gets supported encoding hardware platform.
mw_venc_status_t mw_venc_set_property(mw_venc_handle_t handle, mw_venc_property_t param, void *args)
Sets encoder parameters.
enum mw_venc_status mw_venc_status_t
mw_venc_status_t
mw_venc_status_t mw_venc_deinit()
Destroys mw_venc.