What is Framebuffer ?

wiki : Framebuffer

A framebuffer is a video output device that drives a video display from a memory buffer containing a complete frame of data.

Framebuffer 的架構,是利用 mmap 向 kernel 映射出 "顯示記憶體"區塊(註一、其他memory access的方式 ),讓linux的user可以透過framebuffer device(而不需要透過底層的driver)直接對display memory進行讀寫操作。

The information in the buffer typically consists of color values for every pixel (point that can be displayed) on the screen.

Framebuffer裡主要是顯示資訊。

Color values are commonly stored in 1-bit monochrome, 4-bit palettized, 8-bit palettized, 16-bit highcolor and 24-bit truecolor formats. An additional alpha channel is sometimes used to retain information about pixel transparency.

以上是Color values的格式 Orz 不是很懂。

The total amount of the memory required to drive the framebuffer depends on the resolution of the output signal, and on the color depth and palette size.

而所會用到的記憶體大小就看你要顯示的多清楚了!

註一、其他memory access的方式;
  • Mapping the entire framebuffer to a given memory range.
  • Port commands to set each pixel, range of pixels or palette entry.
  • Mapping a memory range smaller than the framebuffer memory, then bank switching as necessary.

相關閱讀:

關於framebuffer與LCD顯示~ (方法分享)

Linux frame buffer 驅動程式開發簡報下載

有關linux 開發的訓練課程請見:

卓首科技顧問股份有限公司
http://www.jollen.tw/training.html

留言

Google

本月熱門文章

香港朋友,真的對唔住,台灣出了這種中共的幫兇!

堅持5個月!反送中示威者六大特色 6 features of Hong Kong Anti-ELAB Protesters│老外看香港│郝毅博 Ben Hedges│新唐人電視台

[黑金] 台南88槍擊案主犯國民黨學甲區黨部主委王文宗 也擔任統促黨幹部

熱門文章

企鵝妹/柳允進 史上最暈的TT三分鐘完整版一次看個夠

陳昇 Bobby Chen【把悲傷留給自己 I left sadness to myself】Official Music Video

裝潢師傅貼圖來了唷

香港朋友,真的對唔住,台灣出了這種中共的幫兇!

新手自建監控雲最快的方式:推薦QNAP NAS 搭配QVR Pro

2020 中華民國 台灣 失業補助申請方式 失業給付申請

香港朋友看服貿 - 嗨,我是香港人,一個CEPA的受害者。

堅持5個月!反送中示威者六大特色 6 features of Hong Kong Anti-ELAB Protesters│老外看香港│郝毅博 Ben Hedges│新唐人電視台