linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: Hans de Goede <hdegoede@redhat.com>,
	Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: LibV4L2 and CREATE_BUFS issues
Date: Mon, 15 Dec 2014 11:35:20 -0500	[thread overview]
Message-ID: <548F0DC8.2090005@collabora.com> (raw)
In-Reply-To: <548F051E.805@redhat.com>


Le 2014-12-15 10:58, Hans de Goede a écrit :
> Hi,
>
> Hmm, is that jpeg overflow still there with my recent (aprok 2-3 weeks 
> ago) fix
> for this?
I'll need to check, might have been my fault too, since I was trying to 
reallocate the frames segment to implement support for CREATE_BUFS, 
without proper knowledge of the code. If we could have 1 allocation per 
frame, it would be trivial to implement. Could be made as a rework 
first. I wouldn't not worry too much for now, I apology for the noise.

>> This is getting a bit annoying. Specially that we are pushing forward 
>> having m2m decoders to only be usable through libv4l2 (HW specific 
>> parsers). Is there a long term plan or are we simply pushing the dust 
>> toward libv4l2 ?
>
> I think that trying to bold support for all of this into libv4l2 is 
> not necessarily
> a good idea. Then again if we're going to use libv4l2 plugins to do 
> things like
> media-controller pipeline setups for apps which are not 
> media-controller aware,
> maybe it is ...
>
> libv4l2 was mostly created to get the then current generation of v4l2 
> apps to work
> with webcams which have funky formats without pushing fmt conversion 
> into the kernel
> as several out of tree drivers were doing.
>
> It may be better to come up with a better API for libv4lconvert, and 
> let apps which
> want to do advanced stuff deal with conversion themselves, while 
> keeping all the
> conversion code in a central place, but that does leave the 
> media-controller issue.
>
> Note that I've aprox. 0 time to work on libv4l now a days ...
>
> What we really need is an active libv4l maintainer. Do not get me 
> wrong, Gregor
> has been doing a great job at maintaining it, but if we want to do 
> some architectural
> rework (or just a complete rewrite) I think we need someone who knows 
> the v4l2 API,
> media-controller, etc. a lot better.
>
Thanks for this information, and thanks for the effort so far. I didn't 
want to make this comment discouraging. I do cheer anyone taking care 
right now, and anyone that would come up next. As you mention, there has 
been plan (and currently active work) toward depending on libv4l to 
support cameras that need media-controller, decoders that need parsers, 
etc. I think these ideas are fine, but when bringing these ideas we 
should care more of how we are doing to add and test these in libv4l2, 
in a way that it's all very usable.

cheers,
Nicolas

      reply	other threads:[~2014-12-15 16:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-10 16:27 LibV4L2 and CREATE_BUFS issues Nicolas Dufresne
2014-12-13 10:41 ` Hans de Goede
2014-12-13 16:15   ` Nicolas Dufresne
2014-12-14  9:49     ` Hans de Goede
2014-12-14 14:24       ` Nicolas Dufresne
2014-12-15 15:58         ` Hans de Goede
2014-12-15 16:35           ` Nicolas Dufresne [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=548F0DC8.2090005@collabora.com \
    --to=nicolas.dufresne@collabora.com \
    --cc=hdegoede@redhat.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;
as well as URLs for NNTP newsgroup(s).