Effective in 2026, to align with our trunk stable development model and ensure platform stability for the ecosystem, we will publish source code to AOSP in Q2 and Q4. For building and contributing to AOSP, use android-latest-release. The android-latest-release manifest branch will always reference the most recent release pushed to AOSP. For more information, see Changes to AOSP.
相机预览防抖
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
对于搭载 Android 13 或更高版本的设备,相机框架对相机捕获会话中的预览流和其他非 RAW 流提供了视频防抖支持。借助此功能,第三方应用可以在比较相机预览和录制内容时提供所见即所得 (WYSIWYG) 体验。
实现
要在第三方应用中提供此功能,设备制造商必须在相机 HAL 中通告对以下键的支持,并实现视频防抖算法:
如需修改此功能的默认设置,请在使用 createCaptureRequest 创建拍摄请求时,在拍摄请求模板中分配一个默认值。
如需查看此功能的参考实现方法,请参阅 Cuttlefish 中的 EmulatedCamera 代码(位于 hardware/google/camera/devices/EmulatedCamera/hwl/EmulatedSensor.cpp)。
有关视频防抖模式的更多详细信息,请参阅 CONTROL_VIDEO_STABILIZATION_MODE。
验证
如需测试此功能的实现,请使用以下 CTS 和 ITS 测试:
CTS:
ITS(测试视野范围和防抖效果):
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-10-11。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-10-11。"],[],[]]