[Linux-uvc-devel] uvcvideo and v4l2
Laurent Pinchart
laurent.pinchart at skynet.be
Thu Aug 30 23:26:21 CEST 2007
Hi Andreas,
On Wednesday 29 August 2007, Andreas Schneider wrote:
> Hi,
>
> I got my webcam working with WengoPhone [1] now. The strange thing is
> that it reports RGB565 as supported format.
>
> (debug) 11:07:48 virtual WebcamErrorCode WebcamDriver::setDevice(const
> std::string&): desired device=UVC Camera (046d:08c9) : video1, actual
> device=UVC Camera (046d:08c9) : video1
> (debug) 11:07:48 virtual WebcamErrorCode
> V4L2WebcamDriver::setDevice(const std::string&): Setting '/dev/video1'
> device.
> (debug) 11:07:48 virtual WebcamErrorCode
> V4L2WebcamDriver::setDevice(const std::string&): Device properly resolved.
> (debug) 11:07:48 virtual WebcamErrorCode
> WebcamDriver::setResolution(unsigned int, unsigned int): try to change
> resolution: (width, height)=320,240
> (debug) 11:07:48 virtual WebcamErrorCode
> V4L2WebcamDriver::setPalette(pixosi): Trying to change webcam
> pixelformat to yuv420p (0)
> (warn) 11:07:48 virtual WebcamErrorCode
> V4L2WebcamDriver::setPalette(pixosi): Failed settings pixel format.
> (debug) 11:07:48 virtual WebcamErrorCode
> V4L2WebcamDriver::setPalette(pixosi): Webcam pixelformat is rgb565 (9)
> (debug) 11:07:48 virtual WebcamErrorCode
> WebcamDriver::setPalette(pixosi): this webcam does not support palette #0
> (debug) 11:07:48 virtual WebcamErrorCode
> WebcamDriver::setPalette(pixosi): palette conversion will be forced
>
> I thought the driver/webcam supports only MJPEG and YUYV.
All the UVC webcams I know about support MJPEG and YUYV only. Wengophone might
have a low-level MJPEG/YUV to RGB565 filter somewhere that makes the
application think the webcam streams RGB565 data. In any case, you shouldn't
worry about it.
Best regards,
Laurent Pinchart
More information about the Linux-uvc-devel
mailing list