libxcoder  5.2.0
ni_device_api.h File Reference

Public definitions for operating NETINT video processing devices for video processing. More...

#include "ni_defs.h"
#include "ni_rsrc_api.h"

Go to the source code of this file.

Data Structures

struct  _ni_sei_header
 
struct  _ni_rational
 
struct  _ni_aux_data
 
struct  _ni_region_of_interest
 
struct  _ni_category_classify
 
struct  _ni_vui_hrd
 
struct  _ni_long_term_ref
 
struct  _ni_framerate
 
struct  _ni_rc_min_max_qp
 
struct  _ni_dec_win
 
struct  _ni_extended_dec_metadata
 
struct  _ni_dec_h265_vui_param
 decoded payload format of H.265 VUI More...
 
struct  _ni_dec_h264_vui_param
 decoded payload format of H.264 VUI More...
 
union  _ni_enc_hevc_roi_custom_map
 encoder HEVC ROI custom map (1 CTU = 64bits) More...
 
union  _ni_enc_avc_roi_custom_map
 encoder AVC ROI custom map (1 MB = 8bits) More...
 
union  _ni_enc_quad_roi_custom_map
 encoder AVC ROI custom map (1 MB = 8bits) More...
 
struct  _ni_encoder_change_params_t
 This is a data structure for encoding parameters that have changed. More...
 
struct  _ni_dec_mastering_display_colour_volume_bytes
 decoded payload format of HDR SEI mastering display colour volume More...
 
struct  _ni_content_light_level_info_bytes
 payload format of HDR SEI content light level info More...
 
struct  _ni_enc_mastering_display_colour_volume
 encoded payload format of HDR SEI mastering display colour volume More...
 
struct  _ni_pkt_info
 
struct  _ni_custom_sei
 custom sei payload passthrough More...
 
struct  _ni_custom_sei_set
 
struct  _ni_hw_capability
 hardware capability type More...
 
struct  _ni_device_capability
 device capability type More...
 
struct  _ni_context_query
 
struct  _ni_load_query
 
struct  _ni_overall_load_query
 
struct  _ni_instance_mgr_detail_status
 
struct  _ni_instance_mgr_detail_status_append
 
struct  _ni_instance_mgr_detail_status_v1
 
struct  _ni_thread_arg_struct_t
 
struct  _ni_buf_t
 
struct  _ni_buf_pool_t
 
struct  _ni_queue_node_t
 
struct  _ni_queue_buffer_pool_t
 
struct  _ni_queue_t
 
struct  _ni_timestamp_table_t
 
struct  _ni_network_layer_params_t
 
struct  _ni_network_layer_info
 
struct  _ni_network_layer_offset
 
struct  _ni_network_data
 
struct  _ni_frameclone_desc
 
struct  _ni_network_perf_metrics
 
struct  _ni_input_frame
 
struct  _ni_session_context
 
struct  _ni_split_context_t
 
struct  _ni_gop_rps
 
struct  _ni_gop_params
 
struct  _ni_custom_gop_params
 
struct  _ni_encoder_cfg_params
 
struct  _ni_decoder_input_params_t
 
struct  _ni_scaler_input_params_t
 
struct  _ni_scaler_params_t
 
struct  _ni_scaler_drawbox_params_t
 
struct  _ni_scaler_watermark_params_t
 
struct  _ni_scaler_multi_drawbox_params_t
 
struct  _ni_scaler_multi_watermark_params_t
 
struct  _ni_frame
 
struct  _ni_xcoder_params
 
struct  _niFrameSurface1
 
struct  _ni_frame_config
 
struct  _ni_packet
 
struct  _ni_session_data_io
 

Macros

#define NI_BEST_MODEL_LOAD_STR   "bestmodelload"
 
#define NI_BEST_REAL_LOAD_STR   "bestload"
 
#define NI_DATA_FORMAT_VIDEO_PACKET   0
 
#define NI_DATA_FORMAT_YUV_FRAME   1
 
#define NI_DATA_FORMAT_Y_FRAME   2
 
#define NI_DATA_FORMAT_CB_FRAME   3
 
#define NI_DATA_FORMAT_CR_FRAME   4
 
#define NI_NOPTS_VALUE   ((int64_t)UINT64_C(0x8000000000000000))
 
#define AV_CODEC_DEFAULT_BITRATE   200 * 1000
 
#define NI_MAX_GOP_NUM   8
 
#define NI_MAX_REF_PIC   4
 
#define NI_MAX_VUI_SIZE   NI_DEPRECATED_MACRO 32
 
#define NI_MAX_TX_RETRIES   1000
 
#define NI_MAX_ENCODER_QUERY_RETRIES   5000
 
#define NI_MAX_SUPPORT_DRAWBOX_NUM   5
 
#define NI_MAX_SUPPORT_WATERMARK_NUM   6
 
#define NI_NUM_OF_PIXELS_360P   (640*360)
 
#define NI_NUM_OF_PIXELS_720P   (1280*720)
 
#define NI_NUM_OF_PIXELS_1080P   (1920*1080)
 
#define NI_NUM_OF_PIXELS_1440P   (2560*1440)
 
#define NI_NUM_OF_PIXELS_4K   (3840*2160)
 
#define NI_NUM_OF_PIXELS_4K_2   (4096*2160)
 
#define NI_NUM_OF_PIXELS_8K   (7680*4320)
 
#define NI_MIN_RESOLUTION_WIDTH_JPEG   48
 
#define NI_MIN_RESOLUTION_HEIGHT_JPEG   48
 
#define NI_MIN_RESOLUTION_WIDTH   144
 
#define NI_MIN_RESOLUTION_HEIGHT   144
 
#define NI_ENC_MIN_RESOLUTION_WIDTH   144
 
#define NI_ENC_MIN_RESOLUTION_HEIGHT   128
 
#define NI_MIN_RESOLUTION_WIDTH_SCALER   16
 
#define NI_MIN_RESOLUTION_HEIGHT_SCALER   16
 
#define NI_MAX_RESOLUTION_WIDTH   8192
 
#define NI_MAX_RESOLUTION_HEIGHT   8192
 
#define NI_MAX_RESOLUTION_AREA   8192*8192
 
#define NI_MAX_RESOLUTION_RGBA_WIDTH   7040
 
#define NI_MAX_RESOLUTION_RGBA_HEIGHT   7040
 
#define NI_MAX_RESOLUTION_LINESIZE   (NI_MAX_RESOLUTION_WIDTH*2)
 
#define NI_FRAME_LITTLE_ENDIAN   0
 
#define NI_FRAME_BIG_ENDIAN   1
 
#define NI_INVALID_SESSION_ID   0xFFFF
 
#define NI_MAX_BITRATE   1000000000
 
#define NI_MIN_BITRATE   10000
 
#define NI_MAX_FRAMERATE   65535
 
#define NI_MAX_ASPECTRATIO   65535
 
#define NI_MAX_WIDTH   8192
 
#define NI_MIN_WIDTH   144
 
#define NI_MAX_HEIGHT   8192
 
#define NI_MIN_HEIGHT   128
 
#define NI_2PASS_ENCODE_MIN_WIDTH   ((272 + 31) / 32 * 32)
 
#define NI_2PASS_ENCODE_MIN_HEIGHT   256
 
#define NI_MULTICORE_ENCODE_MIN_WIDTH   256
 
#define NI_MULTICORE_ENCODE_MIN_HEIGHT   256
 
#define NI_PARAM_MAX_WIDTH   8192
 
#define NI_PARAM_MIN_WIDTH   32
 
#define NI_PARAM_MAX_HEIGHT   8192
 
#define NI_PARAM_MIN_HEIGHT   32
 
#define NI_PARAM_JPEG_MIN_WIDTH   48
 
#define NI_PARAM_JPEG_MIN_HEIGHT   48
 
#define NI_PARAM_AV1_MIN_WIDTH   144
 
#define NI_PARAM_AV1_MIN_HEIGHT   128
 
#define NI_PARAM_AV1_MAX_WIDTH   4096
 
#define NI_PARAM_AV1_MAX_HEIGHT   4352
 
#define NI_PARAM_AV1_MAX_AREA   (4096 * 2304)
 
#define NI_PARAM_AV1_ALIGN_WIDTH_HEIGHT   8
 
#define NI_MAX_GOP_SIZE   8
 
#define NI_MIN_GOP_SIZE   1
 
#define NI_MAX_GOP_PRESET_IDX   15
 
#define NI_MIN_GOP_PRESET_IDX   -1
 
#define NI_MAX_DECODING_REFRESH_TYPE   2
 
#define NI_MIN_DECODING_REFRESH_TYPE   0
 
#define NI_MAX_CU_SIZE_MODE   2
 
#define NI_MIN_CU_SIZE_MODE   0
 
#define NI_DEFAULT_CU_SIZE_MODE   7
 
#define NI_MAX_DYNAMIC_MERGE   1
 
#define NI_MIN_DYNAMIC_MERGE   0
 
#define NI_MAX_USE_RECOMMENDED_ENC_PARAMS   3
 
#define NI_MIN_USE_RECOMMENDED_ENC_PARAMS   0
 
#define NI_MAX_MAX_NUM_MERGE   3
 
#define NI_MIN_MAX_NUM_MERGE   0
 
#define NI_MAX_INTRA_QP   51
 
#define NI_MIN_INTRA_QP   -1
 
#define NI_MAX_INTRA_QP_DELTA   51
 
#define NI_MIN_INTRA_QP_DELTA   -51
 
#define NI_DEFAULT_INTRA_QP   22
 
#define NI_INTRA_QP_RANGE   25
 
#define NI_MIN_QP_DELTA   (-25)
 
#define NI_MAX_QP_DELTA   25
 
#define NI_MAX_QP_INFO   63
 
#define NI_MAX_BIN   1
 
#define NI_MIN_BIN   0
 
#define NI_MAX_NUM_SESSIONS   32
 
#define NI_MIN_FRAME_SIZE   0
 
#define NI_MAX_FRAME_SIZE   (7680*4320*3)
 
#define NI_AV1_INVALID_BUFFER_INDEX   (-1)
 
#define RC_SUCCESS   true
 
#define RC_ERROR   false
 
#define MAX_CHAR_IN_DEVICE_NAME   32
 
#define MAX_NUM_FRAMEPOOL_HWAVFRAME   128
 
#define GC620_NV12   0x104
 
#define GC620_NV21   0x105
 
#define GC620_I420   0x103
 
#define GC620_P010_MSB   0x108
 
#define GC620_I010   0x10A
 
#define GC620_YUYV   0x100
 
#define GC620_UYVY   0x101
 
#define GC620_NV16   0x106
 
#define GC620_RGBA8888   0
 
#define GC620_BGRA8888   4
 
#define GC620_BGRX8888   5
 
#define GC620_ABGR8888   12
 
#define GC620_ARGB8888   15
 
#define GC620_RGB565   3
 
#define GC620_BGR565   11
 
#define GC620_B5G5R5X1   8
 
#define GC620_RGB888_PLANAR   0x10C
 
#define NI_ENABLE_AUD_FOR_GLOBAL_HEADER   2
 
#define NI_MAX_FIFO_CAPACITY   120
 
#define NI_NAMESPACE_MAX_NUM   128
 
#define NI_MAX_SLICE_SIZE   127
 
#define NI_SCALER_FLAG_IO   0x0001 /* 0 = source frame, 1 = destination frame */
 
#define NI_SCALER_FLAG_PC   0x0002 /* 0 = single allocation, 1 = create pool */
 
#define NI_SCALER_FLAG_PA   0x0004 /* 0 = straight alpha, 1 = premultiplied alpha */
 
#define NI_SCALER_FLAG_P2   0x0008 /* 0 = normal allocation, 1 = P2P allocation */
 
#define NI_SCALER_FLAG_FCE   0x0010 /* 0 = no fill color, 1 = fill color enabled */
 
#define NI_SCALER_FLAG_CS   0x0020 /* 0 = BT.709, 1 = BT.2020 */
 
#define NI_SCALER_FLAG_LM   0x0040 /* 0 == no memory acquisition limit, 1 == limit memory acquisition */
 
#define NI_SCALER_FLAG_CMP   0x0800 /* 0 = no compress, 1 = compress*/
 
#define NI_AI_FLAG_IO   0x0001 /* 0 = source frame, 1 = destination frame */
 
#define NI_AI_FLAG_PC   0x0002 /* 0 = single allocation, 1 = create pool */
 
#define NI_AI_FLAG_LM   0x0004 /* 0 == no memory acquisition limit; 1 == limit memory acquisition */
 
#define NI_UPLOADER_FLAG_LM   0x0010 /* 0 == no memory acquisition limit, 1 == limit memory acquisition */
 
#define NI_MAX_KEEP_ALIVE_TIMEOUT   100
 
#define NI_MIN_KEEP_ALIVE_TIMEOUT   1
 
#define NI_DEFAULT_KEEP_ALIVE_TIMEOUT   3
 
#define NI_MIN_CUSTOM_SEI_PASSTHRU   -1
 
#define NI_MAX_CUSTOM_SEI_PASSTHRU   254
 
#define NI_DISABLE_USR_DATA_SEI_PASSTHRU   0
 
#define NI_ENABLE_USR_DATA_SEI_PASSTHRU   1
 
#define NI_INVALID_SVCT_DECODING_LAYER   -1
 
#define NI_EC_POLICY_TOLERANT   1
 
#define NI_EC_POLICY_IGNORE   2
 
#define NI_EC_POLICY_SKIP   3
 
#define NI_EC_POLICY_BEST_EFFORT   4
 
#define NI_EC_POLICY_LIMITED_ERROR   5
 
#define NI_EC_POLICY_BEST_EFFORT_OUT_DC   6
 
#define NI_EC_POLICY_DEFAULT   NI_EC_POLICY_BEST_EFFORT
 
#define NI_EC_ERR_THRESHOLD_DEFAULT   10
 
#define NI_VPU_CEIL(_data, _align)   (((_data)+((_align)-1))&~((_align)-1))
 
#define NI_VPU_ALIGN4(_x)   (((_x)+0x03)&~0x03)
 
#define NI_VPU_ALIGN8(_x)   (((_x)+0x07)&~0x07)
 
#define NI_VPU_ALIGN16(_x)   (((_x)+0x0f)&~0x0f)
 
#define NI_VPU_ALIGN32(_x)   (((_x)+0x1f)&~0x1f)
 
#define NI_VPU_ALIGN64(_x)   (((_x)+0x3f)&~0x3f)
 
#define NI_VPU_ALIGN128(_x)   (((_x)+0x7f)&~0x7f)
 
#define NI_VPU_ALIGN256(_x)   (((_x)+0xff)&~0xff)
 
#define NI_VPU_ALIGN512(_x)   (((_x)+0x1ff)&~0x1ff)
 
#define NI_VPU_ALIGN2048(_x)   (((_x)+0x7ff)&~0x7ff)
 
#define NI_VPU_ALIGN4096(_x)   (((_x)+0xfff)&~0xfff)
 
#define NI_VPU_ALIGN16384(_x)   (((_x)+0x3fff)&~0x3fff)
 
#define NI_ENC_MAX_SEI_BUF_SIZE   NI_VPU_ALIGN64(1024)
 
#define NI_MAX_SEI_DATA   (NI_ENC_MAX_SEI_BUF_SIZE)
 
#define NI_MAX_CUSTOM_SEI_DATA   (8192)
 
#define NI_DEC_MAX_CC_BUF_SIZE   93
 
#define NI_CC_SEI_BYTE0   0xB5
 
#define NI_CC_SEI_BYTE1   0x00
 
#define NI_CC_SEI_BYTE2   0x31
 
#define NI_CC_SEI_BYTE3   0x47
 
#define NI_CC_SEI_BYTE4   0x41
 
#define NI_CC_SEI_BYTE5   0x39
 
#define NI_CC_SEI_BYTE6   0x34
 
#define NI_CC_SEI_BYTE7   0x03
 
#define NI_HDR10P_SEI_BYTE0   0xB5
 
#define NI_HDR10P_SEI_BYTE1   0x00
 
#define NI_HDR10P_SEI_BYTE2   0x3c
 
#define NI_HDR10P_SEI_BYTE3   0x00
 
#define NI_HDR10P_SEI_BYTE4   0x01
 
#define NI_HDR10P_SEI_BYTE5   0x04
 
#define NI_HDR10P_SEI_BYTE6   0x00
 
#define NI_CC_SEI_HDR_HEVC_LEN   18
 
#define NI_HDR10P_SEI_HDR_HEVC_LEN   9
 
#define NI_HDR10P_SEI_HDR_H264_LEN   8
 
#define NI_CC_SEI_HDR_H264_LEN   17
 
#define NI_CC_SEI_TRAILER_LEN   2
 
#define NI_RBSP_TRAILING_BITS_LEN   1
 
#define NI_MAX_NUM_AUX_DATA_PER_FRAME   16
 
#define NI_BITRATE_RECONFIG_FILE_MAX_LINES   50000
 Max number of lines supported for the bitrate reconfig file. More...
 
#define NI_BITRATE_RECONFIG_FILE_MAX_ENTRIES_PER_LINE   10
 
#define NI_CUSTOMIZE_ROI_QPOFFSET_LEVEL   10
 Max number of lines supported for qpoffset level. More...
 
#define NI_CUSTOMIZE_ROI_QP_NUM   64
 Max number of entries per line supported for the qp number. More...
 
#define MOTION_CONSTRAINED_PERFORMANCE_MODE   1
 
#define MOTION_CONSTRAINED_QUALITY_MODE   2
 
#define NI_ENC_GOP_PARAMS_G0_POC_OFFSET   "g0pocOffset"
 
#define NI_ENC_GOP_PARAMS_G0_QP_OFFSET   "g0QpOffset"
 
#define NI_ENC_GOP_PARAMS_G0_TEMPORAL_ID   "g0temporalId"
 
#define NI_ENC_GOP_PARAMS_G0_PIC_TYPE   "g0picType"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PICS   "g0numRefPics"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC0   "g0refPic0"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC0_USED   "g0refPic0Used"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC1   "g0refPic1"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC1_USED   "g0refPic1Used"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC2   "g0refPic2"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC2_USED   "g0refPic2Used"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC3   "g0refPic3"
 
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC3_USED   "g0refPic3Used"
 
#define NI_ENC_GOP_PARAMS_G1_POC_OFFSET   "g1pocOffset"
 
#define NI_ENC_GOP_PARAMS_G1_QP_OFFSET   "g1QpOffset"
 
#define NI_ENC_GOP_PARAMS_G1_TEMPORAL_ID   "g1temporalId"
 
#define NI_ENC_GOP_PARAMS_G1_PIC_TYPE   "g1picType"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PICS   "g1numRefPics"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC0   "g1refPic0"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC0_USED   "g1refPic0Used"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC1   "g1refPic1"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC1_USED   "g1refPic1Used"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC2   "g1refPic2"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC2_USED   "g1refPic2Used"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC3   "g1refPic3"
 
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC3_USED   "g1refPic3Used"
 
#define NI_ENC_GOP_PARAMS_G2_POC_OFFSET   "g2pocOffset"
 
#define NI_ENC_GOP_PARAMS_G2_QP_OFFSET   "g2QpOffset"
 
#define NI_ENC_GOP_PARAMS_G2_TEMPORAL_ID   "g2temporalId"
 
#define NI_ENC_GOP_PARAMS_G2_PIC_TYPE   "g2picType"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PICS   "g2numRefPics"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC0   "g2refPic0"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC0_USED   "g2refPic0Used"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC1   "g2refPic1"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC1_USED   "g2refPic1Used"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC2   "g2refPic2"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC2_USED   "g2refPic2Used"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC3   "g2refPic3"
 
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC3_USED   "g2refPic3Used"
 
#define NI_ENC_GOP_PARAMS_G3_POC_OFFSET   "g3pocOffset"
 
#define NI_ENC_GOP_PARAMS_G3_QP_OFFSET   "g3QpOffset"
 
#define NI_ENC_GOP_PARAMS_G3_TEMPORAL_ID   "g3temporalId"
 
#define NI_ENC_GOP_PARAMS_G3_PIC_TYPE   "g3picType"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PICS   "g3numRefPics"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC0   "g3refPic0"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC0_USED   "g3refPic0Used"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC1   "g3refPic1"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC1_USED   "g3refPic1Used"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC2   "g3refPic2"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC2_USED   "g3refPic2Used"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC3   "g3refPic3"
 
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC3_USED   "g3refPic3Used"
 
#define NI_ENC_GOP_PARAMS_G4_POC_OFFSET   "g4pocOffset"
 
#define NI_ENC_GOP_PARAMS_G4_QP_OFFSET   "g4QpOffset"
 
#define NI_ENC_GOP_PARAMS_G4_TEMPORAL_ID   "g4temporalId"
 
#define NI_ENC_GOP_PARAMS_G4_PIC_TYPE   "g4picType"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PICS   "g4numRefPics"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC0   "g4refPic0"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC0_USED   "g4refPic0Used"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC1   "g4refPic1"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC1_USED   "g4refPic1Used"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC2   "g4refPic2"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC2_USED   "g4refPic2Used"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC3   "g4refPic3"
 
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC3_USED   "g4refPic3Used"
 
#define NI_ENC_GOP_PARAMS_G5_POC_OFFSET   "g5pocOffset"
 
#define NI_ENC_GOP_PARAMS_G5_QP_OFFSET   "g5QpOffset"
 
#define NI_ENC_GOP_PARAMS_G5_TEMPORAL_ID   "g5temporalId"
 
#define NI_ENC_GOP_PARAMS_G5_PIC_TYPE   "g5picType"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PICS   "g5numRefPics"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC0   "g5refPic0"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC0_USED   "g5refPic0Used"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC1   "g5refPic1"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC1_USED   "g5refPic1Used"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC2   "g5refPic2"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC2_USED   "g5refPic2Used"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC3   "g5refPic3"
 
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC3_USED   "g5refPic3Used"
 
#define NI_ENC_GOP_PARAMS_G6_POC_OFFSET   "g6pocOffset"
 
#define NI_ENC_GOP_PARAMS_G6_QP_OFFSET   "g6QpOffset"
 
#define NI_ENC_GOP_PARAMS_G6_TEMPORAL_ID   "g6temporalId"
 
#define NI_ENC_GOP_PARAMS_G6_PIC_TYPE   "g6picType"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PICS   "g6numRefPics"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC0   "g6refPic0"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC0_USED   "g6refPic0Used"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC1   "g6refPic1"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC1_USED   "g6refPic1Used"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC2   "g6refPic2"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC2_USED   "g6refPic2Used"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC3   "g6refPic3"
 
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC3_USED   "g6refPic3Used"
 
#define NI_ENC_GOP_PARAMS_G7_POC_OFFSET   "g7pocOffset"
 
#define NI_ENC_GOP_PARAMS_G7_QP_OFFSET   "g7QpOffset"
 
#define NI_ENC_GOP_PARAMS_G7_TEMPORAL_ID   "g7temporalId"
 
#define NI_ENC_GOP_PARAMS_G7_PIC_TYPE   "g7picType"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PICS   "g7numRefPics"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC0   "g7refPic0"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC0_USED   "g7refPic0Used"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC1   "g7refPic1"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC1_USED   "g7refPic1Used"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC2   "g7refPic2"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC2_USED   "g7refPic2Used"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC3   "g7refPic3"
 
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC3_USED   "g7refPic3Used"
 
#define NI_ENC_GOP_PARAMS_CUSTOM_GOP_SIZE   "customGopSize"
 
#define NI_ENC_REPEAT_HEADERS_FIRST_IDR   0
 
#define NI_ENC_REPEAT_HEADERS_ALL_I_FRAMES   1
 
#define NI_KEEP_ALIVE_TIMEOUT   "keepAliveTimeout"
 
#define NI_ENC_PARAM_BITRATE   "bitrate"
 
#define NI_ENC_PARAM_RECONF_DEMO_MODE   "ReconfDemoMode"
 
#define NI_ENC_PARAM_RECONF_FILE   "ReconfFile"
 
#define NI_ENC_PARAM_ROI_DEMO_MODE   "RoiDemoMode"
 
#define NI_ENC_PARAM_CACHE_ROI   "cacheRoi"
 
#define NI_ENC_PARAM_FORCE_PIC_QP_DEMO_MODE   "ForcePicQpDemoMode"
 
#define NI_ENC_PARAM_GEN_HDRS   "GenHdrs"
 
#define NI_ENC_PARAM_PADDING   "padding"
 
#define NI_ENC_PARAM_FORCE_FRAME_TYPE   "forceFrameType"
 
#define NI_ENC_PARAM_PROFILE   "profile"
 
#define NI_ENC_PARAM_LEVEL   "level"
 
#define NI_ENC_PARAM_HIGH_TIER   "high-tier"
 
#define NI_ENC_PARAM_LOG_LEVEL   "log-level"
 
#define NI_ENC_PARAM_LOG   "log"
 
#define NI_ENC_PARAM_GOP_PRESET_IDX   "gopPresetIdx"
 
#define NI_ENC_PARAM_LOW_DELAY   "lowDelay"
 
#define NI_ENC_PARAM_MIN_FRAMES_DELAY   "minFramesDelay"
 
#define NI_ENC_PARAM_USE_RECOMMENDED_ENC_PARAMS   "useRecommendEncParam"
 
#define NI_ENC_PARAM_USE_LOW_DELAY_POC_TYPE   "useLowDelayPocType"
 
#define NI_ENC_PARAM_CU_SIZE_MODE   "cuSizeMode"
 
#define NI_ENC_PARAM_MAX_NUM_MERGE   "maxNumMerge"
 
#define NI_ENC_PARAM_ENABLE_DYNAMIC_8X8_MERGE   "dynamicMerge8x8Enable"
 
#define NI_ENC_PARAM_ENABLE_DYNAMIC_16X16_MERGE   "dynamicMerge16x16Enable"
 
#define NI_ENC_PARAM_ENABLE_DYNAMIC_32X32_MERGE   "dynamicMerge32x32Enable"
 
#define NI_ENC_PARAM_ENABLE_RATE_CONTROL   "RcEnable"
 
#define NI_ENC_PARAM_ENABLE_CU_LEVEL_RATE_CONTROL   "cuLevelRCEnable"
 
#define NI_ENC_PARAM_ENABLE_HVS_QP   "hvsQPEnable"
 
#define NI_ENC_PARAM_ENABLE_HVS_QP_SCALE   "hvsQpScaleEnable"
 
#define NI_ENC_PARAM_HVS_QP_SCALE   "hvsQpScale"
 
#define NI_ENC_PARAM_MIN_QP   "minQp"
 
#define NI_ENC_PARAM_MAX_QP   "maxQp"
 
#define NI_ENC_PARAM_MAX_DELTA_QP   "maxDeltaQp"
 
#define NI_ENC_PARAM_FORCED_HEADER_ENABLE   "repeatHeaders"
 
#define NI_ENC_PARAM_ROI_ENABLE   "roiEnable"
 
#define NI_ENC_PARAM_CONF_WIN_TOP   "confWinTop"
 
#define NI_ENC_PARAM_CONF_WIN_BOTTOM   "confWinBot"
 
#define NI_ENC_PARAM_CONF_WIN_LEFT   "confWinLeft"
 
#define NI_ENC_PARAM_CONF_WIN_RIGHT   "confWinRight"
 
#define NI_ENC_PARAM_INTRA_PERIOD   "intraPeriod"
 
#define NI_ENC_PARAM_TRANS_RATE   "transRate"
 
#define NI_ENC_PARAM_FRAME_RATE   "frameRate"
 
#define NI_ENC_PARAM_FRAME_RATE_DENOM   "frameRateDenom"
 
#define NI_ENC_PARAM_INTRA_QP   "intraQP"
 
#define NI_ENC_PARAM_DECODING_REFRESH_TYPE   "decodingRefreshType"
 
#define NI_ENC_PARAM_INTRA_REFRESH_RESET   "intraRefreshResetOnForceIDR"
 
#define NI_ENC_PARAM_ENABLE_8X8_TRANSFORM   "transform8x8Enable"
 
#define NI_ENC_PARAM_ENTROPY_CODING_MODE   "entropyCodingMode"
 
#define NI_ENC_PARAM_SLICE_MODE   "sliceMode"
 
#define NI_ENC_PARAM_SLICE_ARG   "sliceArg"
 
#define NI_ENC_PARAM_INTRA_MB_REFRESH_MODE   "intraMbRefreshMode"
 
#define NI_ENC_PARAM_INTRA_MB_REFRESH_ARG   "intraMbRefreshArg"
 
#define NI_ENC_PARAM_INTRA_REFRESH_MODE   "intraRefreshMode"
 
#define NI_ENC_PARAM_INTRA_REFRESH_ARG   "intraRefreshArg"
 
#define NI_ENC_PARAM_ENABLE_MB_LEVEL_RC   "mbLevelRcEnable"
 
#define NI_ENC_PARAM_PREFERRED_TRANSFER_CHARACTERISTICS   "prefTRC"
 
#define NI_ENC_PARAM_RC_INIT_DELAY   "RcInitDelay"
 
#define NI_ENC_PARAM_CBR   "cbr"
 
#define NI_ENC_PARAM_INTRA_REFRESH_MIN_PERIOD   "intraRefreshMinPeriod"
 
#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR   NI_DEPRECATED_MACRO "crf"
 
#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR_FLOAT   "crfFloat"
 
