Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

directfb-csource(1) [debian man page]

DIRECTFB-CSOURCE(1)					       DirectFB Manual Pages					       DIRECTFB-CSOURCE(1)

directfb-csource - C code generation utility for DirectFB surfaces SYNOPSIS
directfb-csource [options] <imagefiles> DESCRIPTION
directfb-csource is a small utility that reads PNG (Portable Network Graphics) image files and generates C code that can be used to compile an image into a DirectFB application. Below is a simple example to illustrate this. If multiple PNG image files are passed to directfb-csource, they are combined into a single surface. The different images can then be blit- ted from this surface using the array of rectangles that is also dumped. This can be useful for example for icons or sprites. OPTIONS
--name=identifier Specifies the identifier name (prefix) for the generated variables. If this option is not used, the identifier is generated from the filename. You have to specify an identifer name when processing multiple images. --format=pixelformat Specifies the pixel-format of the generated inline surface. Possible values are ARGB, RGB32, RGB24, RGB16, RGB15, RGB332, A8 and LUT8. By default the format is ARGB if the PNG image has an alpha channel or RGB32 otherwise. --version Output version information. --help Print brief help and exit. EXAMPLE
Generate a header file from a PNG image file: directfb-csource --name=foo foo.png > foo.h Include the generated header in your application and create a surface using the surface description from the header file: #include <directfb.h> #include "foo.h" IDirectFB *dfb; IDirectFBSurface *surface; ... dfb->CreateSurface( dfb, &foo_desc, &surface ); OTHER INFO
directfb-csource was inspired by and uses code from gdk-pixbuf-csource, a similar program written by Tim Janik. The canonical place to find informations about DirectFB is at Version 1.2.10 24 Oct 2003 DIRECTFB-CSOURCE(1)

Check Out this Related Man Page

EXO-CSOURCE(1)							 Xfce Users Manual						    EXO-CSOURCE(1)

exo-csource - C code generation utility for arbitrary data SYNOPSIS
exo-csource [options] [file] exo-csource [options] --build-list [[name] [file]...] DESCRIPTION
exo-csource is a small utility that generates C code containing arbitrary data, useful for compiling texts or other data directly into programs. INVOCATION
exo-csource either takes as input one file name to generate code for, or, using the --build-list option, a list of (name, file) pairs to generate code for a list of images into named variables. Options -h, --help Print brief help and exit. -v, --version Print version information and exit. --extern Generate extern symbols. --static Generate static symbols (default). --name=identifier Specifies the identifier name (prefix) for the generated variables (only used if --build-list was not specified as well). --build-list Enables (name, file) pair parsing mode. SEE ALSO
The gdk-pixbuf-csource utility which ships with the Gtk+ distribution, available from[1]. AUTHOR
exo-csource was written by Benedikt Meurer This manual page was provided by Benedikt Meurer NOTES
1. Xfce 06/10/2011 EXO-CSOURCE(1)
Man Page

4 More Discussions You Might Find Interesting

1. Linux

Problem with initializing DirectFB by Links

DirectFB-0.9.20 is compiled --with-gfxdrivers=all links-2.1pre15 is compiled with --enable-graphics there is a problem when I am trying to run Links using DirectFB video driver may be my DirectFBs config is not right? video by framebuffer or X works successfully (0 Replies)
Discussion started by: eugrus
0 Replies

2. Linux

Error while executing Directfb program on ubuntu

Hi , I am getting error while executing Directfb program on ubuntu ,, my program is : #include <stdio.h> #include <unistd.h> #include <directfb.h> static IDirectFB *dfb = NULL; static IDirectFBSurface *primary = NULL; static int screen_width = 0; static int screen_height... (0 Replies)
Discussion started by: Ravikishore
0 Replies

3. Programming

Error while running the C code

Hi Sir, I am running C program which include directfb.h header files. root@lxdevenv:~/Desktop# vi n.c root@lxdevenv:~/Desktop# gcc n.c -o n -I/usr/local/include/directfb -L/usr/local/lib -ldirectfb -lfusion -ldirect -lpthread -lm n.c: In function ‘main':... (2 Replies)
Discussion started by: Ravikishore
2 Replies

4. UNIX Desktop Questions & Answers

Difference between opengl es and directfb

i dont know in which forum to ask this question ..... :( . pardon me if it is not this forum i wanted to know difference between openGL ES and directfb as far i know directfb is alternative to x11 in linux for embedded devices. something like ... application | ... (1 Reply)
Discussion started by: alexzander18
1 Replies