libxcoder  5.2.0
ni_libxcoder_dynamic_loading.h
Go to the documentation of this file.
1 /*******************************************************************************
2  *
3  * Copyright (C) 2022 NETINT Technologies
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this software and associated documentation files (the "Software"), to deal
7  * in the Software without restriction, including without limitation the rights
8  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9  * copies of the Software, and to permit persons to whom the Software is
10  * furnished to do so, subject to the following conditions:
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18  * SOFTWARE.
19  *
20  ******************************************************************************/
21 
22 /*!*****************************************************************************
23  * \file ni_libxcoder_dynamic_loading.h
24  *
25  * \brief Libxcoder API dynamic loading support for Linux
26  *
27  * \author Netflix, Inc. (2022)
28  ******************************************************************************/
29 
30 #pragma once
31 
32 #ifndef _NETINTLIBXCODERAPI_H_
33 #define _NETINTLIBXCODERAPI_H_
34 
35 #include <dlfcn.h>
36 
37 #pragma GCC diagnostic push
38 #pragma GCC diagnostic ignored "-Wunused-variable"
39 
40 #ifndef _NETINT_LIBXCODER_DYNAMIC_LOADING_TEST_
41 #include <ni_av_codec.h>
42 #include <ni_util.h>
43 #include <ni_device_api.h>
44 #else
45 #include "ni_av_codec.h"
46 #include "ni_util.h"
47 #include "ni_device_api.h"
48 #endif
49 
50 #pragma GCC diagnostic pop
51 
52 #define LIB_API
53 
54 /*
55  * Defines API function pointers
56  */
57 //
58 // Function pointers for ni_av_codec.h
59 //
61 typedef void (LIB_API* PNIDECRETRIEVEAUXDATA) (ni_frame_t *frame);
62 typedef void (LIB_API* PNIENCPREPAUXDATA) (ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_frame_t *p_dec_frame, ni_codec_format_t codec_format, int should_send_sei_with_frame, uint8_t *mdcv_data, uint8_t *cll_data, uint8_t *cc_data, uint8_t *udu_data, uint8_t *hdrp_data);
63 typedef void (LIB_API* PNIENCCOPYAUXDATA) (ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_frame_t *p_dec_frame, ni_codec_format_t codec_format, const uint8_t *mdcv_data, const uint8_t *cll_data, const uint8_t *cc_data, const uint8_t *udu_data, const uint8_t *hdrp_data, int is_hwframe, int is_semiplanar);
64 typedef int (LIB_API* PNIENCWRITEFROMYUVBUFFER) (ni_session_context_t *p_ctx, ni_frame_t *p_enc_frame, uint8_t *p_yuv_buffer);
65 typedef int (LIB_API* PNIEXTRACTCUSTOMSEI) (uint8_t *pkt_data, int pkt_size, long index, ni_packet_t *p_packet, uint8_t sei_type, int vcl_found);
66 typedef int (LIB_API* PNIDECPACKETPARSE) (ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, uint8_t *data, int size, ni_packet_t *p_packet, int low_delay, int codec_format, int pkt_nal_bitmap, int custom_sei_type, int *svct_skip_next_packet, int *is_lone_sei_pkt);
67 typedef int (LIB_API* PNIEXPANDFRAME) (ni_frame_t *dst, ni_frame_t *src, int dst_stride[], int raw_width, int raw_height, int ni_fmt, int nb_planes);
68 typedef int (LIB_API* PNIRECONFIGPPUOUTPUT) (ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, ni_ppu_config_t *ppu_config);
69 typedef int (LIB_API* PNIENCINSERTTIMECODE) (ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_timecode_t *p_timecode);
70 //
71 // Function pointers for ni_util.h
72 //
73 typedef void (LIB_API* PNIGETHWYUV420PDIM) (int width, int height, int bit_depth_factor, int is_semiplanar, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS]);
74 typedef void (LIB_API* PNIGETFRAMEDIM) (int width, int height, ni_pix_fmt_t pix_fmt, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS]);
75 typedef void (LIB_API* PNIGETMINFRAMEDIM) (int width, int height, ni_pix_fmt_t pix_fmt, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS]);
76 typedef void (LIB_API* PNICOPYHWYUV420P) (uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int width, int height, int bit_depth_factor, int is_semiplanar, int conf_win_right, int dst_stride[NI_MAX_NUM_DATA_POINTERS], int dst_height[NI_MAX_NUM_DATA_POINTERS], int src_stride[NI_MAX_NUM_DATA_POINTERS], int src_height[NI_MAX_NUM_DATA_POINTERS]);
77 typedef void (LIB_API* PNICOPYFRAMEDATA) (uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int frame_width, int frame_height, int factor, ni_pix_fmt_t pix_fmt, int conf_win_right, int dst_stride[NI_MAX_NUM_DATA_POINTERS], int dst_height[NI_MAX_NUM_DATA_POINTERS], int src_stride[NI_MAX_NUM_DATA_POINTERS], int src_height[NI_MAX_NUM_DATA_POINTERS]);
78 typedef void (LIB_API* PNICOPYYUV444PTO420P) (uint8_t *p_dst0[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_dst1[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int width, int height, int factor, int mode);
79 typedef int (LIB_API* PNIINSERTEMULATIONPREVENTBYTES) (uint8_t *buf, int size);
80 typedef int (LIB_API* PNIREMOVEEMULATIONPREVENTBYTES) (uint8_t *buf, int size);
81 typedef int32_t (LIB_API* PNIGETTIMEOFDAY) (struct timeval *p_tp, void *p_tzp);
82 typedef uint64_t (LIB_API* PNIGETTIMENS) (void);
83 typedef void (LIB_API* PNIUSLEEP) (int64_t usec);
84 typedef char * (LIB_API* PNISTRTOK) (char *s, const char *delim, char **saveptr);
85 typedef ni_retcode_t (LIB_API* PNINETWORKLAYERCONVERTOUTPUT) (float *dst, uint32_t num, ni_packet_t *p_packet, ni_network_data_t *p_network, uint32_t layer);
88 typedef ni_retcode_t (LIB_API* PNINETWORKLAYERCONVERTTENSOR) (uint8_t *dst, uint32_t dst_len, const char *tensor_file, ni_network_layer_params_t *p_param);
89 typedef ni_retcode_t (LIB_API* PNINETWORKCONVERTTENSORTODATA) (uint8_t *dst, uint32_t dst_len, float *src, uint32_t src_len, ni_network_layer_params_t *p_param);
90 typedef ni_retcode_t (LIB_API* PNINETWORKCONVERTDATATOTENSOR) (float *dst, uint32_t dst_len, uint8_t *src, uint32_t src_len, ni_network_layer_params_t *p_param);
91 typedef void (LIB_API* PNICALCULATESHA256) (const uint8_t aui8Data[], size_t ui32DataLength, uint8_t aui8Hash[]);
92 typedef void (LIB_API* PNICOPYHWDESCRIPTORS) (uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS]);
93 typedef char * (LIB_API* PNIGETLIBXCODERAPIVER) (void);
94 typedef char * (LIB_API* PNIGETCOMPATFWAPIVER) (void);
95 typedef void (LIB_API* PNIFMTFWAPIVERSTR) (const char ver_str[], char fmt_str[]);
96 typedef int (LIB_API* PNICMPFWAPIVER) (const char ver1[], const char ver2[]);
97 typedef char * (LIB_API* PNIGETLIBXCODERRELEASEVER) (void);
98 typedef const char * (LIB_API* PNIGETRCTXT) (ni_retcode_t rc);
99 typedef int (LIB_API* PNIPARAMGETKEYVALUE) (char *p_str, char *key, char *value);
100 typedef int (LIB_API* PNIRETRIEVEXCODERPARAMS) (char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx);
101 typedef int (LIB_API* PNIRETRIEVEXCODERGOP) (char xcoderGop[], ni_xcoder_params_t *params, ni_session_context_t *ctx);
102 typedef int (LIB_API* PNIRETRIEVEDECODERPARAMS) (char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx);
103 typedef int (LIB_API* PNIPTHREADMUTEXINIT) (ni_pthread_mutex_t *mutex);
104 typedef int (LIB_API* PNIPTHREADMUTEXDESTROY) (ni_pthread_mutex_t *mutex);
105 typedef int (LIB_API* PNIPTHREADMUTEXLOCK) (ni_pthread_mutex_t *mutex);
106 typedef int (LIB_API* PNIPTHREADMUTEXUNLOCK) (ni_pthread_mutex_t *mutex);
107 typedef int (LIB_API* PNIPTHREADCREATE) (ni_pthread_t *thread, const ni_pthread_attr_t *attr, void *(*start_routine)(void *), void *arg);
108 typedef int (LIB_API* PNIPTHREADJOIN) (ni_pthread_t thread, void **value_ptr);
109 typedef int (LIB_API* PNIPTHREADCONDINIT) (ni_pthread_cond_t *cond, const ni_pthread_condattr_t *attr);
110 typedef int (LIB_API* PNIPTHREADCONDDESTROY) (ni_pthread_cond_t *cond);
111 typedef int (LIB_API* PNIPTHREADCONDBROADCAST) (ni_pthread_cond_t *cond);
112 typedef int (LIB_API* PNIPTHREADCONDWAIT) (ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex);
113 typedef int (LIB_API* PNIPTHREADCONDSIGNAL) (ni_pthread_cond_t *cond);
114 typedef int (LIB_API* PNIPTHREADCONDTIMEDWAIT) (ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex, const struct timespec *abstime);
115 typedef int (LIB_API* PNIPTHREADSIGMASK) (int how, const ni_sigset_t *set, ni_sigset_t *oldset);
116 typedef int (LIB_API* PNIPOSIXMEMALIGN) (void **memptr, size_t alignment, size_t size);
117 typedef const char * (LIB_API* PNIAIERRNOTOSTR) (int rc);
118 //
119 
120 //
121 // Function pointers for ni_device_api.h
122 //
127 typedef ni_event_handle_t (LIB_API* PNICREATEEVENT) (void);
128 typedef void (LIB_API* PNICLOSEEVENT) (ni_event_handle_t event_handle);
129 typedef ni_device_handle_t (LIB_API* PNIDEVICEOPEN) (const char *dev, uint32_t *p_max_io_size_out);
130 typedef void (LIB_API* PNIDEVICECLOSE) (ni_device_handle_t dev);
131 typedef ni_retcode_t (LIB_API* PNIDEVICECAPABILITYQUERY) (ni_device_handle_t device_handle, ni_device_capability_t *p_cap);
132 typedef ni_retcode_t (LIB_API* PNIDEVICECAPABILITYQUERY2) (ni_device_handle_t device_handle, ni_device_capability_t *p_cap, bool device_in_ctxt);
134 typedef ni_retcode_t (LIB_API* PNIDEVICESESSIONCLOSE) (ni_session_context_t *p_ctx, int eos_received, ni_device_type_t device_type);
136 typedef ni_retcode_t (LIB_API* PNIDEVICEDECSESSIONSAVEHDRS) (ni_session_context_t *p_ctx, uint8_t *hdr_data, uint8_t hdr_size);
143 typedef ni_retcode_t (LIB_API* PNIDEVICECONFIGNAMESPACENUM) (ni_device_handle_t device_handle, uint32_t namespace_num, uint32_t sriov_index);
144 typedef ni_retcode_t (LIB_API* PNIDEVICECONFIGQOS) (ni_device_handle_t device_handle, uint32_t mode);
145 typedef ni_retcode_t (LIB_API* PNIDEVICECONFIGQOSOP) (ni_device_handle_t device_handle, ni_device_handle_t device_handle_t, uint32_t over_provision);
146 typedef ni_retcode_t (LIB_API* PNIFRAMEBUFFERALLOC) (ni_frame_t *p_frame, int video_width, int video_height, int alignment, int metadata_flag, int factor, int hw_frame_count, int is_planar);
147 typedef ni_retcode_t (LIB_API* PNIENCFRAMEBUFFERALLOC) (ni_frame_t *p_frame, int video_width, int video_height, int alignment, int metadata_flag, int factor, int hw_frame_count, int is_planar, ni_pix_fmt_t pix_fmt);
148 typedef ni_retcode_t (LIB_API* PNIFRAMEBUFFERALLOCDL) (ni_frame_t *p_frame, int video_width, int video_height, int pixel_format);
149 typedef ni_retcode_t (LIB_API* PNIDECODERFRAMEBUFFERALLOC) (ni_buf_pool_t *p_pool, ni_frame_t *pframe, int alloc_mem, int video_width, int video_height, int alignment, int factor, int is_planar);
150 typedef ni_retcode_t (LIB_API* PNIENCODERFRAMEBUFFERALLOC) (ni_frame_t *pframe, int video_width, int video_height, int linesize[], int alignment, int extra_len, bool alignment_2pass_wa);
154 typedef ni_retcode_t (LIB_API* PNIFRAMEBUFFERALLOCNV) (ni_frame_t *p_frame, int video_width, int video_height, int linesize[], int extra_len, bool alignment_2pass_wa);
155 typedef ni_retcode_t (LIB_API* PNIENCODERSWFRAMEBUFFERALLOC) (bool planar, ni_frame_t *p_frame, int video_width, int video_height, int linesize[], int alignment, int extra_len, bool alignment_2pass_wa);
158 typedef void (LIB_API* PNIDECODERFRAMEBUFFERPOOLRETURNBUF) (ni_buf_t *buf, ni_buf_pool_t *p_buffer_pool);
159 typedef ni_retcode_t (LIB_API* PNIPACKETBUFFERALLOC) (ni_packet_t *ppacket, int packet_size);
160 typedef ni_retcode_t (LIB_API* PNICUSTOMPACKETBUFFERALLOC) (void *p_buffer, ni_packet_t *p_packet, int buffer_size);
163 typedef int (LIB_API* PNIPACKETCOPY) (void *p_destination, const void *const p_source, int cur_size, void *p_leftover, int *p_prev_size);
164 typedef ni_aux_data_t * (LIB_API* PNIFRAMENEWAUXDATA) (ni_frame_t *frame, ni_aux_data_type_t type, int data_size);
165 typedef ni_aux_data_t * (LIB_API* PNIFRAMENEWAUXDATAFROMRAWDATA) (ni_frame_t *frame, ni_aux_data_type_t type, const uint8_t *raw_data, int data_size);
168 typedef void (LIB_API* PNIFRAMEWIPEAUXDATA) (ni_frame_t *frame);
169 typedef ni_retcode_t (LIB_API* PNIENCODERINITDEFAULTPARAMS) (ni_xcoder_params_t *p_param, int fps_num, int fps_denom, long bit_rate, int width, int height, ni_codec_format_t codec_format);
170 typedef ni_retcode_t (LIB_API* PNIDECODERINITDEFAULTPARAMS) (ni_xcoder_params_t *p_param, int fps_num, int fps_denom, long bit_rate, int width, int height);
171 typedef ni_retcode_t (LIB_API* PNIENCODERPARAMSSETVALUE) (ni_xcoder_params_t *p_params, const char *name, const char *value);
172 typedef ni_retcode_t (LIB_API* PNIDECODERPARAMSSETVALUE) (ni_xcoder_params_t *p_params, const char *name, char *value);
173 typedef ni_retcode_t (LIB_API* PNIENCODERGOPPARAMSSETVALUE) (ni_xcoder_params_t *p_params, const char *name, const char *value);
175 typedef int (LIB_API* PNIDEVICESESSIONINITFRAMEPOOL) (ni_session_context_t *p_ctx, uint32_t pool_size, uint32_t pool);
180 typedef ni_retcode_t (LIB_API* PNIFRAMEBUFFERALLOCHWENC) (ni_frame_t *pframe, int video_width, int video_height, int extra_len);
181 typedef ni_retcode_t (LIB_API* PNIHWFRAMEBUFFERRECYCLE) (niFrameSurface1_t *surface, int32_t device_handle);
184 typedef ni_retcode_t (LIB_API* PNIDEVICEALLOCFRAME) (ni_session_context_t* p_ctx, int width, int height, int format, int options, int rectangle_width, int rectangle_height, int rectangle_x, int rectangle_y, int rgba_color, int frame_index, ni_device_type_t device_type);
191 typedef ni_retcode_t (LIB_API* PNIFRAMEBUFFERALLOCPIXFMT) (ni_frame_t *pframe, int pixel_format, int video_width, int video_height, int linesize[], int alignment, int extra_len);
192 typedef ni_retcode_t (LIB_API* PNIAICONFIGNETWORKBINARY) (ni_session_context_t *p_ctx, ni_network_data_t *p_network, const char *file);
196 typedef ni_retcode_t (LIB_API* PNIRECONFIGBITRATE) (ni_session_context_t *p_ctx, int32_t bitrate);
200 typedef ni_retcode_t (LIB_API* PNISETLTRINTERVAL) (ni_session_context_t *p_ctx, int32_t ltr_interval);
201 typedef ni_retcode_t (LIB_API* PNISETFRAMEREFINVALID) (ni_session_context_t *p_ctx, int32_t frame_num);
203 typedef ni_retcode_t (LIB_API* PNIRECONFIGMAXFRAMESIZE) (ni_session_context_t *p_ctx, int32_t max_frame_size);
205 typedef int (LIB_API* PNIDEVICESESSIONACQUIRE) (ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame);
209 typedef ni_retcode_t (LIB_API* PNIUPLOADERP2PTESTSEND) (ni_session_context_t *p_upl_ctx, uint8_t *p_data, uint32_t len, ni_frame_t *p_hwframe);
210 typedef ni_retcode_t (LIB_API* PNIUPLOADERP2PTESTLOAD) (ni_session_context_t *p_upl_ctx, uint8_t *p_data, uint32_t len, ni_frame_t *p_hwframe);
211 typedef ni_retcode_t (LIB_API* PNIENCODERSETINPUTFRAMEFORMAT) (ni_session_context_t *p_enc_ctx, ni_xcoder_params_t *p_enc_params, int width, int height, int bit_depth, int src_endian, int planar);
212 typedef ni_retcode_t (LIB_API* PNIUPLOADERSETFRAMEFORMAT) (ni_session_context_t *p_upl_ctx, int width, int height, ni_pix_fmt_t pixel_format, int isP2P);
216 typedef int32_t (LIB_API* PNIGETDMABUFFILEDESCRIPTOR) (const ni_frame_t* p_frame);
217 typedef ni_retcode_t (LIB_API* PNIDEVICESESSIONSEQUENCECHANGE) (ni_session_context_t *p_ctx, int width, int height, int bit_depth_factor, ni_device_type_t device_type);
220 typedef ni_retcode_t (LIB_API* PNIQUERYFLFWVERSIONS) (ni_device_handle_t device_handle, ni_device_info_t *p_dev_info);
221 typedef ni_retcode_t (LIB_API* PNIQUERYVFNSID) (ni_device_handle_t device_handle, ni_device_vf_ns_id_t *p_dev_ns_vf, uint8_t fw_rev[]);
222 typedef ni_retcode_t (LIB_API* PNIQUERYTEMPERATURE) (ni_device_handle_t device_handle, ni_device_temp_t *p_dev_temp, uint8_t fw_rev[]);
223 typedef ni_retcode_t (LIB_API* PNIQUERYEXTRAINFO) (ni_device_handle_t device_handle, ni_device_extra_info_t *p_dev_extra_info, uint8_t fw_rev[]);
224 typedef ni_retcode_t (LIB_API* PNIENCODERFRAMEZEROCOPYCHECK) (ni_session_context_t *p_enc_ctx, ni_xcoder_params_t *p_enc_params, int width, int height, const int linesize[], bool set_linesize);
225 typedef ni_retcode_t (LIB_API* PNIENCODERFRAMEZEROCOPYBUFFERALLOC) (ni_frame_t *p_frame, int video_width, int video_height, const int linesize[], const uint8_t *data[], int extra_len);
226 typedef ni_retcode_t (LIB_API* PNIUPLOADERFRAMEZEROCOPYCHECK) (ni_session_context_t *p_upl_ctx, int width, int height, const int linesize[], int pixel_format);
227 typedef ni_retcode_t (LIB_API* PNIRECONFIGCRF) (ni_session_context_t *p_ctx, int32_t crf);
229 typedef ni_retcode_t (LIB_API* PNIDEVICEALLOCANDGETFIRMWARELOGS) (ni_session_context_t *p_ctx, void** p_log_buffer, bool gen_log_file);
230 typedef ni_retcode_t (LIB_API* PNIRECONFIGVBVVALUE) (ni_session_context_t *p_ctx, int32_t vbvMaxRate, int32_t vbvBufferSize);
234 typedef void (LIB_API* PNIGOPPARAMSCHECKSET) (ni_xcoder_params_t *p_param, char *value);
235 typedef bool (LIB_API* PNIGOPPARAMSCHECK) (ni_xcoder_params_t *p_param);
236 typedef ni_retcode_t (LIB_API* PNIRECONFIGMAXFRAMESIZERATIO) (ni_session_context_t *p_ctx, int32_t max_frame_size_ratio);
237 typedef ni_retcode_t (LIB_API* PNIRECONFIGINTRAPRD) (ni_session_context_t *p_ctx, int32_t intra_period);
238 typedef ni_retcode_t (LIB_API* PNIP2PXFER) (ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize);
239 typedef ni_retcode_t (LIB_API* PNIP2PSEND) (ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize);
240 typedef int (LIB_API* PNICALCULATETOTALFRAMESIZE) (const ni_session_context_t *p_upl_ctx, const int linesize[]);
241 typedef ni_retcode_t (LIB_API* PNIRECONFIGSLICEARG) (ni_session_context_t *p_ctx, int16_t sliceArg);
242 typedef ni_retcode_t (LIB_API* PNIP2PRECV) (ni_session_context_t *pSession, const ni_p2p_sgl_t *dmaAddrs, ni_frame_t *pDstFrame);
243 typedef ni_retcode_t (LIB_API* PNIDEVICESESSIONRESTART) (ni_session_context_t *p_ctx, int video_width, int video_height, ni_device_type_t device_type);
244 
245 /* End API function pointers */
246 
247 
248 
249 /*
250  * Definition of _NETINT_LIBXCODER_API_FUNCTION_LIST
251  */
253 {
254  //
255  // API function list for ni_av_codec.h
256  //
267  //
268  // API function list for ni_util.h
269  //
312  //
313  // API function list for ni_device_api.h
314  //
440 
442 public:
443  // NiLibxcoderAPICreateInstance
450  {
451  //
452  // Function/symbol loading for ni_av_codec.h
453  //
454  functionList->niShouldSendSeiWithFrame = reinterpret_cast<decltype(ni_should_send_sei_with_frame)*>(dlsym(lib,"ni_should_send_sei_with_frame"));
455  functionList->niDecRetrieveAuxData = reinterpret_cast<decltype(ni_dec_retrieve_aux_data)*>(dlsym(lib,"ni_dec_retrieve_aux_data"));
456  functionList->niEncPrepAuxData = reinterpret_cast<decltype(ni_enc_prep_aux_data)*>(dlsym(lib,"ni_enc_prep_aux_data"));
457  functionList->niEncCopyAuxData = reinterpret_cast<decltype(ni_enc_copy_aux_data)*>(dlsym(lib,"ni_enc_copy_aux_data"));
458  functionList->niEncWriteFromYuvBuffer = reinterpret_cast<decltype(ni_enc_write_from_yuv_buffer)*>(dlsym(lib,"ni_enc_write_from_yuv_buffer"));
459  functionList->niExtractCustomSei = reinterpret_cast<decltype(ni_extract_custom_sei)*>(dlsym(lib,"ni_extract_custom_sei"));
460  functionList->niDecPacketParse = reinterpret_cast<decltype(ni_dec_packet_parse)*>(dlsym(lib,"ni_dec_packet_parse"));
461  functionList->niExpandFrame = reinterpret_cast<decltype(ni_expand_frame)*>(dlsym(lib,"ni_expand_frame"));
462  functionList->niReconfigPpuOutput = reinterpret_cast<decltype(ni_reconfig_ppu_output)*>(dlsym(lib,"ni_reconfig_ppu_output"));
463  functionList->niEncInsertTimecode = reinterpret_cast<decltype(ni_enc_insert_timecode)*>(dlsym(lib,"ni_enc_insert_timecode"));
464  //
465  // Function/symbol loading for ni_util.h
466  //
467  functionList->niGetHwYuv420PDim = reinterpret_cast<decltype(ni_get_hw_yuv420p_dim)*>(dlsym(lib,"ni_get_hw_yuv420p_dim"));
468  functionList->niCopyHwYuv420P = reinterpret_cast<decltype(ni_copy_hw_yuv420p)*>(dlsym(lib,"ni_copy_hw_yuv420p"));
469  functionList->niCopyYuv444PTo420P = reinterpret_cast<decltype(ni_copy_yuv_444p_to_420p)*>(dlsym(lib,"ni_copy_yuv_444p_to_420p"));
470  functionList->niInsertEmulationPreventBytes = reinterpret_cast<decltype(ni_insert_emulation_prevent_bytes)*>(dlsym(lib,"ni_insert_emulation_prevent_bytes"));
471  functionList->niRemoveEmulationPreventBytes = reinterpret_cast<decltype(ni_remove_emulation_prevent_bytes)*>(dlsym(lib,"ni_remove_emulation_prevent_bytes"));
472  functionList->niGettimeofday = reinterpret_cast<decltype(ni_gettimeofday)*>(dlsym(lib,"ni_gettimeofday"));
473  functionList->niGettimeNs = reinterpret_cast<decltype(ni_gettime_ns)*>(dlsym(lib,"ni_gettime_ns"));
474  functionList->niUsleep = reinterpret_cast<decltype(ni_usleep)*>(dlsym(lib,"ni_usleep"));
475  functionList->niStrtok = reinterpret_cast<decltype(ni_strtok)*>(dlsym(lib,"ni_strtok"));
476  functionList->niNetworkLayerConvertOutput = reinterpret_cast<decltype(ni_network_layer_convert_output)*>(dlsym(lib,"ni_network_layer_convert_output"));
477  functionList->niAiNetworkLayerSize = reinterpret_cast<decltype(ni_ai_network_layer_size)*>(dlsym(lib,"ni_ai_network_layer_size"));
478  functionList->niAiNetworkLayerDims = reinterpret_cast<decltype(ni_ai_network_layer_dims)*>(dlsym(lib,"ni_ai_network_layer_dims"));
479  functionList->niNetworkLayerConvertTensor = reinterpret_cast<decltype(ni_network_layer_convert_tensor)*>(dlsym(lib,"ni_network_layer_convert_tensor"));
480  functionList->niNetworkConvertTensorToData = reinterpret_cast<decltype(ni_network_convert_tensor_to_data)*>(dlsym(lib,"ni_network_convert_tensor_to_data"));
481  functionList->niNetworkConvertDataToTensor = reinterpret_cast<decltype(ni_network_convert_data_to_tensor)*>(dlsym(lib,"ni_network_convert_data_to_tensor"));
482  functionList->niCalculateSha256 = reinterpret_cast<decltype(ni_calculate_sha256)*>(dlsym(lib,"ni_calculate_sha256"));
483  functionList->niCopyHwDescriptors = reinterpret_cast<decltype(ni_copy_hw_descriptors)*>(dlsym(lib,"ni_copy_hw_descriptors"));
484  functionList->niGetLibxcoderApiVer = reinterpret_cast<decltype(ni_get_libxcoder_api_ver)*>(dlsym(lib,"ni_get_libxcoder_api_ver"));
485  functionList->niGetCompatFwApiVer = reinterpret_cast<decltype(ni_get_compat_fw_api_ver)*>(dlsym(lib,"ni_get_compat_fw_api_ver"));
486  functionList->niFmtFwApiVerStr = reinterpret_cast<decltype(ni_fmt_fw_api_ver_str)*>(dlsym(lib,"ni_fmt_fw_api_ver_str"));
487  functionList->niCmpFwApiVer = reinterpret_cast<decltype(ni_cmp_fw_api_ver)*>(dlsym(lib,"ni_cmp_fw_api_ver"));
488  functionList->niGetLibxcoderReleaseVer = reinterpret_cast<decltype(ni_get_libxcoder_release_ver)*>(dlsym(lib,"ni_get_libxcoder_release_ver"));
489  functionList->niGetRcTxt = reinterpret_cast<decltype(ni_get_rc_txt)*>(dlsym(lib,"ni_get_rc_txt"));
490  functionList->niParamGetKeyValue = reinterpret_cast<decltype(ni_param_get_key_value)*>(dlsym(lib,"ni_param_get_key_value"));
491  functionList->niRetrieveXcoderParams = reinterpret_cast<decltype(ni_retrieve_xcoder_params)*>(dlsym(lib,"ni_retrieve_xcoder_params"));
492  functionList->niRetrieveXcoderGop = reinterpret_cast<decltype(ni_retrieve_xcoder_gop)*>(dlsym(lib,"ni_retrieve_xcoder_gop"));
493  functionList->niRetrieveDecoderParams = reinterpret_cast<decltype(ni_retrieve_decoder_params)*>(dlsym(lib,"ni_retrieve_decoder_params"));
494  functionList->niPthreadMutexInit = reinterpret_cast<decltype(ni_pthread_mutex_init)*>(dlsym(lib,"ni_pthread_mutex_init"));
495  functionList->niPthreadMutexDestroy = reinterpret_cast<decltype(ni_pthread_mutex_destroy)*>(dlsym(lib,"ni_pthread_mutex_destroy"));
496  functionList->niPthreadMutexLock = reinterpret_cast<decltype(ni_pthread_mutex_lock)*>(dlsym(lib,"ni_pthread_mutex_lock"));
497  functionList->niPthreadMutexUnlock = reinterpret_cast<decltype(ni_pthread_mutex_unlock)*>(dlsym(lib,"ni_pthread_mutex_unlock"));
498  functionList->niPthreadCreate = reinterpret_cast<decltype(ni_pthread_create)*>(dlsym(lib,"ni_pthread_create"));
499  functionList->niPthreadJoin = reinterpret_cast<decltype(ni_pthread_join)*>(dlsym(lib,"ni_pthread_join"));
500  functionList->niPthreadCondInit = reinterpret_cast<decltype(ni_pthread_cond_init)*>(dlsym(lib,"ni_pthread_cond_init"));
501  functionList->niPthreadCondDestroy = reinterpret_cast<decltype(ni_pthread_cond_destroy)*>(dlsym(lib,"ni_pthread_cond_destroy"));
502  functionList->niPthreadCondBroadcast = reinterpret_cast<decltype(ni_pthread_cond_broadcast)*>(dlsym(lib,"ni_pthread_cond_broadcast"));
503  functionList->niPthreadCondWait = reinterpret_cast<decltype(ni_pthread_cond_wait)*>(dlsym(lib,"ni_pthread_cond_wait"));
504  functionList->niPthreadCondSignal = reinterpret_cast<decltype(ni_pthread_cond_signal)*>(dlsym(lib,"ni_pthread_cond_signal"));
505  functionList->niPthreadCondTimedwait = reinterpret_cast<decltype(ni_pthread_cond_timedwait)*>(dlsym(lib,"ni_pthread_cond_timedwait"));
506  functionList->niPthreadSigmask = reinterpret_cast<decltype(ni_pthread_sigmask)*>(dlsym(lib,"ni_pthread_sigmask"));
507  functionList->niPosixMemalign = reinterpret_cast<decltype(ni_posix_memalign)*>(dlsym(lib,"ni_posix_memalign"));
508  functionList->niAiErrnoToStr = reinterpret_cast<decltype(ni_ai_errno_to_str)*>(dlsym(lib,"ni_ai_errno_to_str"));
509  //
510  // Function/symbol loading for ni_device_api.h
511  //
512  functionList->niDeviceSessionContextAllocInit = reinterpret_cast<decltype(ni_device_session_context_alloc_init)*>(dlsym(lib,"ni_device_session_context_alloc_init"));
513  functionList->niDeviceSessionContextInit = reinterpret_cast<decltype(ni_device_session_context_init)*>(dlsym(lib,"ni_device_session_context_init"));
514  functionList->niDeviceSessionContextClear = reinterpret_cast<decltype(ni_device_session_context_clear)*>(dlsym(lib,"ni_device_session_context_clear"));
515  functionList->niDeviceSessionContextFree = reinterpret_cast<decltype(ni_device_session_context_free)*>(dlsym(lib,"ni_device_session_context_free"));
516  functionList->niCreateEvent = reinterpret_cast<decltype(ni_create_event)*>(dlsym(lib,"ni_create_event"));
517  functionList->niCloseEvent = reinterpret_cast<decltype(ni_close_event)*>(dlsym(lib,"ni_close_event"));
518  functionList->niDeviceOpen = reinterpret_cast<decltype(ni_device_open)*>(dlsym(lib,"ni_device_open"));
519  functionList->niDeviceClose = reinterpret_cast<decltype(ni_device_close)*>(dlsym(lib,"ni_device_close"));
520  functionList->niDeviceCapabilityQuery = reinterpret_cast<decltype(ni_device_capability_query)*>(dlsym(lib,"ni_device_capability_query"));
521  functionList->niDeviceCapabilityQuery2 = reinterpret_cast<decltype(ni_device_capability_query2)*>(dlsym(lib,"ni_device_capability_query2"));
522  functionList->niDeviceSessionOpen = reinterpret_cast<decltype(ni_device_session_open)*>(dlsym(lib,"ni_device_session_open"));
523  functionList->niDeviceSessionClose = reinterpret_cast<decltype(ni_device_session_close)*>(dlsym(lib,"ni_device_session_close"));
524  functionList->niDeviceSessionFlush = reinterpret_cast<decltype(ni_device_session_flush)*>(dlsym(lib,"ni_device_session_flush"));
525  functionList->niDeviceDecSessionSaveHdrs = reinterpret_cast<decltype(ni_device_dec_session_save_hdrs)*>(dlsym(lib,"ni_device_dec_session_save_hdrs"));
526  functionList->niDeviceDecSessionFlush = reinterpret_cast<decltype(ni_device_dec_session_flush)*>(dlsym(lib,"ni_device_dec_session_flush"));
527  functionList->niDeviceSessionWrite = reinterpret_cast<decltype(ni_device_session_write)*>(dlsym(lib,"ni_device_session_write"));
528  functionList->niDeviceSessionRead = reinterpret_cast<decltype(ni_device_session_read)*>(dlsym(lib,"ni_device_session_read"));
529  functionList->niDeviceSessionQuery = reinterpret_cast<decltype(ni_device_session_query)*>(dlsym(lib,"ni_device_session_query"));
530  functionList->niDeviceSessionQueryDetail = reinterpret_cast<decltype(ni_device_session_query_detail)*>(dlsym(lib,"ni_device_session_query_detail"));
531  functionList->niDeviceSessionQueryDetailV1 = reinterpret_cast<decltype(ni_device_session_query_detail_v1)*>(dlsym(lib,"ni_device_session_query_detail_v1"));
532  functionList->niDeviceConfigNamespaceNum = reinterpret_cast<decltype(ni_device_config_namespace_num)*>(dlsym(lib,"ni_device_config_namespace_num"));
533  functionList->niDeviceConfigQos = reinterpret_cast<decltype(ni_device_config_qos)*>(dlsym(lib,"ni_device_config_qos"));
534  functionList->niDeviceConfigQosOp = reinterpret_cast<decltype(ni_device_config_qos_op)*>(dlsym(lib,"ni_device_config_qos_op"));
535  functionList->niFrameBufferAlloc = reinterpret_cast<decltype(ni_frame_buffer_alloc)*>(dlsym(lib,"ni_frame_buffer_alloc"));
536  functionList->niFrameBufferAllocDl = reinterpret_cast<decltype(ni_frame_buffer_alloc_dl)*>(dlsym(lib,"ni_frame_buffer_alloc_dl"));
537  functionList->niDecoderFrameBufferAlloc = reinterpret_cast<decltype(ni_decoder_frame_buffer_alloc)*>(dlsym(lib,"ni_decoder_frame_buffer_alloc"));
538  functionList->niEncoderFrameBufferAlloc = reinterpret_cast<decltype(ni_encoder_frame_buffer_alloc)*>(dlsym(lib,"ni_encoder_frame_buffer_alloc"));
539  functionList->niScalerDestFrameAlloc = reinterpret_cast<decltype(ni_scaler_dest_frame_alloc)*>(dlsym(lib,"ni_scaler_dest_frame_alloc"));
540  functionList->niScalerInputFrameAlloc = reinterpret_cast<decltype(ni_scaler_input_frame_alloc)*>(dlsym(lib,"ni_scaler_input_frame_alloc"));
541  functionList->niScalerFramePoolAlloc = reinterpret_cast<decltype(ni_scaler_frame_pool_alloc)*>(dlsym(lib,"ni_scaler_frame_pool_alloc"));
542  functionList->niFrameBufferAllocNv = reinterpret_cast<decltype(ni_frame_buffer_alloc_nv)*>(dlsym(lib,"ni_frame_buffer_alloc_nv"));
543  functionList->niEncoderSwFrameBufferAlloc = reinterpret_cast<decltype(ni_encoder_sw_frame_buffer_alloc)*>(dlsym(lib,"ni_encoder_sw_frame_buffer_alloc"));
544  functionList->niFrameBufferFree = reinterpret_cast<decltype(ni_frame_buffer_free)*>(dlsym(lib,"ni_frame_buffer_free"));
545  functionList->niDecoderFrameBufferFree = reinterpret_cast<decltype(ni_decoder_frame_buffer_free)*>(dlsym(lib,"ni_decoder_frame_buffer_free"));
546  functionList->niDecoderFrameBufferPoolReturnBuf = reinterpret_cast<decltype(ni_decoder_frame_buffer_pool_return_buf)*>(dlsym(lib,"ni_decoder_frame_buffer_pool_return_buf"));
547  functionList->niPacketBufferAlloc = reinterpret_cast<decltype(ni_packet_buffer_alloc)*>(dlsym(lib,"ni_packet_buffer_alloc"));
548  functionList->niCustomPacketBufferAlloc = reinterpret_cast<decltype(ni_custom_packet_buffer_alloc)*>(dlsym(lib,"ni_custom_packet_buffer_alloc"));
549  functionList->niPacketBufferFree = reinterpret_cast<decltype(ni_packet_buffer_free)*>(dlsym(lib,"ni_packet_buffer_free"));
550  functionList->niPacketBufferFreeAv1 = reinterpret_cast<decltype(ni_packet_buffer_free_av1)*>(dlsym(lib,"ni_packet_buffer_free_av1"));
551  functionList->niPacketCopy = reinterpret_cast<decltype(ni_packet_copy)*>(dlsym(lib,"ni_packet_copy"));
552  functionList->niFrameNewAuxData = reinterpret_cast<decltype(ni_frame_new_aux_data)*>(dlsym(lib,"ni_frame_new_aux_data"));
553  functionList->niFrameNewAuxDataFromRawData = reinterpret_cast<decltype(ni_frame_new_aux_data_from_raw_data)*>(dlsym(lib,"ni_frame_new_aux_data_from_raw_data"));
554  functionList->niFrameGetAuxData = reinterpret_cast<decltype(ni_frame_get_aux_data)*>(dlsym(lib,"ni_frame_get_aux_data"));
555  functionList->niFrameFreeAuxData = reinterpret_cast<decltype(ni_frame_free_aux_data)*>(dlsym(lib,"ni_frame_free_aux_data"));
556  functionList->niFrameWipeAuxData = reinterpret_cast<decltype(ni_frame_wipe_aux_data)*>(dlsym(lib,"ni_frame_wipe_aux_data"));
557  functionList->niEncoderInitDefaultParams = reinterpret_cast<decltype(ni_encoder_init_default_params)*>(dlsym(lib,"ni_encoder_init_default_params"));
558  functionList->niDecoderInitDefaultParams = reinterpret_cast<decltype(ni_decoder_init_default_params)*>(dlsym(lib,"ni_decoder_init_default_params"));
559  functionList->niEncoderParamsSetValue = reinterpret_cast<decltype(ni_encoder_params_set_value)*>(dlsym(lib,"ni_encoder_params_set_value"));
560  functionList->niDecoderParamsSetValue = reinterpret_cast<decltype(ni_decoder_params_set_value)*>(dlsym(lib,"ni_decoder_params_set_value"));
561  functionList->niEncoderGopParamsSetValue = reinterpret_cast<decltype(ni_encoder_gop_params_set_value)*>(dlsym(lib,"ni_encoder_gop_params_set_value"));
562  functionList->niDeviceSessionCopy = reinterpret_cast<decltype(ni_device_session_copy)*>(dlsym(lib,"ni_device_session_copy"));
563  functionList->niDeviceSessionInitFramepool = reinterpret_cast<decltype(ni_device_session_init_framepool)*>(dlsym(lib,"ni_device_session_init_framepool"));
564  functionList->niDeviceSessionReadHwdesc = reinterpret_cast<decltype(ni_device_session_read_hwdesc)*>(dlsym(lib,"ni_device_session_read_hwdesc"));
565  functionList->niDeviceSessionHwdl = reinterpret_cast<decltype(ni_device_session_hwdl)*>(dlsym(lib,"ni_device_session_hwdl"));
566  functionList->niDeviceSessionQueryBufferAvail = reinterpret_cast<decltype(ni_device_session_query_buffer_avail)*>(dlsym(lib,"ni_device_session_query_buffer_avail"));
567  functionList->niDeviceSessionHwup = reinterpret_cast<decltype(ni_device_session_hwup)*>(dlsym(lib,"ni_device_session_hwup"));
568  functionList->niFrameBufferAllocHwenc = reinterpret_cast<decltype(ni_frame_buffer_alloc_hwenc)*>(dlsym(lib,"ni_frame_buffer_alloc_hwenc"));
569  functionList->niHwframeBufferRecycle = reinterpret_cast<decltype(ni_hwframe_buffer_recycle)*>(dlsym(lib,"ni_hwframe_buffer_recycle"));
570  functionList->niHwframeBufferRecycle2 = reinterpret_cast<decltype(ni_hwframe_buffer_recycle2)*>(dlsym(lib,"ni_hwframe_buffer_recycle2"));
571  functionList->niScalerSetParams = reinterpret_cast<decltype(ni_scaler_set_params)*>(dlsym(lib,"ni_scaler_set_params"));
572  functionList->niDeviceAllocFrame = reinterpret_cast<decltype(ni_device_alloc_frame)*>(dlsym(lib,"ni_device_alloc_frame"));
573  functionList->niDeviceAllocDstFrame = reinterpret_cast<decltype(ni_device_alloc_dst_frame)*>(dlsym(lib,"ni_device_alloc_dst_frame"));
574  functionList->niDeviceCloneHwframe = reinterpret_cast<decltype(ni_device_clone_hwframe)*>(dlsym(lib,"ni_device_clone_hwframe"));
575  functionList->niDeviceConfigFrame = reinterpret_cast<decltype(ni_device_config_frame)*>(dlsym(lib,"ni_device_config_frame"));
576  functionList->niDeviceMultiConfigFrame = reinterpret_cast<decltype(ni_device_multi_config_frame)*>(dlsym(lib,"ni_device_multi_config_frame"));
577  functionList->niFrameBufferAllocPixfmt = reinterpret_cast<decltype(ni_frame_buffer_alloc_pixfmt)*>(dlsym(lib,"ni_frame_buffer_alloc_pixfmt"));
578  functionList->niAiConfigNetworkBinary = reinterpret_cast<decltype(ni_ai_config_network_binary)*>(dlsym(lib,"ni_ai_config_network_binary"));
579  functionList->niAiConfigHvsplus = reinterpret_cast<decltype(ni_ai_config_hvsplus)*>(dlsym(lib,"ni_ai_config_hvsplus"));
580  functionList->niAiFrameBufferAlloc = reinterpret_cast<decltype(ni_ai_frame_buffer_alloc)*>(dlsym(lib,"ni_ai_frame_buffer_alloc"));
581  functionList->niAiPacketBufferAlloc = reinterpret_cast<decltype(ni_ai_packet_buffer_alloc)*>(dlsym(lib,"ni_ai_packet_buffer_alloc"));
582  functionList->niReconfigBitrate = reinterpret_cast<decltype(ni_reconfig_bitrate)*>(dlsym(lib,"ni_reconfig_bitrate"));
583  functionList->niReconfigVui = reinterpret_cast<decltype(ni_reconfig_vui)*>(dlsym(lib,"ni_reconfig_vui"));
584  functionList->niForceIdrFrameType = reinterpret_cast<decltype(ni_force_idr_frame_type)*>(dlsym(lib,"ni_force_idr_frame_type"));
585  functionList->niSetLtr = reinterpret_cast<decltype(ni_set_ltr)*>(dlsym(lib,"ni_set_ltr"));
586  functionList->niSetLtrInterval = reinterpret_cast<decltype(ni_set_ltr_interval)*>(dlsym(lib,"ni_set_ltr_interval"));
587  functionList->niSetFrameRefInvalid = reinterpret_cast<decltype(ni_set_frame_ref_invalid)*>(dlsym(lib,"ni_set_frame_ref_invalid"));
588  functionList->niReconfigFramerate = reinterpret_cast<decltype(ni_reconfig_framerate)*>(dlsym(lib,"ni_reconfig_framerate"));
589  functionList->niReconfigMaxFrameSize = reinterpret_cast<decltype(ni_reconfig_max_frame_size)*>(dlsym(lib,"ni_reconfig_max_frame_size"));
590  functionList->niReconfigMinMaxQp = reinterpret_cast<decltype(ni_reconfig_min_max_qp)*>(dlsym(lib,"ni_reconfig_min_max_qp"));
591  functionList->niDeviceSessionAcquire = reinterpret_cast<decltype(ni_device_session_acquire)*>(dlsym(lib,"ni_device_session_acquire"));
592  functionList->niDeviceSessionAcquireForRead = reinterpret_cast<decltype(ni_device_session_acquire_for_read)*>(dlsym(lib,"ni_device_session_acquire_for_read"));
593  functionList->niUploaderFrameBufferLock = reinterpret_cast<decltype(ni_uploader_frame_buffer_lock)*>(dlsym(lib,"ni_uploader_frame_buffer_lock"));
594  functionList->niUploaderFrameBufferUnlock = reinterpret_cast<decltype(ni_uploader_frame_buffer_unlock)*>(dlsym(lib,"ni_uploader_frame_buffer_unlock"));
595  functionList->niUploaderP2PTestSend = reinterpret_cast<decltype(ni_uploader_p2p_test_send)*>(dlsym(lib,"ni_uploader_p2p_test_send"));
596  functionList->niUploaderP2PTestLoad = reinterpret_cast<decltype(ni_uploader_p2p_test_load)*>(dlsym(lib,"ni_uploader_p2p_test_load"));
597  functionList->niEncoderSetInputFrameFormat = reinterpret_cast<decltype(ni_encoder_set_input_frame_format)*>(dlsym(lib,"ni_encoder_set_input_frame_format"));
598  functionList->niUploaderSetFrameFormat = reinterpret_cast<decltype(ni_uploader_set_frame_format)*>(dlsym(lib,"ni_uploader_set_frame_format"));
599  functionList->niScalerP2PFrameAcquire = reinterpret_cast<decltype(ni_scaler_p2p_frame_acquire)*>(dlsym(lib,"ni_scaler_p2p_frame_acquire"));
600  functionList->niHwframeP2PBufferRecycle = reinterpret_cast<decltype(ni_hwframe_p2p_buffer_recycle)*>(dlsym(lib,"ni_hwframe_p2p_buffer_recycle"));
601  functionList->niEncoderSessionReadStreamHeader = reinterpret_cast<decltype(ni_encoder_session_read_stream_header)*>(dlsym(lib,"ni_encoder_session_read_stream_header"));
602  functionList->niGetDmaBufFileDescriptor = reinterpret_cast<decltype(ni_get_dma_buf_file_descriptor)*>(dlsym(lib,"ni_get_dma_buf_file_descriptor"));
603  functionList->niDeviceSessionSequenceChange = reinterpret_cast<decltype(ni_device_session_sequence_change)*>(dlsym(lib,"ni_device_session_sequence_change"));
604  functionList->niScalerSetDrawboxParams = reinterpret_cast<decltype(ni_scaler_set_drawbox_params)*>(dlsym(lib,"ni_scaler_set_drawbox_params"));
605  functionList->niScalerSetWatermarkParams = reinterpret_cast<decltype(ni_scaler_set_watermark_params)*>(dlsym(lib,"ni_scaler_set_watermark_params"));
606  functionList->niAiSessionReadMetrics = reinterpret_cast<decltype(ni_ai_session_read_metrics)*>(dlsym(lib,"ni_ai_session_read_metrics"));
607  functionList->niQueryNvmeStatus = reinterpret_cast<decltype(ni_query_nvme_status)*>(dlsym(lib,"ni_query_nvme_status"));
608  functionList->niQueryFlFwVersions = reinterpret_cast<decltype(ni_query_fl_fw_versions)*>(dlsym(lib,"ni_query_fl_fw_versions"));
609  functionList->niQueryVfNsId = reinterpret_cast<decltype(ni_query_vf_ns_id)*>(dlsym(lib,"ni_query_vf_ns_id"));
610  functionList->niQueryTemperature = reinterpret_cast<decltype(ni_query_temperature)*>(dlsym(lib,"ni_query_temperature"));
611  functionList->niQueryExtraInfo = reinterpret_cast<decltype(ni_query_extra_info)*>(dlsym(lib,"ni_query_extra_info"));
612  functionList->niEncoderFrameZerocopyCheck = reinterpret_cast<decltype(ni_encoder_frame_zerocopy_check)*>(dlsym(lib,"ni_encoder_frame_zerocopy_check"));
613  functionList->niEncoderFrameZerocopyBufferAlloc = reinterpret_cast<decltype(ni_encoder_frame_zerocopy_buffer_alloc)*>(dlsym(lib,"ni_encoder_frame_zerocopy_buffer_alloc"));
614  functionList->niUploaderFrameZerocopyCheck = reinterpret_cast<decltype(ni_uploader_frame_zerocopy_check)*>(dlsym(lib,"ni_uploader_frame_zerocopy_check"));
615  functionList->niReconfigCrf = reinterpret_cast<decltype(ni_reconfig_crf)*>(dlsym(lib,"ni_reconfig_crf"));
616  functionList->niReconfigCrf2 = reinterpret_cast<decltype(ni_reconfig_crf2)*>(dlsym(lib,"ni_reconfig_crf2"));
617  functionList->niDeviceAllocAndGetFirmwareLogs = reinterpret_cast<decltype(ni_device_alloc_and_get_firmware_logs)*>(dlsym(lib,"ni_device_alloc_and_get_firmware_logs"));
618  functionList->niReconfigVbvValue = reinterpret_cast<decltype(ni_reconfig_vbv_value)*>(dlsym(lib,"ni_reconfig_vbv_value"));
619  functionList->niDeviceSessionUpdateFramepool = reinterpret_cast<decltype(ni_device_session_update_framepool)*>(dlsym(lib,"ni_device_session_update_framepool"));
620  functionList->niGetFrameDim = reinterpret_cast<decltype(ni_get_frame_dim)*>(dlsym(lib,"ni_get_frame_dim"));
621  functionList->niGetMinFrameDim = reinterpret_cast<decltype(ni_get_min_frame_dim)*>(dlsym(lib,"ni_get_min_frame_dim"));
622  functionList->niCopyFrameData = reinterpret_cast<decltype(ni_copy_frame_data)*>(dlsym(lib,"ni_copy_frame_data"));
623  functionList->niEncFrameBufferAlloc = reinterpret_cast<decltype(ni_enc_frame_buffer_alloc)*>(dlsym(lib,"ni_enc_frame_buffer_alloc"));
624  functionList->niSetDemoRoiMap = reinterpret_cast<decltype(ni_set_demo_roi_map)*>(dlsym(lib,"ni_set_demo_roi_map"));
625  functionList->niEncPrepReconfDemoData = reinterpret_cast<decltype(ni_enc_prep_reconf_demo_data)*>(dlsym(lib,"ni_enc_prep_reconf_demo_data"));
626  functionList->niGopParamsCheckSet = reinterpret_cast<decltype(ni_gop_params_check_set)*>(dlsym(lib,"ni_gop_params_check_set"));
627  functionList->niGopParamsCheck = reinterpret_cast<decltype(ni_gop_params_check)*>(dlsym(lib,"ni_gop_params_check"));
628  functionList->niReconfigMaxFrameSizeRatio = reinterpret_cast<decltype(ni_reconfig_max_frame_size_ratio)*>(dlsym(lib,"ni_reconfig_max_frame_size_ratio"));
629  functionList->niReconfigIntraprd = reinterpret_cast<decltype(ni_reconfig_intraprd)*>(dlsym(lib,"ni_reconfig_intraprd"));
630  functionList->niP2PXfer = reinterpret_cast<decltype(ni_p2p_xfer)*>(dlsym(lib,"ni_p2p_xfer"));
631  functionList->niP2PSend = reinterpret_cast<decltype(ni_p2p_send)*>(dlsym(lib,"ni_p2p_send"));
632  functionList->niCalculateTotalFrameSize = reinterpret_cast<decltype(ni_calculate_total_frame_size)*>(dlsym(lib,"ni_calculate_total_frame_size"));
633  functionList->niReconfigSliceArg = reinterpret_cast<decltype(ni_reconfig_slice_arg)*>(dlsym(lib,"ni_reconfig_slice_arg"));
634  functionList->niP2PRecv = reinterpret_cast<decltype(ni_p2p_recv)*>(dlsym(lib,"ni_p2p_recv"));
635  functionList->niDeviceSessionRestart = reinterpret_cast<decltype(ni_device_session_restart)*>(dlsym(lib,"ni_device_session_restart"));
636  }
637 };
638 
639 
640 #endif // _NETINTLIBXCODERAPI_H_
641 
_ni_ppu_config
Definition: ni_av_codec.h:473
PNIENCODERSETINPUTFRAMEFORMAT
ni_retcode_t(LIB_API * PNIENCODERSETINPUTFRAMEFORMAT)(ni_session_context_t *p_enc_ctx, ni_xcoder_params_t *p_enc_params, int width, int height, int bit_depth, int src_endian, int planar)
Definition: ni_libxcoder_dynamic_loading.h:211
ni_device_alloc_and_get_firmware_logs
ni_retcode_t ni_device_alloc_and_get_firmware_logs(ni_session_context_t *p_ctx, void **p_log_buffer, bool gen_log_file)
Allocate log buffer if needed and retrieve firmware logs from device.
Definition: ni_device_api.c:11713
ni_set_demo_roi_map
ni_retcode_t ni_set_demo_roi_map(ni_session_context_t *p_enc_ctx)
Set up hard coded demo ROI map.
Definition: ni_device_api.c:11751
PNICREATEEVENT
ni_event_handle_t(LIB_API * PNICREATEEVENT)(void)
Definition: ni_libxcoder_dynamic_loading.h:127
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncWriteFromYuvBuffer
PNIENCWRITEFROMYUVBUFFER niEncWriteFromYuvBuffer
Definition: ni_libxcoder_dynamic_loading.h:261
PNISETLTRINTERVAL
ni_retcode_t(LIB_API * PNISETLTRINTERVAL)(ni_session_context_t *p_ctx, int32_t ltr_interval)
Definition: ni_libxcoder_dynamic_loading.h:200
ni_encoder_session_read_stream_header
int ni_encoder_session_read_stream_header(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data)
Read encoder stream header from the device.
Definition: ni_device_api.c:11232
ni_pthread_mutex_unlock
int ni_pthread_mutex_unlock(ni_pthread_mutex_t *mutex)
thread mutex unlock
Definition: ni_util.c:4083
PNIP2PRECV
ni_retcode_t(LIB_API * PNIP2PRECV)(ni_session_context_t *pSession, const ni_p2p_sgl_t *dmaAddrs, ni_frame_t *pDstFrame)
Definition: ni_libxcoder_dynamic_loading.h:242
ni_get_compat_fw_api_ver
NI_DEPRECATED char * ni_get_compat_fw_api_ver(void)
Get FW API version libxcoder is compatible with. Deprecated in favour of ni_fmt_fw_api_ver_str(&NI_XC...
Definition: ni_util.c:3612
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCustomPacketBufferAlloc
PNICUSTOMPACKETBUFFERALLOC niCustomPacketBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:351
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigCrf
PNIRECONFIGCRF niReconfigCrf
Definition: ni_libxcoder_dynamic_loading.h:417
ni_pthread_cond_init
int ni_pthread_cond_init(ni_pthread_cond_t *cond, const ni_pthread_condattr_t *attr)
initialize condition variables
Definition: ni_util.c:4177
ni_frame_get_aux_data
ni_aux_data_t * ni_frame_get_aux_data(const ni_frame_t *frame, ni_aux_data_type_t type)
Retrieve from the frame auxiliary data of a given type if exists.
Definition: ni_device_api.c:4066
ni_scaler_set_params
ni_retcode_t ni_scaler_set_params(ni_session_context_t *p_ctx, ni_scaler_params_t *p_params)
Set parameters on the device for the 2D engine.
Definition: ni_device_api.c:8671
ni_device_capability_query
NI_DEPRECATED ni_retcode_t ni_device_capability_query(ni_device_handle_t device_handle, ni_device_capability_t *p_cap)
Query device and return device capability structure This function had been replaced by ni_device_capa...
Definition: ni_device_api.c:587
PNIPTHREADJOIN
int(LIB_API * PNIPTHREADJOIN)(ni_pthread_t thread, void **value_ptr)
Definition: ni_libxcoder_dynamic_loading.h:108
ni_encoder_params_set_value
ni_retcode_t ni_encoder_params_set_value(ni_xcoder_params_t *p_params, const char *name, const char *value)
Set value referenced by name in encoder parameters structure.
Definition: ni_device_api.c:5635
PNISETLTR
ni_retcode_t(LIB_API * PNISETLTR)(ni_session_context_t *p_ctx, ni_long_term_ref_t *ltr)
Definition: ni_libxcoder_dynamic_loading.h:199
_ni_p2p_sgl_t
Definition: ni_defs.h:403
_NETINT_LIBXCODER_API_FUNCTION_LIST::niHwframeBufferRecycle
PNIHWFRAMEBUFFERRECYCLE niHwframeBufferRecycle
Definition: ni_libxcoder_dynamic_loading.h:371
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionUpdateFramepool
PNIDEVICESESSIONUPDATEFRAMEPOOL niDeviceSessionUpdateFramepool
Definition: ni_libxcoder_dynamic_loading.h:421
_ni_network_data
Definition: ni_device_api.h:1363
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadMutexUnlock
PNIPTHREADMUTEXUNLOCK niPthreadMutexUnlock
Definition: ni_libxcoder_dynamic_loading.h:300
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderSetInputFrameFormat
PNIENCODERSETINPUTFRAMEFORMAT niEncoderSetInputFrameFormat
Definition: ni_libxcoder_dynamic_loading.h:399
_NETINT_LIBXCODER_API_FUNCTION_LIST::niForceIdrFrameType
PNIFORCEIDRFRAMETYPE niForceIdrFrameType
Definition: ni_libxcoder_dynamic_loading.h:386
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRemoveEmulationPreventBytes
PNIREMOVEEMULATIONPREVENTBYTES niRemoveEmulationPreventBytes
Definition: ni_libxcoder_dynamic_loading.h:274
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryNvmeStatus
PNIQUERYNVMESTATUS niQueryNvmeStatus
Definition: ni_libxcoder_dynamic_loading.h:409
ni_device_config_qos_op
ni_retcode_t ni_device_config_qos_op(ni_device_handle_t device_handle, ni_device_handle_t device_handle_t, uint32_t over_provision)
Send qos over provisioning mode to target namespace with specified logic block address.
Definition: ni_device_api.c:2080
PNIUPLOADERP2PTESTLOAD
ni_retcode_t(LIB_API * PNIUPLOADERP2PTESTLOAD)(ni_session_context_t *p_upl_ctx, uint8_t *p_data, uint32_t len, ni_frame_t *p_hwframe)
Definition: ni_libxcoder_dynamic_loading.h:210
ni_ai_config_network_binary
ni_retcode_t ni_ai_config_network_binary(ni_session_context_t *p_ctx, ni_network_data_t *p_network, const char *file)
configure a network context based with the network binary
Definition: ni_device_api.c:9562
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAllocHwenc
PNIFRAMEBUFFERALLOCHWENC niFrameBufferAllocHwenc
Definition: ni_libxcoder_dynamic_loading.h:370
ni_pix_fmt_t
ni_pix_fmt_t
Definition: ni_device_api.h:260
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderFrameBufferAlloc
PNIENCODERFRAMEBUFFERALLOC niEncoderFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:341
_NETINT_LIBXCODER_API_FUNCTION_LIST::niNetworkConvertTensorToData
PNINETWORKCONVERTTENSORTODATA niNetworkConvertTensorToData
Definition: ni_libxcoder_dynamic_loading.h:283
PNINETWORKLAYERCONVERTTENSOR
ni_retcode_t(LIB_API * PNINETWORKLAYERCONVERTTENSOR)(uint8_t *dst, uint32_t dst_len, const char *tensor_file, ni_network_layer_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:88
_NETINT_LIBXCODER_API_FUNCTION_LIST::niNetworkLayerConvertTensor
PNINETWORKLAYERCONVERTTENSOR niNetworkLayerConvertTensor
Definition: ni_libxcoder_dynamic_loading.h:282
PNIRETRIEVEXCODERGOP
int(LIB_API * PNIRETRIEVEXCODERGOP)(char xcoderGop[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
Definition: ni_libxcoder_dynamic_loading.h:101
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderFrameBufferFree
PNIDECODERFRAMEBUFFERFREE niDecoderFrameBufferFree
Definition: ni_libxcoder_dynamic_loading.h:348
ni_frame_buffer_free
ni_retcode_t ni_frame_buffer_free(ni_frame_t *p_frame)
Free frame buffer that was previously allocated with either ni_frame_buffer_alloc or ni_encoder_frame...
Definition: ni_device_api.c:3561
PNIEXPANDFRAME
int(LIB_API * PNIEXPANDFRAME)(ni_frame_t *dst, ni_frame_t *src, int dst_stride[], int raw_width, int raw_height, int ni_fmt, int nb_planes)
Definition: ni_libxcoder_dynamic_loading.h:67
PNIDEVICESESSIONCOPY
ni_retcode_t(LIB_API * PNIDEVICESESSIONCOPY)(ni_session_context_t *src_p_ctx, ni_session_context_t *dst_p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:174
PNIRECONFIGMAXFRAMESIZERATIO
ni_retcode_t(LIB_API * PNIRECONFIGMAXFRAMESIZERATIO)(ni_session_context_t *p_ctx, int32_t max_frame_size_ratio)
Definition: ni_libxcoder_dynamic_loading.h:236
PNIFRAMEBUFFERALLOCPIXFMT
ni_retcode_t(LIB_API * PNIFRAMEBUFFERALLOCPIXFMT)(ni_frame_t *pframe, int pixel_format, int video_width, int video_height, int linesize[], int alignment, int extra_len)
Definition: ni_libxcoder_dynamic_loading.h:191
PNIENCODERFRAMEBUFFERALLOC
ni_retcode_t(LIB_API * PNIENCODERFRAMEBUFFERALLOC)(ni_frame_t *pframe, int video_width, int video_height, int linesize[], int alignment, int extra_len, bool alignment_2pass_wa)
Definition: ni_libxcoder_dynamic_loading.h:150
PNIAIERRNOTOSTR
const typedef char *LIB_API * PNIAIERRNOTOSTR(int rc)
PNIDEVICEALLOCANDGETFIRMWARELOGS
ni_retcode_t(LIB_API * PNIDEVICEALLOCANDGETFIRMWARELOGS)(ni_session_context_t *p_ctx, void **p_log_buffer, bool gen_log_file)
Definition: ni_libxcoder_dynamic_loading.h:229
PNIFORCEIDRFRAMETYPE
ni_retcode_t(LIB_API * PNIFORCEIDRFRAMETYPE)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:198
ni_frame_buffer_alloc_nv
ni_retcode_t ni_frame_buffer_alloc_nv(ni_frame_t *p_frame, int video_width, int video_height, int linesize[], int extra_len, bool alignment_2pass_wa)
Allocate memory for the frame buffer based on provided parameters taking into account pic line size a...
Definition: ni_device_api.c:3397
PNIDECODERFRAMEBUFFERPOOLRETURNBUF
void(LIB_API * PNIDECODERFRAMEBUFFERPOOLRETURNBUF)(ni_buf_t *buf, ni_buf_pool_t *p_buffer_pool)
Definition: ni_libxcoder_dynamic_loading.h:158
_NETINT_LIBXCODER_API_FUNCTION_LIST
Definition: ni_libxcoder_dynamic_loading.h:252
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadMutexLock
PNIPTHREADMUTEXLOCK niPthreadMutexLock
Definition: ni_libxcoder_dynamic_loading.h:299
ni_retrieve_xcoder_gop
int ni_retrieve_xcoder_gop(char xcoderGop[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
Retrieve custom gop config values from –xcoder-gop.
Definition: ni_util.c:3861
PNIPTHREADSIGMASK
int(LIB_API * PNIPTHREADSIGMASK)(int how, const ni_sigset_t *set, ni_sigset_t *oldset)
Definition: ni_libxcoder_dynamic_loading.h:115
ni_device_multi_config_frame
ni_retcode_t ni_device_multi_config_frame(ni_session_context_t *p_ctx, ni_frame_config_t p_cfg_in[], int numInCfgs, ni_frame_config_t *p_cfg_out)
Configure the 2D engine to work based on provided parameters.
Definition: ni_device_api.c:9095
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadJoin
PNIPTHREADJOIN niPthreadJoin
Definition: ni_libxcoder_dynamic_loading.h:302
PNIFRAMENEWAUXDATA
ni_aux_data_t *(LIB_API * PNIFRAMENEWAUXDATA)(ni_frame_t *frame, ni_aux_data_type_t type, int data_size)
Definition: ni_libxcoder_dynamic_loading.h:164
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameNewAuxDataFromRawData
PNIFRAMENEWAUXDATAFROMRAWDATA niFrameNewAuxDataFromRawData
Definition: ni_libxcoder_dynamic_loading.h:356
ni_device_session_query
ni_retcode_t ni_device_session_query(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Query session data from the device - If device_type is valid, will query session data from specified ...
Definition: ni_device_api.c:1920
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderFrameBufferUnlock
PNIUPLOADERFRAMEBUFFERUNLOCK niUploaderFrameBufferUnlock
Definition: ni_libxcoder_dynamic_loading.h:396
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderFrameBufferAlloc
PNIDECODERFRAMEBUFFERALLOC niDecoderFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:340
ni_enc_copy_aux_data
void ni_enc_copy_aux_data(ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_frame_t *p_dec_frame, ni_codec_format_t codec_format, const uint8_t *mdcv_data, const uint8_t *cll_data, const uint8_t *cc_data, const uint8_t *udu_data, const uint8_t *hdrp_data, int is_hwframe, int is_semiplanar)
Copy auxiliary data that should be sent together with this frame to encoder.
Definition: ni_av_codec.c:2267
_ni_vui_hrd
Definition: ni_device_api.h:654
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryFlFwVersions
PNIQUERYFLFWVERSIONS niQueryFlFwVersions
Definition: ni_libxcoder_dynamic_loading.h:410
_NETINT_LIBXCODER_API_FUNCTION_LIST::niHwframeP2PBufferRecycle
PNIHWFRAMEP2PBUFFERRECYCLE niHwframeP2PBufferRecycle
Definition: ni_libxcoder_dynamic_loading.h:402
ni_device_close
void ni_device_close(ni_device_handle_t device_handle)
Close device and release resources.
Definition: ni_device_api.c:503
PNIFRAMENEWAUXDATAFROMRAWDATA
ni_aux_data_t *(LIB_API * PNIFRAMENEWAUXDATAFROMRAWDATA)(ni_frame_t *frame, ni_aux_data_type_t type, const uint8_t *raw_data, int data_size)
Definition: ni_libxcoder_dynamic_loading.h:165
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderInitDefaultParams
PNIDECODERINITDEFAULTPARAMS niDecoderInitDefaultParams
Definition: ni_libxcoder_dynamic_loading.h:361
ni_force_idr_frame_type
ni_retcode_t ni_force_idr_frame_type(ni_session_context_t *p_ctx)
Force next frame to be IDR frame during encoding.
Definition: ni_device_api.c:9992
ni_scaler_p2p_frame_acquire
ni_retcode_t ni_scaler_p2p_frame_acquire(ni_session_context_t *p_ctx, niFrameSurface1_t *p_surface, int data_len)
Acquire the scaler P2P DMA buffer for read/write.
Definition: ni_device_api.c:11029
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionContextFree
PNIDEVICESESSIONCONTEXTFREE niDeviceSessionContextFree
Definition: ni_libxcoder_dynamic_loading.h:318
PNIGETLIBXCODERAPIVER
char *(LIB_API * PNIGETLIBXCODERAPIVER)(void)
Definition: ni_libxcoder_dynamic_loading.h:93
_ni_scaler_watermark_params_t
Definition: ni_device_api.h:2584
PNICOPYYUV444PTO420P
void(LIB_API * PNICOPYYUV444PTO420P)(uint8_t *p_dst0[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_dst1[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int width, int height, int factor, int mode)
Definition: ni_libxcoder_dynamic_loading.h:78
PNIDEVICESESSIONSEQUENCECHANGE
ni_retcode_t(LIB_API * PNIDEVICESESSIONSEQUENCECHANGE)(ni_session_context_t *p_ctx, int width, int height, int bit_depth_factor, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:217
cll_data
uint8_t cll_data[NI_MAX_SEI_DATA]
Definition: ni_quadra_enc_api.c:1546
ni_reconfig_intraprd
ni_retcode_t ni_reconfig_intraprd(ni_session_context_t *p_ctx, int32_t intra_period)
Reconfigure intraPeriod dynamically during encoding.
Definition: ni_device_api.c:9909
ni_enc_insert_timecode
LIB_API int ni_enc_insert_timecode(ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_timecode_t *p_timecode)
Insert timecode data into picture timing SEI (H264) or time code SEI (H265)
Definition: ni_av_codec.c:2453
ni_query_vf_ns_id
ni_retcode_t ni_query_vf_ns_id(ni_device_handle_t device_handle, ni_device_vf_ns_id_t *p_dev_ns_vf, uint8_t fw_rev[])
Query VF and NS id from device.
Definition: ni_device_api.c:11509
ni_device_session_update_framepool
ni_retcode_t ni_device_session_update_framepool(ni_session_context_t *p_ctx, uint32_t pool_size)
Sends frame pool change info to device.
Definition: ni_device_api.c:8612
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncPrepAuxData
PNIENCPREPAUXDATA niEncPrepAuxData
Definition: ni_libxcoder_dynamic_loading.h:259
ni_device_session_sequence_change
ni_retcode_t ni_device_session_sequence_change(ni_session_context_t *p_ctx, int width, int height, int bit_depth_factor, ni_device_type_t device_type)
Send sequence change information to device.
Definition: ni_device_api.c:11322
PNIPTHREADCREATE
int(LIB_API * PNIPTHREADCREATE)(ni_pthread_t *thread, const ni_pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
Definition: ni_libxcoder_dynamic_loading.h:107
_NETINT_LIBXCODER_API_FUNCTION_LIST::niNetworkConvertDataToTensor
PNINETWORKCONVERTDATATOTENSOR niNetworkConvertDataToTensor
Definition: ni_libxcoder_dynamic_loading.h:284
ni_network_layer_convert_output
ni_retcode_t ni_network_layer_convert_output(float *dst, uint32_t dst_len, ni_packet_t *p_packet, ni_network_data_t *p_network, uint32_t layer)
Definition: ni_util.c:3084
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSetLtr
PNISETLTR niSetLtr
Definition: ni_libxcoder_dynamic_loading.h:387
_ni_rc_min_max_qp
Definition: ni_device_api.h:704
PNIFMTFWAPIVERSTR
void(LIB_API * PNIFMTFWAPIVERSTR)(const char ver_str[], char fmt_str[])
Definition: ni_libxcoder_dynamic_loading.h:95
ni_device_type_t
ni_device_type_t
Definition: ni_defs.h:341
PNIAINETWORKLAYERDIMS
uint32_t(LIB_API * PNIAINETWORKLAYERDIMS)(ni_network_layer_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:87
ni_frame_buffer_alloc
ni_retcode_t ni_frame_buffer_alloc(ni_frame_t *p_frame, int video_width, int video_height, int alignment, int metadata_flag, int factor, int hw_frame_count, int is_planar)
Allocate preliminary memory for the frame buffer based on provided parameters. Applicable to YUV420 P...
Definition: ni_device_api.c:2123
PNIPARAMGETKEYVALUE
int(LIB_API * PNIPARAMGETKEYVALUE)(char *p_str, char *key, char *value)
Definition: ni_libxcoder_dynamic_loading.h:99
PNIFRAMEBUFFERALLOCHWENC
ni_retcode_t(LIB_API * PNIFRAMEBUFFERALLOCHWENC)(ni_frame_t *pframe, int video_width, int video_height, int extra_len)
Definition: ni_libxcoder_dynamic_loading.h:180
PNIDEVICESESSIONCLOSE
ni_retcode_t(LIB_API * PNIDEVICESESSIONCLOSE)(ni_session_context_t *p_ctx, int eos_received, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:134
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigIntraprd
PNIRECONFIGINTRAPRD niReconfigIntraprd
Definition: ni_libxcoder_dynamic_loading.h:431
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiFrameBufferAlloc
PNIAIFRAMEBUFFERALLOC niAiFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:382
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetMinFrameDim
PNIGETMINFRAMEDIM niGetMinFrameDim
Definition: ni_libxcoder_dynamic_loading.h:423
PNISETFRAMEREFINVALID
ni_retcode_t(LIB_API * PNISETFRAMEREFINVALID)(ni_session_context_t *p_ctx, int32_t frame_num)
Definition: ni_libxcoder_dynamic_loading.h:201
ni_device_open
ni_device_handle_t ni_device_open(const char *p_dev, uint32_t *p_max_io_size_out)
Open device and return device device_handle if successful.
Definition: ni_device_api.c:360
PNIPACKETCOPY
int(LIB_API * PNIPACKETCOPY)(void *p_destination, const void *const p_source, int cur_size, void *p_leftover, int *p_prev_size)
Definition: ni_libxcoder_dynamic_loading.h:163
ni_encoder_sw_frame_buffer_alloc
ni_retcode_t ni_encoder_sw_frame_buffer_alloc(bool planar, ni_frame_t *p_frame, int video_width, int video_height, int linesize[], int alignment, int extra_len, bool alignment_2pass_wa)
This API is a wrapper for ni_encoder_frame_buffer_alloc(), used for planar pixel formats,...
Definition: ni_device_api.c:3531
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceConfigQos
PNIDEVICECONFIGQOS niDeviceConfigQos
Definition: ni_libxcoder_dynamic_loading.h:336
ni_device_session_context_alloc_init
ni_session_context_t * ni_device_session_context_alloc_init(void)
Allocate and initialize a new ni_session_context_t struct.
Definition: ni_device_api.c:98
ni_reconfig_framerate
ni_retcode_t ni_reconfig_framerate(ni_session_context_t *p_ctx, ni_framerate_t *framerate)
Reconfigure framerate dynamically during encoding.
Definition: ni_device_api.c:10107
PNIREMOVEEMULATIONPREVENTBYTES
int(LIB_API * PNIREMOVEEMULATIONPREVENTBYTES)(uint8_t *buf, int size)
Definition: ni_libxcoder_dynamic_loading.h:80
PNIQUERYTEMPERATURE
ni_retcode_t(LIB_API * PNIQUERYTEMPERATURE)(ni_device_handle_t device_handle, ni_device_temp_t *p_dev_temp, uint8_t fw_rev[])
Definition: ni_libxcoder_dynamic_loading.h:222
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSetLtrInterval
PNISETLTRINTERVAL niSetLtrInterval
Definition: ni_libxcoder_dynamic_loading.h:388
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRetrieveXcoderGop
PNIRETRIEVEXCODERGOP niRetrieveXcoderGop
Definition: ni_libxcoder_dynamic_loading.h:295
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceDecSessionSaveHdrs
PNIDEVICEDECSESSIONSAVEHDRS niDeviceDecSessionSaveHdrs
Definition: ni_libxcoder_dynamic_loading.h:328
ni_retrieve_xcoder_params
int ni_retrieve_xcoder_params(char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
retrieve encoder config parameter values from –xcoder-params
Definition: ni_util.c:3787
_NETINT_LIBXCODER_API_FUNCTION_LIST::niP2PXfer
PNIP2PXFER niP2PXfer
Definition: ni_libxcoder_dynamic_loading.h:432
PNIDEVICESESSIONQUERYBUFFERAVAIL
ni_retcode_t(LIB_API * PNIDEVICESESSIONQUERYBUFFERAVAIL)(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:178
PNIDEVICESESSIONFLUSH
ni_retcode_t(LIB_API * PNIDEVICESESSIONFLUSH)(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:135
ni_gettime_ns
uint64_t ni_gettime_ns(void)
Definition: ni_util.c:1998
PNIDEVICESESSIONREADHWDESC
int(LIB_API * PNIDEVICESESSIONREADHWDESC)(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:176
ni_enc_write_from_yuv_buffer
int ni_enc_write_from_yuv_buffer(ni_session_context_t *p_ctx, ni_frame_t *p_enc_frame, uint8_t *p_yuv_buffer)
Send an input data frame to the encoder with YUV data given in the inputs.
Definition: ni_av_codec.c:2625
PNISTRTOK
char *(LIB_API * PNISTRTOK)(char *s, const char *delim, char **saveptr)
Definition: ni_libxcoder_dynamic_loading.h:84
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondBroadcast
PNIPTHREADCONDBROADCAST niPthreadCondBroadcast
Definition: ni_libxcoder_dynamic_loading.h:305
PNIQUERYNVMESTATUS
ni_retcode_t(LIB_API * PNIQUERYNVMESTATUS)(ni_session_context_t *p_ctx, ni_load_query_t *p_load_query)
Definition: ni_libxcoder_dynamic_loading.h:219
_ni_frameclone_desc
Definition: ni_device_api.h:1375
PNIDEVICECAPABILITYQUERY
ni_retcode_t(LIB_API * PNIDEVICECAPABILITYQUERY)(ni_device_handle_t device_handle, ni_device_capability_t *p_cap)
Definition: ni_libxcoder_dynamic_loading.h:131
PNIUPLOADERP2PTESTSEND
ni_retcode_t(LIB_API * PNIUPLOADERP2PTESTSEND)(ni_session_context_t *p_upl_ctx, uint8_t *p_data, uint32_t len, ni_frame_t *p_hwframe)
Definition: ni_libxcoder_dynamic_loading.h:209
ni_set_frame_ref_invalid
ni_retcode_t ni_set_frame_ref_invalid(ni_session_context_t *p_ctx, int32_t frame_num)
Set frame reference invalidation.
Definition: ni_device_api.c:10082
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetCompatFwApiVer
PNIGETCOMPATFWAPIVER niGetCompatFwApiVer
Definition: ni_libxcoder_dynamic_loading.h:288
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderFrameBufferLock
PNIUPLOADERFRAMEBUFFERLOCK niUploaderFrameBufferLock
Definition: ni_libxcoder_dynamic_loading.h:395
PNIAIPACKETBUFFERALLOC
ni_retcode_t(LIB_API * PNIAIPACKETBUFFERALLOC)(ni_packet_t *p_packet, ni_network_data_t *p_network)
Definition: ni_libxcoder_dynamic_loading.h:195
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerDestFrameAlloc
PNISCALERDESTFRAMEALLOC niScalerDestFrameAlloc
Definition: ni_libxcoder_dynamic_loading.h:342
ni_av_codec.h
Audio/video related utility definitions.
ni_pthread_cond_destroy
int ni_pthread_cond_destroy(ni_pthread_cond_t *cond)
destroy condition variables
Definition: ni_util.c:4196
ni_reconfig_crf
ni_retcode_t ni_reconfig_crf(ni_session_context_t *p_ctx, int32_t crf)
Reconfigure crf value dynamically during encoding.
Definition: ni_device_api.c:10301
ni_aux_data_type_t
enum _ni_frame_aux_data_type ni_aux_data_type_t
PNICLOSEEVENT
void(LIB_API * PNICLOSEEVENT)(ni_event_handle_t event_handle)
Definition: ni_libxcoder_dynamic_loading.h:128
ni_packet_buffer_free
ni_retcode_t ni_packet_buffer_free(ni_packet_t *p_packet)
Free packet buffer that was previously allocated with ni_packet_buffer_alloc.
Definition: ni_device_api.c:3843
PNIEXTRACTCUSTOMSEI
int(LIB_API * PNIEXTRACTCUSTOMSEI)(uint8_t *pkt_data, int pkt_size, long index, ni_packet_t *p_packet, uint8_t sei_type, int vcl_found)
Definition: ni_libxcoder_dynamic_loading.h:65
ni_scaler_set_drawbox_params
ni_retcode_t ni_scaler_set_drawbox_params(ni_session_context_t *p_ctx, ni_scaler_drawbox_params_t *p_params)
Send a p_config command to configure scaling drawbox parameters.
Definition: ni_device_api.c:8701
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFmtFwApiVerStr
PNIFMTFWAPIVERSTR niFmtFwApiVerStr
Definition: ni_libxcoder_dynamic_loading.h:289
_ni_scaler_input_params_t
Definition: ni_device_api.h:2544
ni_close_event
void ni_close_event(ni_event_handle_t event_handle)
Close event and release resources (Windows only)
Definition: ni_device_api.c:294
PNIDEVICESESSIONHWUP
int(LIB_API * PNIDEVICESESSIONHWUP)(ni_session_context_t *p_ctx, ni_session_data_io_t *p_src_data, niFrameSurface1_t *hwdesc)
Definition: ni_libxcoder_dynamic_loading.h:179
ni_device_dec_session_flush
ni_retcode_t ni_device_dec_session_flush(ni_session_context_t *p_ctx)
Flush a decoder session to get ready to continue decoding. Note: this is different from ni_device_ses...
Definition: ni_device_api.c:1621
ni_uploader_frame_buffer_lock
ni_retcode_t ni_uploader_frame_buffer_lock(ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
Lock a hardware P2P frame prior to encoding.
Definition: ni_device_api.c:10763
_ni_network_perf_metrics
Definition: ni_device_api.h:1384
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAlloc
PNIFRAMEBUFFERALLOC niFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:338
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionQueryBufferAvail
PNIDEVICESESSIONQUERYBUFFERAVAIL niDeviceSessionQueryBufferAvail
Definition: ni_libxcoder_dynamic_loading.h:438
ni_encoder_frame_zerocopy_check
ni_retcode_t ni_encoder_frame_zerocopy_check(ni_session_context_t *p_enc_ctx, ni_xcoder_params_t *p_enc_params, int width, int height, const int linesize[], bool set_linesize)
Check if incoming frame is encoder zero copy compatible or not.
Definition: ni_device_api.c:2733
PNIDEVICEALLOCDSTFRAME
ni_retcode_t(LIB_API * PNIDEVICEALLOCDSTFRAME)(ni_session_context_t *p_ctx, niFrameSurface1_t *p_out_surface, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:185
NETINTLibxcoderAPI::NiLibxcoderAPICreateInstance
static void NiLibxcoderAPICreateInstance(void *lib, NETINT_LIBXCODER_API_FUNCTION_LIST *functionList)
Definition: ni_libxcoder_dynamic_loading.h:449
_NETINT_LIBXCODER_API_FUNCTION_LIST::niExtractCustomSei
PNIEXTRACTCUSTOMSEI niExtractCustomSei
Definition: ni_libxcoder_dynamic_loading.h:262
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetLibxcoderReleaseVer
PNIGETLIBXCODERRELEASEVER niGetLibxcoderReleaseVer
Definition: ni_libxcoder_dynamic_loading.h:291
PNIDEVICECONFIGNAMESPACENUM
ni_retcode_t(LIB_API * PNIDEVICECONFIGNAMESPACENUM)(ni_device_handle_t device_handle, uint32_t namespace_num, uint32_t sriov_index)
Definition: ni_libxcoder_dynamic_loading.h:143
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderFrameZerocopyBufferAlloc
PNIENCODERFRAMEZEROCOPYBUFFERALLOC niEncoderFrameZerocopyBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:415
_ni_frame_config
Definition: ni_device_api.h:2808
ni_pic_type_t
ni_pic_type_t
Definition: ni_device_api.h:382
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncPrepReconfDemoData
PNIENCPREPRECONFDEMODATA niEncPrepReconfDemoData
Definition: ni_libxcoder_dynamic_loading.h:427
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionRestart
PNIDEVICESESSIONRESTART niDeviceSessionRestart
Definition: ni_libxcoder_dynamic_loading.h:437
ni_copy_hw_descriptors
void ni_copy_hw_descriptors(uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS])
Copy Descriptor data to Netint HW descriptor frame layout to be sent to encoder for encoding....
Definition: ni_util.c:3576
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAllocNv
PNIFRAMEBUFFERALLOCNV niFrameBufferAllocNv
Definition: ni_libxcoder_dynamic_loading.h:345
ni_pthread_cond_signal
int ni_pthread_cond_signal(ni_pthread_cond_t *cond)
signal a condition
Definition: ni_util.c:4251
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecPacketParse
PNIDECPACKETPARSE niDecPacketParse
Definition: ni_libxcoder_dynamic_loading.h:263
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameNewAuxData
PNIFRAMENEWAUXDATA niFrameNewAuxData
Definition: ni_libxcoder_dynamic_loading.h:355
ni_query_nvme_status
ni_retcode_t ni_query_nvme_status(ni_session_context_t *p_ctx, ni_load_query_t *p_load_query)
Query NVMe load from the device.
Definition: ni_device_api.c:11447
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigMaxFrameSize
PNIRECONFIGMAXFRAMESIZE niReconfigMaxFrameSize
Definition: ni_libxcoder_dynamic_loading.h:391
ni_ai_config_hvsplus
ni_retcode_t ni_ai_config_hvsplus(ni_session_context_t *p_ctx, ni_network_data_t *p_network)
configure a hvsplus filter
Definition: ni_device_api.c:9651
PNIGOPPARAMSCHECKSET
void(LIB_API * PNIGOPPARAMSCHECKSET)(ni_xcoder_params_t *p_param, char *value)
Definition: ni_libxcoder_dynamic_loading.h:234
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncInsertTimecode
PNIENCINSERTTIMECODE niEncInsertTimecode
Definition: ni_libxcoder_dynamic_loading.h:266
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerSetDrawboxParams
PNISCALERSETDRAWBOXPARAMS niScalerSetDrawboxParams
Definition: ni_libxcoder_dynamic_loading.h:406
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerP2PFrameAcquire
PNISCALERP2PFRAMEACQUIRE niScalerP2PFrameAcquire
Definition: ni_libxcoder_dynamic_loading.h:401
ni_reconfig_vbv_value
ni_retcode_t ni_reconfig_vbv_value(ni_session_context_t *p_ctx, int32_t vbvMaxRate, int32_t vbvBufferSize)
Reconfigure vbv buffer size and vbv max rate dynamically during encoding.
Definition: ni_device_api.c:10418
PNIDECODERPARAMSSETVALUE
ni_retcode_t(LIB_API * PNIDECODERPARAMSSETVALUE)(ni_xcoder_params_t *p_params, const char *name, char *value)
Definition: ni_libxcoder_dynamic_loading.h:172
PNIQUERYEXTRAINFO
ni_retcode_t(LIB_API * PNIQUERYEXTRAINFO)(ni_device_handle_t device_handle, ni_device_extra_info_t *p_dev_extra_info, uint8_t fw_rev[])
Definition: ni_libxcoder_dynamic_loading.h:223
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigPpuOutput
PNIRECONFIGPPUOUTPUT niReconfigPpuOutput
Definition: ni_libxcoder_dynamic_loading.h:265
_NETINT_LIBXCODER_API_FUNCTION_LIST::niStrtok
PNISTRTOK niStrtok
Definition: ni_libxcoder_dynamic_loading.h:278
PNISCALERSETDRAWBOXPARAMS
ni_retcode_t(LIB_API * PNISCALERSETDRAWBOXPARAMS)(ni_session_context_t *p_ctx, ni_scaler_drawbox_params_t *p_params)
Definition: ni_libxcoder_dynamic_loading.h:188
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSetFrameRefInvalid
PNISETFRAMEREFINVALID niSetFrameRefInvalid
Definition: ni_libxcoder_dynamic_loading.h:389
ni_ai_errno_to_str
const char * ni_ai_errno_to_str(int rc)
return error string according to error code from firmware
Definition: ni_util.c:4321
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryExtraInfo
PNIQUERYEXTRAINFO niQueryExtraInfo
Definition: ni_libxcoder_dynamic_loading.h:413
_NETINT_LIBXCODER_API_FUNCTION_LIST::niHwframeBufferRecycle2
PNIHWFRAMEBUFFERRECYCLE2 niHwframeBufferRecycle2
Definition: ni_libxcoder_dynamic_loading.h:372
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferFree
PNIFRAMEBUFFERFREE niFrameBufferFree
Definition: ni_libxcoder_dynamic_loading.h:347
PNIDEVICESESSIONQUERYDETAIL
ni_retcode_t(LIB_API * PNIDEVICESESSIONQUERYDETAIL)(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_instance_mgr_detail_status_t *detail_data)
Definition: ni_libxcoder_dynamic_loading.h:141
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigMaxFrameSizeRatio
PNIRECONFIGMAXFRAMESIZERATIO niReconfigMaxFrameSizeRatio
Definition: ni_libxcoder_dynamic_loading.h:430
PNIPTHREADMUTEXINIT
int(LIB_API * PNIPTHREADMUTEXINIT)(ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:103
ni_device_config_frame
ni_retcode_t ni_device_config_frame(ni_session_context_t *p_ctx, ni_frame_config_t *p_cfg)
Configure the 2D engine to work based on provided parameters.
Definition: ni_device_api.c:9049
PNIFRAMEWIPEAUXDATA
void(LIB_API * PNIFRAMEWIPEAUXDATA)(ni_frame_t *frame)
Definition: ni_libxcoder_dynamic_loading.h:168
PNIDEVICESESSIONQUERY
ni_retcode_t(LIB_API * PNIDEVICESESSIONQUERY)(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:140
PNIPTHREADCONDINIT
int(LIB_API * PNIPTHREADCONDINIT)(ni_pthread_cond_t *cond, const ni_pthread_condattr_t *attr)
Definition: ni_libxcoder_dynamic_loading.h:109
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiConfigNetworkBinary
PNIAICONFIGNETWORKBINARY niAiConfigNetworkBinary
Definition: ni_libxcoder_dynamic_loading.h:380
PNIGOPPARAMSCHECK
bool(LIB_API * PNIGOPPARAMSCHECK)(ni_xcoder_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:235
PNIAISESSIONREADMETRICS
ni_retcode_t(LIB_API * PNIAISESSIONREADMETRICS)(ni_session_context_t *p_ctx, ni_network_perf_metrics_t *p_metrics)
Definition: ni_libxcoder_dynamic_loading.h:218
PNIUPLOADERFRAMEBUFFERLOCK
ni_retcode_t(LIB_API * PNIUPLOADERFRAMEBUFFERLOCK)(ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:207
PNIFRAMEGETAUXDATA
ni_aux_data_t *(LIB_API * PNIFRAMEGETAUXDATA)(const ni_frame_t *frame, ni_aux_data_type_t type)
Definition: ni_libxcoder_dynamic_loading.h:166
PNIGETHWYUV420PDIM
void(LIB_API * PNIGETHWYUV420PDIM)(int width, int height, int bit_depth_factor, int is_semiplanar, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS])
Definition: ni_libxcoder_dynamic_loading.h:73
ni_copy_hw_yuv420p
void ni_copy_hw_yuv420p(uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int frame_width, int frame_height, int factor, int is_semiplanar, int conf_win_right, int dst_stride[NI_MAX_NUM_DATA_POINTERS], int dst_height[NI_MAX_NUM_DATA_POINTERS], int src_stride[NI_MAX_NUM_DATA_POINTERS], int src_height[NI_MAX_NUM_DATA_POINTERS])
Copy YUV data to Netint HW YUV420p frame layout to be sent to encoder for encoding....
Definition: ni_util.c:2352
_ni_network_layer_params_t
Definition: ni_device_api.h:1326
ni_reconfig_crf2
ni_retcode_t ni_reconfig_crf2(ni_session_context_t *p_ctx, float crf)
Reconfigure crf float point value dynamically during encoding.
Definition: ni_device_api.c:10358
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondDestroy
PNIPTHREADCONDDESTROY niPthreadCondDestroy
Definition: ni_libxcoder_dynamic_loading.h:304
PNIRECONFIGVBVVALUE
ni_retcode_t(LIB_API * PNIRECONFIGVBVVALUE)(ni_session_context_t *p_ctx, int32_t vbvMaxRate, int32_t vbvBufferSize)
Definition: ni_libxcoder_dynamic_loading.h:230
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigCrf2
PNIRECONFIGCRF2 niReconfigCrf2
Definition: ni_libxcoder_dynamic_loading.h:418
ni_pthread_cond_wait
int ni_pthread_cond_wait(ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex)
wait on a condition
Definition: ni_util.c:4233
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondSignal
PNIPTHREADCONDSIGNAL niPthreadCondSignal
Definition: ni_libxcoder_dynamic_loading.h:307
ni_cmp_fw_api_ver
int ni_cmp_fw_api_ver(const char ver1[], const char ver2[])
Compare two 3 character strings containing a FW API version. Handle comparision when FW API version f...
Definition: ni_util.c:3674
ni_scaler_input_frame_alloc
ni_retcode_t ni_scaler_input_frame_alloc(ni_session_context_t *p_ctx, ni_scaler_input_params_t scaler_params, niFrameSurface1_t *p_src_surface)
allocate device input frame by hw descriptor. This call won't actually allocate a frame but sends the...
Definition: ni_device_api.c:3333
_ni_scaler_params_t
Definition: ni_device_api.h:2566
_NETINT_LIBXCODER_API_FUNCTION_LIST::niP2PRecv
PNIP2PRECV niP2PRecv
Definition: ni_libxcoder_dynamic_loading.h:436
ni_retcode_t
ni_retcode_t
Definition: ni_defs.h:425
ni_device_clone_hwframe
ni_retcode_t ni_device_clone_hwframe(ni_session_context_t *p_ctx, ni_frameclone_desc_t *p_frameclone_desc)
Copy the data of src hwframe to dst hwframe.
Definition: ni_device_api.c:8997
PNIPTHREADMUTEXDESTROY
int(LIB_API * PNIPTHREADMUTEXDESTROY)(ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:104
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRetrieveDecoderParams
PNIRETRIEVEDECODERPARAMS niRetrieveDecoderParams
Definition: ni_libxcoder_dynamic_loading.h:296
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderSessionReadStreamHeader
PNIENCODERSESSIONREADSTREAMHEADER niEncoderSessionReadStreamHeader
Definition: ni_libxcoder_dynamic_loading.h:403
PNICOPYFRAMEDATA
void(LIB_API * PNICOPYFRAMEDATA)(uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int frame_width, int frame_height, int factor, ni_pix_fmt_t pix_fmt, int conf_win_right, int dst_stride[NI_MAX_NUM_DATA_POINTERS], int dst_height[NI_MAX_NUM_DATA_POINTERS], int src_stride[NI_MAX_NUM_DATA_POINTERS], int src_height[NI_MAX_NUM_DATA_POINTERS])
Definition: ni_libxcoder_dynamic_loading.h:77
ni_uploader_frame_buffer_unlock
ni_retcode_t ni_uploader_frame_buffer_unlock(ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
Unlock a hardware P2P frame after encoding.
Definition: ni_device_api.c:10821
PNIGETTIMENS
uint64_t(LIB_API * PNIGETTIMENS)(void)
Definition: ni_libxcoder_dynamic_loading.h:82
ni_pthread_join
int ni_pthread_join(ni_pthread_t thread, void **value_ptr)
join with a terminated thread
Definition: ni_util.c:4148
ni_enc_prep_aux_data
void ni_enc_prep_aux_data(ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_frame_t *p_dec_frame, ni_codec_format_t codec_format, int should_send_sei_with_frame, uint8_t *mdcv_data, uint8_t *cll_data, uint8_t *cc_data, uint8_t *udu_data, uint8_t *hdrp_data)
Prepare auxiliary data that should be sent together with this frame to encoder based on the auxiliary...
Definition: ni_av_codec.c:858
ni_packet_buffer_alloc
ni_retcode_t ni_packet_buffer_alloc(ni_packet_t *p_packet, int packet_size)
Allocate memory for the packet buffer based on provided packet size.
Definition: ni_device_api.c:3713
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceConfigNamespaceNum
PNIDEVICECONFIGNAMESPACENUM niDeviceConfigNamespaceNum
Definition: ni_libxcoder_dynamic_loading.h:335
ni_frame_new_aux_data
ni_aux_data_t * ni_frame_new_aux_data(ni_frame_t *frame, ni_aux_data_type_t type, int data_size)
Add a new auxiliary data to a frame.
Definition: ni_device_api.c:4005
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderInitDefaultParams
PNIENCODERINITDEFAULTPARAMS niEncoderInitDefaultParams
Definition: ni_libxcoder_dynamic_loading.h:360
PNISCALERP2PFRAMEACQUIRE
ni_retcode_t(LIB_API * PNISCALERP2PFRAMEACQUIRE)(ni_session_context_t *p_ctx, niFrameSurface1_t *p_surface, int data_len)
Definition: ni_libxcoder_dynamic_loading.h:213
PNIPTHREADCONDWAIT
int(LIB_API * PNIPTHREADCONDWAIT)(ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:112
PNIRECONFIGCRF
ni_retcode_t(LIB_API * PNIRECONFIGCRF)(ni_session_context_t *p_ctx, int32_t crf)
Definition: ni_libxcoder_dynamic_loading.h:227
PNIENCODERFRAMEZEROCOPYCHECK
ni_retcode_t(LIB_API * PNIENCODERFRAMEZEROCOPYCHECK)(ni_session_context_t *p_enc_ctx, ni_xcoder_params_t *p_enc_params, int width, int height, const int linesize[], bool set_linesize)
Definition: ni_libxcoder_dynamic_loading.h:224
PNIPTHREADCONDDESTROY
int(LIB_API * PNIPTHREADCONDDESTROY)(ni_pthread_cond_t *cond)
Definition: ni_libxcoder_dynamic_loading.h:110
PNIPACKETBUFFERFREE
ni_retcode_t(LIB_API * PNIPACKETBUFFERFREE)(ni_packet_t *ppacket)
Definition: ni_libxcoder_dynamic_loading.h:161
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionContextInit
PNIDEVICESESSIONCONTEXTINIT niDeviceSessionContextInit
Definition: ni_libxcoder_dynamic_loading.h:316
ni_scaler_dest_frame_alloc
ni_retcode_t ni_scaler_dest_frame_alloc(ni_session_context_t *p_ctx, ni_scaler_input_params_t scaler_params, niFrameSurface1_t *p_surface)
allocate device destination frame from scaler hwframe pool
Definition: ni_device_api.c:3298
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameFreeAuxData
PNIFRAMEFREEAUXDATA niFrameFreeAuxData
Definition: ni_libxcoder_dynamic_loading.h:358
PNIPTHREADMUTEXLOCK
int(LIB_API * PNIPTHREADMUTEXLOCK)(ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:105
PNIDEVICECLOSE
void(LIB_API * PNIDEVICECLOSE)(ni_device_handle_t dev)
Definition: ni_libxcoder_dynamic_loading.h:130
PNIPTHREADCONDSIGNAL
int(LIB_API * PNIPTHREADCONDSIGNAL)(ni_pthread_cond_t *cond)
Definition: ni_libxcoder_dynamic_loading.h:113
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerSetWatermarkParams
PNISCALERSETWATERMARKPARAMS niScalerSetWatermarkParams
Definition: ni_libxcoder_dynamic_loading.h:407
ni_device_config_namespace_num
ni_retcode_t ni_device_config_namespace_num(ni_device_handle_t device_handle, uint32_t namespace_num, uint32_t sriov_index)
Send namespace num and SRIOv index to the device with specified logic block address.
Definition: ni_device_api.c:2037
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPacketBufferFree
PNIPACKETBUFFERFREE niPacketBufferFree
Definition: ni_libxcoder_dynamic_loading.h:352
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigSliceArg
PNIRECONFIGSLICEARG niReconfigSliceArg
Definition: ni_libxcoder_dynamic_loading.h:435
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCopyHwYuv420P
PNICOPYHWYUV420P niCopyHwYuv420P
Definition: ni_libxcoder_dynamic_loading.h:271
PNIRECONFIGBITRATE
ni_retcode_t(LIB_API * PNIRECONFIGBITRATE)(ni_session_context_t *p_ctx, int32_t bitrate)
Definition: ni_libxcoder_dynamic_loading.h:196
udu_data
uint8_t udu_data[NI_MAX_SEI_DATA]
Definition: ni_quadra_enc_api.c:1548
ni_get_libxcoder_api_ver
char * ni_get_libxcoder_api_ver(void)
Get libxcoder API version.
Definition: ni_util.c:3600
_ni_long_term_ref
Definition: ni_device_api.h:683
PNIAINETWORKLAYERSIZE
uint32_t(LIB_API * PNIAINETWORKLAYERSIZE)(ni_network_layer_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:86
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionHwup
PNIDEVICESESSIONHWUP niDeviceSessionHwup
Definition: ni_libxcoder_dynamic_loading.h:369
ni_device_session_acquire
int ni_device_session_acquire(ni_session_context_t *p_ctx, ni_frame_t *p_frame)
Acquire a P2P frame buffer from the hwupload session.
Definition: ni_device_api.c:10602
ni_query_extra_info
ni_retcode_t ni_query_extra_info(ni_device_handle_t device_handle, ni_device_extra_info_t *p_dev_extra_info, uint8_t fw_rev[])
Query CompositeTemp from device.
Definition: ni_device_api.c:11617
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionOpen
PNIDEVICESESSIONOPEN niDeviceSessionOpen
Definition: ni_libxcoder_dynamic_loading.h:325
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecRetrieveAuxData
PNIDECRETRIEVEAUXDATA niDecRetrieveAuxData
Definition: ni_libxcoder_dynamic_loading.h:258
ni_decoder_frame_buffer_alloc
ni_retcode_t ni_decoder_frame_buffer_alloc(ni_buf_pool_t *p_pool, ni_frame_t *p_frame, int alloc_mem, int video_width, int video_height, int alignment, int factor, int is_planar)
Allocate memory for decoder frame buffer based on provided parameters; the memory is retrieved from a...
Definition: ni_device_api.c:2586
PNIQUERYFLFWVERSIONS
ni_retcode_t(LIB_API * PNIQUERYFLFWVERSIONS)(ni_device_handle_t device_handle, ni_device_info_t *p_dev_info)
Definition: ni_libxcoder_dynamic_loading.h:220
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderP2PTestLoad
PNIUPLOADERP2PTESTLOAD niUploaderP2PTestLoad
Definition: ni_libxcoder_dynamic_loading.h:398
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSetDemoRoiMap
PNISETDEMOROIMAP niSetDemoRoiMap
Definition: ni_libxcoder_dynamic_loading.h:426
ni_ai_packet_buffer_alloc
ni_retcode_t ni_ai_packet_buffer_alloc(ni_packet_t *p_packet, ni_network_data_t *p_network)
Allocate output layers memory for the packet buffer based on provided network.
Definition: ni_device_api.c:9779
ni_device_session_query_detail_v1
ni_retcode_t ni_device_session_query_detail_v1(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_instance_mgr_detail_status_v1_t *detail_data)
Query detail session data from the device - If device_type is valid, will query session data from spe...
Definition: ni_device_api.c:2000
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCreateEvent
PNICREATEEVENT niCreateEvent
Definition: ni_libxcoder_dynamic_loading.h:319
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceDecSessionFlush
PNIDEVICEDECSESSIONFLUSH niDeviceDecSessionFlush
Definition: ni_libxcoder_dynamic_loading.h:329
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceCapabilityQuery
PNIDEVICECAPABILITYQUERY niDeviceCapabilityQuery
Definition: ni_libxcoder_dynamic_loading.h:323
ni_encoder_gop_params_set_value
ni_retcode_t ni_encoder_gop_params_set_value(ni_xcoder_params_t *p_params, const char *name, const char *value)
Set GOP parameter value referenced by name in encoder parameters structure.
Definition: ni_device_api.c:7197
PNIDECPACKETPARSE
int(LIB_API * PNIDECPACKETPARSE)(ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, uint8_t *data, int size, ni_packet_t *p_packet, int low_delay, int codec_format, int pkt_nal_bitmap, int custom_sei_type, int *svct_skip_next_packet, int *is_lone_sei_pkt)
Definition: ni_libxcoder_dynamic_loading.h:66
PNICOPYHWDESCRIPTORS
void(LIB_API * PNICOPYHWDESCRIPTORS)(uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS])
Definition: ni_libxcoder_dynamic_loading.h:92
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionHwdl
PNIDEVICESESSIONHWDL niDeviceSessionHwdl
Definition: ni_libxcoder_dynamic_loading.h:368
PNIENCODERINITDEFAULTPARAMS
ni_retcode_t(LIB_API * PNIENCODERINITDEFAULTPARAMS)(ni_xcoder_params_t *p_param, int fps_num, int fps_denom, long bit_rate, int width, int height, ni_codec_format_t codec_format)
Definition: ni_libxcoder_dynamic_loading.h:169
PNIDEVICESESSIONWRITE
int(LIB_API * PNIDEVICESESSIONWRITE)(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:138
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncCopyAuxData
PNIENCCOPYAUXDATA niEncCopyAuxData
Definition: ni_libxcoder_dynamic_loading.h:260
PNIFRAMEBUFFERFREE
ni_retcode_t(LIB_API * PNIFRAMEBUFFERFREE)(ni_frame_t *pframe)
Definition: ni_libxcoder_dynamic_loading.h:156
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderParamsSetValue
PNIENCODERPARAMSSETVALUE niEncoderParamsSetValue
Definition: ni_libxcoder_dynamic_loading.h:362
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderFrameZerocopyCheck
PNIUPLOADERFRAMEZEROCOPYCHECK niUploaderFrameZerocopyCheck
Definition: ni_libxcoder_dynamic_loading.h:416
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameGetAuxData
PNIFRAMEGETAUXDATA niFrameGetAuxData
Definition: ni_libxcoder_dynamic_loading.h:357
ni_device_session_hwup
int ni_device_session_hwup(ni_session_context_t *p_ctx, ni_session_data_io_t *p_src_data, niFrameSurface1_t *hwdesc)
Sends raw YUV input to uploader instance and retrieves a HW descriptor to represent it.
Definition: ni_device_api.c:8363
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiPacketBufferAlloc
PNIAIPACKETBUFFERALLOC niAiPacketBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:383
PNIDECODERFRAMEBUFFERFREE
ni_retcode_t(LIB_API * PNIDECODERFRAMEBUFFERFREE)(ni_frame_t *pframe)
Definition: ni_libxcoder_dynamic_loading.h:157
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderSetFrameFormat
PNIUPLOADERSETFRAMEFORMAT niUploaderSetFrameFormat
Definition: ni_libxcoder_dynamic_loading.h:400
_ni_device_info
Definition: ni_rsrc_api.h:102
ni_gop_params_check_set
void ni_gop_params_check_set(ni_xcoder_params_t *p_param, char *value)
Set custom gop and prepare to check if success.
Definition: ni_device_api.c:12614
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionContextClear
PNIDEVICESESSIONCONTEXTCLEAR niDeviceSessionContextClear
Definition: ni_libxcoder_dynamic_loading.h:317
PNIPACKETBUFFERALLOC
ni_retcode_t(LIB_API * PNIPACKETBUFFERALLOC)(ni_packet_t *ppacket, int packet_size)
Definition: ni_libxcoder_dynamic_loading.h:159
ni_encoder_init_default_params
ni_retcode_t ni_encoder_init_default_params(ni_xcoder_params_t *p_param, int fps_num, int fps_denom, long bit_rate, int width, int height, ni_codec_format_t codec_format)
Initialize default encoder parameters.
Definition: ni_device_api.c:4147
ni_frame_new_aux_data_from_raw_data
ni_aux_data_t * ni_frame_new_aux_data_from_raw_data(ni_frame_t *frame, ni_aux_data_type_t type, const uint8_t *raw_data, int data_size)
Add a new auxiliary data to a frame and copy in the raw data.
Definition: ni_device_api.c:4045
_NETINT_LIBXCODER_API_FUNCTION_LIST::niInsertEmulationPreventBytes
PNIINSERTEMULATIONPREVENTBYTES niInsertEmulationPreventBytes
Definition: ni_libxcoder_dynamic_loading.h:273
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetHwYuv420PDim
PNIGETHWYUV420PDIM niGetHwYuv420PDim
Definition: ni_libxcoder_dynamic_loading.h:270
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceAllocFrame
PNIDEVICEALLOCFRAME niDeviceAllocFrame
Definition: ni_libxcoder_dynamic_loading.h:374
ni_calculate_sha256
void ni_calculate_sha256(const uint8_t aui8Data[], size_t ui32DataLength, uint8_t aui8Hash[])
Definition: ni_util.c:3550
PNIENCINSERTTIMECODE
int(LIB_API * PNIENCINSERTTIMECODE)(ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_timecode_t *p_timecode)
Definition: ni_libxcoder_dynamic_loading.h:69
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetFrameDim
PNIGETFRAMEDIM niGetFrameDim
Definition: ni_libxcoder_dynamic_loading.h:422
ni_scaler_frame_pool_alloc
ni_retcode_t ni_scaler_frame_pool_alloc(ni_session_context_t *p_ctx, ni_scaler_input_params_t scaler_params)
init output pool of scaler frames
Definition: ni_device_api.c:3355
ni_network_convert_data_to_tensor
ni_retcode_t ni_network_convert_data_to_tensor(float *dst, uint32_t dst_len, uint8_t *src, uint32_t src_len, ni_network_layer_params_t *p_param)
Definition: ni_util.c:3256
PNIGETFRAMEDIM
void(LIB_API * PNIGETFRAMEDIM)(int width, int height, ni_pix_fmt_t pix_fmt, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS])
Definition: ni_libxcoder_dynamic_loading.h:74
ni_pthread_cond_timedwait
int ni_pthread_cond_timedwait(ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex, const struct timespec *abstime)
wait on a condition
Definition: ni_util.c:4271
_ni_scaler_drawbox_params_t
Definition: ni_device_api.h:2575
PNIDEVICEDECSESSIONFLUSH
ni_retcode_t(LIB_API * PNIDEVICEDECSESSIONFLUSH)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:137
PNICALCULATETOTALFRAMESIZE
int(LIB_API * PNICALCULATETOTALFRAMESIZE)(const ni_session_context_t *p_upl_ctx, const int linesize[])
Definition: ni_libxcoder_dynamic_loading.h:240
PNIDEVICECONFIGQOS
ni_retcode_t(LIB_API * PNIDEVICECONFIGQOS)(ni_device_handle_t device_handle, uint32_t mode)
Definition: ni_libxcoder_dynamic_loading.h:144
NETINT_LIBXCODER_API_FUNCTION_LIST
struct _NETINT_LIBXCODER_API_FUNCTION_LIST NETINT_LIBXCODER_API_FUNCTION_LIST
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPosixMemalign
PNIPOSIXMEMALIGN niPosixMemalign
Definition: ni_libxcoder_dynamic_loading.h:310
ni_scaler_set_watermark_params
ni_retcode_t ni_scaler_set_watermark_params(ni_session_context_t *p_ctx, ni_scaler_watermark_params_t *p_params)
Send a p_config command to configure scaling watermark parameters.
Definition: ni_device_api.c:8781
PNINETWORKLAYERCONVERTOUTPUT
ni_retcode_t(LIB_API * PNINETWORKLAYERCONVERTOUTPUT)(float *dst, uint32_t num, ni_packet_t *p_packet, ni_network_data_t *p_network, uint32_t layer)
Definition: ni_libxcoder_dynamic_loading.h:85
PNIINSERTEMULATIONPREVENTBYTES
int(LIB_API * PNIINSERTEMULATIONPREVENTBYTES)(uint8_t *buf, int size)
Definition: ni_libxcoder_dynamic_loading.h:79
_ni_buf_t
Definition: ni_device_api.h:1272
PNIRECONFIGPPUOUTPUT
int(LIB_API * PNIRECONFIGPPUOUTPUT)(ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, ni_ppu_config_t *ppu_config)
Definition: ni_libxcoder_dynamic_loading.h:68
ni_pthread_mutex_lock
int ni_pthread_mutex_lock(ni_pthread_mutex_t *mutex)
thread mutex lock
Definition: ni_util.c:4057
PNIDEVICESESSIONUPDATEFRAMEPOOL
ni_retcode_t(LIB_API * PNIDEVICESESSIONUPDATEFRAMEPOOL)(ni_session_context_t *p_ctx, uint32_t pool_size)
Definition: ni_libxcoder_dynamic_loading.h:231
PNIDEVICECONFIGQOSOP
ni_retcode_t(LIB_API * PNIDEVICECONFIGQOSOP)(ni_device_handle_t device_handle, ni_device_handle_t device_handle_t, uint32_t over_provision)
Definition: ni_libxcoder_dynamic_loading.h:145
PNIENCODERSWFRAMEBUFFERALLOC
ni_retcode_t(LIB_API * PNIENCODERSWFRAMEBUFFERALLOC)(bool planar, ni_frame_t *p_frame, int video_width, int video_height, int linesize[], int alignment, int extra_len, bool alignment_2pass_wa)
Definition: ni_libxcoder_dynamic_loading.h:155
ni_ai_network_layer_dims
uint32_t ni_ai_network_layer_dims(ni_network_layer_params_t *p_param)
Definition: ni_util.c:3369
PNIUSLEEP
void(LIB_API * PNIUSLEEP)(int64_t usec)
Definition: ni_libxcoder_dynamic_loading.h:83
cc_data
uint8_t cc_data[NI_MAX_SEI_DATA]
Definition: ni_quadra_enc_api.c:1547
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryTemperature
PNIQUERYTEMPERATURE niQueryTemperature
Definition: ni_libxcoder_dynamic_loading.h:412
ni_ai_session_read_metrics
ni_retcode_t ni_ai_session_read_metrics(ni_session_context_t *p_ctx, ni_network_perf_metrics_t *p_metrics)
Fetch perf metrics of inferences from device.
Definition: ni_device_api.c:11379
ni_decoder_params_set_value
ni_retcode_t ni_decoder_params_set_value(ni_xcoder_params_t *p_params, const char *name, char *value)
Set value referenced by name in decoder parameters structure.
Definition: ni_device_api.c:4881
ni_dec_packet_parse
int ni_dec_packet_parse(ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, uint8_t *data, int size, ni_packet_t *p_packet, int low_delay, int codec_format, int pkt_nal_bitmap, int custom_sei_type, int *svct_skip_next_packet, int *is_lone_sei_pkt)
Decode parse packet.
Definition: ni_av_codec.c:3065
_ni_session_data_io
Definition: ni_device_api.h:2866
PNIRECONFIGFRAMERATE
ni_retcode_t(LIB_API * PNIRECONFIGFRAMERATE)(ni_session_context_t *p_ctx, ni_framerate_t *framerate)
Definition: ni_libxcoder_dynamic_loading.h:202
ni_enc_prep_reconf_demo_data
ni_retcode_t ni_enc_prep_reconf_demo_data(ni_session_context_t *p_enc_ctx, ni_frame_t *p_frame)
Convert various reconfig and demo modes (stored in encoder configuration) to aux data and store them ...
Definition: ni_device_api.c:11947
PNIENCPREPAUXDATA
void(LIB_API * PNIENCPREPAUXDATA)(ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_frame_t *p_dec_frame, ni_codec_format_t codec_format, int should_send_sei_with_frame, uint8_t *mdcv_data, uint8_t *cll_data, uint8_t *cc_data, uint8_t *udu_data, uint8_t *hdrp_data)
Definition: ni_libxcoder_dynamic_loading.h:62
PNIRECONFIGCRF2
ni_retcode_t(LIB_API * PNIRECONFIGCRF2)(ni_session_context_t *p_ctx, float crf)
Definition: ni_libxcoder_dynamic_loading.h:228
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCmpFwApiVer
PNICMPFWAPIVER niCmpFwApiVer
Definition: ni_libxcoder_dynamic_loading.h:290
PNISCALERSETPARAMS
ni_retcode_t(LIB_API * PNISCALERSETPARAMS)(ni_session_context_t *p_ctx, ni_scaler_params_t *p_params)
Definition: ni_libxcoder_dynamic_loading.h:183
PNIGETMINFRAMEDIM
void(LIB_API * PNIGETMINFRAMEDIM)(int width, int height, ni_pix_fmt_t pix_fmt, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS])
Definition: ni_libxcoder_dynamic_loading.h:75
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGettimeofday
PNIGETTIMEOFDAY niGettimeofday
Definition: ni_libxcoder_dynamic_loading.h:275
ni_enc_frame_buffer_alloc
ni_retcode_t ni_enc_frame_buffer_alloc(ni_frame_t *p_frame, int video_width, int video_height, int alignment, int metadata_flag, int factor, int hw_frame_count, int is_planar, ni_pix_fmt_t pix_fmt)
Wrapper function for ni_frame_buffer_alloc. Meant to handle RGBA min. resoulution considerations for ...
Definition: ni_device_api.c:2321
ni_frame_buffer_alloc_pixfmt
ni_retcode_t ni_frame_buffer_alloc_pixfmt(ni_frame_t *p_frame, int pixel_format, int video_width, int video_height, int linesize[], int alignment, int extra_len)
Allocate memory for the frame buffer based on provided parameters taking into account the pixel forma...
Definition: ni_device_api.c:9252
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderFrameZerocopyCheck
PNIENCODERFRAMEZEROCOPYCHECK niEncoderFrameZerocopyCheck
Definition: ni_libxcoder_dynamic_loading.h:414
ni_hwframe_p2p_buffer_recycle
ni_retcode_t ni_hwframe_p2p_buffer_recycle(ni_frame_t *p_frame)
Recycle hw P2P frames.
Definition: ni_device_api.c:10996
PNIUPLOADERSETFRAMEFORMAT
ni_retcode_t(LIB_API * PNIUPLOADERSETFRAMEFORMAT)(ni_session_context_t *p_upl_ctx, int width, int height, ni_pix_fmt_t pixel_format, int isP2P)
Definition: ni_libxcoder_dynamic_loading.h:212
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadMutexDestroy
PNIPTHREADMUTEXDESTROY niPthreadMutexDestroy
Definition: ni_libxcoder_dynamic_loading.h:298
PNIPTHREADMUTEXUNLOCK
int(LIB_API * PNIPTHREADMUTEXUNLOCK)(ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:106
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGopParamsCheck
PNIGOPPARAMSCHECK niGopParamsCheck
Definition: ni_libxcoder_dynamic_loading.h:429
PNIP2PSEND
ni_retcode_t(LIB_API * PNIP2PSEND)(ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize)
Definition: ni_libxcoder_dynamic_loading.h:239
ni_reconfig_bitrate
ni_retcode_t ni_reconfig_bitrate(ni_session_context_t *p_ctx, int32_t bitrate)
Reconfigure bitrate dynamically during encoding.
Definition: ni_device_api.c:9869
PNIRECONFIGINTRAPRD
ni_retcode_t(LIB_API * PNIRECONFIGINTRAPRD)(ni_session_context_t *p_ctx, int32_t intra_period)
Definition: ni_libxcoder_dynamic_loading.h:237
PNIDEVICESESSIONACQUIRE
int(LIB_API * PNIDEVICESESSIONACQUIRE)(ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:205
ni_frame_free_aux_data
void ni_frame_free_aux_data(ni_frame_t *frame, ni_aux_data_type_t type)
If auxiliary data of the given type exists in the frame, free it and remove it from the frame.
Definition: ni_device_api.c:4089
ni_packet_buffer_free_av1
ni_retcode_t ni_packet_buffer_free_av1(ni_packet_t *p_packet)
Free packet buffer that was previously allocated with ni_packet_buffer_alloc for AV1 packets merge.
Definition: ni_device_api.c:3884
ni_ai_frame_buffer_alloc
ni_retcode_t ni_ai_frame_buffer_alloc(ni_frame_t *p_frame, ni_network_data_t *p_network)
Allocate input layers memory for AI frame buffer based on provided parameters taking into account wid...
Definition: ni_device_api.c:9698
ni_fmt_fw_api_ver_str
void ni_fmt_fw_api_ver_str(const char ver_str[], char fmt_str[])
Get formatted FW API version string from unformatted FW API version string.
Definition: ni_util.c:3644
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderParamsSetValue
PNIDECODERPARAMSSETVALUE niDecoderParamsSetValue
Definition: ni_libxcoder_dynamic_loading.h:363
ni_uploader_set_frame_format
ni_retcode_t ni_uploader_set_frame_format(ni_session_context_t *p_upl_ctx, int width, int height, ni_pix_fmt_t pixel_format, int isP2P)
Set the outgoing frame format for the uploader.
Definition: ni_device_api.c:11171
ni_usleep
void ni_usleep(int64_t usec)
Definition: ni_util.c:358
ni_query_fl_fw_versions
ni_retcode_t ni_query_fl_fw_versions(ni_device_handle_t device_handle, ni_device_info_t *p_dev_info)
Query firmware loader and firmware versions from the device.
Definition: ni_device_api.c:11385
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceMultiConfigFrame
PNIDEVICEMULTICONFIGFRAME niDeviceMultiConfigFrame
Definition: ni_libxcoder_dynamic_loading.h:378
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetRcTxt
PNIGETRCTXT niGetRcTxt
Definition: ni_libxcoder_dynamic_loading.h:292
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAllocDl
PNIFRAMEBUFFERALLOCDL niFrameBufferAllocDl
Definition: ni_libxcoder_dynamic_loading.h:339
PNIRETRIEVEDECODERPARAMS
int(LIB_API * PNIRETRIEVEDECODERPARAMS)(char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
Definition: ni_libxcoder_dynamic_loading.h:102
ni_encoder_frame_zerocopy_buffer_alloc
ni_retcode_t ni_encoder_frame_zerocopy_buffer_alloc(ni_frame_t *p_frame, int video_width, int video_height, const int linesize[], const uint8_t *data[], int extra_len)
Allocate memory for encoder zero copy (metadata, etc.) for encoding based on given parameters,...
Definition: ni_device_api.c:2879
ni_packet_copy
int ni_packet_copy(void *p_destination, const void *const p_source, int cur_size, void *p_leftover, int *p_prev_size)
Copy video packet accounting for alignment.
Definition: ni_device_api.c:3936
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderGopParamsSetValue
PNIENCODERGOPPARAMSSETVALUE niEncoderGopParamsSetValue
Definition: ni_libxcoder_dynamic_loading.h:364
ni_expand_frame
int ni_expand_frame(ni_frame_t *dst, ni_frame_t *src, int dst_stride[], int raw_width, int raw_height, int ni_fmt, int nb_planes)
Expand frame form src frame.
Definition: ni_av_codec.c:3289
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigMinMaxQp
PNIRECONFIGMINMAXQP niReconfigMinMaxQp
Definition: ni_libxcoder_dynamic_loading.h:392
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadMutexInit
PNIPTHREADMUTEXINIT niPthreadMutexInit
Definition: ni_libxcoder_dynamic_loading.h:297
PNIFRAMEFREEAUXDATA
void(LIB_API * PNIFRAMEFREEAUXDATA)(ni_frame_t *frame, ni_aux_data_type_t type)
Definition: ni_libxcoder_dynamic_loading.h:167
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondInit
PNIPTHREADCONDINIT niPthreadCondInit
Definition: ni_libxcoder_dynamic_loading.h:303
ni_dec_retrieve_aux_data
void ni_dec_retrieve_aux_data(ni_frame_t *frame)
Retrieve auxiliary data (close caption, various SEI) associated with this frame that is returned by d...
Definition: ni_av_codec.c:237
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionFlush
PNIDEVICESESSIONFLUSH niDeviceSessionFlush
Definition: ni_libxcoder_dynamic_loading.h:327
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUsleep
PNIUSLEEP niUsleep
Definition: ni_libxcoder_dynamic_loading.h:277
PNIGETCOMPATFWAPIVER
char *(LIB_API * PNIGETCOMPATFWAPIVER)(void)
Definition: ni_libxcoder_dynamic_loading.h:94
_ni_packet
Definition: ni_device_api.h:2825
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiSessionReadMetrics
PNIAISESSIONREADMETRICS niAiSessionReadMetrics
Definition: ni_libxcoder_dynamic_loading.h:408
_ni_buf_pool_t
Definition: ni_device_api.h:1282
_ni_device_temp
Definition: ni_rsrc_api.h:235
ni_pthread_cond_broadcast
int ni_pthread_cond_broadcast(ni_pthread_cond_t *cond)
broadcast a condition
Definition: ni_util.c:4214
ni_device_session_context_clear
void ni_device_session_context_clear(ni_session_context_t *p_ctx)
Clear already allocated session context.
Definition: ni_device_api.c:249
ni_get_dma_buf_file_descriptor
int32_t ni_get_dma_buf_file_descriptor(const ni_frame_t *p_frame)
Get the DMA buffer file descriptor from the P2P frame.
Definition: ni_device_api.c:11283
PNIGETDMABUFFILEDESCRIPTOR
int32_t(LIB_API * PNIGETDMABUFFILEDESCRIPTOR)(const ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:216
PNIUPLOADERFRAMEZEROCOPYCHECK
ni_retcode_t(LIB_API * PNIUPLOADERFRAMEZEROCOPYCHECK)(ni_session_context_t *p_upl_ctx, int width, int height, const int linesize[], int pixel_format)
Definition: ni_libxcoder_dynamic_loading.h:226
PNIDEVICESESSIONCONTEXTCLEAR
void(LIB_API * PNIDEVICESESSIONCONTEXTCLEAR)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:125
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigVbvValue
PNIRECONFIGVBVVALUE niReconfigVbvValue
Definition: ni_libxcoder_dynamic_loading.h:420
ni_get_frame_dim
void ni_get_frame_dim(int width, int height, ni_pix_fmt_t pix_fmt, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS])
Get dimension information of frame to be sent to encoder for encoding. Caller usually retrieves this ...
Definition: ni_util.c:2092
PNIDEVICEDECSESSIONSAVEHDRS
ni_retcode_t(LIB_API * PNIDEVICEDECSESSIONSAVEHDRS)(ni_session_context_t *p_ctx, uint8_t *hdr_data, uint8_t hdr_size)
Definition: ni_libxcoder_dynamic_loading.h:136
PNIFRAMEBUFFERALLOCNV
ni_retcode_t(LIB_API * PNIFRAMEBUFFERALLOCNV)(ni_frame_t *p_frame, int video_width, int video_height, int linesize[], int extra_len, bool alignment_2pass_wa)
Definition: ni_libxcoder_dynamic_loading.h:154
PNIFRAMEBUFFERALLOCDL
ni_retcode_t(LIB_API * PNIFRAMEBUFFERALLOCDL)(ni_frame_t *p_frame, int video_width, int video_height, int pixel_format)
Definition: ni_libxcoder_dynamic_loading.h:148
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionCopy
PNIDEVICESESSIONCOPY niDeviceSessionCopy
Definition: ni_libxcoder_dynamic_loading.h:365
ni_encoder_set_input_frame_format
ni_retcode_t ni_encoder_set_input_frame_format(ni_session_context_t *p_enc_ctx, ni_xcoder_params_t *p_enc_params, int width, int height, int bit_depth, int src_endian, int planar)
Set the incoming frame format for the encoder.
Definition: ni_device_api.c:11083
PNIDEVICESESSIONCONTEXTALLOCINIT
ni_session_context_t *(LIB_API * PNIDEVICESESSIONCONTEXTALLOCINIT)(void)
Definition: ni_libxcoder_dynamic_loading.h:123
ni_pthread_create
int ni_pthread_create(ni_pthread_t *thread, const ni_pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
create a new thread
Definition: ni_util.c:4121
ni_hwframe_buffer_recycle2
ni_retcode_t ni_hwframe_buffer_recycle2(niFrameSurface1_t *surface)
Recycle a frame buffer on card, only hwframe descriptor is needed.
Definition: ni_device_api.c:8517
ni_device_config_qos
ni_retcode_t ni_device_config_qos(ni_device_handle_t device_handle, uint32_t mode)
Send qos mode to the device with specified logic block address.
Definition: ni_device_api.c:2058
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCloseEvent
PNICLOSEEVENT niCloseEvent
Definition: ni_libxcoder_dynamic_loading.h:320
ni_device_alloc_frame
ni_retcode_t ni_device_alloc_frame(ni_session_context_t *p_ctx, int width, int height, int format, int options, int rectangle_width, int rectangle_height, int rectangle_x, int rectangle_y, int rgba_color, int frame_index, ni_device_type_t device_type)
Allocate a frame on the device for 2D engine or AI engine to work on based on provided parameters.
Definition: ni_device_api.c:8880
ni_decoder_init_default_params
ni_retcode_t ni_decoder_init_default_params(ni_xcoder_params_t *p_param, int fps_num, int fps_denom, long bit_rate, int width, int height)
Initialize default decoder parameters.
Definition: ni_device_api.c:4546
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionQuery
PNIDEVICESESSIONQUERY niDeviceSessionQuery
Definition: ni_libxcoder_dynamic_loading.h:332
PNISCALERSETWATERMARKPARAMS
ni_retcode_t(LIB_API * PNISCALERSETWATERMARKPARAMS)(ni_session_context_t *p_ctx, ni_scaler_watermark_params_t *p_params)
Definition: ni_libxcoder_dynamic_loading.h:189
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionAcquire
PNIDEVICESESSIONACQUIRE niDeviceSessionAcquire
Definition: ni_libxcoder_dynamic_loading.h:393
PNINETWORKCONVERTTENSORTODATA
ni_retcode_t(LIB_API * PNINETWORKCONVERTTENSORTODATA)(uint8_t *dst, uint32_t dst_len, float *src, uint32_t src_len, ni_network_layer_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:89
ni_p2p_xfer
NI_DEPRECATED ni_retcode_t ni_p2p_xfer(ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize)
Initiate P2P transfer (P2P write) (deprecated)
Definition: ni_device_api.c:12791
ni_param_get_key_value
int ni_param_get_key_value(char *p_str, char *key, char *value)
retrieve key and value from 'key=value' pair
Definition: ni_util.c:3755
_ni_session_context
Definition: ni_device_api.h:1408
PNIPOSIXMEMALIGN
int(LIB_API * PNIPOSIXMEMALIGN)(void **memptr, size_t alignment, size_t size)
Definition: ni_libxcoder_dynamic_loading.h:116
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiNetworkLayerSize
PNIAINETWORKLAYERSIZE niAiNetworkLayerSize
Definition: ni_libxcoder_dynamic_loading.h:280
ni_device_session_query_detail
ni_retcode_t ni_device_session_query_detail(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_instance_mgr_detail_status_t *detail_data)
Query detail session data from the device - If device_type is valid, will query session data from spe...
Definition: ni_device_api.c:1960
ni_device_session_read
int ni_device_session_read(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, ni_device_type_t device_type)
Read data from the device If device_type is NI_DEVICE_TYPE_DECODER reads data packet from decoder If ...
Definition: ni_device_api.c:1769
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRetrieveXcoderParams
PNIRETRIEVEXCODERPARAMS niRetrieveXcoderParams
Definition: ni_libxcoder_dynamic_loading.h:294
_niFrameSurface1
Definition: ni_device_api.h:2793
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionSequenceChange
PNIDEVICESESSIONSEQUENCECHANGE niDeviceSessionSequenceChange
Definition: ni_libxcoder_dynamic_loading.h:405
ni_frame_buffer_alloc_hwenc
ni_retcode_t ni_frame_buffer_alloc_hwenc(ni_frame_t *p_frame, int video_width, int video_height, int extra_len)
Allocate memory for the hwDescriptor buffer based on provided parameters taking into account pic size...
Definition: ni_device_api.c:8399
NI_MAX_NUM_DATA_POINTERS
#define NI_MAX_NUM_DATA_POINTERS
Definition: ni_defs.h:232
ni_device_session_restart
ni_retcode_t ni_device_session_restart(ni_session_context_t *p_ctx, int video_width, int video_height, ni_device_type_t device_type)
Send a restart command after flush command Only support Encoder now.
Definition: ni_device_api.c:12913
PNIDEVICESESSIONREAD
int(LIB_API * PNIDEVICESESSIONREAD)(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:139
PNIRECONFIGVUI
ni_retcode_t(LIB_API * PNIRECONFIGVUI)(ni_session_context_t *p_ctx, ni_vui_hrd_t *vui)
Definition: ni_libxcoder_dynamic_loading.h:197
ni_pthread_mutex_init
int ni_pthread_mutex_init(ni_pthread_mutex_t *mutex)
initialize a mutex
Definition: ni_util.c:4001
_ni_frame
Definition: ni_device_api.h:2601
ni_pthread_sigmask
int ni_pthread_sigmask(int how, const ni_sigset_t *set, ni_sigset_t *oldset)
examine and change mask of blocked signals
Definition: ni_util.c:4305
ni_device_session_open
ni_retcode_t ni_device_session_open(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Open a new device session depending on the device_type parameter If device_type is NI_DEVICE_TYPE_DEC...
Definition: ni_device_api.c:710
PNIGETRCTXT
const typedef char *LIB_API * PNIGETRCTXT(ni_retcode_t rc)
ni_device_session_context_free
void ni_device_session_context_free(ni_session_context_t *p_ctx)
Free previously allocated session context.
Definition: ni_device_api.c:130
ni_reconfig_ppu_output
int ni_reconfig_ppu_output(ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, ni_ppu_config_t *ppu_config)
Reset decoder ppu resolution.
Definition: ni_av_codec.c:3485
PNIDEVICECLONEHWFRAME
ni_retcode_t(LIB_API * PNIDEVICECLONEHWFRAME)(ni_session_context_t *p_ctx, ni_frameclone_desc_t *p_frameclone_desc)
Definition: ni_libxcoder_dynamic_loading.h:186
PNIUPLOADERFRAMEBUFFERUNLOCK
ni_retcode_t(LIB_API * PNIUPLOADERFRAMEBUFFERUNLOCK)(ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:208
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigVui
PNIRECONFIGVUI niReconfigVui
Definition: ni_libxcoder_dynamic_loading.h:385
ni_network_convert_tensor_to_data
ni_retcode_t ni_network_convert_tensor_to_data(uint8_t *dst, uint32_t dst_len, float *src, uint32_t src_len, ni_network_layer_params_t *p_param)
Definition: ni_util.c:3246
PNIENCODERFRAMEZEROCOPYBUFFERALLOC
ni_retcode_t(LIB_API * PNIENCODERFRAMEZEROCOPYBUFFERALLOC)(ni_frame_t *p_frame, int video_width, int video_height, const int linesize[], const uint8_t *data[], int extra_len)
Definition: ni_libxcoder_dynamic_loading.h:225
ni_strtok
char * ni_strtok(char *s, const char *delim, char **saveptr)
Definition: ni_util.c:420
PNIHWFRAMEBUFFERRECYCLE
ni_retcode_t(LIB_API * PNIHWFRAMEBUFFERRECYCLE)(niFrameSurface1_t *surface, int32_t device_handle)
Definition: ni_libxcoder_dynamic_loading.h:181
ni_device_session_copy
ni_retcode_t ni_device_session_copy(ni_session_context_t *src_p_ctx, ni_session_context_t *dst_p_ctx)
Copy existing decoding session params for hw frame usage.
Definition: ni_device_api.c:8015
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderFrameBufferPoolReturnBuf
PNIDECODERFRAMEBUFFERPOOLRETURNBUF niDecoderFrameBufferPoolReturnBuf
Definition: ni_libxcoder_dynamic_loading.h:349
ni_reconfig_max_frame_size
ni_retcode_t ni_reconfig_max_frame_size(ni_session_context_t *p_ctx, int32_t max_frame_size)
Reconfigure maxFrameSize dynamically during encoding.
Definition: ni_device_api.c:10176
_ni_xcoder_params
Definition: ni_device_api.h:2713
_NETINT_LIBXCODER_API_FUNCTION_LIST::niShouldSendSeiWithFrame
PNISHOULDSENDSEIWITHFRAME niShouldSendSeiWithFrame
Definition: ni_libxcoder_dynamic_loading.h:257
PNIENCPREPRECONFDEMODATA
ni_retcode_t(LIB_API * PNIENCPREPRECONFDEMODATA)(ni_session_context_t *p_enc_ctx, ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:233
ni_device_dec_session_save_hdrs
ni_retcode_t ni_device_dec_session_save_hdrs(ni_session_context_t *p_ctx, uint8_t *hdr_data, uint8_t hdr_size)
Save a stream's headers in a decoder session that can be used later for continuous decoding from the ...
Definition: ni_device_api.c:1566
PNIP2PXFER
ni_retcode_t(LIB_API * PNIP2PXFER)(ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize)
Definition: ni_libxcoder_dynamic_loading.h:238
PNIGETLIBXCODERRELEASEVER
char *(LIB_API * PNIGETLIBXCODERRELEASEVER)(void)
Definition: ni_libxcoder_dynamic_loading.h:97
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCopyHwDescriptors
PNICOPYHWDESCRIPTORS niCopyHwDescriptors
Definition: ni_libxcoder_dynamic_loading.h:286
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceCapabilityQuery2
PNIDEVICECAPABILITYQUERY2 niDeviceCapabilityQuery2
Definition: ni_libxcoder_dynamic_loading.h:324
PNIDEVICESESSIONACQUIREFORREAD
int(LIB_API * PNIDEVICESESSIONACQUIREFORREAD)(ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:206
ni_get_min_frame_dim
void ni_get_min_frame_dim(int width, int height, ni_pix_fmt_t pix_fmt, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS])
Get dimension information of frame to be sent to encoder for encoding. Caller usually retrieves this ...
Definition: ni_util.c:2181
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerSetParams
PNISCALERSETPARAMS niScalerSetParams
Definition: ni_libxcoder_dynamic_loading.h:373
PNIENCFRAMEBUFFERALLOC
ni_retcode_t(LIB_API * PNIENCFRAMEBUFFERALLOC)(ni_frame_t *p_frame, int video_width, int video_height, int alignment, int metadata_flag, int factor, int hw_frame_count, int is_planar, ni_pix_fmt_t pix_fmt)
Definition: ni_libxcoder_dynamic_loading.h:147
PNIFRAMEBUFFERALLOC
ni_retcode_t(LIB_API * PNIFRAMEBUFFERALLOC)(ni_frame_t *p_frame, int video_width, int video_height, int alignment, int metadata_flag, int factor, int hw_frame_count, int is_planar)
Definition: ni_libxcoder_dynamic_loading.h:146
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceOpen
PNIDEVICEOPEN niDeviceOpen
Definition: ni_libxcoder_dynamic_loading.h:321
PNIHWFRAMEBUFFERRECYCLE2
ni_retcode_t(LIB_API * PNIHWFRAMEBUFFERRECYCLE2)(niFrameSurface1_t *surface)
Definition: ni_libxcoder_dynamic_loading.h:182
_ni_device_vf_ns_id
Definition: ni_rsrc_api.h:229
PNIDEVICESESSIONCONTEXTINIT
ni_retcode_t(LIB_API * PNIDEVICESESSIONCONTEXTINIT)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:124
ni_reconfig_max_frame_size_ratio
ni_retcode_t ni_reconfig_max_frame_size_ratio(ni_session_context_t *p_ctx, int32_t max_frame_size_ratio)
Reconfigure maxFrameSizeRatio dynamically during encoding.
Definition: ni_device_api.c:10468
ni_reconfig_vui
ni_retcode_t ni_reconfig_vui(ni_session_context_t *p_ctx, ni_vui_hrd_t *vui)
Reconfigure VUI HRD dynamically during encoding.
Definition: ni_device_api.c:9945
ni_copy_frame_data
void ni_copy_frame_data(uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int frame_width, int frame_height, int factor, ni_pix_fmt_t pix_fmt, int conf_win_right, int dst_stride[NI_MAX_NUM_DATA_POINTERS], int dst_height[NI_MAX_NUM_DATA_POINTERS], int src_stride[NI_MAX_NUM_DATA_POINTERS], int src_height[NI_MAX_NUM_DATA_POINTERS])
Copy RGBA or YUV data to Netint HW frame layout to be sent to encoder for encoding....
Definition: ni_util.c:2398
_ni_device_capability
device capability type
Definition: ni_device_api.h:1153
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCopyFrameData
PNICOPYFRAMEDATA niCopyFrameData
Definition: ni_libxcoder_dynamic_loading.h:424
ni_posix_memalign
int ni_posix_memalign(void **memptr, size_t alignment, size_t size)
Allocate aligned memory.
Definition: ni_util.c:198
PNIHWFRAMEP2PBUFFERRECYCLE
ni_retcode_t(LIB_API * PNIHWFRAMEP2PBUFFERRECYCLE)(ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:214
PNINETWORKCONVERTDATATOTENSOR
ni_retcode_t(LIB_API * PNINETWORKCONVERTDATATOTENSOR)(float *dst, uint32_t dst_len, uint8_t *src, uint32_t src_len, ni_network_layer_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:90
ni_device_alloc_dst_frame
ni_retcode_t ni_device_alloc_dst_frame(ni_session_context_t *p_ctx, niFrameSurface1_t *p_out_surface, ni_device_type_t device_type)
Allocate a frame on the device and return the frame index.
Definition: ni_device_api.c:8947
PNIDEVICEMULTICONFIGFRAME
ni_retcode_t(LIB_API * PNIDEVICEMULTICONFIGFRAME)(ni_session_context_t *p_ctx, ni_frame_config_t p_cfg_in[], int numInCfgs, ni_frame_config_t *p_cfg_out)
Definition: ni_libxcoder_dynamic_loading.h:190
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionInitFramepool
PNIDEVICESESSIONINITFRAMEPOOL niDeviceSessionInitFramepool
Definition: ni_libxcoder_dynamic_loading.h:366
_ni_load_query
Definition: ni_device_api.h:1196
PNIGETTIMEOFDAY
int32_t(LIB_API * PNIGETTIMEOFDAY)(struct timeval *p_tp, void *p_tzp)
Definition: ni_libxcoder_dynamic_loading.h:81
ni_calculate_total_frame_size
int ni_calculate_total_frame_size(const ni_session_context_t *p_upl_ctx, const int linesize[])
Calculate the total size of a frame based on the upload context attributes and includes rounding up t...
Definition: ni_device_api.c:9145
PNIRETRIEVEXCODERPARAMS
int(LIB_API * PNIRETRIEVEXCODERPARAMS)(char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
Definition: ni_libxcoder_dynamic_loading.h:100
PNIPACKETBUFFERFREEAV1
ni_retcode_t(LIB_API * PNIPACKETBUFFERFREEAV1)(ni_packet_t *ppacket)
Definition: ni_libxcoder_dynamic_loading.h:162
ni_set_ltr_interval
ni_retcode_t ni_set_ltr_interval(ni_session_context_t *p_ctx, int32_t ltr_interval)
Set Long Term Reference interval.
Definition: ni_device_api.c:10054
mdcv_data
uint8_t mdcv_data[NI_MAX_SEI_DATA]
Definition: ni_quadra_enc_api.c:1545
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceAllocDstFrame
PNIDEVICEALLOCDSTFRAME niDeviceAllocDstFrame
Definition: ni_libxcoder_dynamic_loading.h:375
PNIDECODERINITDEFAULTPARAMS
ni_retcode_t(LIB_API * PNIDECODERINITDEFAULTPARAMS)(ni_xcoder_params_t *p_param, int fps_num, int fps_denom, long bit_rate, int width, int height)
Definition: ni_libxcoder_dynamic_loading.h:170
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiConfigHvsplus
PNIAICONFIGHVSPLUS niAiConfigHvsplus
Definition: ni_libxcoder_dynamic_loading.h:381
PNICMPFWAPIVER
int(LIB_API * PNICMPFWAPIVER)(const char ver1[], const char ver2[])
Definition: ni_libxcoder_dynamic_loading.h:96
PNIENCODERGOPPARAMSSETVALUE
ni_retcode_t(LIB_API * PNIENCODERGOPPARAMSSETVALUE)(ni_xcoder_params_t *p_params, const char *name, const char *value)
Definition: ni_libxcoder_dynamic_loading.h:173
ni_device_session_acquire_for_read
int ni_device_session_acquire_for_read(ni_session_context_t *p_ctx, ni_frame_t *p_frame)
Acquire a P2P frame buffer from the hwupload session for P2P read.
Definition: ni_device_api.c:10697
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceCloneHwframe
PNIDEVICECLONEHWFRAME niDeviceCloneHwframe
Definition: ni_libxcoder_dynamic_loading.h:376
ni_extract_custom_sei
int ni_extract_custom_sei(uint8_t *pkt_data, int pkt_size, long index, ni_packet_t *p_packet, uint8_t sei_type, int vcl_found)
Extract custom sei payload data from pkt_data, and save it to ni_packet_t.
Definition: ni_av_codec.c:2944
PNIDEVICESESSIONOPEN
ni_retcode_t(LIB_API * PNIDEVICESESSIONOPEN)(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:133
ni_query_temperature
ni_retcode_t ni_query_temperature(ni_device_handle_t device_handle, ni_device_temp_t *p_dev_temp, uint8_t fw_rev[])
Query CompositeTemp from device.
Definition: ni_device_api.c:11562
PNIRECONFIGMINMAXQP
ni_retcode_t(LIB_API * PNIRECONFIGMINMAXQP)(ni_session_context_t *p_ctx, ni_rc_min_max_qp *p_min_max_qp)
Definition: ni_libxcoder_dynamic_loading.h:204
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCalculateSha256
PNICALCULATESHA256 niCalculateSha256
Definition: ni_libxcoder_dynamic_loading.h:285
ni_encoder_frame_buffer_alloc
ni_retcode_t ni_encoder_frame_buffer_alloc(ni_frame_t *p_frame, int video_width, int video_height, int linesize[], int alignment, int extra_len, bool alignment_2pass_wa)
Allocate memory for the frame buffer for encoding based on given parameters, taking into account pic ...
Definition: ni_device_api.c:3161
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionQueryDetail
PNIDEVICESESSIONQUERYDETAIL niDeviceSessionQueryDetail
Definition: ni_libxcoder_dynamic_loading.h:333
PNIQUERYVFNSID
ni_retcode_t(LIB_API * PNIQUERYVFNSID)(ni_device_handle_t device_handle, ni_device_vf_ns_id_t *p_dev_ns_vf, uint8_t fw_rev[])
Definition: ni_libxcoder_dynamic_loading.h:221
PNIAIFRAMEBUFFERALLOC
ni_retcode_t(LIB_API * PNIAIFRAMEBUFFERALLOC)(ni_frame_t *p_frame, ni_network_data_t *p_network)
Definition: ni_libxcoder_dynamic_loading.h:194
ni_create_event
ni_event_handle_t ni_create_event(void)
Create event and return event handle if successful (Windows only)
Definition: ni_device_api.c:266
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameWipeAuxData
PNIFRAMEWIPEAUXDATA niFrameWipeAuxData
Definition: ni_libxcoder_dynamic_loading.h:359
ni_insert_emulation_prevent_bytes
int ni_insert_emulation_prevent_bytes(uint8_t *buf, int size)
Insert emulation prevention byte(s) as needed into the data buffer.
Definition: ni_util.c:2591
ni_get_hw_yuv420p_dim
void ni_get_hw_yuv420p_dim(int width, int height, int factor, int is_semiplanar, int plane_stride[NI_MAX_NUM_DATA_POINTERS], int plane_height[NI_MAX_NUM_DATA_POINTERS])
Get dimension information of Netint HW YUV420p frame to be sent to encoder for encoding....
Definition: ni_util.c:2040
_ni_instance_mgr_detail_status
Definition: ni_device_api.h:1230
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionWrite
PNIDEVICESESSIONWRITE niDeviceSessionWrite
Definition: ni_libxcoder_dynamic_loading.h:330
_ni_timecode
Definition: ni_av_codec.h:448
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionAcquireForRead
PNIDEVICESESSIONACQUIREFORREAD niDeviceSessionAcquireForRead
Definition: ni_libxcoder_dynamic_loading.h:394
_ni_device_extra_info
Definition: ni_rsrc_api.h:242
ni_custom_packet_buffer_alloc
ni_retcode_t ni_custom_packet_buffer_alloc(void *p_buffer, ni_packet_t *p_packet, int buffer_size)
Allocate packet buffer using a user provided pointer, the memory is expected to have already been all...
Definition: ni_device_api.c:3807
ni_reconfig_min_max_qp
ni_retcode_t ni_reconfig_min_max_qp(ni_session_context_t *p_ctx, ni_rc_min_max_qp *p_min_max_qp)
Reconfigure min&max qp dynamically during encoding.
Definition: ni_device_api.c:10251
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderP2PTestSend
PNIUPLOADERP2PTESTSEND niUploaderP2PTestSend
Definition: ni_libxcoder_dynamic_loading.h:397
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncFrameBufferAlloc
PNIENCFRAMEBUFFERALLOC niEncFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:425
PNIDEVICECONFIGFRAME
ni_retcode_t(LIB_API * PNIDEVICECONFIGFRAME)(ni_session_context_t *p_ctx, ni_frame_config_t *p_cfg)
Definition: ni_libxcoder_dynamic_loading.h:187
PNIDECRETRIEVEAUXDATA
void(LIB_API * PNIDECRETRIEVEAUXDATA)(ni_frame_t *frame)
Definition: ni_libxcoder_dynamic_loading.h:61
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerInputFrameAlloc
PNISCALERINPUTFRAMEALLOC niScalerInputFrameAlloc
Definition: ni_libxcoder_dynamic_loading.h:343
PNIDEVICESESSIONINITFRAMEPOOL
int(LIB_API * PNIDEVICESESSIONINITFRAMEPOOL)(ni_session_context_t *p_ctx, uint32_t pool_size, uint32_t pool)
Definition: ni_libxcoder_dynamic_loading.h:175
ni_pthread_mutex_destroy
int ni_pthread_mutex_destroy(ni_pthread_mutex_t *mutex)
destory a mutex
Definition: ni_util.c:4039
ni_device_session_query_buffer_avail
ni_retcode_t ni_device_session_query_buffer_avail(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Query the session if a buffer is available.
Definition: ni_device_api.c:8296
ni_p2p_recv
ni_retcode_t ni_p2p_recv(ni_session_context_t *pSession, const ni_p2p_sgl_t *dmaAddrs, ni_frame_t *pDstFrame)
Initiate a P2P transfer (P2P read)
Definition: ni_device_api.c:12866
PNIDECODERFRAMEBUFFERALLOC
ni_retcode_t(LIB_API * PNIDECODERFRAMEBUFFERALLOC)(ni_buf_pool_t *p_pool, ni_frame_t *pframe, int alloc_mem, int video_width, int video_height, int alignment, int factor, int is_planar)
Definition: ni_libxcoder_dynamic_loading.h:149
ni_get_libxcoder_release_ver
char * ni_get_libxcoder_release_ver(void)
Get libxcoder SW release version.
Definition: ni_util.c:3710
ni_gop_params_check
bool ni_gop_params_check(ni_xcoder_params_t *p_param)
Check custom gop params set.
Definition: ni_device_api.c:12749
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCopyYuv444PTo420P
PNICOPYYUV444PTO420P niCopyYuv444PTo420P
Definition: ni_libxcoder_dynamic_loading.h:272
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigFramerate
PNIRECONFIGFRAMERATE niReconfigFramerate
Definition: ni_libxcoder_dynamic_loading.h:390
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionReadHwdesc
PNIDEVICESESSIONREADHWDESC niDeviceSessionReadHwdesc
Definition: ni_libxcoder_dynamic_loading.h:367
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPacketBufferFreeAv1
PNIPACKETBUFFERFREEAV1 niPacketBufferFreeAv1
Definition: ni_libxcoder_dynamic_loading.h:353
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceConfigQosOp
PNIDEVICECONFIGQOSOP niDeviceConfigQosOp
Definition: ni_libxcoder_dynamic_loading.h:337
PNISCALERDESTFRAMEALLOC
ni_retcode_t(LIB_API * PNISCALERDESTFRAMEALLOC)(ni_session_context_t *p_ctx, ni_scaler_input_params_t scaler_params, niFrameSurface1_t *p_surface)
Definition: ni_libxcoder_dynamic_loading.h:151
ni_device_session_write
int ni_device_session_write(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, ni_device_type_t device_type)
Sends data to the device If device_type is NI_DEVICE_TYPE_DECODER sends data packet to decoder If dev...
Definition: ni_device_api.c:1668
ni_gettimeofday
int32_t ni_gettimeofday(struct timeval *p_tp, void *p_tzp)
Get time for logs with microsecond timestamps.
Definition: ni_util.c:139
ni_device_api.h
Public definitions for operating NETINT video processing devices for video processing.
NETINTLibxcoderAPI
Definition: ni_libxcoder_dynamic_loading.h:441
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionClose
PNIDEVICESESSIONCLOSE niDeviceSessionClose
Definition: ni_libxcoder_dynamic_loading.h:326
ni_hwframe_buffer_recycle
ni_retcode_t ni_hwframe_buffer_recycle(niFrameSurface1_t *surface, int32_t device_handle)
Recycle a frame buffer on card.
Definition: ni_device_api.c:8487
PNIDEVICECAPABILITYQUERY2
ni_retcode_t(LIB_API * PNIDEVICECAPABILITYQUERY2)(ni_device_handle_t device_handle, ni_device_capability_t *p_cap, bool device_in_ctxt)
Definition: ni_libxcoder_dynamic_loading.h:132
PNIRECONFIGSLICEARG
ni_retcode_t(LIB_API * PNIRECONFIGSLICEARG)(ni_session_context_t *p_ctx, int16_t sliceArg)
Definition: ni_libxcoder_dynamic_loading.h:241
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondWait
PNIPTHREADCONDWAIT niPthreadCondWait
Definition: ni_libxcoder_dynamic_loading.h:306
ni_get_rc_txt
const char * ni_get_rc_txt(ni_retcode_t rc)
Get text string for the provided error.
Definition: ni_util.c:3731
PNIENCCOPYAUXDATA
void(LIB_API * PNIENCCOPYAUXDATA)(ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_frame_t *p_dec_frame, ni_codec_format_t codec_format, const uint8_t *mdcv_data, const uint8_t *cll_data, const uint8_t *cc_data, const uint8_t *udu_data, const uint8_t *hdrp_data, int is_hwframe, int is_semiplanar)
Definition: ni_libxcoder_dynamic_loading.h:63
_ni_instance_mgr_detail_status_v1
Definition: ni_device_api.h:1252
LIB_API
#define LIB_API
Definition: ni_libxcoder_dynamic_loading.h:52
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondTimedwait
PNIPTHREADCONDTIMEDWAIT niPthreadCondTimedwait
Definition: ni_libxcoder_dynamic_loading.h:308
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceConfigFrame
PNIDEVICECONFIGFRAME niDeviceConfigFrame
Definition: ni_libxcoder_dynamic_loading.h:377
PNISHOULDSENDSEIWITHFRAME
int(LIB_API * PNISHOULDSENDSEIWITHFRAME)(ni_session_context_t *p_enc_ctx, ni_pic_type_t pic_type, ni_xcoder_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:60
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionQueryDetailV1
PNIDEVICESESSIONQUERYDETAILV1 niDeviceSessionQueryDetailV1
Definition: ni_libxcoder_dynamic_loading.h:334
_NETINT_LIBXCODER_API_FUNCTION_LIST::niExpandFrame
PNIEXPANDFRAME niExpandFrame
Definition: ni_libxcoder_dynamic_loading.h:264
ni_network_layer_convert_tensor
ni_retcode_t ni_network_layer_convert_tensor(uint8_t *dst, uint32_t dst_len, const char *tensor_file, ni_network_layer_params_t *p_param)
Definition: ni_util.c:3236
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerFramePoolAlloc
PNISCALERFRAMEPOOLALLOC niScalerFramePoolAlloc
Definition: ni_libxcoder_dynamic_loading.h:344
ni_device_capability_query2
ni_retcode_t ni_device_capability_query2(ni_device_handle_t device_handle, ni_device_capability_t *p_cap, bool device_in_ctxt)
Query device and return device capability structure This function had replaced ni_device_capability_q...
Definition: ni_device_api.c:647
ni_codec_format_t
enum _ni_codec_format ni_codec_format_t
This is an enumeration for supported codec formats.
ni_util.h
Utility definitions.
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadSigmask
PNIPTHREADSIGMASK niPthreadSigmask
Definition: ni_libxcoder_dynamic_loading.h:309
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionContextAllocInit
PNIDEVICESESSIONCONTEXTALLOCINIT niDeviceSessionContextAllocInit
Definition: ni_libxcoder_dynamic_loading.h:315
PNICUSTOMPACKETBUFFERALLOC
ni_retcode_t(LIB_API * PNICUSTOMPACKETBUFFERALLOC)(void *p_buffer, ni_packet_t *p_packet, int buffer_size)
Definition: ni_libxcoder_dynamic_loading.h:160
ni_device_session_hwdl
int ni_device_session_hwdl(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, niFrameSurface1_t *hwdesc)
Reads YUV data from hw descriptor stored location on device.
Definition: ni_device_api.c:8210
ni_device_session_read_hwdesc
int ni_device_session_read_hwdesc(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, ni_device_type_t device_type)
Read data from the device If device_type is NI_DEVICE_TYPE_DECODER reads data hwdesc from decoder If ...
Definition: ni_device_api.c:8043
ni_remove_emulation_prevent_bytes
int ni_remove_emulation_prevent_bytes(uint8_t *buf, int size)
Remove emulation prevention byte(s) as needed from the data buffer.
Definition: ni_util.c:2644
PNIAICONFIGNETWORKBINARY
ni_retcode_t(LIB_API * PNIAICONFIGNETWORKBINARY)(ni_session_context_t *p_ctx, ni_network_data_t *p_network, const char *file)
Definition: ni_libxcoder_dynamic_loading.h:192
PNIRECONFIGMAXFRAMESIZE
ni_retcode_t(LIB_API * PNIRECONFIGMAXFRAMESIZE)(ni_session_context_t *p_ctx, int32_t max_frame_size)
Definition: ni_libxcoder_dynamic_loading.h:203
ni_frame_buffer_alloc_dl
ni_retcode_t ni_frame_buffer_alloc_dl(ni_frame_t *p_frame, int video_width, int video_height, int pixel_format)
Allocate preliminary memory for the frame buffer based on provided parameters.
Definition: ni_device_api.c:2393
PNIDEVICESESSIONRESTART
ni_retcode_t(LIB_API * PNIDEVICESESSIONRESTART)(ni_session_context_t *p_ctx, int video_width, int video_height, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:243
PNICOPYHWYUV420P
void(LIB_API * PNICOPYHWYUV420P)(uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int width, int height, int bit_depth_factor, int is_semiplanar, int conf_win_right, int dst_stride[NI_MAX_NUM_DATA_POINTERS], int dst_height[NI_MAX_NUM_DATA_POINTERS], int src_stride[NI_MAX_NUM_DATA_POINTERS], int src_height[NI_MAX_NUM_DATA_POINTERS])
Definition: ni_libxcoder_dynamic_loading.h:76
ni_uploader_p2p_test_load
ni_retcode_t ni_uploader_p2p_test_load(ni_session_context_t *p_upl_ctx, uint8_t *p_data, uint32_t len, ni_frame_t *p_hwframe)
Special P2P test API function. Copies video data from the software frame to the hardware P2P frame on...
Definition: ni_device_api.c:10924
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPacketCopy
PNIPACKETCOPY niPacketCopy
Definition: ni_libxcoder_dynamic_loading.h:354
PNIDEVICESESSIONCONTEXTFREE
void(LIB_API * PNIDEVICESESSIONCONTEXTFREE)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:126
ni_device_session_flush
ni_retcode_t ni_device_session_flush(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Send a flush command to the device If device_type is NI_DEVICE_TYPE_DECODER sends EOS command to deco...
Definition: ni_device_api.c:1512
PNIENCODERPARAMSSETVALUE
ni_retcode_t(LIB_API * PNIENCODERPARAMSSETVALUE)(ni_xcoder_params_t *p_params, const char *name, const char *value)
Definition: ni_libxcoder_dynamic_loading.h:171
PNISCALERINPUTFRAMEALLOC
ni_retcode_t(LIB_API * PNISCALERINPUTFRAMEALLOC)(ni_session_context_t *p_ctx, ni_scaler_input_params_t scaler_params, niFrameSurface1_t *p_src_surface)
Definition: ni_libxcoder_dynamic_loading.h:152
ni_should_send_sei_with_frame
int ni_should_send_sei_with_frame(ni_session_context_t *p_enc_ctx, ni_pic_type_t pic_type, ni_xcoder_params_t *p_param)
Whether SEI (HDR) should be sent together with this frame to encoder.
Definition: ni_av_codec.c:186
PNIDEVICEOPEN
ni_device_handle_t(LIB_API * PNIDEVICEOPEN)(const char *dev, uint32_t *p_max_io_size_out)
Definition: ni_libxcoder_dynamic_loading.h:129
ni_device_session_context_init
ni_retcode_t ni_device_session_context_init(ni_session_context_t *p_ctx)
Initialize already allocated session context to a known state.
Definition: ni_device_api.c:156
ni_uploader_frame_zerocopy_check
ni_retcode_t ni_uploader_frame_zerocopy_check(ni_session_context_t *p_upl_ctx, int width, int height, const int linesize[], int pixel_format)
Check if incoming frame is hwupload zero copy compatible or not.
Definition: ni_device_api.c:3028
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGopParamsCheckSet
PNIGOPPARAMSCHECKSET niGopParamsCheckSet
Definition: ni_libxcoder_dynamic_loading.h:428
PNIAICONFIGHVSPLUS
ni_retcode_t(LIB_API * PNIAICONFIGHVSPLUS)(ni_session_context_t *p_ctx, ni_network_data_t *p_network)
Definition: ni_libxcoder_dynamic_loading.h:193
ni_device_session_init_framepool
int ni_device_session_init_framepool(ni_session_context_t *p_ctx, uint32_t pool_size, uint32_t pool)
Sends frame pool setup info to device.
Definition: ni_device_api.c:8564
hdrp_data
uint8_t hdrp_data[NI_MAX_SEI_DATA]
Definition: ni_quadra_enc_api.c:1549
ni_ai_network_layer_size
uint32_t ni_ai_network_layer_size(ni_network_layer_params_t *p_param)
Definition: ni_util.c:3363
PNIDEVICESESSIONQUERYDETAILV1
ni_retcode_t(LIB_API * PNIDEVICESESSIONQUERYDETAILV1)(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_instance_mgr_detail_status_v1_t *detail_data)
Definition: ni_libxcoder_dynamic_loading.h:142
ni_retrieve_decoder_params
int ni_retrieve_decoder_params(char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
retrieve decoder config parameter values from –decoder-params
Definition: ni_util.c:3931
PNIENCODERSESSIONREADSTREAMHEADER
int(LIB_API * PNIENCODERSESSIONREADSTREAMHEADER)(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data)
Definition: ni_libxcoder_dynamic_loading.h:215
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceAllocAndGetFirmwareLogs
PNIDEVICEALLOCANDGETFIRMWARELOGS niDeviceAllocAndGetFirmwareLogs
Definition: ni_libxcoder_dynamic_loading.h:419
ni_p2p_send
ni_retcode_t ni_p2p_send(ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize)
Initiate P2P transfer (P2P write)
Definition: ni_device_api.c:12822
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceClose
PNIDEVICECLOSE niDeviceClose
Definition: ni_libxcoder_dynamic_loading.h:322
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPacketBufferAlloc
PNIPACKETBUFFERALLOC niPacketBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:350
_ni_aux_data
Definition: ni_device_api.h:618
_ni_framerate
Definition: ni_device_api.h:695
ni_uploader_p2p_test_send
ni_retcode_t ni_uploader_p2p_test_send(ni_session_context_t *p_upl_ctx, uint8_t *p_data, uint32_t len, ni_frame_t *p_hwframe)
Special P2P test API function. Copies YUV data from the software frame to the hardware P2P frame on t...
Definition: ni_device_api.c:10869
ni_decoder_frame_buffer_pool_return_buf
void ni_decoder_frame_buffer_pool_return_buf(ni_buf_t *buf, ni_buf_pool_t *p_buffer_pool)
Return a memory buffer to memory buffer pool.
Definition: ni_device_api.c:3694
ni_copy_yuv_444p_to_420p
void ni_copy_yuv_444p_to_420p(uint8_t *p_dst0[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_dst1[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS], int frame_width, int frame_height, int factor, int mode)
Copy yuv444p data to yuv420p frame layout to be sent to encoder for encoding. Data buffer (dst) is us...
Definition: ni_util.c:2478
PNISCALERFRAMEPOOLALLOC
ni_retcode_t(LIB_API * PNISCALERFRAMEPOOLALLOC)(ni_session_context_t *p_ctx, ni_scaler_input_params_t scaler_params)
Definition: ni_libxcoder_dynamic_loading.h:153
PNISETDEMOROIMAP
ni_retcode_t(LIB_API * PNISETDEMOROIMAP)(ni_session_context_t *p_enc_ctx)
Definition: ni_libxcoder_dynamic_loading.h:232
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiNetworkLayerDims
PNIAINETWORKLAYERDIMS niAiNetworkLayerDims
Definition: ni_libxcoder_dynamic_loading.h:281
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCalculateTotalFrameSize
PNICALCULATETOTALFRAMESIZE niCalculateTotalFrameSize
Definition: ni_libxcoder_dynamic_loading.h:434
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGettimeNs
PNIGETTIMENS niGettimeNs
Definition: ni_libxcoder_dynamic_loading.h:276
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigBitrate
PNIRECONFIGBITRATE niReconfigBitrate
Definition: ni_libxcoder_dynamic_loading.h:384
ni_device_session_close
ni_retcode_t ni_device_session_close(ni_session_context_t *p_ctx, int eos_recieved, ni_device_type_t device_type)
Close device session that was previously opened by calling ni_device_session_open() If device_type is...
Definition: ni_device_api.c:1379
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCreate
PNIPTHREADCREATE niPthreadCreate
Definition: ni_libxcoder_dynamic_loading.h:301
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderSwFrameBufferAlloc
PNIENCODERSWFRAMEBUFFERALLOC niEncoderSwFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:346
PNIDEVICESESSIONHWDL
int(LIB_API * PNIDEVICESESSIONHWDL)(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, niFrameSurface1_t *hwdesc)
Definition: ni_libxcoder_dynamic_loading.h:177
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetDmaBufFileDescriptor
PNIGETDMABUFFILEDESCRIPTOR niGetDmaBufFileDescriptor
Definition: ni_libxcoder_dynamic_loading.h:404
_NETINT_LIBXCODER_API_FUNCTION_LIST::niP2PSend
PNIP2PSEND niP2PSend
Definition: ni_libxcoder_dynamic_loading.h:433
_NETINT_LIBXCODER_API_FUNCTION_LIST::niParamGetKeyValue
PNIPARAMGETKEYVALUE niParamGetKeyValue
Definition: ni_libxcoder_dynamic_loading.h:293
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionRead
PNIDEVICESESSIONREAD niDeviceSessionRead
Definition: ni_libxcoder_dynamic_loading.h:331
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryVfNsId
PNIQUERYVFNSID niQueryVfNsId
Definition: ni_libxcoder_dynamic_loading.h:411
PNIENCWRITEFROMYUVBUFFER
int(LIB_API * PNIENCWRITEFROMYUVBUFFER)(ni_session_context_t *p_ctx, ni_frame_t *p_enc_frame, uint8_t *p_yuv_buffer)
Definition: ni_libxcoder_dynamic_loading.h:64
ni_set_ltr
ni_retcode_t ni_set_ltr(ni_session_context_t *p_ctx, ni_long_term_ref_t *ltr)
Set a frame's support of Long Term Reference frame during encoding.
Definition: ni_device_api.c:10026
PNIDEVICEALLOCFRAME
ni_retcode_t(LIB_API * PNIDEVICEALLOCFRAME)(ni_session_context_t *p_ctx, int width, int height, int format, int options, int rectangle_width, int rectangle_height, int rectangle_x, int rectangle_y, int rgba_color, int frame_index, ni_device_type_t device_type)
Definition: ni_libxcoder_dynamic_loading.h:184
ni_decoder_frame_buffer_free
ni_retcode_t ni_decoder_frame_buffer_free(ni_frame_t *p_frame)
Free decoder frame buffer that was previously allocated with ni_decoder_frame_buffer_alloc,...
Definition: ni_device_api.c:3644
ni_reconfig_slice_arg
ni_retcode_t ni_reconfig_slice_arg(ni_session_context_t *p_ctx, int16_t sliceArg)
Reconfigure sliceArg dynamically during encoding.
Definition: ni_device_api.c:10541
PNIPTHREADCONDBROADCAST
int(LIB_API * PNIPTHREADCONDBROADCAST)(ni_pthread_cond_t *cond)
Definition: ni_libxcoder_dynamic_loading.h:111
PNICALCULATESHA256
void(LIB_API * PNICALCULATESHA256)(const uint8_t aui8Data[], size_t ui32DataLength, uint8_t aui8Hash[])
Definition: ni_libxcoder_dynamic_loading.h:91
PNIPTHREADCONDTIMEDWAIT
int(LIB_API * PNIPTHREADCONDTIMEDWAIT)(ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex, const struct timespec *abstime)
Definition: ni_libxcoder_dynamic_loading.h:114
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiErrnoToStr
PNIAIERRNOTOSTR niAiErrnoToStr
Definition: ni_libxcoder_dynamic_loading.h:311
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAllocPixfmt
PNIFRAMEBUFFERALLOCPIXFMT niFrameBufferAllocPixfmt
Definition: ni_libxcoder_dynamic_loading.h:379
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetLibxcoderApiVer
PNIGETLIBXCODERAPIVER niGetLibxcoderApiVer
Definition: ni_libxcoder_dynamic_loading.h:287
ni_frame_wipe_aux_data
void ni_frame_wipe_aux_data(ni_frame_t *frame)
Free and remove all auxiliary data from the frame.
Definition: ni_device_api.c:4115
_NETINT_LIBXCODER_API_FUNCTION_LIST::niNetworkLayerConvertOutput
PNINETWORKLAYERCONVERTOUTPUT niNetworkLayerConvertOutput
Definition: ni_libxcoder_dynamic_loading.h:279