#define NI_ENC_PARAM_RDO_LEVEL   "rdoLevel"
 
#define NI_ENC_PARAM_RDO_QUANT   "EnableRdoQuant"
 
#define NI_ENC_PARAM_MAX_CLL   "maxCLL"
 
#define NI_ENC_PARAM_MASTER_DISPLAY   "masterDisplay"
 
#define NI_ENC_PARAM_LOOK_AHEAD_DEPTH   "lookAheadDepth"
 
#define NI_ENC_PARAM_ENABLE_AUD   "enableAUD"
 
#define NI_ENC_PARAM_CTB_RC_MODE   "ctbRcMode"
 
#define NI_ENC_PARAM_GOP_SIZE   "gopSize"
 
#define NI_ENC_PARAM_GOP_LOW_DELAY   "gopLowdelay"
 
#define NI_ENC_PARAM_GDR_DURATION   "intraRefreshDuration"
 
#define NI_ENC_PARAM_HRD_ENABLE   "hrdEnable"
 
#define NI_ENC_PARAM_DOLBY_VISION_PROFILE   "dolbyVisionProfile"
 
#define NI_ENC_PARAM_VBV_BUFFER_SIZE   "vbvBufferSize"
 
#define NI_ENC_PARAM_VBV_MAXRAE   "vbvMaxRate"
 
#define NI_ENC_PARAM_ENABLE_FILLER   "fillerEnable"
 
#define NI_ENC_PARAM_ENABLE_PIC_SKIP   "picSkip"
 
#define NI_ENC_PARAM_MAX_FRAME_SIZE_LOW_DELAY   NI_DEPRECATED_MACRO "maxFrameSize"
 
#define NI_ENC_PARAM_MAX_FRAME_SIZE_BITS_LOW_DELAY   "maxFrameSize-Bits"
 
#define NI_ENC_PARAM_MAX_FRAME_SIZE_BYTES_LOW_DELAY   "maxFrameSize-Bytes"
 
#define NI_ENC_PARAM_LTR_REF_INTERVAL   "ltrRefInterval"
 
#define NI_ENC_PARAM_LTR_REF_QPOFFSET   "ltrRefQpOffset"
 
#define NI_ENC_PARAM_LTR_FIRST_GAP   "ltrFirstGap"
 
#define NI_ENC_PARAM_LTR_NEXT_INTERVAL   "ltrNextInterval"
 
#define NI_ENC_PARAM_MULTICORE_JOINT_MODE   "multicoreJointMode"
 
#define NI_ENC_PARAM_JPEG_QLEVEL   "qlevel"
 
#define NI_ENC_PARAM_CHROMA_QP_OFFSET   "chromaQpOffset"
 
#define NI_ENC_PARAM_TOL_RC_INTER   "tolCtbRcInter"
 
#define NI_ENC_PARAM_TOL_RC_INTRA   "tolCtbRcIntra"
 
#define NI_ENC_PARAM_BITRATE_WINDOW   "bitrateWindow"
 
#define NI_ENC_INLOOP_DS_RATIO   "inLoopDSRatio"
 
#define NI_ENC_BLOCK_RC_SIZE   "blockRCSize"
 
#define NI_ENC_RC_QP_DELTA_RANGE   "rcQpDeltaRange"
 
#define NI_ENC_CTB_ROW_QP_STEP   "ctbRowQpStep"
 
#define NI_ENC_NEW_RC_ENABLE   "newRcEnable"
 
#define NI_ENC_PARAM_INTRA_QP_DELTA   "intraQpDelta"
 
#define NI_ENC_PARAM_LONG_TERM_REFERENCE_ENABLE   "longTermReferenceEnable"
 
#define NI_ENC_PARAM_LONG_TERM_REFERENCE_COUNT   "longTermReferenceCount"
 
#define NI_ENC_PARAM_LONG_TERM_REFERENCE_INTERVAL   "longTermReferenceInterval"
 
#define NI_ENC_PARAM_SKIP_FRAME_ENABLE   "skipFrameEnable"
 
#define NI_ENC_PARAM_MAX_CONSUTIVE_SKIP_FRAME_NUMBER   "maxConsecutiveSkipFrameNum"
 
#define NI_ENC_PARAM_SKIP_FRAME_INTERVAL   "skipFrameInterVal"
 
#define NI_ENC_PARAM_IFRAME_SIZE_RATIO   "iFrameSizeRatio"
 
#define NI_ENC_PARAM_STILL_IMAGE_DETECT_LEVEL   "stillImageDetectLevel"
 
#define NI_ENC_PARAM_SCENE_CHANG_DETECT_LEVEL   "sceneChangeDetectLevel"
 
#define NI_ENC_PARAM_ENABLE_SMOOTH_CRF   "enableSmoothCRF"
 
#define NI_ENC_PARAM_ENABLE_COMPENSATE_QP   "enableCompensateQp"
 
#define NI_ENC_PARAM_COLOR_PRIMARY   "colorPri"
 
#define NI_ENC_PARAM_COLOR_TRANSFER_CHARACTERISTIC   "colorTrc"
 
#define NI_ENC_PARAM_COLOR_SPACE   "colorSpc"
 
#define NI_ENC_PARAM_SAR_NUM   "sarNum"
 
#define NI_ENC_PARAM_SAR_DENOM   "sarDenom"
 
#define NI_ENC_PARAM_VIDEO_FULL_RANGE_FLAG   "videoFullRangeFlag"
 
#define NI_ENC_PARAM_ENABLE_VFR   "enableVFR"
 
#define NI_ENC_ENABLE_SSIM   "enableSSIM"
 
#define NI_ENC_PARAM_AVCC_HVCC   "avccHvcc"
 
#define NI_ENC_PARAM_AV1_ERROR_RESILIENT_MODE   "av1ErrorResilientMode"
 
#define NI_ENC_PARAM_STATIC_MMAP_THRESHOLD   "staticMmapThreshold"
 
#define NI_ENC_PARAM_TEMPORAL_LAYERS_ENABLE   "temporalLayersEnable"
 
#define NI_ENC_PARAM_ENABLE_AI_ENHANCE   "enableAIEnhance"
 
#define NI_ENC_PARAM_ENABLE_AI_HVSPLUS   "enableHVSPlus"
 
#define NI_ENC_PARAM_ENABLE_2PASS_GOP   "enable2PassGop"
 
#define NI_ENC_PARAM_ZEROCOPY_MODE   "zeroCopyMode"
 
#define NI_ENC_PARAM_AI_ENHANCE_LEVEL   "AIEnhanceLevel"
 
#define NI_ENC_PARAM_HVSPLUS_LEVEL   "HVSPlusLevel"
 
#define NI_ENC_PARAM_CROP_WIDTH   "cropWidth"
 
#define NI_ENC_PARAM_CROP_HEIGHT   "cropHeight"
 
#define NI_ENC_PARAM_HORIZONTAL_OFFSET   "horOffset"
 
#define NI_ENC_PARAM_VERTICAL_OFFSET   "verOffset"
 
#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR_MAX   "crfMax"
 
#define NI_ENC_PARAM_QCOMP   "qcomp"
 
#define NI_ENC_PARAM_NO_MBTREE   "noMbtree"
 
#define NI_ENC_PARAM_NO_HW_MULTIPASS_SUPPORT   "noHWMultiPassSupport"
 
#define NI_ENC_PARAM_CU_TREE_FACTOR   "cuTreeFactor"
 
#define NI_ENC_PARAM_IP_RATIO   "ipRatio"
 
#define NI_ENC_PARAM_ENABLE_IP_RATIO   "enableipRatio"
 
#define NI_ENC_PARAM_PB_RATIO   "pbRatio"
 
#define NI_ENC_PARAM_CPLX_DECAY   "cplxDecay"
 
#define NI_ENC_PARAM_PPS_INIT_QP   "ppsInitQp"
 
#define NI_ENC_PARAM_DDR_PRIORITY_MODE   "ddrPriorityMode"
 
#define NI_ENC_PARAM_BITRATE_MODE   "bitrateMode"
 
#define NI_ENC_PARAM_PASS1_QP   "pass1Qp"
 
#define NI_ENC_PARAM_HVS_BASE_MB_COMPLEXITY   "hvsBaseMbComplexity"
 
#define NI_ENC_PARAM_STATISTIC_OUTPUT_LEVEL   "statisticOutputLevel"
 
#define NI_ENC_PARAM_ENABLE_ALL_SEI_PASSTHRU   "enableAllSeiPassthru"
 
#define NI_ENC_PARAM_CRF_MAX_IFRAME_ENABLE   "crfMaxIframeEnable"
 
#define NI_ENC_PARAM_VBV_MINRATE   "vbvMinRate"
 
#define NI_ENC_PARAM_DISABLE_ADAPTIVE_BUFFERS   "disableAdaptiveBuffers"
 
#define NI_ENC_PARAM_DISABLE_BFRAME_RDOQ   "disableBframeRDOQ"
 
#define NI_ENC_PARAM_FORCE_BFRAME_QPFACTOR   "forceBframeQpfactor"
 
#define NI_ENC_PARAM_TUNE_BFRAME_VISUAL   "tuneBframeVisual"
 
#define NI_ENC_PARAM_ENABLE_ACQUIRE_LIMIT   "enableAcqLimit"
 
#define NI_ENC_PARAM_GET_PSNR_MODE   "getPsnrMode"
 
#define NI_ENC_PARAM_PSNR_INTERVAL   "intervalOfPsnr"
 
#define NI_ENC_PARAM_CUSTOMIZE_ROI_QP_LEVEL   "customizeQpLevel"
 
#define NI_ENC_PARAM_CUSTOMIZE_ROI_QP_MAP   "customizeQpMapFile"
 
#define NI_ENC_PARAM_MOTION_CONSTRAINED_MODE   "motionConstrainedMode"
 
#define NI_ENC_PARAM_ALLOCATE_STRAEGY   "encMemAllocateStrategy"
 
#define NI_ENC_PARAM_SPATIAL_LAYERS   "spatialLayers"
 
#define NI_ENC_PARAM_ENABLE_TIMECODE   "enableTimecode"
 
#define NI_ENC_PARAM_SPATIAL_LAYERS_REF_BASE_LAYER   "spatialLayersRefBaseLayer"
 
#define NI_ENC_PARAM_GET_RECONSTRUCTED_MODE   "getReconstructedMode"
 
#define NI_ENC_PARAM_VBV_BUFFER_REENCODE   "vbvBufferReencode"
 
#define NI_DEC_PARAM_OUT   "out"
 
#define NI_DEC_PARAM_ENABLE_OUT_1   "enableOut1"
 
#define NI_DEC_PARAM_ENABLE_OUT_2   "enableOut2"
 
#define NI_DEC_PARAM_FORCE_8BIT_0   "force8Bit0"
 
#define NI_DEC_PARAM_FORCE_8BIT_1   "force8Bit1"
 
#define NI_DEC_PARAM_FORCE_8BIT_2   "force8Bit2"
 
#define NI_DEC_PARAM_SEMI_PLANAR_0   "semiplanar0"
 
#define NI_DEC_PARAM_SEMI_PLANAR_1   "semiplanar1"
 
#define NI_DEC_PARAM_SEMI_PLANAR_2   "semiplanar2"
 
#define NI_DEC_PARAM_CROP_MODE_0   "cropMode0"
 
#define NI_DEC_PARAM_CROP_MODE_1   "cropMode1"
 
#define NI_DEC_PARAM_CROP_MODE_2   "cropMode2"
 
#define NI_DEC_PARAM_CROP_PARAM_0   "crop0"
 
#define NI_DEC_PARAM_CROP_PARAM_1   "crop1"
 
#define NI_DEC_PARAM_CROP_PARAM_2   "crop2"
 
#define NI_DEC_PARAM_SCALE_0   "scale0"
 
#define NI_DEC_PARAM_SCALE_1   "scale1"
 
#define NI_DEC_PARAM_SCALE_2   "scale2"
 
#define NI_DEC_PARAM_SCALE_0_LONG_SHORT_ADAPT   "scale0LongShortAdapt"
 
#define NI_DEC_PARAM_SCALE_1_LONG_SHORT_ADAPT   "scale1LongShortAdapt"
 
#define NI_DEC_PARAM_SCALE_2_LONG_SHORT_ADAPT   "scale2LongShortAdapt"
 
#define NI_DEC_PARAM_SCALE_0_RES_CEIL   "scale0ResCeil"
 
#define NI_DEC_PARAM_SCALE_1_RES_CEIL   "scale1ResCeil"
 
#define NI_DEC_PARAM_SCALE_2_RES_CEIL   "scale2ResCeil"
 
#define NI_DEC_PARAM_SCALE_0_ROUND   "scale0Round"
 
#define NI_DEC_PARAM_SCALE_1_ROUND   "scale1Round"
 
#define NI_DEC_PARAM_SCALE_2_ROUND   "scale2Round"
 
#define NI_DEC_PARAM_MULTICORE_JOINT_MODE   "multicoreJointMode"
 
#define NI_DEC_PARAM_SAVE_PKT   "savePkt"
 
#define NI_DEC_PARAM_LOW_DELAY   "lowDelay"
 
#define NI_DEC_PARAM_FORCE_LOW_DELAY   "forceLowDelay"
 
#define NI_DEC_PARAM_MIN_PACKETS_DELAY   "minPacketsDelay"
 
#define NI_DEC_PARAM_ENABLE_LOW_DELAY_CHECK   "enableLowDelayCheck"
 
#define NI_DEC_PARAM_ENABLE_USR_DATA_SEI_PASSTHRU   "enableUserDataSeiPassthru"
 
#define NI_DEC_PARAM_ENABLE_CUSTOM_SEI_PASSTHRU   "customSeiPassthru"
 
#define NI_DEC_PARAM_SVC_T_DECODING_LAYER   "svctDecodingLayer"
 
#define NI_DEC_PARAM_DDR_PRIORITY_MODE   "ddrPriorityMode"
 
#define NI_DEC_PARAM_EC_POLICY   "ecPolicy"
 
#define NI_DEC_PARAM_ENABLE_ADVANCED_EC   "enableAdvancedEc"
 
#define NI_DEC_PARAM_ERROR_THRESHOLD   "ecErrThreshold"
 
#define NI_DEC_PARAM_ENABLE_PPU_SCALE_ADAPT   "enablePpuScaleAdapt"
 
#define NI_DEC_PARAM_ENABLE_PPU_SCALE_LIMIT   "enablePpuScaleLimit"
 
#define NI_DEC_PARAM_MAX_EXTRA_HW_FRAME_CNT   "maxExtraHwFrameCnt"
 
#define NI_DEC_PARAM_SKIP_PTS_GUESS   "skipPtsGuess"
 
#define NI_DEC_PARAM_PKT_PTS_UNCHANGE   "pktPtsUnchange"
 
#define NI_DEC_PARAM_ENABLE_ALL_SEI_PASSTHRU   "enableAllSeiPassthru"
 
#define NI_DEC_PARAM_ENABLE_FOLLOW_IFRAME   "enableFollowIFrame"
 
#define NI_DEC_PARAM_DISABLE_ADAPTIVE_BUFFERS   "disableAdaptiveBuffers"
 
#define NI_DEC_PARAM_SURVIVE_STREAM_ERR   "surviveStreamErr"
 
#define NI_DEC_PARAM_REDUCE_DPB_DELAY   "reduceDpbDelay"
 
#define NI_DEC_PARAM_SKIP_EXTRA_HEADERS   "skipExtraHeaders"
 
#define NI_XCODER_PRESET_NAMES_ARRAY_LEN   3
 
#define NI_XCODER_LOG_NAMES_ARRAY_LEN   7
 
#define NI_XCODER_PRESET_NAME_DEFAULT   "default"
 
#define NI_XCODER_PRESET_NAME_CUSTOM   "custom"
 
#define NI_XCODER_LOG_NAME_NONE   "none"
 
#define NI_XCODER_LOG_NAME_ERROR   "error"
 
#define NI_XCODER_LOG_NAME_WARN   "warning"
 
#define NI_XCODER_LOG_NAME_INFO   "info"
 
#define NI_XCODER_LOG_NAME_DEBUG   "debug"
 
#define NI_XCODER_LOG_NAME_FULL   "full"
 

Typedefs

typedef enum ni_qos_modes ni_qos_modes_t
 
typedef enum ni_qos_codes ni_qos_codes_t
 
typedef struct _ni_sei_header ni_sei_header_t
 
typedef enum _ni_frame_pool_type ni_frame_pool_type_t
 Frame pool type. More...
 
typedef enum _ni_frame_aux_data_type ni_aux_data_type_t
 
typedef struct _ni_rational ni_rational_t
 
typedef struct _ni_aux_data ni_aux_data_t
 
typedef struct _ni_region_of_interest ni_region_of_interest_t
 
typedef struct _ni_category_classify ni_category_classify_t
 
typedef struct _ni_vui_hrd ni_vui_hrd_t
 
typedef struct _ni_long_term_ref ni_long_term_ref_t
 
typedef struct _ni_framerate ni_framerate_t
 
typedef struct _ni_rc_min_max_qp ni_rc_min_max_qp
 
typedef struct _ni_dec_win ni_dec_win_t
 
typedef struct _ni_extended_dec_metadata ni_extended_dec_metadata_t
 
typedef struct _ni_dec_h265_vui_param ni_dec_h265_vui_param_t
 decoded payload format of H.265 VUI More...
 
typedef struct _ni_dec_h264_vui_param ni_dec_h264_vui_param_t
 decoded payload format of H.264 VUI More...
 
typedef union _ni_enc_hevc_roi_custom_map ni_enc_hevc_roi_custom_map_t
 encoder HEVC ROI custom map (1 CTU = 64bits) More...
 
typedef union _ni_enc_avc_roi_custom_map ni_enc_avc_roi_custom_map_t
 encoder AVC ROI custom map (1 MB = 8bits) More...
 
typedef union _ni_enc_quad_roi_custom_map ni_enc_quad_roi_custom_map
 encoder AVC ROI custom map (1 MB = 8bits) More...
 
typedef enum _ni_codec_format ni_codec_format_t
 This is an enumeration for supported codec formats. More...
 
typedef enum _ni_pixel_planar_format ni_pixel_planar_format
 
typedef enum _ni_dec_crop_mode ni_dec_crop_mode
 
typedef enum ni_codec_hw_actions ni_codec_hw_actions_t
 This is an enumeration for hw actions. More...
 
typedef enum _ni_param_change_flags ni_param_change_flags_t
 This is an enumeration for encoder parameter change. More...
 
typedef struct _ni_encoder_change_params_t ni_encoder_change_params_t
 This is a data structure for encoding parameters that have changed. More...
 
typedef struct _ni_dec_mastering_display_colour_volume_bytes ni_dec_mastering_display_colour_volume_bytes_t
 decoded payload format of HDR SEI mastering display colour volume More...
 
typedef struct _ni_content_light_level_info_bytes ni_content_light_level_info_bytes_t
 payload format of HDR SEI content light level info More...
 
typedef struct _ni_enc_mastering_display_colour_volume ni_enc_mastering_display_colour_volume_t
 encoded payload format of HDR SEI mastering display colour volume More...
 
typedef struct _ni_pkt_info ni_pkt_info
 
typedef enum _ni_custom_sei_location ni_custom_sei_location_t
 This is an enumeration for illustrating the custom SEI locations. More...
 
typedef struct _ni_custom_sei ni_custom_sei_t
 custom sei payload passthrough More...
 
typedef struct _ni_custom_sei_set ni_custom_sei_set_t
 
typedef struct _ni_hw_capability ni_hw_capability_t
 hardware capability type More...
 
typedef struct _ni_device_capability ni_device_capability_t
 device capability type More...
 
typedef enum _ni_session_run_state ni_session_run_state_t
 Session running state type. More...
 
typedef struct _ni_context_query ni_context_query_t
 
typedef struct _ni_load_query ni_load_query_t
 
typedef struct _ni_overall_load_query ni_overall_load_query_t
 
typedef struct _ni_instance_mgr_detail_status ni_instance_mgr_detail_status_t
 
typedef struct _ni_instance_mgr_detail_status_append ni_instance_mgr_detail_status_append_t
 
typedef struct _ni_instance_mgr_detail_status_v1 ni_instance_mgr_detail_status_v1_t
 
typedef struct _ni_thread_arg_struct_t ni_thread_arg_struct_t
 
typedef struct _ni_buf_t ni_buf_t
 
typedef struct _ni_buf_pool_t ni_buf_pool_t
 
typedef struct _ni_queue_node_t ni_queue_node_t
 
typedef struct _ni_queue_buffer_pool_t ni_queue_buffer_pool_t
 
typedef struct _ni_queue_t ni_queue_t
 
typedef struct _ni_timestamp_table_t ni_timestamp_table_t
 
typedef struct _ni_network_layer_params_t ni_network_layer_params_t
 
typedef struct _ni_network_layer_info ni_network_layer_info_t
 
typedef struct _ni_network_layer_offset ni_network_layer_offset_t
 
typedef struct _ni_network_data ni_network_data_t
 
typedef struct _ni_frameclone_desc ni_frameclone_desc_t
 
typedef struct _ni_network_perf_metrics ni_network_perf_metrics_t
 
typedef struct _ni_input_frame ni_input_frame
 
typedef struct _ni_session_context ni_session_context_t
 
typedef struct _ni_split_context_t ni_split_context_t
 
typedef enum _ni_reconfig ni_reconfig_t
 This is an enumeration for encoder reconfiguration test settings. More...
 
typedef enum _ni_ai_buffer_format_e ni_ai_buffer_format_e
 
typedef enum _ni_ai_buffer_quantize_format_e ni_ai_buffer_quantize_format_e
 
typedef enum _ni_ddr_priority_mode_t ni_ddr_priority_mode_t
 
typedef struct _ni_gop_rps ni_gop_rps_t
 
typedef struct _ni_gop_params ni_gop_params_t
 
typedef struct _ni_custom_gop_params ni_custom_gop_params_t
 
typedef struct _ni_encoder_cfg_params ni_encoder_cfg_params_t
 
typedef struct _ni_decoder_input_params_t ni_decoder_input_params_t
 
typedef struct _ni_scaler_input_params_t ni_scaler_input_params_t
 
typedef struct _ni_scaler_params_t ni_scaler_params_t
 
typedef struct _ni_scaler_drawbox_params_t ni_scaler_drawbox_params_t
 
typedef struct _ni_scaler_watermark_params_t ni_scaler_watermark_params_t
 
typedef struct _ni_scaler_multi_drawbox_params_t ni_scaler_multi_drawbox_params_t
 
typedef struct _ni_scaler_multi_watermark_params_t ni_scaler_multi_watermark_params_t
 
typedef struct _ni_frame ni_frame_t
 
typedef struct _ni_xcoder_params ni_xcoder_params_t
 
typedef struct _niFrameSurface1 niFrameSurface1_t
 
typedef struct _ni_frame_config ni_frame_config_t
 
typedef struct _ni_packet ni_packet_t
 
typedef struct _ni_session_data_io ni_session_data_io_t
 

Enumerations

enum  ni_qos_modes { QOS_MODE_DISABLED = 0, QOS_MODE_ENABLED_NO_SHARE = 1, QOS_MODE_ENABLED_SHARE = 2 }
 
enum  ni_qos_codes { QOS_NAMESPACE_CODE = NI_NAMESPACE_MAX_NUM + 1, QOS_OP_CONFIG_REC_OP_CODE, QOS_OP_CONFIG_CODE }
 
enum  ni_xcoder_state_t {
  NI_XCODER_IDLE_STATE = 0x00, NI_XCODER_OPEN_STATE = 0x01 << 1, NI_XCODER_WRITE_STATE = 0x01 << 2, NI_XCODER_READ_STATE = 0x01 << 3,
  NI_XCODER_CLOSE_STATE = 0x01 << 4, NI_XCODER_FLUSH_STATE = 0x01 << 5, NI_XCODER_INTER_FLUSH_STATE = 0x01 << 6, NI_XCODER_READ_DESC_STATE = 0x01 << 7,
  NI_XCODER_HWUP_STATE = 0x01 << 8, NI_XCODER_HWDL_STATE = 0x01 << 9, NI_XCODER_GENERAL_STATE = 0x01 << 10
}
 
enum  ni_pix_fmt_t {
  NI_PIX_FMT_YUV420P = 0, NI_PIX_FMT_YUV420P10LE = 1, NI_PIX_FMT_NV12 = 2, NI_PIX_FMT_P010LE = 3,
  NI_PIX_FMT_RGBA = 4, NI_PIX_FMT_BGRA = 5, NI_PIX_FMT_ARGB = 6, NI_PIX_FMT_ABGR = 7,
  NI_PIX_FMT_BGR0 = 8, NI_PIX_FMT_BGRP = 9, NI_PIX_FMT_NV16 = 10, NI_PIX_FMT_YUYV422 = 11,
  NI_PIX_FMT_UYVY422 = 12, NI_PIX_FMT_8_TILED4X4 = 13, NI_PIX_FMT_10_TILED4X4 = 14, NI_PIX_FMT_NONE = 15
}
 
enum  ni_enc_allocate_strategy_t {
  NI_ENC_MEM_ALLOCATE_STRATEGY_INVALID_MIN = -1, NI_ENC_MEM_ALLOCATE_STRATEGY_DEFAULT, NI_ENC_MEM_ALLOCATE_STRATEGY_REGION_0_FIRST, NI_ENC_MEM_ALLOCATE_STRATEGY_REGION_1_FIRST,
  NI_ENC_MEM_ALLOCATE_STRATEGY_INVALID_MAX
}
 
enum  ni_h265_sei_user_data_type_t {
  NI_H265_USERDATA_FLAG_RESERVED_0 = 0, NI_H265_USERDATA_FLAG_RESERVED_1 = 1, NI_H265_USERDATA_FLAG_VUI = 2, NI_H265_USERDATA_FLAG_RESERVED_3 = 3,
  NI_H265_USERDATA_FLAG_PIC_TIMING = 4, NI_H265_USERDATA_FLAG_ITU_T_T35_PRE = 5, NI_H265_USERDATA_FLAG_UNREGISTERED_PRE = 6, NI_H265_USERDATA_FLAG_ITU_T_T35_SUF = 7,
  NI_H265_USERDATA_FLAG_UNREGISTERED_SUF = 8, NI_H265_USERDATA_FLAG_RESERVED_9 = 9, NI_H265_USERDATA_FLAG_MASTERING_COLOR_VOL = 10, NI_H265_USERDATA_FLAG_CHROMA_RESAMPLING_FILTER_HINT = 11,
  NI_H265_USERDATA_FLAG_KNEE_FUNCTION_INFO = 12, NI_H265_USERDATA_FLAG_TONE_MAPPING_INFO = 13, NI_H265_USER_DATA_FLAG_FILM_GRAIN_CHARACTERISTICS_INFO = 14, NI_H265_USER_DATA_FLAG_CONTENT_LIGHT_LEVEL_INFO = 15,
  NI_H265_USER_DATA_FLAG_COLOUR_REMAPPING_INFO = 16, NI_H265_USERDATA_FLAG_ITU_T_T35_PRE_1 = 28, NI_H265_USERDATA_FLAG_ITU_T_T35_PRE_2 = 29, NI_H265_USERDATA_FLAG_ITU_T_T35_SUF_1 = 30,
  NI_H265_USERDATA_FLAG_ITU_T_T35_SUF_2 = 31
}
 
enum  ni_pic_type_t {
  PIC_TYPE_I = 0, PIC_TYPE_P = 1, PIC_TYPE_B = 2, PIC_TYPE_CRA = 4,
  PIC_TYPE_IDR = 3, DECODER_PIC_TYPE_IDR = 5, PIC_TYPE_NIDR = 5, PIC_TYPE_MAX
}
 
enum  _ni_frame_pool_type { NI_POOL_TYPE_NONE = -1, NI_POOL_TYPE_NORMAL = 0, NI_POOL_TYPE_P2P = 1 }
 Frame pool type. More...
 
enum  _ni_frame_aux_data_type {
  NI_FRAME_AUX_DATA_NONE = 0, NI_FRAME_AUX_DATA_A53_CC, NI_FRAME_AUX_DATA_MASTERING_DISPLAY_METADATA, NI_FRAME_AUX_DATA_CONTENT_LIGHT_LEVEL,
  NI_FRAME_AUX_DATA_HDR_PLUS, NI_FRAME_AUX_DATA_REGIONS_OF_INTEREST, NI_FRAME_AUX_DATA_UDU_SEI, NI_FRAME_AUX_DATA_CUSTOM_SEI,
  NI_FRAME_AUX_DATA_BITRATE, NI_FRAME_AUX_DATA_INTRAPRD, NI_FRAME_AUX_DATA_VUI, NI_FRAME_AUX_DATA_LONG_TERM_REF,
  NI_FRAME_AUX_DATA_LTR_INTERVAL, NI_FRAME_AUX_DATA_INVALID_REF_FRAME, NI_FRAME_AUX_DATA_FRAMERATE, NI_FRAME_AUX_DATA_MAX_FRAME_SIZE,
  NI_FRAME_AUX_DATA_MAX_MIN_QP, NI_FRAME_AUX_DATA_CRF, NI_FRAME_AUX_DATA_CRF_FLOAT, NI_FRAME_AUX_DATA_VBV_MAX_RATE,
  NI_FRAME_AUX_DATA_VBV_BUFFER_SIZE, NI_FRAME_AUX_DATA_SLICE_ARG, NI_FRAME_AUX_DATA_CATEGORY_CLASSIFY
}
 
