Re: How to tell libv4l2 which src_fmt should be prefered?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 18/01/14 11:43, Andreas Weber wrote:
Is there a way to tell libv4l2 which native source format it should
prefer to convert from? For example my uvcvideo webcam supports natively
YUYV and MJPG (see output below)
...

So it picks up YUYV as source format. I had a look at
v4lconvert_try_format but can see no way how to do this.

If I understand the source correctly the table at [1] is the brain of the conversion. MJPEG has a rank of 7, YUYV has a rank of 5. So YUYV is chosen. The function that picks the conversion path is at [2].

Currently there is no way to influence the decision. Why do you want to do this?

Thanks,
Gregor

[1] http://git.linuxtv.org/v4l-utils.git/blob/HEAD:/lib/libv4lconvert/libv4lconvert.c#l75 [2] http://git.linuxtv.org/v4l-utils.git/blob/HEAD:/lib/libv4lconvert/libv4lconvert.c#l379

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux