1GDK-PIXBUF-CSOURCE(1) GDK-PIXBUF-CSOURCE(1)
2
3
4
6 gdk-pixbuf-csource - C code generation utility for GdkPixbuf images
7
9 gdk-pixbuf-csource [options] [image]
10
11 gdk-pixbuf-csource [options] --build-list [[name] [image]...]
12
13
15 gdk-pixbuf-csource is a small utility that generates C code containing
16 images, useful for compiling images directly into programs.
17
18
20 gdk-pixbuf-csource either takes as input one image file name to gener‐
21 ate code for, or, using the --build-list option, a list of (name, im‐
22 age) pairs to generate code for a list of images into named variables.
23
24
25 Options
26 --stream
27 Generate pixbuf data stream (a single string containing a seri‐
28 alized GdkPixdata structure in network byte order).
29
30
31 --struct
32 Generate GdkPixdata structure (needs the GdkPixdata structure
33 definition from gdk-pixdata.h).
34
35
36 --macros
37 Generate *_ROWSTRIDE, *_WIDTH, *_HEIGHT, *_BYTES_PER_PIXEL and
38 *_RLE_PIXEL_DATA or *_PIXEL_DATA macro definitions for the im‐
39 age.
40
41
42 --rle Enables run-length encoding for the generated pixel data (de‐
43 fault).
44
45
46 --raw Disables run-length encoding for the generated pixel data.
47
48
49 --extern
50 Generate extern symbols.
51
52
53 --static
54 Generate static symbols (default).
55
56
57 --decoder
58 Provide a *_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)
59 macro definition to decode run-length encoded image data.
60
61
62 --name=identifier
63 Specifies the identifier name (prefix) for the generated vari‐
64 ables or macros (useful only if --build-list was not specified).
65
66
67 --build-list
68 Enables (name, image) pair parsing mode.
69
70
71 -h, --help
72 Print brief help and exit.
73
74
75 -v, --version
76 Print version and exit.
77
78
79 --g-fatal-warnings
80 Make warnings fatal (causes the program to abort).
81
82
84 The GdkPixbuf documentation, shipped with the Gtk+ distribution, avail‐
85 able from www.gtk.org: http://www.gtk.org.
86
87
89 The runlength encoder gets out of sync with the pixel boundaries, since
90 it includes the rowstride padding in the encoded stream. Furthermore,
91 it generates pixbufs with suboptimal rowstride in some cases.
92
93
95 gdk-pixbuf-csource was written by Tim Janik <timj@gtk.org>.
96
97
98 This manual page was provided by Tim Janik <timj@gtk.org>.
99
100
101
102
103 GDK-PIXBUF-CSOURCE(1)