I'm trying to port a USB camera. Almost there but coming across a
weird issue.. Im getting two pinkish green preview panels on one half,
and the rest is static green. No idea what's causing this.

Here is a screenshot: http://i54.tinypic.com/eu0zg8.png

In camera hardware, pixel format is set to V4L2_PIX_FMT_SBGGR8,
resolution 640x480 and p.setPreviewFormat("yuv422sp");

Im not sure if any of that have to do with it.. Any idea what could be
causing this?

Here is my v4l-info when i attach to pc

$ v4l-info

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
driver                  : "sn9c102"
card                    : "SN9C1xx PC Camera"
bus_info                : "usb-0000:00:1a.1-1"
version                 : 1.1.47
capabilities            : 0x5000001
[VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
index                   : 0
name                    : "Camera"
type                    : CAMERA
audioset                : 0
tuner                   : 0
std                     : 0x0 []
status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index                   : 0
type                    : VIDEO_CAPTURE
flags                   : 0
description             : "bayer rgb"
pixelformat             : 0x31384142 [BA81]
    VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
index                   : 1
type                    : VIDEO_CAPTURE
flags                   : 1
description             : "JPEG"
pixelformat             : 0x4745504a [JPEG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
type                    : VIDEO_CAPTURE
fmt.pix.width           : 640
fmt.pix.height          : 480
fmt.pix.pixelformat     : 0x31384142 [BA81]
fmt.pix.field           : NONE
fmt.pix.bytesperline    : 640
fmt.pix.sizeimage       : 307200
fmt.pix.colorspace      : SRGB
fmt.pix.priv            : 8


-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to