赞
踩
linux控制台下显示jpeg图像(JPEG image display Linux console)
linux控制台下显示jpeg图像(JPEG image display Linux console)
JPEG image display 2007-09-19 23:281 introduction in the Linux console
Usually, in the Linux console is unable to view the image file, to view image files, image files such as to view the JPEG format, may have to start X-Windows, the image provided by the desktop manager GNOME or KDE like view tool to view the picture content. So, can have a way to simply browse the image content in the console below. In fact, this is completely possible. There is a ZGV plug-in software is working in the console under Linux. However, because it uses the underlying graphics library svgalib is already a relatively "old" graphics library, so now not many people know ZGV and, with fewer people.
At Linux, the underlying graphics support is usually provided by Framebuffer, therefore, in this paper the author tries to explain how to display a JPEG image on the console by Framebuffer and libjpeg. It is written by the program in this article FV is not a replacement for ZGV, but just a simple idea for verification program (the meaning of FV is Framebuffer Vision). This paper will be the first Framebuffer and libjpeg programming to do a brief description, and then gives the concrete realization of FV program.
2, Framebuffer
Framebuffer is used as a device to achieve in Linux, which is an abstract of [1] graphics hardware, representing the graphics frame buffer (Framebuffer). Through the Framebuffer equipment, access to graphics hardware and software interface software through a well defined, for example, without the need to care about the underlying graphics hardware is how to work, do not care about the software, how to read and write register card, also need not know the graphics frame buffer starting from what address, all of these are Framebuffer to deal with the software, just need to focus on what you have to do is.
The advantage of Framebuffer is that it is a universal equipment level, and be able to work across platforms, such as Fram
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。