enum  _ni_codec_format {
  NI_CODEC_FORMAT_H264 = 0, NI_CODEC_FORMAT_H265 = 1, NI_CODEC_FORMAT_VP9 = 2, NI_CODEC_FORMAT_JPEG = 3,
  NI_CODEC_FORMAT_AV1 = 4
}
 This is an enumeration for supported codec formats. More...
 
enum  _ni_pixel_planar_format { NI_PIXEL_PLANAR_FORMAT_SEMIPLANAR = 0, NI_PIXEL_PLANAR_FORMAT_PLANAR = 1, NI_PIXEL_PLANAR_FORMAT_TILED4X4 = 2, NI_PIXEL_PLANAR_MAX }
 
enum  _ni_dec_crop_mode { NI_DEC_CROP_MODE_DISABLE = 0, NI_DEC_CROP_MODE_AUTO = 1, NI_DEC_CROP_MODE_MANUAL = 2 }
 
enum  ni_codec_hw_actions {
  NI_CODEC_HW_NONE = 0, NI_CODEC_HW_ENABLE = (1 << 0), NI_CODEC_HW_DOWNLOAD = (1 << 1), NI_CODEC_HW_UPLOAD = (1 << 2),
  NI_CODEC_HW_RSVD = (1 << 3), NI_CODEC_HW_PAYLOAD_OFFSET = 4
}
 This is an enumeration for hw actions. More...
 
enum  _ni_param_change_flags {
  NI_SET_CHANGE_PARAM_PPS = (1 << 0), NI_SET_CHANGE_PARAM_RC_TARGET_RATE = (1 << 8), NI_SET_CHANGE_PARAM_RC_MIN_MAX_QP = (1 << 10), NI_SET_CHANGE_PARAM_RC_BIT_RATIO_LAYER = (1 << 11),
  NI_SET_CHANGE_PARAM_SLICE_ARG = (1<<12), NI_SET_CHANGE_PARAM_INDEPEND_SLICE = (1 << 16), NI_SET_CHANGE_PARAM_DEPEND_SLICE = (1 << 17), NI_SET_CHANGE_PARAM_RDO = (1 << 18),
  NI_SET_CHANGE_PARAM_NR = (1 << 19), NI_SET_CHANGE_PARAM_BG = (1 << 20), NI_SET_CHANGE_PARAM_CUSTOM_MD = (1 << 21), NI_SET_CHANGE_PARAM_CUSTOM_LAMBDA = (1 << 22),
  NI_SET_CHANGE_PARAM_RC2 = (1 << 23), NI_SET_CHANGE_PARAM_VUI_HRD_PARAM = (1 << 24), NI_SET_CHANGE_PARAM_INVALID_REF_FRAME = (1 << 25), NI_SET_CHANGE_PARAM_LTR_INTERVAL = (1 << 26),
  NI_SET_CHANGE_PARAM_RC_FRAMERATE = (1 << 27), NI_SET_CHANGE_PARAM_MAX_FRAME_SIZE = (1 << 28), NI_SET_CHANGE_PARAM_CRF = (1<<29), NI_SET_CHANGE_PARAM_VBV = (1<<30),
  NI_SET_CHANGE_PARAM_INTRA_PERIOD = ((unsigned int)1 << 31)
}
 This is an enumeration for encoder parameter change. More...
 
enum  _ni_custom_sei_location { NI_CUSTOM_SEI_LOC_BEFORE_VCL = 0, NI_CUSTOM_SEI_LOC_AFTER_VCL = 1 }
 This is an enumeration for illustrating the custom SEI locations. More...
 
enum  _ni_session_run_state {
  SESSION_RUN_STATE_NORMAL = 0, SESSION_RUN_STATE_SEQ_CHANGE_DRAINING = 1, SESSION_RUN_STATE_SEQ_CHANGE_OPENING = 2, SESSION_RUN_STATE_RESETTING = 3,
  SESSION_RUN_STATE_FLUSHING = 4
}
 Session running state type. More...
 
enum  _ni_reconfig {
  XCODER_TEST_RECONF_OFF = 0, XCODER_TEST_RECONF_BR = 1, XCODER_TEST_RECONF_INTRAPRD = 2, XCODER_TEST_RECONF_VUI_HRD = 3,
  XCODER_TEST_RECONF_LONG_TERM_REF = 4, XCODER_TEST_RECONF_RC_MIN_MAX_QP = 6, XCODER_TEST_RECONF_LTR_INTERVAL = 7, XCODER_TEST_INVALID_REF_FRAME = 8,
  XCODER_TEST_RECONF_FRAMERATE = 9, XCODER_TEST_RECONF_MAX_FRAME_SIZE = 10, XCODER_TEST_RECONF_RC_MIN_MAX_QP_REDUNDANT = 11, XCODER_TEST_RECONF_CRF = 14,
  XCODER_TEST_RECONF_CRF_FLOAT = 15, XCODER_TEST_RECONF_VBV = 16, XCODER_TEST_RECONF_MAX_FRAME_SIZE_RATIO = 17, XCODER_TEST_RECONF_SLICE_ARG = 18,
  XCODER_TEST_FORCE_IDR_FRAME = 100, XCODER_TEST_RECONF_BR_API = 101, XCODER_TEST_RECONF_INTRAPRD_API = 102, XCODER_TEST_RECONF_VUI_HRD_API = 103,
  XCODER_TEST_RECONF_LTR_API = 104, XCODER_TEST_RECONF_RC_MIN_MAX_QP_API_REDUNDANT = 106, XCODER_TEST_RECONF_LTR_INTERVAL_API = 107, XCODER_TEST_INVALID_REF_FRAME_API = 108,
  XCODER_TEST_RECONF_FRAMERATE_API = 109, XCODER_TEST_RECONF_MAX_FRAME_SIZE_API = 110, XCODER_TEST_RECONF_RC_MIN_MAX_QP_API = 111, XCODER_TEST_CRF_API = 114,
  XCODER_TEST_CRF_FLOAT_API = 115, XCODER_TEST_RECONF_VBV_API = 116, XCODER_TEST_RECONF_MAX_FRAME_SIZE_RATIO_API = 117, XCODER_TEST_RECONF_SLICE_ARG_API = 118,
  XCODER_TEST_RECONF_END = 119
}
 This is an enumeration for encoder reconfiguration test settings. More...
 
enum  _ni_ai_buffer_format_e {
  NI_AI_BUFFER_FORMAT_FP32 = 0, NI_AI_BUFFER_FORMAT_FP16 = 1, NI_AI_BUFFER_FORMAT_UINT8 = 2, NI_AI_BUFFER_FORMAT_INT8 = 3,
  NI_AI_BUFFER_FORMAT_UINT16 = 4, NI_AI_BUFFER_FORMAT_INT16 = 5, NI_AI_BUFFER_FORMAT_CHAR = 6, NI_AI_BUFFER_FORMAT_BFP16 = 7,
  NI_AI_BUFFER_FORMAT_INT32 = 8, NI_AI_BUFFER_FORMAT_UINT32 = 9, NI_AI_BUFFER_FORMAT_INT64 = 10, NI_AI_BUFFER_FORMAT_UINT64 = 11,
  NI_AI_BUFFER_FORMAT_FP64 = 12
}
 
enum  _ni_ai_buffer_quantize_format_e { NI_AI_BUFFER_QUANTIZE_NONE = 0, NI_AI_BUFFER_QUANTIZE_DYNAMIC_FIXED_POINT = 1, NI_AI_BUFFER_QUANTIZE_TF_ASYMM = 2, NI_AI_BUFFER_QUANTIZE_MAX }
 
enum  _ni_ddr_priority_mode_t {
  NI_DDR_PRIORITY_NONE = -1, NI_DDR_PRIORITY_RESET, NI_DDR_PRIORITY_DECENC, NI_DDR_PRIORITY_FILT,
  NI_DDR_PRIORITY_AI, NI_DDR_PRIORITY_MAX
}
 

Functions

LIB_API ni_session_context_tni_device_session_context_alloc_init (void)
 Allocate and initialize a new ni_session_context_t struct. More...
 
LIB_API ni_retcode_t ni_device_session_context_init (ni_session_context_t *p_ctx)
 Initialize already allocated session context to a known state. More...
 
LIB_API void ni_device_session_context_clear (ni_session_context_t *p_ctx)
 Clear already allocated session context. More...
 
LIB_API void ni_device_session_context_free (ni_session_context_t *p_ctx)
 Free previously allocated session context. More...
 
LIB_API ni_event_handle_t ni_create_event (void)
 Create event and return event handle if successful (Windows only) More...
 
LIB_API void ni_close_event (ni_event_handle_t event_handle)
 Close event and release resources (Windows only) More...
 
LIB_API ni_device_handle_t ni_device_open (const char *dev, uint32_t *p_max_io_size_out)
 Open device and return device device_handle if successful. More...
 
LIB_API void ni_device_close (ni_device_handle_t dev)
 Close device and release resources. More...
 
LIB_API 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_capability_query2 This function can't be callback in multi thread. More...
 
LIB_API 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_query This function can be callback with multi thread. More...
 
LIB_API 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_DECODER opens decoding session If device_type is NI_DEVICE_TYPE_ENCODER opens encoding session If device_type is NI_DEVICE_TYPE_SCALER opens scaling session. More...
 
LIB_API ni_retcode_t ni_device_session_close (ni_session_context_t *p_ctx, int eos_received, ni_device_type_t device_type)
 Close device session that was previously opened by calling ni_device_session_open() If device_type is NI_DEVICE_TYPE_DECODER closes decoding session If device_type is NI_DEVICE_TYPE_ENCODER closes encoding session If device_type is NI_DEVICE_TYPE_SCALER closes scaling session. More...
 
LIB_API 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 decoder If device_type is NI_DEVICE_TYPE_ENCODER sends EOS command to encoder. More...
 
LIB_API 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 same source. More...
 
LIB_API 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_session_flush in that it closes the current decode session and opens a new one for continuous decoding. More...
 
LIB_API int ni_device_session_write (ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, ni_device_type_t device_type)
 Send data to the device If device_type is NI_DEVICE_TYPE_DECODER sends data packet to decoder If device_type is NI_DEVICE_TYPE_ENCODER sends data frame to encoder If device_type is NI_DEVICE_TYPE_AI sends data frame to AI engine. More...
 
LIB_API 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 device_type is NI_DEVICE_TYPE_ENCODER reads data frame from encoder If device_type is NI_DEVICE_TYPE_AI reads data frame from AI engine. More...
 
LIB_API 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 device type. More...
 
LIB_API 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 specified device type. More...
 
LIB_API 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 specified device type. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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 Planar pixel (8 or 10 bit/pixel) format or 32-bit RGBA. More...
 
LIB_API 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 encoder. More...
 
LIB_API 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. More...
 
LIB_API ni_retcode_t ni_decoder_frame_buffer_alloc (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)
 Allocate memory for decoder frame buffer based on provided parameters; the memory is retrieved from a buffer pool and will be returned to the same buffer pool by ni_decoder_frame_buffer_free. Note: all attributes of ni_frame_t will be set up except for memory and buffer, which rely on the pool being allocated; the pool will be allocated only after the frame resolution is known. More...
 
LIB_API ni_retcode_t ni_encoder_frame_buffer_alloc (ni_frame_t *pframe, 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 line size and extra data. Applicable to YUV420p AVFrame only. 8 or 10 bit/pixel. Cb/Cr size matches that of Y. More...
 
LIB_API 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 More...
 
LIB_API 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 incoming hardware frame index to the scaler manager More...
 
LIB_API 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 More...
 
LIB_API 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 and extra data. Applicable to nv12 AVFrame only. Cb/Cr size matches that of Y. More...
 
LIB_API 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, and ni_frame_buffer_alloc_nv(), used for semi-planar pixel formats. This API is meant to combine the functionality for both formats. Allocate memory for the frame buffer for encoding based on given parameters, taking into account pic line size and extra data. Applicable to YUV420p(8 or 10 bit/pixel) or nv12 AVFrame. Cb/Cr size matches that of Y. More...
 
LIB_API ni_retcode_t ni_frame_buffer_free (ni_frame_t *pframe)
 Free frame buffer that was previously allocated with either ni_frame_buffer_alloc or ni_encoder_frame_buffer_alloc or ni_frame_buffer_alloc_nv. More...
 
LIB_API ni_retcode_t ni_decoder_frame_buffer_free (ni_frame_t *pframe)
 Free decoder frame buffer that was previously allocated with ni_decoder_frame_buffer_alloc, returning memory to a buffer pool. More...
 
LIB_API 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, for a decoder frame. More...
 
LIB_API ni_retcode_t ni_packet_buffer_alloc (ni_packet_t *ppacket, int packet_size)
 Allocate memory for the packet buffer based on provided packet size. More...
 
LIB_API 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 allocated. More...
 
LIB_API ni_retcode_t ni_packet_buffer_free (ni_packet_t *ppacket)
 Free packet buffer that was previously allocated with ni_packet_buffer_alloc. More...
 
LIB_API ni_retcode_t ni_packet_buffer_free_av1 (ni_packet_t *ppacket)
 Free packet buffer that was previously allocated with ni_packet_buffer_alloc for AV1 packets merge. More...
 
LIB_API 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. More...
 
LIB_API ni_aux_data_tni_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. More...
 
LIB_API ni_aux_data_tni_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. More...
 
LIB_API ni_aux_data_tni_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. More...
 
LIB_API 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. More...
 
LIB_API void ni_frame_wipe_aux_data (ni_frame_t *frame)
 Free and remove all auxiliary data from the frame. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API int ni_device_session_init_framepool (ni_session_context_t *p_ctx, uint32_t pool_size, uint32_t pool)
 Send frame pool setup info to device. More...
 
LIB_API 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. More...
 
LIB_API 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 device_type is NI_DEVICE_TYPE_SCALER reads data hwdesc from scaler. More...
 
LIB_API int ni_device_session_hwdl (ni_session_context_t *p_ctx, ni_session_data_io_t *p_data, niFrameSurface1_t *hwdesc)
 Read YUV data from hw descriptor stored location on device. More...
 
LIB_API 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. More...
 
LIB_API int ni_device_session_hwup (ni_session_context_t *p_ctx, ni_session_data_io_t *p_src_data, niFrameSurface1_t *hwdesc)
 Send raw YUV input to uploader instance and retrieve a HW descriptor to represent it. More...
 
LIB_API ni_retcode_t ni_frame_buffer_alloc_hwenc (ni_frame_t *pframe, int video_width, int video_height, int extra_len)
 Allocate memory for the hwDescriptor buffer based on provided parameters taking into account pic size and extra data. More...
 
LIB_API ni_retcode_t ni_hwframe_buffer_recycle (niFrameSurface1_t *surface, int32_t device_handle)
 Recycle a hwframe buffer on card. More...
 
LIB_API ni_retcode_t ni_hwframe_buffer_recycle2 (niFrameSurface1_t *surface)
 Recycle a hwframe buffer on card. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API ni_retcode_t ni_device_config_frame (ni_session_context_t *p_ctx, ni_frame_config_t *p_cfg)
 Config a frame on the device for 2D engined to work on based on provided parameters. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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)
 Config multiple frame on the device for 2D engined to work on based on provided parameters. More...
 
LIB_API ni_retcode_t ni_frame_buffer_alloc_pixfmt (ni_frame_t *pframe, 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 format, width, height, stride, alignment, and extra data. More...
 
LIB_API 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 More...
 
LIB_API ni_retcode_t ni_ai_config_hvsplus (ni_session_context_t *p_ctx, ni_network_data_t *p_network)
 configure a hvsplus filter More...
 
LIB_API 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 width, height, format defined by network. More...
 
LIB_API 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. More...
 
LIB_API ni_retcode_t ni_reconfig_bitrate (ni_session_context_t *p_ctx, int32_t bitrate)
 Reconfigure bitrate dynamically during encoding. More...
 
LIB_API ni_retcode_t ni_reconfig_intraprd (ni_session_context_t *p_ctx, int32_t intra_period)
 Reconfigure intraPeriod dynamically during encoding. More...
 
LIB_API ni_retcode_t ni_reconfig_vui (ni_session_context_t *p_ctx, ni_vui_hrd_t *vui)
 Reconfigure VUI dynamically during encoding. More...
 
LIB_API ni_retcode_t ni_force_idr_frame_type (ni_session_context_t *p_ctx)
 Force next frame to be IDR frame during encoding. More...
 
LIB_API 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. More...
 
LIB_API ni_retcode_t ni_set_ltr_interval (ni_session_context_t *p_ctx, int32_t ltr_interval)
 Set Long Term Reference interval. More...
 
LIB_API ni_retcode_t ni_set_frame_ref_invalid (ni_session_context_t *p_ctx, int32_t frame_num)
 Set frame reference invalidation. More...
 
LIB_API ni_retcode_t ni_reconfig_framerate (ni_session_context_t *p_ctx, ni_framerate_t *framerate)
 Reconfigure framerate dynamically during encoding. More...
 
LIB_API ni_retcode_t ni_reconfig_max_frame_size (ni_session_context_t *p_ctx, int32_t max_frame_size)
 Reconfigure maxFrameSize dynamically during encoding. More...
 
LIB_API 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. More...
 
LIB_API ni_retcode_t ni_reconfig_crf (ni_session_context_t *p_ctx, int32_t crf)
 Reconfigure crf value dynamically during encoding. More...
 
LIB_API ni_retcode_t ni_reconfig_crf2 (ni_session_context_t *p_ctx, float crf)
 Reconfigure crf float point value dynamically during encoding. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API ni_retcode_t ni_reconfig_slice_arg (ni_session_context_t *p_ctx, int16_t sliceArg)
 Reconfigure sliceArg dynamically during encoding. More...
 
LIB_API int ni_device_session_acquire (ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
 Acquire a P2P frame buffer from the hwupload session. More...
 
LIB_API int ni_device_session_acquire_for_read (ni_session_context_t *p_upl_ctx, ni_frame_t *p_frame)
 Acquire a P2P frame buffer from the hwupload session for P2P read. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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 call. Copies YUV data from the software frame to the hardware P2P frame on the Quadra device. More...
 
LIB_API 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 the Quadra device. Does not need the Netint kernel driver but requires root privilege. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API ni_retcode_t ni_hwframe_p2p_buffer_recycle (ni_frame_t *p_frame)
 Recycle hw P2P frames. More...
 
LIB_API 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 frame format for the uploader. More...
 
LIB_API 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. More...
 
LIB_API int32_t ni_get_dma_buf_file_descriptor (const ni_frame_t *p_frame)
 Get the DMA buffer file descriptor from the P2P frame. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API 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, taking into account pic linesize and extra data. Applicable to YUV planr / semi-planar 8 or 10 bit and RGBA pixel formats. More...
 
LIB_API 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. More...
 
LIB_API 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. More...
 
LIB_API ni_retcode_t ni_set_demo_roi_map (ni_session_context_t *p_enc_ctx)
 Set up hard coded demo ROI map. More...
 
LIB_API 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 in frame. More...
 
LIB_API void ni_gop_params_check_set (ni_xcoder_params_t *p_param, char *value)
 Set custom gop and prepare to check if success. More...
 
LIB_API bool ni_gop_params_check (ni_xcoder_params_t *p_param)
 Check custom gop params set. More...
 
LIB_API 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) More...
 
LIB_API ni_retcode_t ni_p2p_send (ni_session_context_t *pSession, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize)
 Initiate P2P transfer to another device (P2P write) More...
 
LIB_API 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 to the page size. More...
 
LIB_API 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) More...
 
LIB_API 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. More...
 

Variables

const LIB_API char *const g_xcoder_preset_names [NI_XCODER_PRESET_NAMES_ARRAY_LEN]
 
const LIB_API char *const g_xcoder_log_names [NI_XCODER_LOG_NAMES_ARRAY_LEN]
 

Detailed Description

Public definitions for operating NETINT video processing devices for video processing.


Definition in file ni_device_api.h.

Macro Definition Documentation

◆ AV_CODEC_DEFAULT_BITRATE

#define AV_CODEC_DEFAULT_BITRATE   200 * 1000

Definition at line 55 of file ni_device_api.h.

◆ GC620_ABGR8888

#define GC620_ABGR8888   12

Definition at line 202 of file ni_device_api.h.

◆ GC620_ARGB8888

#define GC620_ARGB8888   15

Definition at line 203 of file ni_device_api.h.

◆ GC620_B5G5R5X1

#define GC620_B5G5R5X1   8

Definition at line 206 of file ni_device_api.h.

◆ GC620_BGR565

#define GC620_BGR565   11

Definition at line 205 of file ni_device_api.h.

◆ GC620_BGRA8888

#define GC620_BGRA8888   4

Definition at line 200 of file ni_device_api.h.

◆ GC620_BGRX8888

#define GC620_BGRX8888   5

Definition at line 201 of file ni_device_api.h.

◆ GC620_I010

#define GC620_I010   0x10A

Definition at line 195 of file ni_device_api.h.

◆ GC620_I420

#define GC620_I420   0x103

Definition at line 193 of file ni_device_api.h.

◆ GC620_NV12

#define GC620_NV12   0x104

Definition at line 191 of file ni_device_api.h.

◆ GC620_NV16

#define GC620_NV16   0x106

Definition at line 198 of file ni_device_api.h.

◆ GC620_NV21

#define GC620_NV21   0x105

Definition at line 192 of file ni_device_api.h.

◆ GC620_P010_MSB

#define GC620_P010_MSB   0x108

Definition at line 194 of file ni_device_api.h.

◆ GC620_RGB565

#define GC620_RGB565   3

Definition at line 204 of file ni_device_api.h.

◆ GC620_RGB888_PLANAR

#define GC620_RGB888_PLANAR   0x10C

Definition at line 207 of file ni_device_api.h.

◆ GC620_RGBA8888

#define GC620_RGBA8888   0

Definition at line 199 of file ni_device_api.h.

◆ GC620_UYVY

#define GC620_UYVY   0x101

Definition at line 197 of file ni_device_api.h.

◆ GC620_YUYV

#define GC620_YUYV   0x100

Definition at line 196 of file ni_device_api.h.

◆ MAX_CHAR_IN_DEVICE_NAME

#define MAX_CHAR_IN_DEVICE_NAME   32

Definition at line 184 of file ni_device_api.h.

◆ MAX_NUM_FRAMEPOOL_HWAVFRAME

#define MAX_NUM_FRAMEPOOL_HWAVFRAME   128

Definition at line 188 of file ni_device_api.h.

◆ MOTION_CONSTRAINED_PERFORMANCE_MODE

#define MOTION_CONSTRAINED_PERFORMANCE_MODE   1

Definition at line 483 of file ni_device_api.h.

◆ MOTION_CONSTRAINED_QUALITY_MODE

#define MOTION_CONSTRAINED_QUALITY_MODE   2

Definition at line 484 of file ni_device_api.h.

◆ NI_2PASS_ENCODE_MIN_HEIGHT

#define NI_2PASS_ENCODE_MIN_HEIGHT   256

Definition at line 129 of file ni_device_api.h.

◆ NI_2PASS_ENCODE_MIN_WIDTH

#define NI_2PASS_ENCODE_MIN_WIDTH   ((272 + 31) / 32 * 32)

Definition at line 128 of file ni_device_api.h.

◆ NI_AI_FLAG_IO

#define NI_AI_FLAG_IO   0x0001 /* 0 = source frame, 1 = destination frame */

Definition at line 300 of file ni_device_api.h.

◆ NI_AI_FLAG_LM

#define NI_AI_FLAG_LM   0x0004 /* 0 == no memory acquisition limit; 1 == limit memory acquisition */

Definition at line 302 of file ni_device_api.h.

◆ NI_AI_FLAG_PC

#define NI_AI_FLAG_PC   0x0002 /* 0 = single allocation, 1 = create pool */

Definition at line 301 of file ni_device_api.h.

◆ NI_AV1_INVALID_BUFFER_INDEX

#define NI_AV1_INVALID_BUFFER_INDEX   (-1)

Definition at line 179 of file ni_device_api.h.

◆ NI_BEST_MODEL_LOAD_STR

#define NI_BEST_MODEL_LOAD_STR   "bestmodelload"

Definition at line 41 of file ni_device_api.h.

◆ NI_BEST_REAL_LOAD_STR

#define NI_BEST_REAL_LOAD_STR   "bestload"

Definition at line 42 of file ni_device_api.h.

◆ NI_BITRATE_RECONFIG_FILE_MAX_ENTRIES_PER_LINE

#define NI_BITRATE_RECONFIG_FILE_MAX_ENTRIES_PER_LINE   10

Max number of entries per line supported for the bitrate reconfig file. Note the first entry is the key(frame) value, the remaining are bitrate values

Definition at line 476 of file ni_device_api.h.

◆ NI_BITRATE_RECONFIG_FILE_MAX_LINES

#define NI_BITRATE_RECONFIG_FILE_MAX_LINES   50000

Max number of lines supported for the bitrate reconfig file.

Definition at line 473 of file ni_device_api.h.

◆ NI_CC_SEI_BYTE0

#define NI_CC_SEI_BYTE0   0xB5

Definition at line 443 of file ni_device_api.h.

◆ NI_CC_SEI_BYTE1

#define NI_CC_SEI_BYTE1   0x00

Definition at line 444 of file ni_device_api.h.

◆ NI_CC_SEI_BYTE2

#define NI_CC_SEI_BYTE2   0x31

Definition at line 445 of file ni_device_api.h.

◆ NI_CC_SEI_BYTE3

#define NI_CC_SEI_BYTE3   0x47

Definition at line 446 of file ni_device_api.h.

◆ NI_CC_SEI_BYTE4

#define NI_CC_SEI_BYTE4   0x41

Definition at line 447 of file ni_device_api.h.

◆ NI_CC_SEI_BYTE5

#define NI_CC_SEI_BYTE5   0x39

Definition at line 448 of file ni_device_api.h.

◆ NI_CC_SEI_BYTE6

#define NI_CC_SEI_BYTE6   0x34

Definition at line 449 of file ni_device_api.h.

◆ NI_CC_SEI_BYTE7

#define NI_CC_SEI_BYTE7   0x03

Definition at line 450 of file ni_device_api.h.

◆ NI_CC_SEI_HDR_H264_LEN

#define NI_CC_SEI_HDR_H264_LEN   17

Definition at line 464 of file ni_device_api.h.

◆ NI_CC_SEI_HDR_HEVC_LEN

#define NI_CC_SEI_HDR_HEVC_LEN   18

Definition at line 461 of file ni_device_api.h.

◆ NI_CC_SEI_TRAILER_LEN

#define NI_CC_SEI_TRAILER_LEN   2

Definition at line 465 of file ni_device_api.h.

◆ NI_CUSTOMIZE_ROI_QP_NUM

#define NI_CUSTOMIZE_ROI_QP_NUM   64

Max number of entries per line supported for the qp number.

Definition at line 481 of file ni_device_api.h.

◆ NI_CUSTOMIZE_ROI_QPOFFSET_LEVEL

#define NI_CUSTOMIZE_ROI_QPOFFSET_LEVEL   10

Max number of lines supported for qpoffset level.

Definition at line 479 of file ni_device_api.h.

◆ NI_DATA_FORMAT_CB_FRAME

#define NI_DATA_FORMAT_CB_FRAME   3

Definition at line 47 of file ni_device_api.h.

◆ NI_DATA_FORMAT_CR_FRAME

#define NI_DATA_FORMAT_CR_FRAME   4

Definition at line 48 of file ni_device_api.h.

◆ NI_DATA_FORMAT_VIDEO_PACKET

#define NI_DATA_FORMAT_VIDEO_PACKET   0

Definition at line 44 of file ni_device_api.h.

◆ NI_DATA_FORMAT_Y_FRAME

#define NI_DATA_FORMAT_Y_FRAME   2

Definition at line 46 of file ni_device_api.h.

◆ NI_DATA_FORMAT_YUV_FRAME

#define NI_DATA_FORMAT_YUV_FRAME   1

Definition at line 45 of file ni_device_api.h.

◆ NI_DEC_MAX_CC_BUF_SIZE

#define NI_DEC_MAX_CC_BUF_SIZE   93

Definition at line 441 of file ni_device_api.h.

◆ NI_DEC_PARAM_CROP_MODE_0

#define NI_DEC_PARAM_CROP_MODE_0   "cropMode0"

Definition at line 2456 of file ni_device_api.h.

◆ NI_DEC_PARAM_CROP_MODE_1

#define NI_DEC_PARAM_CROP_MODE_1   "cropMode1"

Definition at line 2457 of file ni_device_api.h.

◆ NI_DEC_PARAM_CROP_MODE_2

#define NI_DEC_PARAM_CROP_MODE_2   "cropMode2"

Definition at line 2458 of file ni_device_api.h.

◆ NI_DEC_PARAM_CROP_PARAM_0

#define NI_DEC_PARAM_CROP_PARAM_0   "crop0"

Definition at line 2459 of file ni_device_api.h.

◆ NI_DEC_PARAM_CROP_PARAM_1

#define NI_DEC_PARAM_CROP_PARAM_1   "crop1"

Definition at line 2460 of file ni_device_api.h.

◆ NI_DEC_PARAM_CROP_PARAM_2

