libxcoder  3.5.1
ni_rsrc_priv_logan.cpp File Reference

Private routines related to resource management of NI T-408 devices. More...

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include "ni_device_api_logan.h"
#include "ni_rsrc_api_logan.h"
#include "ni_rsrc_priv_logan.h"
#include "ni_nvme_logan.h"
#include "ni_util_logan.h"

Go to the source code of this file.

Functions

ni_logan_retcode_t ni_logan_rsrc_fill_device_info (ni_logan_device_info_t *p_device_info, ni_codec_t fmt, ni_logan_device_type_t type, ni_logan_hw_capability_t *p_hw_cap)
 Update codec record info with retrieved device info from HW. More...
 
int ni_logan_rsrc_strcmp (const void *p_str, const void *p_str1)
 String comparison function. More...
 
void ni_logan_rsrc_get_lock_name (ni_logan_device_type_t device_type, int32_t guid, char *p_name, size_t max_name_len)
 Returns the device lock name. More...
 
void ni_logan_rsrc_get_shm_name (ni_logan_device_type_t device_type, int32_t guid, char *p_name, size_t max_name_len)
 Returns the name of shared memory of the codec record. More...
 
int ni_logan_is_fw_compatible (uint8_t fw_rev[8])
 Check if a FW_rev retrieved from card is supported by libxcoder. Support is checked for API flavor, API version, and SW/FW release version. More...
 

Variables

uint32_t g_logan_xcoder_stop_process = 0
 

Detailed Description

Private routines related to resource management of NI T-408 devices.


Definition in file ni_rsrc_priv_logan.cpp.

Function Documentation

◆ ni_logan_is_fw_compatible()

int ni_logan_is_fw_compatible ( uint8_t  fw_rev[8])

Check if a FW_rev retrieved from card is supported by libxcoder. Support is checked for API flavor, API version, and SW/FW release version.


Parameters
[in]fw_revFW revision queried from card firmware
Returns
If FW is fully compatible return 1 If FW not compatible return 0 If FW is partially compatible return 2

Definition at line 271 of file ni_rsrc_priv_logan.cpp.

◆ ni_logan_rsrc_fill_device_info()

ni_logan_retcode_t ni_logan_rsrc_fill_device_info ( ni_logan_device_info_t p_device_info,
ni_codec_t  fmt,
ni_logan_device_type_t  type,
ni_logan_hw_capability_t p_hw_cap 
)

Update codec record info with retrieved device info from HW.


Parameters

encoder

Definition at line 64 of file ni_rsrc_priv_logan.cpp.

◆ ni_logan_rsrc_get_lock_name()

void ni_logan_rsrc_get_lock_name ( ni_logan_device_type_t  device_type,
int32_t  guid,
char *  p_name,
size_t  max_name_len 
)

Returns the device lock name.


Parameters

Definition at line 229 of file ni_rsrc_priv_logan.cpp.

◆ ni_logan_rsrc_get_shm_name()

void ni_logan_rsrc_get_shm_name ( ni_logan_device_type_t  device_type,
int32_t  guid,
char *  p_name,
size_t  max_name_len 
)

Returns the name of shared memory of the codec record.


Parameters

assume there is enough space allocated in name

Definition at line 248 of file ni_rsrc_priv_logan.cpp.

◆ ni_logan_rsrc_strcmp()

int ni_logan_rsrc_strcmp ( const void *  p_str,
const void *  p_str1 
)

String comparison function.


Parameters

Definition at line 192 of file ni_rsrc_priv_logan.cpp.

Variable Documentation

◆ g_logan_xcoder_stop_process

uint32_t g_logan_xcoder_stop_process = 0

Definition at line 55 of file ni_rsrc_priv_logan.cpp.