From: Gregor Jasny <gjasny@googlemail.com>
To: Andreas Weber <andy.weber.aw@gmail.com>, linux-media@vger.kernel.org
Subject: Re: How to tell libv4l2 which src_fmt should be prefered?
Date: Sat, 18 Jan 2014 23:34:19 +0100 [thread overview]
Message-ID: <52DB016B.5040108@googlemail.com> (raw)
In-Reply-To: <52DA5ABA.7070003@gmail.com>
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
prev parent reply other threads:[~2014-01-18 22:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-18 10:43 How to tell libv4l2 which src_fmt should be prefered? Andreas Weber
2014-01-18 22:34 ` Gregor Jasny [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52DB016B.5040108@googlemail.com \
--to=gjasny@googlemail.com \
--cc=andy.weber.aw@gmail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox