libxcoder  5.5.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 #include <ni_quadraprobe.h>
45 #else
46 #include "ni_av_codec.h"
47 #include "ni_util.h"
48 #include "ni_device_api.h"
49 #include "ni_quadraprobe.h"
50 #endif
51 
52 #pragma GCC diagnostic pop
53 
54 #define LIB_API
55 
56 /*
57  * Defines API function pointers
58  */
59 //
60 // Function pointers for ni_av_codec.h
61 //
63 typedef void (LIB_API* PNIDECRETRIEVEAUXDATA) (ni_frame_t *frame);
64 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);
65 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);
66 typedef int (LIB_API* PNIENCWRITEFROMYUVBUFFER) (ni_session_context_t *p_ctx, ni_frame_t *p_enc_frame, uint8_t *p_yuv_buffer);
67 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);
68 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);
69 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);
70 typedef int (LIB_API* PNIRECONFIGPPUOUTPUT) (ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, ni_ppu_config_t *ppu_config);
71 typedef int (LIB_API* PNIENCINSERTTIMECODE) (ni_session_context_t *p_enc_ctx, ni_frame_t *p_enc_frame, ni_timecode_t *p_timecode);
72 //
73 // Function pointers for ni_util.h
74 //
75 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]);
76 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]);
77 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]);
78 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]);
79 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]);
80 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);
81 typedef int (LIB_API* PNIINSERTEMULATIONPREVENTBYTES) (uint8_t *buf, int size);
82 typedef int (LIB_API* PNIREMOVEEMULATIONPREVENTBYTES) (uint8_t *buf, int size);
83 typedef int32_t (LIB_API* PNIGETTIMEOFDAY) (struct timeval *p_tp, void *p_tzp);
84 typedef uint64_t (LIB_API* PNIGETTIMENS) (void);
85 typedef void (LIB_API* PNIUSLEEP) (int64_t usec);
86 typedef char * (LIB_API* PNISTRTOK) (char *s, const char *delim, char **saveptr);
87 typedef ni_retcode_t (LIB_API* PNISTRCPY) (char *dest, size_t dmax, const char *src);
88 typedef ni_retcode_t (LIB_API* PNISTRNCPY) (char *dest, size_t dmax, const char *src, size_t slen);
89 typedef ni_retcode_t (LIB_API* PNISTRERROR) (char *dest, size_t dmax, int errnum);
90 typedef ni_retcode_t (LIB_API* PNISTRCAT) (char *dest, size_t dmax, const char *src);
91 typedef ni_retcode_t (LIB_API* PNISTRNCAT) (char *dest, size_t dmax, const char *src, size_t slen);
92 typedef ni_retcode_t (LIB_API* PNIFOPEN) (FILE **fp, const char *filename, const char *mode);
93 typedef struct tm * (LIB_API* PNILOCALTIME) (struct tm *dest, const time_t *src);
94 typedef int (LIB_API* PNIFSCANF) (FILE *stream, const char *fmt, ...);
95 typedef int (LIB_API* PNIVSPRINTF) (char *dest, const size_t dmax, const char *fmt, va_list args);
96 typedef int (LIB_API* PNISPRINTF) (char *dest, size_t dmax, const char *fmt, ...);
97 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);
100 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);
101 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);
102 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);
103 typedef void (LIB_API* PNICALCULATESHA256) (const uint8_t aui8Data[], size_t ui32DataLength, uint8_t aui8Hash[]);
104 typedef void (LIB_API* PNICOPYHWDESCRIPTORS) (uint8_t *p_dst[NI_MAX_NUM_DATA_POINTERS], uint8_t *p_src[NI_MAX_NUM_DATA_POINTERS]);
105 typedef char * (LIB_API* PNIGETLIBXCODERAPIVER) (void);
106 #ifndef DEPRECATION_AS_ERROR
107 typedef char * (LIB_API* PNIGETCOMPATFWAPIVER) (void);
108 #endif
109 typedef void (LIB_API* PNIFMTFWAPIVERSTR) (const char ver_str[], char fmt_str[]);
110 typedef int (LIB_API* PNICMPFWAPIVER) (const char ver1[], const char ver2[]);
111 typedef char * (LIB_API* PNIGETLIBXCODERRELEASEVER) (void);
112 typedef const char * (LIB_API* PNIGETRCTXT) (ni_retcode_t rc);
113 typedef int (LIB_API* PNIPARAMGETKEYVALUE) (char *p_str, char *key, char *value);
114 typedef int (LIB_API* PNIRETRIEVEXCODERPARAMS) (char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx);
115 typedef int (LIB_API* PNIRETRIEVEXCODERGOP) (char xcoderGop[], ni_xcoder_params_t *params, ni_session_context_t *ctx);
116 typedef int (LIB_API* PNIRETRIEVEDECODERPARAMS) (char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx);
117 typedef int (LIB_API* PNIPTHREADMUTEXINIT) (ni_pthread_mutex_t *mutex);
118 typedef int (LIB_API* PNIPTHREADMUTEXDESTROY) (ni_pthread_mutex_t *mutex);
119 typedef int (LIB_API* PNIPTHREADMUTEXLOCK) (ni_pthread_mutex_t *mutex);
120 typedef int (LIB_API* PNIPTHREADMUTEXUNLOCK) (ni_pthread_mutex_t *mutex);
121 typedef int (LIB_API* PNIPTHREADCREATE) (ni_pthread_t *thread, const ni_pthread_attr_t *attr, void *(*start_routine)(void *), void *arg);
122 typedef int (LIB_API* PNIPTHREADJOIN) (ni_pthread_t thread, void **value_ptr);
123 typedef int (LIB_API* PNIPTHREADCONDINIT) (ni_pthread_cond_t *cond, const ni_pthread_condattr_t *attr);
124 typedef int (LIB_API* PNIPTHREADCONDDESTROY) (ni_pthread_cond_t *cond);
125 typedef int (LIB_API* PNIPTHREADCONDBROADCAST) (ni_pthread_cond_t *cond);
126 typedef int (LIB_API* PNIPTHREADCONDWAIT) (ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex);
127 typedef int (LIB_API* PNIPTHREADCONDSIGNAL) (ni_pthread_cond_t *cond);
128 typedef int (LIB_API* PNIPTHREADCONDTIMEDWAIT) (ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex, const struct timespec *abstime);
129 typedef int (LIB_API* PNIPTHREADSIGMASK) (int how, const ni_sigset_t *set, ni_sigset_t *oldset);
130 typedef int (LIB_API* PNIPOSIXMEMALIGN) (void **memptr, size_t alignment, size_t size);
131 typedef const char * (LIB_API* PNIAIERRNOTOSTR) (int rc);
132 //
133 
134 //
135 // Function pointers for ni_device_api.h
136 //
141 typedef ni_event_handle_t (LIB_API* PNICREATEEVENT) (void);
142 typedef void (LIB_API* PNICLOSEEVENT) (ni_event_handle_t event_handle);
143 #ifndef DEPRECATION_AS_ERROR
144 typedef ni_device_handle_t (LIB_API* PNIDEVICEOPEN) (const char *dev, uint32_t *p_max_io_size_out);
145 #endif
146 typedef ni_device_handle_t (LIB_API* PNIDEVICEOPEN2) (const char *dev, ni_device_mode_t mode);
147 typedef void (LIB_API* PNIDEVICECLOSE) (ni_device_handle_t dev);
148 #ifndef DEPRECATION_AS_ERROR
149 typedef ni_retcode_t (LIB_API* PNIDEVICECAPABILITYQUERY) (ni_device_handle_t device_handle, ni_device_capability_t *p_cap);
150 #endif
151 typedef ni_retcode_t (LIB_API* PNIDEVICECAPABILITYQUERY2) (ni_device_handle_t device_handle, ni_device_capability_t *p_cap, bool device_in_ctxt);
153 typedef ni_retcode_t (LIB_API* PNIDEVICESESSIONCLOSE) (ni_session_context_t *p_ctx, int eos_received, ni_device_type_t device_type);
155 typedef ni_retcode_t (LIB_API* PNIDEVICEDECSESSIONSAVEHDRS) (ni_session_context_t *p_ctx, uint8_t *hdr_data, uint8_t hdr_size);
162 typedef ni_retcode_t (LIB_API* PNIDEVICECONFIGNAMESPACENUM) (ni_device_handle_t device_handle, uint32_t namespace_num, uint32_t sriov_index);
163 typedef ni_retcode_t (LIB_API* PNIDEVICECONFIGQOS) (ni_device_handle_t device_handle, uint32_t mode);
164 typedef ni_retcode_t (LIB_API* PNIDEVICECONFIGQOSOP) (ni_device_handle_t device_handle, ni_device_handle_t device_handle_t, uint32_t over_provision);
165 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);
166 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);
167 typedef ni_retcode_t (LIB_API* PNIFRAMEBUFFERALLOCDL) (ni_frame_t *p_frame, int video_width, int video_height, int pixel_format);
168 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);
169 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);
173 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);
174 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);
177 typedef void (LIB_API* PNIDECODERFRAMEBUFFERPOOLRETURNBUF) (ni_buf_t *buf, ni_buf_pool_t *p_buffer_pool);
178 typedef ni_retcode_t (LIB_API* PNIPACKETBUFFERALLOC) (ni_packet_t *ppacket, int packet_size);
179 typedef ni_retcode_t (LIB_API* PNICUSTOMPACKETBUFFERALLOC) (void *p_buffer, ni_packet_t *p_packet, int buffer_size);
182 typedef int (LIB_API* PNIPACKETCOPY) (void *p_destination, const void *const p_source, int cur_size, void *p_leftover, int *p_prev_size);
183 typedef ni_aux_data_t * (LIB_API* PNIFRAMENEWAUXDATA) (ni_frame_t *frame, ni_aux_data_type_t type, int data_size);
184 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);
187 typedef void (LIB_API* PNIFRAMEWIPEAUXDATA) (ni_frame_t *frame);
188 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);
189 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);
190 typedef ni_retcode_t (LIB_API* PNIENCODERPARAMSSETVALUE) (ni_xcoder_params_t *p_params, const char *name, const char *value);
191 typedef ni_retcode_t (LIB_API* PNIDECODERPARAMSSETVALUE) (ni_xcoder_params_t *p_params, const char *name, char *value);
192 typedef ni_retcode_t (LIB_API* PNIENCODERGOPPARAMSSETVALUE) (ni_xcoder_params_t *p_params, const char *name, const char *value);
194 typedef int (LIB_API* PNIDEVICESESSIONINITFRAMEPOOL) (ni_session_context_t *p_ctx, uint32_t pool_size, uint32_t pool);
199 typedef ni_retcode_t (LIB_API* PNIFRAMEBUFFERALLOCHWENC) (ni_frame_t *pframe, int video_width, int video_height, int extra_len);
200 typedef ni_retcode_t (LIB_API* PNIHWFRAMEBUFFERRECYCLE) (niFrameSurface1_t *surface, int32_t device_handle);
203 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);
210 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);
211 typedef ni_retcode_t (LIB_API* PNIAICONFIGNETWORKBINARY) (ni_session_context_t *p_ctx, ni_network_data_t *p_network, const char *file);
215 typedef ni_retcode_t (LIB_API* PNIRECONFIGBITRATE) (ni_session_context_t *p_ctx, int32_t bitrate);
219 typedef ni_retcode_t (LIB_API* PNISETLTRINTERVAL) (ni_session_context_t *p_ctx, int32_t ltr_interval);
220 typedef ni_retcode_t (LIB_API* PNISETFRAMEREFINVALID) (ni_session_context_t *p_ctx, int32_t frame_num);
222 typedef ni_retcode_t (LIB_API* PNIRECONFIGMAXFRAMESIZE) (ni_session_context_t *p_ctx, int32_t max_frame_size);
224 typedef int (LIB_API* PNIDEVICESESSIONACQUIRE) (ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame);
228 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);
229 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);
230 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);
231 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);
235 typedef int32_t (LIB_API* PNIGETDMABUFFILEDESCRIPTOR) (const ni_frame_t* p_frame);
236 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);
239 typedef ni_retcode_t (LIB_API* PNIQUERYFLFWVERSIONS) (ni_device_handle_t device_handle, ni_device_info_t *p_dev_info);
240 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[]);
241 typedef ni_retcode_t (LIB_API* PNIQUERYTEMPERATURE) (ni_device_handle_t device_handle, ni_device_temp_t *p_dev_temp, uint8_t fw_rev[]);
242 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[]);
243 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);
244 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);
245 typedef ni_retcode_t (LIB_API* PNIUPLOADERFRAMEZEROCOPYCHECK) (ni_session_context_t *p_upl_ctx, int width, int height, const int linesize[], int pixel_format);
246 typedef ni_retcode_t (LIB_API* PNIRECONFIGCRF) (ni_session_context_t *p_ctx, int32_t crf);
248 typedef ni_retcode_t (LIB_API* PNIDEVICEALLOCANDGETFIRMWARELOGS) (ni_session_context_t *p_ctx, void** p_log_buffer, bool gen_log_file);
249 typedef ni_retcode_t (LIB_API* PNIRECONFIGVBVVALUE) (ni_session_context_t *p_ctx, int32_t vbvMaxRate, int32_t vbvBufferSize);
253 typedef void (LIB_API* PNIGOPPARAMSCHECKSET) (ni_xcoder_params_t *p_param, char *value);
254 typedef bool (LIB_API* PNIGOPPARAMSCHECK) (ni_xcoder_params_t *p_param);
255 typedef ni_retcode_t (LIB_API* PNIRECONFIGMAXFRAMESIZERATIO) (ni_session_context_t *p_ctx, int32_t max_frame_size_ratio);
256 typedef ni_retcode_t (LIB_API* PNIRECONFIGINTRAPRD) (ni_session_context_t *p_ctx, int32_t intra_period);
257 #ifndef DEPRECATION_AS_ERROR
258 typedef ni_retcode_t (LIB_API* PNIP2PXFER) (ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize);
259 #endif
260 typedef ni_retcode_t (LIB_API* PNIP2PSEND) (ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize);
261 typedef int (LIB_API* PNICALCULATETOTALFRAMESIZE) (const ni_session_context_t *p_upl_ctx, const int linesize[]);
262 typedef ni_retcode_t (LIB_API* PNIRECONFIGSLICEARG) (ni_session_context_t *p_ctx, int16_t sliceArg);
263 typedef ni_retcode_t (LIB_API* PNIP2PRECV) (ni_session_context_t *pSession, const ni_p2p_sgl_t *dmaAddrs, ni_frame_t *pDstFrame);
264 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);
266 //
267 // Function pointers for ni_quadraprobe.h
268 //
269 typedef int (LIB_API* PNIRSRCLOGDUMP) (const char *outdir, bool core_reset_log);
270 
271 /* End API function pointers */
272 
273 
274 
275 /*
276  * Definition of _NETINT_LIBXCODER_API_FUNCTION_LIST
277  */
279 {
280  //
281  // API function list for ni_av_codec.h
282  //
293  //
294  // API function list for ni_util.h
295  //
324 #ifndef DEPRECATION_AS_ERROR
326 #endif
350  //
351  // API function list for ni_device_api.h
352  //
359 #ifndef DEPRECATION_AS_ERROR
361 #endif
364 #ifndef DEPRECATION_AS_ERROR
366 #endif
475 #ifndef DEPRECATION_AS_ERROR
477 #endif
485 //
486 // Function pointers for ni_quadraprobe.h
487 //
490 
492 public:
493  // NiLibxcoderAPICreateInstance
500  {
501  //
502  // Function/symbol loading for ni_av_codec.h
503  //
504  functionList->niShouldSendSeiWithFrame = reinterpret_cast<decltype(ni_should_send_sei_with_frame)*>(dlsym(lib,"ni_should_send_sei_with_frame"));
505  functionList->niDecRetrieveAuxData = reinterpret_cast<decltype(ni_dec_retrieve_aux_data)*>(dlsym(lib,"ni_dec_retrieve_aux_data"));
506  functionList->niEncPrepAuxData = reinterpret_cast<decltype(ni_enc_prep_aux_data)*>(dlsym(lib,"ni_enc_prep_aux_data"));
507  functionList->niEncCopyAuxData = reinterpret_cast<decltype(ni_enc_copy_aux_data)*>(dlsym(lib,"ni_enc_copy_aux_data"));
508  functionList->niEncWriteFromYuvBuffer = reinterpret_cast<decltype(ni_enc_write_from_yuv_buffer)*>(dlsym(lib,"ni_enc_write_from_yuv_buffer"));
509  functionList->niExtractCustomSei = reinterpret_cast<decltype(ni_extract_custom_sei)*>(dlsym(lib,"ni_extract_custom_sei"));
510  functionList->niDecPacketParse = reinterpret_cast<decltype(ni_dec_packet_parse)*>(dlsym(lib,"ni_dec_packet_parse"));
511  functionList->niExpandFrame = reinterpret_cast<decltype(ni_expand_frame)*>(dlsym(lib,"ni_expand_frame"));
512  functionList->niReconfigPpuOutput = reinterpret_cast<decltype(ni_reconfig_ppu_output)*>(dlsym(lib,"ni_reconfig_ppu_output"));
513  functionList->niEncInsertTimecode = reinterpret_cast<decltype(ni_enc_insert_timecode)*>(dlsym(lib,"ni_enc_insert_timecode"));
514  //
515  // Function/symbol loading for ni_util.h
516  //
517  functionList->niGetHwYuv420PDim = reinterpret_cast<decltype(ni_get_hw_yuv420p_dim)*>(dlsym(lib,"ni_get_hw_yuv420p_dim"));
518  functionList->niCopyHwYuv420P = reinterpret_cast<decltype(ni_copy_hw_yuv420p)*>(dlsym(lib,"ni_copy_hw_yuv420p"));
519  functionList->niCopyYuv444PTo420P = reinterpret_cast<decltype(ni_copy_yuv_444p_to_420p)*>(dlsym(lib,"ni_copy_yuv_444p_to_420p"));
520  functionList->niInsertEmulationPreventBytes = reinterpret_cast<decltype(ni_insert_emulation_prevent_bytes)*>(dlsym(lib,"ni_insert_emulation_prevent_bytes"));
521  functionList->niRemoveEmulationPreventBytes = reinterpret_cast<decltype(ni_remove_emulation_prevent_bytes)*>(dlsym(lib,"ni_remove_emulation_prevent_bytes"));
522  functionList->niGettimeofday = reinterpret_cast<decltype(ni_gettimeofday)*>(dlsym(lib,"ni_gettimeofday"));
523  functionList->niGettimeNs = reinterpret_cast<decltype(ni_gettime_ns)*>(dlsym(lib,"ni_gettime_ns"));
524  functionList->niUsleep = reinterpret_cast<decltype(ni_usleep)*>(dlsym(lib,"ni_usleep"));
525  functionList->niStrtok = reinterpret_cast<decltype(ni_strtok)*>(dlsym(lib,"ni_strtok"));
526  functionList->niStrcpy = reinterpret_cast<decltype(ni_strcpy)*>(dlsym(lib,"ni_strcpy"));
527  functionList->niStrncpy = reinterpret_cast<decltype(ni_strncpy)*>(dlsym(lib,"ni_strncpy"));
528  functionList->niStrerror = reinterpret_cast<decltype(ni_strerror)*>(dlsym(lib,"ni_strerror"));
529  functionList->niStrcat = reinterpret_cast<decltype(ni_strcat)*>(dlsym(lib,"ni_strcat"));
530  functionList->niStrncat = reinterpret_cast<decltype(ni_strncat)*>(dlsym(lib,"ni_strncat"));
531  functionList->niFopen = reinterpret_cast<decltype(ni_fopen)*>(dlsym(lib,"ni_fopen"));
532  functionList->niLocaltime = reinterpret_cast<decltype(ni_localtime)*>(dlsym(lib,"ni_localtime"));
533  functionList->niFscanf = reinterpret_cast<decltype(ni_fscanf)*>(dlsym(lib,"ni_fscanf"));
534  functionList->niVsprintf = reinterpret_cast<decltype(ni_vsprintf)*>(dlsym(lib,"ni_vsprintf"));
535  functionList->niSprintf = reinterpret_cast<decltype(ni_sprintf)*>(dlsym(lib,"ni_sprintf"));
536  functionList->niNetworkLayerConvertOutput = reinterpret_cast<decltype(ni_network_layer_convert_output)*>(dlsym(lib,"ni_network_layer_convert_output"));
537  functionList->niAiNetworkLayerSize = reinterpret_cast<decltype(ni_ai_network_layer_size)*>(dlsym(lib,"ni_ai_network_layer_size"));
538  functionList->niAiNetworkLayerDims = reinterpret_cast<decltype(ni_ai_network_layer_dims)*>(dlsym(lib,"ni_ai_network_layer_dims"));
539  functionList->niNetworkLayerConvertTensor = reinterpret_cast<decltype(ni_network_layer_convert_tensor)*>(dlsym(lib,"ni_network_layer_convert_tensor"));
540  functionList->niNetworkConvertTensorToData = reinterpret_cast<decltype(ni_network_convert_tensor_to_data)*>(dlsym(lib,"ni_network_convert_tensor_to_data"));
541  functionList->niNetworkConvertDataToTensor = reinterpret_cast<decltype(ni_network_convert_data_to_tensor)*>(dlsym(lib,"ni_network_convert_data_to_tensor"));
542  functionList->niCalculateSha256 = reinterpret_cast<decltype(ni_calculate_sha256)*>(dlsym(lib,"ni_calculate_sha256"));
543  functionList->niCopyHwDescriptors = reinterpret_cast<decltype(ni_copy_hw_descriptors)*>(dlsym(lib,"ni_copy_hw_descriptors"));
544  functionList->niGetLibxcoderApiVer = reinterpret_cast<decltype(ni_get_libxcoder_api_ver)*>(dlsym(lib,"ni_get_libxcoder_api_ver"));
545 #ifndef DEPRECATION_AS_ERROR
546  functionList->niGetCompatFwApiVer = reinterpret_cast<decltype(ni_get_compat_fw_api_ver)*>(dlsym(lib,"ni_get_compat_fw_api_ver"));
547 #endif
548  functionList->niFmtFwApiVerStr = reinterpret_cast<decltype(ni_fmt_fw_api_ver_str)*>(dlsym(lib,"ni_fmt_fw_api_ver_str"));
549  functionList->niCmpFwApiVer = reinterpret_cast<decltype(ni_cmp_fw_api_ver)*>(dlsym(lib,"ni_cmp_fw_api_ver"));
550  functionList->niGetLibxcoderReleaseVer = reinterpret_cast<decltype(ni_get_libxcoder_release_ver)*>(dlsym(lib,"ni_get_libxcoder_release_ver"));
551  functionList->niGetRcTxt = reinterpret_cast<decltype(ni_get_rc_txt)*>(dlsym(lib,"ni_get_rc_txt"));
552  functionList->niParamGetKeyValue = reinterpret_cast<decltype(ni_param_get_key_value)*>(dlsym(lib,"ni_param_get_key_value"));
553  functionList->niRetrieveXcoderParams = reinterpret_cast<decltype(ni_retrieve_xcoder_params)*>(dlsym(lib,"ni_retrieve_xcoder_params"));
554  functionList->niRetrieveXcoderGop = reinterpret_cast<decltype(ni_retrieve_xcoder_gop)*>(dlsym(lib,"ni_retrieve_xcoder_gop"));
555  functionList->niRetrieveDecoderParams = reinterpret_cast<decltype(ni_retrieve_decoder_params)*>(dlsym(lib,"ni_retrieve_decoder_params"));
556  functionList->niPthreadMutexInit = reinterpret_cast<decltype(ni_pthread_mutex_init)*>(dlsym(lib,"ni_pthread_mutex_init"));
557  functionList->niPthreadMutexDestroy = reinterpret_cast<decltype(ni_pthread_mutex_destroy)*>(dlsym(lib,"ni_pthread_mutex_destroy"));
558  functionList->niPthreadMutexLock = reinterpret_cast<decltype(ni_pthread_mutex_lock)*>(dlsym(lib,"ni_pthread_mutex_lock"));
559  functionList->niPthreadMutexUnlock = reinterpret_cast<decltype(ni_pthread_mutex_unlock)*>(dlsym(lib,"ni_pthread_mutex_unlock"));
560  functionList->niPthreadCreate = reinterpret_cast<decltype(ni_pthread_create)*>(dlsym(lib,"ni_pthread_create"));
561  functionList->niPthreadJoin = reinterpret_cast<decltype(ni_pthread_join)*>(dlsym(lib,"ni_pthread_join"));
562  functionList->niPthreadCondInit = reinterpret_cast<decltype(ni_pthread_cond_init)*>(dlsym(lib,"ni_pthread_cond_init"));
563  functionList->niPthreadCondDestroy = reinterpret_cast<decltype(ni_pthread_cond_destroy)*>(dlsym(lib,"ni_pthread_cond_destroy"));
564  functionList->niPthreadCondBroadcast = reinterpret_cast<decltype(ni_pthread_cond_broadcast)*>(dlsym(lib,"ni_pthread_cond_broadcast"));
565  functionList->niPthreadCondWait = reinterpret_cast<decltype(ni_pthread_cond_wait)*>(dlsym(lib,"ni_pthread_cond_wait"));
566  functionList->niPthreadCondSignal = reinterpret_cast<decltype(ni_pthread_cond_signal)*>(dlsym(lib,"ni_pthread_cond_signal"));
567  functionList->niPthreadCondTimedwait = reinterpret_cast<decltype(ni_pthread_cond_timedwait)*>(dlsym(lib,"ni_pthread_cond_timedwait"));
568  functionList->niPthreadSigmask = reinterpret_cast<decltype(ni_pthread_sigmask)*>(dlsym(lib,"ni_pthread_sigmask"));
569  functionList->niPosixMemalign = reinterpret_cast<decltype(ni_posix_memalign)*>(dlsym(lib,"ni_posix_memalign"));
570  functionList->niAiErrnoToStr = reinterpret_cast<decltype(ni_ai_errno_to_str)*>(dlsym(lib,"ni_ai_errno_to_str"));
571  //
572  // Function/symbol loading for ni_device_api.h
573  //
574  functionList->niDeviceSessionContextAllocInit = reinterpret_cast<decltype(ni_device_session_context_alloc_init)*>(dlsym(lib,"ni_device_session_context_alloc_init"));
575  functionList->niDeviceSessionContextInit = reinterpret_cast<decltype(ni_device_session_context_init)*>(dlsym(lib,"ni_device_session_context_init"));
576  functionList->niDeviceSessionContextClear = reinterpret_cast<decltype(ni_device_session_context_clear)*>(dlsym(lib,"ni_device_session_context_clear"));
577  functionList->niDeviceSessionContextFree = reinterpret_cast<decltype(ni_device_session_context_free)*>(dlsym(lib,"ni_device_session_context_free"));
578  functionList->niCreateEvent = reinterpret_cast<decltype(ni_create_event)*>(dlsym(lib,"ni_create_event"));
579  functionList->niCloseEvent = reinterpret_cast<decltype(ni_close_event)*>(dlsym(lib,"ni_close_event"));
580 #ifndef DEPRECATION_AS_ERROR
581  functionList->niDeviceOpen = reinterpret_cast<decltype(ni_device_open)*>(dlsym(lib,"ni_device_open"));
582 #endif
583  functionList->niDeviceOpen2 = reinterpret_cast<decltype(ni_device_open2)*>(dlsym(lib,"ni_device_open2"));
584  functionList->niDeviceClose = reinterpret_cast<decltype(ni_device_close)*>(dlsym(lib,"ni_device_close"));
585 #ifndef DEPRECATION_AS_ERROR
586  functionList->niDeviceCapabilityQuery = reinterpret_cast<decltype(ni_device_capability_query)*>(dlsym(lib,"ni_device_capability_query"));
587 #endif
588  functionList->niDeviceCapabilityQuery2 = reinterpret_cast<decltype(ni_device_capability_query2)*>(dlsym(lib,"ni_device_capability_query2"));
589  functionList->niDeviceSessionOpen = reinterpret_cast<decltype(ni_device_session_open)*>(dlsym(lib,"ni_device_session_open"));
590  functionList->niDeviceSessionClose = reinterpret_cast<decltype(ni_device_session_close)*>(dlsym(lib,"ni_device_session_close"));
591  functionList->niDeviceSessionFlush = reinterpret_cast<decltype(ni_device_session_flush)*>(dlsym(lib,"ni_device_session_flush"));
592  functionList->niDeviceDecSessionSaveHdrs = reinterpret_cast<decltype(ni_device_dec_session_save_hdrs)*>(dlsym(lib,"ni_device_dec_session_save_hdrs"));
593  functionList->niDeviceDecSessionFlush = reinterpret_cast<decltype(ni_device_dec_session_flush)*>(dlsym(lib,"ni_device_dec_session_flush"));
594  functionList->niDeviceSessionWrite = reinterpret_cast<decltype(ni_device_session_write)*>(dlsym(lib,"ni_device_session_write"));
595  functionList->niDeviceSessionRead = reinterpret_cast<decltype(ni_device_session_read)*>(dlsym(lib,"ni_device_session_read"));
596  functionList->niDeviceSessionQuery = reinterpret_cast<decltype(ni_device_session_query)*>(dlsym(lib,"ni_device_session_query"));
597  functionList->niDeviceSessionQueryDetail = reinterpret_cast<decltype(ni_device_session_query_detail)*>(dlsym(lib,"ni_device_session_query_detail"));
598  functionList->niDeviceSessionQueryDetailV1 = reinterpret_cast<decltype(ni_device_session_query_detail_v1)*>(dlsym(lib,"ni_device_session_query_detail_v1"));
599  functionList->niDeviceConfigNamespaceNum = reinterpret_cast<decltype(ni_device_config_namespace_num)*>(dlsym(lib,"ni_device_config_namespace_num"));
600  functionList->niDeviceConfigQos = reinterpret_cast<decltype(ni_device_config_qos)*>(dlsym(lib,"ni_device_config_qos"));
601  functionList->niDeviceConfigQosOp = reinterpret_cast<decltype(ni_device_config_qos_op)*>(dlsym(lib,"ni_device_config_qos_op"));
602  functionList->niFrameBufferAlloc = reinterpret_cast<decltype(ni_frame_buffer_alloc)*>(dlsym(lib,"ni_frame_buffer_alloc"));
603  functionList->niFrameBufferAllocDl = reinterpret_cast<decltype(ni_frame_buffer_alloc_dl)*>(dlsym(lib,"ni_frame_buffer_alloc_dl"));
604  functionList->niDecoderFrameBufferAlloc = reinterpret_cast<decltype(ni_decoder_frame_buffer_alloc)*>(dlsym(lib,"ni_decoder_frame_buffer_alloc"));
605  functionList->niEncoderFrameBufferAlloc = reinterpret_cast<decltype(ni_encoder_frame_buffer_alloc)*>(dlsym(lib,"ni_encoder_frame_buffer_alloc"));
606  functionList->niScalerDestFrameAlloc = reinterpret_cast<decltype(ni_scaler_dest_frame_alloc)*>(dlsym(lib,"ni_scaler_dest_frame_alloc"));
607  functionList->niScalerInputFrameAlloc = reinterpret_cast<decltype(ni_scaler_input_frame_alloc)*>(dlsym(lib,"ni_scaler_input_frame_alloc"));
608  functionList->niScalerFramePoolAlloc = reinterpret_cast<decltype(ni_scaler_frame_pool_alloc)*>(dlsym(lib,"ni_scaler_frame_pool_alloc"));
609  functionList->niFrameBufferAllocNv = reinterpret_cast<decltype(ni_frame_buffer_alloc_nv)*>(dlsym(lib,"ni_frame_buffer_alloc_nv"));
610  functionList->niEncoderSwFrameBufferAlloc = reinterpret_cast<decltype(ni_encoder_sw_frame_buffer_alloc)*>(dlsym(lib,"ni_encoder_sw_frame_buffer_alloc"));
611  functionList->niFrameBufferFree = reinterpret_cast<decltype(ni_frame_buffer_free)*>(dlsym(lib,"ni_frame_buffer_free"));
612  functionList->niDecoderFrameBufferFree = reinterpret_cast<decltype(ni_decoder_frame_buffer_free)*>(dlsym(lib,"ni_decoder_frame_buffer_free"));
613  functionList->niDecoderFrameBufferPoolReturnBuf = reinterpret_cast<decltype(ni_decoder_frame_buffer_pool_return_buf)*>(dlsym(lib,"ni_decoder_frame_buffer_pool_return_buf"));
614  functionList->niPacketBufferAlloc = reinterpret_cast<decltype(ni_packet_buffer_alloc)*>(dlsym(lib,"ni_packet_buffer_alloc"));
615  functionList->niCustomPacketBufferAlloc = reinterpret_cast<decltype(ni_custom_packet_buffer_alloc)*>(dlsym(lib,"ni_custom_packet_buffer_alloc"));
616  functionList->niPacketBufferFree = reinterpret_cast<decltype(ni_packet_buffer_free)*>(dlsym(lib,"ni_packet_buffer_free"));
617  functionList->niPacketBufferFreeAv1 = reinterpret_cast<decltype(ni_packet_buffer_free_av1)*>(dlsym(lib,"ni_packet_buffer_free_av1"));
618  functionList->niPacketCopy = reinterpret_cast<decltype(ni_packet_copy)*>(dlsym(lib,"ni_packet_copy"));
619  functionList->niFrameNewAuxData = reinterpret_cast<decltype(ni_frame_new_aux_data)*>(dlsym(lib,"ni_frame_new_aux_data"));
620  functionList->niFrameNewAuxDataFromRawData = reinterpret_cast<decltype(ni_frame_new_aux_data_from_raw_data)*>(dlsym(lib,"ni_frame_new_aux_data_from_raw_data"));
621  functionList->niFrameGetAuxData = reinterpret_cast<decltype(ni_frame_get_aux_data)*>(dlsym(lib,"ni_frame_get_aux_data"));
622  functionList->niFrameFreeAuxData = reinterpret_cast<decltype(ni_frame_free_aux_data)*>(dlsym(lib,"ni_frame_free_aux_data"));
623  functionList->niFrameWipeAuxData = reinterpret_cast<decltype(ni_frame_wipe_aux_data)*>(dlsym(lib,"ni_frame_wipe_aux_data"));
624  functionList->niEncoderInitDefaultParams = reinterpret_cast<decltype(ni_encoder_init_default_params)*>(dlsym(lib,"ni_encoder_init_default_params"));
625  functionList->niDecoderInitDefaultParams = reinterpret_cast<decltype(ni_decoder_init_default_params)*>(dlsym(lib,"ni_decoder_init_default_params"));
626  functionList->niEncoderParamsSetValue = reinterpret_cast<decltype(ni_encoder_params_set_value)*>(dlsym(lib,"ni_encoder_params_set_value"));
627  functionList->niDecoderParamsSetValue = reinterpret_cast<decltype(ni_decoder_params_set_value)*>(dlsym(lib,"ni_decoder_params_set_value"));
628  functionList->niEncoderGopParamsSetValue = reinterpret_cast<decltype(ni_encoder_gop_params_set_value)*>(dlsym(lib,"ni_encoder_gop_params_set_value"));
629  functionList->niDeviceSessionCopy = reinterpret_cast<decltype(ni_device_session_copy)*>(dlsym(lib,"ni_device_session_copy"));
630  functionList->niDeviceSessionInitFramepool = reinterpret_cast<decltype(ni_device_session_init_framepool)*>(dlsym(lib,"ni_device_session_init_framepool"));
631  functionList->niDeviceSessionReadHwdesc = reinterpret_cast<decltype(ni_device_session_read_hwdesc)*>(dlsym(lib,"ni_device_session_read_hwdesc"));
632  functionList->niDeviceSessionHwdl = reinterpret_cast<decltype(ni_device_session_hwdl)*>(dlsym(lib,"ni_device_session_hwdl"));
633  functionList->niDeviceSessionQueryBufferAvail = reinterpret_cast<decltype(ni_device_session_query_buffer_avail)*>(dlsym(lib,"ni_device_session_query_buffer_avail"));
634  functionList->niDeviceSessionHwup = reinterpret_cast<decltype(ni_device_session_hwup)*>(dlsym(lib,"ni_device_session_hwup"));
635  functionList->niFrameBufferAllocHwenc = reinterpret_cast<decltype(ni_frame_buffer_alloc_hwenc)*>(dlsym(lib,"ni_frame_buffer_alloc_hwenc"));
636  functionList->niHwframeBufferRecycle = reinterpret_cast<decltype(ni_hwframe_buffer_recycle)*>(dlsym(lib,"ni_hwframe_buffer_recycle"));
637  functionList->niHwframeBufferRecycle2 = reinterpret_cast<decltype(ni_hwframe_buffer_recycle2)*>(dlsym(lib,"ni_hwframe_buffer_recycle2"));
638  functionList->niScalerSetParams = reinterpret_cast<decltype(ni_scaler_set_params)*>(dlsym(lib,"ni_scaler_set_params"));
639  functionList->niDeviceAllocFrame = reinterpret_cast<decltype(ni_device_alloc_frame)*>(dlsym(lib,"ni_device_alloc_frame"));
640  functionList->niDeviceAllocDstFrame = reinterpret_cast<decltype(ni_device_alloc_dst_frame)*>(dlsym(lib,"ni_device_alloc_dst_frame"));
641  functionList->niDeviceCloneHwframe = reinterpret_cast<decltype(ni_device_clone_hwframe)*>(dlsym(lib,"ni_device_clone_hwframe"));
642  functionList->niDeviceConfigFrame = reinterpret_cast<decltype(ni_device_config_frame)*>(dlsym(lib,"ni_device_config_frame"));
643  functionList->niDeviceMultiConfigFrame = reinterpret_cast<decltype(ni_device_multi_config_frame)*>(dlsym(lib,"ni_device_multi_config_frame"));
644  functionList->niFrameBufferAllocPixfmt = reinterpret_cast<decltype(ni_frame_buffer_alloc_pixfmt)*>(dlsym(lib,"ni_frame_buffer_alloc_pixfmt"));
645  functionList->niAiConfigNetworkBinary = reinterpret_cast<decltype(ni_ai_config_network_binary)*>(dlsym(lib,"ni_ai_config_network_binary"));
646  functionList->niAiConfigHvsplus = reinterpret_cast<decltype(ni_ai_config_hvsplus)*>(dlsym(lib,"ni_ai_config_hvsplus"));
647  functionList->niAiFrameBufferAlloc = reinterpret_cast<decltype(ni_ai_frame_buffer_alloc)*>(dlsym(lib,"ni_ai_frame_buffer_alloc"));
648  functionList->niAiPacketBufferAlloc = reinterpret_cast<decltype(ni_ai_packet_buffer_alloc)*>(dlsym(lib,"ni_ai_packet_buffer_alloc"));
649  functionList->niReconfigBitrate = reinterpret_cast<decltype(ni_reconfig_bitrate)*>(dlsym(lib,"ni_reconfig_bitrate"));
650  functionList->niReconfigVui = reinterpret_cast<decltype(ni_reconfig_vui)*>(dlsym(lib,"ni_reconfig_vui"));
651  functionList->niForceIdrFrameType = reinterpret_cast<decltype(ni_force_idr_frame_type)*>(dlsym(lib,"ni_force_idr_frame_type"));
652  functionList->niSetLtr = reinterpret_cast<decltype(ni_set_ltr)*>(dlsym(lib,"ni_set_ltr"));
653  functionList->niSetLtrInterval = reinterpret_cast<decltype(ni_set_ltr_interval)*>(dlsym(lib,"ni_set_ltr_interval"));
654  functionList->niSetFrameRefInvalid = reinterpret_cast<decltype(ni_set_frame_ref_invalid)*>(dlsym(lib,"ni_set_frame_ref_invalid"));
655  functionList->niReconfigFramerate = reinterpret_cast<decltype(ni_reconfig_framerate)*>(dlsym(lib,"ni_reconfig_framerate"));
656  functionList->niReconfigMaxFrameSize = reinterpret_cast<decltype(ni_reconfig_max_frame_size)*>(dlsym(lib,"ni_reconfig_max_frame_size"));
657  functionList->niReconfigMinMaxQp = reinterpret_cast<decltype(ni_reconfig_min_max_qp)*>(dlsym(lib,"ni_reconfig_min_max_qp"));
658  functionList->niDeviceSessionAcquire = reinterpret_cast<decltype(ni_device_session_acquire)*>(dlsym(lib,"ni_device_session_acquire"));
659  functionList->niDeviceSessionAcquireForRead = reinterpret_cast<decltype(ni_device_session_acquire_for_read)*>(dlsym(lib,"ni_device_session_acquire_for_read"));
660  functionList->niUploaderFrameBufferLock = reinterpret_cast<decltype(ni_uploader_frame_buffer_lock)*>(dlsym(lib,"ni_uploader_frame_buffer_lock"));
661  functionList->niUploaderFrameBufferUnlock = reinterpret_cast<decltype(ni_uploader_frame_buffer_unlock)*>(dlsym(lib,"ni_uploader_frame_buffer_unlock"));
662  functionList->niUploaderP2PTestSend = reinterpret_cast<decltype(ni_uploader_p2p_test_send)*>(dlsym(lib,"ni_uploader_p2p_test_send"));
663  functionList->niUploaderP2PTestLoad = reinterpret_cast<decltype(ni_uploader_p2p_test_load)*>(dlsym(lib,"ni_uploader_p2p_test_load"));
664  functionList->niEncoderSetInputFrameFormat = reinterpret_cast<decltype(ni_encoder_set_input_frame_format)*>(dlsym(lib,"ni_encoder_set_input_frame_format"));
665  functionList->niUploaderSetFrameFormat = reinterpret_cast<decltype(ni_uploader_set_frame_format)*>(dlsym(lib,"ni_uploader_set_frame_format"));
666  functionList->niScalerP2PFrameAcquire = reinterpret_cast<decltype(ni_scaler_p2p_frame_acquire)*>(dlsym(lib,"ni_scaler_p2p_frame_acquire"));
667  functionList->niHwframeP2PBufferRecycle = reinterpret_cast<decltype(ni_hwframe_p2p_buffer_recycle)*>(dlsym(lib,"ni_hwframe_p2p_buffer_recycle"));
668  functionList->niEncoderSessionReadStreamHeader = reinterpret_cast<decltype(ni_encoder_session_read_stream_header)*>(dlsym(lib,"ni_encoder_session_read_stream_header"));
669  functionList->niGetDmaBufFileDescriptor = reinterpret_cast<decltype(ni_get_dma_buf_file_descriptor)*>(dlsym(lib,"ni_get_dma_buf_file_descriptor"));
670  functionList->niDeviceSessionSequenceChange = reinterpret_cast<decltype(ni_device_session_sequence_change)*>(dlsym(lib,"ni_device_session_sequence_change"));
671  functionList->niScalerSetDrawboxParams = reinterpret_cast<decltype(ni_scaler_set_drawbox_params)*>(dlsym(lib,"ni_scaler_set_drawbox_params"));
672  functionList->niScalerSetWatermarkParams = reinterpret_cast<decltype(ni_scaler_set_watermark_params)*>(dlsym(lib,"ni_scaler_set_watermark_params"));
673  functionList->niAiSessionReadMetrics = reinterpret_cast<decltype(ni_ai_session_read_metrics)*>(dlsym(lib,"ni_ai_session_read_metrics"));
674  functionList->niQueryNvmeStatus = reinterpret_cast<decltype(ni_query_nvme_status)*>(dlsym(lib,"ni_query_nvme_status"));
675  functionList->niQueryFlFwVersions = reinterpret_cast<decltype(ni_query_fl_fw_versions)*>(dlsym(lib,"ni_query_fl_fw_versions"));
676  functionList->niQueryVfNsId = reinterpret_cast<decltype(ni_query_vf_ns_id)*>(dlsym(lib,"ni_query_vf_ns_id"));
677  functionList->niQueryTemperature = reinterpret_cast<decltype(ni_query_temperature)*>(dlsym(lib,"ni_query_temperature"));
678  functionList->niQueryExtraInfo = reinterpret_cast<decltype(ni_query_extra_info)*>(dlsym(lib,"ni_query_extra_info"));
679  functionList->niEncoderFrameZerocopyCheck = reinterpret_cast<decltype(ni_encoder_frame_zerocopy_check)*>(dlsym(lib,"ni_encoder_frame_zerocopy_check"));
680  functionList->niEncoderFrameZerocopyBufferAlloc = reinterpret_cast<decltype(ni_encoder_frame_zerocopy_buffer_alloc)*>(dlsym(lib,"ni_encoder_frame_zerocopy_buffer_alloc"));
681  functionList->niUploaderFrameZerocopyCheck = reinterpret_cast<decltype(ni_uploader_frame_zerocopy_check)*>(dlsym(lib,"ni_uploader_frame_zerocopy_check"));
682  functionList->niReconfigCrf = reinterpret_cast<decltype(ni_reconfig_crf)*>(dlsym(lib,"ni_reconfig_crf"));
683  functionList->niReconfigCrf2 = reinterpret_cast<decltype(ni_reconfig_crf2)*>(dlsym(lib,"ni_reconfig_crf2"));
684  functionList->niDeviceAllocAndGetFirmwareLogs = reinterpret_cast<decltype(ni_device_alloc_and_get_firmware_logs)*>(dlsym(lib,"ni_device_alloc_and_get_firmware_logs"));
685  functionList->niReconfigVbvValue = reinterpret_cast<decltype(ni_reconfig_vbv_value)*>(dlsym(lib,"ni_reconfig_vbv_value"));
686  functionList->niDeviceSessionUpdateFramepool = reinterpret_cast<decltype(ni_device_session_update_framepool)*>(dlsym(lib,"ni_device_session_update_framepool"));
687  functionList->niGetFrameDim = reinterpret_cast<decltype(ni_get_frame_dim)*>(dlsym(lib,"ni_get_frame_dim"));
688  functionList->niGetMinFrameDim = reinterpret_cast<decltype(ni_get_min_frame_dim)*>(dlsym(lib,"ni_get_min_frame_dim"));
689  functionList->niCopyFrameData = reinterpret_cast<decltype(ni_copy_frame_data)*>(dlsym(lib,"ni_copy_frame_data"));
690  functionList->niEncFrameBufferAlloc = reinterpret_cast<decltype(ni_enc_frame_buffer_alloc)*>(dlsym(lib,"ni_enc_frame_buffer_alloc"));
691  functionList->niSetDemoRoiMap = reinterpret_cast<decltype(ni_set_demo_roi_map)*>(dlsym(lib,"ni_set_demo_roi_map"));
692  functionList->niEncPrepReconfDemoData = reinterpret_cast<decltype(ni_enc_prep_reconf_demo_data)*>(dlsym(lib,"ni_enc_prep_reconf_demo_data"));
693  functionList->niGopParamsCheckSet = reinterpret_cast<decltype(ni_gop_params_check_set)*>(dlsym(lib,"ni_gop_params_check_set"));
694  functionList->niGopParamsCheck = reinterpret_cast<decltype(ni_gop_params_check)*>(dlsym(lib,"ni_gop_params_check"));
695  functionList->niReconfigMaxFrameSizeRatio = reinterpret_cast<decltype(ni_reconfig_max_frame_size_ratio)*>(dlsym(lib,"ni_reconfig_max_frame_size_ratio"));
696  functionList->niReconfigIntraprd = reinterpret_cast<decltype(ni_reconfig_intraprd)*>(dlsym(lib,"ni_reconfig_intraprd"));
697 #ifndef DEPRECATION_AS_ERROR
698  functionList->niP2PXfer = reinterpret_cast<decltype(ni_p2p_xfer)*>(dlsym(lib,"ni_p2p_xfer"));
699 #endif
700  functionList->niP2PSend = reinterpret_cast<decltype(ni_p2p_send)*>(dlsym(lib,"ni_p2p_send"));
701  functionList->niCalculateTotalFrameSize = reinterpret_cast<decltype(ni_calculate_total_frame_size)*>(dlsym(lib,"ni_calculate_total_frame_size"));
702  functionList->niReconfigSliceArg = reinterpret_cast<decltype(ni_reconfig_slice_arg)*>(dlsym(lib,"ni_reconfig_slice_arg"));
703  functionList->niP2PRecv = reinterpret_cast<decltype(ni_p2p_recv)*>(dlsym(lib,"ni_p2p_recv"));
704  functionList->niDeviceSessionRestart = reinterpret_cast<decltype(ni_device_session_restart)*>(dlsym(lib,"ni_device_session_restart"));
705  functionList->niDecReconfigPpuParams = reinterpret_cast<decltype(ni_dec_reconfig_ppu_params)*>(dlsym(lib,"ni_dec_reconfig_ppu_params"));
706  //
707  // Function pointers for ni_quadraprobe.h
708  //
709  functionList->niRsrcLogDump = reinterpret_cast<decltype(ni_rsrc_log_dump)*>(dlsym(lib,"ni_rsrc_log_dump"));
710 
711  }
712 };
713 
714 
715 #endif // _NETINTLIBXCODERAPI_H_
716 
_ni_ppu_config
Definition: ni_device_api.h:1429
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:230
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:12103
_NETINT_LIBXCODER_API_FUNCTION_LIST::niStrncpy
PNISTRNCPY niStrncpy
Definition: ni_libxcoder_dynamic_loading.h:306
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:12141
PNICREATEEVENT
ni_event_handle_t(LIB_API * PNICREATEEVENT)(void)
Definition: ni_libxcoder_dynamic_loading.h:141
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncWriteFromYuvBuffer
PNIENCWRITEFROMYUVBUFFER niEncWriteFromYuvBuffer
Definition: ni_libxcoder_dynamic_loading.h:287
PNISETLTRINTERVAL
ni_retcode_t(LIB_API * PNISETLTRINTERVAL)(ni_session_context_t *p_ctx, int32_t ltr_interval)
Definition: ni_libxcoder_dynamic_loading.h:219
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:11600
ni_pthread_mutex_unlock
int ni_pthread_mutex_unlock(ni_pthread_mutex_t *mutex)
thread mutex unlock
Definition: ni_util.c:4712
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:263
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:4239
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCustomPacketBufferAlloc
PNICUSTOMPACKETBUFFERALLOC niCustomPacketBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:394
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigCrf
PNIRECONFIGCRF niReconfigCrf
Definition: ni_libxcoder_dynamic_loading.h:460
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:4806
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:4230
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:9024
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:752
PNIPTHREADJOIN
int(LIB_API * PNIPTHREADJOIN)(ni_pthread_t thread, void **value_ptr)
Definition: ni_libxcoder_dynamic_loading.h:122
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:5824
ni_strerror
ni_retcode_t ni_strerror(char *dest, size_t dmax, int errnum)
Definition: ni_util.c:656
PNIDEVICEOPEN2
ni_device_handle_t(LIB_API * PNIDEVICEOPEN2)(const char *dev, ni_device_mode_t mode)
Definition: ni_libxcoder_dynamic_loading.h:146
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:218
_ni_p2p_sgl_t
Definition: ni_defs.h:417
_NETINT_LIBXCODER_API_FUNCTION_LIST::niHwframeBufferRecycle
PNIHWFRAMEBUFFERRECYCLE niHwframeBufferRecycle
Definition: ni_libxcoder_dynamic_loading.h:414
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionUpdateFramepool
PNIDEVICESESSIONUPDATEFRAMEPOOL niDeviceSessionUpdateFramepool
Definition: ni_libxcoder_dynamic_loading.h:464
_ni_network_data
Definition: ni_device_api.h:1377
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadMutexUnlock
PNIPTHREADMUTEXUNLOCK niPthreadMutexUnlock
Definition: ni_libxcoder_dynamic_loading.h:338
_NETINT_LIBXCODER_API_FUNCTION_LIST::niStrcpy
PNISTRCPY niStrcpy
Definition: ni_libxcoder_dynamic_loading.h:305
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderSetInputFrameFormat
PNIENCODERSETINPUTFRAMEFORMAT niEncoderSetInputFrameFormat
Definition: ni_libxcoder_dynamic_loading.h:442
_NETINT_LIBXCODER_API_FUNCTION_LIST::niForceIdrFrameType
PNIFORCEIDRFRAMETYPE niForceIdrFrameType
Definition: ni_libxcoder_dynamic_loading.h:429
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRemoveEmulationPreventBytes
PNIREMOVEEMULATIONPREVENTBYTES niRemoveEmulationPreventBytes
Definition: ni_libxcoder_dynamic_loading.h:300
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryNvmeStatus
PNIQUERYNVMESTATUS niQueryNvmeStatus
Definition: ni_libxcoder_dynamic_loading.h:452
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:2243
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:229
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:9915
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAllocHwenc
PNIFRAMEBUFFERALLOCHWENC niFrameBufferAllocHwenc
Definition: ni_libxcoder_dynamic_loading.h:413
ni_pix_fmt_t
ni_pix_fmt_t
Definition: ni_device_api.h:264
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderFrameBufferAlloc
PNIENCODERFRAMEBUFFERALLOC niEncoderFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:384
_NETINT_LIBXCODER_API_FUNCTION_LIST::niNetworkConvertTensorToData
PNINETWORKCONVERTTENSORTODATA niNetworkConvertTensorToData
Definition: ni_libxcoder_dynamic_loading.h:319
ni_strncat
ni_retcode_t ni_strncat(char *dest, size_t dmax, const char *src, size_t slen)
Definition: ni_util.c:807
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:100
_NETINT_LIBXCODER_API_FUNCTION_LIST::niNetworkLayerConvertTensor
PNINETWORKLAYERCONVERTTENSOR niNetworkLayerConvertTensor
Definition: ni_libxcoder_dynamic_loading.h:318
PNIRETRIEVEXCODERGOP
int(LIB_API * PNIRETRIEVEXCODERGOP)(char xcoderGop[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
Definition: ni_libxcoder_dynamic_loading.h:115
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderFrameBufferFree
PNIDECODERFRAMEBUFFERFREE niDecoderFrameBufferFree
Definition: ni_libxcoder_dynamic_loading.h:391
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:3725
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:69
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:193
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:255
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:210
ni_device_open2
ni_device_handle_t ni_device_open2(const char *p_dev, ni_device_mode_t mode)
Open device and return device device_handle if successful.
Definition: ni_device_api.c:521
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:169
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:248
PNIFORCEIDRFRAMETYPE
ni_retcode_t(LIB_API * PNIFORCEIDRFRAMETYPE)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:217
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:3561
PNIDECODERFRAMEBUFFERPOOLRETURNBUF
void(LIB_API * PNIDECODERFRAMEBUFFERPOOLRETURNBUF)(ni_buf_t *buf, ni_buf_pool_t *p_buffer_pool)
Definition: ni_libxcoder_dynamic_loading.h:177
_NETINT_LIBXCODER_API_FUNCTION_LIST
Definition: ni_libxcoder_dynamic_loading.h:278
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadMutexLock
PNIPTHREADMUTEXLOCK niPthreadMutexLock
Definition: ni_libxcoder_dynamic_loading.h:337
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:4490
PNIPTHREADSIGMASK
int(LIB_API * PNIPTHREADSIGMASK)(int how, const ni_sigset_t *set, ni_sigset_t *oldset)
Definition: ni_libxcoder_dynamic_loading.h:129
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:9448
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadJoin
PNIPTHREADJOIN niPthreadJoin
Definition: ni_libxcoder_dynamic_loading.h:340
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:183
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameNewAuxDataFromRawData
PNIFRAMENEWAUXDATAFROMRAWDATA niFrameNewAuxDataFromRawData
Definition: ni_libxcoder_dynamic_loading.h:399
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:2083
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderFrameBufferUnlock
PNIUPLOADERFRAMEBUFFERUNLOCK niUploaderFrameBufferUnlock
Definition: ni_libxcoder_dynamic_loading.h:439
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderFrameBufferAlloc
PNIDECODERFRAMEBUFFERALLOC niDecoderFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:383
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:2266
_ni_vui_hrd
Definition: ni_device_api.h:668
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryFlFwVersions
PNIQUERYFLFWVERSIONS niQueryFlFwVersions
Definition: ni_libxcoder_dynamic_loading.h:453
_NETINT_LIBXCODER_API_FUNCTION_LIST::niHwframeP2PBufferRecycle
PNIHWFRAMEP2PBUFFERRECYCLE niHwframeP2PBufferRecycle
Definition: ni_libxcoder_dynamic_loading.h:445
ni_device_close
void ni_device_close(ni_device_handle_t device_handle)
Close device and release resources.
Definition: ni_device_api.c:665
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:184
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderInitDefaultParams
PNIDECODERINITDEFAULTPARAMS niDecoderInitDefaultParams
Definition: ni_libxcoder_dynamic_loading.h:404
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:10351
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:11395
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionContextFree
PNIDEVICESESSIONCONTEXTFREE niDeviceSessionContextFree
Definition: ni_libxcoder_dynamic_loading.h:356
PNIGETLIBXCODERAPIVER
char *(LIB_API * PNIGETLIBXCODERAPIVER)(void)
Definition: ni_libxcoder_dynamic_loading.h:105
_ni_scaler_watermark_params_t
Definition: ni_device_api.h:2676
ni_strcpy
ni_retcode_t ni_strcpy(char *dest, size_t dmax, const char *src)
Definition: ni_util.c:453
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:80
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:236
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:10268
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:2452
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:11891
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:8965
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncPrepAuxData
PNIENCPREPAUXDATA niEncPrepAuxData
Definition: ni_libxcoder_dynamic_loading.h:285
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:11690
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:121
_NETINT_LIBXCODER_API_FUNCTION_LIST::niNetworkConvertDataToTensor
PNINETWORKCONVERTDATATOTENSOR niNetworkConvertDataToTensor
Definition: ni_libxcoder_dynamic_loading.h:320
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSprintf
PNISPRINTF niSprintf
Definition: ni_libxcoder_dynamic_loading.h:314
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:3708
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSetLtr
PNISETLTR niSetLtr
Definition: ni_libxcoder_dynamic_loading.h:430
_ni_rc_min_max_qp
Definition: ni_device_api.h:718
PNIFMTFWAPIVERSTR
void(LIB_API * PNIFMTFWAPIVERSTR)(const char ver_str[], char fmt_str[])
Definition: ni_libxcoder_dynamic_loading.h:109
ni_device_type_t
ni_device_type_t
Definition: ni_defs.h:355
PNIAINETWORKLAYERDIMS
uint32_t(LIB_API * PNIAINETWORKLAYERDIMS)(ni_network_layer_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:99
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:2286
PNIPARAMGETKEYVALUE
int(LIB_API * PNIPARAMGETKEYVALUE)(char *p_str, char *key, char *value)
Definition: ni_libxcoder_dynamic_loading.h:113
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:199
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:153
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigIntraprd
PNIRECONFIGINTRAPRD niReconfigIntraprd
Definition: ni_libxcoder_dynamic_loading.h:474
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiFrameBufferAlloc
PNIAIFRAMEBUFFERALLOC niAiFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:425
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetMinFrameDim
PNIGETMINFRAMEDIM niGetMinFrameDim
Definition: ni_libxcoder_dynamic_loading.h:466
PNISETFRAMEREFINVALID
ni_retcode_t(LIB_API * PNISETFRAMEREFINVALID)(ni_session_context_t *p_ctx, int32_t frame_num)
Definition: ni_libxcoder_dynamic_loading.h:220
PNISTRCAT
ni_retcode_t(LIB_API * PNISTRCAT)(char *dest, size_t dmax, const char *src)
Definition: ni_libxcoder_dynamic_loading.h:90
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRsrcLogDump
PNIRSRCLOGDUMP niRsrcLogDump
Definition: ni_libxcoder_dynamic_loading.h:488
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:182
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:3695
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceConfigQos
PNIDEVICECONFIGQOS niDeviceConfigQos
Definition: ni_libxcoder_dynamic_loading.h:379
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:104
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:10466
PNIREMOVEEMULATIONPREVENTBYTES
int(LIB_API * PNIREMOVEEMULATIONPREVENTBYTES)(uint8_t *buf, int size)
Definition: ni_libxcoder_dynamic_loading.h:82
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:241
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSetLtrInterval
PNISETLTRINTERVAL niSetLtrInterval
Definition: ni_libxcoder_dynamic_loading.h:431
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRetrieveXcoderGop
PNIRETRIEVEXCODERGOP niRetrieveXcoderGop
Definition: ni_libxcoder_dynamic_loading.h:333
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceDecSessionSaveHdrs
PNIDEVICEDECSESSIONSAVEHDRS niDeviceDecSessionSaveHdrs
Definition: ni_libxcoder_dynamic_loading.h:371
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:4416
_NETINT_LIBXCODER_API_FUNCTION_LIST::niP2PXfer
PNIP2PXFER niP2PXfer
Definition: ni_libxcoder_dynamic_loading.h:476
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:197
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:154
ni_gettime_ns
uint64_t ni_gettime_ns(void)
Definition: ni_util.c:2622
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:195
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:2624
PNISTRTOK
char *(LIB_API * PNISTRTOK)(char *s, const char *delim, char **saveptr)
Definition: ni_libxcoder_dynamic_loading.h:86
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondBroadcast
PNIPTHREADCONDBROADCAST niPthreadCondBroadcast
Definition: ni_libxcoder_dynamic_loading.h:343
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:238
_ni_frameclone_desc
Definition: ni_device_api.h:1389
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:149
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:228
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:10441
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetCompatFwApiVer
PNIGETCOMPATFWAPIVER niGetCompatFwApiVer
Definition: ni_libxcoder_dynamic_loading.h:325
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderFrameBufferLock
PNIUPLOADERFRAMEBUFFERLOCK niUploaderFrameBufferLock
Definition: ni_libxcoder_dynamic_loading.h:438
PNIAIPACKETBUFFERALLOC
ni_retcode_t(LIB_API * PNIAIPACKETBUFFERALLOC)(ni_packet_t *p_packet, ni_network_data_t *p_network)
Definition: ni_libxcoder_dynamic_loading.h:214
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerDestFrameAlloc
PNISCALERDESTFRAMEALLOC niScalerDestFrameAlloc
Definition: ni_libxcoder_dynamic_loading.h:385
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:4825
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:10660
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:142
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFopen
PNIFOPEN niFopen
Definition: ni_libxcoder_dynamic_loading.h:310
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:4007
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:67
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:9054
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFmtFwApiVerStr
PNIFMTFWAPIVERSTR niFmtFwApiVerStr
Definition: ni_libxcoder_dynamic_loading.h:327
_ni_scaler_input_params_t
Definition: ni_device_api.h:2636
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:307
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:198
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:1784
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:11122
_ni_network_perf_metrics
Definition: ni_device_api.h:1398
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAlloc
PNIFRAMEBUFFERALLOC niFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:381
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionQueryBufferAvail
PNIDEVICESESSIONQUERYBUFFERAVAIL niDeviceSessionQueryBufferAvail
Definition: ni_libxcoder_dynamic_loading.h:483
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:2896
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:204
NETINTLibxcoderAPI::NiLibxcoderAPICreateInstance
static void NiLibxcoderAPICreateInstance(void *lib, NETINT_LIBXCODER_API_FUNCTION_LIST *functionList)
Definition: ni_libxcoder_dynamic_loading.h:499
_NETINT_LIBXCODER_API_FUNCTION_LIST::niExtractCustomSei
PNIEXTRACTCUSTOMSEI niExtractCustomSei
Definition: ni_libxcoder_dynamic_loading.h:288
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetLibxcoderReleaseVer
PNIGETLIBXCODERRELEASEVER niGetLibxcoderReleaseVer
Definition: ni_libxcoder_dynamic_loading.h:329
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:162
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderFrameZerocopyBufferAlloc
PNIENCODERFRAMEZEROCOPYBUFFERALLOC niEncoderFrameZerocopyBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:458
_ni_frame_config
Definition: ni_device_api.h:2912
ni_pic_type_t
ni_pic_type_t
Definition: ni_device_api.h:396
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncPrepReconfDemoData
PNIENCPREPRECONFDEMODATA niEncPrepReconfDemoData
Definition: ni_libxcoder_dynamic_loading.h:470
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionRestart
PNIDEVICESESSIONRESTART niDeviceSessionRestart
Definition: ni_libxcoder_dynamic_loading.h:482
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:4202
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAllocNv
PNIFRAMEBUFFERALLOCNV niFrameBufferAllocNv
Definition: ni_libxcoder_dynamic_loading.h:388
ni_pthread_cond_signal
int ni_pthread_cond_signal(ni_pthread_cond_t *cond)
signal a condition
Definition: ni_util.c:4880
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecPacketParse
PNIDECPACKETPARSE niDecPacketParse
Definition: ni_libxcoder_dynamic_loading.h:289
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameNewAuxData
PNIFRAMENEWAUXDATA niFrameNewAuxData
Definition: ni_libxcoder_dynamic_loading.h:398
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:11829
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigMaxFrameSize
PNIRECONFIGMAXFRAMESIZE niReconfigMaxFrameSize
Definition: ni_libxcoder_dynamic_loading.h:434
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:10007
PNIGOPPARAMSCHECKSET
void(LIB_API * PNIGOPPARAMSCHECKSET)(ni_xcoder_params_t *p_param, char *value)
Definition: ni_libxcoder_dynamic_loading.h:253
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncInsertTimecode
PNIENCINSERTTIMECODE niEncInsertTimecode
Definition: ni_libxcoder_dynamic_loading.h:292
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerSetDrawboxParams
PNISCALERSETDRAWBOXPARAMS niScalerSetDrawboxParams
Definition: ni_libxcoder_dynamic_loading.h:449
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerP2PFrameAcquire
PNISCALERP2PFRAMEACQUIRE niScalerP2PFrameAcquire
Definition: ni_libxcoder_dynamic_loading.h:444
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:10777
PNIDECODERPARAMSSETVALUE
ni_retcode_t(LIB_API * PNIDECODERPARAMSSETVALUE)(ni_xcoder_params_t *p_params, const char *name, char *value)
Definition: ni_libxcoder_dynamic_loading.h:191
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:242
_NETINT_LIBXCODER_API_FUNCTION_LIST::niStrncat
PNISTRNCAT niStrncat
Definition: ni_libxcoder_dynamic_loading.h:309
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigPpuOutput
PNIRECONFIGPPUOUTPUT niReconfigPpuOutput
Definition: ni_libxcoder_dynamic_loading.h:291
_NETINT_LIBXCODER_API_FUNCTION_LIST::niStrtok
PNISTRTOK niStrtok
Definition: ni_libxcoder_dynamic_loading.h:304
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:207
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSetFrameRefInvalid
PNISETFRAMEREFINVALID niSetFrameRefInvalid
Definition: ni_libxcoder_dynamic_loading.h:432
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:4950
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryExtraInfo
PNIQUERYEXTRAINFO niQueryExtraInfo
Definition: ni_libxcoder_dynamic_loading.h:456
_NETINT_LIBXCODER_API_FUNCTION_LIST::niHwframeBufferRecycle2
PNIHWFRAMEBUFFERRECYCLE2 niHwframeBufferRecycle2
Definition: ni_libxcoder_dynamic_loading.h:415
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferFree
PNIFRAMEBUFFERFREE niFrameBufferFree
Definition: ni_libxcoder_dynamic_loading.h:390
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:160
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigMaxFrameSizeRatio
PNIRECONFIGMAXFRAMESIZERATIO niReconfigMaxFrameSizeRatio
Definition: ni_libxcoder_dynamic_loading.h:473
_NETINT_LIBXCODER_API_FUNCTION_LIST::niStrerror
PNISTRERROR niStrerror
Definition: ni_libxcoder_dynamic_loading.h:307
PNIPTHREADMUTEXINIT
int(LIB_API * PNIPTHREADMUTEXINIT)(ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:117
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:9402
PNIFRAMEWIPEAUXDATA
void(LIB_API * PNIFRAMEWIPEAUXDATA)(ni_frame_t *frame)
Definition: ni_libxcoder_dynamic_loading.h:187
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:159
PNIPTHREADCONDINIT
int(LIB_API * PNIPTHREADCONDINIT)(ni_pthread_cond_t *cond, const ni_pthread_condattr_t *attr)
Definition: ni_libxcoder_dynamic_loading.h:123
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiConfigNetworkBinary
PNIAICONFIGNETWORKBINARY niAiConfigNetworkBinary
Definition: ni_libxcoder_dynamic_loading.h:423
PNIGOPPARAMSCHECK
bool(LIB_API * PNIGOPPARAMSCHECK)(ni_xcoder_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:254
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:237
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:226
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:185
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:75
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:2976
_ni_network_layer_params_t
Definition: ni_device_api.h:1340
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:10717
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondDestroy
PNIPTHREADCONDDESTROY niPthreadCondDestroy
Definition: ni_libxcoder_dynamic_loading.h:342
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:249
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigCrf2
PNIRECONFIGCRF2 niReconfigCrf2
Definition: ni_libxcoder_dynamic_loading.h:461
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:4862
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondSignal
PNIPTHREADCONDSIGNAL niPthreadCondSignal
Definition: ni_libxcoder_dynamic_loading.h:345
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:4302
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:3497
_ni_scaler_params_t
Definition: ni_device_api.h:2658
_NETINT_LIBXCODER_API_FUNCTION_LIST::niP2PRecv
PNIP2PRECV niP2PRecv
Definition: ni_libxcoder_dynamic_loading.h:481
ni_retcode_t
ni_retcode_t
Definition: ni_defs.h:439
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:9350
PNIPTHREADMUTEXDESTROY
int(LIB_API * PNIPTHREADMUTEXDESTROY)(ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:118
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRetrieveDecoderParams
PNIRETRIEVEDECODERPARAMS niRetrieveDecoderParams
Definition: ni_libxcoder_dynamic_loading.h:334
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderSessionReadStreamHeader
PNIENCODERSESSIONREADSTREAMHEADER niEncoderSessionReadStreamHeader
Definition: ni_libxcoder_dynamic_loading.h:446
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:79
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:11183
PNIGETTIMENS
uint64_t(LIB_API * PNIGETTIMENS)(void)
Definition: ni_libxcoder_dynamic_loading.h:84
ni_pthread_join
int ni_pthread_join(ni_pthread_t thread, void **value_ptr)
join with a terminated thread
Definition: ni_util.c:4777
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:857
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:3877
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceConfigNamespaceNum
PNIDEVICECONFIGNAMESPACENUM niDeviceConfigNamespaceNum
Definition: ni_libxcoder_dynamic_loading.h:378
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:4169
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderInitDefaultParams
PNIENCODERINITDEFAULTPARAMS niEncoderInitDefaultParams
Definition: ni_libxcoder_dynamic_loading.h:403
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:232
PNIPTHREADCONDWAIT
int(LIB_API * PNIPTHREADCONDWAIT)(ni_pthread_cond_t *cond, ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:126
PNIRECONFIGCRF
ni_retcode_t(LIB_API * PNIRECONFIGCRF)(ni_session_context_t *p_ctx, int32_t crf)
Definition: ni_libxcoder_dynamic_loading.h:246
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:243
PNIPTHREADCONDDESTROY
int(LIB_API * PNIPTHREADCONDDESTROY)(ni_pthread_cond_t *cond)
Definition: ni_libxcoder_dynamic_loading.h:124
PNIPACKETBUFFERFREE
ni_retcode_t(LIB_API * PNIPACKETBUFFERFREE)(ni_packet_t *ppacket)
Definition: ni_libxcoder_dynamic_loading.h:180
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionContextInit
PNIDEVICESESSIONCONTEXTINIT niDeviceSessionContextInit
Definition: ni_libxcoder_dynamic_loading.h:354
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:3462
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameFreeAuxData
PNIFRAMEFREEAUXDATA niFrameFreeAuxData
Definition: ni_libxcoder_dynamic_loading.h:401
PNIPTHREADMUTEXLOCK
int(LIB_API * PNIPTHREADMUTEXLOCK)(ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:119
PNIDEVICECLOSE
void(LIB_API * PNIDEVICECLOSE)(ni_device_handle_t dev)
Definition: ni_libxcoder_dynamic_loading.h:147
ni_quadraprobe.h
Quadraprobe definitions.
_NETINT_LIBXCODER_API_FUNCTION_LIST::niLocaltime
PNILOCALTIME niLocaltime
Definition: ni_libxcoder_dynamic_loading.h:311
PNIPTHREADCONDSIGNAL
int(LIB_API * PNIPTHREADCONDSIGNAL)(ni_pthread_cond_t *cond)
Definition: ni_libxcoder_dynamic_loading.h:127
PNISTRCPY
ni_retcode_t(LIB_API * PNISTRCPY)(char *dest, size_t dmax, const char *src)
Definition: ni_libxcoder_dynamic_loading.h:87
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerSetWatermarkParams
PNISCALERSETWATERMARKPARAMS niScalerSetWatermarkParams
Definition: ni_libxcoder_dynamic_loading.h:450
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:2200
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPacketBufferFree
PNIPACKETBUFFERFREE niPacketBufferFree
Definition: ni_libxcoder_dynamic_loading.h:395
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigSliceArg
PNIRECONFIGSLICEARG niReconfigSliceArg
Definition: ni_libxcoder_dynamic_loading.h:480
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCopyHwYuv420P
PNICOPYHWYUV420P niCopyHwYuv420P
Definition: ni_libxcoder_dynamic_loading.h:297
PNIRECONFIGBITRATE
ni_retcode_t(LIB_API * PNIRECONFIGBITRATE)(ni_session_context_t *p_ctx, int32_t bitrate)
Definition: ni_libxcoder_dynamic_loading.h:215
ni_get_libxcoder_api_ver
char * ni_get_libxcoder_api_ver(void)
Get libxcoder API version.
Definition: ni_util.c:4226
_ni_long_term_ref
Definition: ni_device_api.h:697
PNIAINETWORKLAYERSIZE
uint32_t(LIB_API * PNIAINETWORKLAYERSIZE)(ni_network_layer_params_t *p_param)
Definition: ni_libxcoder_dynamic_loading.h:98
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionHwup
PNIDEVICESESSIONHWUP niDeviceSessionHwup
Definition: ni_libxcoder_dynamic_loading.h:412
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:10961
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:11999
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionOpen
PNIDEVICESESSIONOPEN niDeviceSessionOpen
Definition: ni_libxcoder_dynamic_loading.h:368
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecRetrieveAuxData
PNIDECRETRIEVEAUXDATA niDecRetrieveAuxData
Definition: ni_libxcoder_dynamic_loading.h:284
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:2749
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:239
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderP2PTestLoad
PNIUPLOADERP2PTESTLOAD niUploaderP2PTestLoad
Definition: ni_libxcoder_dynamic_loading.h:441
_NETINT_LIBXCODER_API_FUNCTION_LIST::niSetDemoRoiMap
PNISETDEMOROIMAP niSetDemoRoiMap
Definition: ni_libxcoder_dynamic_loading.h:469
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:10138
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:2163
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCreateEvent
PNICREATEEVENT niCreateEvent
Definition: ni_libxcoder_dynamic_loading.h:357
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceDecSessionFlush
PNIDEVICEDECSESSIONFLUSH niDeviceDecSessionFlush
Definition: ni_libxcoder_dynamic_loading.h:372
PNILOCALTIME
struct tm *LIB_API * PNILOCALTIME(struct tm *dest, const time_t *src)
Definition: ni_libxcoder_dynamic_loading.h:93
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceCapabilityQuery
PNIDEVICECAPABILITYQUERY niDeviceCapabilityQuery
Definition: ni_libxcoder_dynamic_loading.h:365
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:7550
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:68
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:104
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionHwdl
PNIDEVICESESSIONHWDL niDeviceSessionHwdl
Definition: ni_libxcoder_dynamic_loading.h:411
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:188
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:157
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncCopyAuxData
PNIENCCOPYAUXDATA niEncCopyAuxData
Definition: ni_libxcoder_dynamic_loading.h:286
PNIFRAMEBUFFERFREE
ni_retcode_t(LIB_API * PNIFRAMEBUFFERFREE)(ni_frame_t *pframe)
Definition: ni_libxcoder_dynamic_loading.h:175
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderParamsSetValue
PNIENCODERPARAMSSETVALUE niEncoderParamsSetValue
Definition: ni_libxcoder_dynamic_loading.h:405
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderFrameZerocopyCheck
PNIUPLOADERFRAMEZEROCOPYCHECK niUploaderFrameZerocopyCheck
Definition: ni_libxcoder_dynamic_loading.h:459
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameGetAuxData
PNIFRAMEGETAUXDATA niFrameGetAuxData
Definition: ni_libxcoder_dynamic_loading.h:400
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:8716
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiPacketBufferAlloc
PNIAIPACKETBUFFERALLOC niAiPacketBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:426
PNIDECODERFRAMEBUFFERFREE
ni_retcode_t(LIB_API * PNIDECODERFRAMEBUFFERFREE)(ni_frame_t *pframe)
Definition: ni_libxcoder_dynamic_loading.h:176
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderSetFrameFormat
PNIUPLOADERSETFRAMEFORMAT niUploaderSetFrameFormat
Definition: ni_libxcoder_dynamic_loading.h:443
_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:12999
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionContextClear
PNIDEVICESESSIONCONTEXTCLEAR niDeviceSessionContextClear
Definition: ni_libxcoder_dynamic_loading.h:355
PNIPACKETBUFFERALLOC
ni_retcode_t(LIB_API * PNIPACKETBUFFERALLOC)(ni_packet_t *ppacket, int packet_size)
Definition: ni_libxcoder_dynamic_loading.h:178
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:4311
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:4209
_NETINT_LIBXCODER_API_FUNCTION_LIST::niInsertEmulationPreventBytes
PNIINSERTEMULATIONPREVENTBYTES niInsertEmulationPreventBytes
Definition: ni_libxcoder_dynamic_loading.h:299
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetHwYuv420PDim
PNIGETHWYUV420PDIM niGetHwYuv420PDim
Definition: ni_libxcoder_dynamic_loading.h:296
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceAllocFrame
PNIDEVICEALLOCFRAME niDeviceAllocFrame
Definition: ni_libxcoder_dynamic_loading.h:417
ni_calculate_sha256
void ni_calculate_sha256(const uint8_t aui8Data[], size_t ui32DataLength, uint8_t aui8Hash[])
Definition: ni_util.c:4176
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:71
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetFrameDim
PNIGETFRAMEDIM niGetFrameDim
Definition: ni_libxcoder_dynamic_loading.h:465
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:3519
ni_dec_reconfig_ppu_params
ni_retcode_t ni_dec_reconfig_ppu_params(ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, ni_ppu_config_t *p_ppu_config)
Send a p_config command to reconfigure decoding ppu params.
Definition: ni_device_api.c:13392
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:3882
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:76
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:4900
_ni_scaler_drawbox_params_t
Definition: ni_device_api.h:2667
PNIDEVICEDECSESSIONFLUSH
ni_retcode_t(LIB_API * PNIDEVICEDECSESSIONFLUSH)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:156
ni_fscanf
int ni_fscanf(FILE *stream, const char *fmt,...)
Definition: ni_util.c:1021
PNICALCULATETOTALFRAMESIZE
int(LIB_API * PNICALCULATETOTALFRAMESIZE)(const ni_session_context_t *p_upl_ctx, const int linesize[])
Definition: ni_libxcoder_dynamic_loading.h:261
PNISTRNCAT
ni_retcode_t(LIB_API * PNISTRNCAT)(char *dest, size_t dmax, const char *src, size_t slen)
Definition: ni_libxcoder_dynamic_loading.h:91
PNIDEVICECONFIGQOS
ni_retcode_t(LIB_API * PNIDEVICECONFIGQOS)(ni_device_handle_t device_handle, uint32_t mode)
Definition: ni_libxcoder_dynamic_loading.h:163
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:348
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:9134
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:97
PNIINSERTEMULATIONPREVENTBYTES
int(LIB_API * PNIINSERTEMULATIONPREVENTBYTES)(uint8_t *buf, int size)
Definition: ni_libxcoder_dynamic_loading.h:81
_ni_buf_t
Definition: ni_device_api.h:1286
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:70
ni_pthread_mutex_lock
int ni_pthread_mutex_lock(ni_pthread_mutex_t *mutex)
thread mutex lock
Definition: ni_util.c:4686
PNIDEVICESESSIONUPDATEFRAMEPOOL
ni_retcode_t(LIB_API * PNIDEVICESESSIONUPDATEFRAMEPOOL)(ni_session_context_t *p_ctx, uint32_t pool_size)
Definition: ni_libxcoder_dynamic_loading.h:250
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:164
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:174
ni_ai_network_layer_dims
uint32_t ni_ai_network_layer_dims(ni_network_layer_params_t *p_param)
Definition: ni_util.c:3995
PNIUSLEEP
void(LIB_API * PNIUSLEEP)(int64_t usec)
Definition: ni_libxcoder_dynamic_loading.h:85
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryTemperature
PNIQUERYTEMPERATURE niQueryTemperature
Definition: ni_libxcoder_dynamic_loading.h:455
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:11761
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:5064
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:3064
_ni_session_data_io
Definition: ni_device_api.h:3034
PNIRECONFIGFRAMERATE
ni_retcode_t(LIB_API * PNIRECONFIGFRAMERATE)(ni_session_context_t *p_ctx, ni_framerate_t *framerate)
Definition: ni_libxcoder_dynamic_loading.h:221
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:12332
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:64
PNIRECONFIGCRF2
ni_retcode_t(LIB_API * PNIRECONFIGCRF2)(ni_session_context_t *p_ctx, float crf)
Definition: ni_libxcoder_dynamic_loading.h:247
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCmpFwApiVer
PNICMPFWAPIVER niCmpFwApiVer
Definition: ni_libxcoder_dynamic_loading.h:328
ni_device_open
NI_DEPRECATED 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:374
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:202
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:77
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGettimeofday
PNIGETTIMEOFDAY niGettimeofday
Definition: ni_libxcoder_dynamic_loading.h:301
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:2484
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:9605
PNISTRERROR
ni_retcode_t(LIB_API * PNISTRERROR)(char *dest, size_t dmax, int errnum)
Definition: ni_libxcoder_dynamic_loading.h:89
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderFrameZerocopyCheck
PNIENCODERFRAMEZEROCOPYCHECK niEncoderFrameZerocopyCheck
Definition: ni_libxcoder_dynamic_loading.h:457
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:11362
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:231
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadMutexDestroy
PNIPTHREADMUTEXDESTROY niPthreadMutexDestroy
Definition: ni_libxcoder_dynamic_loading.h:336
PNIPTHREADMUTEXUNLOCK
int(LIB_API * PNIPTHREADMUTEXUNLOCK)(ni_pthread_mutex_t *mutex)
Definition: ni_libxcoder_dynamic_loading.h:120
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGopParamsCheck
PNIGOPPARAMSCHECK niGopParamsCheck
Definition: ni_libxcoder_dynamic_loading.h:472
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:260
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:10228
PNIRECONFIGINTRAPRD
ni_retcode_t(LIB_API * PNIRECONFIGINTRAPRD)(ni_session_context_t *p_ctx, int32_t intra_period)
Definition: ni_libxcoder_dynamic_loading.h:256
PNIDEVICESESSIONACQUIRE
int(LIB_API * PNIDEVICESESSIONACQUIRE)(ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:224
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:4253
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:4048
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:10054
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:4272
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderParamsSetValue
PNIDECODERPARAMSSETVALUE niDecoderParamsSetValue
Definition: ni_libxcoder_dynamic_loading.h:406
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:11539
ni_usleep
void ni_usleep(int64_t usec)
Definition: ni_util.c:362
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:11767
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceMultiConfigFrame
PNIDEVICEMULTICONFIGFRAME niDeviceMultiConfigFrame
Definition: ni_libxcoder_dynamic_loading.h:421
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetRcTxt
PNIGETRCTXT niGetRcTxt
Definition: ni_libxcoder_dynamic_loading.h:330
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAllocDl
PNIFRAMEBUFFERALLOCDL niFrameBufferAllocDl
Definition: ni_libxcoder_dynamic_loading.h:382
PNIRETRIEVEDECODERPARAMS
int(LIB_API * PNIRETRIEVEDECODERPARAMS)(char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
Definition: ni_libxcoder_dynamic_loading.h:116
ni_localtime
struct tm * ni_localtime(struct tm *dest, const time_t *src)
Definition: ni_util.c:1003
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:3043
ni_device_mode_t
enum _ni_device_mode ni_device_mode_t
Device access mode enumeration.
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:4100
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderGopParamsSetValue
PNIENCODERGOPPARAMSSETVALUE niEncoderGopParamsSetValue
Definition: ni_libxcoder_dynamic_loading.h:407
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:3345
PNIVSPRINTF
int(LIB_API * PNIVSPRINTF)(char *dest, const size_t dmax, const char *fmt, va_list args)
Definition: ni_libxcoder_dynamic_loading.h:95
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecReconfigPpuParams
PNIDECRECONFIGPPUPARAMS niDecReconfigPpuParams
Definition: ni_libxcoder_dynamic_loading.h:484
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigMinMaxQp
PNIRECONFIGMINMAXQP niReconfigMinMaxQp
Definition: ni_libxcoder_dynamic_loading.h:435
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadMutexInit
PNIPTHREADMUTEXINIT niPthreadMutexInit
Definition: ni_libxcoder_dynamic_loading.h:335
PNIFRAMEFREEAUXDATA
void(LIB_API * PNIFRAMEFREEAUXDATA)(ni_frame_t *frame, ni_aux_data_type_t type)
Definition: ni_libxcoder_dynamic_loading.h:186
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondInit
PNIPTHREADCONDINIT niPthreadCondInit
Definition: ni_libxcoder_dynamic_loading.h:341
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:370
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUsleep
PNIUSLEEP niUsleep
Definition: ni_libxcoder_dynamic_loading.h:303
PNIGETCOMPATFWAPIVER
char *(LIB_API * PNIGETCOMPATFWAPIVER)(void)
Definition: ni_libxcoder_dynamic_loading.h:107
_ni_packet
Definition: ni_device_api.h:2993
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiSessionReadMetrics
PNIAISESSIONREADMETRICS niAiSessionReadMetrics
Definition: ni_libxcoder_dynamic_loading.h:451
_ni_buf_pool_t
Definition: ni_device_api.h:1296
_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:4843
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:262
PNIRSRCLOGDUMP
int(LIB_API * PNIRSRCLOGDUMP)(const char *outdir, bool core_reset_log)
Definition: ni_libxcoder_dynamic_loading.h:269
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:11651
PNIGETDMABUFFILEDESCRIPTOR
int32_t(LIB_API * PNIGETDMABUFFILEDESCRIPTOR)(const ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:235
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:245
PNIDEVICESESSIONCONTEXTCLEAR
void(LIB_API * PNIDEVICESESSIONCONTEXTCLEAR)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:139
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigVbvValue
PNIRECONFIGVBVVALUE niReconfigVbvValue
Definition: ni_libxcoder_dynamic_loading.h:463
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:2716
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:155
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:173
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:167
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionCopy
PNIDEVICESESSIONCOPY niDeviceSessionCopy
Definition: ni_libxcoder_dynamic_loading.h:408
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:11451
PNIDEVICESESSIONCONTEXTALLOCINIT
ni_session_context_t *(LIB_API * PNIDEVICESESSIONCONTEXTALLOCINIT)(void)
Definition: ni_libxcoder_dynamic_loading.h:137
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:4750
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:8870
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:2221
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCloseEvent
PNICLOSEEVENT niCloseEvent
Definition: ni_libxcoder_dynamic_loading.h:358
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:9233
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:4729
PNIFSCANF
int(LIB_API * PNIFSCANF)(FILE *stream, const char *fmt,...)
Definition: ni_libxcoder_dynamic_loading.h:94
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionQuery
PNIDEVICESESSIONQUERY niDeviceSessionQuery
Definition: ni_libxcoder_dynamic_loading.h:375
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:208
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionAcquire
PNIDEVICESESSIONACQUIRE niDeviceSessionAcquire
Definition: ni_libxcoder_dynamic_loading.h:436
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:101
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:13177
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:4383
_ni_session_context
Definition: ni_device_api.h:1435
PNIPOSIXMEMALIGN
int(LIB_API * PNIPOSIXMEMALIGN)(void **memptr, size_t alignment, size_t size)
Definition: ni_libxcoder_dynamic_loading.h:130
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiNetworkLayerSize
PNIAINETWORKLAYERSIZE niAiNetworkLayerSize
Definition: ni_libxcoder_dynamic_loading.h:316
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:2123
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:1932
_NETINT_LIBXCODER_API_FUNCTION_LIST::niRetrieveXcoderParams
PNIRETRIEVEXCODERPARAMS niRetrieveXcoderParams
Definition: ni_libxcoder_dynamic_loading.h:332
_niFrameSurface1
Definition: ni_device_api.h:2897
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionSequenceChange
PNIDEVICESESSIONSEQUENCECHANGE niDeviceSessionSequenceChange
Definition: ni_libxcoder_dynamic_loading.h:448
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:8752
NI_MAX_NUM_DATA_POINTERS
#define NI_MAX_NUM_DATA_POINTERS
Definition: ni_defs.h:244
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:13300
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:158
PNIRECONFIGVUI
ni_retcode_t(LIB_API * PNIRECONFIGVUI)(ni_session_context_t *p_ctx, ni_vui_hrd_t *vui)
Definition: ni_libxcoder_dynamic_loading.h:216
ni_pthread_mutex_init
int ni_pthread_mutex_init(ni_pthread_mutex_t *mutex)
initialize a mutex
Definition: ni_util.c:4630
_ni_frame
Definition: ni_device_api.h:2698
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:4934
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:876
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:136
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:3541
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:205
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:227
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigVui
PNIRECONFIGVUI niReconfigVui
Definition: ni_libxcoder_dynamic_loading.h:428
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:3872
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:244
ni_strtok
char * ni_strtok(char *s, const char *delim, char **saveptr)
Definition: ni_util.c:424
PNIHWFRAMEBUFFERRECYCLE
ni_retcode_t(LIB_API * PNIHWFRAMEBUFFERRECYCLE)(niFrameSurface1_t *surface, int32_t device_handle)
Definition: ni_libxcoder_dynamic_loading.h:200
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:8368
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDecoderFrameBufferPoolReturnBuf
PNIDECODERFRAMEBUFFERPOOLRETURNBUF niDecoderFrameBufferPoolReturnBuf
Definition: ni_libxcoder_dynamic_loading.h:392
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:10535
_ni_xcoder_params
Definition: ni_device_api.h:2814
_NETINT_LIBXCODER_API_FUNCTION_LIST::niShouldSendSeiWithFrame
PNISHOULDSENDSEIWITHFRAME niShouldSendSeiWithFrame
Definition: ni_libxcoder_dynamic_loading.h:283
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:252
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:1729
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:258
PNIGETLIBXCODERRELEASEVER
char *(LIB_API * PNIGETLIBXCODERRELEASEVER)(void)
Definition: ni_libxcoder_dynamic_loading.h:111
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCopyHwDescriptors
PNICOPYHWDESCRIPTORS niCopyHwDescriptors
Definition: ni_libxcoder_dynamic_loading.h:322
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceCapabilityQuery2
PNIDEVICECAPABILITYQUERY2 niDeviceCapabilityQuery2
Definition: ni_libxcoder_dynamic_loading.h:367
PNIDEVICESESSIONACQUIREFORREAD
int(LIB_API * PNIDEVICESESSIONACQUIREFORREAD)(ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:225
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:2805
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerSetParams
PNISCALERSETPARAMS niScalerSetParams
Definition: ni_libxcoder_dynamic_loading.h:416
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:166
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:165
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceOpen
PNIDEVICEOPEN niDeviceOpen
Definition: ni_libxcoder_dynamic_loading.h:360
PNIHWFRAMEBUFFERRECYCLE2
ni_retcode_t(LIB_API * PNIHWFRAMEBUFFERRECYCLE2)(niFrameSurface1_t *surface)
Definition: ni_libxcoder_dynamic_loading.h:201
_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:138
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:10827
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:10304
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:3022
_ni_device_capability
device capability type
Definition: ni_device_api.h:1167
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCopyFrameData
PNICOPYFRAMEDATA niCopyFrameData
Definition: ni_libxcoder_dynamic_loading.h:467
ni_sprintf
int ni_sprintf(char *dest, size_t dmax, const char *fmt,...)
Definition: ni_util.c:1063
ni_posix_memalign
int ni_posix_memalign(void **memptr, size_t alignment, size_t size)
Allocate aligned memory.
Definition: ni_util.c:202
PNIHWFRAMEP2PBUFFERRECYCLE
ni_retcode_t(LIB_API * PNIHWFRAMEP2PBUFFERRECYCLE)(ni_frame_t *p_frame)
Definition: ni_libxcoder_dynamic_loading.h:233
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:102
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:9300
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:209
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionInitFramepool
PNIDEVICESESSIONINITFRAMEPOOL niDeviceSessionInitFramepool
Definition: ni_libxcoder_dynamic_loading.h:409
_ni_load_query
Definition: ni_device_api.h:1210
PNIGETTIMEOFDAY
int32_t(LIB_API * PNIGETTIMEOFDAY)(struct timeval *p_tp, void *p_tzp)
Definition: ni_libxcoder_dynamic_loading.h:83
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:9498
PNIRETRIEVEXCODERPARAMS
int(LIB_API * PNIRETRIEVEXCODERPARAMS)(char xcoderParams[], ni_xcoder_params_t *params, ni_session_context_t *ctx)
Definition: ni_libxcoder_dynamic_loading.h:114
PNIPACKETBUFFERFREEAV1
ni_retcode_t(LIB_API * PNIPACKETBUFFERFREEAV1)(ni_packet_t *ppacket)
Definition: ni_libxcoder_dynamic_loading.h:181
PNISPRINTF
int(LIB_API * PNISPRINTF)(char *dest, size_t dmax, const char *fmt,...)
Definition: ni_libxcoder_dynamic_loading.h:96
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:10413
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceAllocDstFrame
PNIDEVICEALLOCDSTFRAME niDeviceAllocDstFrame
Definition: ni_libxcoder_dynamic_loading.h:418
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:189
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiConfigHvsplus
PNIAICONFIGHVSPLUS niAiConfigHvsplus
Definition: ni_libxcoder_dynamic_loading.h:424
PNICMPFWAPIVER
int(LIB_API * PNICMPFWAPIVER)(const char ver1[], const char ver2[])
Definition: ni_libxcoder_dynamic_loading.h:110
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:192
ni_strncpy
ni_retcode_t ni_strncpy(char *dest, size_t dmax, const char *src, size_t slen)
Definition: ni_util.c:518
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:11056
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceCloneHwframe
PNIDEVICECLONEHWFRAME niDeviceCloneHwframe
Definition: ni_libxcoder_dynamic_loading.h:419
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:2943
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:152
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:11944
PNIFOPEN
ni_retcode_t(LIB_API * PNIFOPEN)(FILE **fp, const char *filename, const char *mode)
Definition: ni_libxcoder_dynamic_loading.h:92
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:223
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCalculateSha256
PNICALCULATESHA256 niCalculateSha256
Definition: ni_libxcoder_dynamic_loading.h:321
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:3325
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionQueryDetail
PNIDEVICESESSIONQUERYDETAIL niDeviceSessionQueryDetail
Definition: ni_libxcoder_dynamic_loading.h:376
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:240
PNIAIFRAMEBUFFERALLOC
ni_retcode_t(LIB_API * PNIAIFRAMEBUFFERALLOC)(ni_frame_t *p_frame, ni_network_data_t *p_network)
Definition: ni_libxcoder_dynamic_loading.h:213
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:279
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameWipeAuxData
PNIFRAMEWIPEAUXDATA niFrameWipeAuxData
Definition: ni_libxcoder_dynamic_loading.h:402
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:3215
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:2664
_ni_instance_mgr_detail_status
Definition: ni_device_api.h:1244
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionWrite
PNIDEVICESESSIONWRITE niDeviceSessionWrite
Definition: ni_libxcoder_dynamic_loading.h:373
_ni_timecode
Definition: ni_av_codec.h:448
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionAcquireForRead
PNIDEVICESESSIONACQUIREFORREAD niDeviceSessionAcquireForRead
Definition: ni_libxcoder_dynamic_loading.h:437
_ni_device_extra_info
Definition: ni_rsrc_api.h:242
_NETINT_LIBXCODER_API_FUNCTION_LIST::niVsprintf
PNIVSPRINTF niVsprintf
Definition: ni_libxcoder_dynamic_loading.h:313
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:3971
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:10610
_NETINT_LIBXCODER_API_FUNCTION_LIST::niUploaderP2PTestSend
PNIUPLOADERP2PTESTSEND niUploaderP2PTestSend
Definition: ni_libxcoder_dynamic_loading.h:440
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncFrameBufferAlloc
PNIENCFRAMEBUFFERALLOC niEncFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:468
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:206
PNIDECRECONFIGPPUPARAMS
ni_retcode_t(LIB_API * PNIDECRECONFIGPPUPARAMS)(ni_session_context_t *p_session_ctx, ni_xcoder_params_t *p_param, ni_ppu_config_t *p_ppu_config)
Definition: ni_libxcoder_dynamic_loading.h:265
PNIDECRETRIEVEAUXDATA
void(LIB_API * PNIDECRETRIEVEAUXDATA)(ni_frame_t *frame)
Definition: ni_libxcoder_dynamic_loading.h:63
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerInputFrameAlloc
PNISCALERINPUTFRAMEALLOC niScalerInputFrameAlloc
Definition: ni_libxcoder_dynamic_loading.h:386
PNIDEVICESESSIONINITFRAMEPOOL
int(LIB_API * PNIDEVICESESSIONINITFRAMEPOOL)(ni_session_context_t *p_ctx, uint32_t pool_size, uint32_t pool)
Definition: ni_libxcoder_dynamic_loading.h:194
ni_pthread_mutex_destroy
int ni_pthread_mutex_destroy(ni_pthread_mutex_t *mutex)
destory a mutex
Definition: ni_util.c:4668
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:8649
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:13253
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:168
ni_get_libxcoder_release_ver
char * ni_get_libxcoder_release_ver(void)
Get libxcoder SW release version.
Definition: ni_util.c:4338
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:13134
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCopyYuv444PTo420P
PNICOPYYUV444PTO420P niCopyYuv444PTo420P
Definition: ni_libxcoder_dynamic_loading.h:298
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigFramerate
PNIRECONFIGFRAMERATE niReconfigFramerate
Definition: ni_libxcoder_dynamic_loading.h:433
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionReadHwdesc
PNIDEVICESESSIONREADHWDESC niDeviceSessionReadHwdesc
Definition: ni_libxcoder_dynamic_loading.h:410
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPacketBufferFreeAv1
PNIPACKETBUFFERFREEAV1 niPacketBufferFreeAv1
Definition: ni_libxcoder_dynamic_loading.h:396
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceConfigQosOp
PNIDEVICECONFIGQOSOP niDeviceConfigQosOp
Definition: ni_libxcoder_dynamic_loading.h:380
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:170
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:1831
ni_gettimeofday
int32_t ni_gettimeofday(struct timeval *p_tp, void *p_tzp)
Get time for logs with microsecond timestamps.
Definition: ni_util.c:143
ni_device_api.h
Public definitions for operating NETINT video processing devices for video processing.
NETINTLibxcoderAPI
Definition: ni_libxcoder_dynamic_loading.h:491
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionClose
PNIDEVICESESSIONCLOSE niDeviceSessionClose
Definition: ni_libxcoder_dynamic_loading.h:369
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:8840
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:151
PNIRECONFIGSLICEARG
ni_retcode_t(LIB_API * PNIRECONFIGSLICEARG)(ni_session_context_t *p_ctx, int16_t sliceArg)
Definition: ni_libxcoder_dynamic_loading.h:262
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondWait
PNIPTHREADCONDWAIT niPthreadCondWait
Definition: ni_libxcoder_dynamic_loading.h:344
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:4359
ni_strcat
ni_retcode_t ni_strcat(char *dest, size_t dmax, const char *src)
Definition: ni_util.c:689
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFscanf
PNIFSCANF niFscanf
Definition: ni_libxcoder_dynamic_loading.h:312
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:65
_ni_instance_mgr_detail_status_v1
Definition: ni_device_api.h:1266
LIB_API
#define LIB_API
Definition: ni_libxcoder_dynamic_loading.h:54
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCondTimedwait
PNIPTHREADCONDTIMEDWAIT niPthreadCondTimedwait
Definition: ni_libxcoder_dynamic_loading.h:346
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceConfigFrame
PNIDEVICECONFIGFRAME niDeviceConfigFrame
Definition: ni_libxcoder_dynamic_loading.h:420
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:62
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionQueryDetailV1
PNIDEVICESESSIONQUERYDETAILV1 niDeviceSessionQueryDetailV1
Definition: ni_libxcoder_dynamic_loading.h:377
_NETINT_LIBXCODER_API_FUNCTION_LIST::niExpandFrame
PNIEXPANDFRAME niExpandFrame
Definition: ni_libxcoder_dynamic_loading.h:290
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:3862
_NETINT_LIBXCODER_API_FUNCTION_LIST::niScalerFramePoolAlloc
PNISCALERFRAMEPOOLALLOC niScalerFramePoolAlloc
Definition: ni_libxcoder_dynamic_loading.h:387
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:813
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:347
_NETINT_LIBXCODER_API_FUNCTION_LIST::niStrcat
PNISTRCAT niStrcat
Definition: ni_libxcoder_dynamic_loading.h:308
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionContextAllocInit
PNIDEVICESESSIONCONTEXTALLOCINIT niDeviceSessionContextAllocInit
Definition: ni_libxcoder_dynamic_loading.h:353
PNICUSTOMPACKETBUFFERALLOC
ni_retcode_t(LIB_API * PNICUSTOMPACKETBUFFERALLOC)(void *p_buffer, ni_packet_t *p_packet, int buffer_size)
Definition: ni_libxcoder_dynamic_loading.h:179
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:8563
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:8396
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:3268
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:211
PNIRECONFIGMAXFRAMESIZE
ni_retcode_t(LIB_API * PNIRECONFIGMAXFRAMESIZE)(ni_session_context_t *p_ctx, int32_t max_frame_size)
Definition: ni_libxcoder_dynamic_loading.h:222
PNISTRNCPY
ni_retcode_t(LIB_API * PNISTRNCPY)(char *dest, size_t dmax, const char *src, size_t slen)
Definition: ni_libxcoder_dynamic_loading.h:88
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:2556
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:264
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:78
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:11286
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPacketCopy
PNIPACKETCOPY niPacketCopy
Definition: ni_libxcoder_dynamic_loading.h:397
PNIDEVICESESSIONCONTEXTFREE
void(LIB_API * PNIDEVICESESSIONCONTEXTFREE)(ni_session_context_t *p_ctx)
Definition: ni_libxcoder_dynamic_loading.h:140
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:1675
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:190
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:171
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:144
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:162
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:3192
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGopParamsCheckSet
PNIGOPPARAMSCHECKSET niGopParamsCheckSet
Definition: ni_libxcoder_dynamic_loading.h:471
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:212
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:8917
ni_ai_network_layer_size
uint32_t ni_ai_network_layer_size(ni_network_layer_params_t *p_param)
Definition: ni_util.c:3989
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:161
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:4560
PNIENCODERSESSIONREADSTREAMHEADER
int(LIB_API * PNIENCODERSESSIONREADSTREAMHEADER)(ni_session_context_t *p_ctx, ni_session_data_io_t *p_data)
Definition: ni_libxcoder_dynamic_loading.h:234
ni_vsprintf
int ni_vsprintf(char *dest, const size_t dmax, const char *fmt, va_list args)
Definition: ni_util.c:1040
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceAllocAndGetFirmwareLogs
PNIDEVICEALLOCANDGETFIRMWARELOGS niDeviceAllocAndGetFirmwareLogs
Definition: ni_libxcoder_dynamic_loading.h:462
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:13209
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceClose
PNIDEVICECLOSE niDeviceClose
Definition: ni_libxcoder_dynamic_loading.h:363
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPacketBufferAlloc
PNIPACKETBUFFERALLOC niPacketBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:393
_ni_aux_data
Definition: ni_device_api.h:632
_ni_framerate
Definition: ni_device_api.h:709
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:11231
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:3858
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:3102
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:172
PNISETDEMOROIMAP
ni_retcode_t(LIB_API * PNISETDEMOROIMAP)(ni_session_context_t *p_enc_ctx)
Definition: ni_libxcoder_dynamic_loading.h:251
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiNetworkLayerDims
PNIAINETWORKLAYERDIMS niAiNetworkLayerDims
Definition: ni_libxcoder_dynamic_loading.h:317
_NETINT_LIBXCODER_API_FUNCTION_LIST::niCalculateTotalFrameSize
PNICALCULATETOTALFRAMESIZE niCalculateTotalFrameSize
Definition: ni_libxcoder_dynamic_loading.h:479
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGettimeNs
PNIGETTIMENS niGettimeNs
Definition: ni_libxcoder_dynamic_loading.h:302
_NETINT_LIBXCODER_API_FUNCTION_LIST::niReconfigBitrate
PNIRECONFIGBITRATE niReconfigBitrate
Definition: ni_libxcoder_dynamic_loading.h:427
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:1542
_NETINT_LIBXCODER_API_FUNCTION_LIST::niPthreadCreate
PNIPTHREADCREATE niPthreadCreate
Definition: ni_libxcoder_dynamic_loading.h:339
_NETINT_LIBXCODER_API_FUNCTION_LIST::niEncoderSwFrameBufferAlloc
PNIENCODERSWFRAMEBUFFERALLOC niEncoderSwFrameBufferAlloc
Definition: ni_libxcoder_dynamic_loading.h:389
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:196
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetDmaBufFileDescriptor
PNIGETDMABUFFILEDESCRIPTOR niGetDmaBufFileDescriptor
Definition: ni_libxcoder_dynamic_loading.h:447
ni_fopen
ni_retcode_t ni_fopen(FILE **fp, const char *filename, const char *mode)
Definition: ni_util.c:983
_NETINT_LIBXCODER_API_FUNCTION_LIST::niP2PSend
PNIP2PSEND niP2PSend
Definition: ni_libxcoder_dynamic_loading.h:478
_NETINT_LIBXCODER_API_FUNCTION_LIST::niParamGetKeyValue
PNIPARAMGETKEYVALUE niParamGetKeyValue
Definition: ni_libxcoder_dynamic_loading.h:331
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceSessionRead
PNIDEVICESESSIONREAD niDeviceSessionRead
Definition: ni_libxcoder_dynamic_loading.h:374
_NETINT_LIBXCODER_API_FUNCTION_LIST::niQueryVfNsId
PNIQUERYVFNSID niQueryVfNsId
Definition: ni_libxcoder_dynamic_loading.h:454
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:66
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:10385
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:203
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:3808
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:10900
PNIPTHREADCONDBROADCAST
int(LIB_API * PNIPTHREADCONDBROADCAST)(ni_pthread_cond_t *cond)
Definition: ni_libxcoder_dynamic_loading.h:125
PNICALCULATESHA256
void(LIB_API * PNICALCULATESHA256)(const uint8_t aui8Data[], size_t ui32DataLength, uint8_t aui8Hash[])
Definition: ni_libxcoder_dynamic_loading.h:103
_NETINT_LIBXCODER_API_FUNCTION_LIST::niDeviceOpen2
PNIDEVICEOPEN2 niDeviceOpen2
Definition: ni_libxcoder_dynamic_loading.h:362
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:128
_NETINT_LIBXCODER_API_FUNCTION_LIST::niAiErrnoToStr
PNIAIERRNOTOSTR niAiErrnoToStr
Definition: ni_libxcoder_dynamic_loading.h:349
_NETINT_LIBXCODER_API_FUNCTION_LIST::niFrameBufferAllocPixfmt
PNIFRAMEBUFFERALLOCPIXFMT niFrameBufferAllocPixfmt
Definition: ni_libxcoder_dynamic_loading.h:422
_NETINT_LIBXCODER_API_FUNCTION_LIST::niGetLibxcoderApiVer
PNIGETLIBXCODERAPIVER niGetLibxcoderApiVer
Definition: ni_libxcoder_dynamic_loading.h:323
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:4279
_NETINT_LIBXCODER_API_FUNCTION_LIST::niNetworkLayerConvertOutput
PNINETWORKLAYERCONVERTOUTPUT niNetworkLayerConvertOutput
Definition: ni_libxcoder_dynamic_loading.h:315