55 Commits

Author SHA1 Message Date
Andreas Shimokawa
c0c9e11610 fix non-standard copyright headers 2013-07-05 16:51:54 +02:00
Denis Oliver Kropp
c4603eaeb5 tools: fix warnings 2012-12-11 02:11:05 +01:00
Andreas Shimokawa
70b31905d1 fix a lot of warnings in non-debug mode 2012-06-07 18:46:29 +02:00
Marek Pikarski
957418156a tools: Fixed some warnings and updated headers BTW. 2012-05-25 15:28:08 +02:00
André Draszik
706473d1bf directfb-csource: fix incorrect libpng API usage
This was added incorrectly in
commit 65efa6affb
(merge various patches from Broadcom (thanks!))
2012-03-28 16:13:35 +01:00
André Draszik
1cffb599dc tools: fix some compiler warnings
CC     directfb-csource.o
.../DirectFB/tools/directfb-csource.c: In function ‘load_image’:
.../DirectFB/tools/directfb-csource.c:458:11: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘png_uint_32’ [-Wformat]
.../DirectFB/tools/directfb-csource.c:504:25: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘png_uint_32’ [-Wformat]
.../DirectFB/tools/directfb-csource.c:413:28: warning: ‘info_palette’ may be used uninitialized in this function [-Wuninitialized]

  CXX    mkdgifft.o
.../DirectFB/tools/mkdgifft.cpp: In function ‘DFBResult load_image(const char*, DFBSurfaceDescription*)’:
.../DirectFB/tools/mkdgifft.cpp:683:77: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘png_uint_32 {aka unsigned int}’ [-Wformat]
.../DirectFB/tools/mkdgifft.cpp:711:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘png_uint_32 {aka unsigned int}’ [-Wformat]

  CC     dfbdump.o
.../DirectFB/tools/dfbdump.c: In function ‘alloc_callback’:
.../DirectFB/tools/dfbdump.c:270:28: warning: variable ‘index’ set but not used [-Wunused-but-set-variable]
2012-03-28 16:13:35 +01:00
Andreas Shimokawa
65efa6affb merge various patches from Broadcom (thanks!)
idirectfbgl: add IDirectFBGL::TextureSurface() to the interface definition
input: implement quitpipe also for the hotplug thread
jpeg provider: improve probe to recognize more valid jpeg formats
png provider: more debugging, support libpng 1.5
libdirect: never return an uninitialized value in direct_recursive_mutex_init()
surface pool: improve debugging
idirectfbsurface: in IDirectfFBSurface_Flip() pass return value of CoreSurface_Flip()
tools: make libpng 1.5 compatible

various files: use __VA_ARGS__ for macros
2012-03-07 15:03:01 +01:00
André Draszik
b7454efa9a directfb-csource: fix colour replacement for transparent pixels 2010-10-25 11:07:48 +01:00
Denis Oliver Kropp
fb786bafc6 directfb-csource: Fixed warnings. 2010-10-14 11:10:27 +02:00
Denis Oliver Kropp
1fdd7abf21 directfb-csource: Follow macro name change from previous commit. 2010-09-23 13:13:02 +02:00
Sven Neumann
cb4093d57a tools: add option 'transparent' to directfb-csource
Add an option that allows to specify a color to be used for all
completely transparent pixels.
2010-08-30 10:45:42 +02:00
Niels Roest
8892c8777b pixelformats: add ARGB 8565 DSPF_ARGB8565
24bpp, A8+RGB16

Signed-off-by: André Draszik <andre.draszik@st.com>
2009-11-06 20:17:02 +01:00
Niels Roest
f990465367 format: Support RGBA5551 pixel format added.
Thanks to Stanislav Bezzubtcev <stas@lvk.cs.msu.su>
2009-08-26 14:30:17 +02:00
Sven Neumann
df22ef6e4f Add defines for the RGB16 dithering methods 2009-05-14 14:53:36 +02:00
Sven Neumann
90fa8286cf tools: add --dither-rgb16 option to directfb-csource 2009-05-14 14:38:23 +02:00
Ville Syrjala
370f575d8e Silence compiler warnings 2008-11-08 22:02:21 +02:00
Denis Oliver Kropp
ba01767fcd [copyright] Update copyright headers. 2008-05-31 18:13:08 +02:00
Denis Oliver Kropp
0ee6ee9619 Fixed warnings. 2007-11-17 17:26:21 +01:00
Denis Oliver Kropp
34406baa24 Fixed warnings. 2007-11-17 15:50:43 +01:00
Denis Oliver Kropp
cf4de7cf36 MERGE of branch surface_core into master!
The new surface core is stable enough, still not
completely implemented and tested, but I can run my
working environment.

See TODO for next action items.
2007-08-12 22:11:26 +02:00
Ben Combee
b630f75390 Add --raw option to directfb-csource to allow encoding data files in headers
via git-CVS emulator
2007-06-15 05:01:59 +02:00
Ville Syrjala
2735a9544c Use D_ARRAY_SIZE() macro where appropriate. 2007-04-15 21:04:23 +03:00
Denis Oliver Kropp
e46da95536 Updated copyright information. 2007-03-03 20:53:51 +00:00
Denis Oliver Kropp
88bd62a8f9 Thanks to Guillem Jover for fixing the kernel type usage, replaces __u8 by u8 etc. 2006-10-14 13:05:36 +00:00
Denis Oliver Kropp
ac91f7c11b Added option --rgbformat which in contrast to the --format option
only is effective if the image doesn't require an alpha channel.

