linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* metadata node
@ 2017-01-11  9:42 Guennadi Liakhovetski
  2017-01-30 17:26 ` Stanimir Varbanov
  0 siblings, 1 reply; 6+ messages in thread
From: Guennadi Liakhovetski @ 2017-01-11  9:42 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: Linux Media Mailing List, sakari.ailus, Hans Verkuil

Hi Laurent,

As you know, I'm working on a project, that involves streaming metadata, 
obtained from UVC payload headers to the userspace. Luckily, you have 
created "metadata node" patces a while ago. The core patch has also been 
acked by Hans, so, I decided it would be a safe enough bet to base my work 
on top of that.

Your patch makes creating /dev/video* metadata device nodes possible, but 
it doesn't provide any means to associate metadata nodes to respective 
video (image) nodes. Another important aspect of using per-frame metadata 
is synchronisation between metadata and image buffers.  The user is 
supposed to use buffer sequence numbers for that. That should be possible, 
but might be difficult if buffers lose synchronisation at some point. As a 
solution to the latter problem the use of requests with buffers for both 
nodes has been proposed, which should be possible once the request API is 
available.

An alternative approach to metadata support, e.g. heterogeneous 
multi-plain buffers with one plain carrying image data and another plain 
carrying metadata would be possible. It could also have other uses. E.g. 
we have come across cameras, streaming buffers, containing multiple images 
(e.g. A and B). Possibly both images have supported fourcc format, but 
they cannot be re-used, because A+B now are transferred in a single 
buffer. Instead a new fourcc code has to be invented for such cases to 
describe A+B.

As an important argument in favour of having a separate video node for 
metadata you named cases, when metadata has to be obtained before a 
complete image is available. Do you remember specifically what those cases 
are? Or have you got a link to that discussion?

In any case, _if_ we do keep the current approach of separate /dev/video* 
nodes, we need a way to associate video and metadata nodes. Earlier I 
proposed using media controller links for that. In your implementation of 
the R-Car VSP1 1-D histogram engine metadata node, where did you link it 
in the media controller topology? Could you provide a (snippet of a) 
graph?

Thanks
Guennadi

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

end of thread, other threads:[~2017-02-11 22:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-11  9:42 metadata node Guennadi Liakhovetski
2017-01-30 17:26 ` Stanimir Varbanov
2017-02-02 18:35   ` Guennadi Liakhovetski
2017-02-10 12:09     ` Stanimir Varbanov
2017-02-11 20:38       ` Guennadi Liakhovetski
2017-02-11 22:07       ` Sakari Ailus

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