Sigmastar Sdk [top]
一个典型的Alkaid SDK工程包含以下关键目录:
However, unlocking the full hardware potential of these chips requires a deep, practical understanding of the . This article provides an architectural deep dive, environment setup guide, and core development workflows for engineering teams working with SigmaStar silicon. 1. Architectural Overview of the SigmaStar SDK
MI_VENC_ChnAttr_t stVencAttr; memset(&stVencAttr, 0, sizeof(stVencAttr)); stVencAttr.stVeAttr.eType = E_MI_VENC_MODTYPE_H265; stVencAttr.stRcAttr.eRcMode = E_MI_VENC_RC_MODE_H265_CBR; stVencAttr.stRcAttr.stAttrH265Cbr.u32BitRate = 2048; // 2 Mbps stVencAttr.stVeAttr.stAttrH265.u32MaxPicWidth = 1920; stVencAttr.stVeAttr.stAttrH265.u32MaxPicHeight = 1080; MI_VENC_CreateChn(vencChnId, &stVencAttr); MI_VENC_StartRecvPic(vencChnId); Use code with caution. Step 4: Binding Modules via MI_SYS sigmastar sdk
Run the configuration script to select your specific chip variant, sensor model (e.g., Sony IMX307, GalaxyCore GC2053), and flash memory type (SPI Nor or SPI Nand).
Typically based on LTS (Long Term Support) versions like 4.9 or 5.10, heavily patched with proprietary drivers for memory management and hardware blocks. stVencAttr.stVeAttr.eType = E_MI_VENC_MODTYPE_H265
这种分工使得系统能够在保持功能丰富的Linux生态的同时,获得微秒级别的确定性低延迟。两个核心之间通过共享内存区域进行高效数据交换,规避了内核到用户态的重复拷贝,从而大幅提升了流水线整体效率。
The SDK is designed in a layered architecture to maximize efficiency, separating application logic from low-level hardware control. Key components found in SigmaStar SDKs include: 1. Multimedia Subsystem (MI - Media Interface) stVencAttr.stRcAttr.eRcMode = E_MI_VENC_RC_MODE_H265_CBR
With the pipeline bound, your application code runs in a loop inside a dedicated thread to poll the VENC module, pull compressed H.265/H.264 packets out of the hardware queue, and push them to a file or network stream.
在典型的人形检测相机项目中,开发者只需在训练好的YOLO或MobileNet模型上运行Convert Tool,配合Simulator在PC端验证精度达标后,通过Compiler生成离线指令文件,再调用MI_IPU模块加载这些文件并注入图像数据,即可在SigmaStar硬件上获得高达每秒数十次推理的性能(具体性能取决于芯片型号)。
Execute the setup script to choose your specific chip and reference board layout (e.g., alkaid_ssd202_demoboard_defconfig ). make alkaid_ssd202_demoboard_defconfig Use code with caution.