gdk-pixbuf-csource1
C code generation utility for gdkpixbuf images
Usage
gdk-pixbuf-csource [OPTIONS...] <IMAGE>
Overview
gdk-pixbuf-csource is a small utility that generates C code containing images, useful for compiling images directly into programs.
gdk-pixbuf-csource either takes as input one image file name to generate code for, or, using the --build-list option, a list of (name, image) pairs to generate code for a list of images into named variables.
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.
Options
-
--stream -
Generate pixbuf data stream: a single string containing a serialized
GdkPixdatastructure in network byte order.
-
--struct -
Generate
GdkPixdatastructure; your code needs theGdkPixdatastructure definition fromgdk-pixdata.h.
-
--macros -
Generate
*_ROWSTRIDE,*_WIDTH,*_HEIGHT,*_BYTES_PER_PIXELand*_RLE_PIXEL_DATAor*_PIXEL_DATAmacro definitions for the image.
-
--rle -
Enables run-length encoding for the generated pixel data (default).
-
--raw -
Disables run-length encoding for the generated pixel data.
-
--extern -
Generate extern symbols.
-
--static -
Generate static symbols (default).
-
--decoder -
Provide a *_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp) macro definition to decode run-length encoded image data.
-
--name=identifier -
Specifies the identifier name (prefix) for the generated variables or macros (useful only if
--build-listwas not specified).
-
--build-list -
Enables (
name,image) pair parsing mode.
-
-h, --help -
Prints a brief help and exit.
-
-v, --version -
Prints the tool version and exit.
-
--g-fatal-warnings -
Makes warnings fatal, and causes the program to abort.
Releases
13 releases since Debian 3.0 (Woody); the text changed 10 times.
--build-list since Debian 8 (Jessie);
--decoder since Debian 8 (Jessie);
--extern since Debian 8 (Jessie);
--g-fatal-warnings since Debian 8 (Jessie);
--help since Debian 8 (Jessie);
--macros since Debian 8 (Jessie);
--name since Debian 8 (Jessie);
--raw since Debian 8 (Jessie);
--rle since Debian 8 (Jessie);
--static since Debian 8 (Jessie);
--stream since Debian 8 (Jessie);
--struct since Debian 8 (Jessie);
--version since Debian 8 (Jessie);
-h since Debian 8 (Jessie);
-v since Debian 8 (Jessie).