安卓显示刷新率

发布于 2024-12-13 01:19:10 字数 371 浏览 2 评论 0原文

我正在开发一个 Android 应用程序,其作用类似于电影拍板/拍板/板岩。有什么方法可以设置显示器的刷新率吗?

这非常重要,因为当您编辑电影时,有必要“降落”在特定的帧上。关键是,如果计时器设置为每秒 25 帧,当计时器更改其值时,我需要显示每秒精确更新 25 次。

物理设备上的问题是,假设我的 Samsung Spica GT-I5700 返回 62.016 的刷新率,这对于 25 fps 时间码完全不合适,并且在编辑时您可以看到 Frame1-Frame1-Frame2-Frame2 等或中介,当您应该准确地看到 Frame1-Frame2 等时。

关键是我需要刷新率与时间码同步。如果用户设置 25 fps,则显示屏每秒应精确刷新 25 次。 有什么想法吗?谢谢你!

I'm developing an Android app which acts like a movie clapperboard/clapboard/slate. Is there any way in which I can set the display's refresh rate?

It is very important because when you edit the movie it's necessary to "land" on specific frames. The point is that if the timer is set to 25 frames per second, I need the display to update exactly 25 times per second, when the timer changes its value.

The problem on physical devices is that, let's say my Samsung Spica GT-I5700 returns a refresh rate of 62.016 which is totally inappropriate for a 25 fps timecode, and when editing you can see Frame1-Frame1-Frame2-Frame2 etc. or intermediaries, when you should see exactly Frame1-Frame2 etc.

The point is that I would need the refresh rate to be in sync with the timecode. If the user sets 25 fps, then the display should refresh exactly 25 times per second.
Any ideas, please? Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里寻她 2024-12-20 01:19:11

不幸的是,没有办法为任何给定设备设置任意刷新率,无论它是否是 Android。视频电路受限于其定时器的保真度,并且像所有分立系统一样,不能以连续的精度运行。不过,这应该不是什么太大的问题。如果您要执行脏渲染(按需),只需将帧构建基于 25Hz 系统计时器,视频硬件将在下一个光栅通道期间渲染它 - 60Hz 光栅通道几乎肯定会在您的 25Hz 间隔内发生。当系统太忙而无法遵守 25Hz 间隔时,您还必须考虑丢帧。如果您使用固定速率渲染,只需使用渲染之间的经过时间即可确定给定帧速率的适当帧。

Unfortunately, there is no way to set an arbitrary refresh rate for any given device, whether it be android or not. Video circuitry is limited to the fidelity of its timers, and like all discrete systems, cannot operate with continuous precision. However, this shouldn't be too much of a problem. If you're performing a dirty render (on demand), simply base your frame build around a 25Hz system timer, and the video hardware will render it during the next raster pass - a 60Hz raster pass will almost certainly occur within your 25Hz interval. You'll also have to consider frame-dropping when the system is too busy to honour a 25Hz interval. If you're using fixed rate rendering, simply use the elapsed time between renders in order to determine the appropriate frame for a given frame rate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文