Web lists-archives.com

Re: [Spca50x-devs] FYI: status of 0ac8:307b




On Thu, 11 Dec 2008 13:56:44 +0600, Costantino Leandro  
<le_costantino@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Try with v4l2 apps, since v4l1 wont work without libv4l conversion.
> As a matter of test, dowload:
>     http://moinejf.free.fr/svv.c
> and
>     svv -g   should dump a image.dat.
>
> if you have any doubt, visit my blog for more information:
>     http://deaglecito.blogspot.com
>
> Good Luck
> Costantino Leandro
>

Thanks for your reply.
Build the latest version libv4l failed.

make -C libv4lconvert V4L2_LIB_VERSION=0.5.7 all
make[1]: Entering directory `/var/tmp/libv4l-0.5.7/libv4lconvert'
cc -c -MMD -I../include -I../../../../linux/include -fvisibility=hidden  
-fPIC -g -O1 -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes  
-Wmissing-prototypes -o libv4lconvert.o libv4lconvert.c
In file included from libv4lconvert.c:24:
../include/libv4lconvert.h:77: warning: 'struct v4l2_frmsizeenum' declared  
inside parameter list
../include/libv4lconvert.h:77: warning: its scope is only this definition  
or declaration, which is probably not what you want
../include/libv4lconvert.h:82: warning: 'struct v4l2_frmivalenum' declared  
inside parameter list
In file included from libv4lconvert.c:25:
libv4lconvert-priv.h:88: error: array type has incomplete element type
libv4lconvert.c: In function 'v4lconvert_get_framesizes':
libv4lconvert.c:842: error: variable 'frmsize' has initializer but  
incomplete type
libv4lconvert.c:842: error: unknown field 'pixel_format' specified in  
initializer
libv4lconvert.c:842: warning: excess elements in struct initializer
libv4lconvert.c:842: warning: (near initialization for 'frmsize')
libv4lconvert.c:842: error: storage size of 'frmsize' isn't known
libv4lconvert.c:846: error: 'VIDIOC_ENUM_FRAMESIZES' undeclared (first use  
in this function)
libv4lconvert.c:846: error: (Each undeclared identifier is reported only  
once
libv4lconvert.c:846: error: for each function it appears in.)
libv4lconvert.c:856: error: 'V4L2_FRMSIZE_TYPE_DISCRETE' undeclared (first  
use in this function)
libv4lconvert.c:861: error: 'V4L2_FRMSIZE_TYPE_CONTINUOUS' undeclared  
(first use in this function)
libv4lconvert.c:862: error: 'V4L2_FRMSIZE_TYPE_STEPWISE' undeclared (first  
use in this function)
libv4lconvert.c: At top level:
libv4lconvert.c:900: error: conflicting types for  
'v4lconvert_enum_framesizes'
../include/libv4lconvert.h:77: error: previous declaration of  
'v4lconvert_enum_framesizes' was here
libv4lconvert.c: In function 'v4lconvert_enum_framesizes':
libv4lconvert.c:901: error: dereferencing pointer to incomplete type
libv4lconvert.c:902: error: 'VIDIOC_ENUM_FRAMESIZES' undeclared (first use  
in this function)
libv4lconvert.c:904: error: dereferencing pointer to incomplete type
libv4lconvert.c:909: error: dereferencing pointer to incomplete type
libv4lconvert.c:909: error: dereferencing pointer to incomplete type
libv4lconvert.c:910: error: dereferencing pointer to incomplete type
libv4lconvert.c:911: error: 'V4L2_FRMSIZE_TYPE_DISCRETE' undeclared (first  
use in this function)
libv4lconvert.c:912: error: dereferencing pointer to incomplete type
libv4lconvert.c:912: error: dereferencing pointer to incomplete type
libv4lconvert.c:914: error: 'V4L2_FRMSIZE_TYPE_CONTINUOUS' undeclared  
(first use in this function)
libv4lconvert.c:915: error: 'V4L2_FRMSIZE_TYPE_STEPWISE' undeclared (first  
use in this function)
libv4lconvert.c:916: error: dereferencing pointer to incomplete type
libv4lconvert.c:916: error: dereferencing pointer to incomplete type
libv4lconvert.c: At top level:
libv4lconvert.c:924: warning: 'struct v4l2_frmivalenum' declared inside  
parameter list
libv4lconvert.c:925: error: conflicting types for  
'v4lconvert_enum_frameintervals'
../include/libv4lconvert.h:82: error: previous declaration of  
'v4lconvert_enum_frameintervals' was here
libv4lconvert.c: In function 'v4lconvert_enum_frameintervals':
libv4lconvert.c:929: error: dereferencing pointer to incomplete type
libv4lconvert.c:930: error: 'VIDIOC_ENUM_FRAMEINTERVALS' undeclared (first  
use in this function)
libv4lconvert.c:939: error: dereferencing pointer to incomplete type
libv4lconvert.c:940: error: dereferencing pointer to incomplete type
libv4lconvert.c:941: error: dereferencing pointer to incomplete type
libv4lconvert.c:949: error: dereferencing pointer to incomplete type
libv4lconvert.c:950: error: dereferencing pointer to incomplete type
libv4lconvert.c:951: error: dereferencing pointer to incomplete type
libv4lconvert.c:952: error: dereferencing pointer to incomplete type
libv4lconvert.c:954: error: dereferencing pointer to incomplete type
libv4lconvert.c:954: error: dereferencing pointer to incomplete type
libv4lconvert.c:971: error: dereferencing pointer to incomplete type
libv4lconvert.c:972: error: dereferencing pointer to incomplete type
libv4lconvert.c:973: error: dereferencing pointer to incomplete type
libv4lconvert.c:978: error: dereferencing pointer to incomplete type
libv4lconvert.c:994: error: dereferencing pointer to incomplete type
libv4lconvert.c:995: error: dereferencing pointer to incomplete type
libv4lconvert.c:996: error: dereferencing pointer to incomplete type
make[1]: *** [libv4lconvert.o] Error 1
make[1]: Leaving directory `/var/tmp/libv4l-0.5.7/libv4lconvert'
make: *** [all] Error 2

