Re: gspca v4l2

Aurélien Minet <[email protected]>
Newsgroups gmane.linux.drivers.spca50x.devel
Message-ID <[email protected]>
Hi Jean-Francois,


[snip]

> It is an estimated compression factor of JPEG frames. For example,
> 640x480 images are composed of 307200 pixels, which gives a buffer
> of the same size (307200 bytes). As it is JPEG compressed, the size
> of the frames is about 25000 bytes. With a comp_fac value 30, the
> frame buffers allocated by gspca and the application have a size
> 92160 bytes only (note: comp_fac could be 20 for 640x320, but MUST
> be 30 for 320x240 - the frame size is about 15 kB).
ok, I was missing comp_fac = compression factor yesterday "comme une cloche" ...

>>> 3) extract the trace from /var/log/kern.log
>> trace is in attachment (done with 0.0.19)
> 
> Thank you. I looked at it and I found a bug in frame generation.
> It is fixed in the version 0.0.20.

testing with this new version :

luvcview is auto-quitting on error grabbing
"Unable to start capture: 28.
Error grabbing
Clean Up done Quit "
"

module debug output in attachment

> BTW, as you are looking at win traces for an other webcam, I join
> a little tcl script which simplifies usbsnoop analyse...
Thanks, I'll try to snoop after diner.

Regards


