From 7372187fcdcc46eb771df119d8173e8f3cf328b5 Mon Sep 17 00:00:00 2001 From: bzt Date: Thu, 18 Jan 2018 14:20:17 +0100 Subject: [PATCH] Fixed typos --- 09_framebuffer/OLVASSEL.md | 4 ++-- 09_framebuffer/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/09_framebuffer/OLVASSEL.md b/09_framebuffer/OLVASSEL.md index da2d0cd8..2257ab0f 100644 --- a/09_framebuffer/OLVASSEL.md +++ b/09_framebuffer/OLVASSEL.md @@ -9,8 +9,8 @@ hozzáadni vagy elvenni parancsokat, hogy lásd, mi történik. Használhattam v is, de az MBOX_CH_PROP sokkal több mindent tesz lehetővé és sokkal rugalmasabb. Fontos tudnivaló a pitch-ről: talán nem tudod, de a video képernyő rasztersorai nem feltétlenül vannak sorfolytonosan -tárolva a memóriában. Például lehetséges, hogy 800 pixelnél (800x4=3200 bájt helyett) 4096 bájton tárolódik minden -sor. Ezért fontos, hogy mindig a dinamikusan lekért pitch értékével számoljuk width*4 helyett a képernyő Y +tárolva a memóriában. Például lehetséges, hogy 800 pixelnél (800 * 4=3200 bájt helyett) 4096 bájton tárolódik minden +sor. Ezért fontos, hogy mindig a dinamikusan lekért pitch értékével számoljuk width * 4 helyett a képernyő Y koordinátáját. Arra is érdemes figyelni, hogy a GPU a Raspberry Pi-n nagyon combos. Létrehozhatsz például egy hatalmas virtuális diff --git a/09_framebuffer/README.md b/09_framebuffer/README.md index 6a17a531..8f26878b 100644 --- a/09_framebuffer/README.md +++ b/09_framebuffer/README.md @@ -8,8 +8,8 @@ and call mbox_call, really simple. If you wish, you can try to remove or add mor see what happens. Could have used MBOX_CH_FB (FrameBuffer channel), but MBOX_CH_PROP gives us more flexibility. Important note on pitch: maybe you don't know, but video screens does not necessairly map raster lines -continously in memory. For example it is possible that 800 pixels (800*4=3200 bytes) are stored in 4096 -bytes for every line. Therefore it's important to use the queried pitch value instead of width*4 when +continously in memory. For example it is possible that 800 pixels (800 * 4=3200 bytes) are stored in 4096 +bytes for every line. Therefore it's important to use the queried pitch value instead of width * 4 when calculating the postition for the Y coordinate. Also note that the GPU on the Raspberry Pi is very powerful. You can create a large virtual screen (let's say