Shally Verma | 13 Oct 2012 18:43
Favicon

Seeing dfb apps freeze on SMP linux 2.6.34 version

Hi Denis

I am running DFB 1.4.3 lib on SMP linux 2.6.34 and do see a freeze after few hours of run.Sometimes it comes very soon.When a freeze comes then I don’t see dfb app utilising cpu any more. Seems as if app has gone to sleep. I check this using Top command. I tried with df_matrix and df_andi both reports same behavior and I am sure others apps may too reflect same. I debugged a lot in last 7 days but all in vain. Could you please give some help on this more. How can I debug it where it can get freeze?Are you aware of any such issues coming on SMP linux?

Thanks in advance

shally


This e-mail and documents attached to this e-mail contain proprietary and/or confidential information of Entropic Communications. Such information is subject to copyright belonging to Entropic Communications. This e-mail is intended solely for the use of the individuals or entities to which it is addressed. If you are not the intended recipient of this e-mail, any distribution, copying or use of the contents of this e-mail and attachments is strictly prohibited and may be unlawful.
_______________________________________________
directfb-users mailing list
directfb-users@...
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
Julian Hall | 11 Oct 2012 03:07
Picon

DirectFB cross-compiled for iMX.53 - crash on startup

Trying to get a working directfb for use in an embedded system based on 
an i.MX53 processor (which is an ARM Cortex-A8 core) running Linux 
2.6.35.3 (as supplied by Freescale).

I have installed a cross compiler on my i686 debian host system. The 
cross compiler came from the embedian.org archive, and is the 
gcc-4.3-arm-linux-gnueabi package (|arm-linux-gnueabi-gcc (Debian 
4.3.2-1.1) 4.3.2|). This is supplied with glibc 2.7. This is a different 
version from the version on my target system, which is glibc 2.11, 
although my reading suggests that they should be compatible.

After much experimentation with the libraries already existing on the 
system image, I have managed to successfully compile directfb 1.6.2. 
This was complicated by the fact that I do not have working pkg-config 
info for the already-installed libraries, but I eventually managed to 
persuade it to compile using the following configure command line:

|TOP=`realpath ../..`
PKG_CONFIG_PATH=${TOP}/ext/libpng-1.5.13/ \
LIBPNG_CFLAGS=-I${TOP}/include \
LIBPNG_LDFLAGS="-L${TOP}/libs -lpng15 -lz" \
FREETYPE_CFLAGS=-I${TOP}/include \
FREETYPE_LIBS="-L${TOP}/libs -lfreetype" \
LIBS="-lgcc_s -lgcc -ldl -lstdc++ -lz" \
CFLAGS="-march=armv7-a" \
CXXFLAGS="-march=armv7-a" \
./configure CC=arm-linux-gnueabi-gcc CPPFLAGS=-I${TOP}/include LDFLAGS=-L${TOP}/lib \
    --build=i686-linux --host=arm-linux-gnueabi \
    --enable-static --disable-shared \
    --disable-freetype --enable-fbdev --disable-x11 \
    --with-gfxdrivers=none --with-inputdrivers=none
|

This successfully builds, and I can compile and link a sample 
application based on the simple tutorial application 
athttp://directfb.org/docs/DirectFB_Tutorials/simple.html-- 
unfortunately, when run on the target system, the application crashes 
with SIGSEGV. So too do some of the tools included with directfb, e.g. 
dfbinfo.

Here is a stack trace of my test application crashing (when run with 
command line arg "--dfb:fbdev=/dev/fb0"):

|#0  direct_map_lookup (map=0x0, key=0xdfd70) at map.c:298
#1  0x000b2d9c in direct_config_set (name=0xdfd70 "fbdev",
     value=0xdfd76 "/dev/fb0") at conf.c:542
#2  0x0009edc0 in dfb_config_set (name=0xdfd70 "fbdev",
     value=0xdfd76 "/dev/fb0") at conf.c:2024
#3  0x000a2dcc in parse_args (args=0x7ea80d53 "fbdev=/dev/fb0") at conf.c:297
#4  0x000a305c in dfb_config_init (argc=0x7ea80968, argv=0x7ea80964)
     at conf.c:2159
