On Friday 23 December 2005 08:55, Denis Oliver Kropp wrote:
> Fixed that single app core specific problem :)
Ah, good :)
I'm now trying to find out why all the captured data is scrunched up in the
top 2-3 lines of the layer. It looks like a stride is badly off somewhere. I
patched V4L2_playto() to set the bytesperline correctly, but that has no
effect.
Does V4L2 currently work for anybody?
While stepping through I noticed that the video framebuffers are reported as
NULL and 0 size, but that may be normal with V4L2_MEMORY_OVERLAY...
(-) [Main Thread 0.472] ( 6319) DirectFB/Video4Linux2: v4l2_playto...
(-) [Main Thread 0.472] ( 6319) DirectFB/Video4Linux2:
surface->width:720, surface->height:576.
(-) [Main Thread 0.472] ( 6319) w:720, h:576, bpp:16, bpl:1440,
base:0xd8000000
(-) [Main Thread 0.472] ( 6319) DirectFB/Video4Linux2: len:0x00000000, 0
=> 0x00000000
(-) [Main Thread 0.472] ( 6319) DirectFB/Video4Linux2: len:0x00000000, 1
=> 0x00000000
(!) [Main Thread 0.472] ( 6319) *** Assumption [core != NULL] failed ***
[core.c:707 in dfb_core_cleanup_add()]
Cheers,
Rob
--
I explode like a bomb. No-one is spared.
My power is my mass times the speed of light squared.
- MC Hawking
Index: interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_v4l.c
===================================================================
RCS file: /cvs/directfb/DirectFB/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_v4l.c,v
retrieving revision 1.88
diff -u -r1.88 idirectfbvideoprovider_v4l.c
--- interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_v4l.c 31 Oct 2005 11:41:23 -0000 1.88
+++ interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_v4l.c 23 Dec 2005 14:29:33 -0000
@@ -1374,6 +1374,8 @@
fb.base = (void *) dfb_gfxcard_memory_physical(NULL, 0);
fb.fmt.width = surface->width;
fb.fmt.height = surface->height;
+ fb.fmt.bytesperline = DFB_BYTES_PER_LINE(surface->format,
+ surface->width);
fb.fmt.pixelformat = palette;
D_DEBUG("w:%d, h:%d, bpp:%d, bpl:%d, base:0x%08lx\n",fb.fmt.width, fb.fmt.height,bpp,fb.fmt.bytesperline, (unsigned long)fb.base);
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users