-
Notifications
You must be signed in to change notification settings - Fork 0
/
explain.txt
61 lines (50 loc) · 1.41 KB
/
explain.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
2bpp 0-Black 1-Bright
4bpp 4bpp
High Low
RGB 2bpp Color HalfByte HalfByte
000 (0) Black 00(0) + 00(0)
001 (1) Blue C0(192) + 0C(12)
010 (2) Green A0(160) + 0A(10)
011 (3) Cyan E0(224) + 0E(14)
100 (4) Red 90(144) + 09(09)
101 (5) Magenta D0(208) + 0D(13)
110 (6) Yellow B0(176) + 0B(11)
111 (7) White F0(240) + 0F(15)
________________________________________________________________________________
|------------|
||||||||||||||
|------------|
||||||||||||||
|------------|
|X||||||||||||
|------------|
4bpp X=118 (76h) -118
2bpp X=62 (3Eh) -62
________________________________________________________________________________
Black 00 Green AA Blue CD Black 0D <-Output : 16bytes x 2pixels(6fictionpixels) = 32pixels (96fictionpixels)
Black Green Magenta Magenta
0 0 A A C D 0 D
^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | |
RGB RGB RGB RGB RGB RGB RGB RGB
000 000 010 010 001 101 000 101 ... ...
||| ||| ||| ||| ||| ||| ||| ||| |||
01 --->000 000 01| ||| ||| ||| ||| ||| |||
23 -------------->0 010 001 1|| ||| ||| |||
45 -------------------------->01 000 101 |||
|||
67 -------------------------------------->011 001 11
89
AB
CD
EF
01
23
45
67
^
|
Input 2bpp:
12bytesx
x8pixels=
=96pixels