K230 SDK API Reference#
- K230 Intercore Communication API Reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1. Overview
- 2. API Reference
- 2.1 IPCMSG
- 2.1.1 kd_ipcmsg_add_service
- 2.1.2 kd_ipcmsg_del_service
- 2.1.3 kd_ipcmsg_try_connect
- 2.1.4 kd_ipcmsg_connect
- 2.1.5 kd_ipcmsg_disconnect
- 2.1.6 kd_ipcmsg_is_connect
- 2.1.7 kd_ipcmsg_send_only
- 2.1.8 kd_ipcmsg_send_async
- 2.1.9 kd_ipcmsg_send_sync
- 2.1.10 kd_ipcmsg_run
- 2.1.11 kd_ipcmsg_create_message
- 2.1.12 kd_ipcmsg_create_resp_message
- 2.1.13 kd_ipcmsg_destroy_message
- 2.2 DATAFIFO
- 2.1 IPCMSG
- 3. Data Type
- 4. Error codes
- 5. Debugging information
- K230 System Control MAPI Reference
- K230 MultimediaMiddleware API Reference
- K230 DMA API reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1. Overview
- 2. API Reference
- 2.1 DMA Use
- 2.1.1 kd_mpi_dma_set_dev_attr
- 2.1.2 kd_mpi_dma_get_dev_attr
- 2.1.3 kd_mpi_dma_start_dev
- 2.1.4 kd_mpi_dma_stop_dev
- 2.1.5 kd_mpi_dma_set_chn_attr
- 2.1.6 kd_mpi_dma_get_chn_attr
- 2.1.7 kd_mpi_dma_start_chn
- 2.1.8 kd_mpi_dma_stop_chn
- 2.1.9 kd_mpi_dma_send_frame
- 2.1.10 kd_mpi_dma_get_frame
- 2.1.11 kd_mpi_dma_release_frame
- 2.1 DMA Use
- 3 Data type
- 4. Error codes
- 5. Debugging information
- 6. Demo description
- K230 DPU API reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1. Overview
- 2. API Reference
- 2.1 DPU usage
- 2.1.1 kd_mpi_dpu_init
- 2.1.2 kd_mpi_dpu_delete
- 2.1.3 kd_mpi_dpu_parse_file
- 2.1.4 kd_mpi_dpu_set_dev_attr
- 2.1.5 kd_mpi_dpu_get_dev_attr
- 2.1.6 kd_mpi_dpu_set_ref_image
- 2.1.7 kd_mpi_dpu_set_processed_ref_image
- 2.1.8 kd_mpi_dpu_set_template_image
- 2.1.9 kd_mpi_dpu_start_dev
- 2.1.10 kd_mpi_dpu_set_chn_attr
- 2.1.11 kd_mpi_dpu_get_chn_attr
- 2.1.12 kd_mpi_dpu_start_chn
- 2.1.13 kd_mpi_dpu_stop_chn
- 2.1.14 kd_mpi_dpu_send_frame
- 2.1.15 kd_mpi_dpu_get_frame
- 2.1.16 kd_mpi_dpu_release_frame
- 2.1 DPU usage
- 3. Data Type
- 3.1 Common Data Types
- 3.1.1 k_dpu_init_t
- 3.1.2 k_dpu_dev_param_t
- 3.1.3 k_dpu_lcn_param_t
- 3.1.4 k_dpu_ir_param_t
- 3.1.5 k_dpu_user_space_t
- 3.1.6 k_dpu_dev_attr_t
- 3.1.7 k_dpu_chn_lcn_attr_t
- 3.1.8 k_dpu_chn_ir_attr_t
- 3.1.9 k_dpu_chn_result_u
- 3.1.10 k_dpu_chn_lcn_result_t
- 3.1.11 k_dpu_chn_ir_result_t
- 3.1.12 k_dpu_disp_out_t
- 3.1.13 k_dpu_depth_out_t
- 3.1.14 k_dpu_ir_out_t
- 3.1.15 k_dpu_qlt_out_t
- 3.2 Long and short period parameter types
- 3.1 Common Data Types
- 4. Error codes
- 5. Debugging information
- 6. Demo description
- K230 FFT API Reference
- K230 GPU API reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1. Function introduction
- 2. Data flow
- 3. Software Interface
- 3.1 Main Types and Definitions
- 3.2 GPU control
- 3.3 Matrix
- 3.4 BLITs for synthesis and mixing
- 3.5 Vector Path Control
- 3.6 Vector-based drawing operations
- 4. Constraints
- 5. Performance recommendations and best practices
- 6. Examples
- K230 SHA256 API Reference
- K230 VICAP API Reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1. Overview
- 2. API Reference
- 2.1 VICAP
- 2.1.1 kd_mpi_vicap_get_sensor_info
- 2.1.2 kd_mpi_vicap_set_dev_attr
- 2.1.3 kd_mpi_vicap_get_dev_attr
- 2.1.4 kd_mpi_vicap_set_chn_attr
- 2.1.5 kd_mpi_vicap_get_chn_attr
- 2.1.6 kd_mpi_vicap_init
- 2.1.7 kd_mpi_vicap_deinit
- 2.1.8 kd_mpi_vicap_start_stream
- 2.1.9 kd_mpi_vicap_stop_stream
- 2.1.10 kd_mpi_vicap_dump_frame
- 2.1.11 kd_mpi_vicap_dump_release
- 2.2 Sensor
- 2.2.1 kd_mpi_sensor_open
- 2.2.2 kd_mpi_sensor_close
- 2.2.3 kd_mpi_sensor_power_set
- 2.2.4 kd_mpi_sensor_id_get
- 2.2.5 kd_mpi_sensor_init
- 2.2.6 kd_mpi_sensor_reg_read
- 2.2.7 kd_mpi_sensor_reg_write
- 2.2.8 kd_mpi_sensor_mode_get
- 2.2.9 kd_mpi_sensor_mode_set
- 2.2.10 kd_mpi_sensor_stream_enable
- 2.2.11 kd_mpi_sensor_again_set
- 2.2.12 kd_mpi_sensor_again_get
- 2.2.13 kd_mpi_sensor_dgain_set
- 2.2.14 kd_mpi_sensor_dgain_get
- 2.2.15 kd_mpi_sensor_intg_time_set
- 2.2.16 kd_mpi_sensor_intg_time_get
- 2.1 VICAP
- 3. Data Type
- 3.1 VICAP
- 3.1.1 k_vicap_sensor_type
- 3.1.2 k_vicap_dev
- 3.1.3 k_vicap_chn
- 3.1.4 k_vicap_csi_num
- 3.1.5 k_vicap_mipi_lanes
- 3.1.6 k_vicap_csi_data_type
- 3.1.7 k_vicap_data_source
- 3.1.8 k_vicap_vi_dvp_port
- 3.1.9 k_vicap_vi_flash_mode
- 3.1.10 k_vicap_img_window
- 3.1.11 k_vicap_work_mode
- 3.1.12 k_vicap_sensor_info
- 3.1.13 k_vicap_dump_format
- 3.1.14 k_vicap_dev_attr
- 3.1.15 k_vicap_chn_attr
- 3.2 Sensor
- 3.1 VICAP
- 4. Error codes
- 5. Debugging information
- K230 System Control API Reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1. Overview
- 2. API Reference
- 2.1 Multimedia memory management
- 2.1.1 kd_mpi_sys_mmz_alloc
- 2.1.2 kd_mpi_sys_mmz_alloc_cached
- 2.1.3 kd_mpi_sys_mmap
- 2.1.4 kd_mpi_sys_mmap_cached
- 2.1.5 kd_mpi_sys_munmap
- 2.1.6 kd_mpi_sys_mmz_flush_cache
- 2.1.7 kd_mpi_sys_mmz_free
- 2.1.8 kd_mpi_sys_get_virmem_info
- 2.1.9 kd_mpi_vb_set_config
- 2.1.10 kd_mpi_vb_get_config
- 2.1.11 kd_mpi_vb_init
- 2.1.12 kd_mpi_vb_exit
- 2.1.13 kd_mpi_vb_create_pool
- 2.1.14 kd_mpi_vb_destory_pool
- 2.1.15 kd_mpi_vb_get_block
- 2.1.16 kd_mpi_vb_release_block
- 2.1.17 kd_mpi_vb_phyaddr_to_handle
- 2.1.18 kd_mpi_vb_handle_to_phyaddr
- 2.1.19 kd_mpi_vb_handle_to_pool_id
- 2.1.20 kd_mpi_vb_inquire_user_cnt
- 2.1.21 kd_mpi_vb_get_supplement_attr
- 2.1.22 kd_mpi_vb_set_supplement_config
- 2.1.23 kd_mpi_vb_get_supplement_config
- 2.1.24 kd_mpi_vb_set_mod_pool_config
- 2.1.25 kd_mpi_vb_get_mod_pool_config
- 2.1.26 kd_mpi_vb_init_mod_common_pool
- 2.1.27 kd_mpi_vb_exit_mod_common_pool
- 2.2 System Binding
- 2.3 Log Management
- 2.1 Multimedia memory management
- 3. Data Type
- 3.1 Common Data Types
- 3.2 Multimedia memory management
- 3.3 Video Common Data Types
- 3.3.1 k_video_frame_info
- 3.3.2 k_video_frame
- 3.3.3 k_video_supplement
- 3.3.4 k_isp_frame_info
- 3.3.5 k_jpeg_dcf
- 3.3.6 k_isp_dcf_info
- 3.3.7 k_isp_dcf_update_info
- 3.3.8 k_isp_dcf_const_info
- 3.3.9 k_compress_mode
- 3.3.10 k_color_gamut
- 3.3.11 k_dynamic_range
- 3.3.12 k_video_format
- 3.3.13 k_video_filed
- 3.3.14 k_pixel_format
- 3.4 Multimedia Log Management
- 4. Error codes
- 5. Debugging information
- K230 video codec API reference
- Disclaimer
- Trademark Notice
- contents
- Preface
- 1. Overview
- 2. API Reference
- 2.1 Video Coding
- 2.1.1 kd_mpi_venc_create_chn
- 2.1.2 kd_mpi_venc_destory_chn
- 2.1.3 kd_mpi_venc_start_chn
- 2.1.4 kd_mpi_venc_stop_chn
- 2.1.5 kd_mpi_venc_query_status
- 2.1.6 kd_mpi_venc_get_stream
- 2.1.7 kd_mpi_venc_release_stream
- 2.1.8 kd_mpi_venc_send_frame
- 2.1.9 kd_mpi_venc_set_rotaion
- 2.1.10 kd_mpi_venc_get_rotaion
- 2.1.11 kd_mpi_venc_set_mirror
- 2.1.12 kd_mpi_venc_get_mirror
- 2.1.13 kd_mpi_venc_enable_idr
- 2.1.14 kd_mpi_venc_set_2d_mode
- 2.1.15 kd_mpi_venc_get_2d_mode
- 2.1.16 kd_mpi_venc_set_2d_osd_param
- 2.1.17 kd_mpi_venc_get_2d_osd_param
- 2.1.18 kd_mpi_venc_set_2d_border_param
- 2.1.19 kd_mpi_venc_get_2d_border_param
- 2.1.20 kd_mpi_venc_set_2d_custom_coef
- 2.1.21 kd_mpi_venc_get_2d_custom_coef
- 2.1.22 kd_mpi_venc_set_2d_color_gamut
- 2.1.23 kd_mpi_venc_get_2d_color_gamut
- 2.1.24 kd_mpi_venc_attach_2d
- 2.1.25 kd_mpi_venc_detach_2d
- 2.1.26 kd_mpi_venc_send_2d_frame
- 2.1.27 kd_mpi_venc_get_2d_frame
- 2.1.28 kd_mpi_venc_start_2d_chn
- 2.1.29 kd_mpi_venc_stop_2d_chn
- 2.1.30 kd_mpi_venc_request_idr
- 2.1.31 kd_mpi_venc_set_h265_sao
- 2.1.32 kd_mpi_venc_get_h265_sao
- 2.1.33 kd_mpi_venc_set_dblk
- 2.1.34 kd_mpi_venc_get_dblk
- 2.1.35 kd_mpi_venc_set_roi_attr
- 2.1.36 kd_mpi_venc_get_roi_attr
- 2.1.37 kd_mpi_venc_set_h264_entropy
- 2.1.38 kd_mpi_venc_get_h264_entropy
- 2.1.39 kd_mpi_venc_set_h265_entropy
- 2.1.40 kd_mpi_venc_get_h265_entropy
- 2.2 Video Decoding
- 2.1 Video Coding
- 3. Data Type
- 3.1 Video Coding
- 3.1.1 VENC_MAX_CHN_NUM
- 3.1.2 K_VENC_MAX_2D_OSD_REGION_NUM
- 3.1.3 K_VENC_MAX_2D_BORDER_NUM
- 3.1.4 K_VENC_2D_COFF_NUM
- 3.1.5 K_VENC_2D_MAX_CHN_NUM
- 3.1.6 k_venc_rc_mode
- 3.1.7 k_venc_pack_type
- 3.1.8 k_venc_2d_calc_mode
- 3.1.9 k_venc_2d_src_dst_fmt
- 3.1.10 k_venc_2d_osd_fmt
- 3.1.11 k_venc_2d_add_order
- 3.1.12 k_rotation
- 3.1.13 k_venc_mirror
- 3.1.14 k_venc_2d_color_gamut
- 3.1.15 k_venc_chn_attr
- 3.1.16 k_venc_attr
- 3.1.17 k_venc_rc_attr
- 3.1.18 k_venc_cbr
- 3.1.19 k_venc_vbr
- 3.1.20 k_venc_fixqp
- 3.1.21 k_venc_mjpeg_fixqp
- 3.1.22 k_venc_chn_status
- 3.1.23 k_venc_stream
- 3.1.24 k_venc_pack
- 3.1.25 k_venc_2d_osd_attr
- 3.1.26 k_venc_2d_border_attr
- 3.1.27 k_venc_h265_sao
- 3.1.28 k_venc_rect
- 3.1.29 k_venc_roi_attr
- 3.1.30 k_venc_h264_entropy
- 3.1.31 k_venc_h265_entropy
- 3.2 Video Decoding
- 3.1 Video Coding
- 4. MAPI
- 4.1 Video Coding
- 4.1.1 Overview
- 4.1.2 Encoded data flow diagram
- 4.1.3 API
- 4.1.3.1 kd_mapi_venc_init
- 4.1.3.2 kd_mapi_venc_deinit
- 4.1.3.3 kd_mapi_venc_registercallback
- 4.1.3.4 kd_mapi_venc_unregistercallback
- 4.1.3.5 kd_mapi_venc_start
- 4.1.3.6 kd_mapi_venc_stop
- 4.1.3.7 kd_mapi_venc_bind_vi
- 4.1.3.8 kd_mapi_venc_unbind_vi
- 4.1.3.9 kd_mapi_venc_request_idr
- 4.1.3.10 kd_mapi_venc_enable_idr
- 4.1.4 Data Types
- 4.2 Video Decoding
- 4.1 Video Coding
- 5. error codes
- 6. Debugging information
- K230 Video Output API Reference
- Disclaimer
- Trademark Notice
- Directory
- Preface
- 1. Overview
- 2. API Reference
- 2.1 TXPHY
- 2.2 CIO
- 2.3 VO
- 2.3.1 kd_mpi_vo_init
- 2.3.2 kd_mpi_vo_set_dev_param
- 2.3.3 kd_mpi_vo_enable_video_layer
- 2.3.4 kd_mpi_vo_disable_video_layer
- 2.3.5 kd_mpi_vo_enable
- 2.3.6 kd_mpi_vo_chn_insert_frame
- 2.3.7 kd_mpi_vo_chn_dump_frame
- 2.3.8 kd_mpi_vo_chn_dump_release
- 2.3.9 kd_mpi_vo_osd_enable
- 2.3.10 kd_mpi_vo_osd_disable
- 2.3.11 kd_mpi_vo_set_video_osd_attr
- 2.3.12 kd_mpi_vo_set_wbc_attr
- 2.3.13 kd_mpi_vo_enable_wbc
- 2.3.14 kd_mpi_vo_disable_wbc
- 2.3.15 kd_display_reset
- 2.3.16 kd_display_set_backlight
- 2.3.17 kd_mpi_vo_set_user_sync_info
- 2.3.18 kd_mpi_vo_draw_frame
- 2.3.19 kd_mpi_get_connector_info
- 2.3.20 kd_mpi_connector_open
- 2.3.21 kd_mpi_connector_power_set
- 2.3.22 kd_mpi_connector_init
- 3. Data Type
- 3.1 VO
- 3.1.1 k_vo_intf_sync
- 3.1.2 k_vo_intf_type
- 3.1.3 k_pixel_format
- 3.1.4 k_vo_osd
- 3.1.5 k_vo_layer
- 3.1.6 k_vo_rotation
- 3.1.7 k_vo_mirror_mode
- 3.1.8 k_vo_user_sync_info
- 3.1.9 k_vo_point
- 3.1.10 k_vo_size
- 3.1.11 k_vo_video_layer_attr
- 3.1.12 k_vo_wbc_attr
- 3.1.13 k_vo_pub_attr
- 3.1.14 k_vo_scaler_attr
- 3.1.15 k_vo_draw_frame
- 3.1.16 k_vo_display_resolution
- 3.1.17 k_vo_mipi_phy_attr
- 3.1.18 k_vo_video_osd_attr
- 3.1.19 k_video_frame_info
- 3.1.20 k_connector_type
- 3.1.21 k_dsi_lan_num
- 3.1.22 k_dsi_work_mode
- 3.1.23 k_vo_dsi_cmd_mode
- 3.1.24 k_connectori_phy_attr
- 3.1.25 k_connector_info
- 3.1 VO
- 4. Error codes
- K230 Audio API reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1. Overview
- 2. API Reference
- 2.1 Audio input
- 2.2 Audio output
- 2.3 Audio Coding
- 2.4 Audio Decoding
- 2.5 built-in Audio Codec
- 2.5.1 k_acodec_set_gain_micl
- 2.5.2 k_acodec_set_gain_micr
- 2.5.3 k_acodec_set_adcl_volume
- 2.5.4 k_acodec_set_adcr_volume
- 2.5.5 k_acodec_set_alc_gain_micl
- 2.5.6 k_acodec_set_alc_gain_micr
- 2.5.7 k_acodec_set_gain_hpoutl
- 2.5.8 k_acodec_set_gain_hpoutr
- 2.5.9 k_acodec_set_dacl_volume
- 2.5.10 k_acodec_set_dacr_volume
- 2.5.11 k_acodec_set_micl_mute
- 2.5.12 k_acodec_set_micr_mute
- 2.5.13 k_acodec_set_dacl_mute
- 2.5.14 k_acodec_set_dacr_mute
- 2.5.15 k_acodec_get_gain_micl
- 2.5.16 k_acodec_get_gain_micr
- 2.5.18 k_acodec_get_adcl_volume
- 2.5.19 k_acodec_get_adcr_volume
- 2.5.5 k_acodec_get_alc_gain_micl
- 2.5.6 k_acodec_get_alc_gain_micr
- 2.5.7 k_acodec_get_gain_hpoutl
- 2.5.8 k_acodec_get_gain_hpoutr
- 2.5.9 k_acodec_get_dacl_volume
- 2.5.10 k_acodec_get_dacr_volume
- 2.5.10 k_acodec_reset
- 2.6 Audio coding MAPI
- 2.6.1 kd_mapi_aenc_init
- 2.6.2 kd_mapi_aenc_deinit
- 2.6.3 kd_mapi_aenc_start
- 2.6.4 kd_mapi_aenc_stop
- 2.6.5 kd_mapi_aenc_registercallback
- 2.6.6 kd_mapi_aenc_unregistercallback
- 2.6.7 kd_mapi_aenc_bind_ai
- 2.6.8 kd_mapi_aenc_unbind_ai
- 2.6.9 kd_mapi_register_ext_audio_encoder
- 2.6.10 kd_mapi_unregister_ext_audio_encoder
- 2.6.11 kd_mapi_aenc_send_frame
- 2.7 Audio Decoding MAPI
- 2.7.1 kd_mapi_adec_init
- 2.7.2 kd_mapi_adec_deinit
- 2.7.3 kd_mapi_adec_start
- 2.7.4 kd_mapi_adec_stop
- 2.7.5 kd_mapi_adec_registercallback
- 2.7.6 kd_mapi_adec_unregistercallback
- 2.7.7 kd_mapi_adec_bind_ao
- 2.7.8 kd_mapi_adec_unbind_ao
- 2.7.9 kd_mapi_register_ext_audio_decoder
- 2.7.10 kd_mapi_unregister_ext_audio_decoder
- 2.7.11 kd_mapi_adec_send_stream
- 3. Data Type
- 3.1 Audio input and output
- 3.1.1 k_audio_type
- 3.1.2 k_audio_dev
- 3.1.3 k_ai_chn
- 3.1.4 k_ao_chn
- 3.1.5 K_MAX_AUDIO_FRAME_NUM
- 3.1.6 k_audio_bit_width
- 3.1.7 k_audio_snd_mode
- 3.1.8 k_audio_pdm_oversample
- 3.1.9 k_audio_pdm_attr
- 3.1.10 k_audio_i2s_attr
- 3.1.11 k_i2s_work_mode
- 3.1.12 k_aio_dev_attr
- 3.1.13 k_aio_i2s_type
- 3.1.14 k_audio_frame
- 3.1.15 k_audio_anr_cfg
- 3.1.16 k_audio_agc_cfg
- 3.1.17 k_ai_vqe_cfg
- 3.2 Audio codec
- 3.3 MAPI
- 3.1 Audio input and output
- 4. Error codes
- K230_DRM_API_Reference
- K230 Big core low-speed driver API reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1 Overview
- 2. API Reference
- 3. Data Type
- 4. Error codes
- 5. Calculation formula
- K230 little core Linux driver API reference
- Disclaimer
- Trademark Notice
- Directory
- preface
- 1 Overview
- 2 Usage reference