From: Hans de Goede <hdegoede@redhat.com>
To: "Ivan T. Ivanov" <iivanov@mm-sol.com>
Cc: Sergio Aguirre <sergio.a.aguirre@gmail.com>,
linux-media@vger.kernel.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Atsuo Kuwahara <kuwahara@ti.com>,
Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Subject: Re: Advice on extending libv4l for media controller support
Date: Fri, 11 May 2012 12:13:45 +0200 [thread overview]
Message-ID: <4FACE659.7080705@redhat.com> (raw)
In-Reply-To: <1336662597.15542.15.camel@iivanov-desktop>
Hi,
On 05/10/2012 05:09 PM, Ivan T. Ivanov wrote:
>
> Hi Sergio,
>
> On Thu, 2012-05-10 at 08:54 -0500, Sergio Aguirre wrote:
>> +Atsuo
>>
>> On Wed, May 9, 2012 at 7:08 PM, Sergio Aguirre
>> <sergio.a.aguirre@gmail.com> wrote:
>>> Hi Hans,
>>>
>>> I'm interested in using libv4l along with my omap4 camera project to
>>> adapt it more easily
>>> to Android CameraHAL, and other applications, to reduce complexity of
>>> them mostly...
>>>
>>> So, but the difference is that, this is a media controller device I'm
>>> trying to add support for,
>>> in which I want to create some sort of plugin with specific media
>>> controller configurations,
>>> to avoid userspace to worry about component names and specific
>>> usecases (use sensor resizer, or SoC ISP resizer, etc.).
>>>
>>> So, I just wanted to know your advice on some things before I start
>>> hacking your library:
>>>
>
> Probably following links can help you. They have been tested
> with the OMAP3 ISP.
>
> Regards,
> iivanov
>
> [1] http://www.spinics.net/lists/linux-media/msg31901.html
> [2]
> http://comments.gmane.org/gmane.linux.drivers.video-input-infrastructure/32704
Ah, cool. But that is a bit old stuff. IIRC (pretty sure I do), then we
came to the conclusion that the following would be the best solution:
1) The existing mediactl lib would be extended with a libmediactlvideo lib, which
would be able to control media-ctrl video chains, ie it can:
-give a list of possibly supported formats / sizes / framerates
-setup the chain to deliver a requested format
Since the optimal setup will be hardware specific the idea was to give this
libs per soc plugins, and a generic plugin for simple socs / as fallback.
2) A cmdline utility to set up a chain using libmediactlvideo, so that things
can be tested using raw devices, ie without libv4l2 coming into play, just
like apps like v4l2-ctl allow low level control mostly for testing purposes
3) There would then be a libv4l2 plugin much like the above linked omap3 plugin,
but then generic for any mediactl using video devices, which would use
libmediactlvideo to do the work of setting up the chain (and which will fail to
init when the to be opened device is not part of a mediactl controlled chain).
And AFAIK some work was done in this direction. Sakari? Laurent?
Eitherway it is about time someone started working on this, and I would
greatly prefer the above plan to be implemented. Once we have this in place,
then we can do a new v4l-utils release which officially supports the plugin
API (which currently only lives in master, not in any releases).
Regards,
Hans
next prev parent reply other threads:[~2012-05-11 10:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-10 0:08 Advice on extending libv4l for media controller support Sergio Aguirre
2012-05-10 13:54 ` Sergio Aguirre
2012-05-10 14:20 ` Hans de Goede
2012-05-10 14:26 ` Laurent Pinchart
2012-05-10 15:09 ` Ivan T. Ivanov
2012-05-10 15:30 ` Sergio Aguirre
2012-05-11 10:13 ` Hans de Goede [this message]
[not found] ` <5011AD6A.9040609@uni-bielefeld.de>
2012-07-28 10:46 ` Hans de Goede
2012-07-28 19:11 ` Laurent Pinchart
-- strict thread matches above, loose matches on Subject: below --
2012-07-26 20:53 Robert Abel
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=4FACE659.7080705@redhat.com \
--to=hdegoede@redhat.com \
--cc=iivanov@mm-sol.com \
--cc=kuwahara@ti.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@maxwell.research.nokia.com \
--cc=sergio.a.aguirre@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).