That's useful e.g. with RGB16 for opaque and ARGB for blended images,
when the primary format will be RGB16.

So far directfb-csource either used ARGB/RGB32 automatically,
or it always used RGB16 or whatever you specified via --format.
2006-07-16 21:06:50 +00:00
Ben Combee
1263c28fd9 directfb-csource tool now makes strucs and bitmap data const, helps with use in shared libs 2006-06-04 17:48:34 +00:00
Denis Oliver Kropp
02f01709a4 Added ARGB2554 and ARGB4444.
Implemented all mandatory software driver snippets for these formats
and any conversion or image loading routines.

Only the optimized A8 font rendering routine (optional) is
unimplemented, i.e. Bop_a8_set_alphapixel_Aop_argb2554/4444.
2005-01-12 00:10:14 +00:00
Denis Oliver Kropp
864eb8f86c Use strrchr() instead of basename(), because <libgen.h> is not present in Cygwin. 2004-10-09 00:55:16 +00:00
Denis Oliver Kropp
2b5bafc3f1 Further migration. 2004-03-30 23:42:36 +00:00
Denis Oliver Kropp
ce912964c1 Updated copyright header. 2003-12-05 04:01:06 +00:00
Sven Neumann
f3158e5df0 don't generate trailing whitespace 2003-11-24 18:52:01 +00:00
Sven Neumann
b524506020 Removed the notice about multi-image powers.
Not needed any longer now that the version number has been increased.
2003-11-06 15:56:53 +00:00
Sven Neumann
7cd990d098 Mention the multi-image functionality in the usage string. 2003-10-24 23:38:44 +00:00
Sven Neumann
b40555f2ae Tweaked name mangling routines. 2003-10-24 18:49:53 +00:00
Sven Neumann
04a520acde Do variable name translation for the case of multiple images as well. 2003-10-24 18:21:39 +00:00
Sven Neumann
c3b15976a2 Dump an array of names and rectangles when processing multiple images.
Document the new feature.
2003-10-24 16:16:35 +00:00
Sven Neumann
4860226fb2 Started to add support for combining multiple images into one surface.
Lacks a few minor features still but shouldn't change the existing
behaviour.
2003-10-24 13:46:46 +00:00
Sven Neumann
aacf5d4520 minor code formatting changes 2003-10-23 14:12:00 +00:00
Denis Oliver Kropp
84935169e8 Cleaned up pixel conversion stuff. 2003-07-08 16:37:23 +00:00
Denis Oliver Kropp
2cdd96d14e Fixed many warnings produced using "-std=gnu99 -pedantic". 2003-07-02 16:36:13 +00:00
Denis Oliver Kropp
c0c3c1b4d4 Added configure option "--enable-extra-warnings" adding:
-W -Wno-sign-compare -Wno-unused-parameter -Wundef -Wcast-qual
-Wcast-align -Waggregate-return -Wmissing-declarations -Winline


Fixed tons of warnings, most of them were related to qualifiers,
some were aggregate returns, some other...
2003-07-02 04:40:24 +00:00
Denis Oliver Kropp
fe0a2627fc Fixed tons of signed/unsigned warnings produced with -Wall and gcc 3.3.
Made all unsigned width, height in the API signed.

Fixed many other warnings. DirectFB compiles with gcc-3.3 -Wall -Werror.
2003-04-16 14:22:02 +00:00
Sven Neumann
45a8c42ce0 set data to NULL in case of error to avoid a possible crash 2003-01-13 19:29:05 +00:00
Denis Oliver Kropp
fcf9fd7ba3 Changed DSPF_RGB15 to DSPF_ARGB1555, untested. 2002-12-27 17:50:08 +00:00
Andreas Hundt
40cbab080d use AC_C_BIGENDIAN (AFAIK even works when cross-compiling with automake2.53)
no longer include <endian.h> which seems to be linux specific,
use #ifdef WORDS_BIGENDIAN instead of #if __BYTE_ORDER == __BIG_ENDIAN
2002-09-10 23:37:54 +00:00
Sven Neumann
43ccc81580 Added inline function span_rgb32_to_rgb332().
Added support for RGB332 surfaces to directfb-csource.
2002-08-08 20:02:42 +00:00
Sven Neumann
10fe1a0620 Added another format conversion by reordering the switch statement :-)
Put palette info into the DFBSurfaceDescription.
2002-08-08 14:54:22 +00:00
Sven Neumann
db62c19693 the final touch 2002-08-08 14:20:09 +00:00
Sven Neumann
99c8913d59 Also dump the number of palette entries. 2002-08-08 11:45:05 +00:00
Sven Neumann
476d933abf Dump palette from PNG file when the destination format is LUT8. 2002-08-08 11:19:22 +00:00