.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "GDK-PIXBUF-CSOURCE" "" "" .SH NAME gdk-pixbuf-csource \- C code generation utility for GdkPixbuf images .SH SYNOPSIS .nf \fBgdk\-pixbuf\-csource\fP [OPTIONS...] .fi .sp .SH DESCRIPTION .sp \fBgdk\-pixbuf\-csource\fP is a small utility that generates C code containing images, useful for compiling images directly into programs. .sp \fBgdk\-pixbuf\-csource\fP either takes as input one image file name to generate code for, or, using the \fB\-\-build\-list\fP option, a list of (\fBname\fP, \fBimage\fP) pairs to generate code for a list of images into named variables. .sp This tool is mostly meant to be used for backward compatibility. Newly written applications and libraries should use GResource to embed image assets in their binary. .SH OPTIONS .sp \fB\-\-stream\fP .INDENT 0.0 .INDENT 3.5 Generate pixbuf data stream: a single string containing a serialized \fBGdkPixdata\fP structure in network byte order. .UNINDENT .UNINDENT .sp \fB\-\-struct\fP .INDENT 0.0 .INDENT 3.5 Generate \fBGdkPixdata\fP structure; your code needs the \fBGdkPixdata\fP structure definition from \fBgdk\-pixdata.h\fP\&. .UNINDENT .UNINDENT .sp \fB\-\-macros\fP .INDENT 0.0 .INDENT 3.5 Generate \fB*_ROWSTRIDE\fP, \fB*_WIDTH\fP, \fB*_HEIGHT\fP, \fB*_BYTES_PER_PIXEL\fP and \fB*_RLE_PIXEL_DATA\fP or \fB*_PIXEL_DATA\fP macro definitions for the image. .UNINDENT .UNINDENT .sp \fB\-\-rle\fP .INDENT 0.0 .INDENT 3.5 Enables run\-length encoding for the generated pixel data (default). .UNINDENT .UNINDENT .sp \fB\-\-raw\fP .INDENT 0.0 .INDENT 3.5 Disables run\-length encoding for the generated pixel data. .UNINDENT .UNINDENT .sp \fB\-\-extern\fP .INDENT 0.0 .INDENT 3.5 Generate extern symbols. .UNINDENT .UNINDENT .sp \fB\-\-static\fP .INDENT 0.0 .INDENT 3.5 Generate static symbols (default). .UNINDENT .UNINDENT .sp \fB\-\-decoder\fP .INDENT 0.0 .INDENT 3.5 Provide a \fB*_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)\fP macro definition to decode run\-length encoded image data. .UNINDENT .UNINDENT .sp \fB\-\-name=identifier\fP .INDENT 0.0 .INDENT 3.5 Specifies the identifier name (prefix) for the generated variables or macros (useful only if \fB\-\-build\-list\fP was not specified). .UNINDENT .UNINDENT .sp \fB\-\-build\-list\fP .INDENT 0.0 .INDENT 3.5 Enables (\fBname\fP, \fBimage\fP) pair parsing mode. .UNINDENT .UNINDENT .sp \fB\-h, \-\-help\fP .INDENT 0.0 .INDENT 3.5 Prints a brief help and exit. .UNINDENT .UNINDENT .sp \fB\-v, \-\-version\fP .INDENT 0.0 .INDENT 3.5 Prints the tool version and exit. .UNINDENT .UNINDENT .sp \fB\-\-g\-fatal\-warnings\fP .INDENT 0.0 .INDENT 3.5 Makes warnings fatal, and causes the program to abort. .UNINDENT .UNINDENT .SH SEE ALSO .sp The \fBGdkPixbuf\fP documentation, shipped by gdk\-pixbuf, and also available online on \fI\%docs.gtk.org\fP\&. .SH BUGS .sp 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. .\" Generated by docutils manpage writer. .