linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Advice on extending libv4l for media controller support
@ 2012-05-10  0:08 Sergio Aguirre
  2012-05-10 13:54 ` Sergio Aguirre
  0 siblings, 1 reply; 10+ messages in thread
From: Sergio Aguirre @ 2012-05-10  0:08 UTC (permalink / raw)
  To: Hans de Goede; +Cc: linux-media, Laurent Pinchart

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:

1. Should it be the right thing to add a new subfolder under "lib/",
named like "libomap4iss-mediactl" or something like that ?
2. Do you know if anyone is working on something similar for any other
Media Controller device ?

Thanks in advance for your inputs.

Regards,
Sergio

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Advice on extending libv4l for media controller support
@ 2012-07-26 20:53 Robert Abel
  0 siblings, 0 replies; 10+ messages in thread
From: Robert Abel @ 2012-07-26 20:53 UTC (permalink / raw)
  To: linux-media

Hi,

Sorry to be late to the party... I wanted to follow up on this
discussion, but forgot and haven't read anything about it since...

On 10.05.2012 17:09, Ivan T. Ivanov wrote:
> On Wed, May 9, 2012 at 7:08 PM, Sergio Aguirre
> <sergio.a.aguirre@gmail.com> wrote:
>> 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.).
> 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

I recently extended Yordan Kamenov's libv4l-mcplugin to support multiple
trees per device with extended configurations (-stolen from- inspired by
media-ctl) not tied to specific device nodes (but to device names instead).

I uploaded the patches here
<https://sites.google.com/site/rawbdagslair/libv4l-mcplugin.7z?attredirects=0&d=1>(16kB).
Basically, I used Yordan's patches as a base and worked from there to
fix up his source code and Makefile for cross-compiling using
OpenEmbedded/Yocto.

There are a ton of minor issues with this, starting with the fact that I
did not put proper copyright notices in any of these files. Please
advise if this poses a problem.
Only integral frame size support and no support for native read() calls.
There's a dummy read() function, because for some reason this is
required in libv4l2 0.9.0-test though it's not mentioned anywhere. As
the original plug-in by Yordan, there is currently no cleaning-up of the
internal data structures.

I used this in conjunction with the Gumstix CASPA FS (MT9V032) camera
using some of Laurent's patches and some custom patches which add
ENUM_FMT support to the driver.

Basically, upon opening a given device, all trees are configured once to
load the respective end-point's formats for emulation of setting and
getting formats. Then regular format negotiation by the user application
takes place.

Regards,

Robert

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-07-28 20:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [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

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).