I install libv4l version 0.4.0. When i run svv -g:

[root@localhost remote]# ./svv -g
raw pixfmt: JPEG 640x480
pixfmt: RGB3 640x480
mmap method
image dumped to 'image.dat'

At the same time in the log:

Dec 12 13:05:36 localhost kernel: gspca: main v2.4.0 registered
Dec 12 13:05:51 localhost kernel: gspca: probing 0ac8:307b
Dec 12 13:05:53 localhost kernel: zc3xx: probe 2wr ov vga 0x0000
Dec 12 13:05:53 localhost kernel: zc3xx: probe 3wr vga 1 0x4001
Dec 12 13:05:53 localhost kernel: zc3xx: probe 3wr vga 2 0x0000
Dec 12 13:05:53 localhost kernel: zc3xx: Sensor UNKNOW_0 force Tas5130
Dec 12 13:05:53 localhost kernel: gspca: probe ok
Dec 12 13:05:53 localhost kernel: usbcore: registered new driver zc3xx
Dec 12 13:05:53 localhost kernel: zc3xx: registered
Dec 12 13:06:44 localhost kernel: gspca: svv open
Dec 12 13:06:44 localhost kernel: gspca: open done
Dec 12 13:06:44 localhost kernel: gspca: try fmt cap JPEG 640x480
Dec 12 13:06:44 localhost kernel: gspca: try fmt cap JPEG 640x480
Dec 12 13:06:44 localhost kernel: gspca: frame alloc frsz: 115790
Dec 12 13:06:44 localhost kernel: gspca: reqbufs st:0 c:4
Dec 12 13:06:44 localhost kernel: gspca: mmap start:b7e52000 size:118784
Dec 12 13:06:44 localhost kernel: gspca: mmap start:b7e35000 size:118784
Dec 12 13:06:44 localhost kernel: gspca: mmap start:b7e18000 size:118784
Dec 12 13:06:44 localhost kernel: gspca: mmap start:b7dfb000 size:118784
Dec 12 13:06:44 localhost kernel: gspca: qbuf 0
Dec 12 13:06:44 localhost kernel: gspca: qbuf q:1 i:0 o:0
Dec 12 13:06:44 localhost kernel: gspca: qbuf 1
Dec 12 13:06:44 localhost kernel: gspca: qbuf q:2 i:0 o:0
Dec 12 13:06:44 localhost kernel: gspca: qbuf 2
Dec 12 13:06:44 localhost kernel: gspca: qbuf q:3 i:0 o:0
Dec 12 13:06:44 localhost kernel: gspca: qbuf 3
Dec 12 13:06:44 localhost kernel: gspca: qbuf q:0 i:0 o:0
Dec 12 13:06:44 localhost kernel: gspca: init transfer alt 7
Dec 12 13:06:44 localhost kernel: gspca: use alt 6 ep 0x81
Dec 12 13:06:44 localhost kernel: gspca: isoc 32 pkts size 768 =  
bsize:24576
Dec 12 13:06:44 localhost kernel: zc3xx: gamma:4 contrast:128 gamma coeff:  
0/128
Dec 12 13:06:45 localhost kernel: zc3xx: tb: 13 38 59 79 92 a7 b9 c8
Dec 12 13:06:45 localhost kernel: zc3xx:     d4 df e7 ee f4 f9 fc ff
Dec 12 13:06:45 localhost kernel: zc3xx:     26 22 20 1c 16 13 10 0d
Dec 12 13:06:45 localhost kernel: zc3xx:     0b 09 07 06 05 04 03 02
Dec 12 13:06:45 localhost kernel: gspca: stream on OK JPEG 640x480
Dec 12 13:06:45 localhost kernel: gspca: poll
Dec 12 13:06:45 localhost kernel: gspca: isoc irq
Dec 12 13:06:45 localhost kernel: gspca: packet [0] o:0 l:768
Dec 12 13:06:45 localhost kernel: gspca: add t:3 l:0
Dec 12 13:06:45 localhost kernel: gspca: add t:1 l:136
Dec 12 13:06:45 localhost kernel: gspca: add t:2 l:425
Dec 12 13:06:45 localhost kernel: gspca: add t:2 l:7
Dec 12 13:06:45 localhost kernel: gspca: add t:2 l:21
Dec 12 13:06:45 localhost kernel: gspca: add t:2 l:750
Dec 12 13:06:45 localhost kernel: gspca: packet [1] o:768 l:768
Dec 12 13:06:45 localhost kernel: gspca: add t:2 l:768
Dec 12 13:06:45 localhost kernel: gspca: packet [2] o:1536 l:768
... Many of these lines ...
Dec 12 13:06:45 localhost kernel: gspca: add t:2 l:86
Dec 12 13:06:45 localhost kernel: gspca: packet [30] o:23040 l:84
Dec 12 13:06:45 localhost kernel: gspca: add t:2 l:84
Dec 12 13:06:45 localhost kernel: gspca: packet [31] o:23808 l:86
Dec 12 13:06:45 localhost kernel: gspca: add t:2 l:86
Dec 12 13:06:45 localhost kernel: gspca: svv close
Dec 12 13:06:45 localhost kernel: gspca: kill transfer
Dec 12 13:06:45 localhost kernel: gspca: isoc irq
Dec 12 13:06:45 localhost kernel: gspca: isoc irq
Dec 12 13:06:45 localhost kernel: gspca: stream off OK
Dec 12 13:06:45 localhost kernel: gspca: frame free
Dec 12 13:06:45 localhost kernel: gspca: close done

After that created the file image.dat, 921600 byte size and filled with  
the values of "0x12"

Once launched, with key "-g -r" get image.dat size 6594 byte and is black  
image.
Does it matter version libv4l?

-- 
Sent from my iPhone

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs