Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video camera input support #1733

Open
stephanemagnenat opened this issue Jul 27, 2021 · 1 comment
Open

Video camera input support #1733

stephanemagnenat opened this issue Jul 27, 2021 · 1 comment
Labels
type: enhancement New feature or request type: question Further information is requested

Comments

@stephanemagnenat
Copy link

stephanemagnenat commented Jul 27, 2021

Many applications, notably video conferencing, augmented reality, and video/image capture require access to the device's camera, which are numerous and high-resolution in modern mobile devices.

I originally filled an issue discussing this question in wgpu-rs. Since then, there were progress in WebGPU with support for things such as importExternalTexture.

The goal of this issue is to discuss and keep track of the support for video camera input in wgpu. This would certainly require quite some system-specific glue code, and maybe it belongs to a sister library, but given the effort required and the user benefit of a close integration with wgpu I am under the impression that it makes sense to talk about it here.

Here are the references currently found so far:

It is probably interesting to see how the browsers do it, Chromium has a design document.

@cwfitzgerald cwfitzgerald added type: enhancement New feature or request type: question Further information is requested labels Jul 27, 2021
@valpackett
Copy link
Contributor

valpackett commented Aug 20, 2021

Non-Android Linux, I did not find anything, I'm afraid one has to get the V4L2 stream in software and then send it to the texture

v4l2 can export dmabufs actually so you want VK_EXT_external_memory_dma_buf. (Which there's plenty of other reasons to support…)

related: #965

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants