2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
5 <refentry id="gdk-pixbuf-csource">
8 <refentrytitle>gdk-pixbuf-csource-3.0</refentrytitle>
9 <manvolnum>1</manvolnum>
13 <refname>gdk-pixbuf-csource-3.0</refname>
14 <refpurpose>C code generation utility for GdkPixbuf images</refpurpose>
19 <command>gdk-pixbuf-csource-3.0</command>
20 <arg choice="opt">options</arg>
21 <arg choice="opt">image</arg>
24 <command>gdk-pixbuf-csource-3.0</command>
25 <arg choice="opt">options</arg>
26 <arg choice="plain">--build-list</arg>
34 <refsect1><title>Description</title>
36 <command>gdk-pixbuf-csource-3.0</command> is a small utility that generates
37 C code containing images, useful for compiling images directly into programs.
41 <refsect1><title>Invocation</title>
43 <command>gdk-pixbuf-csource-3.0</command> either takes as input one image file
44 name to generate code for, or, using the <option>--build-list</option> option,
45 a list of (<replaceable>name</replaceable>, <replaceable>image</replaceable>)
46 pairs to generate code for a list of images into named variables.
48 <refsect2><title>Options</title>
52 <term><option>--stream</option></term>
54 Generate pixbuf data stream (a single string containing a serialized
55 <structname>GdkPixdata</structname> structure in network byte order).
60 <term><option>--struct</option></term>
62 Generate GdkPixdata structure (needs the <structname>GdkPixdata</structname>
63 structure definition from <filename>gdk-pixdata.h</filename>).
68 <term><option>--macros</option></term>
70 Generate *_ROWSTRIDE, *_WIDTH, *_HEIGHT, *_BYTES_PER_PIXEL and
71 *_RLE_PIXEL_DATA or *_PIXEL_DATA macro definitions for the image.
76 <term><option>--rle</option></term>
78 Enables run-length encoding for the generated pixel data (default).
83 <term><option>--raw</option></term>
85 Disables run-length encoding for the generated pixel data.
90 <term><option>--extern</option></term>
92 Generate extern symbols.
97 <term><option>--static</option></term>
99 Generate static symbols (default).
104 <term><option>--decoder</option></term>
106 Provide a *_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp) macro definition
107 to decode run-length encoded image data.
112 <term><option>--name=identifier</option></term>
114 Specifies the identifier name (prefix) for the generated variables or
115 macros (useful only if <option>--build-list</option> was not specified).
120 <term><option>--build-list</option></term>
122 Enables (<replaceable>name</replaceable>, <replaceable>image</replaceable>)
128 <term><option>-h</option>, <option>--help</option></term>
130 Print brief help and exit.
135 <term><option>-v</option>, <option>--version</option></term>
137 Print version and exit.
142 <term><option>--g-fatal-warnings</option></term>
144 Make warnings fatal (causes the program to abort).
152 <refsect1><title>See also</title>
154 The <structname>GdkPixbuf</structname> documentation, shipped with the
155 Gtk+ distribution, available from <ulink url="http://www.gtk.org">www.gtk.org</ulink>.
159 <refsect1><title>Bugs</title>
161 The runlength encoder gets out of sync with the pixel boundaries, since
162 it includes the rowstride padding in the encoded stream. Furthermore, it
163 generates pixbufs with suboptimal rowstride in some cases.
167 <refsect1><title>Author</title>
169 <command>gdk-pixbuf-csource-3.0</command> was written by Tim Janik
170 <email>timj@gtk.org</email>.
173 This manual page was provided by Tim Janik <email>timj@gtk.org</email>.