#define NI_DEC_PARAM_CROP_PARAM_2   "crop2"

Definition at line 2461 of file ni_device_api.h.

◆ NI_DEC_PARAM_DDR_PRIORITY_MODE

#define NI_DEC_PARAM_DDR_PRIORITY_MODE   "ddrPriorityMode"

Definition at line 2483 of file ni_device_api.h.

◆ NI_DEC_PARAM_DISABLE_ADAPTIVE_BUFFERS

#define NI_DEC_PARAM_DISABLE_ADAPTIVE_BUFFERS   "disableAdaptiveBuffers"

Definition at line 2494 of file ni_device_api.h.

◆ NI_DEC_PARAM_EC_POLICY

#define NI_DEC_PARAM_EC_POLICY   "ecPolicy"

Definition at line 2484 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_ADVANCED_EC

#define NI_DEC_PARAM_ENABLE_ADVANCED_EC   "enableAdvancedEc"

Definition at line 2485 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_ALL_SEI_PASSTHRU

#define NI_DEC_PARAM_ENABLE_ALL_SEI_PASSTHRU   "enableAllSeiPassthru"

Definition at line 2492 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_CUSTOM_SEI_PASSTHRU

#define NI_DEC_PARAM_ENABLE_CUSTOM_SEI_PASSTHRU   "customSeiPassthru"

Definition at line 2481 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_FOLLOW_IFRAME

#define NI_DEC_PARAM_ENABLE_FOLLOW_IFRAME   "enableFollowIFrame"

Definition at line 2493 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_LOW_DELAY_CHECK

#define NI_DEC_PARAM_ENABLE_LOW_DELAY_CHECK   "enableLowDelayCheck"

Definition at line 2479 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_OUT_1

#define NI_DEC_PARAM_ENABLE_OUT_1   "enableOut1"

Definition at line 2448 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_OUT_2

#define NI_DEC_PARAM_ENABLE_OUT_2   "enableOut2"

Definition at line 2449 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_PPU_SCALE_ADAPT

#define NI_DEC_PARAM_ENABLE_PPU_SCALE_ADAPT   "enablePpuScaleAdapt"

Definition at line 2487 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_PPU_SCALE_LIMIT

#define NI_DEC_PARAM_ENABLE_PPU_SCALE_LIMIT   "enablePpuScaleLimit"

Definition at line 2488 of file ni_device_api.h.

◆ NI_DEC_PARAM_ENABLE_USR_DATA_SEI_PASSTHRU

#define NI_DEC_PARAM_ENABLE_USR_DATA_SEI_PASSTHRU   "enableUserDataSeiPassthru"

Definition at line 2480 of file ni_device_api.h.

◆ NI_DEC_PARAM_ERROR_THRESHOLD

#define NI_DEC_PARAM_ERROR_THRESHOLD   "ecErrThreshold"

Definition at line 2486 of file ni_device_api.h.

◆ NI_DEC_PARAM_FORCE_8BIT_0

#define NI_DEC_PARAM_FORCE_8BIT_0   "force8Bit0"

Definition at line 2450 of file ni_device_api.h.

◆ NI_DEC_PARAM_FORCE_8BIT_1

#define NI_DEC_PARAM_FORCE_8BIT_1   "force8Bit1"

Definition at line 2451 of file ni_device_api.h.

◆ NI_DEC_PARAM_FORCE_8BIT_2

#define NI_DEC_PARAM_FORCE_8BIT_2   "force8Bit2"

Definition at line 2452 of file ni_device_api.h.

◆ NI_DEC_PARAM_FORCE_LOW_DELAY

#define NI_DEC_PARAM_FORCE_LOW_DELAY   "forceLowDelay"

Definition at line 2477 of file ni_device_api.h.

◆ NI_DEC_PARAM_LOW_DELAY

#define NI_DEC_PARAM_LOW_DELAY   "lowDelay"

Definition at line 2476 of file ni_device_api.h.

◆ NI_DEC_PARAM_MAX_EXTRA_HW_FRAME_CNT

#define NI_DEC_PARAM_MAX_EXTRA_HW_FRAME_CNT   "maxExtraHwFrameCnt"

Definition at line 2489 of file ni_device_api.h.

◆ NI_DEC_PARAM_MIN_PACKETS_DELAY

#define NI_DEC_PARAM_MIN_PACKETS_DELAY   "minPacketsDelay"

Definition at line 2478 of file ni_device_api.h.

◆ NI_DEC_PARAM_MULTICORE_JOINT_MODE

#define NI_DEC_PARAM_MULTICORE_JOINT_MODE   "multicoreJointMode"

Definition at line 2474 of file ni_device_api.h.

◆ NI_DEC_PARAM_OUT

#define NI_DEC_PARAM_OUT   "out"

Definition at line 2447 of file ni_device_api.h.

◆ NI_DEC_PARAM_PKT_PTS_UNCHANGE

#define NI_DEC_PARAM_PKT_PTS_UNCHANGE   "pktPtsUnchange"

Definition at line 2491 of file ni_device_api.h.

◆ NI_DEC_PARAM_REDUCE_DPB_DELAY

#define NI_DEC_PARAM_REDUCE_DPB_DELAY   "reduceDpbDelay"

Definition at line 2496 of file ni_device_api.h.

◆ NI_DEC_PARAM_SAVE_PKT

#define NI_DEC_PARAM_SAVE_PKT   "savePkt"

Definition at line 2475 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_0

#define NI_DEC_PARAM_SCALE_0   "scale0"

Definition at line 2462 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_0_LONG_SHORT_ADAPT

#define NI_DEC_PARAM_SCALE_0_LONG_SHORT_ADAPT   "scale0LongShortAdapt"

Definition at line 2465 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_0_RES_CEIL

#define NI_DEC_PARAM_SCALE_0_RES_CEIL   "scale0ResCeil"

Definition at line 2468 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_0_ROUND

#define NI_DEC_PARAM_SCALE_0_ROUND   "scale0Round"

Definition at line 2471 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_1

#define NI_DEC_PARAM_SCALE_1   "scale1"

Definition at line 2463 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_1_LONG_SHORT_ADAPT

#define NI_DEC_PARAM_SCALE_1_LONG_SHORT_ADAPT   "scale1LongShortAdapt"

Definition at line 2466 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_1_RES_CEIL

#define NI_DEC_PARAM_SCALE_1_RES_CEIL   "scale1ResCeil"

Definition at line 2469 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_1_ROUND

#define NI_DEC_PARAM_SCALE_1_ROUND   "scale1Round"

Definition at line 2472 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_2

#define NI_DEC_PARAM_SCALE_2   "scale2"

Definition at line 2464 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_2_LONG_SHORT_ADAPT

#define NI_DEC_PARAM_SCALE_2_LONG_SHORT_ADAPT   "scale2LongShortAdapt"

Definition at line 2467 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_2_RES_CEIL

#define NI_DEC_PARAM_SCALE_2_RES_CEIL   "scale2ResCeil"

Definition at line 2470 of file ni_device_api.h.

◆ NI_DEC_PARAM_SCALE_2_ROUND

#define NI_DEC_PARAM_SCALE_2_ROUND   "scale2Round"

Definition at line 2473 of file ni_device_api.h.

◆ NI_DEC_PARAM_SEMI_PLANAR_0

#define NI_DEC_PARAM_SEMI_PLANAR_0   "semiplanar0"

Definition at line 2453 of file ni_device_api.h.

◆ NI_DEC_PARAM_SEMI_PLANAR_1

#define NI_DEC_PARAM_SEMI_PLANAR_1   "semiplanar1"

Definition at line 2454 of file ni_device_api.h.

◆ NI_DEC_PARAM_SEMI_PLANAR_2

#define NI_DEC_PARAM_SEMI_PLANAR_2   "semiplanar2"

Definition at line 2455 of file ni_device_api.h.

◆ NI_DEC_PARAM_SKIP_EXTRA_HEADERS

#define NI_DEC_PARAM_SKIP_EXTRA_HEADERS   "skipExtraHeaders"

Definition at line 2497 of file ni_device_api.h.

◆ NI_DEC_PARAM_SKIP_PTS_GUESS

#define NI_DEC_PARAM_SKIP_PTS_GUESS   "skipPtsGuess"

Definition at line 2490 of file ni_device_api.h.

◆ NI_DEC_PARAM_SURVIVE_STREAM_ERR

#define NI_DEC_PARAM_SURVIVE_STREAM_ERR   "surviveStreamErr"

Definition at line 2495 of file ni_device_api.h.

◆ NI_DEC_PARAM_SVC_T_DECODING_LAYER

#define NI_DEC_PARAM_SVC_T_DECODING_LAYER   "svctDecodingLayer"

Definition at line 2482 of file ni_device_api.h.

◆ NI_DEFAULT_CU_SIZE_MODE

#define NI_DEFAULT_CU_SIZE_MODE   7

Definition at line 158 of file ni_device_api.h.

◆ NI_DEFAULT_INTRA_QP

#define NI_DEFAULT_INTRA_QP   22

Definition at line 169 of file ni_device_api.h.

◆ NI_DEFAULT_KEEP_ALIVE_TIMEOUT

#define NI_DEFAULT_KEEP_ALIVE_TIMEOUT   3

Definition at line 311 of file ni_device_api.h.

◆ NI_DISABLE_USR_DATA_SEI_PASSTHRU

#define NI_DISABLE_USR_DATA_SEI_PASSTHRU   0

Definition at line 315 of file ni_device_api.h.

◆ NI_EC_ERR_THRESHOLD_DEFAULT

#define NI_EC_ERR_THRESHOLD_DEFAULT   10

Definition at line 325 of file ni_device_api.h.

◆ NI_EC_POLICY_BEST_EFFORT

#define NI_EC_POLICY_BEST_EFFORT   4

Definition at line 321 of file ni_device_api.h.

◆ NI_EC_POLICY_BEST_EFFORT_OUT_DC

#define NI_EC_POLICY_BEST_EFFORT_OUT_DC   6

Definition at line 323 of file ni_device_api.h.

◆ NI_EC_POLICY_DEFAULT

#define NI_EC_POLICY_DEFAULT   NI_EC_POLICY_BEST_EFFORT

Definition at line 324 of file ni_device_api.h.

◆ NI_EC_POLICY_IGNORE

#define NI_EC_POLICY_IGNORE   2

Definition at line 319 of file ni_device_api.h.

◆ NI_EC_POLICY_LIMITED_ERROR

#define NI_EC_POLICY_LIMITED_ERROR   5

Definition at line 322 of file ni_device_api.h.

◆ NI_EC_POLICY_SKIP

#define NI_EC_POLICY_SKIP   3

Definition at line 320 of file ni_device_api.h.

◆ NI_EC_POLICY_TOLERANT

#define NI_EC_POLICY_TOLERANT   1

Definition at line 318 of file ni_device_api.h.

◆ NI_ENABLE_AUD_FOR_GLOBAL_HEADER

#define NI_ENABLE_AUD_FOR_GLOBAL_HEADER   2

Definition at line 209 of file ni_device_api.h.

◆ NI_ENABLE_USR_DATA_SEI_PASSTHRU

#define NI_ENABLE_USR_DATA_SEI_PASSTHRU   1

Definition at line 316 of file ni_device_api.h.

◆ NI_ENC_BLOCK_RC_SIZE

#define NI_ENC_BLOCK_RC_SIZE   "blockRCSize"

Definition at line 2160 of file ni_device_api.h.

◆ NI_ENC_CTB_ROW_QP_STEP

#define NI_ENC_CTB_ROW_QP_STEP   "ctbRowQpStep"

Definition at line 2162 of file ni_device_api.h.

◆ NI_ENC_ENABLE_SSIM

#define NI_ENC_ENABLE_SSIM   "enableSSIM"

Definition at line 2187 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_CUSTOM_GOP_SIZE

#define NI_ENC_GOP_PARAMS_CUSTOM_GOP_SIZE   "customGopSize"

Definition at line 2048 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC0

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC0   "g0refPic0"

Definition at line 1839 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC0_USED

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC0_USED   "g0refPic0Used"

Definition at line 1840 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC1

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC1   "g0refPic1"

Definition at line 1841 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC1_USED

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC1_USED   "g0refPic1Used"

Definition at line 1842 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC2

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC2   "g0refPic2"

Definition at line 1843 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC2_USED

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC2_USED   "g0refPic2Used"

Definition at line 1844 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC3

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC3   "g0refPic3"

Definition at line 1845 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC3_USED

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC3_USED   "g0refPic3Used"

Definition at line 1846 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_NUM_REF_PICS

#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PICS   "g0numRefPics"

Definition at line 1838 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_PIC_TYPE

#define NI_ENC_GOP_PARAMS_G0_PIC_TYPE   "g0picType"

Definition at line 1837 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_POC_OFFSET

#define NI_ENC_GOP_PARAMS_G0_POC_OFFSET   "g0pocOffset"

Definition at line 1833 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_QP_OFFSET

#define NI_ENC_GOP_PARAMS_G0_QP_OFFSET   "g0QpOffset"

Definition at line 1834 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G0_TEMPORAL_ID

#define NI_ENC_GOP_PARAMS_G0_TEMPORAL_ID   "g0temporalId"

Definition at line 1836 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC0

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC0   "g1refPic0"

Definition at line 1854 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC0_USED

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC0_USED   "g1refPic0Used"

Definition at line 1855 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC1

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC1   "g1refPic1"

Definition at line 1856 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC1_USED

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC1_USED   "g1refPic1Used"

Definition at line 1857 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC2

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC2   "g1refPic2"

Definition at line 1858 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC2_USED

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC2_USED   "g1refPic2Used"

Definition at line 1859 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC3

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC3   "g1refPic3"

Definition at line 1860 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC3_USED

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC3_USED   "g1refPic3Used"

Definition at line 1861 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_NUM_REF_PICS

#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PICS   "g1numRefPics"

Definition at line 1853 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_PIC_TYPE

#define NI_ENC_GOP_PARAMS_G1_PIC_TYPE   "g1picType"

Definition at line 1852 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_POC_OFFSET

#define NI_ENC_GOP_PARAMS_G1_POC_OFFSET   "g1pocOffset"

Definition at line 1848 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_QP_OFFSET

#define NI_ENC_GOP_PARAMS_G1_QP_OFFSET   "g1QpOffset"

Definition at line 1849 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G1_TEMPORAL_ID

#define NI_ENC_GOP_PARAMS_G1_TEMPORAL_ID   "g1temporalId"

Definition at line 1851 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC0

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC0   "g2refPic0"

Definition at line 1869 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC0_USED

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC0_USED   "g2refPic0Used"

Definition at line 1870 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC1

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC1   "g2refPic1"

Definition at line 1871 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC1_USED

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC1_USED   "g2refPic1Used"

Definition at line 1872 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC2

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC2   "g2refPic2"

Definition at line 1873 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC2_USED

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC2_USED   "g2refPic2Used"

Definition at line 1874 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC3

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC3   "g2refPic3"

Definition at line 1875 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC3_USED

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC3_USED   "g2refPic3Used"

Definition at line 1876 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_NUM_REF_PICS

#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PICS   "g2numRefPics"

Definition at line 1868 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_PIC_TYPE

#define NI_ENC_GOP_PARAMS_G2_PIC_TYPE   "g2picType"

Definition at line 1867 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_POC_OFFSET

#define NI_ENC_GOP_PARAMS_G2_POC_OFFSET   "g2pocOffset"

Definition at line 1863 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_QP_OFFSET

#define NI_ENC_GOP_PARAMS_G2_QP_OFFSET   "g2QpOffset"

Definition at line 1864 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G2_TEMPORAL_ID

#define NI_ENC_GOP_PARAMS_G2_TEMPORAL_ID   "g2temporalId"

Definition at line 1866 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC0

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC0   "g3refPic0"

Definition at line 1884 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC0_USED

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC0_USED   "g3refPic0Used"

Definition at line 1885 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC1

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC1   "g3refPic1"

Definition at line 1886 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC1_USED

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC1_USED   "g3refPic1Used"

Definition at line 1887 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC2

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC2   "g3refPic2"

Definition at line 1888 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC2_USED

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC2_USED   "g3refPic2Used"

Definition at line 1889 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC3

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC3   "g3refPic3"

Definition at line 1890 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC3_USED

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC3_USED   "g3refPic3Used"

Definition at line 1891 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_NUM_REF_PICS

#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PICS   "g3numRefPics"

Definition at line 1883 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_PIC_TYPE

#define NI_ENC_GOP_PARAMS_G3_PIC_TYPE   "g3picType"

Definition at line 1882 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_POC_OFFSET

#define NI_ENC_GOP_PARAMS_G3_POC_OFFSET   "g3pocOffset"

Definition at line 1878 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_QP_OFFSET

#define NI_ENC_GOP_PARAMS_G3_QP_OFFSET   "g3QpOffset"

Definition at line 1879 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G3_TEMPORAL_ID

#define NI_ENC_GOP_PARAMS_G3_TEMPORAL_ID   "g3temporalId"

Definition at line 1881 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC0

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC0   "g4refPic0"

Definition at line 1899 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC0_USED

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC0_USED   "g4refPic0Used"

Definition at line 1900 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC1

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC1   "g4refPic1"

Definition at line 1901 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC1_USED

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC1_USED   "g4refPic1Used"

Definition at line 1902 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC2

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC2   "g4refPic2"

Definition at line 1903 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC2_USED

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC2_USED   "g4refPic2Used"

Definition at line 1904 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC3

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC3   "g4refPic3"

Definition at line 1905 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC3_USED

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC3_USED   "g4refPic3Used"

Definition at line 1906 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_NUM_REF_PICS

#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PICS   "g4numRefPics"

Definition at line 1898 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_PIC_TYPE

#define NI_ENC_GOP_PARAMS_G4_PIC_TYPE   "g4picType"

Definition at line 1897 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_POC_OFFSET

#define NI_ENC_GOP_PARAMS_G4_POC_OFFSET   "g4pocOffset"

Definition at line 1893 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_QP_OFFSET

#define NI_ENC_GOP_PARAMS_G4_QP_OFFSET   "g4QpOffset"

Definition at line 1894 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G4_TEMPORAL_ID

#define NI_ENC_GOP_PARAMS_G4_TEMPORAL_ID   "g4temporalId"

Definition at line 1896 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC0

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC0   "g5refPic0"

Definition at line 1914 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC0_USED

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC0_USED   "g5refPic0Used"

Definition at line 1915 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC1

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC1   "g5refPic1"

Definition at line 1916 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC1_USED

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC1_USED   "g5refPic1Used"

Definition at line 1917 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC2

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC2   "g5refPic2"

Definition at line 1918 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC2_USED

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC2_USED   "g5refPic2Used"

Definition at line 1919 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC3

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC3   "g5refPic3"

Definition at line 1920 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC3_USED

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC3_USED   "g5refPic3Used"

Definition at line 1921 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_NUM_REF_PICS

#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PICS   "g5numRefPics"

Definition at line 1913 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_PIC_TYPE

#define NI_ENC_GOP_PARAMS_G5_PIC_TYPE   "g5picType"

Definition at line 1912 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_POC_OFFSET

#define NI_ENC_GOP_PARAMS_G5_POC_OFFSET   "g5pocOffset"

Definition at line 1908 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_QP_OFFSET

#define NI_ENC_GOP_PARAMS_G5_QP_OFFSET   "g5QpOffset"

Definition at line 1909 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G5_TEMPORAL_ID

#define NI_ENC_GOP_PARAMS_G5_TEMPORAL_ID   "g5temporalId"

Definition at line 1911 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC0

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC0   "g6refPic0"

Definition at line 1929 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC0_USED

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC0_USED   "g6refPic0Used"

Definition at line 1930 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC1

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC1   "g6refPic1"

Definition at line 1931 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC1_USED

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC1_USED   "g6refPic1Used"

Definition at line 1932 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC2

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC2   "g6refPic2"

Definition at line 1933 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC2_USED

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC2_USED   "g6refPic2Used"

Definition at line 1934 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC3

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC3   "g6refPic3"

Definition at line 1935 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC3_USED

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC3_USED   "g6refPic3Used"

Definition at line 1936 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_NUM_REF_PICS

#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PICS   "g6numRefPics"

Definition at line 1928 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_PIC_TYPE

#define NI_ENC_GOP_PARAMS_G6_PIC_TYPE   "g6picType"

Definition at line 1927 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_POC_OFFSET

#define NI_ENC_GOP_PARAMS_G6_POC_OFFSET   "g6pocOffset"

Definition at line 1923 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_QP_OFFSET

#define NI_ENC_GOP_PARAMS_G6_QP_OFFSET   "g6QpOffset"

Definition at line 1924 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G6_TEMPORAL_ID

#define NI_ENC_GOP_PARAMS_G6_TEMPORAL_ID   "g6temporalId"

Definition at line 1926 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC0

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC0   "g7refPic0"

Definition at line 1944 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC0_USED

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC0_USED   "g7refPic0Used"

Definition at line 1945 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC1

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC1   "g7refPic1"

Definition at line 1946 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC1_USED

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC1_USED   "g7refPic1Used"

Definition at line 1947 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC2

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC2   "g7refPic2"

Definition at line 1948 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC2_USED

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC2_USED   "g7refPic2Used"

Definition at line 1949 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC3

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC3   "g7refPic3"

Definition at line 1950 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC3_USED

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC3_USED   "g7refPic3Used"

Definition at line 1951 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_NUM_REF_PICS

#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PICS   "g7numRefPics"

Definition at line 1943 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_PIC_TYPE

#define NI_ENC_GOP_PARAMS_G7_PIC_TYPE   "g7picType"

Definition at line 1942 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_POC_OFFSET

#define NI_ENC_GOP_PARAMS_G7_POC_OFFSET   "g7pocOffset"

Definition at line 1938 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_QP_OFFSET

#define NI_ENC_GOP_PARAMS_G7_QP_OFFSET   "g7QpOffset"

Definition at line 1939 of file ni_device_api.h.

◆ NI_ENC_GOP_PARAMS_G7_TEMPORAL_ID

#define NI_ENC_GOP_PARAMS_G7_TEMPORAL_ID   "g7temporalId"

Definition at line 1941 of file ni_device_api.h.

◆ NI_ENC_INLOOP_DS_RATIO

#define NI_ENC_INLOOP_DS_RATIO   "inLoopDSRatio"

Definition at line 2159 of file ni_device_api.h.

◆ NI_ENC_MAX_SEI_BUF_SIZE

#define NI_ENC_MAX_SEI_BUF_SIZE   NI_VPU_ALIGN64(1024)

Definition at line 399 of file ni_device_api.h.

◆ NI_ENC_MIN_RESOLUTION_HEIGHT

#define NI_ENC_MIN_RESOLUTION_HEIGHT   128

Definition at line 89 of file ni_device_api.h.

◆ NI_ENC_MIN_RESOLUTION_WIDTH

#define NI_ENC_MIN_RESOLUTION_WIDTH   144

Definition at line 88 of file ni_device_api.h.

◆ NI_ENC_NEW_RC_ENABLE

#define NI_ENC_NEW_RC_ENABLE   "newRcEnable"

Definition at line 2163 of file ni_device_api.h.

◆ NI_ENC_PARAM_AI_ENHANCE_LEVEL

#define NI_ENC_PARAM_AI_ENHANCE_LEVEL   "AIEnhanceLevel"

Definition at line 2197 of file ni_device_api.h.

◆ NI_ENC_PARAM_ALLOCATE_STRAEGY

#define NI_ENC_PARAM_ALLOCATE_STRAEGY   "encMemAllocateStrategy"

Definition at line 2231 of file ni_device_api.h.

◆ NI_ENC_PARAM_AV1_ERROR_RESILIENT_MODE

#define NI_ENC_PARAM_AV1_ERROR_RESILIENT_MODE   "av1ErrorResilientMode"

Definition at line 2189 of file ni_device_api.h.

◆ NI_ENC_PARAM_AVCC_HVCC

#define NI_ENC_PARAM_AVCC_HVCC   "avccHvcc"

Definition at line 2188 of file ni_device_api.h.

◆ NI_ENC_PARAM_BITRATE

#define NI_ENC_PARAM_BITRATE   "bitrate"

Definition at line 2062 of file ni_device_api.h.

◆ NI_ENC_PARAM_BITRATE_MODE

#define NI_ENC_PARAM_BITRATE_MODE   "bitrateMode"

Definition at line 2214 of file ni_device_api.h.

◆ NI_ENC_PARAM_BITRATE_WINDOW

#define NI_ENC_PARAM_BITRATE_WINDOW   "bitrateWindow"

Definition at line 2158 of file ni_device_api.h.

◆ NI_ENC_PARAM_CACHE_ROI

#define NI_ENC_PARAM_CACHE_ROI   "cacheRoi"

Definition at line 2066 of file ni_device_api.h.

◆ NI_ENC_PARAM_CBR

#define NI_ENC_PARAM_CBR   "cbr"

Definition at line 2122 of file ni_device_api.h.

◆ NI_ENC_PARAM_CHROMA_QP_OFFSET

#define NI_ENC_PARAM_CHROMA_QP_OFFSET   "chromaQpOffset"

Definition at line 2155 of file ni_device_api.h.

◆ NI_ENC_PARAM_COLOR_PRIMARY

#define NI_ENC_PARAM_COLOR_PRIMARY   "colorPri"

Definition at line 2177 of file ni_device_api.h.

◆ NI_ENC_PARAM_COLOR_SPACE

#define NI_ENC_PARAM_COLOR_SPACE   "colorSpc"

Definition at line 2179 of file ni_device_api.h.

◆ NI_ENC_PARAM_COLOR_TRANSFER_CHARACTERISTIC

#define NI_ENC_PARAM_COLOR_TRANSFER_CHARACTERISTIC   "colorTrc"

Definition at line 2178 of file ni_device_api.h.

◆ NI_ENC_PARAM_CONF_WIN_BOTTOM

#define NI_ENC_PARAM_CONF_WIN_BOTTOM   "confWinBot"

Definition at line 2097 of file ni_device_api.h.

◆ NI_ENC_PARAM_CONF_WIN_LEFT

#define NI_ENC_PARAM_CONF_WIN_LEFT   "confWinLeft"

Definition at line 2098 of file ni_device_api.h.

◆ NI_ENC_PARAM_CONF_WIN_RIGHT

#define NI_ENC_PARAM_CONF_WIN_RIGHT   "confWinRight"

Definition at line 2099 of file ni_device_api.h.

◆ NI_ENC_PARAM_CONF_WIN_TOP

#define NI_ENC_PARAM_CONF_WIN_TOP   "confWinTop"

Definition at line 2096 of file ni_device_api.h.

◆ NI_ENC_PARAM_CONSTANT_RATE_FACTOR

#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR   NI_DEPRECATED_MACRO "crf"

Definition at line 2127 of file ni_device_api.h.

◆ NI_ENC_PARAM_CONSTANT_RATE_FACTOR_FLOAT

#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR_FLOAT   "crfFloat"

Definition at line 2128 of file ni_device_api.h.

◆ NI_ENC_PARAM_CONSTANT_RATE_FACTOR_MAX

#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR_MAX   "crfMax"

Definition at line 2203 of file ni_device_api.h.

◆ NI_ENC_PARAM_CPLX_DECAY

#define NI_ENC_PARAM_CPLX_DECAY   "cplxDecay"

Definition at line 2211 of file ni_device_api.h.

◆ NI_ENC_PARAM_CRF_MAX_IFRAME_ENABLE

#define NI_ENC_PARAM_CRF_MAX_IFRAME_ENABLE   "crfMaxIframeEnable"

Definition at line 2219 of file ni_device_api.h.

◆ NI_ENC_PARAM_CROP_HEIGHT

#define NI_ENC_PARAM_CROP_HEIGHT   "cropHeight"

Definition at line 2200 of file ni_device_api.h.

◆ NI_ENC_PARAM_CROP_WIDTH

#define NI_ENC_PARAM_CROP_WIDTH   "cropWidth"

Definition at line 2199 of file ni_device_api.h.

◆ NI_ENC_PARAM_CTB_RC_MODE

#define NI_ENC_PARAM_CTB_RC_MODE   "ctbRcMode"

Definition at line 2135 of file ni_device_api.h.

◆ NI_ENC_PARAM_CU_SIZE_MODE

#define NI_ENC_PARAM_CU_SIZE_MODE   "cuSizeMode"

Definition at line 2081 of file ni_device_api.h.

◆ NI_ENC_PARAM_CU_TREE_FACTOR

#define NI_ENC_PARAM_CU_TREE_FACTOR   "cuTreeFactor"

Definition at line 2207 of file ni_device_api.h.

◆ NI_ENC_PARAM_CUSTOMIZE_ROI_QP_LEVEL

#define NI_ENC_PARAM_CUSTOMIZE_ROI_QP_LEVEL   "customizeQpLevel"

Definition at line 2228 of file ni_device_api.h.

◆ NI_ENC_PARAM_CUSTOMIZE_ROI_QP_MAP

#define NI_ENC_PARAM_CUSTOMIZE_ROI_QP_MAP   "customizeQpMapFile"

Definition at line 2229 of file ni_device_api.h.

◆ NI_ENC_PARAM_DDR_PRIORITY_MODE

#define NI_ENC_PARAM_DDR_PRIORITY_MODE   "ddrPriorityMode"

Definition at line 2213 of file ni_device_api.h.

◆ NI_ENC_PARAM_DECODING_REFRESH_TYPE