Aurélien

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Spca50x-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spca50x-devs
spca508_20.log (text/x-log, 5.7 KB)
[ 2505.321741] spca508: camera probe
[ 2505.321749] gspca: probing 8086:0110
[ 2505.326622] spca508: Read from GLOBAL: USB Vendor ID 0x8086
[ 2505.332621] spca508: Read from GLOBAL: USB Product ID 0x0110
[ 2505.335605] spca508: Read from GLOBAL: Window 1 average luminance 120
[ 2505.512424] usbcore: registered new interface driver spca508
[ 2505.512433] spca508: v0.0.20 registered
[ 2543.328097] gspca: opening
[ 2543.328485] gspca: open OK
[ 2543.328570] gspca: querycap
[ 2543.328575] gspca main driver: v4l2 ioctl VIDIOC_QUERYCAP, dir=r- (0x80685600)
[ 2543.328581] gspca main driver: driver=spca508, card=Intel Easy PC Camera, bus=0000:00:02.1, version=0x00000014, capabilities=0x05000001
[ 2543.328799] gspca main driver: v4l2 ioctl VIDIOC_S_FMT, dir=rw (0xc0cc5605)
[ 2543.328804] gspca main driver: type=video-cap
[ 2543.328808] gspca main driver: width=320, height=240, format=MJPG, field=any, bytesperline=0 sizeimage=0, colorspace=0
[ 2543.328812] gspca: set fmt cap MJPG 320x240
[ 2543.328815] gspca: try fmt cap MJPG 320x240
[ 2543.328817] gspca: new format YUYV 320x240
[ 2543.329206] gspca main driver: v4l2 ioctl VIDIOC_S_PARM, dir=rw (0xc0cc5616)
[ 2543.329211] gspca main driver: type=1
[ 2543.329325] gspca: reqbufs 4
[ 2543.329500] gspca: frame alloc fr_sz: 153600
[ 2543.329503] gspca: new fr_sz: 155648
[ 2543.330675] gspca: reqbufs st:0 c:4
[ 2543.330684] gspca main driver: v4l2 ioctl VIDIOC_REQBUFS, dir=rw (0xc0145608)
[ 2543.330689] gspca main driver: count=4, type=video-cap, memory=mmap
[ 2543.333561] gspca: querybuf
[ 2543.333572] gspca main driver: v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
[ 2543.333580] gspca main driver: 00:00:00.00000000 index=0, type=video-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/userptr=0x00000000, length=155648
[ 2543.333585] gspca main driver: timecode= 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2543.334004] gspca: mmap start:b6aa8000 size:155648
[ 2543.334232] gspca: querybuf
[ 2543.334235] gspca main driver: v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
[ 2543.334241] gspca main driver: 00:00:00.00000000 index=1, type=video-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/userptr=0x00026000, length=155648
[ 2543.334245] gspca main driver: timecode= 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2543.334471] gspca: mmap start:b6a7a000 size:155648
[ 2543.334556] gspca: querybuf
[ 2543.334559] gspca main driver: v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
[ 2543.334564] gspca main driver: 00:00:00.00000000 index=2, type=video-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/userptr=0x0004c000, length=155648
[ 2543.334569] gspca main driver: timecode= 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2543.334771] gspca: mmap start:b6a54000 size:155648
[ 2543.334856] gspca: querybuf
[ 2543.334859] gspca main driver: v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
[ 2543.334864] gspca main driver: 00:00:00.00000000 index=3, type=video-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/userptr=0x00072000, length=155648
[ 2543.334869] gspca main driver: timecode= 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2543.335069] gspca: mmap start:b6a2e000 size:155648
[ 2543.335155] gspca: qbuf 0
[ 2543.335219] gspca: qbuf q:1 i:0 o:0
[ 2543.335222] gspca main driver: v4l2 ioctl VIDIOC_QBUF, dir=rw (0xc044560f)
[ 2543.335227] gspca main driver: 00:00:00.00000000 index=0, type=video-cap, bytesused=0, flags=0x00000002, field=0, sequence=0, memory=mmap, offset/userptr=0x00000000, length=0
[ 2543.335232] gspca main driver: timecode= 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2543.335438] gspca: qbuf 1
[ 2543.335546] gspca: qbuf q:2 i:0 o:0
[ 2543.335548] gspca main driver: v4l2 ioctl VIDIOC_QBUF, dir=rw (0xc044560f)
[ 2543.335553] gspca main driver: 00:00:00.00000000 index=1, type=video-cap, bytesused=0, flags=0x00000002, field=0, sequence=0, memory=mmap, offset/userptr=0x00000000, length=0
[ 2543.335558] gspca main driver: timecode= 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2543.335764] gspca: qbuf 2
[ 2543.335827] gspca: qbuf q:3 i:0 o:0
[ 2543.335830] gspca main driver: v4l2 ioctl VIDIOC_QBUF, dir=rw (0xc044560f)
[ 2543.335835] gspca main driver: 00:00:00.00000000 index=2, type=video-cap, bytesused=0, flags=0x00000002, field=0, sequence=0, memory=mmap, offset/userptr=0x00000000, length=0
[ 2543.335839] gspca main driver: timecode= 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2543.336240] gspca: qbuf 3
[ 2543.336320] gspca: qbuf q:0 i:0 o:0
[ 2543.336324] gspca main driver: v4l2 ioctl VIDIOC_QBUF, dir=rw (0xc044560f)
[ 2543.336329] gspca main driver: 00:00:00.00000000 index=3, type=video-cap, bytesused=0, flags=0x00000002, field=0, sequence=0, memory=mmap, offset/userptr=0x00000000, length=0
[ 2543.336333] gspca main driver: timecode= 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 2543.474623] gspca main driver: v4l2 ioctl VIDIOC_STREAMON, dir=-w (0x40045612)
[ 2543.474636] gspca main driver: type=video-cap
[ 2543.474639] gspca: stream on
[ 2543.474957] gspca: init transfer
[ 2543.474961] gspca: set iso ep
[ 2543.474964] gspca: get iso nbalt 8
[ 2543.474966] gspca: test ISOC alt 7 endpoint 0x81
[ 2543.474969] gspca: ISOC alt 7 endpoint 0x81 OK
[ 2543.494345] gspca: iso packet size 1023
[ 2543.502184] gspca: submit all URBs
[ 2543.502453] gspca: usb_submit_urb [0] ret: -28
[ 2543.502457] gspca: kill transfer
[ 2543.502579] gspca main driver: err:
[ 2543.502582] gspca main driver: v4l2 ioctl VIDIOC_STREAMON, dir=-w (0x40045612)
[ 2543.662394] gspca: closing
[ 2543.662730] gspca: frame free
[ 2543.662812] gspca: closed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.