From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Hans Verkuil <hansverk@cisco.com>, Qing Xu <qingx@marvell.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
Neil Johnson <realdealneil@gmail.com>,
Robert Jarzmik <robert.jarzmik@free.fr>,
Uwe Taeubert <u.taeubert@road.de>,
"Karicheri, Muralidharan" <m-karicheri2@ti.com>,
Eino-Ville Talvala <talvala@stanford.edu>
Subject: Re: [RFD] frame-size switching: preview / single-shot use-case
Date: Thu, 17 Feb 2011 18:46:51 -0200 [thread overview]
Message-ID: <4D5D893B.5090101@infradead.org> (raw)
In-Reply-To: <Pine.LNX.4.64.1102172020410.30692@axis700.grange>
Em 17-02-2011 17:26, Guennadi Liakhovetski escreveu:
> Hi Mauro
>
> Thanks for your comments.
>
> On Thu, 17 Feb 2011, Mauro Carvalho Chehab wrote:
>
>> Em 16-02-2011 08:35, Guennadi Liakhovetski escreveu:
>
> [snip]
>
>>> (2) cleanly separate setting video data format (S_FMT) from specifying the
>>> allocated buffer size.
>>
>> This would break existing applications. Too late for that, except if negotiated
>> with a "SETCAP" like approach.
>
> Sorry, don't see how my proposal from my last mail would change existing
> applications. As long as no explicit buffer-queue management is performed,
> no new queues are allocated, the driver will just implicitly allocate one
> queue and use it. I.e., no change in behaviour.
Using the same ioctl to explicitly or to implicitly allocating memory depending
on the context would make the API more complicated than it should be.
>> There's an additional problem with that: assume that streaming is happening,
>> and a S_FMT changing the resolution was sent. There's no way to warrant that
>> the very next frame will have the new resolution. So, a meta-data with the
>> frame resolution (and format) would be needed.
>
> Sorry, we are not going to allow format changes during a running capture.
> You have to stop streaming, set new formats (possibly switch to another
> queue) and restart streaming.
> What am I missing?
If you're stopping the stream, the current API will work as-is.
If all of your concerns is about reserving a bigger buffer queue, I think that one
of the reasons for the CMA allocator it for such usage.
Am I missing something?
Cheers,
Mauro
next prev parent reply other threads:[~2011-02-17 20:48 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 17:33 [RFD] frame-size switching: preview / single-shot use-case Guennadi Liakhovetski
2011-02-15 17:41 ` Karicheri, Muralidharan
2011-02-16 2:50 ` Qing Xu
2011-02-16 7:42 ` Guennadi Liakhovetski
2011-02-16 8:49 ` Hans Verkuil
2011-02-16 9:02 ` Guennadi Liakhovetski
2011-02-16 9:11 ` Laurent Pinchart
2011-02-16 10:35 ` Guennadi Liakhovetski
2011-02-17 16:46 ` Guennadi Liakhovetski
2011-02-18 9:47 ` Laurent Pinchart
2011-02-17 19:04 ` Mauro Carvalho Chehab
2011-02-17 19:26 ` Guennadi Liakhovetski
2011-02-17 20:46 ` Mauro Carvalho Chehab [this message]
2011-02-17 21:13 ` Guennadi Liakhovetski
2011-02-18 10:27 ` Laurent Pinchart
2011-02-16 2:55 ` Qing Xu
2011-02-17 18:27 ` Mauro Carvalho Chehab
[not found] <4D5D9B57.3090809@gmail.com>
2011-02-17 23:09 ` Michal Nazarewicz
2011-02-18 10:31 ` Laurent Pinchart
2011-02-18 11:37 ` Michal Nazarewicz
2011-02-18 12:57 ` Laurent Pinchart
2011-02-18 13:19 ` Michal Nazarewicz
2011-02-18 13:21 ` Laurent Pinchart
2011-02-18 14:05 ` Michal Nazarewicz
2011-02-18 14:13 ` Laurent Pinchart
2011-02-18 12:33 ` Mauro Carvalho Chehab
2011-02-18 12:36 ` Laurent Pinchart
2011-02-18 12:46 ` Michal Nazarewicz
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=4D5D893B.5090101@infradead.org \
--to=mchehab@infradead.org \
--cc=g.liakhovetski@gmx.de \
--cc=hansverk@cisco.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=m-karicheri2@ti.com \
--cc=qingx@marvell.com \
--cc=realdealneil@gmail.com \
--cc=robert.jarzmik@free.fr \
--cc=talvala@stanford.edu \
--cc=u.taeubert@road.de \
/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