 |
libxcoder
5.2.0
|
Go to the documentation of this file.
36 #define NI_PROFILES_SUPP_STR_LEN 128
37 #define NI_LEVELS_SUPP_STR_LEN 64
38 #define NI_ADDITIONAL_INFO_STR_LEN 64
328 int max_handles,
char **xcoder_refresh_dev_names,
329 int xcoder_refresh_dev_count);
717 int width,
int height,
struct _ni_device_video_capability ni_device_video_capability_t
struct _ni_card_info_quadra ni_card_info_quadra_t
LIB_API void ni_rsrc_print_all_devices_capability2(bool list_uninitialized)
Prints detailed capability information for all initialized devices and general information about unin...
uint8_t serial_number[20]
ni_device_video_capability_t dev_cap[EN_CODEC_MAX]
struct _ni_hw_device_info_quadra_coder_param ni_hw_device_info_quadra_coder_param_t
ni_device_info_t xcoders[NI_DEVICE_TYPE_XCODER_MAX][NI_MAX_DEVICE_CNT]
LIB_API ni_device_context_t * ni_rsrc_get_device_context(ni_device_type_t type, int guid)
Allocates and returns a pointer to ni_device_context_t struct based on provided device_type and guid....
struct _ni_hw_device_info_quadra_threshold_param ni_hw_device_info_quadra_threshold_param_t
uint8_t fw_commit_hash[41]
struct _ni_device_pool ni_device_pool_t
uint64_t xcode_load_pixel
LIB_API ni_retcode_t ni_rsrc_list_all_devices(ni_device_t *p_device)
List all devices with full information including s/w instances on the system.
struct _ni_hw_device_info_quadra_scaler_param ni_hw_device_info_quadra_scaler_param_t
struct _ni_device_queue ni_device_queue_t
LIB_API ni_retcode_t ni_rsrc_list_devices(ni_device_type_t device_type, ni_device_info_t *p_device_info, int *p_device_count)
List device(s) based on device type with full information including s/w instances on the system.
LIB_API int ni_rsrc_get_local_device_list2(char ni_devices[][NI_MAX_DEVICE_NAME_LEN], int max_handles, char **xcoder_refresh_dev_names, int xcoder_refresh_dev_count)
Scans system for all NVMe devices and returns the system device names to the user which were identifi...
int xcoder_cnt[NI_DEVICE_TYPE_XCODER_MAX]
uint8_t fl_ver_nor_flash[8]
LIB_API ni_device_info_t * ni_rsrc_get_device_info(ni_device_type_t device_type, int guid)
Query a specific device with detailed information on the system.
ni_device_queue_t * p_device_queue
struct _ni_device_temp ni_device_temp_t
ni_device_type_t device_type
LIB_API void ni_rsrc_release_resource(ni_device_context_t *p_ctxt, uint64_t load)
Release resources allocated for decoding/encoding. function This must be called at the end of transco...
LIB_API void ni_rsrc_free_device_pool(ni_device_pool_t *p_device_pool)
Free all resources taken by the device pool.
char additional_info[NI_ADDITIONAL_INFO_STR_LEN]
uint32_t ui8enableRdoQuant
LIB_API int ni_rsrc_get_device_by_block_name(const char *blk_name, ni_device_type_t device_type)
Get GUID of the device by block device name and type.
LIB_API NI_DEPRECATED int ni_rsrc_get_local_device_list(char ni_devices[][NI_MAX_DEVICE_NAME_LEN], int max_handles)
Scans system for all NVMe devices and returns the system device names to the user which were identifi...
ni_device_type_t * device_type
int fw_ver_compat_warning
LIB_API int ni_rsrc_check_hw_available(int guid, ni_device_type_t device_type)
check the NetInt h/w device in resource pool on the host.
uint8_t fw_commit_time[26]
LIB_API ni_hw_device_info_quadra_coder_param_t * ni_create_hw_device_info_quadra_coder_param(int mode)
Create a pointer to hw_device_info_coder_param_t instance .This instance will be created and set to d...
ni_hw_device_info_quadra_ai_param_t * ai_param
char dev_name[NI_MAX_DEVICE_NAME_LEN]
LIB_API ni_device_context_t * ni_rsrc_allocate_auto(ni_device_type_t device_type, ni_alloc_rule_t rule, ni_codec_t codec, int width, int height, int frame_rate, uint64_t *p_load)
Allocate resources for decoding/encoding, based on the provided rule.
#define NI_MAX_CONTEXTS_PER_HW_INSTANCE
LIB_API ni_device_pool_t * ni_rsrc_get_device_pool(void)
Create and return the allocated ni_device_pool_t struct.
struct _ni_hw_device_info_quadra_ai_param ni_hw_device_info_quadra_ai_param_t
int32_t xcoders[NI_DEVICE_TYPE_XCODER_MAX][NI_MAX_DEVICE_CNT]
struct _ni_device_info ni_device_info_t
#define NI_PROFILES_SUPP_STR_LEN
Common NETINT definitions used by all modules.
uint8_t fw_rev_nor_flash[8]
char profiles_supported[NI_PROFILES_SUPP_STR_LEN]
LIB_API ni_retcode_t ni_rsrc_refresh(int should_match_rev)
Scan and refresh all resources on the host, taking into account hot-plugged and pulled out cards.
uint8_t fl_ver_last_ran[8]
struct _ni_device_extra_info ni_device_extra_info_t
LIB_API int ni_check_hw_info(ni_hw_device_info_quadra_t **pointer_to_p_hw_device_info, int task_mode, ni_hw_device_info_quadra_threshold_param_t *hw_info_threshold_param, ni_device_type_t preferential_device_type, ni_hw_device_info_quadra_coder_param_t *coder_param, int hw_mode, int consider_mem)
check hw info, return the appropriate card number to use depends on the load&task_num&used resource
LIB_API void ni_rsrc_free_device_context(ni_device_context_t *p_ctxt)
Free previously allocated device context.
LIB_API int ni_rsrc_lock_and_open(int device_type, ni_lock_handle_t *lock)
lock a file lock and open a session on a device
ni_sw_instance_info_t sw_instance[NI_MAX_CONTEXTS_PER_HW_INSTANCE]
#define NI_ADDITIONAL_INFO_STR_LEN
LIB_API int ni_rsrc_unlock(int device_type, ni_lock_handle_t lock)
unlock a file lock
int ni_rsrc_update_device_load(ni_device_context_t *p_ctxt, int load, int sw_instance_cnt, const ni_sw_instance_info_t sw_instance_info[])
Update the load value and s/w instances info of a specific decoder or encoder. This is used by resour...
struct _ni_device_vf_ns_id ni_device_vf_ns_id_t
ni_device_context_t * ni_rsrc_allocate_simple_direct(ni_device_type_t device_type, int guid)
Allocate resources for decoding/encoding, by designating explicitly the device to use....
uint8_t fw_build_time[26]
#define NI_LEVELS_SUPP_STR_LEN
LIB_API void ni_rsrc_print_device_info(const ni_device_info_t *p_device_info)
Print the content of the ni_device_info_t struct.
char blk_name[NI_MAX_DEVICE_NAME_LEN]
LIB_API int ni_rsrc_remove_device(const char *p_dev)
Remove an NetInt h/w device from resource pool on the host.
#define NI_MAX_DEVICE_CNT
ni_sw_instance_status_t status
#define NI_MAX_DEVICE_NAME_LEN
ni_device_handle_t g_dev_handle
@ EN_ALLOC_LEAST_INSTANCE
struct _ni_hw_device_info_quadra_encoder_param ni_hw_device_info_quadra_encoder_param_t
ni_hw_device_info_quadra_scaler_param_t * scaler_param
LIB_API void ni_hw_device_info_free_quadra(ni_hw_device_info_quadra_t *p_hw_device_info)
Release a pointer to ni_hw_device_info_quadra_t instance created by create_hw_device_info_coder_param...
ni_device_info_t * p_device_info
LIB_API int ni_rsrc_is_fw_compat(uint8_t fw_rev[8])
check if device FW revision is compatible with SW API
struct _ni_rsrc_video_ref_cap ni_rsrc_device_video_ref_cap_t
struct _ni_device_context ni_device_context_t
LIB_API int ni_rsrc_add_device(const char *p_dev, int should_match_rev)
Add an NetInt h/w device into resource pool on the host.
struct _ni_sw_instance_info ni_sw_instance_info_t
LIB_API int ni_rsrc_remove_all_devices(void)
Remove all NetInt h/w devices from resource pool on the host.
LIB_API void ni_destory_hw_device_info_quadra_coder_param(ni_hw_device_info_quadra_coder_param_t *p_hw_device_info_quadra_coder_param)
Release a pointer to hw_device_info_coder_param_t instance created by create_hw_device_info_coder_par...
LIB_API int ni_rsrc_init(int should_match_rev, int timeout_seconds)
Initialize and create all resources required to work with NETINT NVMe transcoder devices....
LIB_API void ni_rsrc_print_all_devices_capability(void)
Print detailed capability information of all devices on the system.
ni_card_info_quadra_t ** card_info
@ NI_DEVICE_TYPE_XCODER_MAX
char shm_name[NI_MAX_DEVICE_NAME_LEN]
LIB_API ni_hw_device_info_quadra_t * ni_hw_device_info_alloc_quadra(int device_type_num, int avaliable_card_num)
Create a pointer to ni_hw_device_info_quadra_t instance .
LIB_API ni_retcode_t ni_rsrc_list_all_devices2(ni_device_t *p_device, bool list_uninitialized)
Grabs information for every initialized and uninitialized device.
struct _ni_device ni_device_t
ni_hw_device_info_quadra_encoder_param_t * encoder_param
struct _ni_hw_device_info_quadra ni_hw_device_info_quadra_t
uint32_t xcoder_cnt[NI_DEVICE_TYPE_XCODER_MAX]
ni_device_type_t device_type
struct _ni_hw_device_info_quadra_decoder_param ni_hw_device_info_quadra_decoder_param_t
uint8_t fw_branch_name[256]
char level[NI_LEVELS_SUPP_STR_LEN]
ni_hw_device_info_quadra_decoder_param_t * decoder_param