使用Android Camera2 API固定帧速率 [英] Fixed frame rate using android Camera2 api

查看:1099
本文介绍了使用Android Camera2 API固定帧速率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对android很陌生.我正在尝试使用android camera2 api开发应用程序,并且我想为此保持稳定的帧速率.我找不到任何有关如何实现固定帧速率的示例.

I'm very new to android. I'm trying to develop an application using android camera2 api and i want to maintain a steady frame rate for that. I could not find any example on how to achieve a fixed frame rate.

通过实验,我可以看到该应用程序的速度约为5-7 FPS.但这是变化的.获得固定帧速率的详细方法受到高度赞赏.提前致谢.

By experimenting i can see that application gets around 5-7 FPS. but it's varying. A detailed method to get a fixed frame rate is highly appreciated. Thanks in advance.

推荐答案

您是否已设置自动曝光目标FPS范围达到您想要的水平? 您尝试读取什么分辨率?

Have you set the AE target FPS range to what you want? What resolution are you trying to read?

在LEGACY级别的设备上,由于旧相机堆栈的内胆中的格式转换,高分辨率的运行速度可能会变慢.

On LEGACY-level devices, higher resolutions may run slow due to format conversion in the guts of the camera legacy stack.

这篇关于使用Android Camera2 API固定帧速率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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