28 #define MWVENC_API __declspec(dllexport)
30 #define MWVENC_API __declspec(dllimport)
34 #include "mw_venc_common.h"
35 #import <VideoToolbox/VideoToolbox.h>
36 typedef struct venc_handle *mw_venc_handle_t;
150 MW_ENCODER_CALLBACK_NALU callback_nalu,
186 CVImageBufferRef image_buffer,
223 mw_venc_handle_t handle,
290 mw_venc_handle_t handle,
328 mw_venc_handle_t handle,
mw_venc_status_t mw_venc_put_frame(mw_venc_handle_t handle, uint8_t *p_frame, int64_t pts)
Imports data to encoders.
enum mw_venc_property mw_venc_property_t
mw_venc_property_t
mw_venc_status_t mw_venc_put_imagebuffer(mw_venc_handle_t handle, CVImageBufferRef image_buffer, int64_t pts)
Imports data to encoders.
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:74
mw_venc_status_t mw_venc_destory(mw_venc_handle_t handle)
Destroys encoders.
mw_venc_handle_t mw_venc_create(mw_venc_param_t *p_param, MW_ENCODER_CALLBACK callback, MW_ENCODER_CALLBACK_NALU callback_nalu, void *user_ptr)
Creates an encoder.
mw_venc_param_t
Definition: mw_venc_common.h:420
enum mw_venc_status mw_venc_status_t
mw_venc_status_t
mw_venc_status_t mw_venc_get_property(mw_venc_handle_t handle, mw_venc_property_t param, void *args)
Gets encoder parameters.
mw_venc_status_t mw_venc_set_property(mw_venc_handle_t handle, mw_venc_property_t param, void *args)
Sets encoder parameters.
mw_venc_status_t mw_venc_get_default_param(mw_venc_param_t *p_param)
Gets the default value of encoding parameters.