K230 SDK API Reference#
- K230 Inter-Core Communication API Reference
- 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 Types
- 4. Error Codes
- 5. Debug Information
- K230 System Control MAPI Reference
- K230 Multimedia Middleware API Reference
- K230 DMA API Reference
- Preface
- 1. Overview
- 2. API Reference
- 2.1 DMA Usage
- 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 Usage
- 3 Data Types
- 4. Error Codes
- 5. Debug Information
- 6. Demo Description
- K230 DPU API Reference
- 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 Types
- 3.1 public 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
- Translation
- 3.2 Long and Short Cycle Parameter Types
- 3.1 public data types
- 4. Error Codes
- 5. Debug Information
- 6. Demo Description
- K230 FFT API Reference
- K230 GPU API Reference
- 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 Composition and Blending
- 3.5 Vector Path Control
- 3.6 Vector-Based Drawing Operations
- 4. Constraints
- 5. Performance Tips and Best Practices
- 6. Examples
- K230 SHA256 API Reference
- K230 VICAP API Reference
- 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.1.12 kd_mpi_vicap_set_vi_drop_frame
- 2.1.13 kd_mpi_vicap_set_mclk
- 2.1.14 kd_mpi_vicap_set_dump_reserved
- 2.1.15 kd_mpi_vicap_set_slave_enable
- 2.1.16 kd_mpi_vicap_set_slave_attr
- 2.1.17 kd_mpi_vicap_3d_mode_crtl
- 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.2.17 kd_mpi_sensor_otpdata_get
- 2.2.18 kd_mpi_sensor_otpdata_set
- 2.1 VICAP
- 3. Data Types
- 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.1.16 k_vicap_mirror
- 3.2 Sensor
- 3.2.1 k_sensor_bayer_pattern
- 3.2.2 k_sensor_exp_frame_type
- 3.2.3 k_sensor_exposure_param
- 3.2.4 k_sensor_intg_time
- 3.2.5 k_sensor_gain
- 3.2.6 k_sensor_size
- 3.2.7 k_sensor_ae_info
- 3.2.8 k_sensor_mode
- 3.2.9 k_sensor_otp_date
- 4. MAPI
- 4.1 API
- 4.1.1 kd_mapi_vicap_get_sensor_fd
- 4.1.2 kd_mapi_vicap_get_sensor_info
- 4.1.3 kd_mapi_vicap_set_dev_attr
- 4.1.4 kd_mapi_vicap_set_chn_attr
- 4.1.5 kd_mapi_vicap_start
- 4.1.6 kd_mapi_vicap_stop
- 4.1.7 kd_mapi_vicap_dump_frame
- 4.1.8 kd_mapi_vicap_release_frame
- 4.1.9 kd_mapi_vicap_set_vi_drop_frame
- 4.1.10 kd_mapi_vicap_set_mclk
- 4.1.11 kd_mapi_vicap_tuning
- 4.1.12 kd_mapi_isp_ae_get_roi
- 4.1.13 kd_mapi_isp_ae_set_roi
- 4.1.14 kd_mapi_sensor_otpdata_get
- 4.1 API
- 5. Error Codes
- 6. Debug Information
- K230 VICAP SENSOR Parameter Partition Reference
- K230 System Control API Reference
- 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 Types
- 3.1 Common Data Types
- 3.2 Multimedia Memory Management
- 3.3 Common Video 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_field
- 3.3.14 k_pixel_format
- 3.4 Multimedia Log Management
- 4. Error Codes
- 5. Debug Information
- K230 Video Encoding and Decoding API Reference
- Preface
- 1. Overview
- 2. API Reference
- 2.1 Video Encoding
- 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_rotation
- 2.1.10 kd_mpi_venc_get_rotation
- 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 Encoding
- 3. Data Types
- 3.1 Video Encoding
- 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 Encoding
- 4. MAPI
- 4.1 Video Encoding
- 4.1.1 Overview
- 4.1.2 Encoding 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 Encoding
- 5. Error Codes
- 6. Debug Information
- K230 Video Output API Reference
- Preface
- 1. Overview
- 2. API Reference
- 2.1 TXPHY
- 2.1.1 kd_mpi_set_mipi_phy_attr
- 2.2 DSI
- 2.3 VO
- 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
- 2.3.23 kd_mpi_connector_get_negotiated_data
- 2.3.24 kd_mpi_connector_adapt_resolution
- 2.3.25 kd_mpi_connector_set_mirror
- 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.26 k_connector_negotiated_data
- 3.1.27 k_connector_mirror
- 4. Error Codes
- K230 Audio API Reference
- Preface
- 1. Overview
- 2. API Reference
- 2.1 Audio Input
- 2.1.2 kd_mpi_ai_get_pub_attr
- 2.1.3 kd_mpi_ai_enable
- 2.1.4 kd_mpi_ai_disable
- 2.1.5 kd_mpi_ai_enable_chn
- 2.1.6 kd_mpi_ai_disable_chn
- 2.1.7 kd_mpi_ai_get_frame
- 2.1.8 kd_mpi_ai_release_frame
- 2.2 Audio Output
- 2.2.1 kd_mpi_ao_set_pub_attr
- 2.2.2 kd_mpi_ao_get_pub_attr
- 2.2.3 kd_mpi_ao_enable
- 2.2.4 kd_mpi_ao_disable
- 2.2.5 kd_mpi_ao_enable_chn
- 2.3 Audio Encoding
- 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 Encoding 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 Types
- K230_DRM_API_Reference
- K230 Big core low-speed driver API reference
- 1 Overview
- 2. API Reference
- 3. Data Type
- 4. Error codes
- 5. Calculation formula
- K230 little core Linux driver API reference
- 1 Overview
- 2 Usage reference