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.
Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
相機預覽防震功能
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如果是搭載 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 和/或其關係企業的商標或註冊商標。
上次更新時間: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"]],["上次更新時間:2026-10-11 (世界標準時間)。"],[],[]]