Fixed
Status Update
Comments
sh...@gmail.com <sh...@gmail.com> #2
The basic issue is that QualitySelector doesn't have any public method to get the selected/chosen quality as an Int (or any other raw type like String) that would correspond to a (publicly defined) constant.
le...@google.com <le...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
Author: leo huang <
Link:
Add VideoCapture.getSelectedQuality() API
Expand for full commit details
Add VideoCapture.getSelectedQuality() API
This API allows retrieving the selected Quality for a VideoCapture instance based on the provided QualitySelector.
The getSelectedQuality() method returns a value only when the VideoCapture is bound to a lifecycle.
This API was requested by both JCA and 3rd-party developers.
Relnote: "Add VideoCapture.getSelectedQuality() to know the selected Quality based on the QualitySelector."
Bug: 204288986
Test: VideoCaptureTest
Change-Id: I7050868dea1f1654386c991d441c25af2e3f1fe4
Files:
- M
camera/camera-core/src/main/java/androidx/camera/core/impl/StreamSpec.java
- A
camera/camera-core/src/main/java/androidx/camera/core/streamsharing/PreferredChildSize.kt
- M
camera/camera-core/src/main/java/androidx/camera/core/streamsharing/ResolutionsMerger.java
- M
camera/camera-core/src/main/java/androidx/camera/core/streamsharing/StreamSharing.java
- M
camera/camera-core/src/main/java/androidx/camera/core/streamsharing/VirtualCameraAdapter.java
- M
camera/camera-core/src/test/java/androidx/camera/core/streamsharing/ResolutionsMergerTest.kt
- M
camera/camera-core/src/test/java/androidx/camera/core/streamsharing/VirtualCameraAdapterTest.kt
- M
camera/camera-video/api/current.txt
- M
camera/camera-video/api/restricted_current.txt
- M
camera/camera-video/src/main/java/androidx/camera/video/VideoCapture.java
- M
camera/camera-video/src/test/java/androidx/camera/video/VideoCaptureTest.kt
Hash: f24822959fa0cc4dc6b1c5400b1d4ab46fb2c18b
Date: Mon Dec 23 15:29:59 2024
le...@google.com <le...@google.com>
pr...@google.com <pr...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.camera:camera-core:1.5.0-alpha05
androidx.camera:camera-video:1.5.0-alpha05
Description
As described in the post , application may want to know the quality that a QualitySelector will result in with specific use case combination/configuration.
Normally for specific feature, the use case combination won't change, which means a QualitySelector will always result in the same quality when the use cases are bound. So instead of a QualitySelector instance, it could be helpful to provide the actual selected quality through VideoCapture.