#define NI_ENC_PARAM_DECODING_REFRESH_TYPE   "decodingRefreshType"

Definition at line 2105 of file ni_device_api.h.

◆ NI_ENC_PARAM_DISABLE_ADAPTIVE_BUFFERS

#define NI_ENC_PARAM_DISABLE_ADAPTIVE_BUFFERS   "disableAdaptiveBuffers"

Definition at line 2221 of file ni_device_api.h.

◆ NI_ENC_PARAM_DISABLE_BFRAME_RDOQ

#define NI_ENC_PARAM_DISABLE_BFRAME_RDOQ   "disableBframeRDOQ"

Definition at line 2222 of file ni_device_api.h.

◆ NI_ENC_PARAM_DOLBY_VISION_PROFILE

#define NI_ENC_PARAM_DOLBY_VISION_PROFILE   "dolbyVisionProfile"

Definition at line 2140 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_2PASS_GOP

#define NI_ENC_PARAM_ENABLE_2PASS_GOP   "enable2PassGop"

Definition at line 2195 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_8X8_TRANSFORM

#define NI_ENC_PARAM_ENABLE_8X8_TRANSFORM   "transform8x8Enable"

Definition at line 2108 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_ACQUIRE_LIMIT

#define NI_ENC_PARAM_ENABLE_ACQUIRE_LIMIT   "enableAcqLimit"

Definition at line 2225 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_AI_ENHANCE

#define NI_ENC_PARAM_ENABLE_AI_ENHANCE   "enableAIEnhance"

Definition at line 2193 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_AI_HVSPLUS

#define NI_ENC_PARAM_ENABLE_AI_HVSPLUS   "enableHVSPlus"

Definition at line 2194 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_ALL_SEI_PASSTHRU

#define NI_ENC_PARAM_ENABLE_ALL_SEI_PASSTHRU   "enableAllSeiPassthru"

Definition at line 2218 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_AUD

#define NI_ENC_PARAM_ENABLE_AUD   "enableAUD"

Definition at line 2134 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_COMPENSATE_QP

#define NI_ENC_PARAM_ENABLE_COMPENSATE_QP   "enableCompensateQp"

Definition at line 2175 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_CU_LEVEL_RATE_CONTROL

#define NI_ENC_PARAM_ENABLE_CU_LEVEL_RATE_CONTROL   "cuLevelRCEnable"

Definition at line 2087 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_DYNAMIC_16X16_MERGE

#define NI_ENC_PARAM_ENABLE_DYNAMIC_16X16_MERGE   "dynamicMerge16x16Enable"

Definition at line 2084 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_DYNAMIC_32X32_MERGE

#define NI_ENC_PARAM_ENABLE_DYNAMIC_32X32_MERGE   "dynamicMerge32x32Enable"

Definition at line 2085 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_DYNAMIC_8X8_MERGE

#define NI_ENC_PARAM_ENABLE_DYNAMIC_8X8_MERGE   "dynamicMerge8x8Enable"

Definition at line 2083 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_FILLER

#define NI_ENC_PARAM_ENABLE_FILLER   "fillerEnable"

Definition at line 2143 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_HVS_QP

#define NI_ENC_PARAM_ENABLE_HVS_QP   "hvsQPEnable"

Definition at line 2088 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_HVS_QP_SCALE

#define NI_ENC_PARAM_ENABLE_HVS_QP_SCALE   "hvsQpScaleEnable"

Definition at line 2089 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_IP_RATIO

#define NI_ENC_PARAM_ENABLE_IP_RATIO   "enableipRatio"

Definition at line 2209 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_MB_LEVEL_RC

#define NI_ENC_PARAM_ENABLE_MB_LEVEL_RC   "mbLevelRcEnable"

Definition at line 2117 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_PIC_SKIP

#define NI_ENC_PARAM_ENABLE_PIC_SKIP   "picSkip"

Definition at line 2144 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_RATE_CONTROL

#define NI_ENC_PARAM_ENABLE_RATE_CONTROL   "RcEnable"

Definition at line 2086 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_SMOOTH_CRF

#define NI_ENC_PARAM_ENABLE_SMOOTH_CRF   "enableSmoothCRF"

Definition at line 2174 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_TIMECODE

#define NI_ENC_PARAM_ENABLE_TIMECODE   "enableTimecode"

Definition at line 2233 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENABLE_VFR

#define NI_ENC_PARAM_ENABLE_VFR   "enableVFR"

Definition at line 2186 of file ni_device_api.h.

◆ NI_ENC_PARAM_ENTROPY_CODING_MODE

#define NI_ENC_PARAM_ENTROPY_CODING_MODE   "entropyCodingMode"

Definition at line 2109 of file ni_device_api.h.

◆ NI_ENC_PARAM_FORCE_BFRAME_QPFACTOR

#define NI_ENC_PARAM_FORCE_BFRAME_QPFACTOR   "forceBframeQpfactor"

Definition at line 2223 of file ni_device_api.h.

◆ NI_ENC_PARAM_FORCE_FRAME_TYPE

#define NI_ENC_PARAM_FORCE_FRAME_TYPE   "forceFrameType"

Definition at line 2070 of file ni_device_api.h.

◆ NI_ENC_PARAM_FORCE_PIC_QP_DEMO_MODE

#define NI_ENC_PARAM_FORCE_PIC_QP_DEMO_MODE   "ForcePicQpDemoMode"

Definition at line 2067 of file ni_device_api.h.

◆ NI_ENC_PARAM_FORCED_HEADER_ENABLE

#define NI_ENC_PARAM_FORCED_HEADER_ENABLE   "repeatHeaders"

Definition at line 2094 of file ni_device_api.h.

◆ NI_ENC_PARAM_FRAME_RATE

#define NI_ENC_PARAM_FRAME_RATE   "frameRate"

Definition at line 2102 of file ni_device_api.h.

◆ NI_ENC_PARAM_FRAME_RATE_DENOM

#define NI_ENC_PARAM_FRAME_RATE_DENOM   "frameRateDenom"

Definition at line 2103 of file ni_device_api.h.

◆ NI_ENC_PARAM_GDR_DURATION

#define NI_ENC_PARAM_GDR_DURATION   "intraRefreshDuration"

Definition at line 2138 of file ni_device_api.h.

◆ NI_ENC_PARAM_GEN_HDRS

#define NI_ENC_PARAM_GEN_HDRS   "GenHdrs"

Definition at line 2068 of file ni_device_api.h.

◆ NI_ENC_PARAM_GET_PSNR_MODE

#define NI_ENC_PARAM_GET_PSNR_MODE   "getPsnrMode"

Definition at line 2226 of file ni_device_api.h.

◆ NI_ENC_PARAM_GET_RECONSTRUCTED_MODE

#define NI_ENC_PARAM_GET_RECONSTRUCTED_MODE   "getReconstructedMode"

Definition at line 2235 of file ni_device_api.h.

◆ NI_ENC_PARAM_GOP_LOW_DELAY

#define NI_ENC_PARAM_GOP_LOW_DELAY   "gopLowdelay"

Definition at line 2137 of file ni_device_api.h.

◆ NI_ENC_PARAM_GOP_PRESET_IDX

#define NI_ENC_PARAM_GOP_PRESET_IDX   "gopPresetIdx"

Definition at line 2076 of file ni_device_api.h.

◆ NI_ENC_PARAM_GOP_SIZE

#define NI_ENC_PARAM_GOP_SIZE   "gopSize"

Definition at line 2136 of file ni_device_api.h.

◆ NI_ENC_PARAM_HIGH_TIER

#define NI_ENC_PARAM_HIGH_TIER   "high-tier"

Definition at line 2073 of file ni_device_api.h.

◆ NI_ENC_PARAM_HORIZONTAL_OFFSET

#define NI_ENC_PARAM_HORIZONTAL_OFFSET   "horOffset"

Definition at line 2201 of file ni_device_api.h.

◆ NI_ENC_PARAM_HRD_ENABLE

#define NI_ENC_PARAM_HRD_ENABLE   "hrdEnable"

Definition at line 2139 of file ni_device_api.h.

◆ NI_ENC_PARAM_HVS_BASE_MB_COMPLEXITY

#define NI_ENC_PARAM_HVS_BASE_MB_COMPLEXITY   "hvsBaseMbComplexity"

Definition at line 2216 of file ni_device_api.h.

◆ NI_ENC_PARAM_HVS_QP_SCALE

#define NI_ENC_PARAM_HVS_QP_SCALE   "hvsQpScale"

Definition at line 2090 of file ni_device_api.h.

◆ NI_ENC_PARAM_HVSPLUS_LEVEL

#define NI_ENC_PARAM_HVSPLUS_LEVEL   "HVSPlusLevel"

Definition at line 2198 of file ni_device_api.h.

◆ NI_ENC_PARAM_IFRAME_SIZE_RATIO

#define NI_ENC_PARAM_IFRAME_SIZE_RATIO   "iFrameSizeRatio"

Definition at line 2171 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_MB_REFRESH_ARG

#define NI_ENC_PARAM_INTRA_MB_REFRESH_ARG   "intraMbRefreshArg"

Definition at line 2114 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_MB_REFRESH_MODE

#define NI_ENC_PARAM_INTRA_MB_REFRESH_MODE   "intraMbRefreshMode"

Definition at line 2113 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_PERIOD

#define NI_ENC_PARAM_INTRA_PERIOD   "intraPeriod"

Definition at line 2100 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_QP

#define NI_ENC_PARAM_INTRA_QP   "intraQP"

Definition at line 2104 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_QP_DELTA

#define NI_ENC_PARAM_INTRA_QP_DELTA   "intraQpDelta"

Definition at line 2164 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_REFRESH_ARG

#define NI_ENC_PARAM_INTRA_REFRESH_ARG   "intraRefreshArg"

Definition at line 2116 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_REFRESH_MIN_PERIOD

#define NI_ENC_PARAM_INTRA_REFRESH_MIN_PERIOD   "intraRefreshMinPeriod"

Definition at line 2123 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_REFRESH_MODE

#define NI_ENC_PARAM_INTRA_REFRESH_MODE   "intraRefreshMode"

Definition at line 2115 of file ni_device_api.h.

◆ NI_ENC_PARAM_INTRA_REFRESH_RESET

#define NI_ENC_PARAM_INTRA_REFRESH_RESET   "intraRefreshResetOnForceIDR"

Definition at line 2106 of file ni_device_api.h.

◆ NI_ENC_PARAM_IP_RATIO

#define NI_ENC_PARAM_IP_RATIO   "ipRatio"

Definition at line 2208 of file ni_device_api.h.

◆ NI_ENC_PARAM_JPEG_QLEVEL

#define NI_ENC_PARAM_JPEG_QLEVEL   "qlevel"

Definition at line 2154 of file ni_device_api.h.

◆ NI_ENC_PARAM_LEVEL

#define NI_ENC_PARAM_LEVEL   "level"

Definition at line 2072 of file ni_device_api.h.

◆ NI_ENC_PARAM_LOG

#define NI_ENC_PARAM_LOG   "log"

Definition at line 2075 of file ni_device_api.h.

◆ NI_ENC_PARAM_LOG_LEVEL

#define NI_ENC_PARAM_LOG_LEVEL   "log-level"

Definition at line 2074 of file ni_device_api.h.

◆ NI_ENC_PARAM_LONG_TERM_REFERENCE_COUNT

#define NI_ENC_PARAM_LONG_TERM_REFERENCE_COUNT   "longTermReferenceCount"

Definition at line 2166 of file ni_device_api.h.

◆ NI_ENC_PARAM_LONG_TERM_REFERENCE_ENABLE

#define NI_ENC_PARAM_LONG_TERM_REFERENCE_ENABLE   "longTermReferenceEnable"

Definition at line 2165 of file ni_device_api.h.

◆ NI_ENC_PARAM_LONG_TERM_REFERENCE_INTERVAL

#define NI_ENC_PARAM_LONG_TERM_REFERENCE_INTERVAL   "longTermReferenceInterval"

Definition at line 2167 of file ni_device_api.h.

◆ NI_ENC_PARAM_LOOK_AHEAD_DEPTH

#define NI_ENC_PARAM_LOOK_AHEAD_DEPTH   "lookAheadDepth"

Definition at line 2133 of file ni_device_api.h.

◆ NI_ENC_PARAM_LOW_DELAY

#define NI_ENC_PARAM_LOW_DELAY   "lowDelay"

Definition at line 2077 of file ni_device_api.h.

◆ NI_ENC_PARAM_LTR_FIRST_GAP

#define NI_ENC_PARAM_LTR_FIRST_GAP   "ltrFirstGap"

Definition at line 2151 of file ni_device_api.h.

◆ NI_ENC_PARAM_LTR_NEXT_INTERVAL

#define NI_ENC_PARAM_LTR_NEXT_INTERVAL   "ltrNextInterval"

Definition at line 2152 of file ni_device_api.h.

◆ NI_ENC_PARAM_LTR_REF_INTERVAL

#define NI_ENC_PARAM_LTR_REF_INTERVAL   "ltrRefInterval"

Definition at line 2149 of file ni_device_api.h.

◆ NI_ENC_PARAM_LTR_REF_QPOFFSET

#define NI_ENC_PARAM_LTR_REF_QPOFFSET   "ltrRefQpOffset"

Definition at line 2150 of file ni_device_api.h.

◆ NI_ENC_PARAM_MASTER_DISPLAY

#define NI_ENC_PARAM_MASTER_DISPLAY   "masterDisplay"

Definition at line 2132 of file ni_device_api.h.

◆ NI_ENC_PARAM_MAX_CLL

#define NI_ENC_PARAM_MAX_CLL   "maxCLL"

Definition at line 2131 of file ni_device_api.h.

◆ NI_ENC_PARAM_MAX_CONSUTIVE_SKIP_FRAME_NUMBER

#define NI_ENC_PARAM_MAX_CONSUTIVE_SKIP_FRAME_NUMBER   "maxConsecutiveSkipFrameNum"

Definition at line 2169 of file ni_device_api.h.

◆ NI_ENC_PARAM_MAX_DELTA_QP

#define NI_ENC_PARAM_MAX_DELTA_QP   "maxDeltaQp"

Definition at line 2093 of file ni_device_api.h.

◆ NI_ENC_PARAM_MAX_FRAME_SIZE_BITS_LOW_DELAY

#define NI_ENC_PARAM_MAX_FRAME_SIZE_BITS_LOW_DELAY   "maxFrameSize-Bits"

Definition at line 2147 of file ni_device_api.h.

◆ NI_ENC_PARAM_MAX_FRAME_SIZE_BYTES_LOW_DELAY

#define NI_ENC_PARAM_MAX_FRAME_SIZE_BYTES_LOW_DELAY   "maxFrameSize-Bytes"

Definition at line 2148 of file ni_device_api.h.

◆ NI_ENC_PARAM_MAX_FRAME_SIZE_LOW_DELAY

#define NI_ENC_PARAM_MAX_FRAME_SIZE_LOW_DELAY   NI_DEPRECATED_MACRO "maxFrameSize"

Definition at line 2146 of file ni_device_api.h.

◆ NI_ENC_PARAM_MAX_NUM_MERGE

#define NI_ENC_PARAM_MAX_NUM_MERGE   "maxNumMerge"

Definition at line 2082 of file ni_device_api.h.

◆ NI_ENC_PARAM_MAX_QP

#define NI_ENC_PARAM_MAX_QP   "maxQp"

Definition at line 2092 of file ni_device_api.h.

◆ NI_ENC_PARAM_MIN_FRAMES_DELAY

#define NI_ENC_PARAM_MIN_FRAMES_DELAY   "minFramesDelay"

Definition at line 2078 of file ni_device_api.h.

◆ NI_ENC_PARAM_MIN_QP

#define NI_ENC_PARAM_MIN_QP   "minQp"

Definition at line 2091 of file ni_device_api.h.

◆ NI_ENC_PARAM_MOTION_CONSTRAINED_MODE

#define NI_ENC_PARAM_MOTION_CONSTRAINED_MODE   "motionConstrainedMode"

Definition at line 2230 of file ni_device_api.h.

◆ NI_ENC_PARAM_MULTICORE_JOINT_MODE

#define NI_ENC_PARAM_MULTICORE_JOINT_MODE   "multicoreJointMode"

Definition at line 2153 of file ni_device_api.h.

◆ NI_ENC_PARAM_NO_HW_MULTIPASS_SUPPORT

#define NI_ENC_PARAM_NO_HW_MULTIPASS_SUPPORT   "noHWMultiPassSupport"

Definition at line 2206 of file ni_device_api.h.

◆ NI_ENC_PARAM_NO_MBTREE

#define NI_ENC_PARAM_NO_MBTREE   "noMbtree"

Definition at line 2205 of file ni_device_api.h.

◆ NI_ENC_PARAM_PADDING

#define NI_ENC_PARAM_PADDING   "padding"

Definition at line 2069 of file ni_device_api.h.

◆ NI_ENC_PARAM_PASS1_QP

#define NI_ENC_PARAM_PASS1_QP   "pass1Qp"

Definition at line 2215 of file ni_device_api.h.

◆ NI_ENC_PARAM_PB_RATIO

#define NI_ENC_PARAM_PB_RATIO   "pbRatio"

Definition at line 2210 of file ni_device_api.h.

◆ NI_ENC_PARAM_PPS_INIT_QP

#define NI_ENC_PARAM_PPS_INIT_QP   "ppsInitQp"

Definition at line 2212 of file ni_device_api.h.

◆ NI_ENC_PARAM_PREFERRED_TRANSFER_CHARACTERISTICS

#define NI_ENC_PARAM_PREFERRED_TRANSFER_CHARACTERISTICS   "prefTRC"

Definition at line 2118 of file ni_device_api.h.

◆ NI_ENC_PARAM_PROFILE

#define NI_ENC_PARAM_PROFILE   "profile"

Definition at line 2071 of file ni_device_api.h.

◆ NI_ENC_PARAM_PSNR_INTERVAL

#define NI_ENC_PARAM_PSNR_INTERVAL   "intervalOfPsnr"

Definition at line 2227 of file ni_device_api.h.

◆ NI_ENC_PARAM_QCOMP

#define NI_ENC_PARAM_QCOMP   "qcomp"

Definition at line 2204 of file ni_device_api.h.

◆ NI_ENC_PARAM_RC_INIT_DELAY

#define NI_ENC_PARAM_RC_INIT_DELAY   "RcInitDelay"

Definition at line 2121 of file ni_device_api.h.

◆ NI_ENC_PARAM_RDO_LEVEL

#define NI_ENC_PARAM_RDO_LEVEL   "rdoLevel"

Definition at line 2129 of file ni_device_api.h.

◆ NI_ENC_PARAM_RDO_QUANT

#define NI_ENC_PARAM_RDO_QUANT   "EnableRdoQuant"

Definition at line 2130 of file ni_device_api.h.

◆ NI_ENC_PARAM_RECONF_DEMO_MODE

#define NI_ENC_PARAM_RECONF_DEMO_MODE   "ReconfDemoMode"

Definition at line 2063 of file ni_device_api.h.

◆ NI_ENC_PARAM_RECONF_FILE

#define NI_ENC_PARAM_RECONF_FILE   "ReconfFile"

Definition at line 2064 of file ni_device_api.h.

◆ NI_ENC_PARAM_ROI_DEMO_MODE

#define NI_ENC_PARAM_ROI_DEMO_MODE   "RoiDemoMode"

Definition at line 2065 of file ni_device_api.h.

◆ NI_ENC_PARAM_ROI_ENABLE

#define NI_ENC_PARAM_ROI_ENABLE   "roiEnable"

Definition at line 2095 of file ni_device_api.h.

◆ NI_ENC_PARAM_SAR_DENOM

#define NI_ENC_PARAM_SAR_DENOM   "sarDenom"

Definition at line 2182 of file ni_device_api.h.

◆ NI_ENC_PARAM_SAR_NUM

#define NI_ENC_PARAM_SAR_NUM   "sarNum"

Definition at line 2181 of file ni_device_api.h.

◆ NI_ENC_PARAM_SCENE_CHANG_DETECT_LEVEL

#define NI_ENC_PARAM_SCENE_CHANG_DETECT_LEVEL   "sceneChangeDetectLevel"

Definition at line 2173 of file ni_device_api.h.

◆ NI_ENC_PARAM_SKIP_FRAME_ENABLE

#define NI_ENC_PARAM_SKIP_FRAME_ENABLE   "skipFrameEnable"

Definition at line 2168 of file ni_device_api.h.

◆ NI_ENC_PARAM_SKIP_FRAME_INTERVAL

#define NI_ENC_PARAM_SKIP_FRAME_INTERVAL   "skipFrameInterVal"

Definition at line 2170 of file ni_device_api.h.

◆ NI_ENC_PARAM_SLICE_ARG

#define NI_ENC_PARAM_SLICE_ARG   "sliceArg"

Definition at line 2112 of file ni_device_api.h.

◆ NI_ENC_PARAM_SLICE_MODE

#define NI_ENC_PARAM_SLICE_MODE   "sliceMode"

Definition at line 2111 of file ni_device_api.h.

◆ NI_ENC_PARAM_SPATIAL_LAYERS

#define NI_ENC_PARAM_SPATIAL_LAYERS   "spatialLayers"

Definition at line 2232 of file ni_device_api.h.

◆ NI_ENC_PARAM_SPATIAL_LAYERS_REF_BASE_LAYER

#define NI_ENC_PARAM_SPATIAL_LAYERS_REF_BASE_LAYER   "spatialLayersRefBaseLayer"

Definition at line 2234 of file ni_device_api.h.

◆ NI_ENC_PARAM_STATIC_MMAP_THRESHOLD

#define NI_ENC_PARAM_STATIC_MMAP_THRESHOLD   "staticMmapThreshold"

Definition at line 2191 of file ni_device_api.h.

◆ NI_ENC_PARAM_STATISTIC_OUTPUT_LEVEL

#define NI_ENC_PARAM_STATISTIC_OUTPUT_LEVEL   "statisticOutputLevel"

Definition at line 2217 of file ni_device_api.h.

◆ NI_ENC_PARAM_STILL_IMAGE_DETECT_LEVEL

#define NI_ENC_PARAM_STILL_IMAGE_DETECT_LEVEL   "stillImageDetectLevel"

Definition at line 2172 of file ni_device_api.h.

◆ NI_ENC_PARAM_TEMPORAL_LAYERS_ENABLE

#define NI_ENC_PARAM_TEMPORAL_LAYERS_ENABLE   "temporalLayersEnable"

Definition at line 2192 of file ni_device_api.h.

◆ NI_ENC_PARAM_TOL_RC_INTER

#define NI_ENC_PARAM_TOL_RC_INTER   "tolCtbRcInter"

Definition at line 2156 of file ni_device_api.h.

◆ NI_ENC_PARAM_TOL_RC_INTRA

#define NI_ENC_PARAM_TOL_RC_INTRA   "tolCtbRcIntra"

Definition at line 2157 of file ni_device_api.h.

◆ NI_ENC_PARAM_TRANS_RATE

#define NI_ENC_PARAM_TRANS_RATE   "transRate"

Definition at line 2101 of file ni_device_api.h.

◆ NI_ENC_PARAM_TUNE_BFRAME_VISUAL

#define NI_ENC_PARAM_TUNE_BFRAME_VISUAL   "tuneBframeVisual"

Definition at line 2224 of file ni_device_api.h.

◆ NI_ENC_PARAM_USE_LOW_DELAY_POC_TYPE

#define NI_ENC_PARAM_USE_LOW_DELAY_POC_TYPE   "useLowDelayPocType"

Definition at line 2080 of file ni_device_api.h.

◆ NI_ENC_PARAM_USE_RECOMMENDED_ENC_PARAMS

#define NI_ENC_PARAM_USE_RECOMMENDED_ENC_PARAMS   "useRecommendEncParam"

Definition at line 2079 of file ni_device_api.h.

◆ NI_ENC_PARAM_VBV_BUFFER_REENCODE

#define NI_ENC_PARAM_VBV_BUFFER_REENCODE   "vbvBufferReencode"

Definition at line 2236 of file ni_device_api.h.

◆ NI_ENC_PARAM_VBV_BUFFER_SIZE

#define NI_ENC_PARAM_VBV_BUFFER_SIZE   "vbvBufferSize"

Definition at line 2141 of file ni_device_api.h.

◆ NI_ENC_PARAM_VBV_MAXRAE

#define NI_ENC_PARAM_VBV_MAXRAE   "vbvMaxRate"

Definition at line 2142 of file ni_device_api.h.

◆ NI_ENC_PARAM_VBV_MINRATE

#define NI_ENC_PARAM_VBV_MINRATE   "vbvMinRate"

Definition at line 2220 of file ni_device_api.h.

◆ NI_ENC_PARAM_VERTICAL_OFFSET

#define NI_ENC_PARAM_VERTICAL_OFFSET   "verOffset"

Definition at line 2202 of file ni_device_api.h.

◆ NI_ENC_PARAM_VIDEO_FULL_RANGE_FLAG

#define NI_ENC_PARAM_VIDEO_FULL_RANGE_FLAG   "videoFullRangeFlag"

Definition at line 2184 of file ni_device_api.h.

◆ NI_ENC_PARAM_ZEROCOPY_MODE

#define NI_ENC_PARAM_ZEROCOPY_MODE   "zeroCopyMode"

Definition at line 2196 of file ni_device_api.h.

◆ NI_ENC_RC_QP_DELTA_RANGE

#define NI_ENC_RC_QP_DELTA_RANGE   "rcQpDeltaRange"

Definition at line 2161 of file ni_device_api.h.

◆ NI_ENC_REPEAT_HEADERS_ALL_I_FRAMES

#define NI_ENC_REPEAT_HEADERS_ALL_I_FRAMES   1

Definition at line 2057 of file ni_device_api.h.

◆ NI_ENC_REPEAT_HEADERS_FIRST_IDR

#define NI_ENC_REPEAT_HEADERS_FIRST_IDR   0

Definition at line 2056 of file ni_device_api.h.

◆ NI_FRAME_BIG_ENDIAN

#define NI_FRAME_BIG_ENDIAN   1

Definition at line 109 of file ni_device_api.h.

◆ NI_FRAME_LITTLE_ENDIAN

#define NI_FRAME_LITTLE_ENDIAN   0

Definition at line 108 of file ni_device_api.h.

◆ NI_HDR10P_SEI_BYTE0

#define NI_HDR10P_SEI_BYTE0   0xB5

Definition at line 452 of file ni_device_api.h.

◆ NI_HDR10P_SEI_BYTE1

#define NI_HDR10P_SEI_BYTE1   0x00

Definition at line 453 of file ni_device_api.h.

◆ NI_HDR10P_SEI_BYTE2

#define NI_HDR10P_SEI_BYTE2   0x3c

Definition at line 454 of file ni_device_api.h.

◆ NI_HDR10P_SEI_BYTE3

#define NI_HDR10P_SEI_BYTE3   0x00

Definition at line 455 of file ni_device_api.h.

◆ NI_HDR10P_SEI_BYTE4

#define NI_HDR10P_SEI_BYTE4   0x01

Definition at line 456 of file ni_device_api.h.

◆ NI_HDR10P_SEI_BYTE5

#define NI_HDR10P_SEI_BYTE5   0x04

Definition at line 457 of file ni_device_api.h.

◆ NI_HDR10P_SEI_BYTE6

#define NI_HDR10P_SEI_BYTE6   0x00

Definition at line 459 of file ni_device_api.h.

◆ NI_HDR10P_SEI_HDR_H264_LEN

#define NI_HDR10P_SEI_HDR_H264_LEN   8

Definition at line 463 of file ni_device_api.h.

◆ NI_HDR10P_SEI_HDR_HEVC_LEN

#define NI_HDR10P_SEI_HDR_HEVC_LEN   9

Definition at line 462 of file ni_device_api.h.

◆ NI_INTRA_QP_RANGE

#define NI_INTRA_QP_RANGE   25

Definition at line 170 of file ni_device_api.h.

◆ NI_INVALID_SESSION_ID

#define NI_INVALID_SESSION_ID   0xFFFF

Definition at line 111 of file ni_device_api.h.

◆ NI_INVALID_SVCT_DECODING_LAYER

#define NI_INVALID_SVCT_DECODING_LAYER   -1

Definition at line 317 of file ni_device_api.h.

◆ NI_KEEP_ALIVE_TIMEOUT

#define NI_KEEP_ALIVE_TIMEOUT   "keepAliveTimeout"

Definition at line 2058 of file ni_device_api.h.

◆ NI_MAX_ASPECTRATIO

#define NI_MAX_ASPECTRATIO   65535

Definition at line 117 of file ni_device_api.h.

◆ NI_MAX_BIN

#define NI_MAX_BIN   1

Definition at line 174 of file ni_device_api.h.

◆ NI_MAX_BITRATE

#define NI_MAX_BITRATE   1000000000

Definition at line 113 of file ni_device_api.h.

◆ NI_MAX_CU_SIZE_MODE

#define NI_MAX_CU_SIZE_MODE   2

Definition at line 156 of file ni_device_api.h.

◆ NI_MAX_CUSTOM_SEI_DATA

#define NI_MAX_CUSTOM_SEI_DATA   (8192)

Definition at line 428 of file ni_device_api.h.

◆ NI_MAX_CUSTOM_SEI_PASSTHRU

