![]() |
libxcoder
5.2.0
|
Public definitions for operating NETINT video processing devices for video processing. More...
Go to the source code of this file.
Functions | |
LIB_API ni_session_context_t * | ni_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_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. More... | |
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. More... | |
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. 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] |
Public definitions for operating NETINT video processing devices for video processing.
Definition in file ni_device_api.h.
#define AV_CODEC_DEFAULT_BITRATE 200 * 1000 |
Definition at line 55 of file ni_device_api.h.
#define GC620_ABGR8888 12 |
Definition at line 202 of file ni_device_api.h.
#define GC620_ARGB8888 15 |
Definition at line 203 of file ni_device_api.h.
#define GC620_B5G5R5X1 8 |
Definition at line 206 of file ni_device_api.h.
#define GC620_BGR565 11 |
Definition at line 205 of file ni_device_api.h.
#define GC620_BGRA8888 4 |
Definition at line 200 of file ni_device_api.h.
#define GC620_BGRX8888 5 |
Definition at line 201 of file ni_device_api.h.
#define GC620_I010 0x10A |
Definition at line 195 of file ni_device_api.h.
#define GC620_I420 0x103 |
Definition at line 193 of file ni_device_api.h.
#define GC620_NV12 0x104 |
Definition at line 191 of file ni_device_api.h.
#define GC620_NV16 0x106 |
Definition at line 198 of file ni_device_api.h.
#define GC620_NV21 0x105 |
Definition at line 192 of file ni_device_api.h.
#define GC620_P010_MSB 0x108 |
Definition at line 194 of file ni_device_api.h.
#define GC620_RGB565 3 |
Definition at line 204 of file ni_device_api.h.
#define GC620_RGB888_PLANAR 0x10C |
Definition at line 207 of file ni_device_api.h.
#define GC620_RGBA8888 0 |
Definition at line 199 of file ni_device_api.h.
#define GC620_UYVY 0x101 |
Definition at line 197 of file ni_device_api.h.
#define GC620_YUYV 0x100 |
Definition at line 196 of file ni_device_api.h.
#define MAX_CHAR_IN_DEVICE_NAME 32 |
Definition at line 184 of file ni_device_api.h.
#define MAX_NUM_FRAMEPOOL_HWAVFRAME 128 |
Definition at line 188 of file ni_device_api.h.
#define MOTION_CONSTRAINED_PERFORMANCE_MODE 1 |
Definition at line 483 of file ni_device_api.h.
#define MOTION_CONSTRAINED_QUALITY_MODE 2 |
Definition at line 484 of file ni_device_api.h.
#define NI_2PASS_ENCODE_MIN_HEIGHT 256 |
Definition at line 129 of file ni_device_api.h.
#define NI_2PASS_ENCODE_MIN_WIDTH ((272 + 31) / 32 * 32) |
Definition at line 128 of file ni_device_api.h.
#define NI_AI_FLAG_IO 0x0001 /* 0 = source frame, 1 = destination frame */ |
Definition at line 300 of file ni_device_api.h.
#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.
#define NI_AI_FLAG_PC 0x0002 /* 0 = single allocation, 1 = create pool */ |
Definition at line 301 of file ni_device_api.h.
#define NI_AV1_INVALID_BUFFER_INDEX (-1) |
Definition at line 179 of file ni_device_api.h.
#define NI_BEST_MODEL_LOAD_STR "bestmodelload" |
Definition at line 41 of file ni_device_api.h.
#define NI_BEST_REAL_LOAD_STR "bestload" |
Definition at line 42 of file ni_device_api.h.
#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.
#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.
#define NI_CC_SEI_BYTE0 0xB5 |
Definition at line 443 of file ni_device_api.h.
#define NI_CC_SEI_BYTE1 0x00 |
Definition at line 444 of file ni_device_api.h.
#define NI_CC_SEI_BYTE2 0x31 |
Definition at line 445 of file ni_device_api.h.
#define NI_CC_SEI_BYTE3 0x47 |
Definition at line 446 of file ni_device_api.h.
#define NI_CC_SEI_BYTE4 0x41 |
Definition at line 447 of file ni_device_api.h.
#define NI_CC_SEI_BYTE5 0x39 |
Definition at line 448 of file ni_device_api.h.
#define NI_CC_SEI_BYTE6 0x34 |
Definition at line 449 of file ni_device_api.h.
#define NI_CC_SEI_BYTE7 0x03 |
Definition at line 450 of file ni_device_api.h.
#define NI_CC_SEI_HDR_H264_LEN 17 |
Definition at line 464 of file ni_device_api.h.
#define NI_CC_SEI_HDR_HEVC_LEN 18 |
Definition at line 461 of file ni_device_api.h.
#define NI_CC_SEI_TRAILER_LEN 2 |
Definition at line 465 of file ni_device_api.h.
#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.
#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.
#define NI_DATA_FORMAT_CB_FRAME 3 |
Definition at line 47 of file ni_device_api.h.
#define NI_DATA_FORMAT_CR_FRAME 4 |
Definition at line 48 of file ni_device_api.h.
#define NI_DATA_FORMAT_VIDEO_PACKET 0 |
Definition at line 44 of file ni_device_api.h.
#define NI_DATA_FORMAT_Y_FRAME 2 |
Definition at line 46 of file ni_device_api.h.
#define NI_DATA_FORMAT_YUV_FRAME 1 |
Definition at line 45 of file ni_device_api.h.
#define NI_DEC_MAX_CC_BUF_SIZE 93 |
Definition at line 441 of file ni_device_api.h.
#define NI_DEC_PARAM_CROP_MODE_0 "cropMode0" |
Definition at line 2456 of file ni_device_api.h.
#define NI_DEC_PARAM_CROP_MODE_1 "cropMode1" |
Definition at line 2457 of file ni_device_api.h.
#define NI_DEC_PARAM_CROP_MODE_2 "cropMode2" |
Definition at line 2458 of file ni_device_api.h.
#define NI_DEC_PARAM_CROP_PARAM_0 "crop0" |
Definition at line 2459 of file ni_device_api.h.
#define NI_DEC_PARAM_CROP_PARAM_1 "crop1" |
Definition at line 2460 of file ni_device_api.h.
#define NI_DEC_PARAM_CROP_PARAM_2 "crop2" |
Definition at line 2461 of file ni_device_api.h.
#define NI_DEC_PARAM_DDR_PRIORITY_MODE "ddrPriorityMode" |
Definition at line 2483 of file ni_device_api.h.
#define NI_DEC_PARAM_DISABLE_ADAPTIVE_BUFFERS "disableAdaptiveBuffers" |
Definition at line 2494 of file ni_device_api.h.
#define NI_DEC_PARAM_EC_POLICY "ecPolicy" |
Definition at line 2484 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_ADVANCED_EC "enableAdvancedEc" |
Definition at line 2485 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_ALL_SEI_PASSTHRU "enableAllSeiPassthru" |
Definition at line 2492 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_CUSTOM_SEI_PASSTHRU "customSeiPassthru" |
Definition at line 2481 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_FOLLOW_IFRAME "enableFollowIFrame" |
Definition at line 2493 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_LOW_DELAY_CHECK "enableLowDelayCheck" |
Definition at line 2479 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_OUT_1 "enableOut1" |
Definition at line 2448 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_OUT_2 "enableOut2" |
Definition at line 2449 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_PPU_SCALE_ADAPT "enablePpuScaleAdapt" |
Definition at line 2487 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_PPU_SCALE_LIMIT "enablePpuScaleLimit" |
Definition at line 2488 of file ni_device_api.h.
#define NI_DEC_PARAM_ENABLE_USR_DATA_SEI_PASSTHRU "enableUserDataSeiPassthru" |
Definition at line 2480 of file ni_device_api.h.
#define NI_DEC_PARAM_ERROR_THRESHOLD "ecErrThreshold" |
Definition at line 2486 of file ni_device_api.h.
#define NI_DEC_PARAM_FORCE_8BIT_0 "force8Bit0" |
Definition at line 2450 of file ni_device_api.h.
#define NI_DEC_PARAM_FORCE_8BIT_1 "force8Bit1" |
Definition at line 2451 of file ni_device_api.h.
#define NI_DEC_PARAM_FORCE_8BIT_2 "force8Bit2" |
Definition at line 2452 of file ni_device_api.h.
#define NI_DEC_PARAM_FORCE_LOW_DELAY "forceLowDelay" |
Definition at line 2477 of file ni_device_api.h.
#define NI_DEC_PARAM_LOW_DELAY "lowDelay" |
Definition at line 2476 of file ni_device_api.h.
#define NI_DEC_PARAM_MAX_EXTRA_HW_FRAME_CNT "maxExtraHwFrameCnt" |
Definition at line 2489 of file ni_device_api.h.
#define NI_DEC_PARAM_MIN_PACKETS_DELAY "minPacketsDelay" |
Definition at line 2478 of file ni_device_api.h.
#define NI_DEC_PARAM_MULTICORE_JOINT_MODE "multicoreJointMode" |
Definition at line 2474 of file ni_device_api.h.
#define NI_DEC_PARAM_OUT "out" |
Definition at line 2447 of file ni_device_api.h.
#define NI_DEC_PARAM_PKT_PTS_UNCHANGE "pktPtsUnchange" |
Definition at line 2491 of file ni_device_api.h.
#define NI_DEC_PARAM_REDUCE_DPB_DELAY "reduceDpbDelay" |
Definition at line 2496 of file ni_device_api.h.
#define NI_DEC_PARAM_SAVE_PKT "savePkt" |
Definition at line 2475 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_0 "scale0" |
Definition at line 2462 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_0_LONG_SHORT_ADAPT "scale0LongShortAdapt" |
Definition at line 2465 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_0_RES_CEIL "scale0ResCeil" |
Definition at line 2468 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_0_ROUND "scale0Round" |
Definition at line 2471 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_1 "scale1" |
Definition at line 2463 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_1_LONG_SHORT_ADAPT "scale1LongShortAdapt" |
Definition at line 2466 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_1_RES_CEIL "scale1ResCeil" |
Definition at line 2469 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_1_ROUND "scale1Round" |
Definition at line 2472 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_2 "scale2" |
Definition at line 2464 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_2_LONG_SHORT_ADAPT "scale2LongShortAdapt" |
Definition at line 2467 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_2_RES_CEIL "scale2ResCeil" |
Definition at line 2470 of file ni_device_api.h.
#define NI_DEC_PARAM_SCALE_2_ROUND "scale2Round" |
Definition at line 2473 of file ni_device_api.h.
#define NI_DEC_PARAM_SEMI_PLANAR_0 "semiplanar0" |
Definition at line 2453 of file ni_device_api.h.
#define NI_DEC_PARAM_SEMI_PLANAR_1 "semiplanar1" |
Definition at line 2454 of file ni_device_api.h.
#define NI_DEC_PARAM_SEMI_PLANAR_2 "semiplanar2" |
Definition at line 2455 of file ni_device_api.h.
#define NI_DEC_PARAM_SKIP_EXTRA_HEADERS "skipExtraHeaders" |
Definition at line 2497 of file ni_device_api.h.
#define NI_DEC_PARAM_SKIP_PTS_GUESS "skipPtsGuess" |
Definition at line 2490 of file ni_device_api.h.
#define NI_DEC_PARAM_SURVIVE_STREAM_ERR "surviveStreamErr" |
Definition at line 2495 of file ni_device_api.h.
#define NI_DEC_PARAM_SVC_T_DECODING_LAYER "svctDecodingLayer" |
Definition at line 2482 of file ni_device_api.h.
#define NI_DEFAULT_CU_SIZE_MODE 7 |
Definition at line 158 of file ni_device_api.h.
#define NI_DEFAULT_INTRA_QP 22 |
Definition at line 169 of file ni_device_api.h.
#define NI_DEFAULT_KEEP_ALIVE_TIMEOUT 3 |
Definition at line 311 of file ni_device_api.h.
#define NI_DISABLE_USR_DATA_SEI_PASSTHRU 0 |
Definition at line 315 of file ni_device_api.h.
#define NI_EC_ERR_THRESHOLD_DEFAULT 10 |
Definition at line 325 of file ni_device_api.h.
#define NI_EC_POLICY_BEST_EFFORT 4 |
Definition at line 321 of file ni_device_api.h.
#define NI_EC_POLICY_BEST_EFFORT_OUT_DC 6 |
Definition at line 323 of file ni_device_api.h.
#define NI_EC_POLICY_DEFAULT NI_EC_POLICY_BEST_EFFORT |
Definition at line 324 of file ni_device_api.h.
#define NI_EC_POLICY_IGNORE 2 |
Definition at line 319 of file ni_device_api.h.
#define NI_EC_POLICY_LIMITED_ERROR 5 |
Definition at line 322 of file ni_device_api.h.
#define NI_EC_POLICY_SKIP 3 |
Definition at line 320 of file ni_device_api.h.
#define NI_EC_POLICY_TOLERANT 1 |
Definition at line 318 of file ni_device_api.h.
#define NI_ENABLE_AUD_FOR_GLOBAL_HEADER 2 |
Definition at line 209 of file ni_device_api.h.
#define NI_ENABLE_USR_DATA_SEI_PASSTHRU 1 |
Definition at line 316 of file ni_device_api.h.
#define NI_ENC_BLOCK_RC_SIZE "blockRCSize" |
Definition at line 2160 of file ni_device_api.h.
#define NI_ENC_CTB_ROW_QP_STEP "ctbRowQpStep" |
Definition at line 2162 of file ni_device_api.h.
#define NI_ENC_ENABLE_SSIM "enableSSIM" |
Definition at line 2187 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_CUSTOM_GOP_SIZE "customGopSize" |
Definition at line 2048 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC0 "g0refPic0" |
Definition at line 1839 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC0_USED "g0refPic0Used" |
Definition at line 1840 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC1 "g0refPic1" |
Definition at line 1841 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC1_USED "g0refPic1Used" |
Definition at line 1842 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC2 "g0refPic2" |
Definition at line 1843 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC2_USED "g0refPic2Used" |
Definition at line 1844 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC3 "g0refPic3" |
Definition at line 1845 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PIC3_USED "g0refPic3Used" |
Definition at line 1846 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_NUM_REF_PICS "g0numRefPics" |
Definition at line 1838 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_PIC_TYPE "g0picType" |
Definition at line 1837 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_POC_OFFSET "g0pocOffset" |
Definition at line 1833 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_QP_OFFSET "g0QpOffset" |
Definition at line 1834 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G0_TEMPORAL_ID "g0temporalId" |
Definition at line 1836 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC0 "g1refPic0" |
Definition at line 1854 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC0_USED "g1refPic0Used" |
Definition at line 1855 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC1 "g1refPic1" |
Definition at line 1856 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC1_USED "g1refPic1Used" |
Definition at line 1857 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC2 "g1refPic2" |
Definition at line 1858 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC2_USED "g1refPic2Used" |
Definition at line 1859 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC3 "g1refPic3" |
Definition at line 1860 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PIC3_USED "g1refPic3Used" |
Definition at line 1861 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_NUM_REF_PICS "g1numRefPics" |
Definition at line 1853 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_PIC_TYPE "g1picType" |
Definition at line 1852 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_POC_OFFSET "g1pocOffset" |
Definition at line 1848 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_QP_OFFSET "g1QpOffset" |
Definition at line 1849 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G1_TEMPORAL_ID "g1temporalId" |
Definition at line 1851 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC0 "g2refPic0" |
Definition at line 1869 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC0_USED "g2refPic0Used" |
Definition at line 1870 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC1 "g2refPic1" |
Definition at line 1871 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC1_USED "g2refPic1Used" |
Definition at line 1872 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC2 "g2refPic2" |
Definition at line 1873 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC2_USED "g2refPic2Used" |
Definition at line 1874 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC3 "g2refPic3" |
Definition at line 1875 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PIC3_USED "g2refPic3Used" |
Definition at line 1876 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_NUM_REF_PICS "g2numRefPics" |
Definition at line 1868 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_PIC_TYPE "g2picType" |
Definition at line 1867 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_POC_OFFSET "g2pocOffset" |
Definition at line 1863 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_QP_OFFSET "g2QpOffset" |
Definition at line 1864 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G2_TEMPORAL_ID "g2temporalId" |
Definition at line 1866 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC0 "g3refPic0" |
Definition at line 1884 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC0_USED "g3refPic0Used" |
Definition at line 1885 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC1 "g3refPic1" |
Definition at line 1886 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC1_USED "g3refPic1Used" |
Definition at line 1887 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC2 "g3refPic2" |
Definition at line 1888 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC2_USED "g3refPic2Used" |
Definition at line 1889 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC3 "g3refPic3" |
Definition at line 1890 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PIC3_USED "g3refPic3Used" |
Definition at line 1891 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_NUM_REF_PICS "g3numRefPics" |
Definition at line 1883 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_PIC_TYPE "g3picType" |
Definition at line 1882 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_POC_OFFSET "g3pocOffset" |
Definition at line 1878 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_QP_OFFSET "g3QpOffset" |
Definition at line 1879 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G3_TEMPORAL_ID "g3temporalId" |
Definition at line 1881 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC0 "g4refPic0" |
Definition at line 1899 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC0_USED "g4refPic0Used" |
Definition at line 1900 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC1 "g4refPic1" |
Definition at line 1901 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC1_USED "g4refPic1Used" |
Definition at line 1902 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC2 "g4refPic2" |
Definition at line 1903 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC2_USED "g4refPic2Used" |
Definition at line 1904 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC3 "g4refPic3" |
Definition at line 1905 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PIC3_USED "g4refPic3Used" |
Definition at line 1906 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_NUM_REF_PICS "g4numRefPics" |
Definition at line 1898 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_PIC_TYPE "g4picType" |
Definition at line 1897 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_POC_OFFSET "g4pocOffset" |
Definition at line 1893 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_QP_OFFSET "g4QpOffset" |
Definition at line 1894 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G4_TEMPORAL_ID "g4temporalId" |
Definition at line 1896 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC0 "g5refPic0" |
Definition at line 1914 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC0_USED "g5refPic0Used" |
Definition at line 1915 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC1 "g5refPic1" |
Definition at line 1916 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC1_USED "g5refPic1Used" |
Definition at line 1917 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC2 "g5refPic2" |
Definition at line 1918 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC2_USED "g5refPic2Used" |
Definition at line 1919 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC3 "g5refPic3" |
Definition at line 1920 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PIC3_USED "g5refPic3Used" |
Definition at line 1921 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_NUM_REF_PICS "g5numRefPics" |
Definition at line 1913 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_PIC_TYPE "g5picType" |
Definition at line 1912 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_POC_OFFSET "g5pocOffset" |
Definition at line 1908 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_QP_OFFSET "g5QpOffset" |
Definition at line 1909 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G5_TEMPORAL_ID "g5temporalId" |
Definition at line 1911 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC0 "g6refPic0" |
Definition at line 1929 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC0_USED "g6refPic0Used" |
Definition at line 1930 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC1 "g6refPic1" |
Definition at line 1931 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC1_USED "g6refPic1Used" |
Definition at line 1932 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC2 "g6refPic2" |
Definition at line 1933 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC2_USED "g6refPic2Used" |
Definition at line 1934 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC3 "g6refPic3" |
Definition at line 1935 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PIC3_USED "g6refPic3Used" |
Definition at line 1936 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_NUM_REF_PICS "g6numRefPics" |
Definition at line 1928 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_PIC_TYPE "g6picType" |
Definition at line 1927 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_POC_OFFSET "g6pocOffset" |
Definition at line 1923 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_QP_OFFSET "g6QpOffset" |
Definition at line 1924 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G6_TEMPORAL_ID "g6temporalId" |
Definition at line 1926 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC0 "g7refPic0" |
Definition at line 1944 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC0_USED "g7refPic0Used" |
Definition at line 1945 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC1 "g7refPic1" |
Definition at line 1946 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC1_USED "g7refPic1Used" |
Definition at line 1947 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC2 "g7refPic2" |
Definition at line 1948 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC2_USED "g7refPic2Used" |
Definition at line 1949 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC3 "g7refPic3" |
Definition at line 1950 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PIC3_USED "g7refPic3Used" |
Definition at line 1951 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_NUM_REF_PICS "g7numRefPics" |
Definition at line 1943 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_PIC_TYPE "g7picType" |
Definition at line 1942 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_POC_OFFSET "g7pocOffset" |
Definition at line 1938 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_QP_OFFSET "g7QpOffset" |
Definition at line 1939 of file ni_device_api.h.
#define NI_ENC_GOP_PARAMS_G7_TEMPORAL_ID "g7temporalId" |
Definition at line 1941 of file ni_device_api.h.
#define NI_ENC_INLOOP_DS_RATIO "inLoopDSRatio" |
Definition at line 2159 of file ni_device_api.h.
#define NI_ENC_MAX_SEI_BUF_SIZE NI_VPU_ALIGN64(1024) |
Definition at line 399 of file ni_device_api.h.
#define NI_ENC_MIN_RESOLUTION_HEIGHT 128 |
Definition at line 89 of file ni_device_api.h.
#define NI_ENC_MIN_RESOLUTION_WIDTH 144 |
Definition at line 88 of file ni_device_api.h.
#define NI_ENC_NEW_RC_ENABLE "newRcEnable" |
Definition at line 2163 of file ni_device_api.h.
#define NI_ENC_PARAM_AI_ENHANCE_LEVEL "AIEnhanceLevel" |
Definition at line 2197 of file ni_device_api.h.
#define NI_ENC_PARAM_ALLOCATE_STRAEGY "encMemAllocateStrategy" |
Definition at line 2231 of file ni_device_api.h.
#define NI_ENC_PARAM_AV1_ERROR_RESILIENT_MODE "av1ErrorResilientMode" |
Definition at line 2189 of file ni_device_api.h.
#define NI_ENC_PARAM_AVCC_HVCC "avccHvcc" |
Definition at line 2188 of file ni_device_api.h.
#define NI_ENC_PARAM_BITRATE "bitrate" |
Definition at line 2062 of file ni_device_api.h.
#define NI_ENC_PARAM_BITRATE_MODE "bitrateMode" |
Definition at line 2214 of file ni_device_api.h.
#define NI_ENC_PARAM_BITRATE_WINDOW "bitrateWindow" |
Definition at line 2158 of file ni_device_api.h.
#define NI_ENC_PARAM_CACHE_ROI "cacheRoi" |
Definition at line 2066 of file ni_device_api.h.
#define NI_ENC_PARAM_CBR "cbr" |
Definition at line 2122 of file ni_device_api.h.
#define NI_ENC_PARAM_CHROMA_QP_OFFSET "chromaQpOffset" |
Definition at line 2155 of file ni_device_api.h.
#define NI_ENC_PARAM_COLOR_PRIMARY "colorPri" |
Definition at line 2177 of file ni_device_api.h.
#define NI_ENC_PARAM_COLOR_SPACE "colorSpc" |
Definition at line 2179 of file ni_device_api.h.
#define NI_ENC_PARAM_COLOR_TRANSFER_CHARACTERISTIC "colorTrc" |
Definition at line 2178 of file ni_device_api.h.
#define NI_ENC_PARAM_CONF_WIN_BOTTOM "confWinBot" |
Definition at line 2097 of file ni_device_api.h.
#define NI_ENC_PARAM_CONF_WIN_LEFT "confWinLeft" |
Definition at line 2098 of file ni_device_api.h.
#define NI_ENC_PARAM_CONF_WIN_RIGHT "confWinRight" |
Definition at line 2099 of file ni_device_api.h.
#define NI_ENC_PARAM_CONF_WIN_TOP "confWinTop" |
Definition at line 2096 of file ni_device_api.h.
#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR NI_DEPRECATED_MACRO "crf" |
Definition at line 2127 of file ni_device_api.h.
#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR_FLOAT "crfFloat" |
Definition at line 2128 of file ni_device_api.h.
#define NI_ENC_PARAM_CONSTANT_RATE_FACTOR_MAX "crfMax" |
Definition at line 2203 of file ni_device_api.h.
#define NI_ENC_PARAM_CPLX_DECAY "cplxDecay" |
Definition at line 2211 of file ni_device_api.h.
#define NI_ENC_PARAM_CRF_MAX_IFRAME_ENABLE "crfMaxIframeEnable" |
Definition at line 2219 of file ni_device_api.h.
#define NI_ENC_PARAM_CROP_HEIGHT "cropHeight" |
Definition at line 2200 of file ni_device_api.h.
#define NI_ENC_PARAM_CROP_WIDTH "cropWidth" |
Definition at line 2199 of file ni_device_api.h.
#define NI_ENC_PARAM_CTB_RC_MODE "ctbRcMode" |
Definition at line 2135 of file ni_device_api.h.
#define NI_ENC_PARAM_CU_SIZE_MODE "cuSizeMode" |
Definition at line 2081 of file ni_device_api.h.
#define NI_ENC_PARAM_CU_TREE_FACTOR "cuTreeFactor" |
Definition at line 2207 of file ni_device_api.h.
#define NI_ENC_PARAM_CUSTOMIZE_ROI_QP_LEVEL "customizeQpLevel" |
Definition at line 2228 of file ni_device_api.h.
#define NI_ENC_PARAM_CUSTOMIZE_ROI_QP_MAP "customizeQpMapFile" |
Definition at line 2229 of file ni_device_api.h.
#define NI_ENC_PARAM_DDR_PRIORITY_MODE "ddrPriorityMode" |
Definition at line 2213 of file ni_device_api.h.
#define NI_ENC_PARAM_DECODING_REFRESH_TYPE "decodingRefreshType" |
Definition at line 2105 of file ni_device_api.h.
#define NI_ENC_PARAM_DISABLE_ADAPTIVE_BUFFERS "disableAdaptiveBuffers" |
Definition at line 2221 of file ni_device_api.h.
#define NI_ENC_PARAM_DISABLE_BFRAME_RDOQ "disableBframeRDOQ" |
Definition at line 2222 of file ni_device_api.h.
#define NI_ENC_PARAM_DOLBY_VISION_PROFILE "dolbyVisionProfile" |
Definition at line 2140 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_2PASS_GOP "enable2PassGop" |
Definition at line 2195 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_8X8_TRANSFORM "transform8x8Enable" |
Definition at line 2108 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_ACQUIRE_LIMIT "enableAcqLimit" |
Definition at line 2225 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_AI_ENHANCE "enableAIEnhance" |
Definition at line 2193 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_AI_HVSPLUS "enableHVSPlus" |
Definition at line 2194 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_ALL_SEI_PASSTHRU "enableAllSeiPassthru" |
Definition at line 2218 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_AUD "enableAUD" |
Definition at line 2134 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_COMPENSATE_QP "enableCompensateQp" |
Definition at line 2175 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_CU_LEVEL_RATE_CONTROL "cuLevelRCEnable" |
Definition at line 2087 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_DYNAMIC_16X16_MERGE "dynamicMerge16x16Enable" |
Definition at line 2084 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_DYNAMIC_32X32_MERGE "dynamicMerge32x32Enable" |
Definition at line 2085 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_DYNAMIC_8X8_MERGE "dynamicMerge8x8Enable" |
Definition at line 2083 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_FILLER "fillerEnable" |
Definition at line 2143 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_HVS_QP "hvsQPEnable" |
Definition at line 2088 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_HVS_QP_SCALE "hvsQpScaleEnable" |
Definition at line 2089 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_IP_RATIO "enableipRatio" |
Definition at line 2209 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_MB_LEVEL_RC "mbLevelRcEnable" |
Definition at line 2117 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_PIC_SKIP "picSkip" |
Definition at line 2144 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_RATE_CONTROL "RcEnable" |
Definition at line 2086 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_SMOOTH_CRF "enableSmoothCRF" |
Definition at line 2174 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_TIMECODE "enableTimecode" |
Definition at line 2233 of file ni_device_api.h.
#define NI_ENC_PARAM_ENABLE_VFR "enableVFR" |
Definition at line 2186 of file ni_device_api.h.
#define NI_ENC_PARAM_ENTROPY_CODING_MODE "entropyCodingMode" |
Definition at line 2109 of file ni_device_api.h.
#define NI_ENC_PARAM_FORCE_BFRAME_QPFACTOR "forceBframeQpfactor" |
Definition at line 2223 of file ni_device_api.h.
#define NI_ENC_PARAM_FORCE_FRAME_TYPE "forceFrameType" |
Definition at line 2070 of file ni_device_api.h.
#define NI_ENC_PARAM_FORCE_PIC_QP_DEMO_MODE "ForcePicQpDemoMode" |
Definition at line 2067 of file ni_device_api.h.
#define NI_ENC_PARAM_FORCED_HEADER_ENABLE "repeatHeaders" |
Definition at line 2094 of file ni_device_api.h.
#define NI_ENC_PARAM_FRAME_RATE "frameRate" |
Definition at line 2102 of file ni_device_api.h.
#define NI_ENC_PARAM_FRAME_RATE_DENOM "frameRateDenom" |
Definition at line 2103 of file ni_device_api.h.
#define NI_ENC_PARAM_GDR_DURATION "intraRefreshDuration" |
Definition at line 2138 of file ni_device_api.h.
#define NI_ENC_PARAM_GEN_HDRS "GenHdrs" |
Definition at line 2068 of file ni_device_api.h.
#define NI_ENC_PARAM_GET_PSNR_MODE "getPsnrMode" |
Definition at line 2226 of file ni_device_api.h.
#define NI_ENC_PARAM_GET_RECONSTRUCTED_MODE "getReconstructedMode" |
Definition at line 2235 of file ni_device_api.h.
#define NI_ENC_PARAM_GOP_LOW_DELAY "gopLowdelay" |
Definition at line 2137 of file ni_device_api.h.
#define NI_ENC_PARAM_GOP_PRESET_IDX "gopPresetIdx" |
Definition at line 2076 of file ni_device_api.h.
#define NI_ENC_PARAM_GOP_SIZE "gopSize" |
Definition at line 2136 of file ni_device_api.h.
#define NI_ENC_PARAM_HIGH_TIER "high-tier" |
Definition at line 2073 of file ni_device_api.h.
#define NI_ENC_PARAM_HORIZONTAL_OFFSET "horOffset" |
Definition at line 2201 of file ni_device_api.h.
#define NI_ENC_PARAM_HRD_ENABLE "hrdEnable" |
Definition at line 2139 of file ni_device_api.h.
#define NI_ENC_PARAM_HVS_BASE_MB_COMPLEXITY "hvsBaseMbComplexity" |
Definition at line 2216 of file ni_device_api.h.
#define NI_ENC_PARAM_HVS_QP_SCALE "hvsQpScale" |
Definition at line 2090 of file ni_device_api.h.
#define NI_ENC_PARAM_HVSPLUS_LEVEL "HVSPlusLevel" |
Definition at line 2198 of file ni_device_api.h.
#define NI_ENC_PARAM_IFRAME_SIZE_RATIO "iFrameSizeRatio" |
Definition at line 2171 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_MB_REFRESH_ARG "intraMbRefreshArg" |
Definition at line 2114 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_MB_REFRESH_MODE "intraMbRefreshMode" |
Definition at line 2113 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_PERIOD "intraPeriod" |
Definition at line 2100 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_QP "intraQP" |
Definition at line 2104 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_QP_DELTA "intraQpDelta" |
Definition at line 2164 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_REFRESH_ARG "intraRefreshArg" |
Definition at line 2116 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_REFRESH_MIN_PERIOD "intraRefreshMinPeriod" |
Definition at line 2123 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_REFRESH_MODE "intraRefreshMode" |
Definition at line 2115 of file ni_device_api.h.
#define NI_ENC_PARAM_INTRA_REFRESH_RESET "intraRefreshResetOnForceIDR" |
Definition at line 2106 of file ni_device_api.h.
#define NI_ENC_PARAM_IP_RATIO "ipRatio" |
Definition at line 2208 of file ni_device_api.h.
#define NI_ENC_PARAM_JPEG_QLEVEL "qlevel" |
Definition at line 2154 of file ni_device_api.h.
#define NI_ENC_PARAM_LEVEL "level" |
Definition at line 2072 of file ni_device_api.h.
#define NI_ENC_PARAM_LOG "log" |
Definition at line 2075 of file ni_device_api.h.
#define NI_ENC_PARAM_LOG_LEVEL "log-level" |
Definition at line 2074 of file ni_device_api.h.
#define NI_ENC_PARAM_LONG_TERM_REFERENCE_COUNT "longTermReferenceCount" |
Definition at line 2166 of file ni_device_api.h.
#define NI_ENC_PARAM_LONG_TERM_REFERENCE_ENABLE "longTermReferenceEnable" |
Definition at line 2165 of file ni_device_api.h.
#define NI_ENC_PARAM_LONG_TERM_REFERENCE_INTERVAL "longTermReferenceInterval" |
Definition at line 2167 of file ni_device_api.h.
#define NI_ENC_PARAM_LOOK_AHEAD_DEPTH "lookAheadDepth" |
Definition at line 2133 of file ni_device_api.h.
#define NI_ENC_PARAM_LOW_DELAY "lowDelay" |
Definition at line 2077 of file ni_device_api.h.
#define NI_ENC_PARAM_LTR_FIRST_GAP "ltrFirstGap" |
Definition at line 2151 of file ni_device_api.h.
#define NI_ENC_PARAM_LTR_NEXT_INTERVAL "ltrNextInterval" |
Definition at line 2152 of file ni_device_api.h.
#define NI_ENC_PARAM_LTR_REF_INTERVAL "ltrRefInterval" |
Definition at line 2149 of file ni_device_api.h.
#define NI_ENC_PARAM_LTR_REF_QPOFFSET "ltrRefQpOffset" |
Definition at line 2150 of file ni_device_api.h.
#define NI_ENC_PARAM_MASTER_DISPLAY "masterDisplay" |
Definition at line 2132 of file ni_device_api.h.
#define NI_ENC_PARAM_MAX_CLL "maxCLL" |
Definition at line 2131 of file ni_device_api.h.
#define NI_ENC_PARAM_MAX_CONSUTIVE_SKIP_FRAME_NUMBER "maxConsecutiveSkipFrameNum" |
Definition at line 2169 of file ni_device_api.h.
#define NI_ENC_PARAM_MAX_DELTA_QP "maxDeltaQp" |
Definition at line 2093 of file ni_device_api.h.
#define NI_ENC_PARAM_MAX_FRAME_SIZE_BITS_LOW_DELAY "maxFrameSize-Bits" |
Definition at line 2147 of file ni_device_api.h.
#define NI_ENC_PARAM_MAX_FRAME_SIZE_BYTES_LOW_DELAY "maxFrameSize-Bytes" |
Definition at line 2148 of file ni_device_api.h.
#define NI_ENC_PARAM_MAX_FRAME_SIZE_LOW_DELAY NI_DEPRECATED_MACRO "maxFrameSize" |
Definition at line 2146 of file ni_device_api.h.
#define NI_ENC_PARAM_MAX_NUM_MERGE "maxNumMerge" |
Definition at line 2082 of file ni_device_api.h.
#define NI_ENC_PARAM_MAX_QP "maxQp" |
Definition at line 2092 of file ni_device_api.h.
#define NI_ENC_PARAM_MIN_FRAMES_DELAY "minFramesDelay" |
Definition at line 2078 of file ni_device_api.h.
#define NI_ENC_PARAM_MIN_QP "minQp" |
Definition at line 2091 of file ni_device_api.h.
#define NI_ENC_PARAM_MOTION_CONSTRAINED_MODE "motionConstrainedMode" |
Definition at line 2230 of file ni_device_api.h.
#define NI_ENC_PARAM_MULTICORE_JOINT_MODE "multicoreJointMode" |
Definition at line 2153 of file ni_device_api.h.
#define NI_ENC_PARAM_NO_HW_MULTIPASS_SUPPORT "noHWMultiPassSupport" |
Definition at line 2206 of file ni_device_api.h.
#define NI_ENC_PARAM_NO_MBTREE "noMbtree" |
Definition at line 2205 of file ni_device_api.h.
#define NI_ENC_PARAM_PADDING "padding" |
Definition at line 2069 of file ni_device_api.h.
#define NI_ENC_PARAM_PASS1_QP "pass1Qp" |
Definition at line 2215 of file ni_device_api.h.
#define NI_ENC_PARAM_PB_RATIO "pbRatio" |
Definition at line 2210 of file ni_device_api.h.
#define NI_ENC_PARAM_PPS_INIT_QP "ppsInitQp" |
Definition at line 2212 of file ni_device_api.h.
#define NI_ENC_PARAM_PREFERRED_TRANSFER_CHARACTERISTICS "prefTRC" |
Definition at line 2118 of file ni_device_api.h.
#define NI_ENC_PARAM_PROFILE "profile" |
Definition at line 2071 of file ni_device_api.h.
#define NI_ENC_PARAM_PSNR_INTERVAL "intervalOfPsnr" |
Definition at line 2227 of file ni_device_api.h.
#define NI_ENC_PARAM_QCOMP "qcomp" |
Definition at line 2204 of file ni_device_api.h.
#define NI_ENC_PARAM_RC_INIT_DELAY "RcInitDelay" |
Definition at line 2121 of file ni_device_api.h.
#define NI_ENC_PARAM_RDO_LEVEL "rdoLevel" |
Definition at line 2129 of file ni_device_api.h.
#define NI_ENC_PARAM_RDO_QUANT "EnableRdoQuant" |
Definition at line 2130 of file ni_device_api.h.
#define NI_ENC_PARAM_RECONF_DEMO_MODE "ReconfDemoMode" |
Definition at line 2063 of file ni_device_api.h.
#define NI_ENC_PARAM_RECONF_FILE "ReconfFile" |
Definition at line 2064 of file ni_device_api.h.
#define NI_ENC_PARAM_ROI_DEMO_MODE "RoiDemoMode" |
Definition at line 2065 of file ni_device_api.h.
#define NI_ENC_PARAM_ROI_ENABLE "roiEnable" |
Definition at line 2095 of file ni_device_api.h.
#define NI_ENC_PARAM_SAR_DENOM "sarDenom" |
Definition at line 2182 of file ni_device_api.h.
#define NI_ENC_PARAM_SAR_NUM "sarNum" |
Definition at line 2181 of file ni_device_api.h.
#define NI_ENC_PARAM_SCENE_CHANG_DETECT_LEVEL "sceneChangeDetectLevel" |
Definition at line 2173 of file ni_device_api.h.
#define NI_ENC_PARAM_SKIP_FRAME_ENABLE "skipFrameEnable" |
Definition at line 2168 of file ni_device_api.h.
#define NI_ENC_PARAM_SKIP_FRAME_INTERVAL "skipFrameInterVal" |
Definition at line 2170 of file ni_device_api.h.
#define NI_ENC_PARAM_SLICE_ARG "sliceArg" |
Definition at line 2112 of file ni_device_api.h.
#define NI_ENC_PARAM_SLICE_MODE "sliceMode" |
Definition at line 2111 of file ni_device_api.h.
#define NI_ENC_PARAM_SPATIAL_LAYERS "spatialLayers" |
Definition at line 2232 of file ni_device_api.h.
#define NI_ENC_PARAM_SPATIAL_LAYERS_REF_BASE_LAYER "spatialLayersRefBaseLayer" |
Definition at line 2234 of file ni_device_api.h.
#define NI_ENC_PARAM_STATIC_MMAP_THRESHOLD "staticMmapThreshold" |
Definition at line 2191 of file ni_device_api.h.
#define NI_ENC_PARAM_STATISTIC_OUTPUT_LEVEL "statisticOutputLevel" |
Definition at line 2217 of file ni_device_api.h.
#define NI_ENC_PARAM_STILL_IMAGE_DETECT_LEVEL "stillImageDetectLevel" |
Definition at line 2172 of file ni_device_api.h.
#define NI_ENC_PARAM_TEMPORAL_LAYERS_ENABLE "temporalLayersEnable" |
Definition at line 2192 of file ni_device_api.h.
#define NI_ENC_PARAM_TOL_RC_INTER "tolCtbRcInter" |
Definition at line 2156 of file ni_device_api.h.
#define NI_ENC_PARAM_TOL_RC_INTRA "tolCtbRcIntra" |
Definition at line 2157 of file ni_device_api.h.
#define NI_ENC_PARAM_TRANS_RATE "transRate" |
Definition at line 2101 of file ni_device_api.h.
#define NI_ENC_PARAM_TUNE_BFRAME_VISUAL "tuneBframeVisual" |
Definition at line 2224 of file ni_device_api.h.
#define NI_ENC_PARAM_USE_LOW_DELAY_POC_TYPE "useLowDelayPocType" |
Definition at line 2080 of file ni_device_api.h.
#define NI_ENC_PARAM_USE_RECOMMENDED_ENC_PARAMS "useRecommendEncParam" |
Definition at line 2079 of file ni_device_api.h.
#define NI_ENC_PARAM_VBV_BUFFER_REENCODE "vbvBufferReencode" |
Definition at line 2236 of file ni_device_api.h.
#define NI_ENC_PARAM_VBV_BUFFER_SIZE "vbvBufferSize" |
Definition at line 2141 of file ni_device_api.h.
#define NI_ENC_PARAM_VBV_MAXRAE "vbvMaxRate" |
Definition at line 2142 of file ni_device_api.h.
#define NI_ENC_PARAM_VBV_MINRATE "vbvMinRate" |
Definition at line 2220 of file ni_device_api.h.
#define NI_ENC_PARAM_VERTICAL_OFFSET "verOffset" |
Definition at line 2202 of file ni_device_api.h.
#define NI_ENC_PARAM_VIDEO_FULL_RANGE_FLAG "videoFullRangeFlag" |
Definition at line 2184 of file ni_device_api.h.
#define NI_ENC_PARAM_ZEROCOPY_MODE "zeroCopyMode" |
Definition at line 2196 of file ni_device_api.h.
#define NI_ENC_RC_QP_DELTA_RANGE "rcQpDeltaRange" |
Definition at line 2161 of file ni_device_api.h.
#define NI_ENC_REPEAT_HEADERS_ALL_I_FRAMES 1 |
Definition at line 2057 of file ni_device_api.h.
#define NI_ENC_REPEAT_HEADERS_FIRST_IDR 0 |
Definition at line 2056 of file ni_device_api.h.
#define NI_FRAME_BIG_ENDIAN 1 |
Definition at line 109 of file ni_device_api.h.
#define NI_FRAME_LITTLE_ENDIAN 0 |
Definition at line 108 of file ni_device_api.h.
#define NI_HDR10P_SEI_BYTE0 0xB5 |
Definition at line 452 of file ni_device_api.h.
#define NI_HDR10P_SEI_BYTE1 0x00 |
Definition at line 453 of file ni_device_api.h.
#define NI_HDR10P_SEI_BYTE2 0x3c |
Definition at line 454 of file ni_device_api.h.
#define NI_HDR10P_SEI_BYTE3 0x00 |
Definition at line 455 of file ni_device_api.h.
#define NI_HDR10P_SEI_BYTE4 0x01 |
Definition at line 456 of file ni_device_api.h.
#define NI_HDR10P_SEI_BYTE5 0x04 |
Definition at line 457 of file ni_device_api.h.
#define NI_HDR10P_SEI_BYTE6 0x00 |
Definition at line 459 of file ni_device_api.h.
#define NI_HDR10P_SEI_HDR_H264_LEN 8 |
Definition at line 463 of file ni_device_api.h.
#define NI_HDR10P_SEI_HDR_HEVC_LEN 9 |
Definition at line 462 of file ni_device_api.h.
#define NI_INTRA_QP_RANGE 25 |
Definition at line 170 of file ni_device_api.h.
#define NI_INVALID_SESSION_ID 0xFFFF |
Definition at line 111 of file ni_device_api.h.
#define NI_INVALID_SVCT_DECODING_LAYER -1 |
Definition at line 317 of file ni_device_api.h.
#define NI_KEEP_ALIVE_TIMEOUT "keepAliveTimeout" |
Definition at line 2058 of file ni_device_api.h.
#define NI_MAX_ASPECTRATIO 65535 |
Definition at line 117 of file ni_device_api.h.
#define NI_MAX_BIN 1 |
Definition at line 174 of file ni_device_api.h.
#define NI_MAX_BITRATE 1000000000 |
Definition at line 113 of file ni_device_api.h.
#define NI_MAX_CU_SIZE_MODE 2 |
Definition at line 156 of file ni_device_api.h.
#define NI_MAX_CUSTOM_SEI_DATA (8192) |
Definition at line 428 of file ni_device_api.h.
#define NI_MAX_CUSTOM_SEI_PASSTHRU 254 |
Definition at line 314 of file ni_device_api.h.
#define NI_MAX_DECODING_REFRESH_TYPE 2 |
Definition at line 154 of file ni_device_api.h.
#define NI_MAX_DYNAMIC_MERGE 1 |
Definition at line 159 of file ni_device_api.h.
#define NI_MAX_ENCODER_QUERY_RETRIES 5000 |
Definition at line 66 of file ni_device_api.h.
#define NI_MAX_FIFO_CAPACITY 120 |
Definition at line 213 of file ni_device_api.h.
#define NI_MAX_FRAME_SIZE (7680*4320*3) |
Definition at line 178 of file ni_device_api.h.
#define NI_MAX_FRAMERATE 65535 |
Definition at line 116 of file ni_device_api.h.
#define NI_MAX_GOP_NUM 8 |
Definition at line 57 of file ni_device_api.h.
#define NI_MAX_GOP_PRESET_IDX 15 |
Definition at line 152 of file ni_device_api.h.
#define NI_MAX_GOP_SIZE 8 |
Definition at line 150 of file ni_device_api.h.
#define NI_MAX_HEIGHT 8192 |
Definition at line 125 of file ni_device_api.h.
#define NI_MAX_INTRA_QP 51 |
Definition at line 165 of file ni_device_api.h.
#define NI_MAX_INTRA_QP_DELTA 51 |
Definition at line 167 of file ni_device_api.h.
#define NI_MAX_KEEP_ALIVE_TIMEOUT 100 |
Definition at line 309 of file ni_device_api.h.
#define NI_MAX_MAX_NUM_MERGE 3 |
Definition at line 163 of file ni_device_api.h.
#define NI_MAX_NUM_AUX_DATA_PER_FRAME 16 |
Definition at line 470 of file ni_device_api.h.
#define NI_MAX_NUM_SESSIONS 32 |
Definition at line 176 of file ni_device_api.h.
#define NI_MAX_QP_DELTA 25 |
Definition at line 172 of file ni_device_api.h.
#define NI_MAX_QP_INFO 63 |
Definition at line 173 of file ni_device_api.h.
#define NI_MAX_REF_PIC 4 |
Definition at line 59 of file ni_device_api.h.
#define NI_MAX_RESOLUTION_AREA 8192*8192 |
Definition at line 102 of file ni_device_api.h.
#define NI_MAX_RESOLUTION_HEIGHT 8192 |
Definition at line 101 of file ni_device_api.h.
#define NI_MAX_RESOLUTION_LINESIZE (NI_MAX_RESOLUTION_WIDTH*2) |
Definition at line 106 of file ni_device_api.h.
#define NI_MAX_RESOLUTION_RGBA_HEIGHT 7040 |
Definition at line 104 of file ni_device_api.h.
#define NI_MAX_RESOLUTION_RGBA_WIDTH 7040 |
Definition at line 103 of file ni_device_api.h.
#define NI_MAX_RESOLUTION_WIDTH 8192 |
Definition at line 100 of file ni_device_api.h.
#define NI_MAX_SEI_DATA (NI_ENC_MAX_SEI_BUF_SIZE) |
Definition at line 426 of file ni_device_api.h.
#define NI_MAX_SLICE_SIZE 127 |
Definition at line 219 of file ni_device_api.h.
#define NI_MAX_SUPPORT_DRAWBOX_NUM 5 |
Definition at line 71 of file ni_device_api.h.
#define NI_MAX_SUPPORT_WATERMARK_NUM 6 |
Definition at line 72 of file ni_device_api.h.
#define NI_MAX_TX_RETRIES 1000 |
Definition at line 64 of file ni_device_api.h.
#define NI_MAX_USE_RECOMMENDED_ENC_PARAMS 3 |
Definition at line 161 of file ni_device_api.h.
#define NI_MAX_VUI_SIZE NI_DEPRECATED_MACRO 32 |
Definition at line 62 of file ni_device_api.h.
#define NI_MAX_WIDTH 8192 |
Definition at line 123 of file ni_device_api.h.
#define NI_MIN_BIN 0 |
Definition at line 175 of file ni_device_api.h.
#define NI_MIN_BITRATE 10000 |
Definition at line 114 of file ni_device_api.h.
#define NI_MIN_CU_SIZE_MODE 0 |
Definition at line 157 of file ni_device_api.h.
#define NI_MIN_CUSTOM_SEI_PASSTHRU -1 |
Definition at line 313 of file ni_device_api.h.
#define NI_MIN_DECODING_REFRESH_TYPE 0 |
Definition at line 155 of file ni_device_api.h.
#define NI_MIN_DYNAMIC_MERGE 0 |
Definition at line 160 of file ni_device_api.h.
#define NI_MIN_FRAME_SIZE 0 |
Definition at line 177 of file ni_device_api.h.
#define NI_MIN_GOP_PRESET_IDX -1 |
Definition at line 153 of file ni_device_api.h.
#define NI_MIN_GOP_SIZE 1 |
Definition at line 151 of file ni_device_api.h.
#define NI_MIN_HEIGHT 128 |
Definition at line 126 of file ni_device_api.h.
#define NI_MIN_INTRA_QP -1 |
Definition at line 166 of file ni_device_api.h.
#define NI_MIN_INTRA_QP_DELTA -51 |
Definition at line 168 of file ni_device_api.h.
#define NI_MIN_KEEP_ALIVE_TIMEOUT 1 |
Definition at line 310 of file ni_device_api.h.
#define NI_MIN_MAX_NUM_MERGE 0 |
Definition at line 164 of file ni_device_api.h.
#define NI_MIN_QP_DELTA (-25) |
Definition at line 171 of file ni_device_api.h.
#define NI_MIN_RESOLUTION_HEIGHT 144 |
Definition at line 87 of file ni_device_api.h.
#define NI_MIN_RESOLUTION_HEIGHT_JPEG 48 |
Definition at line 84 of file ni_device_api.h.
#define NI_MIN_RESOLUTION_HEIGHT_SCALER 16 |
Definition at line 95 of file ni_device_api.h.
#define NI_MIN_RESOLUTION_WIDTH 144 |
Definition at line 86 of file ni_device_api.h.
#define NI_MIN_RESOLUTION_WIDTH_JPEG 48 |
Definition at line 83 of file ni_device_api.h.
#define NI_MIN_RESOLUTION_WIDTH_SCALER 16 |
Definition at line 94 of file ni_device_api.h.
#define NI_MIN_USE_RECOMMENDED_ENC_PARAMS 0 |
Definition at line 162 of file ni_device_api.h.
#define NI_MIN_WIDTH 144 |
Definition at line 124 of file ni_device_api.h.
#define NI_MULTICORE_ENCODE_MIN_HEIGHT 256 |
Definition at line 132 of file ni_device_api.h.
#define NI_MULTICORE_ENCODE_MIN_WIDTH 256 |
Definition at line 131 of file ni_device_api.h.
#define NI_NAMESPACE_MAX_NUM 128 |
Definition at line 216 of file ni_device_api.h.
#define NI_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000)) |
Definition at line 52 of file ni_device_api.h.
#define NI_NUM_OF_PIXELS_1080P (1920*1080) |
Definition at line 77 of file ni_device_api.h.
#define NI_NUM_OF_PIXELS_1440P (2560*1440) |
Definition at line 78 of file ni_device_api.h.
#define NI_NUM_OF_PIXELS_360P (640*360) |
Definition at line 75 of file ni_device_api.h.
#define NI_NUM_OF_PIXELS_4K (3840*2160) |
Definition at line 79 of file ni_device_api.h.
#define NI_NUM_OF_PIXELS_4K_2 (4096*2160) |
Definition at line 80 of file ni_device_api.h.
#define NI_NUM_OF_PIXELS_720P (1280*720) |
Definition at line 76 of file ni_device_api.h.
#define NI_NUM_OF_PIXELS_8K (7680*4320) |
Definition at line 81 of file ni_device_api.h.
#define NI_PARAM_AV1_ALIGN_WIDTH_HEIGHT 8 |
Definition at line 148 of file ni_device_api.h.
#define NI_PARAM_AV1_MAX_AREA (4096 * 2304) |
Definition at line 147 of file ni_device_api.h.
#define NI_PARAM_AV1_MAX_HEIGHT 4352 |
Definition at line 146 of file ni_device_api.h.
#define NI_PARAM_AV1_MAX_WIDTH 4096 |
Definition at line 145 of file ni_device_api.h.
#define NI_PARAM_AV1_MIN_HEIGHT 128 |
Definition at line 144 of file ni_device_api.h.
#define NI_PARAM_AV1_MIN_WIDTH 144 |
Definition at line 143 of file ni_device_api.h.
#define NI_PARAM_JPEG_MIN_HEIGHT 48 |
Definition at line 141 of file ni_device_api.h.
#define NI_PARAM_JPEG_MIN_WIDTH 48 |
Definition at line 140 of file ni_device_api.h.
#define NI_PARAM_MAX_HEIGHT 8192 |
Definition at line 137 of file ni_device_api.h.
#define NI_PARAM_MAX_WIDTH 8192 |
Definition at line 135 of file ni_device_api.h.
#define NI_PARAM_MIN_HEIGHT 32 |
Definition at line 138 of file ni_device_api.h.
#define NI_PARAM_MIN_WIDTH 32 |
Definition at line 136 of file ni_device_api.h.
#define NI_RBSP_TRAILING_BITS_LEN 1 |
Definition at line 466 of file ni_device_api.h.
#define NI_SCALER_FLAG_CMP 0x0800 /* 0 = no compress, 1 = compress*/ |
Definition at line 298 of file ni_device_api.h.
#define NI_SCALER_FLAG_CS 0x0020 /* 0 = BT.709, 1 = BT.2020 */ |
Definition at line 296 of file ni_device_api.h.
#define NI_SCALER_FLAG_FCE 0x0010 /* 0 = no fill color, 1 = fill color enabled */ |
Definition at line 295 of file ni_device_api.h.
#define NI_SCALER_FLAG_IO 0x0001 /* 0 = source frame, 1 = destination frame */ |
Definition at line 291 of file ni_device_api.h.
#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.
#define NI_SCALER_FLAG_P2 0x0008 /* 0 = normal allocation, 1 = P2P allocation */ |
Definition at line 294 of file ni_device_api.h.
#define NI_SCALER_FLAG_PA 0x0004 /* 0 = straight alpha, 1 = premultiplied alpha */ |
Definition at line 293 of file ni_device_api.h.
#define NI_SCALER_FLAG_PC 0x0002 /* 0 = single allocation, 1 = create pool */ |
Definition at line 292 of file ni_device_api.h.
#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.
#define NI_VPU_ALIGN128 | ( | _x | ) | (((_x)+0x7f)&~0x7f) |
Definition at line 334 of file ni_device_api.h.
#define NI_VPU_ALIGN16 | ( | _x | ) | (((_x)+0x0f)&~0x0f) |
Definition at line 331 of file ni_device_api.h.
#define NI_VPU_ALIGN16384 | ( | _x | ) | (((_x)+0x3fff)&~0x3fff) |
Definition at line 339 of file ni_device_api.h.
#define NI_VPU_ALIGN2048 | ( | _x | ) | (((_x)+0x7ff)&~0x7ff) |
Definition at line 337 of file ni_device_api.h.
#define NI_VPU_ALIGN256 | ( | _x | ) | (((_x)+0xff)&~0xff) |
Definition at line 335 of file ni_device_api.h.
#define NI_VPU_ALIGN32 | ( | _x | ) | (((_x)+0x1f)&~0x1f) |
Definition at line 332 of file ni_device_api.h.
#define NI_VPU_ALIGN4 | ( | _x | ) | (((_x)+0x03)&~0x03) |
Definition at line 329 of file ni_device_api.h.
#define NI_VPU_ALIGN4096 | ( | _x | ) | (((_x)+0xfff)&~0xfff) |
Definition at line 338 of file ni_device_api.h.
#define NI_VPU_ALIGN512 | ( | _x | ) | (((_x)+0x1ff)&~0x1ff) |
Definition at line 336 of file ni_device_api.h.
#define NI_VPU_ALIGN64 | ( | _x | ) | (((_x)+0x3f)&~0x3f) |
Definition at line 333 of file ni_device_api.h.
#define NI_VPU_ALIGN8 | ( | _x | ) | (((_x)+0x07)&~0x07) |
Definition at line 330 of file ni_device_api.h.
#define NI_VPU_CEIL | ( | _data, | |
_align | |||
) | (((_data)+((_align)-1))&~((_align)-1)) |
Definition at line 328 of file ni_device_api.h.
#define NI_XCODER_LOG_NAME_DEBUG "debug" |
Definition at line 2886 of file ni_device_api.h.
#define NI_XCODER_LOG_NAME_ERROR "error" |
Definition at line 2883 of file ni_device_api.h.
#define NI_XCODER_LOG_NAME_FULL "full" |
Definition at line 2887 of file ni_device_api.h.
#define NI_XCODER_LOG_NAME_INFO "info" |
Definition at line 2885 of file ni_device_api.h.
#define NI_XCODER_LOG_NAME_NONE "none" |
Definition at line 2882 of file ni_device_api.h.
#define NI_XCODER_LOG_NAME_WARN "warning" |
Definition at line 2884 of file ni_device_api.h.
#define NI_XCODER_LOG_NAMES_ARRAY_LEN 7 |
Definition at line 2877 of file ni_device_api.h.
#define NI_XCODER_PRESET_NAME_CUSTOM "custom" |
Definition at line 2880 of file ni_device_api.h.
#define NI_XCODER_PRESET_NAME_DEFAULT "default" |
Definition at line 2879 of file ni_device_api.h.
#define NI_XCODER_PRESET_NAMES_ARRAY_LEN 3 |
Definition at line 2876 of file ni_device_api.h.
#define RC_ERROR false |
Definition at line 182 of file ni_device_api.h.
#define RC_SUCCESS true |
Definition at line 181 of file ni_device_api.h.
typedef enum _ni_ai_buffer_format_e ni_ai_buffer_format_e |
typedef struct _ni_aux_data ni_aux_data_t |
typedef enum _ni_frame_aux_data_type ni_aux_data_type_t |
typedef struct _ni_buf_pool_t ni_buf_pool_t |
typedef struct _ni_category_classify ni_category_classify_t |
typedef enum _ni_codec_format ni_codec_format_t |
This is an enumeration for supported codec formats.
typedef enum ni_codec_hw_actions ni_codec_hw_actions_t |
This is an enumeration for hw actions.
payload format of HDR SEI content light level info
typedef struct _ni_context_query ni_context_query_t |
typedef struct _ni_custom_gop_params ni_custom_gop_params_t |
typedef enum _ni_custom_sei_location ni_custom_sei_location_t |
This is an enumeration for illustrating the custom SEI locations.
typedef struct _ni_custom_sei_set ni_custom_sei_set_t |
typedef struct _ni_custom_sei ni_custom_sei_t |
custom sei payload passthrough
typedef enum _ni_ddr_priority_mode_t ni_ddr_priority_mode_t |
typedef enum _ni_dec_crop_mode ni_dec_crop_mode |
typedef struct _ni_dec_h264_vui_param ni_dec_h264_vui_param_t |
decoded payload format of H.264 VUI
typedef struct _ni_dec_h265_vui_param ni_dec_h265_vui_param_t |
decoded payload format of H.265 VUI
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
typedef struct _ni_dec_win ni_dec_win_t |
typedef struct _ni_decoder_input_params_t ni_decoder_input_params_t |
typedef struct _ni_device_capability ni_device_capability_t |
device capability type
typedef union _ni_enc_avc_roi_custom_map ni_enc_avc_roi_custom_map_t |
encoder AVC ROI custom map (1 MB = 8bits)
typedef union _ni_enc_hevc_roi_custom_map ni_enc_hevc_roi_custom_map_t |
encoder HEVC ROI custom map (1 CTU = 64bits)
encoded payload format of HDR SEI mastering display colour volume
typedef union _ni_enc_quad_roi_custom_map ni_enc_quad_roi_custom_map |
encoder AVC ROI custom map (1 MB = 8bits)
typedef struct _ni_encoder_cfg_params ni_encoder_cfg_params_t |
typedef struct _ni_encoder_change_params_t ni_encoder_change_params_t |
This is a data structure for encoding parameters that have changed.
typedef struct _ni_extended_dec_metadata ni_extended_dec_metadata_t |
typedef struct _ni_frame_config ni_frame_config_t |
typedef enum _ni_frame_pool_type ni_frame_pool_type_t |
Frame pool type.
typedef struct _ni_frame ni_frame_t |
typedef struct _ni_frameclone_desc ni_frameclone_desc_t |
typedef struct _ni_framerate ni_framerate_t |
typedef struct _ni_gop_params ni_gop_params_t |
typedef struct _ni_gop_rps ni_gop_rps_t |
typedef struct _ni_hw_capability ni_hw_capability_t |
hardware capability type
typedef struct _ni_input_frame ni_input_frame |
typedef struct _ni_instance_mgr_detail_status ni_instance_mgr_detail_status_t |
typedef struct _ni_load_query ni_load_query_t |
typedef struct _ni_long_term_ref ni_long_term_ref_t |
typedef struct _ni_network_data ni_network_data_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_layer_params_t ni_network_layer_params_t |
typedef struct _ni_network_perf_metrics ni_network_perf_metrics_t |
typedef struct _ni_overall_load_query ni_overall_load_query_t |
typedef struct _ni_packet ni_packet_t |
typedef enum _ni_param_change_flags ni_param_change_flags_t |
This is an enumeration for encoder parameter change.
typedef enum _ni_pixel_planar_format ni_pixel_planar_format |
typedef struct _ni_pkt_info ni_pkt_info |
typedef enum ni_qos_codes ni_qos_codes_t |
typedef enum ni_qos_modes ni_qos_modes_t |
typedef struct _ni_queue_buffer_pool_t ni_queue_buffer_pool_t |
typedef struct _ni_queue_node_t ni_queue_node_t |
typedef struct _ni_queue_t ni_queue_t |
typedef struct _ni_rational ni_rational_t |
typedef struct _ni_rc_min_max_qp ni_rc_min_max_qp |
typedef enum _ni_reconfig ni_reconfig_t |
This is an enumeration for encoder reconfiguration test settings.
typedef struct _ni_region_of_interest ni_region_of_interest_t |
typedef struct _ni_scaler_drawbox_params_t ni_scaler_drawbox_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_watermark_params_t ni_scaler_watermark_params_t |
typedef struct _ni_sei_header ni_sei_header_t |
typedef struct _ni_session_context ni_session_context_t |
typedef struct _ni_session_data_io ni_session_data_io_t |
typedef enum _ni_session_run_state ni_session_run_state_t |
Session running state type.
typedef struct _ni_split_context_t ni_split_context_t |
typedef struct _ni_thread_arg_struct_t ni_thread_arg_struct_t |
typedef struct _ni_timestamp_table_t ni_timestamp_table_t |
typedef struct _ni_vui_hrd ni_vui_hrd_t |
typedef struct _ni_xcoder_params ni_xcoder_params_t |
typedef struct _niFrameSurface1 niFrameSurface1_t |
Definition at line 1779 of file ni_device_api.h.
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.
enum _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.
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.
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.
enum _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.
Definition at line 497 of file ni_device_api.h.
enum _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.
This is an enumeration for encoder parameter change.
Definition at line 950 of file ni_device_api.h.
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.
enum _ni_reconfig |
This is an enumeration for encoder reconfiguration test settings.
Definition at line 1739 of file ni_device_api.h.
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.
enum 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.
Definition at line 280 of file ni_device_api.h.
Definition at line 357 of file ni_device_api.h.
enum ni_pic_type_t |
Definition at line 382 of file ni_device_api.h.
enum ni_pix_fmt_t |
Definition at line 260 of file ni_device_api.h.
enum ni_qos_codes |
Enumerator | |
---|---|
QOS_NAMESPACE_CODE | |
QOS_OP_CONFIG_REC_OP_CODE | |
QOS_OP_CONFIG_CODE |
Definition at line 234 of file ni_device_api.h.
enum ni_qos_modes |
Enumerator | |
---|---|
QOS_MODE_DISABLED | |
QOS_MODE_ENABLED_NO_SHARE | |
QOS_MODE_ENABLED_SHARE |
Definition at line 224 of file ni_device_api.h.
enum ni_xcoder_state_t |
Definition at line 242 of file ni_device_api.h.
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
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
Definition at line 9651 of file ni_device_api.c.
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
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | file | Pointer to caller network binary file path |
Definition at line 9562 of file ni_device_api.c.
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.
[out] | p_frame | Pointer to caller allocated ni_frame_t |
[in] | p_network | Pointer to caller allocated ni_network_data_t |
Definition at line 9698 of file ni_device_api.c.
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.
[out] | p_packet | Pointer to a caller allocated ni_packet_t struct |
[in] | p_network | Pointer to a caller allocated ni_network_data_t struct |
Definition at line 9779 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_metrics | Pointer to network metrics |
Definition at line 11379 of file ni_device_api.c.
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.
[in] | p_upl_ctx | pointer to an uploader session context |
[in] | linesize | array of line stride |
Definition at line 9145 of file ni_device_api.c.
LIB_API void ni_close_event | ( | ni_event_handle_t | event_handle | ) |
Close event and release resources (Windows only)
Definition at line 294 of file ni_device_api.c.
LIB_API ni_event_handle_t ni_create_event | ( | void | ) |
Create event and return event handle if successful (Windows only)
Definition at line 266 of file ni_device_api.c.
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,
[in] | p_buffer | User provided pointer to be used for buffer |
[in] | p_packet | Pointer to a caller allocated ni_packet_t struct |
[in] | buffer_size | Buffer size |
Definition at line 3807 of file ni_device_api.c.
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.
[in] | p_pool | Buffer pool to get the memory from |
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | alloc_mem | Whether to get memory from buffer pool |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | alignment | Alignment requirement |
[in] | factor | 1 for 8 bits/pixel format, 2 for 10 bits/pixel |
[in] | is_planar | 0 if semiplanar else planar |
Definition at line 2586 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a previously allocated ni_frame_t struct |
Definition at line 3644 of file ni_device_api.c.
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.
[in] | buf | Buffer to be returned. |
[in] | p_buffer_pool | Buffer pool to return buffer to. |
Return a memory buffer to memory buffer pool, for a decoder frame.
[in] | buf | Buffer to be returned. |
[in] | p_buffer_pool | Buffer pool to return buffer to. |
Definition at line 3694 of file ni_device_api.c.
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.
[out] | param | Pointer to a user allocated ni_xcoder_params_t to initialize to default parameters |
[in] | fps_num | Frames per second |
[in] | fps_denom | FPS denomination |
[in] | bit_rate | bit rate |
[in] | width | frame width |
[in] | height | frame height |
Definition at line 4546 of file ni_device_api.c.
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.
[in] | p_params | Pointer to a user allocated ni_xcoder_params_t (used for decoder too for now ) to find and set a particular parameter |
[in] | name | String represented parameter name to search |
[in] | value | Parameter value to set |
Definition at line 4881 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_log_buffer | Reference 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_file | Indicating whether it is required to generate log files |
on failure NI_RETCODE_ERROR_MEM_ALOC NI_RETCODE_INVALID_PARAM
Definition at line 11713 of file ni_device_api.c.
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.
[in] | p_ctx | pointer to session context |
[in] | p_out_surface | pointer to output frame surface |
[in] | device_type | currently only NI_DEVICE_TYPE_AI |
Definition at line 8947 of file ni_device_api.c.
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.
[in] | p_ctx | pointer to session context |
[in] | width | width, in pixels |
[in] | height | height, in pixels |
[in] | format | pixel format |
[in] | options | options 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_width | clipping rectangle width |
[in] | rectangle_height | clipping rectangle height |
[in] | rectangle_x | horizontal position of clipping rectangle |
[in] | rectangle_y | vertical position of clipping rectangle |
[in] | rgba_color | RGBA fill colour (for padding only) |
[in] | frame_index | input hwdesc index |
[in] | device_type | only NI_DEVICE_TYPE_SCALER and NI_DEVICE_TYPE_AI (only needs p_ctx and frame_index) |
Definition at line 8880 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open |
[in] | p_cap | Pointer to a caller allocated ni_device_capability_t struct |
Definition at line 587 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open |
[in] | p_cap | Pointer to a caller allocated ni_device_capability_t struct |
[in] | device_in_ctxt | If device is in ctx |
Definition at line 647 of file ni_device_api.c.
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.
[in] | p_ctx | pointer to session context |
[in] | p_frameclone_desc | pointer to the frameclone descriptor |
Definition at line 8997 of file ni_device_api.c.
LIB_API void ni_device_close | ( | ni_device_handle_t | device_handle | ) |
Close device and release resources.
[in] | device_handle | Device handle obtained by calling ni_device_open() |
Definition at line 503 of file ni_device_api.c.
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.
[in] | p_ctx | pointer to session context |
[in] | p_cfg | pointer to frame config |
Config a frame on the device for 2D engined to work on based on provided parameters.
[in] | p_ctx | pointer to session context |
[in] | p_cfg | pointer to frame configuration |
Definition at line 9049 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open |
[in] | namespace_num | Set the namespace number with designated sriov |
[in] | sriov_index | Identify which sriov need to be set |
Definition at line 2037 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open |
[in] | mode | The requested qos mode |
Definition at line 2058 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open |
[in] | device_handle_t | Target device handle of namespace required for OP |
[in] | over_provision | The request overprovision percent |
Definition at line 2080 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
Definition at line 1621 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | hdr_data | Pointer to header data |
[in] | hdr_size | Size of header data in bytes |
Definition at line 1566 of file ni_device_api.c.
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.
[in] | p_ctx | pointer to session context |
[in] | p_cfg_in | input frame config array |
[in] | numInCfgs | number of frame config entries in the p_cfg_in array |
[in] | p_cfg_out | output frame config |
Config multiple frame on the device for 2D engined to work on based on provided parameters.
[in] | p_ctx | pointer to session context |
[in] | p_cfg_in | pointer to input frame configuration |
[in] | numInCfgs | number of input frame configurations |
[in] | p_cfg_out | pointer to output frame configuration |
Definition at line 9095 of file ni_device_api.c.
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.
[in] | p_dev | Device name represented as c string. ex: "/dev/nvme0" |
[out] | p_max_io_size_out | Maximum IO Transfer size supported |
[in] | p_dev | Device name represented as c string. ex: "/dev/nvme0" |
[out] | p_max_io_size_out | Maximum IO Transfer size supported, could be NULL |
Definition at line 360 of file ni_device_api.c.
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.
[in] | p_upl_ctx | Pointer to a caller allocated ni_session_context_t struct |
[out] | p_frame | Pointer to a caller allocated hw frame |
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[out] | p_frame | Pointer to a caller allocated hw frame |
Definition at line 10602 of file ni_device_api.c.
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.
[in] | p_upl_ctx | Pointer to a caller allocated ni_session_context_t struct |
[out] | p_frame | Pointer to a caller allocated hw frame |
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[out] | p_frame | Pointer to a caller allocated hw frame |
Definition at line 10697 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | eos_received | Flag indicating if End Of Stream indicator was received |
[in] | device_type | NI_DEVICE_TYPE_DECODER, NI_DEVICE_TYPE_ENCODER, or NI_DEVICE_TYPE_SCALER |
Definition at line 1379 of file ni_device_api.c.
LIB_API ni_session_context_t* ni_device_session_context_alloc_init | ( | void | ) |
Allocate and initialize a new ni_session_context_t struct.
Definition at line 98 of file ni_device_api.c.
LIB_API void ni_device_session_context_clear | ( | ni_session_context_t * | p_ctx | ) |
Clear already allocated session context.
[in] | p_ctx | Pointer to an already allocated ni_session_context_t |
Definition at line 249 of file ni_device_api.c.
LIB_API void ni_device_session_context_free | ( | ni_session_context_t * | p_ctx | ) |
Free previously allocated session context.
[in] | p_ctx | Pointer to an already allocated ni_session_context_t struct |
Definition at line 130 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to an already allocated ni_session_context_t struct |
Definition at line 156 of file ni_device_api.c.
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.
[in] | src_p_ctx | Pointer to a caller allocated source session context |
[in] | dst_p_ctx | Pointer to a caller allocated destination session context |
Definition at line 8015 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | device_type | NI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER |
Definition at line 1512 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_data | Pointer 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] | hwdesc | HW descriptor to find frame in XCODER |
Read YUV data from hw descriptor stored location on device.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_data | Pointer 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] | hwdesc | HW descriptor to find frame in XCODER |
Definition at line 8210 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_src_data | Pointer to a caller allocated ni_session_data_io_t struct which contains a ni_frame_t data frame to send to uploader |
[out] | hwdesc | HW descriptor to find frame in XCODER |
Send raw YUV input to uploader instance and retrieve a HW descriptor to represent it.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_src_data | Pointer to a caller allocated ni_session_data_io_t struct which contains a ni_frame_t data frame to send to uploader |
[out] | hwdesc | HW descriptor to find frame in XCODER |
Definition at line 8363 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | pool_size | Upload session initial allocated frames count must be > 0, |
[in] | pool | 0 use the normal pool 1 use a dedicated P2P pool |
Send frame pool setup info to device.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | pool_size | Upload session initial allocated frames count must be > 0, |
[in] | pool | 0 use the normal pool 1 use a dedicated P2P pool |
Definition at line 8564 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | device_type | NI_DEVICE_TYPE_DECODER, NI_DEVICE_TYPE_ENCODER, or NI_DEVICE_TYPE_SCALER |
resource management context
Definition at line 710 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | device_type | NI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER or NI_DEVICE_TYPE_SCALER or NI_DEVICE_TYPE_AI or NI_DEVICE_TYPE_UPLOADER |
Definition at line 1920 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | device_type | Quadra device type |
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct [in] device_type Quadra device type |
Definition at line 8296 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | device_type | NI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER or |
Definition at line 1960 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | device_type | NI_DEVICE_TYPE_DECODER or NI_DEVICE_TYPE_ENCODER or |
Definition at line 2000 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_data | Pointer 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_type | NI_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 |
Definition at line 1769 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_data | Pointer 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_type | NI_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 |
Definition at line 8043 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | width | width, in pixels |
[in] | height | height, in pixels |
[in] | device_type | NI_DEVICE_TYPE_ENCODER |
Definition at line 12913 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | width | input width |
[in] | height | input height |
[in] | bit_depth_factor | 1 for 8-bit YUV, 2 for 10-bit YUV |
[in] | device_type | device type (must be encoder) |
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | width | input width |
[in] | height | input height |
[in] | bit_depth_factor | 1 for 8-bit YUV, 2 for 10-bit YUV |
[in] | device_type | device type (must be encoder) |
Definition at line 11322 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | pool_size | if 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 |
Definition at line 8612 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_data | Pointer 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_type | NI_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. |
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_data | Pointer 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_type | NI_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. |
Definition at line 1668 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | alignment | Allignment requirement |
[in] | metadata_flag | Flag indicating if space for additional metadata should be allocated |
[in] | factor | 1 for 8 bits/pixel format, 2 for 10 bits/pixel, 4 for 32 bits/pixel (RGBA) |
[in] | hw_frame_count | Number of hw descriptors stored |
[in] | is_planar | 0 if semiplanar else planar |
[in] | pix_fmt | pixel format to distinguish between planar types and/or components |
Definition at line 2321 of file ni_device_api.c.
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.
[in] | p_enc_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
on failure NI_RETCODE_ERROR_MEM_ALOC
Definition at line 11947 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | linesize | Picture line size |
[in] | alignment | Allignment requirement |
[in] | extra_len | Extra data size (incl. meta data). < 0 means not to allocate any buffer (zero-copy from existing) |
[in] | alignment_2pass_wa | set alignment to work with 2pass encode |
Definition at line 3161 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | linesize | Picture line size |
[in] | data | Picture data pointers (for each of YUV planes) |
[in] | extra_len | Extra data size (incl. meta data) |
Definition at line 2879 of file ni_device_api.c.
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.
[in] | p_enc_ctx | pointer 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) |
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.
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.
[in] | p_params | Pointer to a user allocated ni_xcoder_params_t to find and set a particular parameter |
[in] | name | String represented parameter name to search |
[in] | value | Parameter value to set |
Definition at line 7197 of file ni_device_api.c.
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.
[out] | param | Pointer to a user allocated ni_xcoder_params_t to initialize to default parameters |
[in] | fps_num | Frames per second |
[in] | fps_denom | FPS denomination |
[in] | bit_rate | bit rate |
[in] | width | frame width |
[in] | height | frame height |
[in] | codec_format | codec from ni_codec_format_t |
Definition at line 4147 of file ni_device_api.c.
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.
[in] | p_params | Pointer to a user allocated ni_xcoder_params_t to find and set a particular parameter |
[in] | name | String represented parameter name to search |
[in] | value | Parameter value to set |
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.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct from encoder |
[in] | p_data | Pointer to a caller allocated ni_session_data_io_t struct which contains a ni_packet_t data packet to receive |
Definition at line 11232 of file ni_device_api.c.
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.
[in] | p_enc_ctx | pointer 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 |
on failure NI_RETCODE_INVALID_PARAM
Definition at line 11083 of file ni_device_api.c.
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.
[in] | planar | true: 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_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | linesize | Picture line size |
[in] | alignment | Allignment requirement. Only used for planar format. |
[in] | extra_len | Extra data size (incl. meta data). < 0 means not to allocate any buffer (zero-copy from existing) |
[in] | alignment_2pass_wa | set alignment to work with 2pass encode |
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.
[in] | planar | true: 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_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | linesize | Picture line size |
[in] | alignment | Allignment requirement. Only used for planar format. |
[in] | extra_len | Extra data size (incl. meta data). < 0 means not to allocate any buffer (zero-copy from existing) |
[in] | alignment_2pass_wa | set alignment to work with 2pass encode |
Definition at line 3531 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
Definition at line 9992 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | alignment | Allignment requirement |
[in] | metadata_flag | Flag indicating if space for additional metadata should be allocated |
[in] | factor | 1 for 8 bits/pixel format, 2 for 10 bits/pixel, 4 for 32 bits/pixel (RGBA) |
[in] | hw_frame_count | Number of hw descriptors stored in lieu of raw YUV |
[in] | is_planar | 0 if semiplanar else planar |
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | alignment | Allignment requirement |
[in] | metadata_flag | Flag indicating if space for additional metadata should be allocated |
[in] | factor | 1 for 8 bits/pixel format, 2 for 10 bits/pixel, 4 for 32 bits/pixel (RGBA) |
[in] | hw_frame_count | Number of hw descriptors stored |
[in] | is_planar | 0 if semiplanar else planar |
Definition at line 2123 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | alignment | Allignment requirement |
[in] | pixel_format | Format for input |
Definition at line 2393 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | extra_len | Extra data size (incl. meta data) |
Definition at line 8399 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a caller allocated ni_frame_t struct |
[in] | video_width | Width of the video frame |
[in] | video_height | Height of the video frame |
[in] | linesize | Picture line size |
[in] | extra_len | Extra data size (incl. meta data). < 0 means not to allocate any buffer (zero-copy from existing) |
[in] | alignment_2pass_wa | set alignment to work with 2pass encode |
Definition at line 3397 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to caller allocated ni_frame_t |
[in] | pixel_format | a pixel format in ni_pix_fmt_t enum |
[in] | video_width | width, in pixels |
[in] | video_height | height, in pixels |
[in] | linesize | horizontal stride |
[in] | alignment | apply a 16 pixel height alignment (T408 only) |
[in] | extra_len | meta data size |
Definition at line 9252 of file ni_device_api.c.
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.
[in] | p_frame | Pointer to a previously allocated ni_frame_t struct |
Definition at line 3561 of file ni_device_api.c.
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.
[in/out] | frame a frame from which the auxiliary data should be removed | |
[in] | type | type of the auxiliary data to be removed |
Definition at line 4089 of file ni_device_api.c.
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.
[in] | frame | a frame from which the auxiliary data should be retrieved |
[in] | type | type of the auxiliary data to be retrieved |
Definition at line 4066 of file ni_device_api.c.
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.
[in/out] | frame a frame to which the auxiliary data should be added | |
[in] | type | type of the added auxiliary data |
[in] | data_size | size of the added auxiliary data |
Definition at line 4005 of file ni_device_api.c.
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.
[in/out] | frame a frame to which the auxiliary data should be added | |
[in] | type | type of the added auxiliary data |
[in] | raw_data | the raw data of the aux data |
[in] | data_size | size of the added auxiliary data |
Definition at line 4045 of file ni_device_api.c.
LIB_API void ni_frame_wipe_aux_data | ( | ni_frame_t * | frame | ) |
Free and remove all auxiliary data from the frame.
[in/out] | frame a frame from which the auxiliary data should be removed |
Definition at line 4115 of file ni_device_api.c.
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.
[in] | p_frame | pointer to a P2P frame |
[in] | p_frame | pointer to a P2P frame |
Definition at line 11283 of file ni_device_api.c.
LIB_API bool ni_gop_params_check | ( | ni_xcoder_params_t * | p_param | ) |
Check custom gop params set.
[in] | p_param | Pointer to a caller allocated ni_xcoder_params_t struct |
on failure false
Definition at line 12749 of file ni_device_api.c.
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.
[in] | p_param | Pointer to a caller allocated ni_xcoder_params_t struct |
[in] | value | Pointer to a caller allocated custom gop name |
Definition at line 12614 of file ni_device_api.c.
LIB_API ni_retcode_t ni_hwframe_buffer_recycle | ( | niFrameSurface1_t * | surface, |
int32_t | device_handle | ||
) |
Recycle a hwframe buffer on card.
[in] | surface | Struct containing device and frame location to clear out |
[in] | device_handle | handle to access device memory buffer is stored in |
Recycle a hwframe buffer on card.
[in] | surface | Struct containing device and frame location to clear out |
[in] | device_handle | handle to access device memory buffer is stored in |
Definition at line 8487 of file ni_device_api.c.
LIB_API ni_retcode_t ni_hwframe_buffer_recycle2 | ( | niFrameSurface1_t * | surface | ) |
Recycle a hwframe buffer on card.
[in] | surface | Struct containing device and frame location to clear out |
Recycle a hwframe buffer on card.
[in] | surface | Struct containing device and frame location to clear out |
Definition at line 8517 of file ni_device_api.c.
LIB_API ni_retcode_t ni_hwframe_p2p_buffer_recycle | ( | ni_frame_t * | p_frame | ) |
Recycle hw P2P frames.
[in] | p_frame | pointer to an acquired P2P hw frame |
on failure NI_RETCODE_INVALID_PARAM
Definition at line 10996 of file ni_device_api.c.
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)
[in] | pSession | Pointer to destination upload session |
[in] | dmaAddrs | Pointer to source DMA addresses |
[in] | pDstFrame | Pointer to destination P2P frame |
Definition at line 12866 of file ni_device_api.c.
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)
[in] | pSession | Pointer to source card destination |
[in] | source | Pointer to source frame to transmit |
[in] | ui64DestAddr | Destination address on target device |
[in] | ui32FrameSize | Size of frame to transfer |
Initiate P2P transfer to another device (P2P write)
[in] | pSession | Pointer to source card destination |
[in] | source | Pointer to source frame to transmit |
[in] | ui64DestAddr | Destination address on target device |
[in] | ui32FrameSize | Size of frame to transfer |
Definition at line 12822 of file ni_device_api.c.
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)
[in] | pSession | Pointer to source card destination |
[in] | source | Pointer to source frame to transmit |
[in] | ui64DestAddr | Destination address on target device |
[in] | ui32FrameSize | Size of frame to transfer |
Definition at line 12791 of file ni_device_api.c.
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.
[in] | p_packet | Pointer to a caller allocated ni_packet_t struct |
[in] | packet_size | Required allocation size |
Definition at line 3713 of file ni_device_api.c.
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.
[in] | p_packet | Pointer to a previously allocated ni_packet_t struct |
Definition at line 3843 of file ni_device_api.c.
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.
[in] | p_packet | Pointer to a previously allocated ni_packet_t struct |
Definition at line 3884 of file ni_device_api.c.
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.
[in] | p_destination | Destination to where to copy to |
[in] | p_source | Source from where to copy from |
[in] | cur_size | current size |
[out] | p_leftover | Pointer to the data that was left over |
[out] | p_prev_size | Size of the data leftover |
[in] | p_destination | Destination to where to copy to |
[in] | p_source | Source from where to copy from |
[in] | cur_size | current size |
[out] | p_leftover | Pointer to the data that was left over |
[out] | p_prev_size | Size of the data leftover ?? |
Definition at line 3936 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open() |
[in] | p_dev_extra_info | Pointer to device extra info |
[in] | fw_rev[] | Fw version to check if this function is supported |
Definition at line 11617 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open() |
[in] | device_info |
Definition at line 11385 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to a caller allocated ni_session_context_t struct |
[in] | p_load_query | Pointer to a caller allocated ni_load_query_t struct |
Definition at line 11447 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open() |
[in] | p_dev_temp | Pointer to device temperature |
[in] | fw_rev[] | Fw version to check if this function is supported |
Definition at line 11562 of file ni_device_api.c.
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.
[in] | device_handle | Device handle obtained by calling ni_device_open() |
[in] | p_dev_ns_vf | Pointer to a ni_device_vf_ns_id_t struct |
[in] | fw_rev[] | Fw version to check if this function is supported |
Definition at line 11509 of file ni_device_api.c.
LIB_API ni_retcode_t ni_reconfig_bitrate | ( | ni_session_context_t * | p_ctx, |
int32_t | bitrate | ||
) |
Reconfigure bitrate dynamically during encoding.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | bitrate | Target bitrate to set |
Definition at line 9869 of file ni_device_api.c.
LIB_API ni_retcode_t ni_reconfig_crf | ( | ni_session_context_t * | p_ctx, |
int32_t | crf | ||
) |
Reconfigure crf value dynamically during encoding.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | crf | crf value to reconfigure |
Definition at line 10301 of file ni_device_api.c.
LIB_API ni_retcode_t ni_reconfig_crf2 | ( | ni_session_context_t * | p_ctx, |
float | crf | ||
) |
Reconfigure crf float point value dynamically during encoding.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | crf | crf float point value to reconfigure |
Definition at line 10358 of file ni_device_api.c.
LIB_API ni_retcode_t ni_reconfig_framerate | ( | ni_session_context_t * | p_ctx, |
ni_framerate_t * | framerate | ||
) |
Reconfigure framerate dynamically during encoding.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | framerate | Pointer to struct specifying framerate to set |
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | framerate | Target framerate to set |
Definition at line 10107 of file ni_device_api.c.
LIB_API ni_retcode_t ni_reconfig_intraprd | ( | ni_session_context_t * | p_ctx, |
int32_t | intra_period | ||
) |
Reconfigure intraPeriod dynamically during encoding.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | intra_period | Target intra period to set |
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.
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.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | max_frame_size | the new maxFrameSize value |
NOTE - maxFrameSize_Bytes value less than ((bitrate / 8) / framerate) will be rejected
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | max_frame_size | maxFrameSize to set |
NOTE - maxFrameSize_Bytes value less than ((bitrate / 8) / framerate) will be rejected
Definition at line 10176 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | max_frame_size_ratio | the new maxFrameSizeRatio value |
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | max_frame_size_ratio | maxFrameSizeRatio to set |
Definition at line 10468 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | ni_rc_min_max_qp | Target min&max qp to set |
Definition at line 10251 of file ni_device_api.c.
LIB_API ni_retcode_t ni_reconfig_slice_arg | ( | ni_session_context_t * | p_ctx, |
int16_t | sliceArg | ||
) |
Reconfigure sliceArg dynamically during encoding.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | sliceArg | the new sliceArg value |
Definition at line 10541 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | vbvBufferSize | Target vbvBufferSize to set |
[in] | vbvMaxRate | Target vbvMaxRate to set |
Definition at line 10418 of file ni_device_api.c.
LIB_API ni_retcode_t ni_reconfig_vui | ( | ni_session_context_t * | p_ctx, |
ni_vui_hrd_t * | vui | ||
) |
Reconfigure VUI dynamically during encoding.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | bitrate | Target bitrate to set |
Reconfigure VUI dynamically during encoding.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | bitrate | Target bitrate to set |
Definition at line 9945 of file ni_device_api.c.
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
<br> |
Definition at line 3298 of file ni_device_api.c.
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
<br> |
Definition at line 3355 of file ni_device_api.c.
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
<br> |
Definition at line 3333 of file ni_device_api.c.
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.
[in] | p_ctx | pointer to caller allocated upload context [in] p_surface pointer to a caller allocated hardware frame [in] data_len scaler frame buffer data length |
on failure NI_RETCODE_FAILURE
Definition at line 11029 of file ni_device_api.c.
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.
ni_session_context_t | p_ctx - xcoder Context |
ni_scaler_params_t | * params - pointer to the scaler ni_scaler_drawbox params_t struct |
Definition at line 8701 of file ni_device_api.c.
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.
[in] | p_ctx | pointer to session context |
[in] | p_params | pointer to the scaler parameters |
[in] | p_ctx | pointer to session context |
[in] | p_params | pointer to scaler parameters |
Definition at line 8671 of file ni_device_api.c.
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.
ni_session_context_t | p_ctx - xcoder Context |
ni_scaler_params_t | * params - pointer to the scaler ni_scaler_watermark_params_t struct |
Definition at line 8781 of file ni_device_api.c.
LIB_API ni_retcode_t ni_set_demo_roi_map | ( | ni_session_context_t * | p_enc_ctx | ) |
Set up hard coded demo ROI map.
[in] | p_enc_ctx | Pointer to a caller allocated |
on failure NI_RETCODE_ERROR_MEM_ALOC
Definition at line 11751 of file ni_device_api.c.
LIB_API ni_retcode_t ni_set_frame_ref_invalid | ( | ni_session_context_t * | p_ctx, |
int32_t | frame_num | ||
) |
Set frame reference invalidation.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | frame_num | frame number after which all references shall be invalidated |
Definition at line 10082 of file ni_device_api.c.
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.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | ltr | Pointer to struct specifying LTR support |
Definition at line 10026 of file ni_device_api.c.
LIB_API ni_retcode_t ni_set_ltr_interval | ( | ni_session_context_t * | p_ctx, |
int32_t | ltr_interval | ||
) |
Set Long Term Reference interval.
[in] | p_ctx | Pointer to caller allocated ni_session_context_t |
[in] | ltr_interval | the new long term reference inteval value |
Definition at line 10054 of file ni_device_api.c.
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.
[in] | p_upl_ctx | pointer to caller allocated upload context [in] p_frame pointer to caller allocated hardware P2P frame |
Definition at line 10763 of file ni_device_api.c.
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.
[in] | p_upl_ctx | pointer to caller allocated upload context [in] p_frame pointer to caller allocated hardware P2P frame |
Definition at line 10821 of file ni_device_api.c.
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.
[in] | p_upl_ctx | pointer to uploader context [in] width input width [in] height input height [in] linesize input linesizes (pointer to array) [in] pixel_format input pixel format |
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.
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.
[in] | p_upl_ctx | pointer 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 |
Definition at line 10924 of file ni_device_api.c.
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.
[in] | p_upl_ctx | pointer 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 |
Special P2P test API call. Copies YUV data from the software frame to the hardware P2P frame on the Quadra device.
[in] | p_upl_ctx | pointer 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 |
Definition at line 10869 of file ni_device_api.c.
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.
[in] | p_upl_ctx | pointer to uploader context [in] width width [in] height height [in] pixel_format pixel format [in] isP2P 0 = normal, 1 = P2P |
on failure NI_RETCODE_INVALID_PARAM
Set the frame format for the uploader.
[in] | p_upl_ctx | pointer to uploader context [in] width width [in] height height [in] pixel_format pixel format [in] isP2P 0 = normal, 1 = P2P |
on failure NI_RETCODE_INVALID_PARAM
Definition at line 11171 of file ni_device_api.c.
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.
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.