Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions core/java/android/hardware/camera2/impl/CaptureResultExtras.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ public CaptureResultExtras(int requestId, int subsequenceId, int afTriggerId,
this.readoutTimestamp = readoutTimestamp;
}

// Backwards-compatible constructor
public CaptureResultExtras(int requestId, int subsequenceId, int afTriggerId,
int precaptureTriggerId, long frameNumber,
int partialResultCount, int errorStreamId,
String errorPhysicalCameraId, long lastCompletedRegularFrameNumber,
long lastCompletedReprocessFrameNumber,
long lastCompletedZslFrameNumber) {
this(requestId, subsequenceId, afTriggerId, precaptureTriggerId, frameNumber,
partialResultCount, errorStreamId, errorPhysicalCameraId,
lastCompletedRegularFrameNumber, lastCompletedReprocessFrameNumber,
lastCompletedZslFrameNumber,
false /*hasReadOutTimestamp*/, 0 /*readoutTimestamp*/);
}

@Override
public int describeContents() {
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,75 @@ public StreamConfigurationMap(
listHighResolution, /*enforceImplementationDefined*/ true);
}

/**
* Create a new {@link StreamConfigurationMap}.
*
* <p>The array parameters ownership is passed to this object after creation; do not
* write to them after this constructor is invoked.</p>
*
* @param configurations a non-{@code null} array of {@link StreamConfiguration}
* @param minFrameDurations a non-{@code null} array of {@link StreamConfigurationDuration}
* @param stallDurations a non-{@code null} array of {@link StreamConfigurationDuration}
* @param depthConfigurations a non-{@code null} array of depth {@link StreamConfiguration}
* @param depthMinFrameDurations a non-{@code null} array of depth
* {@link StreamConfigurationDuration}
* @param depthStallDurations a non-{@code null} array of depth
* {@link StreamConfigurationDuration}
* @param dynamicDepthConfigurations a non-{@code null} array of dynamic depth
* {@link StreamConfiguration}
* @param dynamicDepthMinFrameDurations a non-{@code null} array of dynamic depth
* {@link StreamConfigurationDuration}
* @param dynamicDepthStallDurations a non-{@code null} array of dynamic depth
* {@link StreamConfigurationDuration}
* @param heicConfigurations a non-{@code null} array of heic {@link StreamConfiguration}
* @param heicMinFrameDurations a non-{@code null} array of heic
* {@link StreamConfigurationDuration}
* @param heicStallDurations a non-{@code null} array of heic
* {@link StreamConfigurationDuration}
* @param jpegRConfigurations a non-{@code null} array of Jpeg/R {@link StreamConfiguration}
* @param jpegRMinFrameDurations a non-{@code null} array of Jpeg/R
* {@link StreamConfigurationDuration}
* @param jpegRStallDurations a non-{@code null} array of Jpeg/R
* {@link StreamConfigurationDuration}
* @param highSpeedVideoConfigurations an array of {@link HighSpeedVideoConfiguration}, null if
* camera device does not support high speed video recording
* @param listHighResolution a flag indicating whether the device supports BURST_CAPTURE
* and thus needs a separate list of slow high-resolution output sizes
* @throws NullPointerException if any of the arguments except highSpeedVideoConfigurations
* were {@code null} or any subelements were {@code null}
*
* @hide
*/
public StreamConfigurationMap(
StreamConfiguration[] configurations,
StreamConfigurationDuration[] minFrameDurations,
StreamConfigurationDuration[] stallDurations,
StreamConfiguration[] depthConfigurations,
StreamConfigurationDuration[] depthMinFrameDurations,
StreamConfigurationDuration[] depthStallDurations,
StreamConfiguration[] dynamicDepthConfigurations,
StreamConfigurationDuration[] dynamicDepthMinFrameDurations,
StreamConfigurationDuration[] dynamicDepthStallDurations,
StreamConfiguration[] heicConfigurations,
StreamConfigurationDuration[] heicMinFrameDurations,
StreamConfigurationDuration[] heicStallDurations,
StreamConfiguration[] jpegRConfigurations,
StreamConfigurationDuration[] jpegRMinFrameDurations,
StreamConfigurationDuration[] jpegRStallDurations,
HighSpeedVideoConfiguration[] highSpeedVideoConfigurations,
ReprocessFormatsMap inputOutputFormatsMap,
boolean listHighResolution) {
this(configurations, minFrameDurations, stallDurations,
depthConfigurations, depthMinFrameDurations, depthStallDurations,
dynamicDepthConfigurations, dynamicDepthMinFrameDurations,
dynamicDepthStallDurations,
heicConfigurations, heicMinFrameDurations, heicStallDurations,
jpegRConfigurations, jpegRMinFrameDurations, jpegRStallDurations,
null /*heicUltraHDRConfigurations*/, null /*heicUltraHDRMinFrameDurations*/,
null /*heicUltraHDRStallDurations*/, highSpeedVideoConfigurations, inputOutputFormatsMap,
listHighResolution, /*enforceImplementationDefined*/ true);
}

/**
* Create a new {@link StreamConfigurationMap}.
*
Expand Down