summary refs log tree commit diff
path: root/gfx/man/gfxx.1
blob: 19a25c10beecbb8a94869749559b42f1cfb4d5d1 (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
.Dd September 8, 2018
.Dt GFXX 1
.Os "Causal Agency"
.
.Sh NAME
.Nm gfxx
.Nd graphics data explorer
.
.Sh SYNOPSIS
.Nm
.Op Fl fm
.Op Fl c Ar space
.Op Fl p Ar file
.Op Fl e Ar lb
.Op Fl E Ar lb
.Op Fl b Ar bits
.Op Fl n Ar offset
.Op Fl w Ar width
.Op Fl z Ar scale
.Op Fl o Ar prefix
.
.Sh DESCRIPTION
.Nm
is an interactive graphics data explorer
capable of dumping PNGs.
.
.Pp
The arguments are as follows:
.Bl -tag -width Ds
.It Fl E Ar lb
Set bit order to little or big endian.
.
.It Fl b Ar bits
Set number of bits of padding,
red,
green
and blue
components.
Four digits are required.
.
.It Fl c Ar space
Set color space to one of
.Cm indexed ,
.Cm grayscale ,
.Cm rgb .
.
.It Fl e Ar lb
Set byte order to little or big endian.
.
.It Fl f
Flip display vertically.
.
.It Fl m
Mirror display horizontally.
.
.It Fl n Ar offset
Set byte offset into data.
.
.It Fl o Ar prefix
Set PNG output filename prefix.
.
.It Fl p Ar file
Load indexed color palette from
.Ar file .
.
.It Fl w Ar width
Set display column width.
.
.It Fl z Ar scale
Set display scale.
.El
.
.Pp
The interactive keys are as follows:
.Bl -tag -width Ds
.It Ic q
Quit.
.
.It Ic x
Export one frame as PNG.
.
.It Ic X
Export each frame as PNG.
.
.It Ic o
Print interactive options.
.
.It Ic []
Select color space.
.
.It Ic p
Sample indexed palette from top-left corner.
.
.It Ic P
Export indexed palette as RGB data.
.
.It Ic {}
Select bits preset.
.
.It Ic e
Toggle byte order.
.
.It Ic E
Toggle bit order.
.
.It Ic hl
Adjust offset by byte.
.
.It Ic jk
Adjust offset by pixel.
.
.It Ic HL
Adjust offset by pixel row.
.
.It Ic JK
Adjust offset by pixel row square.
.
.It Ic ,.
Adjust display column width.
.
.It Ic <>
Adjust display column width by half or double.
.
.It Ic f
Toggle vertically flipped display.
.
.It Ic m
Toggle horizontally mirrored display.
.
.It Ic -+
Adjust display scale.
.
.It Ic 0-9
Set bits.
.El
.
.Sh SEE ALSO
.Xr pngo 1
span='3' class='logmsg'> 2020-11-17Update libretls to 3.2.2June McEnroe 2020-09-29Update libretls to 3.2.1June McEnroe 2020-09-10Update catgirl to 1.2June McEnroe 2020-09-09Add pounce-palaver portJune McEnroe 2020-09-09Update pounce to 2.0June McEnroe 2020-09-09Update litterbox to 1.6June McEnroe 2020-08-23Add scooper portJune McEnroe 2020-08-23Add catsit portJune McEnroe 2020-08-13Update pounce to 1.4p2June McEnroe 2020-08-11Update pounce to 1.4p1June McEnroe 2020-08-10Add litterbox portJune McEnroe 2020-08-10Add missing USES=pkgconfig to pounceJune McEnroe