Skip to content

Commit 2f54c2d

Browse files
Pulkit077ralph950412
authored andcommitted
core: camera2: StreamConfigurationMap: add constructor for MIUI camera
neobuddy89: Updated for A15 QPR2 Change-Id: Ie903c11161664153cb26858da426b546e655d3d2 Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent 729091e commit 2f54c2d

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

core/java/android/hardware/camera2/params/StreamConfigurationMap.java

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,67 @@ public StreamConfigurationMap(
151151
listHighResolution, /*enforceImplementationDefined*/ true);
152152
}
153153

154+
/**
155+
* Create a new {@link StreamConfigurationMap}.
156+
*
157+
* <p>The array parameters ownership is passed to this object after creation; do not
158+
* write to them after this constructor is invoked.</p>
159+
*
160+
* @param configurations a non-{@code null} array of {@link StreamConfiguration}
161+
* @param minFrameDurations a non-{@code null} array of {@link StreamConfigurationDuration}
162+
* @param stallDurations a non-{@code null} array of {@link StreamConfigurationDuration}
163+
* @param depthConfigurations a non-{@code null} array of depth {@link StreamConfiguration}
164+
* @param depthMinFrameDurations a non-{@code null} array of depth
165+
* {@link StreamConfigurationDuration}
166+
* @param depthStallDurations a non-{@code null} array of depth
167+
* {@link StreamConfigurationDuration}
168+
* @param dynamicDepthConfigurations a non-{@code null} array of dynamic depth
169+
* {@link StreamConfiguration}
170+
* @param dynamicDepthMinFrameDurations a non-{@code null} array of dynamic depth
171+
* {@link StreamConfigurationDuration}
172+
* @param dynamicDepthStallDurations a non-{@code null} array of dynamic depth
173+
* {@link StreamConfigurationDuration}
174+
* @param heicConfigurations a non-{@code null} array of heic {@link StreamConfiguration}
175+
* @param heicMinFrameDurations a non-{@code null} array of heic
176+
* {@link StreamConfigurationDuration}
177+
* @param heicStallDurations a non-{@code null} array of heic
178+
* {@link StreamConfigurationDuration}
179+
* @param highSpeedVideoConfigurations an array of {@link HighSpeedVideoConfiguration}, null if
180+
* camera device does not support high speed video recording
181+
* @param listHighResolution a flag indicating whether the device supports BURST_CAPTURE
182+
* and thus needs a separate list of slow high-resolution output sizes
183+
* @throws NullPointerException if any of the arguments except highSpeedVideoConfigurations
184+
* were {@code null} or any subelements were {@code null}
185+
*
186+
* @hide
187+
*/
188+
public StreamConfigurationMap(
189+
StreamConfiguration[] configurations,
190+
StreamConfigurationDuration[] minFrameDurations,
191+
StreamConfigurationDuration[] stallDurations,
192+
StreamConfiguration[] depthConfigurations,
193+
StreamConfigurationDuration[] depthMinFrameDurations,
194+
StreamConfigurationDuration[] depthStallDurations,
195+
StreamConfiguration[] dynamicDepthConfigurations,
196+
StreamConfigurationDuration[] dynamicDepthMinFrameDurations,
197+
StreamConfigurationDuration[] dynamicDepthStallDurations,
198+
StreamConfiguration[] heicConfigurations,
199+
StreamConfigurationDuration[] heicMinFrameDurations,
200+
StreamConfigurationDuration[] heicStallDurations,
201+
HighSpeedVideoConfiguration[] highSpeedVideoConfigurations,
202+
ReprocessFormatsMap inputOutputFormatsMap,
203+
boolean listHighResolution) {
204+
this(configurations, minFrameDurations, stallDurations,
205+
depthConfigurations, depthMinFrameDurations, depthStallDurations,
206+
dynamicDepthConfigurations, dynamicDepthMinFrameDurations,
207+
dynamicDepthStallDurations,
208+
heicConfigurations, heicMinFrameDurations, heicStallDurations,
209+
null /*jpegRConfigurations*/, null /*jpegRMinFrameDurations*/, null /*jpegRStallDurations*/,
210+
null /*heicUltraHDRConfigurations*/, null /*heicUltraHDRMinFrameDurations*/,
211+
null /*heicUltraHDRStallDurations*/, highSpeedVideoConfigurations, inputOutputFormatsMap,
212+
listHighResolution, /*enforceImplementationDefined*/ true);
213+
}
214+
154215
/**
155216
* Create a new {@link StreamConfigurationMap}.
156217
*

0 commit comments

Comments
 (0)