#5  0x0000cd58 in Display::Display ()
#6  0x0000ba94 in main ()
|

For reference, the only directfb-related code to execute in the 
application prior to the crash is directly copied from the tutorial code:

|Display::Display(int argc, char ** argv)
{
    DFBSurfaceDescription dsc;
    DFBCHECK (DirectFBInit (&argc, &argv));
    // ... crash occurs during execution of the line above
}
|

This is called directly from my main function, passing the original 
unmodified argc and argv.

I have installed the directfb libraries on the target system in 
/usr/local/lib and binaries in /usr/local/bin, and created 
/usr/local/share/directfb-1.6.2 (containing cursor.dat and decker.dgiff) 
as well as /etc/fb.modes as suggested in the documentation.

Any suggestions what I've done wrong?
Ezequiel Garcia | 4 Oct 2012 23:44
Picon
Gravatar

Rendering twice throws a warning message

Hello,

Whenever I render from an ImageProvider to a Surface twice, without
Flipping in between I get this warning:

(!) [Main Thread       6.496] (  737) *** Assumption [(lock)->magic !=
D_MAGIC("CoreSurfaceBufferLock")] failed ***
[/home/foo/DirectFB-1.4.12/source/src/core/surface_buffer.h:139 in
dfb_surface_buffer_lock_init()]

I'm using a ImageProvider cache-oriented design, instead of a Surface
cache-oriented.

Is there any danger in my procedure?

Thanks!
Ezequiel
Pasha | 3 Oct 2012 08:39
Favicon

Font Rendering

Hi All,

I am trying to render to a regional text string using DFBFont example programme but i observed rectangles are displaying. Please help and let know how to render the regional text with regional font .ttf file.


Thanks in advance..


--
Thanks
Pasha


Follow Rediff Deal ho jaye! to get exciting offers in your city everyday.
_______________________________________________
directfb-users mailing list
directfb-users@...
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
Alla N | 23 Sep 2012 11:39
Picon

updating windows

Hello all,

I work with LITE and I have a problem with updating windows. I add a
button to the window
and I want it to be drawn. I tried to use lite_update_box and
lite_draw_box, but nothing. The window isn't updated.

What can it be?
Thanks.
wei cui | 23 Sep 2012 06:29
Picon

dfb->CreateFont: No (suitable) implementation found!

Hi,


I've tried to test directfb-1.4.0 with example-1.2.0 in ubuntu 12.04, and I'm sure that i've installed libjpeg, libpng and libfreetype before compiling dfb. But i get following error when i run df_andi:

