Discussion:
[linux-uvc-devel] Support for Celestron Skyris 132C
James Fidell
2015-01-27 12:26:06 UTC
Permalink
This is a UVC camera that generates the following messages when plugged
in (on my Mint 17 machine running kernel 3.13.0)

[16334.963038] usb 4-1.4: new SuperSpeed USB device number 4 using xhci_hcd
[16334.979611] usb 4-1.4: New USB device found, idVendor=199e,
idProduct=8458
[16334.979616] usb 4-1.4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[16334.979619] usb 4-1.4: Product: SKYRIS 132C
[16334.979621] usb 4-1.4: Manufacturer: Celestron
[16334.979623] usb 4-1.4: SerialNumber: 19414148
[16335.039354] uvcvideo: Unknown video format
47425247-0000-0010-8000-00aa00389b71
[16335.039360] uvcvideo: Found UVC 1.10 device SKYRIS 132C (199e:8458)
[16335.040330] usbcore: registered new interface driver uvcvideo
[16335.040332] USB Video Class driver (1.1.1)


I want to use that video format. It's GRBG 8-bit raw colour. Do I
just need to add a new entry in uvcvideo.h:

#define UVC_GUID_FORMAT_SGRBG8 \
{ 'G', 'R', 'B', 'G', 0x00, 0x00, 0x00, 0x10, \
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}

and something like:


{
.name = "GRBG 8-bit",
.guid = UVC_GUID_FORMAT_SGRBG8,
.fcc = V4L2_PIX_FMT_SGRBG8,
},

to the uvc_fmts array in uvc_video.c, or are changes also required
elsewhere?

Thanks,
James
James Fidell
2015-01-28 19:55:48 UTC
Permalink
Post by James Fidell
I want to use that video format. It's GRBG 8-bit raw colour. Do I
#define UVC_GUID_FORMAT_SGRBG8 \
{ 'G', 'R', 'B', 'G', 0x00, 0x00, 0x00, 0x10, \
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
I think there's a typo here. It should be

#define UVC_GUID_FORMAT_SGRBG8 \
{ 'G', 'R', 'B', 'G', 0x00, 0x00, 0x10, 0x00, \
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}

I believe.

Would be helpful to know that I'm on the right track with this though,
or if there might be other places the code needs to change.

James
Paulo Assis
2015-01-29 09:48:19 UTC
Permalink
Hi.
You should also post this in the linux-media mailing list (it will be
piked up faster):
http://linuxtv.org/lists.php

Just post it as a patch, so that it can be commented on.

Regards,
Paulo
Post by James Fidell
Post by James Fidell
I want to use that video format. It's GRBG 8-bit raw colour. Do I
#define UVC_GUID_FORMAT_SGRBG8 \
{ 'G', 'R', 'B', 'G', 0x00, 0x00, 0x00, 0x10, \
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
I think there's a typo here. It should be
#define UVC_GUID_FORMAT_SGRBG8 \
{ 'G', 'R', 'B', 'G', 0x00, 0x00, 0x10, 0x00, \
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
I believe.
Would be helpful to know that I'm on the right track with this though,
or if there might be other places the code needs to change.
James
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linux-uvc-devel mailing list
https://lists.sourceforge.net/lists/listinfo/linux-uvc-devel
Loading...