#define NI_MAX_CUSTOM_SEI_PASSTHRU   254

Definition at line 314 of file ni_device_api.h.

◆ NI_MAX_DECODING_REFRESH_TYPE

#define NI_MAX_DECODING_REFRESH_TYPE   2

Definition at line 154 of file ni_device_api.h.

◆ NI_MAX_DYNAMIC_MERGE

#define NI_MAX_DYNAMIC_MERGE   1

Definition at line 159 of file ni_device_api.h.

◆ NI_MAX_ENCODER_QUERY_RETRIES

#define NI_MAX_ENCODER_QUERY_RETRIES   5000

Definition at line 66 of file ni_device_api.h.

◆ NI_MAX_FIFO_CAPACITY

#define NI_MAX_FIFO_CAPACITY   120

Definition at line 213 of file ni_device_api.h.

◆ NI_MAX_FRAME_SIZE

#define NI_MAX_FRAME_SIZE   (7680*4320*3)

Definition at line 178 of file ni_device_api.h.

◆ NI_MAX_FRAMERATE

#define NI_MAX_FRAMERATE   65535

Definition at line 116 of file ni_device_api.h.

◆ NI_MAX_GOP_NUM

#define NI_MAX_GOP_NUM   8

Definition at line 57 of file ni_device_api.h.

◆ NI_MAX_GOP_PRESET_IDX

#define NI_MAX_GOP_PRESET_IDX   15

Definition at line 152 of file ni_device_api.h.

◆ NI_MAX_GOP_SIZE

#define NI_MAX_GOP_SIZE   8

Definition at line 150 of file ni_device_api.h.

◆ NI_MAX_HEIGHT

#define NI_MAX_HEIGHT   8192

Definition at line 125 of file ni_device_api.h.

◆ NI_MAX_INTRA_QP

#define NI_MAX_INTRA_QP   51

Definition at line 165 of file ni_device_api.h.

◆ NI_MAX_INTRA_QP_DELTA

#define NI_MAX_INTRA_QP_DELTA   51

Definition at line 167 of file ni_device_api.h.

◆ NI_MAX_KEEP_ALIVE_TIMEOUT

#define NI_MAX_KEEP_ALIVE_TIMEOUT   100

Definition at line 309 of file ni_device_api.h.

◆ NI_MAX_MAX_NUM_MERGE

#define NI_MAX_MAX_NUM_MERGE   3

Definition at line 163 of file ni_device_api.h.

◆ NI_MAX_NUM_AUX_DATA_PER_FRAME

#define NI_MAX_NUM_AUX_DATA_PER_FRAME   16

Definition at line 470 of file ni_device_api.h.

◆ NI_MAX_NUM_SESSIONS

#define NI_MAX_NUM_SESSIONS   32

Definition at line 176 of file ni_device_api.h.

◆ NI_MAX_QP_DELTA

#define NI_MAX_QP_DELTA   25

Definition at line 172 of file ni_device_api.h.

◆ NI_MAX_QP_INFO

#define NI_MAX_QP_INFO   63

Definition at line 173 of file ni_device_api.h.

◆ NI_MAX_REF_PIC

#define NI_MAX_REF_PIC   4

Definition at line 59 of file ni_device_api.h.

◆ NI_MAX_RESOLUTION_AREA

#define NI_MAX_RESOLUTION_AREA   8192*8192

Definition at line 102 of file ni_device_api.h.

◆ NI_MAX_RESOLUTION_HEIGHT

#define NI_MAX_RESOLUTION_HEIGHT   8192

Definition at line 101 of file ni_device_api.h.

◆ NI_MAX_RESOLUTION_LINESIZE

#define NI_MAX_RESOLUTION_LINESIZE   (NI_MAX_RESOLUTION_WIDTH*2)

Definition at line 106 of file ni_device_api.h.

◆ NI_MAX_RESOLUTION_RGBA_HEIGHT

#define NI_MAX_RESOLUTION_RGBA_HEIGHT   7040

Definition at line 104 of file ni_device_api.h.

◆ NI_MAX_RESOLUTION_RGBA_WIDTH

#define NI_MAX_RESOLUTION_RGBA_WIDTH   7040

Definition at line 103 of file ni_device_api.h.

◆ NI_MAX_RESOLUTION_WIDTH

#define NI_MAX_RESOLUTION_WIDTH   8192

Definition at line 100 of file ni_device_api.h.

◆ NI_MAX_SEI_DATA

#define NI_MAX_SEI_DATA   (NI_ENC_MAX_SEI_BUF_SIZE)

Definition at line 426 of file ni_device_api.h.

◆ NI_MAX_SLICE_SIZE

#define NI_MAX_SLICE_SIZE   127

Definition at line 219 of file ni_device_api.h.

◆ NI_MAX_SUPPORT_DRAWBOX_NUM

#define NI_MAX_SUPPORT_DRAWBOX_NUM   5

Definition at line 71 of file ni_device_api.h.

◆ NI_MAX_SUPPORT_WATERMARK_NUM

#define NI_MAX_SUPPORT_WATERMARK_NUM   6

Definition at line 72 of file ni_device_api.h.

◆ NI_MAX_TX_RETRIES

#define NI_MAX_TX_RETRIES   1000

Definition at line 64 of file ni_device_api.h.

◆ NI_MAX_USE_RECOMMENDED_ENC_PARAMS

#define NI_MAX_USE_RECOMMENDED_ENC_PARAMS   3

Definition at line 161 of file ni_device_api.h.

◆ NI_MAX_VUI_SIZE

#define NI_MAX_VUI_SIZE   NI_DEPRECATED_MACRO 32

Definition at line 62 of file ni_device_api.h.

◆ NI_MAX_WIDTH

#define NI_MAX_WIDTH   8192

Definition at line 123 of file ni_device_api.h.

◆ NI_MIN_BIN

#define NI_MIN_BIN   0

Definition at line 175 of file ni_device_api.h.

◆ NI_MIN_BITRATE

#define NI_MIN_BITRATE   10000

Definition at line 114 of file ni_device_api.h.

◆ NI_MIN_CU_SIZE_MODE

#define NI_MIN_CU_SIZE_MODE   0

Definition at line 157 of file ni_device_api.h.

◆ NI_MIN_CUSTOM_SEI_PASSTHRU

#define NI_MIN_CUSTOM_SEI_PASSTHRU   -1

Definition at line 313 of file ni_device_api.h.

◆ NI_MIN_DECODING_REFRESH_TYPE

#define NI_MIN_DECODING_REFRESH_TYPE   0

Definition at line 155 of file ni_device_api.h.

◆ NI_MIN_DYNAMIC_MERGE

#define NI_MIN_DYNAMIC_MERGE   0

Definition at line 160 of file ni_device_api.h.

◆ NI_MIN_FRAME_SIZE

#define NI_MIN_FRAME_SIZE   0

Definition at line 177 of file ni_device_api.h.

◆ NI_MIN_GOP_PRESET_IDX

#define NI_MIN_GOP_PRESET_IDX   -1

Definition at line 153 of file ni_device_api.h.

◆ NI_MIN_GOP_SIZE

#define NI_MIN_GOP_SIZE   1

Definition at line 151 of file ni_device_api.h.

◆ NI_MIN_HEIGHT

#define NI_MIN_HEIGHT   128

Definition at line 126 of file ni_device_api.h.

◆ NI_MIN_INTRA_QP

#define NI_MIN_INTRA_QP   -1

Definition at line 166 of file ni_device_api.h.

◆ NI_MIN_INTRA_QP_DELTA

#define NI_MIN_INTRA_QP_DELTA   -51

Definition at line 168 of file ni_device_api.h.

◆ NI_MIN_KEEP_ALIVE_TIMEOUT

#define NI_MIN_KEEP_ALIVE_TIMEOUT   1

Definition at line 310 of file ni_device_api.h.

◆ NI_MIN_MAX_NUM_MERGE

#define NI_MIN_MAX_NUM_MERGE   0

Definition at line 164 of file ni_device_api.h.

◆ NI_MIN_QP_DELTA

#define NI_MIN_QP_DELTA   (-25)

Definition at line 171 of file ni_device_api.h.

◆ NI_MIN_RESOLUTION_HEIGHT

#define NI_MIN_RESOLUTION_HEIGHT   144

Definition at line 87 of file ni_device_api.h.

◆ NI_MIN_RESOLUTION_HEIGHT_JPEG

#define NI_MIN_RESOLUTION_HEIGHT_JPEG   48

Definition at line 84 of file ni_device_api.h.

◆ NI_MIN_RESOLUTION_HEIGHT_SCALER

#define NI_MIN_RESOLUTION_HEIGHT_SCALER   16

Definition at line 95 of file ni_device_api.h.

◆ NI_MIN_RESOLUTION_WIDTH

#define NI_MIN_RESOLUTION_WIDTH   144

Definition at line 86 of file ni_device_api.h.

◆ NI_MIN_RESOLUTION_WIDTH_JPEG

#define NI_MIN_RESOLUTION_WIDTH_JPEG   48

Definition at line 83 of file ni_device_api.h.

◆ NI_MIN_RESOLUTION_WIDTH_SCALER

#define NI_MIN_RESOLUTION_WIDTH_SCALER   16

Definition at line 94 of file ni_device_api.h.

◆ NI_MIN_USE_RECOMMENDED_ENC_PARAMS

#define NI_MIN_USE_RECOMMENDED_ENC_PARAMS   0

Definition at line 162 of file ni_device_api.h.

◆ NI_MIN_WIDTH

#define NI_MIN_WIDTH   144

Definition at line 124 of file ni_device_api.h.

◆ NI_MULTICORE_ENCODE_MIN_HEIGHT

#define NI_MULTICORE_ENCODE_MIN_HEIGHT   256

Definition at line 132 of file ni_device_api.h.

◆ NI_MULTICORE_ENCODE_MIN_WIDTH

#define NI_MULTICORE_ENCODE_MIN_WIDTH   256

Definition at line 131 of file ni_device_api.h.

◆ NI_NAMESPACE_MAX_NUM

#define NI_NAMESPACE_MAX_NUM   128

Definition at line 216 of file ni_device_api.h.

◆ NI_NOPTS_VALUE

#define NI_NOPTS_VALUE   ((int64_t)UINT64_C(0x8000000000000000))

Definition at line 52 of file ni_device_api.h.

◆ NI_NUM_OF_PIXELS_1080P

#define NI_NUM_OF_PIXELS_1080P   (1920*1080)

Definition at line 77 of file ni_device_api.h.

◆ NI_NUM_OF_PIXELS_1440P

#define NI_NUM_OF_PIXELS_1440P   (2560*1440)

Definition at line 78 of file ni_device_api.h.

◆ NI_NUM_OF_PIXELS_360P

#define NI_NUM_OF_PIXELS_360P   (640*360)

Definition at line 75 of file ni_device_api.h.

◆ NI_NUM_OF_PIXELS_4K

#define NI_NUM_OF_PIXELS_4K   (3840*2160)

Definition at line 79 of file ni_device_api.h.

◆ NI_NUM_OF_PIXELS_4K_2

#define NI_NUM_OF_PIXELS_4K_2   (4096*2160)

Definition at line 80 of file ni_device_api.h.

◆ NI_NUM_OF_PIXELS_720P

#define NI_NUM_OF_PIXELS_720P   (1280*720)

Definition at line 76 of file ni_device_api.h.

◆ NI_NUM_OF_PIXELS_8K

#define NI_NUM_OF_PIXELS_8K   (7680*4320)

Definition at line 81 of file ni_device_api.h.

◆ NI_PARAM_AV1_ALIGN_WIDTH_HEIGHT

#define NI_PARAM_AV1_ALIGN_WIDTH_HEIGHT   8

Definition at line 148 of file ni_device_api.h.

◆ NI_PARAM_AV1_MAX_AREA

#define NI_PARAM_AV1_MAX_AREA   (4096 * 2304)

Definition at line 147 of file ni_device_api.h.

◆ NI_PARAM_AV1_MAX_HEIGHT

#define NI_PARAM_AV1_MAX_HEIGHT   4352

Definition at line 146 of file ni_device_api.h.

◆ NI_PARAM_AV1_MAX_WIDTH

#define NI_PARAM_AV1_MAX_WIDTH   4096

Definition at line 145 of file ni_device_api.h.

◆ NI_PARAM_AV1_MIN_HEIGHT

#define NI_PARAM_AV1_MIN_HEIGHT   128

Definition at line 144 of file ni_device_api.h.

◆ NI_PARAM_AV1_MIN_WIDTH

#define NI_PARAM_AV1_MIN_WIDTH   144

Definition at line 143 of file ni_device_api.h.

◆ NI_PARAM_JPEG_MIN_HEIGHT

#define NI_PARAM_JPEG_MIN_HEIGHT   48

Definition at line 141 of file ni_device_api.h.

◆ NI_PARAM_JPEG_MIN_WIDTH

#define NI_PARAM_JPEG_MIN_WIDTH   48

Definition at line 140 of file ni_device_api.h.

◆ NI_PARAM_MAX_HEIGHT

#define NI_PARAM_MAX_HEIGHT   8192

Definition at line 137 of file ni_device_api.h.

◆ NI_PARAM_MAX_WIDTH

#define NI_PARAM_MAX_WIDTH   8192

Definition at line 135 of file ni_device_api.h.

◆ NI_PARAM_MIN_HEIGHT

#define NI_PARAM_MIN_HEIGHT   32

Definition at line 138 of file ni_device_api.h.

◆ NI_PARAM_MIN_WIDTH

#define NI_PARAM_MIN_WIDTH   32

Definition at line 136 of file ni_device_api.h.

◆ NI_RBSP_TRAILING_BITS_LEN

#define NI_RBSP_TRAILING_BITS_LEN   1

Definition at line 466 of file ni_device_api.h.

◆ NI_SCALER_FLAG_CMP

#define NI_SCALER_FLAG_CMP   0x0800 /* 0 = no compress, 1 = compress*/

Definition at line 298 of file ni_device_api.h.

◆ NI_SCALER_FLAG_CS

#define NI_SCALER_FLAG_CS   0x0020 /* 0 = BT.709, 1 = BT.2020 */

Definition at line 296 of file ni_device_api.h.

◆ NI_SCALER_FLAG_FCE

#define NI_SCALER_FLAG_FCE   0x0010 /* 0 = no fill color, 1 = fill color enabled */

Definition at line 295 of file ni_device_api.h.

◆ NI_SCALER_FLAG_IO

#define NI_SCALER_FLAG_IO   0x0001 /* 0 = source frame, 1 = destination frame */

Definition at line 291 of file ni_device_api.h.

◆ NI_SCALER_FLAG_LM

#define NI_SCALER_FLAG_LM   0x0040 /* 0 == no memory acquisition limit, 1 == limit memory acquisition */

Definition at line 297 of file ni_device_api.h.

◆ NI_SCALER_FLAG_P2

#define NI_SCALER_FLAG_P2   0x0008 /* 0 = normal allocation, 1 = P2P allocation */

Definition at line 294 of file ni_device_api.h.

◆ NI_SCALER_FLAG_PA

#define NI_SCALER_FLAG_PA   0x0004 /* 0 = straight alpha, 1 = premultiplied alpha */

Definition at line 293 of file ni_device_api.h.

◆ NI_SCALER_FLAG_PC

#define NI_SCALER_FLAG_PC   0x0002 /* 0 = single allocation, 1 = create pool */

Definition at line 292 of file ni_device_api.h.

◆ NI_UPLOADER_FLAG_LM

#define NI_UPLOADER_FLAG_LM   0x0010 /* 0 == no memory acquisition limit, 1 == limit memory acquisition */

Definition at line 304 of file ni_device_api.h.

◆ NI_VPU_ALIGN128

#define NI_VPU_ALIGN128 (   _x)    (((_x)+0x7f)&~0x7f)

Definition at line 334 of file ni_device_api.h.

◆ NI_VPU_ALIGN16

#define NI_VPU_ALIGN16 (   _x)    (((_x)+0x0f)&~0x0f)

Definition at line 331 of file ni_device_api.h.

◆ NI_VPU_ALIGN16384

#define NI_VPU_ALIGN16384 (   _x)    (((_x)+0x3fff)&~0x3fff)

Definition at line 339 of file ni_device_api.h.

◆ NI_VPU_ALIGN2048

#define NI_VPU_ALIGN2048 (   _x)    (((_x)+0x7ff)&~0x7ff)

Definition at line 337 of file ni_device_api.h.

◆ NI_VPU_ALIGN256

#define NI_VPU_ALIGN256 (   _x)    (((_x)+0xff)&~0xff)

Definition at line 335 of file ni_device_api.h.

◆ NI_VPU_ALIGN32

#define NI_VPU_ALIGN32 (   _x)    (((_x)+0x1f)&~0x1f)

Definition at line 332 of file ni_device_api.h.

◆ NI_VPU_ALIGN4

#define NI_VPU_ALIGN4 (   _x)    (((_x)+0x03)&~0x03)

Definition at line 329 of file ni_device_api.h.

◆ NI_VPU_ALIGN4096

#define NI_VPU_ALIGN4096 (   _x)    (((_x)+0xfff)&~0xfff)

Definition at line 338 of file ni_device_api.h.

◆ NI_VPU_ALIGN512

#define NI_VPU_ALIGN512 (   _x)    (((_x)+0x1ff)&~0x1ff)

Definition at line 336 of file ni_device_api.h.

◆ NI_VPU_ALIGN64

#define NI_VPU_ALIGN64 (   _x)    (((_x)+0x3f)&~0x3f)

Definition at line 333 of file ni_device_api.h.

◆ NI_VPU_ALIGN8

#define NI_VPU_ALIGN8 (   _x)    (((_x)+0x07)&~0x07)

Definition at line 330 of file ni_device_api.h.

◆ NI_VPU_CEIL

#define NI_VPU_CEIL (   _data,
  _align 
)    (((_data)+((_align)-1))&~((_align)-1))

Definition at line 328 of file ni_device_api.h.

◆ NI_XCODER_LOG_NAME_DEBUG

#define NI_XCODER_LOG_NAME_DEBUG   "debug"

Definition at line 2886 of file ni_device_api.h.

◆ NI_XCODER_LOG_NAME_ERROR

#define NI_XCODER_LOG_NAME_ERROR   "error"

Definition at line 2883 of file ni_device_api.h.

◆ NI_XCODER_LOG_NAME_FULL

#define NI_XCODER_LOG_NAME_FULL   "full"

Definition at line 2887 of file ni_device_api.h.

◆ NI_XCODER_LOG_NAME_INFO

#define NI_XCODER_LOG_NAME_INFO   "info"

Definition at line 2885 of file ni_device_api.h.

◆ NI_XCODER_LOG_NAME_NONE

#define NI_XCODER_LOG_NAME_NONE   "none"

Definition at line 2882 of file ni_device_api.h.

◆ NI_XCODER_LOG_NAME_WARN

#define NI_XCODER_LOG_NAME_WARN   "warning"

Definition at line 2884 of file ni_device_api.h.

◆ NI_XCODER_LOG_NAMES_ARRAY_LEN

#define NI_XCODER_LOG_NAMES_ARRAY_LEN   7

Definition at line 2877 of file ni_device_api.h.

◆ NI_XCODER_PRESET_NAME_CUSTOM

#define NI_XCODER_PRESET_NAME_CUSTOM   "custom"

Definition at line 2880 of file ni_device_api.h.

◆ NI_XCODER_PRESET_NAME_DEFAULT

#define NI_XCODER_PRESET_NAME_DEFAULT   "default"

Definition at line 2879 of file ni_device_api.h.

◆ NI_XCODER_PRESET_NAMES_ARRAY_LEN

#define NI_XCODER_PRESET_NAMES_ARRAY_LEN   3

Definition at line 2876 of file ni_device_api.h.

◆ RC_ERROR

#define RC_ERROR   false

Definition at line 182 of file ni_device_api.h.

◆ RC_SUCCESS

#define RC_SUCCESS   true

Definition at line 181 of file ni_device_api.h.

Typedef Documentation

◆ ni_ai_buffer_format_e

◆ ni_ai_buffer_quantize_format_e

◆ ni_aux_data_t

typedef struct _ni_aux_data ni_aux_data_t

◆ ni_aux_data_type_t

◆ ni_buf_pool_t

typedef struct _ni_buf_pool_t ni_buf_pool_t

◆ ni_buf_t

typedef struct _ni_buf_t ni_buf_t

◆ ni_category_classify_t

◆ ni_codec_format_t

This is an enumeration for supported codec formats.

◆ ni_codec_hw_actions_t

This is an enumeration for hw actions.

◆ ni_content_light_level_info_bytes_t

payload format of HDR SEI content light level info

◆ ni_context_query_t

◆ ni_custom_gop_params_t

◆ ni_custom_sei_location_t

This is an enumeration for illustrating the custom SEI locations.

◆ ni_custom_sei_set_t

◆ ni_custom_sei_t

custom sei payload passthrough

◆ ni_ddr_priority_mode_t

◆ ni_dec_crop_mode

◆ ni_dec_h264_vui_param_t

decoded payload format of H.264 VUI

◆ ni_dec_h265_vui_param_t

decoded payload format of H.265 VUI

◆ ni_dec_mastering_display_colour_volume_bytes_t

decoded payload format of HDR SEI mastering display colour volume

◆ ni_dec_win_t

typedef struct _ni_dec_win ni_dec_win_t

◆ ni_decoder_input_params_t

◆ ni_device_capability_t

device capability type

◆ ni_enc_avc_roi_custom_map_t

encoder AVC ROI custom map (1 MB = 8bits)

◆ ni_enc_hevc_roi_custom_map_t

encoder HEVC ROI custom map (1 CTU = 64bits)

◆ ni_enc_mastering_display_colour_volume_t

encoded payload format of HDR SEI mastering display colour volume

◆ ni_enc_quad_roi_custom_map

encoder AVC ROI custom map (1 MB = 8bits)

◆ ni_encoder_cfg_params_t

◆ ni_encoder_change_params_t

This is a data structure for encoding parameters that have changed.

◆ ni_extended_dec_metadata_t

◆ ni_frame_config_t

◆ ni_frame_pool_type_t

Frame pool type.

◆ ni_frame_t

typedef struct _ni_frame ni_frame_t

◆ ni_frameclone_desc_t

◆ ni_framerate_t

typedef struct _ni_framerate ni_framerate_t

◆ ni_gop_params_t

◆ ni_gop_rps_t

typedef struct _ni_gop_rps ni_gop_rps_t

◆ ni_hw_capability_t

hardware capability type

◆ ni_input_frame

◆ ni_instance_mgr_detail_status_append_t

◆ ni_instance_mgr_detail_status_t

◆ ni_instance_mgr_detail_status_v1_t

◆ ni_load_query_t

◆ ni_long_term_ref_t

◆ ni_network_data_t

◆ ni_network_layer_info_t

◆ ni_network_layer_offset_t

◆ ni_network_layer_params_t

◆ ni_network_perf_metrics_t

◆ ni_overall_load_query_t

◆ ni_packet_t

typedef struct _ni_packet ni_packet_t

◆ ni_param_change_flags_t

This is an enumeration for encoder parameter change.

◆ ni_pixel_planar_format

◆ ni_pkt_info

typedef struct _ni_pkt_info ni_pkt_info

◆ ni_qos_codes_t

  • Operation codes for ni_device_config_ns_qos

◆ ni_qos_modes_t

  • Operation modes for QOS

◆ ni_queue_buffer_pool_t

◆ ni_queue_node_t

◆ ni_queue_t

typedef struct _ni_queue_t ni_queue_t

◆ ni_rational_t

typedef struct _ni_rational ni_rational_t

◆ ni_rc_min_max_qp

◆ ni_reconfig_t

This is an enumeration for encoder reconfiguration test settings.

◆ ni_region_of_interest_t

◆ ni_scaler_drawbox_params_t

◆ ni_scaler_input_params_t

◆ ni_scaler_multi_drawbox_params_t

◆ ni_scaler_multi_watermark_params_t

◆ ni_scaler_params_t

◆ ni_scaler_watermark_params_t

◆ ni_sei_header_t

◆ ni_session_context_t

◆ ni_session_data_io_t

◆ ni_session_run_state_t

Session running state type.

◆ ni_split_context_t

◆ ni_thread_arg_struct_t

◆ ni_timestamp_table_t

◆ ni_vui_hrd_t

typedef struct _ni_vui_hrd ni_vui_hrd_t

◆ ni_xcoder_params_t

◆ niFrameSurface1_t

Enumeration Type Documentation

◆ _ni_ai_buffer_format_e

Enumerator
NI_AI_BUFFER_FORMAT_FP32 
NI_AI_BUFFER_FORMAT_FP16 
NI_AI_BUFFER_FORMAT_UINT8 
NI_AI_BUFFER_FORMAT_INT8 
NI_AI_BUFFER_FORMAT_UINT16 
NI_AI_BUFFER_FORMAT_INT16 
NI_AI_BUFFER_FORMAT_CHAR 
NI_AI_BUFFER_FORMAT_BFP16 
NI_AI_BUFFER_FORMAT_INT32 
NI_AI_BUFFER_FORMAT_UINT32 
NI_AI_BUFFER_FORMAT_INT64 
NI_AI_BUFFER_FORMAT_UINT64 
NI_AI_BUFFER_FORMAT_FP64 

Definition at line 1779 of file ni_device_api.h.

◆ _ni_ai_buffer_quantize_format_e

Enumerator
NI_AI_BUFFER_QUANTIZE_NONE 
NI_AI_BUFFER_QUANTIZE_DYNAMIC_FIXED_POINT 
NI_AI_BUFFER_QUANTIZE_TF_ASYMM 
NI_AI_BUFFER_QUANTIZE_MAX 

Definition at line 1809 of file ni_device_api.h.

◆ _ni_codec_format

This is an enumeration for supported codec formats.

Enumerator
NI_CODEC_FORMAT_H264 
NI_CODEC_FORMAT_H265 
NI_CODEC_FORMAT_VP9 
NI_CODEC_FORMAT_JPEG 
NI_CODEC_FORMAT_AV1 

Definition at line 909 of file ni_device_api.h.

◆ _ni_custom_sei_location

This is an enumeration for illustrating the custom SEI locations.

Enumerator
NI_CUSTOM_SEI_LOC_BEFORE_VCL 
NI_CUSTOM_SEI_LOC_AFTER_VCL 

Definition at line 1108 of file ni_device_api.h.

◆ _ni_ddr_priority_mode_t

Enumerator
NI_DDR_PRIORITY_NONE 
NI_DDR_PRIORITY_RESET 
NI_DDR_PRIORITY_DECENC 
NI_DDR_PRIORITY_FILT 
NI_DDR_PRIORITY_AI 
NI_DDR_PRIORITY_MAX 

Definition at line 1822 of file ni_device_api.h.

◆ _ni_dec_crop_mode

Enumerator
NI_DEC_CROP_MODE_DISABLE 
NI_DEC_CROP_MODE_AUTO 
NI_DEC_CROP_MODE_MANUAL 

Definition at line 926 of file ni_device_api.h.

◆ _ni_frame_aux_data_type

Enumerator
NI_FRAME_AUX_DATA_NONE 
NI_FRAME_AUX_DATA_A53_CC 
NI_FRAME_AUX_DATA_MASTERING_DISPLAY_METADATA 
NI_FRAME_AUX_DATA_CONTENT_LIGHT_LEVEL 
NI_FRAME_AUX_DATA_HDR_PLUS 
NI_FRAME_AUX_DATA_REGIONS_OF_INTEREST 
NI_FRAME_AUX_DATA_UDU_SEI 
NI_FRAME_AUX_DATA_CUSTOM_SEI 
NI_FRAME_AUX_DATA_BITRATE 
NI_FRAME_AUX_DATA_INTRAPRD 
NI_FRAME_AUX_DATA_VUI 
NI_FRAME_AUX_DATA_LONG_TERM_REF 
NI_FRAME_AUX_DATA_LTR_INTERVAL 
NI_FRAME_AUX_DATA_INVALID_REF_FRAME 
NI_FRAME_AUX_DATA_FRAMERATE 
NI_FRAME_AUX_DATA_MAX_FRAME_SIZE 
NI_FRAME_AUX_DATA_MAX_MIN_QP 
NI_FRAME_AUX_DATA_CRF 
NI_FRAME_AUX_DATA_CRF_FLOAT 
NI_FRAME_AUX_DATA_VBV_MAX_RATE 
NI_FRAME_AUX_DATA_VBV_BUFFER_SIZE 
NI_FRAME_AUX_DATA_SLICE_ARG 
NI_FRAME_AUX_DATA_CATEGORY_CLASSIFY 

Definition at line 497 of file ni_device_api.h.

◆ _ni_frame_pool_type

Frame pool type.

Enumerator
NI_POOL_TYPE_NONE 
NI_POOL_TYPE_NORMAL 
NI_POOL_TYPE_P2P 

Definition at line 489 of file ni_device_api.h.

◆ _ni_param_change_flags

This is an enumeration for encoder parameter change.

Enumerator
NI_SET_CHANGE_PARAM_PPS 
NI_SET_CHANGE_PARAM_RC_TARGET_RATE 
NI_SET_CHANGE_PARAM_RC_MIN_MAX_QP 
NI_SET_CHANGE_PARAM_RC_BIT_RATIO_LAYER 
NI_SET_CHANGE_PARAM_SLICE_ARG 
NI_SET_CHANGE_PARAM_INDEPEND_SLICE 
NI_SET_CHANGE_PARAM_DEPEND_SLICE 
NI_SET_CHANGE_PARAM_RDO 
NI_SET_CHANGE_PARAM_NR 
NI_SET_CHANGE_PARAM_BG 
NI_SET_CHANGE_PARAM_CUSTOM_MD 
NI_SET_CHANGE_PARAM_CUSTOM_LAMBDA 
NI_SET_CHANGE_PARAM_RC2 
NI_SET_CHANGE_PARAM_VUI_HRD_PARAM 
NI_SET_CHANGE_PARAM_INVALID_REF_FRAME 
NI_SET_CHANGE_PARAM_LTR_INTERVAL 
NI_SET_CHANGE_PARAM_RC_FRAMERATE 
NI_SET_CHANGE_PARAM_MAX_FRAME_SIZE 
NI_SET_CHANGE_PARAM_CRF 
NI_SET_CHANGE_PARAM_VBV 
NI_SET_CHANGE_PARAM_INTRA_PERIOD 

Definition at line 950 of file ni_device_api.h.

◆ _ni_pixel_planar_format

Enumerator
NI_PIXEL_PLANAR_FORMAT_SEMIPLANAR 
NI_PIXEL_PLANAR_FORMAT_PLANAR 
NI_PIXEL_PLANAR_FORMAT_TILED4X4 
NI_PIXEL_PLANAR_MAX 

Definition at line 918 of file ni_device_api.h.

◆ _ni_reconfig

This is an enumeration for encoder reconfiguration test settings.

Enumerator
XCODER_TEST_RECONF_OFF 
XCODER_TEST_RECONF_BR 
XCODER_TEST_RECONF_INTRAPRD 
XCODER_TEST_RECONF_VUI_HRD 
XCODER_TEST_RECONF_LONG_TERM_REF 
XCODER_TEST_RECONF_RC_MIN_MAX_QP 
XCODER_TEST_RECONF_LTR_INTERVAL 
XCODER_TEST_INVALID_REF_FRAME 
XCODER_TEST_RECONF_FRAMERATE 
XCODER_TEST_RECONF_MAX_FRAME_SIZE 
XCODER_TEST_RECONF_RC_MIN_MAX_QP_REDUNDANT 
XCODER_TEST_RECONF_CRF 
XCODER_TEST_RECONF_CRF_FLOAT 
XCODER_TEST_RECONF_VBV 
XCODER_TEST_RECONF_MAX_FRAME_SIZE_RATIO 
XCODER_TEST_RECONF_SLICE_ARG 
XCODER_TEST_FORCE_IDR_FRAME 
XCODER_TEST_RECONF_BR_API 
XCODER_TEST_RECONF_INTRAPRD_API 
XCODER_TEST_RECONF_VUI_HRD_API 
XCODER_TEST_RECONF_LTR_API 
XCODER_TEST_RECONF_RC_MIN_MAX_QP_API_REDUNDANT 
XCODER_TEST_RECONF_LTR_INTERVAL_API 
XCODER_TEST_INVALID_REF_FRAME_API 
XCODER_TEST_RECONF_FRAMERATE_API 
XCODER_TEST_RECONF_MAX_FRAME_SIZE_API 
XCODER_TEST_RECONF_RC_MIN_MAX_QP_API 
XCODER_TEST_CRF_API 
XCODER_TEST_CRF_FLOAT_API 
XCODER_TEST_RECONF_VBV_API 
XCODER_TEST_RECONF_MAX_FRAME_SIZE_RATIO_API 
XCODER_TEST_RECONF_SLICE_ARG_API 
XCODER_TEST_RECONF_END 

Definition at line 1739 of file ni_device_api.h.

◆ _ni_session_run_state

Session running state type.

Enumerator
SESSION_RUN_STATE_NORMAL 
SESSION_RUN_STATE_SEQ_CHANGE_DRAINING 
SESSION_RUN_STATE_SEQ_CHANGE_OPENING 
SESSION_RUN_STATE_RESETTING 
SESSION_RUN_STATE_FLUSHING 

Definition at line 1175 of file ni_device_api.h.

◆ ni_codec_hw_actions

This is an enumeration for hw actions.

Enumerator
NI_CODEC_HW_NONE 
NI_CODEC_HW_ENABLE 
NI_CODEC_HW_DOWNLOAD 
NI_CODEC_HW_UPLOAD 
NI_CODEC_HW_RSVD 
NI_CODEC_HW_PAYLOAD_OFFSET 

Definition at line 937 of file ni_device_api.h.

◆ ni_enc_allocate_strategy_t

Enumerator
NI_ENC_MEM_ALLOCATE_STRATEGY_INVALID_MIN 
NI_ENC_MEM_ALLOCATE_STRATEGY_DEFAULT 
NI_ENC_MEM_ALLOCATE_STRATEGY_REGION_0_FIRST 
NI_ENC_MEM_ALLOCATE_STRATEGY_REGION_1_FIRST 
NI_ENC_MEM_ALLOCATE_STRATEGY_INVALID_MAX 

Definition at line 280 of file ni_device_api.h.

◆ ni_h265_sei_user_data_type_t

Enumerator
NI_H265_USERDATA_FLAG_RESERVED_0 
NI_H265_USERDATA_FLAG_RESERVED_1 
NI_H265_USERDATA_FLAG_VUI 
NI_H265_USERDATA_FLAG_RESERVED_3 
NI_H265_USERDATA_FLAG_PIC_TIMING 
NI_H265_USERDATA_FLAG_ITU_T_T35_PRE 
NI_H265_USERDATA_FLAG_UNREGISTERED_PRE 
NI_H265_USERDATA_FLAG_ITU_T_T35_SUF 
NI_H265_USERDATA_FLAG_UNREGISTERED_SUF 
NI_H265_USERDATA_FLAG_RESERVED_9 
NI_H265_USERDATA_FLAG_MASTERING_COLOR_VOL 
NI_H265_USERDATA_FLAG_CHROMA_RESAMPLING_FILTER_HINT 
NI_H265_USERDATA_FLAG_KNEE_FUNCTION_INFO 
NI_H265_USERDATA_FLAG_TONE_MAPPING_INFO 
NI_H265_USER_DATA_FLAG_FILM_GRAIN_CHARACTERISTICS_INFO 
NI_H265_USER_DATA_FLAG_CONTENT_LIGHT_LEVEL_INFO 
NI_H265_USER_DATA_FLAG_COLOUR_REMAPPING_INFO 
NI_H265_USERDATA_FLAG_ITU_T_T35_PRE_1 
NI_H265_USERDATA_FLAG_ITU_T_T35_PRE_2 
NI_H265_USERDATA_FLAG_ITU_T_T35_SUF_1 
NI_H265_USERDATA_FLAG_ITU_T_T35_SUF_2 

Definition at line 357 of file ni_device_api.h.

◆ ni_pic_type_t

Enumerator
PIC_TYPE_I 
PIC_TYPE_P 

*< I picture

PIC_TYPE_B 

*< P picture

PIC_TYPE_CRA 

*< B picture (except VC1)

PIC_TYPE_IDR 
DECODER_PIC_TYPE_IDR 

*< Encoder IDR pic type

PIC_TYPE_NIDR 

*< Decoder-returned IDR pic type

PIC_TYPE_MAX 

*< H.264/H.265 IDR picture

*< No Meaning

Definition at line 382 of file ni_device_api.h.

◆ ni_pix_fmt_t

Enumerator
NI_PIX_FMT_YUV420P 
NI_PIX_FMT_YUV420P10LE 
NI_PIX_FMT_NV12 
NI_PIX_FMT_P010LE 
NI_PIX_FMT_RGBA 
NI_PIX_FMT_BGRA 
NI_PIX_FMT_ARGB 
NI_PIX_FMT_ABGR 
NI_PIX_FMT_BGR0 
NI_PIX_FMT_BGRP 
NI_PIX_FMT_NV16 
NI_PIX_FMT_YUYV422 
NI_PIX_FMT_UYVY422 
NI_PIX_FMT_8_TILED4X4 
NI_PIX_FMT_10_TILED4X4 
NI_PIX_FMT_NONE 

Definition at line 260 of file ni_device_api.h.

◆ ni_qos_codes

  • Operation codes for ni_device_config_ns_qos
Enumerator
QOS_NAMESPACE_CODE 
QOS_OP_CONFIG_REC_OP_CODE 
QOS_OP_CONFIG_CODE 

Definition at line 234 of file ni_device_api.h.

◆ ni_qos_modes

  • Operation modes for QOS
Enumerator
QOS_MODE_DISABLED 
QOS_MODE_ENABLED_NO_SHARE 
QOS_MODE_ENABLED_SHARE 

Definition at line 224 of file ni_device_api.h.

◆ ni_xcoder_state_t

Enumerator
NI_XCODER_IDLE_STATE 
NI_XCODER_OPEN_STATE 
NI_XCODER_WRITE_STATE 
NI_XCODER_READ_STATE 
NI_XCODER_CLOSE_STATE 
NI_XCODER_FLUSH_STATE 
NI_XCODER_INTER_FLUSH_STATE 
NI_XCODER_READ_DESC_STATE 
NI_XCODER_HWUP_STATE 
NI_XCODER_HWDL_STATE 
NI_XCODER_GENERAL_STATE 

Definition at line 242 of file ni_device_api.h.

Function Documentation

◆ ni_ai_config_hvsplus()

LIB_API ni_retcode_t ni_ai_config_hvsplus ( ni_session_context_t p_ctx,
ni_network_data_t p_network 
)

configure a hvsplus filter


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
Returns
NI_RETCODE_SUCCESS NI_RETCODE_FAILURE

Definition at line 9651 of file ni_device_api.c.

◆ ni_ai_config_network_binary()

LIB_API 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


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]filePointer to caller network binary file path
Returns
NI_RETCODE_SUCCESS NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_FAILURE

Definition at line 9562 of file ni_device_api.c.

◆ ni_ai_frame_buffer_alloc()

LIB_API 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 width, height, format defined by network.


Parameters
[out]p_framePointer to caller allocated ni_frame_t
[in]p_networkPointer to caller allocated ni_network_data_t
Returns
NI_RETCODE_SUCCESS NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 9698 of file ni_device_api.c.

◆ ni_ai_packet_buffer_alloc()

LIB_API 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.


Parameters
[out]p_packetPointer to a caller allocated ni_packet_t struct
[in]p_networkPointer to a caller allocated ni_network_data_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 9779 of file ni_device_api.c.

◆ ni_ai_session_read_metrics()

LIB_API 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.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_metricsPointer to network metrics
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Definition at line 11379 of file ni_device_api.c.

◆ ni_calculate_total_frame_size()

LIB_API 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 to the page size.


Parameters
[in]p_upl_ctxpointer to an uploader session context
[in]linesizearray of line stride
Returns
size NI_RETCODE_INVALID_PARAM

Definition at line 9145 of file ni_device_api.c.

◆ ni_close_event()

LIB_API void ni_close_event ( ni_event_handle_t  event_handle)

Close event and release resources (Windows only)


Returns
NONE

Definition at line 294 of file ni_device_api.c.

◆ ni_create_event()

LIB_API ni_event_handle_t ni_create_event ( void  )

Create event and return event handle if successful (Windows only)


Returns
On success returns a event handle On failure returns NI_INVALID_EVENT_HANDLE

Definition at line 266 of file ni_device_api.c.

◆ ni_custom_packet_buffer_alloc()

LIB_API 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 allocated.


For ideal performance memory should be 4k aligned. If it is not 4K aligned then a temporary 4k aligned memory will be used to copy data to and from when writing and reading. This will negatively impact performance.

This API will overwrite p_packet->buffer_size, p_packet->p_buffer and p_packet->p_data fields in p_packet.

This API will not free any memory associated with p_packet->p_buffer and p_packet->p_data fields in p_packet. Common use case could be,

  1. Allocate memory to pointer
  2. Call ni_custom_packet_buffer_alloc() with allocated pointer.
  3. Use p_packet as required.
  4. Call ni_packet_buffer_free() to free up the memory.
Parameters
[in]p_bufferUser provided pointer to be used for buffer
[in]p_packetPointer to a caller allocated ni_packet_t struct
[in]buffer_sizeBuffer size
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 3807 of file ni_device_api.c.

◆ ni_decoder_frame_buffer_alloc()

LIB_API 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 buffer pool and will be returned to the same buffer pool by ni_decoder_frame_buffer_free. Note: all attributes of ni_frame_t will be set up except for memory and buffer, which rely on the pool being allocated; the pool will be allocated only after the frame resolution is known.


Parameters
[in]p_poolBuffer pool to get the memory from
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]alloc_memWhether to get memory from buffer pool
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]alignmentAlignment requirement
[in]factor1 for 8 bits/pixel format, 2 for 10 bits/pixel
[in]is_planar0 if semiplanar else planar
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 2586 of file ni_device_api.c.

◆ ni_decoder_frame_buffer_free()

LIB_API 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, returning memory to a buffer pool.


Parameters
[in]p_framePointer to a previously allocated ni_frame_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 3644 of file ni_device_api.c.

◆ ni_decoder_frame_buffer_pool_return_buf()

LIB_API 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, for a decoder frame.


Parameters
[in]bufBuffer to be returned.
[in]p_buffer_poolBuffer pool to return buffer to.
Returns
None

Return a memory buffer to memory buffer pool, for a decoder frame.


Parameters
[in]bufBuffer to be returned.
[in]p_buffer_poolBuffer pool to return buffer to.
Returns
None

Definition at line 3694 of file ni_device_api.c.

◆ ni_decoder_init_default_params()

LIB_API 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.


Parameters
[out]paramPointer to a user allocated ni_xcoder_params_t to initialize to default parameters
[in]fps_numFrames per second
[in]fps_denomFPS denomination
[in]bit_ratebit rate
[in]widthframe width
[in]heightframe height
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Definition at line 4546 of file ni_device_api.c.

◆ ni_decoder_params_set_value()

LIB_API 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.


Parameters
[in]p_paramsPointer to a user allocated ni_xcoder_params_t (used for decoder too for now ) to find and set a particular parameter
[in]nameString represented parameter name to search
[in]valueParameter value to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Definition at line 4881 of file ni_device_api.c.

◆ ni_device_alloc_and_get_firmware_logs()

LIB_API 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.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_log_bufferReference to pointer to a log buffer If log buffer pointer is NULL, this function will allocate log buffer NOTE caller is responsible for freeing log buffer after calling this function
[in]gen_log_fileIndicating whether it is required to generate log files
Returns
on success NI_RETCODE_SUCCESS

on failure NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_INVALID_PARAM

Definition at line 11713 of file ni_device_api.c.

◆ ni_device_alloc_dst_frame()

LIB_API 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.


Parameters
[in]p_ctxpointer to session context
[in]p_out_surfacepointer to output frame surface
[in]device_typecurrently only NI_DEVICE_TYPE_AI
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_MEM_ALOC

Definition at line 8947 of file ni_device_api.c.

◆ ni_device_alloc_frame()

LIB_API 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.


Parameters
[in]p_ctxpointer to session context
[in]widthwidth, in pixels
[in]heightheight, in pixels
[in]formatpixel format
[in]optionsoptions bitmap flags, bit 0 (NI_SCALER_FLAG_IO) is 0=input frame or 1=output frame. Bit 1 (NI_SCALER_FLAG_PC) is 0=single allocation, 1=create pool. Bit 2 (NI_SCALER_FLAG_PA) is 0=straight alpha, 1=premultiplied alpha
[in]rectangle_widthclipping rectangle width
[in]rectangle_heightclipping rectangle height
[in]rectangle_xhorizontal position of clipping rectangle
[in]rectangle_yvertical position of clipping rectangle
[in]rgba_colorRGBA fill colour (for padding only)
[in]frame_indexinput hwdesc index
[in]device_typeonly NI_DEVICE_TYPE_SCALER and NI_DEVICE_TYPE_AI (only needs p_ctx and frame_index)
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_MEM_ALOC

Definition at line 8880 of file ni_device_api.c.

◆ ni_device_capability_query()

LIB_API 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_capability_query2 This function can't be callback in multi thread.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open
[in]p_capPointer to a caller allocated ni_device_capability_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Definition at line 587 of file ni_device_api.c.

◆ ni_device_capability_query2()

LIB_API 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_query This function can be callback with multi thread.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open
[in]p_capPointer to a caller allocated ni_device_capability_t struct
[in]device_in_ctxtIf device is in ctx
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Definition at line 647 of file ni_device_api.c.

◆ ni_device_clone_hwframe()

LIB_API 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.


Parameters
[in]p_ctxpointer to session context
[in]p_frameclone_descpointer to the frameclone descriptor
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_MEM_ALOC

Definition at line 8997 of file ni_device_api.c.

◆ ni_device_close()

LIB_API void ni_device_close ( ni_device_handle_t  device_handle)

Close device and release resources.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open()
Returns
NONE

Definition at line 503 of file ni_device_api.c.

◆ ni_device_config_frame()

LIB_API ni_retcode_t ni_device_config_frame ( ni_session_context_t p_ctx,
ni_frame_config_t p_cfg 
)

Config a frame on the device for 2D engined to work on based on provided parameters.


Parameters
[in]p_ctxpointer to session context
[in]p_cfgpointer to frame config
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_MEM_ALOC

Config a frame on the device for 2D engined to work on based on provided parameters.


Parameters
[in]p_ctxpointer to session context
[in]p_cfgpointer to frame configuration
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_MEM_ALOC

Definition at line 9049 of file ni_device_api.c.

◆ ni_device_config_namespace_num()

LIB_API 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.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open
[in]namespace_numSet the namespace number with designated sriov
[in]sriov_indexIdentify which sriov need to be set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Definition at line 2037 of file ni_device_api.c.

◆ ni_device_config_qos()

LIB_API 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.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open
[in]modeThe requested qos mode
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Definition at line 2058 of file ni_device_api.c.

◆ ni_device_config_qos_op()

LIB_API 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.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open
[in]device_handle_tTarget device handle of namespace required for OP
[in]over_provisionThe request overprovision percent
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Definition at line 2080 of file ni_device_api.c.

◆ ni_device_dec_session_flush()

LIB_API 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_session_flush in that it closes the current decode session and opens a new one for continuous decoding.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 1621 of file ni_device_api.c.

◆ ni_device_dec_session_save_hdrs()

LIB_API 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 same source.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]hdr_dataPointer to header data
[in]hdr_sizeSize of header data in bytes
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 1566 of file ni_device_api.c.

◆ ni_device_multi_config_frame()

LIB_API 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 
)

Config multiple frame on the device for 2D engined to work on based on provided parameters.


Parameters
[in]p_ctxpointer to session context
[in]p_cfg_ininput frame config array
[in]numInCfgsnumber of frame config entries in the p_cfg_in array
[in]p_cfg_outoutput frame config
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_MEM_ALOC

Config multiple frame on the device for 2D engined to work on based on provided parameters.


Parameters
[in]p_ctxpointer to session context
[in]p_cfg_inpointer to input frame configuration
[in]numInCfgsnumber of input frame configurations
[in]p_cfg_outpointer to output frame configuration
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_MEM_ALOC

Definition at line 9095 of file ni_device_api.c.

◆ ni_device_open()

LIB_API 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.


Parameters
[in]p_devDevice name represented as c string. ex: "/dev/nvme0"
[out]p_max_io_size_outMaximum IO Transfer size supported
Returns
On success returns a device device_handle On failure returns NI_INVALID_DEVICE_HANDLE

Parameters
[in]p_devDevice name represented as c string. ex: "/dev/nvme0"
[out]p_max_io_size_outMaximum IO Transfer size supported, could be NULL
Returns
On success returns a device device_handle On failure returns NI_INVALID_DEVICE_HANDLE

Definition at line 360 of file ni_device_api.c.

◆ ni_device_session_acquire()

LIB_API 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.


Parameters
[in]p_upl_ctxPointer to a caller allocated ni_session_context_t struct
[out]p_framePointer to a caller allocated hw frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[out]p_framePointer to a caller allocated hw frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 10602 of file ni_device_api.c.

◆ ni_device_session_acquire_for_read()

LIB_API 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.


Parameters
[in]p_upl_ctxPointer to a caller allocated ni_session_context_t struct
[out]p_framePointer to a caller allocated hw frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[out]p_framePointer to a caller allocated hw frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 10697 of file ni_device_api.c.

◆ ni_device_session_close()

LIB_API 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 NI_DEVICE_TYPE_DECODER closes decoding session If device_type is NI_DEVICE_TYPE_ENCODER closes encoding session If device_type is NI_DEVICE_TYPE_SCALER closes scaling session.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]eos_receivedFlag indicating if End Of Stream indicator was received
[in]device_typeNI_DEVICE_TYPE_DECODER, NI_DEVICE_TYPE_ENCODER, or NI_DEVICE_TYPE_SCALER
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 1379 of file ni_device_api.c.

◆ ni_device_session_context_alloc_init()

LIB_API ni_session_context_t* ni_device_session_context_alloc_init ( void  )

Allocate and initialize a new ni_session_context_t struct.


Returns
On success returns a valid pointer to newly allocated context On failure returns NULL

Definition at line 98 of file ni_device_api.c.

◆ ni_device_session_context_clear()

LIB_API void ni_device_session_context_clear ( ni_session_context_t p_ctx)

Clear already allocated session context.


Parameters
[in]p_ctxPointer to an already allocated ni_session_context_t

Definition at line 249 of file ni_device_api.c.

◆ ni_device_session_context_free()

LIB_API void ni_device_session_context_free ( ni_session_context_t p_ctx)

Free previously allocated session context.


Parameters
[in]p_ctxPointer to an already allocated ni_session_context_t struct

Definition at line 130 of file ni_device_api.c.

◆ ni_device_session_context_init()

LIB_API ni_retcode_t ni_device_session_context_init ( ni_session_context_t p_ctx)

Initialize already allocated session context to a known state.


Parameters
[in]p_ctxPointer to an already allocated ni_session_context_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_FAILURE

Definition at line 156 of file ni_device_api.c.

◆ ni_device_session_copy()

LIB_API 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.


Parameters
[in]src_p_ctxPointer to a caller allocated source session context
[in]dst_p_ctxPointer to a caller allocated destination session context
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 8015 of file ni_device_api.c.

◆ ni_device_session_flush()

LIB_API 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 decoder If device_type is NI_DEVICE_TYPE_ENCODER sends EOS command to encoder.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]device_typeNI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 1512 of file ni_device_api.c.

◆ ni_device_session_hwdl()

LIB_API int ni_device_session_hwdl ( ni_session_context_t p_ctx,
ni_session_data_io_t p_data,
niFrameSurface1_t hwdesc 
)

Read YUV data from hw descriptor stored location on device.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_dataPointer to a caller allocated ni_session_data_io_t struct which contains either a ni_frame_t data frame or ni_packet_t data packet to send
[in]hwdescHW descriptor to find frame in XCODER
Returns
On success Total number of bytes read On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Read YUV data from hw descriptor stored location on device.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_dataPointer to a caller allocated ni_session_data_io_t struct which contains either a ni_frame_t data frame or ni_packet_t data packet to send
[in]hwdescHW descriptor to find frame in XCODER
Returns
On success Total number of bytes read On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 8210 of file ni_device_api.c.

◆ ni_device_session_hwup()

LIB_API int ni_device_session_hwup ( ni_session_context_t p_ctx,
ni_session_data_io_t p_src_data,
niFrameSurface1_t hwdesc 
)

Send raw YUV input to uploader instance and retrieve a HW descriptor to represent it.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_src_dataPointer to a caller allocated ni_session_data_io_t struct which contains a ni_frame_t data frame to send to uploader
[out]hwdescHW descriptor to find frame in XCODER
Returns
On success Total number of bytes read On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Send raw YUV input to uploader instance and retrieve a HW descriptor to represent it.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_src_dataPointer to a caller allocated ni_session_data_io_t struct which contains a ni_frame_t data frame to send to uploader
[out]hwdescHW descriptor to find frame in XCODER
Returns
On success Total number of bytes read On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 8363 of file ni_device_api.c.

◆ ni_device_session_init_framepool()

LIB_API int ni_device_session_init_framepool ( ni_session_context_t p_ctx,
uint32_t  pool_size,
uint32_t  pool 
)

Send frame pool setup info to device.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]pool_sizeUpload session initial allocated frames count must be > 0,
[in]pool0 use the normal pool 1 use a dedicated P2P pool
Returns
On success Return code On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_MEM_ALOC

Send frame pool setup info to device.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]pool_sizeUpload session initial allocated frames count must be > 0,
[in]pool0 use the normal pool 1 use a dedicated P2P pool
Returns
On success Return code On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_MEM_ALOC

Definition at line 8564 of file ni_device_api.c.

◆ ni_device_session_open()

LIB_API 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_DECODER opens decoding session If device_type is NI_DEVICE_TYPE_ENCODER opens encoding session If device_type is NI_DEVICE_TYPE_SCALER opens scaling session.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]device_typeNI_DEVICE_TYPE_DECODER, NI_DEVICE_TYPE_ENCODER, or NI_DEVICE_TYPE_SCALER
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

resource management context

Definition at line 710 of file ni_device_api.c.

◆ ni_device_session_query()

LIB_API 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 device type.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]device_typeNI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER or NI_DEVICE_TYPE_SCALER or NI_DEVICE_TYPE_AI or NI_DEVICE_TYPE_UPLOADER
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 1920 of file ni_device_api.c.

◆ ni_device_session_query_buffer_avail()

LIB_API 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.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]device_typeQuadra device type
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct [in] device_type Quadra device type
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 8296 of file ni_device_api.c.

◆ ni_device_session_query_detail()

LIB_API 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 specified device type.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]device_typeNI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER or
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 1960 of file ni_device_api.c.

◆ ni_device_session_query_detail_v1()

LIB_API 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 specified device type.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]device_typeNI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER or
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 2000 of file ni_device_api.c.

◆ ni_device_session_read()

LIB_API 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 device_type is NI_DEVICE_TYPE_ENCODER reads data frame from encoder If device_type is NI_DEVICE_TYPE_AI reads data frame from AI engine.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_dataPointer to a caller allocated ni_session_data_io_t struct which contains either a ni_frame_t data frame or ni_packet_t data packet to send
[in]device_typeNI_DEVICE_TYPE_DECODER, NI_DEVICE_TYPE_ENCODER, or NI_DEVICE_TYPE_SCALER If NI_DEVICE_TYPE_DECODER is specified, data that was read will be placed into ni_frame_t struct inside the p_data pointer If NI_DEVICE_TYPE_ENCODER is specified, data that was read will be placed into ni_packet_t struct inside the p_data pointer If NI_DEVICE_TYPE_AI is specified, data that was read will be placed into ni_frame_t struct inside the p_data pointer
Returns
On success Total number of bytes read On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 1769 of file ni_device_api.c.

◆ ni_device_session_read_hwdesc()

LIB_API 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 device_type is NI_DEVICE_TYPE_SCALER reads data hwdesc from scaler.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_dataPointer to a caller allocated ni_session_data_io_t struct which contains either a ni_frame_t data frame or ni_packet_t data packet to send
[in]device_typeNI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_SCALER If NI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_SCALER is specified, hw descriptor info will be stored in p_data ni_frame
Returns
On success Total number of bytes read On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 8043 of file ni_device_api.c.

◆ ni_device_session_restart()

LIB_API 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.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]widthwidth, in pixels
[in]heightheight, in pixels
[in]device_typeNI_DEVICE_TYPE_ENCODER
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 12913 of file ni_device_api.c.

◆ ni_device_session_sequence_change()

LIB_API 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.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]widthinput width
[in]heightinput height
[in]bit_depth_factor1 for 8-bit YUV, 2 for 10-bit YUV
[in]device_typedevice type (must be encoder)
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]widthinput width
[in]heightinput height
[in]bit_depth_factor1 for 8-bit YUV, 2 for 10-bit YUV
[in]device_typedevice type (must be encoder)
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION

Definition at line 11322 of file ni_device_api.c.

◆ ni_device_session_update_framepool()

LIB_API 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.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]pool_sizeif pool_size = 0, free allocated device memory buffers if pool_size > 0, expand device frame buffer pool of current instance with pool_size more frame buffers
Returns
On success Return code On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION

Definition at line 8612 of file ni_device_api.c.

◆ ni_device_session_write()

LIB_API int ni_device_session_write ( ni_session_context_t p_ctx,
ni_session_data_io_t p_data,
ni_device_type_t  device_type 
)

