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:
Igor Murashkin
2014-08-19 18:42:38 +00:00
committed by Android Git Automerger

View File

@@ -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;
}