@@ -1130,8 +1130,11 @@ int CameraCapabilities::initializeStaticMetadata()
}
/* Sync static metadata. */
- int32_t maxLatency = ANDROID_SYNC_MAX_LATENCY_UNKNOWN;
- staticMetadata_->addEntry(ANDROID_SYNC_MAX_LATENCY, maxLatency);
+ setMetadata<int32_t, int32_t>(
+ staticMetadata_.get(), ANDROID_SYNC_MAX_LATENCY,
+ controlsInfo, &controls::draft::MaxLatency,
+ ControlRange::Def,
+ ANDROID_SYNC_MAX_LATENCY_UNKNOWN);
/* Flash static metadata. */
char flashAvailable = ANDROID_FLASH_INFO_AVAILABLE_FALSE;
@@ -622,6 +622,16 @@ controls:
detection, additional format conversions etc) count as an additional
pipeline stage.
+ - MaxLatency:
+ type: int32_t
+ draft: true
+ description: |
+ The maximum number of frames that can occur after a request (different
+ than the previous) has been submitted, and before the result's state
+ becomes synchronized. A value of -1 indicates unknown latency, and 0
+ indicates per-frame control. Currently identical to
+ ANDROID_SYNC_MAX_LATENCY.
+
- TestPatternMode:
type: int32_t
draft: true