Fixed typos

pull/4/head
bzt 6 years ago
parent 849b312f37
commit 7372187fcd

@ -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

@ -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

Loading…
Cancel
Save