Android相机在哪里确定即时预览帧?
我试图确保在相机中拍照后短暂显示的预览帧与捕获的图像密切对应。预览图像和捕获的图像之间存在一点延迟,当捕获运动中的主体时,这是一个问题。
在相机代码中是这些注释:
// If postview callback has arrived, the captured image is displayed
// in postview callback. If not, the captured image is displayed in
// raw picture callback.
但我没看到。我看到在 capture()
结束时,mPreviewing
设置为 false,并且 JpegPictureCallback
稍后恢复预览。这对我来说意味着冻结的图像是从 mPreviewing
关闭那一刻起的图像 - 我没有看到任何代码可以用任何更新的图像替换该图像。评论正确吗?如果是这样,图像在哪里更新?
I am trying to ensure that the preview frame which is displayed briefly after snapping a picture in Camera corresponds closely to the captured image. There is a bit of delay between the preview image and the captured image, and when capturing subjects in motion, that's a problem.
In the Camera code are these comments:
// If postview callback has arrived, the captured image is displayed
// in postview callback. If not, the captured image is displayed in
// raw picture callback.
But I don't see it. I see that at the end of capture()
, mPreviewing
is set to false, and the JpegPictureCallback
resumes previewing after a little bit. This suggests to me that the frozen image is the one from the moment mPreviewing
is switched off - I don't see any code that would replace that image with anything fresher. Are the comments correct? If so, where is the image updated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论