$ sudo df_andi 

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2009  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2012-09-22 17:05) 
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'VT Flusher' (-1) [DEFAULT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/FBDev: Found 'inteldrmfb' (ID 0) with frame buffer at 0x90064000, 4128k (MMIO 0x00000000, 0k)
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: IMPS/2 Mouse (1) 1.0 (directfb.org)
(*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: IMPS/2 Mouse (2) 1.0 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Lid Switch (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Power Button (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: AT Translated Set 2 keyboard (3) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: PIXART USB OPTICAL MOUSE (4) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Integrated Camera (5) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: ThinkPad Extra Buttons (6) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: SynPS/2 Synaptics TouchPad (7) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Video Bus (8) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Video Bus (9) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: HDA Intel PCH HDMI/DP,pcm=3 (10) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: TPPS/2 IBM TrackPoint (11) 0.1 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Mode: Setting 1366x768 RGB32
(*) FBDev/Mode: Switched to 1366x768 (virtual 1366x768) at 32 bit (RGB32), pitch 5504
(!) DirectFB/FBDev: Could not set gamma ramp    --> Invalid argument
(*) FBDev/Surface: Allocated 1366x768 32 bit RGB32 buffer (index 0) at offset 0 and pitch 5504.
(*) FBDev/Mode: Setting 1366x768 RGB32
(*) FBDev/Mode: Switched to 1366x768 (virtual 1366x768) at 32 bit (RGB32), pitch 5504
(!) DirectFB/FBDev: Could not set gamma ramp    --> Invalid argument
(*) FBDev/Surface: Allocated 1366x768 32 bit RGB32 buffer (index 0) at offset 0 and pitch 5504.
df_andi.c <497>:
(#) DirectFBError [dfb->CreateFont( dfb, FONT, &desc, &font )]: No (suitable) implementation found!
 (!!!)  *** WARNING [Application exited without deinitialization of DirectFB!] *** [core.c:859 in dfb_core_deinit_check()]
 (!!!)  *** WARNING [still objects in 'Layer Region Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Layer Context Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Surface Pool'] *** [object.c:241 in fusion_object_pool_destroy()]

It seems that dfb->CreateFont could not find a suitable implementation. 

Any help would be appreciated. And thanks in advance.
Chris.
_______________________________________________
directfb-users mailing list
directfb-users@...
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
Alexander Pannwitz | 18 Sep 2012 11:51

Re: directfb-users Digest, Vol 91, Issue 2

Here is my ./autogen output:

Build options:
  Version                   1.6.1
  Linux powered             yes
  Install prefix            /usr/local
  Config files in           /usr/local/etc
  Build shared libs         yes
  Build static libs         no
  Module directory          ${exec_prefix}/lib/directfb-1.6-0
  CPPFLAGS                  -D_REENTRANT
  CFLAGS                    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing
-Werror-implicit-function-declaration -O2 -g2 -ffast-math -pipe  -D_GNU_SOURCE  -std=gnu99 -Werror-implicit-function-declaration
  LDFLAGS
  LIBS                      -ldl -lrt -lpthread
  DYNLIB                    -ldl
  RTLIB                     -lrt
  THREADFLAGS               -D_REENTRANT
  THREADLIB                 -lpthread

Misc options:
  Multi Application Core    no
  Fusion Kernel Device      N/A
  Fusion message size       16384
  One (IPC)                 no
  Voodoo (network support)  no
  Pure Voodoo (net only)    no
  Debug supported           yes
  Debug enabled             no
  Trace support             no
  MMX support               yes
  SSE support               yes
  Network support           yes
  Include all strings       yes
  Software Rendering        yes
  Smooth SW Scaling         no
  Dithering                 none
  Dithering 565             none
  zlib compression          no
  Using setsockopt          yes

Building Tests              no
Building Tools              yes

Building System Modules:
  Linux FBDev support       yes
  Generic /dev/mem support  yes
  Mesa/DRM/KMS support      yes                -I/usr/include/libdrm   -lGLESv2 -lEGL -ldrm -lgbm
  PVR2D                     no
  EGL                       no
  X11 support               yes                   -lX11 -lXext
  X11/VDPAU support         yes              -lX11 -lXext -lvdpau
  OSX support               no
  SDL support               no
  VNC support               yes                   -lvncserver -lvncclient

Building Window Manager Modules:
  Default                   yes
  UniQuE                    no

Building Image Provider Modules:
  GIF                       yes
  JPEG                      yes                 -ljpeg
  PNG                       yes                  -I/usr/include/libpng15   -lpng15
  Imlib2                    yes                -lImlib2 -lfreetype -lX11 -lXext -ldl -lm
  PNM                       yes
  SVG                       no
  BMP                       yes
  JPEG2000                  yes             -ljasper -lm -ljpeg
  MPEG2                     yes

Building Video Provider Modules:
  GIF                       yes
  Video4Linux               yes (v2: no)
  MNG                       no

Building Font Modules:
  FreeType2                 yes                 -I/usr/include/freetype2   -lfreetype
  LinoType                  no
  Default font              yes

Building Graphics Drivers:
  3Dfx Voodoo               yes
  ATI Mach64                yes
  ATI Rage 128              yes
  ATI Radeon                no
  Cirrus EP9X               yes
  Intel i810                yes
  Intel i830                yes
  Matrox                    yes
  NeoMagic                  yes
  NSC Geode                 yes
  nVidia                    yes
  PVR2D                     no
  PXA 3xx                   yes
  Renesas SH7722/SH7723     no
  S3 Savage                 no
  SiS 315                   yes
  TI Davinci                no
  TI OMAP                   no
  TVIA CyberPro             no
  VIA CLE266                no
  VIA UniChrome             no
  VMWare                    no
  VDPAU                     yes
  --
  OpenGL                    yes (GLX: yes)
  OpenGL ES 2.0             yes (Mesa:  yes, PVR2D: no)
                                        -I/usr/include/libdrm   -DGLES2_MESA  -lGLESv2 -lEGL -ldrm -lgbm

Building Input Drivers:
  DBox2 Remote              no
  DreamBox Remote           no
  Dynapro Touchscreen       no
  ELO Touchscreen           no
  Gunze Touchscreen         no
  H3600 Touchscreen         no
  Input Hub                 yes
  Joystick                  yes
  Keyboard                  yes
  Linux Input               yes
  LiRC                      yes
  MuTouch touchscreen       yes
  Zytronic touchscreen      yes
  PS/2 Mouse                yes
  Serial Mouse              yes
  SonyPI Jogdial            yes
  tslib                     yes                   -lts
  ucb1x00 Touchscreen       no
  WM97xx Touchscreen        yes

Regards
Alex

-----Ursprüngliche Nachricht-----
Von: directfb-users-bounces@...
[mailto:directfb-users-bounces <at> directfb.org] Im Auftrag von directfb-users-request@...
Gesendet: Dienstag, 11. September 2012 12:00
An: directfb-users@...
Betreff: directfb-users Digest, Vol 91, Issue 2

Send directfb-users mailing list submissions to
	directfb-users@...

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
or, via email, send a message with subject or body 'help' to
	directfb-users-request@...

You can reach the person managing the list at
	directfb-users-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of directfb-users digest..."

Today's Topics:

   1. Re: directfb-users Digest, Vol 91, Issue 1 (Alexander Pannwitz)
   2. WebKit DFB compilation fails (Kamil Go?u?ski)
   3. Re: WebKit DFB compilation fails (Marek Pikarski)

----------------------------------------------------------------------

Message: 1
Date: Mon, 10 Sep 2012 12:44:37 +0000
From: Alexander Pannwitz <A.Pannwitz@...>
To: "directfb-users@..." <directfb-users@...>
Subject: Re: [directfb-users] directfb-users Digest, Vol 91, Issue 1
Message-ID:
	<49EF872E0EFF7C48AE2EAC91B56551620EAA4EF9@...>
Content-Type: text/plain; charset="iso-8859-1"

I have seen that "directfbgl.h" was deleted in "mesa-libGL 7", so the opengl examples seem to be outdated.
Does anyone know where to get more uptodate opengl examples?

-----Urspr?ngliche Nachricht-----
Von: directfb-users-bounces@...
[mailto:directfb-users-bounces <at> directfb.org] Im Auftrag von directfb-users-request@...
Gesendet: Freitag, 7. September 2012 12:00
An: directfb-users@...
Betreff: directfb-users Digest, Vol 91, Issue 1

Send directfb-users mailing list submissions to
	directfb-users@...

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
or, via email, send a message with subject or body 'help' to
	directfb-users-request@...

You can reach the person managing the list at
	directfb-users-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of directfb-users digest..."

Today's Topics:

   1. Re: Help getting DirectFB examples running (Denis Oliver Kropp)

----------------------------------------------------------------------

Message: 1
Date: Thu, 06 Sep 2012 23:15:24 +0200
From: Denis Oliver Kropp <dok@...>
To: directfb-users@...
Subject: Re: [directfb-users] Help getting DirectFB examples running
Message-ID: <5049126C.9010600@...>
Content-Type: text/plain; charset=ISO-8859-1

On 08/23/12 11:29, Alexander Pannwitz wrote:
> I try to get DirectFB 1.6.0 running on fedora 16. Most examples run fine, except the opengl examples.
> For "dfbtest_gl1", "dfbtest_gl2" and "dfbtest_gl3" I get the error message:

Did you build with OpenGL support?

Please send your configure output.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

------------------------------

_______________________________________________
directfb-users mailing list
directfb-users@...
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

End of directfb-users Digest, Vol 91, Issue 1
*********************************************

------------------------------

Message: 2
Date: Tue, 11 Sep 2012 11:07:50 +0200
From: Kamil Go?u?ski <kamilgolunski@...>
To: directfb-users@...
Subject: [directfb-users] WebKit DFB compilation fails
Message-ID:
	<CAG13KdieA+sKm5r0nu=G7kE19moD9PPwrWTq38MFYeL-ijtm5Q@...>
Content-Type: text/plain; charset=iso-8859-1

Hi,

I have tried to compile WebKitDFB from
http://git.directfb.org/projects/libs/WebKitDFB with HEAD of
'webkitdfb-20120627' branch with no succes.

I get following error:

  CXX    Source/WebCore/platform/graphics/libWebCore_la-MediaPlayer.lo
<command-line>:0:14: warning: missing terminating " character [enabled
by default]
Source/WebCore/platform/graphics/MediaPlayer.cpp:48:41: fatal error:
MediaPlayerPrivateGStreamer.h: No such file or directory
compilation terminated.
make[1]: *** [Source/WebCore/platform/graphics/libWebCore_la-MediaPlayer.lo]
Error 1

I used configuration from CONFIG file:

export PKG_CONFIG_PATH=/opt/directfb-1.6/lib/pkgconfig:/opt/webkit/lib/pkgconfig;
\
export LD_LIBRARY_PATH=/opt/directfb-1.6/lib; \
CXXFLAGS="-DDIRECT_ENABLE_DEBUG -DINSTRUMENT_LAYOUT_SCHEDULING" \
../autogen.sh \
prefix=/opt/directfb-1.6 \
--with-target=directfb \
--without-gtkplus \
--without-cairo-directfb \
--with-networking-backend=curl \
--enable-optimizations \
--disable-channel-messaging \
--enable-javascript-debugger \
--enable-offline-web-applications \
--enable-dom-storage \
--enable-database \
--disable-eventsource \
--disable-icon-database \
--enable-datalist \
--enable-video  \
--disable-sandbox  \
--enable-svg \
--enable-xpath \
--enable-xslt \
--enable-workers \
--enable-web-sockets \
--with-toolkit=lite

Any help would be appreciated. And thanks in advance.
Kamil Golunski

------------------------------

Message: 3
Date: Tue, 11 Sep 2012 11:14:57 +0200
From: Marek Pikarski <mass@...>
To: Marek Pikarski <mass@...>
Cc: directfb-users@..., Kamil Go?u?ski
	<kamilgolunski@...>
Subject: Re: [directfb-users] WebKit DFB compilation fails
Message-ID: <504F0111.9020503@...>
Content-Type: text/plain; charset=UTF-8

Marek Pikarski wrote:
> Hi,
> sorry you must configure with --enable-cairo-directfb

--with-cairo-directfb

>  to enable the
> mediaplayer for now (will be fixed soon).
> Regards Marek
>
>
> Kamil Go?u?ski wrote:
>   
>> Hi,
>>
>> I have tried to compile WebKitDFB from
>> http://git.directfb.org/projects/libs/WebKitDFB with HEAD of
>> 'webkitdfb-20120627' branch with no succes.
>>
>> I get following error:
>>
>>   CXX    Source/WebCore/platform/graphics/libWebCore_la-MediaPlayer.lo
>> <command-line>:0:14: warning: missing terminating " character [enabled
>> by default]
>> Source/WebCore/platform/graphics/MediaPlayer.cpp:48:41: fatal error:
>> MediaPlayerPrivateGStreamer.h: No such file or directory
>> compilation terminated.
>> make[1]: *** [Source/WebCore/platform/graphics/libWebCore_la-MediaPlayer.lo]
>> Error 1
>>
>> I used configuration from CONFIG file:
>>
>> export PKG_CONFIG_PATH=/opt/directfb-1.6/lib/pkgconfig:/opt/webkit/lib/pkgconfig;
>> \
>> export LD_LIBRARY_PATH=/opt/directfb-1.6/lib; \
>> CXXFLAGS="-DDIRECT_ENABLE_DEBUG -DINSTRUMENT_LAYOUT_SCHEDULING" \
>> ../autogen.sh \
>> prefix=/opt/directfb-1.6 \
>> --with-target=directfb \
>> --without-gtkplus \
>> --without-cairo-directfb \
>> --with-networking-backend=curl \
>> --enable-optimizations \
>> --disable-channel-messaging \
>> --enable-javascript-debugger \
>> --enable-offline-web-applications \
>> --enable-dom-storage \
>> --enable-database \
>> --disable-eventsource \
>> --disable-icon-database \
>> --enable-datalist \
>> --enable-video  \
>> --disable-sandbox  \
>> --enable-svg \
>> --enable-xpath \
>> --enable-xslt \
>> --enable-workers \
>> --enable-web-sockets \
>> --with-toolkit=lite
>>
>> Any help would be appreciated. And thanks in advance.
>> Kamil Golunski
>> _______________________________________________
>> directfb-users mailing list
>> directfb-users@...
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>>
>>   
>>     
>
>
>   

--

-- 
... {it is} something unearthly ... If there are sentient beings on other planets, then they play Go.
 - Emanuel Lasker, chess world champion

------------------------------

_______________________________________________
directfb-users mailing list
directfb-users@...
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

End of directfb-users Digest, Vol 91, Issue 2
*********************************************
Ha Nguyen | 13 Sep 2012 11:38
Picon

surface is larger than the actual TV's screen

Hi everybody,


I notice that my full screen surface (1280x720 pixel) doesn't fit to my TV's screen. The (0,0) and (1279,719) are seemed to be drawn outside the visible of my TV's screen at somewhere (-20,-15) and (1300, 735) instead.

Has anyone have some inputs how this can be solved. 

We have seen a problem when the parts drawn outside the TV screen are mixed back with subsequent FillRectangle() on visible TV screen when DSPD_SRC_OVER rule is used. This happened only if hardware accel is used. Below is the code that we see the issue. The off screen part of the red rectangle are mixed back with the two gradient bars.

Thank you so much for your input!
/ha

#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;
#define DFBCHECK(x...) \
  { \
    DFBResult err = x; \
\
    if (err != DFB_OK) \
      { \
        fprintf( stderr, "%s <%d>:\n\t", __FILE__, __LINE__ ); \
        DirectFBErrorFatal( #x, err ); \
      } \
  }

static IDirectFBSurface *logo = NULL;
static IDirectFBSurface *offscreen = NULL;

int main (int argc, char **argv)
{
  int i;

  DFBSurfaceDescription dsc;

  DFBCHECK (DirectFBInit (&argc, &argv));
  DFBCHECK (DirectFBCreate (&dfb));
  DFBCHECK (dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN));

  // create primary surface
  dsc.flags = DSDESC_CAPS;
  dsc.caps  = (DFBSurfaceCapabilities)(DSCAPS_PRIMARY | DSCAPS_FLIPPING);
  dsc.pixelformat = DSPF_ARGB;
  DFBCHECK (dfb->CreateSurface( dfb, &dsc, &primary ));
  DFBCHECK (primary->GetSize (primary, &screen_width, &screen_height));

  // clear primary surface
  primary->SetColor (primary, 0xff, 0xff, 0xff, 0xff);
  DFBCHECK (primary->FillRectangle (primary, 0, 0, screen_width, screen_height));

  // create offscreen surface
  dsc.flags = (DFBSurfaceDescriptionFlags)(DSDESC_WIDTH | DSDESC_HEIGHT);
  dsc.width = screen_width;
  dsc.height = screen_height;
  DFBCHECK (dfb->CreateSurface( dfb, &dsc, &offscreen ));
  offscreen->SetColor (offscreen, 0xff, 0xff, 0xff, 0xff);
  DFBCHECK (offscreen->FillRectangle (offscreen, 0, 0, screen_width, screen_height));

  // draw red rectangle on Offscreen
  offscreen->SetColor (offscreen, 0xff, 0x00, 0x00, 0xff);
  DFBCHECK (offscreen->FillRectangle (offscreen, 300, 0, 500, 100));

  offscreen->SetColor (offscreen, 0x00, 0x00, 0xff, 0xff);
  DFBCHECK (offscreen->FillRectangle (offscreen, 0, 460, 500, 50));

  // create gradient bar
  dsc.flags = (DFBSurfaceDescriptionFlags)(DSDESC_WIDTH | DSDESC_HEIGHT);
  dsc.width = 1;
  dsc.height = 128;
  DFBCHECK(dfb->CreateSurface( dfb, &dsc, &logo ));

  {
      // Create the gradient by writing directly to the surface
      void* data;
      int pitch;
      DFBCHECK(logo->Lock(logo, DSLF_WRITE, &data, &pitch));
      for (int i=0; i < 128; i++)
      {
 unsigned char* line = &((unsigned char*)data)[i*pitch];

 unsigned char r = 0x50 + (0xff-0x50)*i/128;
 unsigned char g = 0x80 + (0xff-0x80)*i/128;
 unsigned char b = 0xa0 + (0xff-0xa0)*i/128;
 unsigned char a = 0x30 + (0xff-0x30)*i/128;

 unsigned int color = b;
 color |= g << 8;
 color |= r << 16;
 color |= a << 24;
 *((unsigned int*)line) = color;
      }

      DFBCHECK(logo->Unlock(logo));
  }

  // Set render flags
  unsigned char opacity = (unsigned char)(0.6f * 255);
  offscreen->SetColor(offscreen, opacity, opacity, opacity, opacity);
  offscreen->SetPorterDuff(offscreen, DSPD_SRC_OVER);
  offscreen->SetBlittingFlags(offscreen, (DFBSurfaceBlittingFlags)(DSBLIT_BLEND_ALPHACHANNEL | DSBLIT_BLEND_COLORALPHA | DSBLIT_SRC_PREMULTCOLOR));
  offscreen->SetRenderOptions(offscreen, (DFBSurfaceRenderOptions)(DSRO_SMOOTH_UPSCALE | DSRO_SMOOTH_DOWNSCALE));

  //Blit two gradient bars to offscreen surf
  DFBRectangle srec = {0, 0, 1, 128};
  DFBRectangle drec = {0, 486, 1280, 15};
  DFBCHECK (offscreen->StretchBlit (offscreen, logo, &srec, &drec));
  drec.x = 0; drec.y = 426; drec.w = 1280; drec.h = 15;
  DFBCHECK (offscreen->StretchBlit (offscreen, logo, &srec, &drec));

  // flip Offscreen to primary
  DFBCHECK (primary->Blit (primary, offscreen, NULL, 0, 0));
  DFBCHECK (primary->Flip (primary, NULL, DSFLIP_BLIT));

  sleep (60);

  offscreen->Release (offscreen);
  logo->Release (logo);
  primary->Release (primary);
  dfb->Release (dfb);
  return 0;
}

_______________________________________________
directfb-users mailing list
directfb-users@...
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
Alla N | 12 Sep 2012 16:17
Picon

Re: saving current frame

Thank you. What about jpeg format? Can DirectFB save a snapshot to
this format or maybe to convert a PPM format to jpeg?

On Wed, Sep 12, 2012 at 4:04 PM, Oliver Gabel
<oliver.gabel@...> wrote:
> Do you want to take a screenshot?
> -> Quoting from DirectFb/docs/README.screenshots:
>
>
> How to make DirectFB screenshots
> --------------------------------
>
> There are two ways to generate DirectFB screenshots. The easy way is
> to set the "screenshot-dir" parameter in the DirectFB configuration
> file directfbrc or to pass it as a command-line option. See the
> directfbrc man-page for more details. You can then generate screen
> dumps in the PPM format by pressing the PrintScreen key.  The PPM
> files can easily be converted to others formats using for example the
> netpbm tools.
>
> The hard way to do screenshots is to read directly from the frame
> buffer device. This works for all applications that use the frame
> buffer device, not only for DirectFB applications.
>
> The resulting data is then converted to a more convenient format using
> the netpbm graphics conversion tools.  If the frame buffer is not
> running at 24 bit depth, the data has to be propagated to 24bit RGB
> before netpbm can handle it. The tools directory contains the source
> for two small utilities that do just this:
>
>   raw16toraw24 is a small tool that reads 16bit RGB565 data from stdin,
>   converts to 24bit RGB888 data and writes it to stdout.
>
>   raw15toraw24 is a small tool that reads 15bit RGB555 data from stdin,
>   converts to 24bit RGB888 data and writes it to stdout.
>
>   raw32toraw24 is a small tool that reads 32bit ARGB data from stdin,
>   converts to 24bit RGB888 data and writes it to stdout.
>
>
> The following steps have to be performed to take screenshots:
>
> Step 1 - Log in from another computer using ssh or telnet. Start your
>          application and stop it by pressing Ctrl+C in the remote
>          terminal.
>
> Step 2 - Read data from /dev/fb0 and write it to a file.
>
>  examples:
>   [15bit]  raw15toraw24 < /dev/fb0 > raw24.tmp
>   [16bit]  raw16toraw24 < /dev/fb0 > raw24.tmp
>   [24bit]  cat /dev/fb0 > raw24.tmp
>   [32bit]  raw32toraw24 < /dev/fb0 > raw24.tmp
>
> Step 2 - Convert data to ppm using rawtoppm and specify the resolution of
>          the frame buffer.
>
>  example:  rawtoppm 800 600 raw24.tmp > ppm24.tmp
>
> Step 3 - Convert ppm to png using pnmtopng.
>
>  example : pnmtopng <ppm24.tmp >screenshot.png
>
>
> Thats it!
>
>
>
>
> Am 12.09.2012 12:15, schrieb Alla N:
>>
>> Hi,
>>
>> I want to save a  framebuffer to some file. Can I do it with DirectFB?
>>
>> Thanks.
>> _______________________________________________
>> directfb-users mailing list
>> directfb-users@...
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>>
>
Alla N | 12 Sep 2012 12:15
Picon

saving current frame

Hi,

I want to save a  framebuffer to some file. Can I do it with DirectFB?

Thanks.
Marek Pikarski | 11 Sep 2012 11:14
Picon

Re: WebKit DFB compilation fails

Marek Pikarski wrote:
> Hi,
> sorry you must configure with --enable-cairo-directfb

--with-cairo-directfb

>  to enable the
> mediaplayer for now (will be fixed soon).
> Regards Marek
>
>
> Kamil Gołuński wrote:
>   
>> Hi,
>>
>> I have tried to compile WebKitDFB from
>> http://git.directfb.org/projects/libs/WebKitDFB with HEAD of
>> 'webkitdfb-20120627' branch with no succes.
>>
>> I get following error:
>>
>>   CXX    Source/WebCore/platform/graphics/libWebCore_la-MediaPlayer.lo
>> <command-line>:0:14: warning: missing terminating " character [enabled
>> by default]
>> Source/WebCore/platform/graphics/MediaPlayer.cpp:48:41: fatal error:
>> MediaPlayerPrivateGStreamer.h: No such file or directory
>> compilation terminated.
>> make[1]: *** [Source/WebCore/platform/graphics/libWebCore_la-MediaPlayer.lo]
>> Error 1
>>
>> I used configuration from CONFIG file:
>>
>> export PKG_CONFIG_PATH=/opt/directfb-1.6/lib/pkgconfig:/opt/webkit/lib/pkgconfig;
>> \
>> export LD_LIBRARY_PATH=/opt/directfb-1.6/lib; \
>> CXXFLAGS="-DDIRECT_ENABLE_DEBUG -DINSTRUMENT_LAYOUT_SCHEDULING" \
>> ../autogen.sh \
>> prefix=/opt/directfb-1.6 \
>> --with-target=directfb \
>> --without-gtkplus \
>> --without-cairo-directfb \
>> --with-networking-backend=curl \
>> --enable-optimizations \
>> --disable-channel-messaging \
>> --enable-javascript-debugger \
>> --enable-offline-web-applications \
>> --enable-dom-storage \
>> --enable-database \
>> --disable-eventsource \
>> --disable-icon-database \
>> --enable-datalist \
>> --enable-video  \
>> --disable-sandbox  \
>> --enable-svg \
>> --enable-xpath \
>> --enable-xslt \
>> --enable-workers \
>> --enable-web-sockets \
>> --with-toolkit=lite
>>
>> Any help would be appreciated. And thanks in advance.
>> Kamil Golunski
>> _______________________________________________
>> directfb-users mailing list
>> directfb-users <at> directfb.org
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>>
>>   
>>     
>
>
>   

--

-- 
... {it is} something unearthly ... If there are sentient beings on other planets, then they play Go.
 - Emanuel Lasker, chess world champion

_______________________________________________
directfb-users mailing list
directfb-users <at> directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Gmane