hi, I meet a problem, directfb 1.2.6 can not work on my dm6446 board. the display is not regular. when i do df_dok .etc, the screen is blue.
i found the pitch is not correctly. i write a demo code in attachment. i get the layer, then get surfacem then lock it and get pitch. for video layer it should be 2176. i also add a info info gfxdrivers/davinci (print line_length), and it show pitch show be 2176. but i found 1440 used in directfb. any patches? thanks. NEW: today, I tried Lock the surface, then directly copy uyvy data to buffer using pitch 2176, the display is ok. PS: I use TI'LSP 1.10 patch level 50. ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.6 |~~~~~~~~~~~~~~~~~~~~~~~~~~ (c) 2001-2008 The world wide DirectFB Open Source Community (c) 2000-2004 Convergence (integrated media) GmbH ---------------------------------------------------------------- (*) DirectFB/Core: Single Application Core. (2008-11-03 06:09) (!) DirectFB/Keyboard: Could not open() /dev/tty0! --> No such file or directory (*) DirectFB/Genefx: No software fallbacks supported (*) Davinci/Driver: Mapped fb0 with length 1658880 at 0x84e00000 to 0x4123b000 line_length: 1440 (*) Davinci/Driver: Mapped fb1 with length 3760128 at 0x84800000 to 0x413d0000 line_length: 2176 (*) Davinci/Driver: Mapped fb2 with length 1658880 at 0x84400000 to 0x41766000 line_length: 1440 (*) Davinci/Driver: Mapped fb3 with length 3760128 at 0x84000000 to 0x418fb000 line_length: 2176 (!) Direct/Util: opening '/dev/c64x' failed --> No such device or address (!!!) *** WARNING [running without DSP acceleration] *** [davinci_gfxdriver.c:238 in driver_init_driver()] (*) DirectFB/Graphics: Texas Instruments Davinci 0.4 (Telio AG) (*) DirectFB/Core/WM: Default 0.3 (directfb.org) [====]: BlittingFlags : [====]: DrawingFlags : [====]: video_memory: 16777216 SCREEN: 720 x 480 [====]: LAYER (0): TI Davinci OSD [====]: type: GRAPHICS [====]: caps: SURFACE OPACITY ALPHACHANNEL SRC_COLORKEY SCREEN_POSITION [====]: regions: 0 [====]: sources: 0 [====]: clip_regions: 0 [====]: SURFACE CAPS : VIDEOONLY [====]: 00012A24 FMT : 00418C04 [====]: 00012A24 PITCH : 2880 [====]: 00012A24 X : 0 [====]: 00012A24 Y : 0 [====]: 00012A24 W : 720 [====]: 00012A24 H : 480 LAYER 0 -- INITED SUCCESSFUL (*) line_length: 2176 [====]: LAYER (0): TI Davinci Video [====]: type: VIDEO STILL_PICTURE [====]: caps: SURFACE SCREEN_LOCATION SCREEN_POSITION SCREEN_SIZE [====]: regions: 0 [====]: sources: 0 [====]: clip_regions: 0 [====]: SURFACE CAPS : VIDEOONLY [====]: 00012A88 FMT : 00200808 [====]: 00012A88 PITCH : 1440 [====]: 00012A88 X : 0 [====]: 00012A88 Y : 0 [====]: 00012A88 W : 720 [====]: 00012A88 H : 480 LAYER 1 -- INITED SUCCESSFUL -- Deng XueFeng <[EMAIL PROTECTED]>
demo_dfb.c
Description: Binary data
_______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users