Code: Select all
StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
//...
return map.getOutputSizes(mode);
< /code>
Basierend auf den folgenden Protokollen scheint es jedoch, dass einige der von diesem Code zurückgegebenen Auflösungen nicht tatsächlich unterstützt werden. < /p>
ExtCamDev@3.4: trimSupportedFormats: size (320,240) is removed due to unable to crop vertically from (2592, 1944)
ExtCamDev@3.4: trimSupportedFormats: size (640,480) is removed due to unable to crop vertically from (2592, 1944)
//...
ExtCamDevSsn@3.4: configureStreams: request stream 640x480, format: 0x22
ExtCamDevSsn@3.4: V4L configuration format:YUYV, w 2592, h 1944