• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学

• 论文 • 上一篇    下一篇

基于改进三层缓冲技术的大图片处理

冯伟桓,王茂芝,曾颖超   

  1. (成都理工大学数学地质四川省重点实验室,四川 成都 610059)
  • 收稿日期:2016-01-25 修回日期:2016-09-20 出版日期:2018-01-25 发布日期:2018-01-25
  • 基金资助:

    地质矿产调查评价项目(1212011120226);中国地质调查局地质调查子项目(DD2016006809);四川省科技厅重点研发项目(2017GZ0302)

Big image processing based on
improved three level buffers technology

FENG Wei-huan,WANG Mao-zhi,ZENG Ying-chao   

  1. (Geomathematics Key Laboratory of Sichuan Province,Chengdu University of Technology,Chengdu 610059,China)
  • Received:2016-01-25 Revised:2016-09-20 Online:2018-01-25 Published:2018-01-25

摘要:

针对使用传统技术处理和显示大图片在界面重绘时容易造成系统阻塞现象,提出改进三层缓冲技术。该技术在内存中开辟一块与大图片属性相兼容的内存区域,用于载入大图片数据;然后再在内存中开辟另一块与显示设备环境相兼容的内存区域,用于执行其它的图形处理指令;最后通过位块传输法将内存中的图形依次拷贝到真正的显示设备环境输出。输出完成之后仅仅释放与显示设备环境相兼容的内存区域,保留与图片属性相兼容的内存区域,用于界面重绘的时候,避免重新载入图片,从而解决系统阻塞现象。该技术在数字岩心软件系统处理钻孔柱状图中得到验证和应用,取得了良好效果。
 
 

关键词: 三层缓冲技术, 内存位图, 界面重绘

Abstract:

Given the problem of system blocking caused by the traditional technology when processing big images and redrawing user interface, we propose an improved three level buffers technology. Firstly, a memory area compatible with the properties of the big image is allocated to load the big image data. Secondly, another allocated memory area compatible with the display device is used to execute other image processing instructions. Finally, the image data is copied to the real display device by the bit-block-transfer method in sequence. So only the memory area compatible with the display device is released and another memory area can avoid reloading the image when redrawing the user interface. The proposed technology is proved to be effective when processing the big drilling histogram in the digital core system software.
 

Key words: three level buffers technology, memory bitmap, user interface redrawing