60 / 120fps在Android设备上预览数据? [英] 60/120fps preview data on an Android device?

查看:1502
本文介绍了60 / 120fps在Android设备上预览数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们想使用霓虹灯组件或GPU着色器处理120 fps(或60fps)相机预览数据,以执行简单的图像处理操作(例如3x3卷积)。
我们不想在屏幕上显示图像,所以相机数据应该直接到SurfaceTexture。

We would like to process 120 fps (or 60fps) camera preview data using Neon assembly or GPU shaders to perform a simple image processing operation (eg 3x3 convolution). We are NOT interested in displaying the image on the screen so the camera data should go directly to a SurfaceTexture.

我们认为我们可以使用Camera2 API在Nexus 5上使用CameraConstrainedHighSpeedCaptureSession但未成功。

We thought we could do this using Camera2 API on a Nexus 5 using CameraConstrainedHighSpeedCaptureSession but have been unsuccessful.

互联网上目前没有功能代码(至少我们已经抓取的部分)允许这个功能,但似乎很可能功能存在。

There is no currently functional code on the internet (at least the part we have scraped) that allows this and yet it seems probable that the functionality exists.

使用Camera2 API进行高速录制的最佳示例如下: https://github.com / PkmX / lcamera

The best example of using the Camera2 API for highspeed recording is here: https://github.com/PkmX/lcamera

为了尝试鼓励某人发布一个解决方案,我对这个问题给予了赏金。

In order to try to encourage someone to post a solution I am putting a bounty on this question.

推荐答案

我们成功修改了camera2video示例,以在Samsung S6上获得120 fps数据速率。

We succesfully modified the camera2video sample to obtain 120 fps data rate on a Samsung S6.

代码为此处

我们尚未管理以提取像素,但会在这里更新。

We have not yet managed to extract the pixels but will update here when we do.

这篇关于60 / 120fps在Android设备上预览数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