 |
libxcoder
5.5.0
|
Go to the documentation of this file.
112 #define NI_VERSION_CHARACTER_COUNT 8
320 #define TUNE_BFRAME_VISUAL_MEDIUM 1
321 #define TUNE_BFRAME_VISUAL_HIGH 2
680 #define CU_INFO_OUTPUT_SIZE_V1 26 //208 bits
681 #define CU_INFO_OUTPUT_SIZE_V2 16 //128 bits
682 #define CU_INFO_OUTPUT_SIZE_V3 19 //152 bits
685 #define CU_LOCATION_HOR_BIT_OFFSET (0)
686 #define CU_LOCATION_HOR_BYTE_OFFSET (CU_LOCATION_HOR_BIT_OFFSET / 8)
687 #define CU_LOCATION_HOR_BIT_POSITION (CU_LOCATION_HOR_BIT_OFFSET % 8)
688 #define CU_LOCATION_HOR_BITS (3)
690 #define CU_LOCATION_VER_BIT_OFFSET (3)
691 #define CU_LOCATION_VER_BYTE_OFFSET (CU_LOCATION_VER_BIT_OFFSET / 8)
692 #define CU_LOCATION_VER_BIT_POSITION (CU_LOCATION_VER_BIT_OFFSET % 8)
693 #define CU_LOCATION_VER_BITS (3)
695 #define CU_SIZE_BIT_OFFSET (6)
696 #define CU_SIZE_BYTE_OFFSET (CU_SIZE_BIT_OFFSET / 8)
697 #define CU_SIZE_BIT_POSITION (CU_SIZE_BIT_OFFSET % 8)
698 #define CU_SIZE_BITS (2)
700 #define CU_MODE_BIT_OFFSET (8)
701 #define CU_MODE_BYTE_OFFSET (CU_MODE_BIT_OFFSET / 8)
702 #define CU_MODE_BIT_POSITION (CU_MODE_BIT_OFFSET % 8)
703 #define CU_MODE_BITS (1)
705 #define RDCOST_BIT_OFFSET (9)
706 #define RDCOST_BYTE_OFFSET (RDCOST_BIT_OFFSET / 8)
707 #define RDCOST_BIT_POSITION (RDCOST_BIT_OFFSET % 8)
708 #define RDCOST_BITS (25)
710 #define INTER_PRED_IDC_BIT_OFFSET (34)
711 #define INTER_PRED_IDC_BYTE_OFFSET (INTER_PRED_IDC_BIT_OFFSET / 8)
712 #define INTER_PRED_IDC_BIT_POSITION (INTER_PRED_IDC_BIT_OFFSET % 8)
713 #define INTER_PRED_IDC_BITS (2)
715 #define MV0_REFIDX_BIT_OFFSET (36)
716 #define MV0_REFIDX_BYTE_OFFSET (MV0_REFIDX_BIT_OFFSET / 8)
717 #define MV0_REFIDX_BIT_POSITION (MV0_REFIDX_BIT_OFFSET % 8)
718 #define MV0_REFIDX_BITS (2)
720 #define MV0_MVX_BIT_OFFSET (38)
721 #define MV0_MVX_BYTE_OFFSET (MV0_MVX_BIT_OFFSET / 8)
722 #define MV0_MVX_BIT_POSITION (MV0_MVX_BIT_OFFSET % 8)
723 #define MV0_MVX_BITS (14)
725 #define MV0_MVY_BIT_OFFSET (52)
726 #define MV0_MVY_BYTE_OFFSET (MV0_MVY_BIT_OFFSET / 8)
727 #define MV0_MVY_BIT_POSITION (MV0_MVY_BIT_OFFSET % 8)
728 #define MV0_MVY_BITS (14)
730 #define MV1_REFIDX_BIT_OFFSET (66)
731 #define MV1_REFIDX_BYTE_OFFSET (MV1_REFIDX_BIT_OFFSET / 8)
732 #define MV1_REFIDX_BIT_POSITION (MV1_REFIDX_BIT_OFFSET % 8)
733 #define MV1_REFIDX_BITS (2)
735 #define MV1_MVX_BIT_OFFSET (68)
736 #define MV1_MVX_BYTE_OFFSET (MV1_MVX_BIT_OFFSET / 8)
737 #define MV1_MVX_BIT_POSITION (MV1_MVX_BIT_OFFSET % 8)
738 #define MV1_MVX_BITS (14)
740 #define MV1_MVY_BIT_OFFSET (82)
741 #define MV1_MVY_BYTE_OFFSET (MV1_MVY_BIT_OFFSET / 8)
742 #define MV1_MVY_BIT_POSITION (MV1_MVY_BIT_OFFSET % 8)
743 #define MV1_MVY_BITS (14)
745 #define INTRA_PART_MODE_BIT_OFFSET (34)
746 #define INTRA_PART_MODE_BYTE_OFFSET (INTRA_PART_MODE_BIT_OFFSET / 8)
747 #define INTRA_PART_MODE_BIT_POSITION (INTRA_PART_MODE_BIT_OFFSET % 8)
748 #define INTRA_PART_MODE_BITS (1)
750 #define INTRA_PRED_MODE0_BIT_OFFSET (35)
751 #define INTRA_PRED_MODE0_BYTE_OFFSET (INTRA_PRED_MODE0_BIT_OFFSET / 8)
752 #define INTRA_PRED_MODE0_BIT_POSITION (INTRA_PRED_MODE0_BIT_OFFSET % 8)
753 #define INTRA_PRED_MODE0_BITS (6)
755 #define INTRA_PRED_MODE1_BIT_OFFSET (41)
756 #define INTRA_PRED_MODE1_BYTE_OFFSET (INTRA_PRED_MODE1_BIT_OFFSET / 8)
757 #define INTRA_PRED_MODE1_BIT_POSITION (INTRA_PRED_MODE1_BIT_OFFSET % 8)
758 #define INTRA_PRED_MODE1_BITS (6)
760 #define INTRA_PRED_MODE2_BIT_OFFSET (47)
761 #define INTRA_PRED_MODE2_BYTE_OFFSET (INTRA_PRED_MODE2_BIT_OFFSET / 8)
762 #define INTRA_PRED_MODE2_BIT_POSITION (INTRA_PRED_MODE2_BIT_OFFSET % 8)
763 #define INTRA_PRED_MODE2_BITS (6)
765 #define INTRA_PRED_MODE3_BIT_OFFSET (53)
766 #define INTRA_PRED_MODE3_BYTE_OFFSET (INTRA_PRED_MODE3_BIT_OFFSET / 8)
767 #define INTRA_PRED_MODE3_BIT_POSITION (INTRA_PRED_MODE3_BIT_OFFSET % 8)
768 #define INTRA_PRED_MODE3_BITS (6)
770 #define MEAN_BIT_OFFSET (96)
771 #define MEAN_BYTE_OFFSET (MEAN_BIT_OFFSET / 8)
772 #define MEAN_BIT_POSITION (MEAN_BIT_OFFSET % 8)
773 #define MEAN_BITS (10)
775 #define VARIANCE_BIT_OFFSET (106)
776 #define VARIANCE_BYTE_OFFSET (VARIANCE_BIT_OFFSET / 8)
777 #define VARIANCE_BIT_POSITION (VARIANCE_BIT_OFFSET % 8)
778 #define VARIANCE_BITS (18)
780 #define QP_BIT_OFFSET (124)
781 #define QP_BYTE_OFFSET (QP_BIT_OFFSET / 8)
782 #define QP_BIT_POSITION (QP_BIT_OFFSET % 8)
785 #define RDCOST_OTHER_BIT_OFFSET (130)
786 #define RDCOST_OTHER_BYTE_OFFSET (RDCOST_OTHER_BIT_OFFSET / 8)
787 #define RDCOST_OTHER_BIT_POSITION (RDCOST_OTHER_BIT_OFFSET % 8)
788 #define RDCOST_OTHER_BITS (25)
790 #define INTRACOST_BIT_OFFSET (155)
791 #define INTRACOST_BYTE_OFFSET (INTRACOST_BIT_OFFSET / 8)
792 #define INTRACOST_BIT_POSITION (INTRACOST_BIT_OFFSET % 8)
793 #define INTRACOST_BITS (25)
795 #define INTERCOST_BIT_OFFSET (180)
796 #define INTERCOST_BYTE_OFFSET (INTERCOST_BIT_OFFSET / 8)
797 #define INTERCOST_BIT_POSITION (INTERCOST_BIT_OFFSET % 8)
798 #define INTERCOST_BITS (25)
800 #define DUMMY_BIT_OFFSET (205)
801 #define DUMMY_BYTE_OFFSET (DUMMY_BIT_OFFSET / 8)
802 #define DUMMY_BIT_POSITION (DUMMY_BIT_OFFSET % 8)
803 #define DUMMY_BITS (3)
806 #define AVC_MB_MODE_BIT_OFFSET (0)
807 #define AVC_MB_MODE_BYTE_OFFSET (AVC_MB_MODE_BIT_OFFSET / 8)
808 #define AVC_MB_MODE_BIT_POSITION (AVC_MB_MODE_BIT_OFFSET % 8)
809 #define AVC_MB_MODE_BITS (1)
811 #define AVC_RDCOST_BIT_OFFSET (1)
812 #define AVC_RDCOST_BYTE_OFFSET (AVC_RDCOST_BIT_OFFSET / 8)
813 #define AVC_RDCOST_BIT_POSITION (AVC_RDCOST_BIT_OFFSET % 8)
814 #define AVC_RDCOST_BITS (25)
816 #define AVC_INTER_PRED_IDC_BIT_OFFSET (26)
817 #define AVC_INTER_PRED_IDC_BYTE_OFFSET (AVC_INTER_PRED_IDC_BIT_OFFSET / 8)
818 #define AVC_INTER_PRED_IDC_BIT_POSITION (AVC_INTER_PRED_IDC_BIT_OFFSET % 8)
819 #define AVC_INTER_PRED_IDC_BITS (2)
821 #define AVC_MV0_REFIDX_BIT_OFFSET (28)
822 #define AVC_MV0_REFIDX_BYTE_OFFSET (AVC_MV0_REFIDX_BIT_OFFSET / 8)
823 #define AVC_MV0_REFIDX_BIT_POSITION (AVC_MV0_REFIDX_BIT_OFFSET % 8)
824 #define AVC_MV0_REFIDX_BITS (2)
826 #define AVC_MV0_MVX_BIT_OFFSET (30)
827 #define AVC_MV0_MVX_BYTE_OFFSET (AVC_MV0_MVX_BIT_OFFSET / 8)
828 #define AVC_MV0_MVX_BIT_POSITION (AVC_MV0_MVX_BIT_OFFSET % 8)
829 #define AVC_MV0_MVX_BITS (14)
831 #define AVC_MV0_MVY_BIT_OFFSET (44)
832 #define AVC_MV0_MVY_BYTE_OFFSET (AVC_MV0_MVY_BIT_OFFSET / 8)
833 #define AVC_MV0_MVY_BIT_POSITION (AVC_MV0_MVY_BIT_OFFSET % 8)
834 #define AVC_MV0_MVY_BITS (14)
836 #define AVC_MV1_REFIDX_BIT_OFFSET (58)
837 #define AVC_MV1_REFIDX_BYTE_OFFSET (AVC_MV1_REFIDX_BIT_OFFSET / 8)
838 #define AVC_MV1_REFIDX_BIT_POSITION (AVC_MV1_REFIDX_BIT_OFFSET % 8)
839 #define AVC_MV1_REFIDX_BITS (2)
841 #define AVC_MV1_MVX_BIT_OFFSET (60)
842 #define AVC_MV1_MVX_BYTE_OFFSET (AVC_MV1_MVX_BIT_OFFSET / 8)
843 #define AVC_MV1_MVX_BIT_POSITION (AVC_MV1_MVX_BIT_OFFSET % 8)
844 #define AVC_MV1_MVX_BITS (14)
846 #define AVC_MV1_MVY_BIT_OFFSET (74)
847 #define AVC_MV1_MVY_BYTE_OFFSET (AVC_MV1_MVY_BIT_OFFSET / 8)
848 #define AVC_MV1_MVY_BIT_POSITION (AVC_MV1_MVY_BIT_OFFSET % 8)
849 #define AVC_MV1_MVY_BITS (14)
851 #define AVC_INTRA_PART_MODE_BIT_OFFSET (26)
852 #define AVC_INTRA_PART_MODE_BYTE_OFFSET (AVC_INTRA_PART_MODE_BIT_OFFSET / 8)
853 #define AVC_INTRA_PART_MODE_BIT_POSITION (AVC_INTRA_PART_MODE_BIT_OFFSET % 8)
854 #define AVC_INTRA_PART_MODE_BITS (2)
880 uint8_t intraPredMode[16];
918 #define NI_MINIMUM_CROPPED_LENGTH 48
1001 #define NI_MAX_SEGMENT_NUM 4 //at lease 2 inputs once
1042 #define FRAME_CHUNK_INDEX_SIZE 4096
1043 #define NI_SESSION_CLOSE_RETRY_MAX 10
1044 #define NI_SESSION_CLOSE_RETRY_INTERVAL_US 500000
1047 #define NI_HWDESC_UNIFIED_MEMBIN_SIZE 0x187000
1049 #define NI_QUADRA_MEMORY_CONFIG_DR 0
1050 #define NI_QUADRA_MEMORY_CONFIG_SR 1
1051 #define NI_QUADRA_MEMORY_CONFIG_SR2_REMOVE_P2P 2
1052 #define NI_QUADRA_MEMORY_CONFIG_SR_4G 3
1054 #define NI_P2P_RECV 0
1055 #define NI_P2P_SEND 1
1056 #define NI_MAX_P2P_SGL_ENTRIES 128
1058 #define NI_MAX_AI_NETWORK_BINARY_BUFFER_QUERY_RETRIES 300000
1059 #define NI_MAX_DEC_SESSION_READ_QUERY_EOS_RETRIES 15000
1060 #define NI_RETRY_INTERVAL_200US 200
1061 #define NI_RETRY_INTERVAL_100US 100
1064 #define NI_FW_ENC_BITSTREAM_META_DATA_SIZE 32
1066 #define NI_FW_ENC_BITSTREAM_META_DATA_SIZE_UNDER_MAJOR_6_MINOR_o 48
1068 #define NI_FW_ENC_BITSTREAM_META_DATA_SIZE_UNDER_MAJOR_6_MINOR_rc 88
1070 #define NI_FW_ENC_BITSTREAM_META_DATA_SIZE_UNDER_MAJOR_6_MINOR_sM 112
1073 uint64_t* frame_offset, uint32_t* frame_dropped,
bool is_hw_frame);
1081 uint32_t max_pkt_size);
1087 uint32_t max_err_len);
1092 uint32_t max_err_len);
1096 uint32_t max_err_len);
1103 ni_device_handle_t device_handle,
bool device_in_ctxt);
1152 void ni_fix_VUI(uint8_t *vui,
int pos,
int value);
1330 int height,
int format,
int options,
1331 int rectangle_width,
int rectangle_height,
1332 int rectangle_x,
int rectangle_y,
1333 int rgba_color,
int frame_index);
1452 uint32_t *p_offset);
1480 uint8_t ddr_priority_mode);
1483 #define NI_AI_HW_ALIGN_SIZE 64
1488 void *nb_data, uint32_t nb_size);
1498 int height,
int options,
int pool_size,
1547 uint32_t key, uint32_t value);
1555 void *p_dec_ppu_config,
int buffer_size);
uint8_t ui8pastFrameMaxIntraRatio
uint32_t ui32hdr10_minluma
union _ni_session_config_rw::@20 uHWAccessField
uint8_t u8skipFrameInterval
uint8_t u8customizeRoiQpLevel
ni_segment_t segment[NI_MAX_SEGMENT_NUM]
ni_retcode_t ni_decoder_session_copy_internal(ni_session_context_t *src_p_ctx, ni_session_context_t *dst_p_ctx)
Copy a xcoder decoder worker thread info and card info.
enum _ni_gop_preset_idx ni_gop_preset_idx_t
int32_t pu16IntraDcDeltaRate
uint8_t ui8enable2PassGopPatern
@ INST_BUF_INFO_R_ACQUIRE
uint32_t strongIntraSmoothEnable
int32_t i32spatialLayerBitrate[NI_MAX_SPATIAL_LAYERS]
enum _ni_param_change_flags ni_param_change_flags_t
This is an enumeration for encoder parameter change.
ni_retcode_t ni_dump_log_all_cores(ni_session_context_t *p_ctx, void *p_data, bool gen_log_file)
uint8_t ui8MaxExtraHwFrameCnt
ni_retcode_t ni_ai_session_write(ni_session_context_t *p_ctx, ni_frame_t *p_frame)
int ni_get_planar_from_pixfmt(int pix_fmt)
Grab planar info from NI_PIX_FMT.
uint8_t ui8tuneBframeVisual
uint16_t ui16HDR10AveLight
ni_instance_upload_ret_hwdesc_t hw_inst_ind
ni_retcode_t ni_config_instance_set_write_len(ni_session_context_t *p_ctx, ni_device_type_t device_type, uint32_t len)
Send a p_config command to set the length for the incoming write packet.
struct _ni_metadata_enc_bstream_rev61 ni_metadata_enc_bstream_rev61_t
int32_t cu32MergeDeltaRate
ni_retcode_t ni_config_instance_set_encoder_frame_params(ni_session_context_t *p_ctx, ni_encoder_frame_params_t *p_params)
Send a p_config command to configure encoding p_frame parameters.
uint8_t fw_share_mem_usage
uint32_t ui32hdr10_maxluma
uint8_t ui8sceneChangeDetectLevel
int32_t cu08IntraDeltaRate
struct _ni_metadata_dec_frame ni_metadata_dec_frame_t
uint32_t numTicksPocDiffOne
int32_t enable_cu_level_rate_control
ni_retcode_t ni_uploader_session_open(ni_session_context_t *p_ctx)
Open a xcoder uploader instance.
int32_t dependSliceModeArg
int32_t pu32IntraPlanarDeltaRate
ni_retcode_t ni_hwupload_session_query_buffer_avail(ni_session_context_t *p_ctx)
Query and acquire buffer from xcoder upload instance.
uint32_t ui32ltrNextInterval
struct _ni_instance_mgr_general_status ni_instance_mgr_general_status_t
int ni_hwdownload_by_frame_idx(niFrameSurface1_t *hwdesc, ni_frame_t *p_frame, int is_auto_dl)
Retrieve a YUV p_frame by frame index.
ni_retcode_t ni_device_set_ddr_configuration(ni_session_context_t *p_ctx, uint8_t ddr_priority_mode)
Set DDR configuration of Quadra device.
struct _ni_instance_upload_ret_hwdesc ni_instance_upload_ret_hwdesc_t
ni_retcode_t ni_encoder_start_buffer_alloc(ni_frame_t *p_frame)
Allocate memory for the non-4k-aligned part at the start of YUV data for encoder input data.
ni_retcode_t ni_query_instance_buf_info(ni_session_context_t *p_ctx, ni_instance_buf_info_rw_type_t rw_type, ni_device_type_t device_type, ni_instance_buf_info_t *p_inst_buf_info)
Query a particular xcoder instance to get buffer/data Info data.
uint16_t ui16WriteFrameId
uint8_t ui8crfMaxIframeEnable
uint16_t ui16aspectRatioWidth
uint32_t ui32LastTransactionId
ni_decoder_output_picture_size sOutputPictureSize
int32_t cu16InterDeltaRate
ni_retcode_t ni_hwframe_clone(ni_session_context_t *p_ctx, ni_frameclone_desc_t *p_frameclone_desc)
Copy a src hw frame to a dst hw frame.
struct _ni_resolution ni_resolution_t
ni_retcode_t ni_ai_query_network_ready(ni_session_context_t *p_ctx)
ni_retcode_t ni_config_instance_eos(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Send a p_config command for End Of Stream.
ni_retcode_t ni_recv_from_target(ni_session_context_t *pSession, const ni_p2p_sgl_t *dmaAddrs, ni_frame_t *pDstFrame)
struct _ni_log_fl_fw_versions ni_log_fl_fw_versions_t
ni_retcode_t ni_config_instance_update_encoder_params(ni_session_context_t *p_ctx, ni_param_change_flags_t change_flags)
ni_retcode_t ni_scaler_session_query_buffer_avail(ni_session_context_t *p_ctx)
Query and acquire buffer from xcoder scale instance.
uint8_t active_sub_instances_cnt_overall
enum _ni_xcoder_mgr_retcode ni_xcoder_mgr_retcode_t
uint8_t ui8colorPrimaries
int32_t fixedBitRatio[NI_MAX_GOP_NUM]
uint8_t process_load_percent
uint32_t ui32ltrRefInterval
Public definitions for managing NETINT video processing devices.
struct _ni_metadata_common ni_metadata_common_t
uint8_t process_load_percent_upper
ni_retcode_t ni_set_cpu_affinity(ni_session_context_t *p_ctx)
set cpu affinity based on numa node
ni_retcode_t ni_scaler_session_close(ni_session_context_t *p_ctx, int eos_received)
close a scaler session
uint32_t ui32ErrRatioThreshold
void * ni_session_keep_alive_thread(void *arguments)
decoder keep alive thread function triggers every 1 second
uint8_t ui8disableBframeRDOQ
ni_retcode_t ni_query_stream_info(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_instance_mgr_stream_info_t *p_stream_info)
Query a particular xcoder instance to get Stream Info data.
ni_retcode_t ni_check_common_params(ni_t408_config_t *p_param, ni_xcoder_params_t *p_src, char *param_err, uint32_t max_err_len)
ni_retcode_t ni_validate_custom_template(ni_session_context_t *p_ctx, ni_encoder_config_t *p_cfg, ni_xcoder_params_t *p_src, char *p_param_err, uint32_t max_err_len)
Perform validation on custom parameters (Rev. B)
struct _ni_metadata_enc_bstream ni_metadata_enc_bstream_t
uint8_t ui8LookAheadDepth
int32_t i32userMinDeltaQp
ni_retcode_t ni_device_get_ddr_configuration(ni_session_context_t *p_ctx)
Get DDR configuration of Quadra device.
uint8_t ui8av1ErrResilientMode
uint32_t nrNoiseEstEnable
uint8_t ui8spatialLayersRefBaseLayer
uint8_t ui8lowLatencyMode
uint8_t ui8totalCuTreeDepth
@ INST_BUF_INFO_RW_WRITE_BUSY
#define NI_VERSION_CHARACTER_COUNT
ni_retcode_t ni_config_session_rw(ni_session_context_t *p_ctx, ni_session_config_rw_type_t rw_type, uint8_t enable, uint8_t hw_action, uint16_t frame_id)
Configure the read/write pipe for a session to control its behavior.
ni_retcode_t ni_validate_custom_dec_template(ni_xcoder_params_t *p_src, ni_session_context_t *p_ctx, ni_decoder_config_t *p_cfg, char *p_param_err, uint32_t max_err_len)
Perform validation on custom dec parameters (Rev. B)
uint8_t ui8adaptiveCuTree
uint16_t ui16MaxSeiDataSize
ni_retcode_t ni_config_instance_sos(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Send a p_config command for Start Of Stream.
ni_retcode_t ni_get_memory_offset(ni_session_context_t *p_ctx, const niFrameSurface1_t *hwdesc, uint32_t *p_offset)
Get an address offset from a hw descriptor.
int32_t pu04IntraPlanarDeltaRate
uint8_t ui8AiEnhanceLevel
int32_t pu32IntraAngleDeltaRate
uint32_t ui32chromaLinesize
uint8_t ui8av1OpLevel[NI_MAX_SPATIAL_LAYERS]
uint32_t ui32setLongTermInterval
@ ni_xcoder_resource_insufficient
uint16_t rectangle_height
uint8_t last_ran_fl_version[NI_VERSION_CHARACTER_COUNT]
ni_retcode_t ni_ai_session_read(ni_session_context_t *p_ctx, ni_packet_t *p_packet)
int ni_encoder_session_read(ni_session_context_t *p_ctx, ni_packet_t *p_packet)
uint8_t ui8fixedframerate
uint8_t ui8mallocStrategy
ni_retcode_t ni_ai_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)
uint32_t ui32Session_timestamp_low
void ni_set_default_template(ni_session_context_t *p_ctx, ni_encoder_config_t *p_config)
Setup and initialize all xcoder configuration to default (Rev. B)
ni_retcode_t ni_ai_session_read_hwdesc(ni_session_context_t *p_ctx, ni_frame_t *p_frame)
read a hardware descriptor from a scaler session
int32_t use_recommend_enc_params
ni_session_config_rw_type_t
uint32_t forcedHeaderEnable
uint32_t ui32SourceHeight
uint8_t ui8disableAv1TimingInfo
struct _ni_instance_buf_info ni_instance_buf_info_t
struct _ni_session_stats ni_session_stats_t
ni_retcode_t ni_decoder_session_send_eos(ni_session_context_t *p_ctx)
Send end of stream signal to the decoder.
uint8_t ui8preIntraHandling
#define NI_MAX_SPATIAL_LAYERS
ni_retcode_t ni_decoder_session_close(ni_session_context_t *p_ctx, int eos_recieved)
Close a xcoder decoder instance.
uint8_t ui8enableCompensateQp
uint8_t ui8EnablePpuScaleLimit
uint16_t transfer_frame_height
ni_retcode_t ni_config_instance_set_decoder_params(ni_session_context_t *p_ctx, uint32_t max_pkt_size)
Send a p_config command to configure decoding parameters.
ni_retcode_t ni_encoder_session_send_eos(ni_session_context_t *p_ctx)
Flush encoder output.
ni_retcode_t ni_encoder_session_close(ni_session_context_t *p_ctx, int eos_recieved)
Close a xcoder encoder instance.
int8_t i8statisticOutputLevel
uint8_t ui8setLongTermCount
uint8_t ui8stillImageDetectLevel
uint8_t process_load_percent_overall
uint8_t ui8ReduceDpbDelay
ni_retcode_t ni_send_to_target(ni_session_context_t *p_ctx, niFrameSurface1_t *source, uint64_t ui64DestAddr, uint32_t ui32FrameSize)
ni_retcode_t ni_send_session_keep_alive(uint32_t session_id, ni_device_handle_t device_handle, ni_event_handle_t event_handle, void *p_data)
send a keep alive message to firmware
uint16_t ui16aspectRatioHeight
ni_instance_buf_info_rw_type_t
Common NETINT definitions used by all modules.
uint32_t ui32LastTransactionCompletionStatus
uint8_t ui8adaptiveCrfMode
uint8_t fw_video_mem_usage
uint8_t ui8multicoreJointMode
ni_retcode_t ni_ai_alloc_hwframe(ni_session_context_t *p_ctx, int width, int height, int options, int pool_size, int frame_index)
int ni_hwupload_session_write(ni_session_context_t *p_ctx, ni_frame_t *p_frame, niFrameSurface1_t *hwdesc)
Send a YUV p_frame to upload session.
struct _ni_network_buffer_info ni_network_buffer_info_t
uint32_t ui32lumaLinesize
int ni_decoder_session_read_desc(ni_session_context_t *p_ctx, ni_frame_t *p_frame)
Copy a xcoder decoder worker thread info and card info.
int32_t cu16MergeDeltaRate
struct _ni_encoder_frame_params ni_encoder_frame_params_t
int32_t entropy_coding_mode
ni_retcode_t ni_query_detail_status(ni_session_context_t *p_ctx, ni_device_type_t device_type, void *p_detail_status, int ver)
Query a particular xcoder instance to get DetailStatus data.
int ni_xcoder_session_query(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Query current xcoder status.
int lower_pixel_rate(const ni_load_query_t *pQuery, uint32_t ui32CurrentLowest)
ni_retcode_t ni_uploader_session_close(ni_session_context_t *p_ctx)
Close an xcoder upload instance.
ni_retcode_t ni_dump_log_single_core(ni_session_context_t *p_ctx, void *p_data, uint32_t core_id, bool gen_log_file)
@ ni_xcoder_request_success
@ INST_BUF_INFO_RW_WRITE_BY_EP
uint8_t ui8temporalLayersEnable
ni_retcode_t ni_clear_instance_buf(niFrameSurface1_t *surface)
clear a particular xcoder instance buffer/data
uint8_t current_fw_revision[NI_VERSION_CHARACTER_COUNT]
uint16_t force_picture_type
void ni_params_print(ni_xcoder_params_t *const p_encoder_params)
Print xcoder user configurations.
uint32_t monochromeEnable
uint8_t ui8bitstreamFormat
uint8_t ui8enableTimecode
int32_t ni_get_frame_index(uint32_t *value)
Get xcoder instance id.
uint8_t ui8useLowDelayPocType
uint8_t ui8SemiPlanarEnabled
struct _ni_metadata_enc_frame ni_metadata_enc_frame_t
struct _ni_instance_mgr_allocation_info ni_instance_mgr_allocation_info_t
uint32_t fw_model_load_overall
uint8_t ui8EnableRdoQuant
int32_t pu08IntraPlanarDeltaRate
int ni_get_bitdepth_factor_from_pixfmt(int pix_fmt)
Grab bitdepth factor from NI_PIX_FMT.
int32_t pu16IntraAngleDeltaRate
int32_t constIntraPredFlag
int32_t enable_mb_level_rc
int32_t cu16IntraDeltaRate
int ni_xcoder_session_query_detail(ni_session_context_t *p_ctx, ni_device_type_t device_type, void *detail_data, int ver)
Query current xcoder status.
struct _ni_ai_config_t ni_ai_config_t
ni_retcode_t ni_config_instance_set_sequence_change(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_resolution_t *p_resolution)
Send a p_config command to inform encoder sequence change.
int32_t cu32IntraDeltaRate
ni_decode_cropping_rectangle sCroppingRectable
uint32_t ui32Session_timestamp_high
ni_retcode_t ni_config_instance_flush(ni_session_context_t *p_ctx, ni_device_type_t device_type)
Send a p_config command to flush the stream.
uint32_t ui32sourceEndian
ni_decoder_output_config_t asOutputConfig[NI_MAX_NUM_OF_DECODER_OUTPUTS]
ni_retcode_t ni_encoder_session_open(ni_session_context_t *p_ctx)
Open a xcoder encoder instance.
@ GOP_PRESET_IDX_HIERARCHICAL_IPPPP
int32_t cu08MergeDeltaRate
ni_retcode_t ni_config_instance_set_scaler_params(ni_session_context_t *p_ctx, ni_scaler_params_t *p_params)
condif a scaler instance
#define NI_MAX_SEGMENT_NUM
ni_retcode_t ni_config_instance_set_encoder_params(ni_session_context_t *p_ctx)
Send a p_config command to configure encoding parameters.
@ ni_xcoder_resource_recovery
int32_t enable_transform_8x8
int32_t pu16IntraPlanarDeltaRate
ni_t408_config_t niParamT408
ni_retcode_t ni_ai_session_close(ni_session_context_t *p_ctx, int eos_received)
uint32_t ui32LastErrorTransactionId
int32_t cu08InterDeltaRate
ni_retcode_t ni_scaler_config_frame(ni_session_context_t *p_ctx, ni_frame_config_t *p_cfg)
config frame in the scaler
ni_retcode_t ni_scaler_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)
allocate a frame in the scaler
uint8_t ui8DisablePictureReordering
struct _ni_instance_mgr_stream_info ni_instance_mgr_stream_info_t
struct _ni_encoder_config_t ni_encoder_config_t
struct _ni_decoder_config_t ni_decoder_config_t
int32_t pu32IntraDcDeltaRate
int ni_hwupload_session_read_hwdesc(ni_session_context_t *p_ctx, niFrameSurface1_t *hwdesc)
Retrieve a HW descriptor of uploaded frame.
int32_t scalingListEnable
int ni_decoder_session_write(ni_session_context_t *p_ctx, ni_packet_t *p_packet)
Send a video p_packet to decoder.
struct _ni_session_config_rw ni_session_config_rw_t
int32_t i32userMaxDeltaQp
struct _ni_ddr_priority_config ni_ddr_priority_config_t
uint8_t ui8HDR10CLLEnable
uint8_t ui8enableSmoothCrf
ni_retcode_t ni_query_session_stats(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_session_stats_t *p_session_stats, int rc, int opcode)
Query a particular session to get the stats info.
uint8_t ui8intraCompensateMode
uint8_t ui8vbvBufferReencode
ni_retcode_t ni_scaler_session_read_hwdesc(ni_session_context_t *p_ctx, ni_frame_t *p_frame)
read a hardware descriptor from a scaler session
uint32_t ui32chromaLinesize
ni_retcode_t ni_config_instance_network_binary(ni_session_context_t *p_ctx, void *nb_data, uint32_t nb_size)
ni_retcode_t ni_config_instance_set_uploader_params(ni_session_context_t *p_ctx, uint32_t pool_size, uint32_t pool)
Send a p_config command to configure uploading parameters.
@ ni_xcoder_request_pending
#define NI_MAX_NUM_OF_DECODER_OUTPUTS
uint8_t ui8DisableAdaptiveBuffers
uint8_t ui8intraResetRefresh
int8_t i8hvsBaseMbComplexity
uint32_t ui32lumaLinesize
int8_t i8maxConsecutiveSkipFrameNum
uint32_t customLambdaEnable
uint8_t fw_video_shared_mem_usage
void ni_set_custom_template(ni_session_context_t *p_ctx, ni_encoder_config_t *p_cfg, ni_xcoder_params_t *p_src)
Setup all xcoder configurations with custom parameters (Rev. B)
int32_t cu32InterDeltaRate
ni_custom_gop_params_t custom_gop_params
uint16_t data_bytes_available
uint8_t nor_flash_fw_revision[NI_VERSION_CHARACTER_COUNT]
uint16_t transfer_frame_stride
int32_t i32ltrRefQpOffset
ni_retcode_t ni_ai_session_query_metrics(ni_session_context_t *p_ctx, ni_network_perf_metrics_t *p_metrics)
@ INST_BUF_INFO_RW_READ_BUSY
int32_t intra_mb_refresh_mode
uint8_t ui8linkFrameMaxIntraRatio
int32_t pu08IntraDcDeltaRate
int ni_encoder_session_write(ni_session_context_t *p_ctx, ni_frame_t *p_frame)
Send a YUV p_frame to encoder.
void ni_fix_VUI(uint8_t *vui, int pos, int value)
insert the 32 bits of integer value at bit position pos
int32_t lfCrossSliceBoundaryEnable
ni_retcode_t ni_config_read_inout_layers(ni_session_context_t *p_ctx, ni_network_data_t *p_network)
ni_retcode_t ni_query_general_status(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_instance_mgr_general_status_t *p_gen_status)
Query a particular xcoder instance to get GeneralStatus data.
struct _ni_instance_mgr_stream_complete ni_instance_mgr_stream_complete_t
int ni_scaler_session_open(ni_session_context_t *p_ctx)
Open a xcoder scaler instance.
uint8_t ui8rcQpDeltaRange
int32_t lambdaScalingEnable
@ ni_xcoder_general_error
ni_retcode_t ni_query_session_statistic_info(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_session_statistic_t *p_session_statistic)
Query a particular xcoder session to get session statistics.
uint32_t weightPredEnable
void ni_encoder_set_vui(uint8_t *vui, ni_encoder_config_t *p_cfg)
int32_t pu04IntraDcDeltaRate
uint8_t ui8motionConstrainedMode
uint8_t ui8videoFullRange
ni_retcode_t ni_config_instance_hvsplus(ni_session_context_t *p_ctx)
ni_retcode_t ni_ai_alloc_dst_frame(ni_session_context_t *p_ctx, niFrameSurface1_t *p_out_surface)
uint32_t ui32VuiDataSizeBytes
uint16_t ui16maxFrameSize
int ni_create_frame(ni_frame_t *p_frame, uint32_t read_length, uint64_t *frame_offset, uint32_t *frame_dropped, bool is_hw_frame)
Get info from received p_frame.
int32_t decoding_refresh_type
uint8_t nor_flash_fl_version[NI_VERSION_CHARACTER_COUNT]
struct _ni_t408_config_t ni_t408_config_t
uint8_t ui8EnablelowDelayCheck
ni_retcode_t ni_device_config_ns_qos(ni_device_handle_t device_handle, uint32_t key, uint32_t value)
Send namespace num / Opmode and SRIOv index/value to the device with specified logic block address.
ni_retcode_t ni_check_ratecontrol_params(ni_encoder_config_t *p_cfg, char *param_err, uint32_t max_err_len)
uint16_t ui16HDR10MaxLight
int32_t i32frameRateDenominator
uint8_t ui8SurviveStreamErr
int ni_decoder_session_read(ni_session_context_t *p_ctx, ni_frame_t *p_frame)
Retrieve a YUV p_frame from decoder.
uint8_t ui8EnablePpuScaleAdapt
ni_retcode_t ni_query_eos(ni_session_context_t *p_ctx, ni_device_type_t device_type, ni_instance_mgr_stream_complete_t *p_stream_complete)
Query a particular xcoder instance to get End of Output data.
ni_retcode_t ni_decoder_session_open(ni_session_context_t *p_ctx)
Open a xcoder decoder instance.
@ INST_BUF_INFO_RW_UPLOAD
int ni_hwdownload_session_read(ni_session_context_t *p_ctx, ni_frame_t *p_frame, niFrameSurface1_t *hwdesc)
Retrieve a YUV p_frame from decoder.
uint8_t ui8adaptiveLamdaMode
uint32_t ui32NetworkBinarySize
int32_t independSliceMode
uint8_t active_sub_instances_cnt
uint8_t ui8colorDescPresent
int32_t independSliceModeArg
uint16_t ui16iFrameSizeRatio
int32_t intra_mb_refresh_arg
uint8_t active_hwupload_sub_inst_cnt
void ni_populate_device_capability_struct(ni_device_capability_t *p_cap, void *p_data, ni_device_handle_t device_handle, bool device_in_ctxt)
Get info from received xcoder capability.
uint8_t ui8EnableAcqLimit
ni_retcode_t ni_ai_session_open(ni_session_context_t *p_ctx)
uint32_t ui32VuiDataSizeBits
struct _ni_uploader_config_t ni_uploader_config_t
int32_t pu04IntraAngleDeltaRate
uint8_t ui8EnableAdvancedEc
ni_retcode_t ni_encoder_metadata_buffer_alloc(ni_frame_t *p_frame, int extra_len)
Allocate memory for the metadata header and auxillary data for encoder input data.
ni_retcode_t ni_decoder_session_flush(ni_session_context_t *p_ctx)
Flush decoder output.
uint8_t ui8noHWMultiPassSupport
int32_t pu08IntraAngleDeltaRate
uint8_t ui8spatialLayersMinusOne
ni_retcode_t ni_config_instance_set_decoder_ppu_params(ni_session_context_t *p_ctx, void *p_dec_ppu_config, int buffer_size)
Send a p_config command to configure decoding parameters.
@ INST_BUF_INFO_RW_READ_BY_AI
struct _ni_global_session_stats ni_global_session_stats_t
struct _ni_scaler_config ni_scaler_config_t
uint32_t ui32LastErrorStatus
void ni_set_custom_dec_template(ni_session_context_t *p_ctx, ni_decoder_config_t *p_cfg, ni_xcoder_params_t *p_src, uint32_t max_pkt_size)
Setup all xcoder configurations with custom parameters (Rev. B)
int32_t i32forceBframeQpFactor
struct _ni_segment ni_segment_t
ni_retcode_t ni_scaler_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 multi frames in the scaler
ni_retcode_t ni_encoder_session_sequence_change(ni_session_context_t *p_ctx, ni_resolution_t *p_resoluion)
Send sequnce change to a xcoder encoder instance.