am 77af33f8: Merge "camera2: Fix StreamConfigurationMap#getOutputSizes for ImageReader" into lmp-dev
* commit '77af33f81d2cbef1580a103c4efda6829f20c7e1': camera2: Fix StreamConfigurationMap#getOutputSizes for ImageReader
This commit is contained in:
@@ -339,6 +339,11 @@ public final class StreamConfigurationMap {
|
||||
* @see #isOutputSupportedFor(Class)
|
||||
*/
|
||||
public <T> Size[] getOutputSizes(Class<T> klass) {
|
||||
// Image reader is "supported", but never for implementation-defined formats; return empty
|
||||
if (android.media.ImageReader.class.isAssignableFrom(klass)) {
|
||||
return new Size[0];
|
||||
}
|
||||
|
||||
if (isOutputSupportedFor(klass) == false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user