man-pages/man1/gdk-pixbuf-csource.1.html
2021-03-31 01:06:50 +01:00

204 lines
3.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of GDK-PIXBUF-CSOURCE</TITLE>
</HEAD><BODY>
<H1>GDK-PIXBUF-CSOURCE</H1>
Section: User Commands (1)<BR>Updated: <BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
gdk-pixbuf-csource - C code generation utility for GdkPixbuf images
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>gdk-pixbuf-csource</B> [OPTION...] [IMAGE]
<DT id="2">
<B>gdk-pixbuf-csource</B> [OPTION...] --build-list [[NAME]&nbsp;[IMAGE]...]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<B>gdk-pixbuf-csource</B>
<DD>is a small utility that generates C code containing images, useful for compiling images directly into programs.
<P>
<B>gdk-pixbuf-csource</B>
either takes as input one image file name to generate code for, or, using the
<B>--build-list</B>
option, a list of (<I>name</I>,
<I>image</I>) pairs to generate code for a list of images into named variables.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
<B>--stream</B>
<DL COMPACT><DT id="3"><DD>
Generate pixbuf data stream (a single string containing a serialized
GdkPixdata
structure in network byte order).
</DL>
<P>
<B>--struct</B>
<DL COMPACT><DT id="4"><DD>
Generate GdkPixdata structure (needs the
GdkPixdata
structure definition from
gdk-pixdata.h).
</DL>
<P>
<B>--macros</B>
<DL COMPACT><DT id="5"><DD>
Generate *_ROWSTRIDE, *_WIDTH, *_HEIGHT, *_BYTES_PER_PIXEL and *_RLE_PIXEL_DATA or *_PIXEL_DATA macro definitions for the image.
</DL>
<P>
<B>--rle</B>
<DL COMPACT><DT id="6"><DD>
Enables run-length encoding for the generated pixel data (default).
</DL>
<P>
<B>--raw</B>
<DL COMPACT><DT id="7"><DD>
Disables run-length encoding for the generated pixel data.
</DL>
<P>
<B>--extern</B>
<DL COMPACT><DT id="8"><DD>
Generate extern symbols.
</DL>
<P>
<B>--static</B>
<DL COMPACT><DT id="9"><DD>
Generate static symbols (default).
</DL>
<P>
<B>--decoder</B>
<DL COMPACT><DT id="10"><DD>
Provide a *_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp) macro definition to decode run-length encoded image data.
</DL>
<P>
<B>--name=identifier</B>
<DL COMPACT><DT id="11"><DD>
Specifies the identifier name (prefix) for the generated variables or macros (useful only if
<B>--build-list</B>
was not specified).
</DL>
<P>
<B>--build-list</B>
<DL COMPACT><DT id="12"><DD>
Enables (<I>name</I>,
<I>image</I>) pair parsing mode.
</DL>
<P>
<B>-h</B>, <B>--help</B>
<DL COMPACT><DT id="13"><DD>
Print brief help and exit.
</DL>
<P>
<B>-v</B>, <B>--version</B>
<DL COMPACT><DT id="14"><DD>
Print version and exit.
</DL>
<P>
<B>--g-fatal-warnings</B>
<DL COMPACT><DT id="15"><DD>
Make warnings fatal (causes the program to abort).
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
The
GdkPixbuf
documentation, shipped with the Gtk+ distribution, available from
m[blue]<B><A HREF="http://www.gtk.org">www.gtk.org</A></B>m[]<FONT SIZE="-2">[1]</FONT>.
<A NAME="lbAG">&nbsp;</A>
<H2>BUGS</H2>
<P>
The runlength encoder gets out of sync with the pixel boundaries, since it includes the rowstride padding in the encoded stream. Furthermore, it generates pixbufs with suboptimal rowstride in some cases.
<A NAME="lbAH">&nbsp;</A>
<H2>NOTES</H2>
<DL COMPACT>
<DT id="16"> 1.<DD>
<A HREF="http://www.gtk.org">www.gtk.org</A>
<DL COMPACT><DT id="17"><DD>
<A HREF="http://www.gtk.org">http://www.gtk.org</A>
</DL>
<P>
</DL>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="18"><A HREF="#lbAB">NAME</A><DD>
<DT id="19"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="20"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="21"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="22"><A HREF="#lbAF">SEE ALSO</A><DD>
<DT id="23"><A HREF="#lbAG">BUGS</A><DD>
<DT id="24"><A HREF="#lbAH">NOTES</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:13 GMT, March 31, 2021
</BODY>
</HTML>