Send data to the device If device_type is NI_DEVICE_TYPE_DECODER sends data packet to decoder If device_type is NI_DEVICE_TYPE_ENCODER sends data frame to encoder If device_type is NI_DEVICE_TYPE_AI sends data frame to AI engine.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_dataPointer to a caller allocated ni_session_data_io_t struct which contains either a ni_frame_t data frame or ni_packet_t data packet to send
[in]device_typeNI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER or NI_DEVICE_TYPE_AI If NI_DEVICE_TYPE_DECODER is specified, it is expected that the ni_packet_t struct inside the p_data pointer contains data to send. If NI_DEVICE_TYPE_ENCODER or NI_DEVICE_TYPE_AI is specified, it is expected that the ni_frame_t struct inside the p_data pointer contains data to send.
Returns
On success Total number of bytes written On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Send data to the device If device_type is NI_DEVICE_TYPE_DECODER sends data packet to decoder If device_type is NI_DEVICE_TYPE_ENCODER sends data frame to encoder If device_type is NI_DEVICE_TYPE_AI sends data frame to AI engine.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_dataPointer to a caller allocated ni_session_data_io_t struct which contains either a ni_frame_t data frame or ni_packet_t data packet to send
[in]device_typeNI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER or NI_DEVICE_TYPE_AI If NI_DEVICE_TYPE_DECODER is specified, it is expected that the ni_packet_t struct inside the p_data pointer contains data to send. If NI_DEVICE_TYPE_ENCODER or NI_DEVICE_TYPE_AI is specified, it is expected that the ni_frame_t struct inside the p_data pointer contains data to send.
Returns
On success Total number of bytes written On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 1668 of file ni_device_api.c.

◆ ni_enc_frame_buffer_alloc()

LIB_API 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 encoder.


Parameters
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]alignmentAllignment requirement
[in]metadata_flagFlag indicating if space for additional metadata should be allocated
[in]factor1 for 8 bits/pixel format, 2 for 10 bits/pixel, 4 for 32 bits/pixel (RGBA)
[in]hw_frame_countNumber of hw descriptors stored
[in]is_planar0 if semiplanar else planar
[in]pix_fmtpixel format to distinguish between planar types and/or components
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 2321 of file ni_device_api.c.

◆ ni_enc_prep_reconf_demo_data()

LIB_API 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 in frame.


Parameters
[in]p_enc_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_framePointer to a caller allocated ni_frame_t struct
Returns
on success NI_RETCODE_SUCCESS

on failure NI_RETCODE_ERROR_MEM_ALOC

Definition at line 11947 of file ni_device_api.c.

◆ ni_encoder_frame_buffer_alloc()

LIB_API 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 line size and extra data. Applicable to YUV420p AVFrame only. 8 or 10 bit/pixel. Cb/Cr size matches that of Y.


Parameters
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]linesizePicture line size
[in]alignmentAllignment requirement
[in]extra_lenExtra data size (incl. meta data). < 0 means not to allocate any buffer (zero-copy from existing)
[in]alignment_2pass_waset alignment to work with 2pass encode
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 3161 of file ni_device_api.c.

◆ ni_encoder_frame_zerocopy_buffer_alloc()

LIB_API 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, taking into account pic linesize and extra data. Applicable to YUV planr / semi-planar 8 or 10 bit and RGBA pixel formats.


Parameters
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]linesizePicture line size
[in]dataPicture data pointers (for each of YUV planes)
[in]extra_lenExtra data size (incl. meta data)
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 2879 of file ni_device_api.c.

◆ ni_encoder_frame_zerocopy_check()

LIB_API 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.


Parameters
[in]p_enc_ctxpointer to encoder context [in] p_enc_params pointer to encoder parameters [in] width input width [in] height input height [in] linesize input linesizes (pointer to array) [in] set_linesize setup linesizes 0 means not setup linesizes, 1 means setup linesizes (before encoder open)
Returns
on success and can do zero copy NI_RETCODE_SUCCESS

cannot do zero copy NI_RETCODE_ERROR_UNSUPPORTED_FEATURE NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_INVALID_PARAM

Definition at line 2733 of file ni_device_api.c.

◆ ni_encoder_gop_params_set_value()

LIB_API 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.


Parameters
[in]p_paramsPointer to a user allocated ni_xcoder_params_t to find and set a particular parameter
[in]nameString represented parameter name to search
[in]valueParameter value to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Definition at line 7197 of file ni_device_api.c.

◆ ni_encoder_init_default_params()

LIB_API 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.


Parameters
[out]paramPointer to a user allocated ni_xcoder_params_t to initialize to default parameters
[in]fps_numFrames per second
[in]fps_denomFPS denomination
[in]bit_ratebit rate
[in]widthframe width
[in]heightframe height
[in]codec_formatcodec from ni_codec_format_t
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Definition at line 4147 of file ni_device_api.c.

◆ ni_encoder_params_set_value()

LIB_API 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.


Parameters
[in]p_paramsPointer to a user allocated ni_xcoder_params_t to find and set a particular parameter
[in]nameString represented parameter name to search
[in]valueParameter value to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

allow "5.1" or "51", both converted to integer 51

if level-idc specifies an obviously wrong value in either float or int, throw error consistently. Stronger level checking will be done in encoder_open()

Definition at line 5635 of file ni_device_api.c.

◆ ni_encoder_session_read_stream_header()

LIB_API 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.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct from encoder
[in]p_dataPointer to a caller allocated ni_session_data_io_t struct which contains a ni_packet_t data packet to receive
Returns
On success Total number of bytes read On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_INVALID_SESSION

Definition at line 11232 of file ni_device_api.c.

◆ ni_encoder_set_input_frame_format()

LIB_API 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.


Parameters
[in]p_enc_ctxpointer to encoder context [in] p_enc_params pointer to encoder parameters [in] width input width [in] height input height [in] bit_depth 8 for 8-bit YUV, 10 for 10-bit YUV [in] src_endian NI_FRAME_LITTLE_ENDIAN or NI_FRAME_BIG_ENDIAN [in] planar 0 for semi-planar YUV, 1 for planar YUV
Returns
on success NI_RETCODE_SUCCESS

on failure NI_RETCODE_INVALID_PARAM

Definition at line 11083 of file ni_device_api.c.

◆ ni_encoder_sw_frame_buffer_alloc()

LIB_API 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, and ni_frame_buffer_alloc_nv(), used for semi-planar pixel formats. This API is meant to combine the functionality for both formats. Allocate memory for the frame buffer for encoding based on given parameters, taking into account pic line size and extra data. Applicable to YUV420p(8 or 10 bit/pixel) or nv12 AVFrame. Cb/Cr size matches that of Y.


Parameters
[in]planartrue: if planar: pixel_format == (NI_PIX_FMT_YUV420P || NI_PIX_FMT_YUV420P10LE ||NI_PIX_FMT_RGBA). false: semi-planar: pixel_format == (NI_PIX_FMT_NV12 || NI_PIX_FMT_P010LE).
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]linesizePicture line size
[in]alignmentAllignment requirement. Only used for planar format.
[in]extra_lenExtra data size (incl. meta data). < 0 means not to allocate any buffer (zero-copy from existing)
[in]alignment_2pass_waset alignment to work with 2pass encode
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

This API is a wrapper for ni_encoder_frame_buffer_alloc(), used for planar pixel formats, and ni_frame_buffer_alloc_nv(), used for semi-planar pixel formats. This API is meant to combine the functionality for both formats. Allocate memory for the frame buffer for encoding based on given parameters, taking into account pic line size and extra data. Applicable to YUV420p(8 or 10 bit/pixel) or nv12 AVFrame. Cb/Cr size matches that of Y.


Parameters
[in]planartrue: if planar: pixel_format == (NI_PIX_FMT_YUV420P || NI_PIX_FMT_YUV420P10LE ||NI_PIX_FMT_RGBA). false: semi-planar: pixel_format == (NI_PIX_FMT_NV12 || NI_PIX_FMT_P010LE).
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]linesizePicture line size
[in]alignmentAllignment requirement. Only used for planar format.
[in]extra_lenExtra data size (incl. meta data). < 0 means not to allocate any buffer (zero-copy from existing)
[in]alignment_2pass_waset alignment to work with 2pass encode
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 3531 of file ni_device_api.c.

◆ ni_force_idr_frame_type()

LIB_API ni_retcode_t ni_force_idr_frame_type ( ni_session_context_t p_ctx)

Force next frame to be IDR frame during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
Returns
On success NI_RETCODE_SUCCESS

Definition at line 9992 of file ni_device_api.c.

◆ ni_frame_buffer_alloc()

LIB_API 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 Planar pixel (8 or 10 bit/pixel) format or 32-bit RGBA.


Parameters
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]alignmentAllignment requirement
[in]metadata_flagFlag indicating if space for additional metadata should be allocated
[in]factor1 for 8 bits/pixel format, 2 for 10 bits/pixel, 4 for 32 bits/pixel (RGBA)
[in]hw_frame_countNumber of hw descriptors stored in lieu of raw YUV
[in]is_planar0 if semiplanar else planar
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Parameters
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]alignmentAllignment requirement
[in]metadata_flagFlag indicating if space for additional metadata should be allocated
[in]factor1 for 8 bits/pixel format, 2 for 10 bits/pixel, 4 for 32 bits/pixel (RGBA)
[in]hw_frame_countNumber of hw descriptors stored
[in]is_planar0 if semiplanar else planar
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 2123 of file ni_device_api.c.

◆ ni_frame_buffer_alloc_dl()

LIB_API 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.


Parameters
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]alignmentAllignment requirement
[in]pixel_formatFormat for input
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 2393 of file ni_device_api.c.

◆ ni_frame_buffer_alloc_hwenc()

LIB_API 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 and extra data.


Parameters
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]extra_lenExtra data size (incl. meta data)
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 8399 of file ni_device_api.c.

◆ ni_frame_buffer_alloc_nv()

LIB_API 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 and extra data. Applicable to nv12 AVFrame only. Cb/Cr size matches that of Y.


Parameters
[in]p_framePointer to a caller allocated ni_frame_t struct
[in]video_widthWidth of the video frame
[in]video_heightHeight of the video frame
[in]linesizePicture line size
[in]extra_lenExtra data size (incl. meta data). < 0 means not to allocate any buffer (zero-copy from existing)
[in]alignment_2pass_waset alignment to work with 2pass encode
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 3397 of file ni_device_api.c.

◆ ni_frame_buffer_alloc_pixfmt()

LIB_API 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 format, width, height, stride, alignment, and extra data.


Parameters
[in]p_framePointer to caller allocated ni_frame_t
[in]pixel_formata pixel format in ni_pix_fmt_t enum
[in]video_widthwidth, in pixels
[in]video_heightheight, in pixels
[in]linesizehorizontal stride
[in]alignmentapply a 16 pixel height alignment (T408 only)
[in]extra_lenmeta data size
Returns
NI_RETCODE_SUCCESS NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 9252 of file ni_device_api.c.

◆ ni_frame_buffer_free()

LIB_API 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_buffer_alloc or ni_frame_buffer_alloc_nv.


Parameters
[in]p_framePointer to a previously allocated ni_frame_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 3561 of file ni_device_api.c.

◆ ni_frame_free_aux_data()

LIB_API 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.


Parameters
[in/out]frame a frame from which the auxiliary data should be removed
[in]typetype of the auxiliary data to be removed
Returns
None

Definition at line 4089 of file ni_device_api.c.

◆ ni_frame_get_aux_data()

LIB_API 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.


Parameters
[in]framea frame from which the auxiliary data should be retrieved
[in]typetype of the auxiliary data to be retrieved
Returns
a pointer to the aux data of a given type on success, NULL otherwise

Definition at line 4066 of file ni_device_api.c.

◆ ni_frame_new_aux_data()

LIB_API 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.


Parameters
[in/out]frame a frame to which the auxiliary data should be added
[in]typetype of the added auxiliary data
[in]data_sizesize of the added auxiliary data
Returns
a pointer to the newly added aux data on success, NULL otherwise

Definition at line 4005 of file ni_device_api.c.

◆ ni_frame_new_aux_data_from_raw_data()

LIB_API 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.


Parameters
[in/out]frame a frame to which the auxiliary data should be added
[in]typetype of the added auxiliary data
[in]raw_datathe raw data of the aux data
[in]data_sizesize of the added auxiliary data
Returns
a pointer to the newly added aux data on success, NULL otherwise

Definition at line 4045 of file ni_device_api.c.

◆ ni_frame_wipe_aux_data()

LIB_API void ni_frame_wipe_aux_data ( ni_frame_t frame)

Free and remove all auxiliary data from the frame.


Parameters
[in/out]frame a frame from which the auxiliary data should be removed
Returns
None

Definition at line 4115 of file ni_device_api.c.

◆ ni_get_dma_buf_file_descriptor()

LIB_API int32_t ni_get_dma_buf_file_descriptor ( const ni_frame_t p_frame)

Get the DMA buffer file descriptor from the P2P frame.


Parameters
[in]p_framepointer to a P2P frame
Returns
On success DMA buffer file descriptor On failure NI_RETCODE_FAILURE

Parameters
[in]p_framepointer to a P2P frame
Returns
On success DMA buffer file descriptor On failure NI_RETCODE_INVALID_PARAM

Definition at line 11283 of file ni_device_api.c.

◆ ni_gop_params_check()

LIB_API bool ni_gop_params_check ( ni_xcoder_params_t p_param)

Check custom gop params set.


Parameters
[in]p_paramPointer to a caller allocated ni_xcoder_params_t struct
Returns
on success true

on failure false

Definition at line 12749 of file ni_device_api.c.

◆ ni_gop_params_check_set()

LIB_API void ni_gop_params_check_set ( ni_xcoder_params_t p_param,
char *  value 
)

Set custom gop and prepare to check if success.


Parameters
[in]p_paramPointer to a caller allocated ni_xcoder_params_t struct
[in]valuePointer to a caller allocated custom gop name
Returns
none

Definition at line 12614 of file ni_device_api.c.

◆ ni_hwframe_buffer_recycle()

LIB_API ni_retcode_t ni_hwframe_buffer_recycle ( niFrameSurface1_t surface,
int32_t  device_handle 
)

Recycle a hwframe buffer on card.


Parameters
[in]surfaceStruct containing device and frame location to clear out
[in]device_handlehandle to access device memory buffer is stored in
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Recycle a hwframe buffer on card.


Parameters
[in]surfaceStruct containing device and frame location to clear out
[in]device_handlehandle to access device memory buffer is stored in
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 8487 of file ni_device_api.c.

◆ ni_hwframe_buffer_recycle2()

LIB_API ni_retcode_t ni_hwframe_buffer_recycle2 ( niFrameSurface1_t surface)

Recycle a hwframe buffer on card.


Parameters
[in]surfaceStruct containing device and frame location to clear out
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Recycle a hwframe buffer on card.


Parameters
[in]surfaceStruct containing device and frame location to clear out
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 8517 of file ni_device_api.c.

◆ ni_hwframe_p2p_buffer_recycle()

LIB_API ni_retcode_t ni_hwframe_p2p_buffer_recycle ( ni_frame_t p_frame)

Recycle hw P2P frames.


Parameters
[in]p_framepointer to an acquired P2P hw frame
Returns
on success NI_RETCODE_SUCCESS

on failure NI_RETCODE_INVALID_PARAM

Definition at line 10996 of file ni_device_api.c.

◆ ni_p2p_recv()

LIB_API 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)


Parameters
[in]pSessionPointer to destination upload session
[in]dmaAddrsPointer to source DMA addresses
[in]pDstFramePointer to destination P2P frame
Returns
on success NI_RETCODE_SUCCESS on failure NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Definition at line 12866 of file ni_device_api.c.

◆ ni_p2p_send()

LIB_API ni_retcode_t ni_p2p_send ( ni_session_context_t pSession,
niFrameSurface1_t source,
uint64_t  ui64DestAddr,
uint32_t  ui32FrameSize 
)

Initiate P2P transfer to another device (P2P write)


Parameters
[in]pSessionPointer to source card destination
[in]sourcePointer to source frame to transmit
[in]ui64DestAddrDestination address on target device
[in]ui32FrameSizeSize of frame to transfer
Returns
on success NI_RETCODE_SUCCESS on failure NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Initiate P2P transfer to another device (P2P write)


Parameters
[in]pSessionPointer to source card destination
[in]sourcePointer to source frame to transmit
[in]ui64DestAddrDestination address on target device
[in]ui32FrameSizeSize of frame to transfer
Returns
on success NI_RETCODE_SUCCESS on failure NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_NVME_CMD_FAILED

Definition at line 12822 of file ni_device_api.c.

◆ ni_p2p_xfer()

LIB_API 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)


Parameters
[in]pSessionPointer to source card destination
[in]sourcePointer to source frame to transmit
[in]ui64DestAddrDestination address on target device
[in]ui32FrameSizeSize of frame to transfer
Returns
always returns NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION

Definition at line 12791 of file ni_device_api.c.

◆ ni_packet_buffer_alloc()

LIB_API 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.


Parameters
[in]p_packetPointer to a caller allocated ni_packet_t struct
[in]packet_sizeRequired allocation size
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC

Definition at line 3713 of file ni_device_api.c.

◆ ni_packet_buffer_free()

LIB_API ni_retcode_t ni_packet_buffer_free ( ni_packet_t p_packet)

Free packet buffer that was previously allocated with ni_packet_buffer_alloc.


Parameters
[in]p_packetPointer to a previously allocated ni_packet_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 3843 of file ni_device_api.c.

◆ ni_packet_buffer_free_av1()

LIB_API 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.


Parameters
[in]p_packetPointer to a previously allocated ni_packet_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 3884 of file ni_device_api.c.

◆ ni_packet_copy()

LIB_API 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.


Parameters
[in]p_destinationDestination to where to copy to
[in]p_sourceSource from where to copy from
[in]cur_sizecurrent size
[out]p_leftoverPointer to the data that was left over
[out]p_prev_sizeSize of the data leftover
Returns
On success Total number of bytes that were copied On failure NI_RETCODE_FAILURE

Parameters
[in]p_destinationDestination to where to copy to
[in]p_sourceSource from where to copy from
[in]cur_sizecurrent size
[out]p_leftoverPointer to the data that was left over
[out]p_prev_sizeSize of the data leftover ??
Returns
On success Total number of bytes that were copied On failure NI_RETCODE_FAILURE

Definition at line 3936 of file ni_device_api.c.

◆ ni_query_extra_info()

LIB_API 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.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open()
[in]p_dev_extra_infoPointer to device extra info
[in]fw_rev[]Fw version to check if this function is supported
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_MEM_ALOC

Definition at line 11617 of file ni_device_api.c.

◆ ni_query_fl_fw_versions()

LIB_API 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.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open()
[in]device_info
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_MEM_ALOC

Definition at line 11385 of file ni_device_api.c.

◆ ni_query_nvme_status()

LIB_API 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.


Parameters
[in]p_ctxPointer to a caller allocated ni_session_context_t struct
[in]p_load_queryPointer to a caller allocated ni_load_query_t struct
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_MEM_ALOC

Definition at line 11447 of file ni_device_api.c.

◆ ni_query_temperature()

LIB_API 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.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open()
[in]p_dev_tempPointer to device temperature
[in]fw_rev[]Fw version to check if this function is supported
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_MEM_ALOC

Definition at line 11562 of file ni_device_api.c.

◆ ni_query_vf_ns_id()

LIB_API 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.


Parameters
[in]device_handleDevice handle obtained by calling ni_device_open()
[in]p_dev_ns_vfPointer to a ni_device_vf_ns_id_t struct
[in]fw_rev[]Fw version to check if this function is supported
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_ERROR_MEM_ALOC

Definition at line 11509 of file ni_device_api.c.

◆ ni_reconfig_bitrate()

LIB_API ni_retcode_t ni_reconfig_bitrate ( ni_session_context_t p_ctx,
int32_t  bitrate 
)

Reconfigure bitrate dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]bitrateTarget bitrate to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 9869 of file ni_device_api.c.

◆ ni_reconfig_crf()

LIB_API ni_retcode_t ni_reconfig_crf ( ni_session_context_t p_ctx,
int32_t  crf 
)

Reconfigure crf value dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]crfcrf value to reconfigure
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10301 of file ni_device_api.c.

◆ ni_reconfig_crf2()

LIB_API ni_retcode_t ni_reconfig_crf2 ( ni_session_context_t p_ctx,
float  crf 
)

Reconfigure crf float point value dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]crfcrf float point value to reconfigure
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10358 of file ni_device_api.c.

◆ ni_reconfig_framerate()

LIB_API ni_retcode_t ni_reconfig_framerate ( ni_session_context_t p_ctx,
ni_framerate_t framerate 
)

Reconfigure framerate dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]frameratePointer to struct specifying framerate to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]framerateTarget framerate to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10107 of file ni_device_api.c.

◆ ni_reconfig_intraprd()

LIB_API ni_retcode_t ni_reconfig_intraprd ( ni_session_context_t p_ctx,
int32_t  intra_period 
)

Reconfigure intraPeriod dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]intra_periodTarget intra period to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

NOTE - the frame upon which intra period is reconfigured is encoded as IDR frame NOTE - reconfigure intra period is not allowed if intraRefreshMode is enabled or if gopPresetIdx is 1

Definition at line 9909 of file ni_device_api.c.

◆ ni_reconfig_max_frame_size()

LIB_API ni_retcode_t ni_reconfig_max_frame_size ( ni_session_context_t p_ctx,
int32_t  max_frame_size 
)

Reconfigure maxFrameSize dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]max_frame_sizethe new maxFrameSize value
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

NOTE - maxFrameSize_Bytes value less than ((bitrate / 8) / framerate) will be rejected


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]max_frame_sizemaxFrameSize to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

NOTE - maxFrameSize_Bytes value less than ((bitrate / 8) / framerate) will be rejected

Definition at line 10176 of file ni_device_api.c.

◆ ni_reconfig_max_frame_size_ratio()

LIB_API 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.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]max_frame_size_ratiothe new maxFrameSizeRatio value
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]max_frame_size_ratiomaxFrameSizeRatio to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10468 of file ni_device_api.c.

◆ ni_reconfig_min_max_qp()

LIB_API 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.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]ni_rc_min_max_qpTarget min&max qp to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10251 of file ni_device_api.c.

◆ ni_reconfig_slice_arg()

LIB_API ni_retcode_t ni_reconfig_slice_arg ( ni_session_context_t p_ctx,
int16_t  sliceArg 
)

Reconfigure sliceArg dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]sliceArgthe new sliceArg value
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10541 of file ni_device_api.c.

◆ ni_reconfig_vbv_value()

LIB_API 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.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]vbvBufferSizeTarget vbvBufferSize to set
[in]vbvMaxRateTarget vbvMaxRate to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10418 of file ni_device_api.c.

◆ ni_reconfig_vui()

LIB_API ni_retcode_t ni_reconfig_vui ( ni_session_context_t p_ctx,
ni_vui_hrd_t vui 
)

Reconfigure VUI dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]bitrateTarget bitrate to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Reconfigure VUI dynamically during encoding.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]bitrateTarget bitrate to set
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 9945 of file ni_device_api.c.

◆ ni_scaler_dest_frame_alloc()

LIB_API 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


Parameters
<br>
Returns
0 if successful, < 0 otherwise

Definition at line 3298 of file ni_device_api.c.

◆ ni_scaler_frame_pool_alloc()

LIB_API 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


Parameters
<br>
Returns
0 if successful, < 0 otherwise

Definition at line 3355 of file ni_device_api.c.

◆ ni_scaler_input_frame_alloc()

LIB_API 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 incoming hardware frame index to the scaler manager


Parameters
<br>
Returns
0 if successful, < 0 otherwise

Definition at line 3333 of file ni_device_api.c.

◆ ni_scaler_p2p_frame_acquire()

LIB_API 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.


Parameters
[in]p_ctxpointer to caller allocated upload context [in] p_surface pointer to a caller allocated hardware frame [in] data_len scaler frame buffer data length
Returns
on success NI_RETCODE_SUCCESS

on failure NI_RETCODE_FAILURE

Definition at line 11029 of file ni_device_api.c.

◆ ni_scaler_set_drawbox_params()

LIB_API 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.


Parameters
ni_session_context_tp_ctx - xcoder Context
ni_scaler_params_t* params - pointer to the scaler ni_scaler_drawbox params_t struct
Returns
- NI_RETCODE_SUCCESS on success, NI_RETCODE_ERROR_INVALID_SESSION, NI_RETCODE_ERROR_NVME_CMD_FAILED on failure

Definition at line 8701 of file ni_device_api.c.

◆ ni_scaler_set_params()

LIB_API 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.


Parameters
[in]p_ctxpointer to session context
[in]p_paramspointer to the scaler parameters
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED

Parameters
[in]p_ctxpointer to session context
[in]p_paramspointer to scaler parameters
Returns
NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_ERROR_NVME_CMD_FAILED NI_RETCODE_ERROR_MEM_ALOC

Definition at line 8671 of file ni_device_api.c.

◆ ni_scaler_set_watermark_params()

LIB_API 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.


Parameters
ni_session_context_tp_ctx - xcoder Context
ni_scaler_params_t* params - pointer to the scaler ni_scaler_watermark_params_t struct
Returns
- NI_RETCODE_SUCCESS on success, NI_RETCODE_ERROR_INVALID_SESSION, NI_RETCODE_ERROR_NVME_CMD_FAILED on failure

Definition at line 8781 of file ni_device_api.c.

◆ ni_set_demo_roi_map()

LIB_API ni_retcode_t ni_set_demo_roi_map ( ni_session_context_t p_enc_ctx)

Set up hard coded demo ROI map.


Parameters
[in]p_enc_ctxPointer to a caller allocated
Returns
on success NI_RETCODE_SUCCESS

on failure NI_RETCODE_ERROR_MEM_ALOC

Definition at line 11751 of file ni_device_api.c.

◆ ni_set_frame_ref_invalid()

LIB_API ni_retcode_t ni_set_frame_ref_invalid ( ni_session_context_t p_ctx,
int32_t  frame_num 
)

Set frame reference invalidation.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]frame_numframe number after which all references shall be invalidated
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10082 of file ni_device_api.c.

◆ ni_set_ltr()

LIB_API 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.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]ltrPointer to struct specifying LTR support
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10026 of file ni_device_api.c.

◆ ni_set_ltr_interval()

LIB_API ni_retcode_t ni_set_ltr_interval ( ni_session_context_t p_ctx,
int32_t  ltr_interval 
)

Set Long Term Reference interval.


Parameters
[in]p_ctxPointer to caller allocated ni_session_context_t
[in]ltr_intervalthe new long term reference inteval value
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_INVALID_PARAM

Definition at line 10054 of file ni_device_api.c.

◆ ni_uploader_frame_buffer_lock()

LIB_API 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.


Parameters
[in]p_upl_ctxpointer to caller allocated upload context [in] p_frame pointer to caller allocated hardware P2P frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Definition at line 10763 of file ni_device_api.c.

◆ ni_uploader_frame_buffer_unlock()

LIB_API 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.


Parameters
[in]p_upl_ctxpointer to caller allocated upload context [in] p_frame pointer to caller allocated hardware P2P frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Definition at line 10821 of file ni_device_api.c.

◆ ni_uploader_frame_zerocopy_check()

LIB_API 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.


Parameters
[in]p_upl_ctxpointer to uploader context [in] width input width [in] height input height [in] linesize input linesizes (pointer to array) [in] pixel_format input pixel format
Returns
on success and can do zero copy NI_RETCODE_SUCCESS

cannot do zero copy NI_RETCODE_ERROR_UNSUPPORTED_FEATURE NI_RETCODE_ERROR_UNSUPPORTED_FW_VERSION NI_RETCODE_INVALID_PARAM

Definition at line 3028 of file ni_device_api.c.

◆ ni_uploader_p2p_test_load()

LIB_API 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 the Quadra device. Does not need the Netint kernel driver but requires root privilege.


Parameters
[in]p_upl_ctxpointer to caller allocated uploader session context [in] p_swframe pointer to a caller allocated software frame [in] p_hwframe pointer to a caller allocated hardware frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Definition at line 10924 of file ni_device_api.c.

◆ ni_uploader_p2p_test_send()

LIB_API 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 call. Copies YUV data from the software frame to the hardware P2P frame on the Quadra device.


Parameters
[in]p_upl_ctxpointer to caller allocated uploader session context [in] p_swframe pointer to a caller allocated software frame [in] p_hwframe pointer to a caller allocated hardware frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Special P2P test API call. Copies YUV data from the software frame to the hardware P2P frame on the Quadra device.


Parameters
[in]p_upl_ctxpointer to caller allocated uploader session context [in] p_swframe pointer to a caller allocated software frame [in] p_hwframe pointer to a caller allocated hardware frame
Returns
On success NI_RETCODE_SUCCESS On failure NI_RETCODE_FAILURE NI_RETCODE_INVALID_PARAM

Definition at line 10869 of file ni_device_api.c.

◆ ni_uploader_set_frame_format()

LIB_API 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 frame format for the uploader.


Parameters
[in]p_upl_ctxpointer to uploader context [in] width width [in] height height [in] pixel_format pixel format [in] isP2P 0 = normal, 1 = P2P
Returns
on success NI_RETCODE_SUCCESS

on failure NI_RETCODE_INVALID_PARAM

Set the frame format for the uploader.


Parameters
[in]p_upl_ctxpointer to uploader context [in] width width [in] height height [in] pixel_format pixel format [in] isP2P 0 = normal, 1 = P2P
Returns
on success NI_RETCODE_SUCCESS

on failure NI_RETCODE_INVALID_PARAM

Definition at line 11171 of file ni_device_api.c.

Variable Documentation

◆ g_xcoder_log_names

const LIB_API char* const g_xcoder_log_names[NI_XCODER_LOG_NAMES_ARRAY_LEN]

Definition at line 71 of file ni_device_api.c.

◆ g_xcoder_preset_names

const LIB_API char* const g_xcoder_preset_names[NI_XCODER_PRESET_NAMES_ARRAY_LEN]

Definition at line 69 of file ni_device_api.c.