|
libxcoder
5.3.1
|
Private definitions used by ni_device_api.c for video processing tasks. More...
Go to the source code of this file.
Data Structures | |
| struct | _ni_session_config_rw |
| struct | _ni_instance_mgr_general_status |
| struct | _ni_log_fl_fw_versions |
| struct | _ni_instance_mgr_stream_info |
| struct | _ni_session_stats |
| struct | _ni_global_session_stats |
| struct | _ni_instance_mgr_allocation_info |
| struct | _ni_instance_mgr_stream_complete |
| struct | _ni_instance_upload_ret_hwdesc |
| struct | _ni_instance_buf_info |
| struct | _ni_encoder_frame_params |
| struct | _ni_metadata_common |
| struct | _ni_metadata_dec_frame |
| struct | _ni_metadata_enc_frame |
| struct | _ni_metadata_enc_bstream_rev61 |
| struct | _ni_metadata_enc_bstream |
| struct | _ni_t408_config_t |
| struct | _ni_encoder_config_t |
| struct | _ni_uploader_config_t |
| struct | _ni_resolution |
| struct | ni_decode_cropping_rectangle |
| struct | ni_decoder_output_picture_size |
| struct | ni_decoder_output_config_t |
| struct | _ni_decoder_config_t |
| struct | _ni_ai_config_t |
| struct | _ni_segment |
| struct | _ni_network_buffer_info |
| struct | _ni_scaler_config |
| struct | _ni_ddr_priority_config |
Macros | |
| #define | NI_VERSION_CHARACTER_COUNT 8 |
| #define | TUNE_BFRAME_VISUAL_MEDIUM 1 |
| #define | TUNE_BFRAME_VISUAL_HIGH 2 |
| #define | NI_MINIMUM_CROPPED_LENGTH 48 |
| #define | NI_MAX_SEGMENT_NUM 4 |
| #define | FRAME_CHUNK_INDEX_SIZE 4096 |
| #define | NI_SESSION_CLOSE_RETRY_MAX 10 |
| #define | NI_SESSION_CLOSE_RETRY_INTERVAL_US 500000 |
| #define | NI_HWDESC_UNIFIED_MEMBIN_SIZE 0x187000 |
| #define | NI_QUADRA_MEMORY_CONFIG_DR 0 |
| #define | NI_QUADRA_MEMORY_CONFIG_SR 1 |
| #define | NI_QUADRA_MEMORY_CONFIG_SR2_REMOVE_P2P 2 |
| #define | NI_QUADRA_MEMORY_CONFIG_SR_4G 3 |
| #define | NI_P2P_RECV 0 |
| #define | NI_P2P_SEND 1 |
| #define | NI_MAX_P2P_SGL_ENTRIES 128 |
| #define | NI_MAX_AI_NETWORK_BINARY_BUFFER_QUERY_RETRIES 300000 |
| #define | NI_MAX_DEC_SESSION_READ_QUERY_EOS_RETRIES 15000 |
| #define | NI_RETRY_INTERVAL_200US 200 |
| #define | NI_RETRY_INTERVAL_100US 100 |
| #define | NI_FW_ENC_BITSTREAM_META_DATA_SIZE 32 |
| #define | NI_FW_ENC_BITSTREAM_META_DATA_SIZE_UNDER_MAJOR_6_MINOR_o 48 |
| #define | NI_FW_ENC_BITSTREAM_META_DATA_SIZE_UNDER_MAJOR_6_MINOR_rc 88 |
| #define | NI_AI_HW_ALIGN_SIZE 64 |
Functions | |
| int | ni_create_frame (ni_frame_t *p_frame, uint32_t read_length, uint64_t *frame_offset, bool is_hw_frame) |
| Get info from received p_frame. More... | |
| 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) More... | |
| 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) More... | |
| 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) More... | |
| 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) More... | |
| 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) More... | |
| 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_check_ratecontrol_params (ni_encoder_config_t *p_cfg, char *param_err, uint32_t max_err_len) |
| void | ni_params_print (ni_xcoder_params_t *const p_encoder_params) |
| Print xcoder user configurations. More... | |
| int32_t | ni_get_frame_index (uint32_t *value) |
| Get xcoder instance id. More... | |
| 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. More... | |
| int | ni_xcoder_session_query (ni_session_context_t *p_ctx, ni_device_type_t device_type) |
| Query current xcoder status. More... | |
| 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. More... | |
| 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. More... | |
| ni_retcode_t | ni_decoder_session_open (ni_session_context_t *p_ctx) |
| Open a xcoder decoder instance. More... | |
| ni_retcode_t | ni_decoder_session_close (ni_session_context_t *p_ctx, int eos_recieved) |
| Close a xcoder decoder instance. More... | |
| ni_retcode_t | ni_decoder_session_send_eos (ni_session_context_t *p_ctx) |
| Send end of stream signal to the decoder. More... | |
| ni_retcode_t | ni_decoder_session_flush (ni_session_context_t *p_ctx) |
| Flush decoder output. More... | |
| int | ni_decoder_session_write (ni_session_context_t *p_ctx, ni_packet_t *p_packet) |
| Send a video p_packet to decoder. More... | |
| int | ni_decoder_session_read (ni_session_context_t *p_ctx, ni_frame_t *p_frame) |
| Retrieve a YUV p_frame from decoder. More... | |
| ni_retcode_t | ni_encoder_session_open (ni_session_context_t *p_ctx) |
| Open a xcoder encoder instance. More... | |
| ni_retcode_t | ni_encoder_session_close (ni_session_context_t *p_ctx, int eos_recieved) |
| Close a xcoder encoder instance. More... | |
| ni_retcode_t | ni_encoder_session_send_eos (ni_session_context_t *p_ctx) |
| Flush encoder output. More... | |
| int | ni_encoder_session_write (ni_session_context_t *p_ctx, ni_frame_t *p_frame) |
| Send a YUV p_frame to encoder. More... | |
| int | ni_encoder_session_read (ni_session_context_t *p_ctx, ni_packet_t *p_packet) |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| ni_retcode_t | ni_config_instance_set_encoder_params (ni_session_context_t *p_ctx) |
| Send a p_config command to configure encoding parameters. More... | |
| 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_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. More... | |
| 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. More... | |
| 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. More... | |
| void | ni_encoder_set_vui (uint8_t *vui, ni_encoder_config_t *p_cfg) |
| void * | ni_session_keep_alive_thread (void *arguments) |
| decoder keep alive thread function triggers every 1 second More... | |
| 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 More... | |
| void | ni_fix_VUI (uint8_t *vui, int pos, int value) |
| insert the 32 bits of integer value at bit position pos More... | |
| 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. More... | |
| 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. More... | |
| ni_retcode_t | ni_uploader_session_open (ni_session_context_t *p_ctx) |
| Open a xcoder uploader instance. More... | |
| ni_retcode_t | ni_uploader_session_close (ni_session_context_t *p_ctx) |
| Close an xcoder upload instance. More... | |
| ni_retcode_t | ni_scaler_session_query_buffer_avail (ni_session_context_t *p_ctx) |
| Query and acquire buffer from xcoder scale instance. More... | |
| ni_retcode_t | ni_hwupload_session_query_buffer_avail (ni_session_context_t *p_ctx) |
| Query and acquire buffer from xcoder upload instance. More... | |
| 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. More... | |
| int | ni_hwupload_session_read_hwdesc (ni_session_context_t *p_ctx, niFrameSurface1_t *hwdesc) |
| Retrieve a HW descriptor of uploaded frame. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| ni_retcode_t | ni_clear_instance_buf (niFrameSurface1_t *surface) |
| clear a particular xcoder instance buffer/data More... | |
| 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 More... | |
| 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 More... | |
| ni_retcode_t | ni_scaler_config_frame (ni_session_context_t *p_ctx, ni_frame_config_t *p_cfg) |
| config frame in the scaler More... | |
| 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 More... | |
| int | ni_scaler_session_open (ni_session_context_t *p_ctx) |
| Open a xcoder scaler instance. More... | |
| ni_retcode_t | ni_scaler_session_close (ni_session_context_t *p_ctx, int eos_received) |
| close a scaler session More... | |
| 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. More... | |
| 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 More... | |
| int | ni_get_bitdepth_factor_from_pixfmt (int pix_fmt) |
| Grab bitdepth factor from NI_PIX_FMT. More... | |
| int | ni_get_planar_from_pixfmt (int pix_fmt) |
| Grab planar info from NI_PIX_FMT. More... | |
| 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. More... | |
| ni_retcode_t | ni_device_get_ddr_configuration (ni_session_context_t *p_ctx) |
| Get DDR configuration of Quadra device. More... | |
| 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. More... | |
| ni_retcode_t | ni_ai_session_open (ni_session_context_t *p_ctx) |
| ni_retcode_t | ni_ai_session_close (ni_session_context_t *p_ctx, int eos_received) |
| 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_hvsplus (ni_session_context_t *p_ctx) |
| ni_retcode_t | ni_ai_query_network_ready (ni_session_context_t *p_ctx) |
| ni_retcode_t | ni_ai_session_write (ni_session_context_t *p_ctx, ni_frame_t *p_frame) |
| ni_retcode_t | ni_ai_session_read (ni_session_context_t *p_ctx, ni_packet_t *p_packet) |
| ni_retcode_t | ni_config_read_inout_layers (ni_session_context_t *p_ctx, ni_network_data_t *p_network) |
| 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) |
| ni_retcode_t | ni_ai_alloc_dst_frame (ni_session_context_t *p_ctx, niFrameSurface1_t *p_out_surface) |
| 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) |
| 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 More... | |
| 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. More... | |
| 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. More... | |
| ni_retcode_t | ni_ai_session_query_metrics (ni_session_context_t *p_ctx, ni_network_perf_metrics_t *p_metrics) |
| 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. More... | |
| 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_retcode_t | ni_dump_log_all_cores (ni_session_context_t *p_ctx, void *p_data, bool gen_log_file) |
| 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_recv_from_target (ni_session_context_t *pSession, const ni_p2p_sgl_t *dmaAddrs, ni_frame_t *pDstFrame) |
| int | lower_pixel_rate (const ni_load_query_t *pQuery, uint32_t ui32CurrentLowest) |
Private definitions used by ni_device_api.c for video processing tasks.
Definition in file ni_device_api_priv.h.
| #define FRAME_CHUNK_INDEX_SIZE 4096 |
Definition at line 816 of file ni_device_api_priv.h.
| #define NI_AI_HW_ALIGN_SIZE 64 |
Definition at line 1254 of file ni_device_api_priv.h.
| #define NI_FW_ENC_BITSTREAM_META_DATA_SIZE 32 |
Definition at line 838 of file ni_device_api_priv.h.
| #define NI_FW_ENC_BITSTREAM_META_DATA_SIZE_UNDER_MAJOR_6_MINOR_o 48 |
Definition at line 840 of file ni_device_api_priv.h.
| #define NI_FW_ENC_BITSTREAM_META_DATA_SIZE_UNDER_MAJOR_6_MINOR_rc 88 |
Definition at line 842 of file ni_device_api_priv.h.
| #define NI_HWDESC_UNIFIED_MEMBIN_SIZE 0x187000 |
Definition at line 821 of file ni_device_api_priv.h.
| #define NI_MAX_AI_NETWORK_BINARY_BUFFER_QUERY_RETRIES 300000 |
Definition at line 832 of file ni_device_api_priv.h.
| #define NI_MAX_DEC_SESSION_READ_QUERY_EOS_RETRIES 15000 |
Definition at line 833 of file ni_device_api_priv.h.
| #define NI_MAX_P2P_SGL_ENTRIES 128 |
Definition at line 830 of file ni_device_api_priv.h.
| #define NI_MAX_SEGMENT_NUM 4 |
Definition at line 775 of file ni_device_api_priv.h.
| #define NI_MINIMUM_CROPPED_LENGTH 48 |
Definition at line 692 of file ni_device_api_priv.h.
| #define NI_P2P_RECV 0 |
Definition at line 828 of file ni_device_api_priv.h.
| #define NI_P2P_SEND 1 |
Definition at line 829 of file ni_device_api_priv.h.
| #define NI_QUADRA_MEMORY_CONFIG_DR 0 |
Definition at line 823 of file ni_device_api_priv.h.
| #define NI_QUADRA_MEMORY_CONFIG_SR 1 |
Definition at line 824 of file ni_device_api_priv.h.
| #define NI_QUADRA_MEMORY_CONFIG_SR2_REMOVE_P2P 2 |
Definition at line 825 of file ni_device_api_priv.h.
| #define NI_QUADRA_MEMORY_CONFIG_SR_4G 3 |
Definition at line 826 of file ni_device_api_priv.h.
| #define NI_RETRY_INTERVAL_100US 100 |
Definition at line 835 of file ni_device_api_priv.h.
| #define NI_RETRY_INTERVAL_200US 200 |
Definition at line 834 of file ni_device_api_priv.h.
| #define NI_SESSION_CLOSE_RETRY_INTERVAL_US 500000 |
Definition at line 818 of file ni_device_api_priv.h.
| #define NI_SESSION_CLOSE_RETRY_MAX 10 |
Definition at line 817 of file ni_device_api_priv.h.
| #define NI_VERSION_CHARACTER_COUNT 8 |
Definition at line 112 of file ni_device_api_priv.h.
| #define TUNE_BFRAME_VISUAL_HIGH 2 |
Definition at line 314 of file ni_device_api_priv.h.
| #define TUNE_BFRAME_VISUAL_MEDIUM 1 |
****** encoder paramters
Definition at line 313 of file ni_device_api_priv.h.
| typedef struct _ni_ai_config_t ni_ai_config_t |
| typedef struct _ni_ddr_priority_config ni_ddr_priority_config_t |
| typedef struct _ni_decoder_config_t ni_decoder_config_t |
| typedef struct _ni_encoder_config_t ni_encoder_config_t |
| typedef struct _ni_encoder_frame_params ni_encoder_frame_params_t |
| typedef struct _ni_global_session_stats ni_global_session_stats_t |
| typedef enum _ni_gop_preset_idx ni_gop_preset_idx_t |
| typedef struct _ni_instance_buf_info ni_instance_buf_info_t |
| typedef struct _ni_instance_mgr_general_status ni_instance_mgr_general_status_t |
| typedef struct _ni_instance_mgr_stream_info ni_instance_mgr_stream_info_t |
| typedef struct _ni_instance_upload_ret_hwdesc ni_instance_upload_ret_hwdesc_t |
| typedef struct _ni_log_fl_fw_versions ni_log_fl_fw_versions_t |
| typedef struct _ni_metadata_common ni_metadata_common_t |
| typedef struct _ni_metadata_dec_frame ni_metadata_dec_frame_t |
| typedef struct _ni_metadata_enc_bstream_rev61 ni_metadata_enc_bstream_rev61_t |
| typedef struct _ni_metadata_enc_bstream ni_metadata_enc_bstream_t |
| typedef struct _ni_metadata_enc_frame ni_metadata_enc_frame_t |
| typedef struct _ni_network_buffer_info ni_network_buffer_info_t |
| typedef struct _ni_resolution ni_resolution_t |
| typedef struct _ni_scaler_config ni_scaler_config_t |
| typedef struct _ni_segment ni_segment_t |
| typedef struct _ni_session_config_rw ni_session_config_rw_t |
| typedef struct _ni_session_stats ni_session_stats_t |
| typedef struct _ni_t408_config_t ni_t408_config_t |
| typedef struct _ni_uploader_config_t ni_uploader_config_t |
| typedef enum _ni_xcoder_mgr_retcode ni_xcoder_mgr_retcode_t |
| enum _ni_gop_preset_idx |
Definition at line 316 of file ni_device_api_priv.h.
| Enumerator | |
|---|---|
| ni_xcoder_request_success | |
| ni_xcoder_request_pending | |
| ni_xcoder_resource_recovery | |
| ni_xcoder_resource_insufficient | |
| ni_xcoder_general_error | |
Definition at line 59 of file ni_device_api_priv.h.
This is an enumeration for declaring codec standard type variables. Currently, VPU supports many different video standards such as H.265/HEVC, MPEG4 SP/ASP, H.263 Profile 3, H.264/AVC BP/MP/HP, VC1 SP/MP/AP, Divx3, MPEG1, MPEG2, RealVideo 8/9/10, AVS Jizhun/Guangdian profile, AVS2, Theora, VP3, VP8/VP9 and SVAC. NOTE: MPEG-1 decoder operation is handled as a special case of MPEG2 decoder. STD_THO must be always 9.
| Enumerator | |
|---|---|
| STD_AVC | |
| STD_VC1 | |
| STD_MPEG2 | |
| STD_MPEG4 | |
| STD_H263 | |
| STD_DIV3 | |
| STD_RV | |
| STD_AVS | |
| STD_THO | |
| STD_VP3 | |
| STD_VP8 | |
| STD_HEVC | |
| STD_VP9 | |
| STD_AVS2 | |
| STD_SVAC | |
| STD_AV1 | |
| STD_JPEG | |
| STD_MAX | |
Definition at line 346 of file ni_device_api_priv.h.
| enum ni_decoder_crop_mode |
| Enumerator | |
|---|---|
| CROP_DISABLED | |
| CROP_AUTO | |
| CROP_MANUAL | |
Definition at line 693 of file ni_device_api_priv.h.
Definition at line 46 of file ni_device_api_priv.h.
| Enumerator | |
|---|---|
| SESSION_READ_CONFIG | |
| SESSION_WRITE_CONFIG | |
Definition at line 40 of file ni_device_api_priv.h.
This is an enumeration for declaring SET_PARAM command options. (_T400_ENC encoder only) Depending on this, SET_PARAM command parameter registers from 0x15C have different meanings.
| Enumerator | |
|---|---|
| OPT_COMMON | |
| OPT_CUSTOM_GOP | |
| OPT_SEI | |
| OPT_VUI | |
Definition at line 808 of file ni_device_api_priv.h.
| int lower_pixel_rate | ( | const ni_load_query_t * | pQuery, |
| uint32_t | ui32CurrentLowest | ||
| ) |
Definition at line 18679 of file ni_device_api_priv.c.
| ni_retcode_t ni_ai_alloc_dst_frame | ( | ni_session_context_t * | p_ctx, |
| niFrameSurface1_t * | p_out_surface | ||
| ) |
Definition at line 17593 of file ni_device_api_priv.c.
| 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 | ||
| ) |
Definition at line 17699 of file ni_device_api_priv.c.
| 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 | ||
| ) |
Definition at line 17468 of file ni_device_api_priv.c.
| ni_retcode_t ni_ai_query_network_ready | ( | ni_session_context_t * | p_ctx | ) |
Definition at line 16371 of file ni_device_api_priv.c.
| ni_retcode_t ni_ai_session_close | ( | ni_session_context_t * | p_ctx, |
| int | eos_received | ||
| ) |
Definition at line 17350 of file ni_device_api_priv.c.
| ni_retcode_t ni_ai_session_open | ( | ni_session_context_t * | p_ctx | ) |
Definition at line 17159 of file ni_device_api_priv.c.
| ni_retcode_t ni_ai_session_query_metrics | ( | ni_session_context_t * | p_ctx, |
| ni_network_perf_metrics_t * | p_metrics | ||
| ) |
Definition at line 18273 of file ni_device_api_priv.c.
| ni_retcode_t ni_ai_session_read | ( | ni_session_context_t * | p_ctx, |
| ni_packet_t * | p_packet | ||
| ) |
Definition at line 16750 of file ni_device_api_priv.c.
| 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
| [in] | p_ctx | pointer to session context |
| [out] | p_frame | pointer to frame to write hw descriptor |
Definition at line 17893 of file ni_device_api_priv.c.
| ni_retcode_t ni_ai_session_write | ( | ni_session_context_t * | p_ctx, |
| ni_frame_t * | p_frame | ||
| ) |
Definition at line 16426 of file ni_device_api_priv.c.
| 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 | ||
| ) |
Definition at line 12686 of file ni_device_api_priv.c.
| ni_retcode_t ni_check_ratecontrol_params | ( | ni_encoder_config_t * | p_cfg, |
| char * | param_err, | ||
| uint32_t | max_err_len | ||
| ) |
Definition at line 12971 of file ni_device_api_priv.c.
| ni_retcode_t ni_clear_instance_buf | ( | niFrameSurface1_t * | surface | ) |
clear a particular xcoder instance buffer/data
| niFrameSurface1_t* | surface - target hardware descriptor |
| ni_session_context_t | p_ctx - xcoder Context |
| ni_instance_buf_info_rw_type_t | rw_type |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| ni_instance_buf_info_t | *out - Struct preallocated from the caller where the resulting data will be placed |
Definition at line 14243 of file ni_device_api_priv.c.
| 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_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
Definition at line 6960 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
Definition at line 7015 of file ni_device_api_priv.c.
| ni_retcode_t ni_config_instance_hvsplus | ( | ni_session_context_t * | p_ctx | ) |
Definition at line 16278 of file ni_device_api_priv.c.
| ni_retcode_t ni_config_instance_network_binary | ( | ni_session_context_t * | p_ctx, |
| void * | nb_data, | ||
| uint32_t | nb_size | ||
| ) |
Definition at line 16006 of file ni_device_api_priv.c.
| 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_session_context_t | p_ctx - xcoder Context |
| uint32_t | max_pkt_size - overwrite maximum packet size if nonzero |
Definition at line 15667 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_encoder_frame_params_t | * params - pointer to the encoder ni_encoder_frame_params_t struct |
Definition at line 7379 of file ni_device_api_priv.c.
| 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_session_context_t | p_ctx - xcoder Context |
Definition at line 7213 of file ni_device_api_priv.c.
| 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
| [in] | p_ctx | pointer to session context |
| [in] | p_params | pointer to scaler parameters |
condif a scaler instance
| ni_session_context_t | p_ctx - xcoder Context |
| ni_scaler_params_t | * params - pointer to the scaler ni_scaler_params_t struct |
Definition at line 5360 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| ni_resolution_t | p_resolution - sequence change resolution |
Definition at line 7147 of file ni_device_api_priv.c.
| 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_session_context_t | p_ctx - xcoder Context | |
| [in] | pool_size | pool size to create |
| [in] | pool | 0 = normal pool, 1 = P2P pool |
Definition at line 15564 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
Definition at line 7077 of file ni_device_api_priv.c.
| 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_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
Definition at line 6906 of file ni_device_api_priv.c.
| 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_config_read_inout_layers | ( | ni_session_context_t * | p_ctx, |
| ni_network_data_t * | p_network | ||
| ) |
Definition at line 16886 of file ni_device_api_priv.c.
| 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_session_context_t | p_ctx - xcoder Context |
| ni_session_config_rw_t | rw_type |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| uint8_t | enable |
| uint8_t | hw_action |
| uint16_t | frame_id |
Definition at line 6813 of file ni_device_api_priv.c.
| int ni_create_frame | ( | ni_frame_t * | p_frame, |
| uint32_t | read_length, | ||
| uint64_t * | p_frame_offset, | ||
| bool | is_hw_frame | ||
| ) |
| ni_retcode_t ni_decoder_session_close | ( | ni_session_context_t * | p_ctx, |
| int | eos_recieved | ||
| ) |
| 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.
Definition at line 13563 of file ni_device_api_priv.c.
| ni_retcode_t ni_decoder_session_flush | ( | ni_session_context_t * | p_ctx | ) |
| ni_retcode_t ni_decoder_session_open | ( | ni_session_context_t * | p_ctx | ) |
| int ni_decoder_session_read | ( | ni_session_context_t * | p_ctx, |
| ni_frame_t * | p_frame | ||
| ) |
Retrieve a YUV p_frame from decoder.
Definition at line 2289 of file ni_device_api_priv.c.
| 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.
Definition at line 14295 of file ni_device_api_priv.c.
| ni_retcode_t ni_decoder_session_send_eos | ( | ni_session_context_t * | p_ctx | ) |
Send end of stream signal to the decoder.
Definition at line 1524 of file ni_device_api_priv.c.
| int ni_decoder_session_write | ( | ni_session_context_t * | p_ctx, |
| ni_packet_t * | p_packet | ||
| ) |
| 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.
| [in] | device_handle | Device handle obtained by calling ni_device_open |
| [in] | Key | Represents either namespace num or opmode |
| [in] | Value | Represents either SRIOv index or opmode value |
Definition at line 18347 of file ni_device_api_priv.c.
| ni_retcode_t ni_device_get_ddr_configuration | ( | ni_session_context_t * | p_ctx | ) |
Get DDR configuration of Quadra device.
| [in/out] | p_ctx pointer to a session context with valid file handle |
Definition at line 17985 of file ni_device_api_priv.c.
| 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.
| [in] | p_ctx | pointer to a session context with valid file handle |
| [in] | ddr_priority_mode | ddr priority mode |
Definition at line 18070 of file ni_device_api_priv.c.
| ni_retcode_t ni_dump_log_all_cores | ( | ni_session_context_t * | p_ctx, |
| void * | p_data, | ||
| bool | gen_log_file | ||
| ) |
Definition at line 18537 of file ni_device_api_priv.c.
| 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 | ||
| ) |
Definition at line 18420 of file ni_device_api_priv.c.
| 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.
| [in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
| [in] | extra_len | Length header and auxillary data |
Definition at line 18133 of file ni_device_api_priv.c.
| ni_retcode_t ni_encoder_session_close | ( | ni_session_context_t * | p_ctx, |
| int | eos_recieved | ||
| ) |
| ni_retcode_t ni_encoder_session_open | ( | ni_session_context_t * | p_ctx | ) |
| int ni_encoder_session_read | ( | ni_session_context_t * | p_ctx, |
| ni_packet_t * | p_packet | ||
| ) |
Definition at line 4583 of file ni_device_api_priv.c.
| ni_retcode_t ni_encoder_session_send_eos | ( | ni_session_context_t * | p_ctx | ) |
| ni_retcode_t ni_encoder_session_sequence_change | ( | ni_session_context_t * | p_ctx, |
| ni_resolution_t * | p_resolution | ||
| ) |
Send sequnce change to a xcoder encoder instance.
Definition at line 5019 of file ni_device_api_priv.c.
| int ni_encoder_session_write | ( | ni_session_context_t * | p_ctx, |
| ni_frame_t * | p_frame | ||
| ) |
Send a YUV p_frame to encoder.
************ Sequence Change related stuff
************ Sequence Change related stuff end
Definition at line 4067 of file ni_device_api_priv.c.
| void ni_encoder_set_vui | ( | uint8_t * | vui, |
| ni_encoder_config_t * | p_cfg | ||
| ) |
| 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.
| [in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
| [in] | start_len | Length of non-4k-aligned part at the start of YUV data |
Definition at line 18220 of file ni_device_api_priv.c.
| void ni_fix_VUI | ( | uint8_t * | vui, |
| int | pos, | ||
| int | value | ||
| ) |
insert the 32 bits of integer value at bit position pos
| int | pos, int value |
Definition at line 8217 of file ni_device_api_priv.c.
| int ni_get_bitdepth_factor_from_pixfmt | ( | int | pix_fmt | ) |
Grab bitdepth factor from NI_PIX_FMT.
| [in] | pix_fmt | ni_pix_fmt_t |
| [in] | pix_fmt | ni_pix_fmt_t |
Definition at line 15913 of file ni_device_api_priv.c.
| int32_t ni_get_frame_index | ( | uint32_t * | value | ) |
| 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.
| [in] | p_ctx | ni_session_context_t to be referenced |
| [in] | hwdesc | Pointer to caller allocated niFrameSurface1_t |
| [out] | p_offset | Value of offset |
Definition at line 15979 of file ni_device_api_priv.c.
| int ni_get_planar_from_pixfmt | ( | int | pix_fmt | ) |
Grab planar info from NI_PIX_FMT.
| [in] | pix_fmt | ni_pix_fmt_t |
Definition at line 15942 of file ni_device_api_priv.c.
| 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.
Definition at line 15355 of file ni_device_api_priv.c.
| 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.
Definition at line 15163 of file ni_device_api_priv.c.
| 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.
Definition at line 15473 of file ni_device_api_priv.c.
| ni_retcode_t ni_hwupload_session_query_buffer_avail | ( | ni_session_context_t * | p_ctx | ) |
Query and acquire buffer from xcoder upload instance.
| p_ctx | pointer to uploader session context |
| p_ctx | pointer to uploader session context |
Definition at line 13696 of file ni_device_api_priv.c.
| int ni_hwupload_session_read_hwdesc | ( | ni_session_context_t * | p_ctx, |
| niFrameSurface1_t * | hwdesc | ||
| ) |
Retrieve a HW descriptor of uploaded frame.
| p_ctx | pointer to uploader session context hwdesc pointer to hw descriptor |
Definition at line 14157 of file ni_device_api_priv.c.
| 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.
Definition at line 13801 of file ni_device_api_priv.c.
| void ni_params_print | ( | ni_xcoder_params_t *const | p_encoder_params | ) |
| 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.
Definition at line 7904 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| ni_instance_mgr_detail_status_t | *out - Struct preallocated from the caller where the resulting data will be placed |
Definition at line 6070 of file ni_device_api_priv.c.
| 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_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| InstMgrStreamComp | *out - Struct preallocated from the caller where the resulting data will be placed |
Definition at line 6411 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| ni_instance_mgr_general_status_t | *out - Struct preallocated from the caller where the resulting data will be placed |
Definition at line 6002 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_instance_buf_info_rw_type_t | rw_type |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| ni_instance_buf_info_t | *out - Struct preallocated from the caller where the resulting data will be placed |
Definition at line 6682 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| ni_session_statistic_t*out | - Struct preallocated from the caller where the resulting data will be placed |
Definition at line 6579 of file ni_device_api_priv.c.
| 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.
| ni_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| ni_session_stats_t | *out - Struct preallocated from the caller where the resulting data will be placed |
Definition at line 6235 of file ni_device_api_priv.c.
| 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_session_context_t | p_ctx - xcoder Context |
| ni_device_type_t | device_type - xcoder type Encoder or Decoder |
| ni_instance_mgr_stream_info_t | *out - Struct preallocated from the caller where the resulting data will be placed |
Definition at line 6152 of file ni_device_api_priv.c.
| ni_retcode_t ni_recv_from_target | ( | ni_session_context_t * | pSession, |
| const ni_p2p_sgl_t * | dmaAddrs, | ||
| ni_frame_t * | pDstFrame | ||
| ) |
Definition at line 18607 of file ni_device_api_priv.c.
| 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
| [in] | p_ctx | pointer to session context |
| [in] | width | width in pixels |
| [in] | height | height in pixels |
| [in] | format | pixel format |
| [in] | options | option flags |
| [in] | rectangle_width | clipping rectangle width in pixels |
| [in] | rectangle_height | clipping rectangle height in pixels |
| [in] | rectangle_x | clipping rectangle x position |
| [in] | rectangle_y | clipping rectangle y position |
| [in] | rgba_color | background colour (only used by pad filter) |
| [in] | frame_index | frame index (only for hardware frames) |
Definition at line 5513 of file ni_device_api_priv.c.
| ni_retcode_t ni_scaler_config_frame | ( | ni_session_context_t * | p_ctx, |
| ni_frame_config_t * | p_cfg | ||
| ) |
config frame in the scaler
| [in] | p_ctx | pointer to session context |
| [in] | p_cfg | pointer to frame config |
config frame in the scaler
| [in] | p_ctx | pointer to session context |
| [in] | p_cfg | pointer to frame config |
Definition at line 5750 of file ni_device_api_priv.c.
| 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
| [in] | p_ctx | pointer to session context |
| [in] | p_cfg_in | pointer to input frame config array |
| [in] | numInCfgs | number of input frame configs in p_cfg_in array |
| [in] | p_cfg_out | pointer to output frame config |
config multi frames in the scaler
| [in] | p_ctx | pointer to session context |
| [in] | p_cfg_in | pointer to input frame config array |
| [in] | numInCfgs | number of input frame configs in the p_cfg array |
| [in] | p_cfg_out | pointer to output frame config |
Definition at line 5872 of file ni_device_api_priv.c.
| ni_retcode_t ni_scaler_session_close | ( | ni_session_context_t * | p_ctx, |
| int | eos_received | ||
| ) |
close a scaler session
| [in] | p_ctx | pointer to session context |
| [in] | eos_received | (not used) |
Definition at line 5272 of file ni_device_api_priv.c.
| int ni_scaler_session_open | ( | ni_session_context_t * | p_ctx | ) |
Open a xcoder scaler instance.
| [in] | p_ctx | pointer to session context |
Definition at line 5062 of file ni_device_api_priv.c.
| ni_retcode_t ni_scaler_session_query_buffer_avail | ( | ni_session_context_t * | p_ctx | ) |
Query and acquire buffer from xcoder scale instance.
| p_ctx | pointer to scaler session context |
Query and acquire buffer from xcoder scale instance.
| [in] | p_ctx | pointer to scaler session context |
Definition at line 13604 of file ni_device_api_priv.c.
| 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
| [in] | p_ctx | pointer to session context |
| [out] | p_frame | pointer to frame to write hw descriptor |
Definition at line 15794 of file ni_device_api_priv.c.
| 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
Definition at line 1472 of file ni_device_api_priv.c.
| ni_retcode_t ni_send_to_target | ( | ni_session_context_t * | p_ctx, |
| niFrameSurface1_t * | source, | ||
| uint64_t | ui64DestAddr, | ||
| uint32_t | ui32FrameSize | ||
| ) |
Definition at line 18557 of file ni_device_api_priv.c.
| void* ni_session_keep_alive_thread | ( | void * | arguments | ) |
decoder keep alive thread function triggers every 1 second
| void | thread args |
Definition at line 13148 of file ni_device_api_priv.c.
| 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)
Definition at line 8248 of file ni_device_api_priv.c.
| 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)
Definition at line 8494 of file ni_device_api_priv.c.
| 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)
Definition at line 9733 of file ni_device_api_priv.c.
| ni_retcode_t ni_uploader_session_close | ( | ni_session_context_t * | p_ctx | ) |
Close an xcoder upload instance.
| p_ctx | pointer to uploader session context |
Definition at line 15537 of file ni_device_api_priv.c.
| ni_retcode_t ni_uploader_session_open | ( | ni_session_context_t * | p_ctx | ) |
Open a xcoder uploader instance.
| p_ctx | - pointer to caller allocated uploader session context |
On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_FAILURE
Open a xcoder uploader instance.
| p_ctx | - pointer to caller allocated uploader session context |
On failure NI_RETCODE_INVALID_PARAM NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_ERROR_INVALID_SESSION NI_RETCODE_FAILURE
Definition at line 13362 of file ni_device_api_priv.c.
| 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)
Definition at line 10125 of file ni_device_api_priv.c.
| 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)
Definition at line 10435 of file ni_device_api_priv.c.
| int ni_xcoder_session_query | ( | ni_session_context_t * | p_ctx, |
| ni_device_type_t | device_type | ||
| ) |
| int ni_xcoder_session_query_detail | ( | ni_session_context_t * | p_ctx, |
| ni_device_type_t | device_type, | ||
| void * | detail_data, | ||
| int | ver | ||
| ) |