20,501
edits
m (wording) |
m (changed "X view" column labels in geyser's "internal storage types" tables to hopefully be more accurate and clear) |
||
| Line 132: | Line 132: | ||
==Oni's internal storage types== | ==Oni's internal storage types== | ||
Some of Oni's 16 types of image storage are elaborated on below in order to illustrate exactly how they work. The | Some of Oni's 16 types of image storage are elaborated on below in order to illustrate exactly how they work. The "Mem view" column shows the bytes in memory as big-endian and the "Disk view" column shows the bytes as they are stored in little-endian order. For example the bytes in memory shown as 0xFC00 are stored as "00 FC" on disk. | ||
===ARGB4444 (type 0)=== | ===ARGB4444 (type 0)=== | ||
| Line 146: | Line 146: | ||
|- | |- | ||
!colspan=3|<br>Bit values for primary colors (fully opaque) | !colspan=3|<br>Bit values for primary colors (fully opaque) | ||
! | !Mem view | ||
! | !Disk view | ||
|- | |- | ||
|Black||<code>1 1 1 1 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | |Black||<code>1 1 1 1 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | ||
| Line 187: | Line 187: | ||
|- | |- | ||
!colspan=3|<br>Bit values for primary colors | !colspan=3|<br>Bit values for primary colors | ||
! | !Mem view | ||
! | !Disk view | ||
|- | |- | ||
|Black||<code>1 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | |Black||<code>1 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | ||
| Line 226: | Line 226: | ||
|- | |- | ||
!colspan=3|<br>Bit values for primary colors (opaque) | !colspan=3|<br>Bit values for primary colors (opaque) | ||
! | !Mem view | ||
! | !Disk view | ||
|- | |- | ||
|Black||<code>1 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | |Black||<code>1 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | ||
| Line 265: | Line 265: | ||
|- | |- | ||
!colspan=2|Examples of bit values | !colspan=2|Examples of bit values | ||
! | !Mem view | ||
|- | |- | ||
|Black, opaque||<code>1 1 1 1 0 0 0 0</code> | |Black, opaque||<code>1 1 1 1 0 0 0 0</code> | ||
| Line 293: | Line 293: | ||
|- | |- | ||
!colspan=5|<br>Bit values for primary colors (fully opaque) | !colspan=5|<br>Bit values for primary colors (fully opaque) | ||
! | !Mem view | ||
! | !Disk view | ||
|- | |- | ||
|Black||<code>1 1 1 1 1 1 1 1</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | |Black||<code>1 1 1 1 1 1 1 1</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | ||
| Line 335: | Line 335: | ||
|- | |- | ||
!colspan=5|<br>Bit values for primary colors | !colspan=5|<br>Bit values for primary colors | ||
! | !Mem view | ||
! | !Disk view | ||
|- | |- | ||
|Black||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | |Black||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | ||
| Line 376: | Line 376: | ||
|- | |- | ||
!colspan=4|Bit values for primary colors | !colspan=4|Bit values for primary colors | ||
! | !Mem view | ||
|- | |- | ||
|Black||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | |Black||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code> | ||
| Line 416: | Line 416: | ||
|- | |- | ||
!colspan=5|<br>Bit values for primary colors (fully opaque) | !colspan=5|<br>Bit values for primary colors (fully opaque) | ||
! | !Mem view | ||
|- | |- | ||
|Black||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>1 1 1 1 1 1 1 1</code> | |Black||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>0 0 0 0 0 0 0 0</code>||<code>1 1 1 1 1 1 1 1</code> | ||