摘要
通过分析目前市场上主流的嵌入式图形库,采用移植第三方图形库MiniGUI,实现STLinux高清机顶盒上的图形用户界面(GUI).在界面的整体规划中,充分考虑到OSD数据与程序逻辑的可分离性,提出了对OSD数据采用XML语言描述;通过移植mini-XML对属性数据文件进行解析,实现了程序数据到代码的重定位.该方法克服了传统界面开发模式中频繁编译调试的缺点,在OSD开发中具有很强的实用性与高效性.
The GUI of the STLinux high-definition set-top box was designed by transplanting MiniGUI, which was based on the analysis of the mainstream embedded graphics library in the market. Considering the segregation between data and code in the OSD system, the OSD data was recorded by XML rules file. And the file was parsed by mini-XML which was transplanted in the OSD system. Then the relocation from data to code was completed. The design overcomes the shortcomings of compiler and debug frequently in the traditional development mode, and has high practicability and efficiency.
出处
《应用科技》
CAS
2011年第1期30-33,共4页
Applied Science and Technology
基金
国家自然科学基金资助项目(50375071)