Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c19a99a authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Remove surface sharing format limitation

Surface sharing should work using all supported output
formats.

Bug: 73135123
Test: Camera CTS
Change-Id: I69b403ad8b7bf6e5867754f0808fdc0bb309bde5
parent e848e106
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -82,11 +82,9 @@ import java.util.List;
 *
 * </ul>
 *
 * <p>Please note that surface sharing is currently only enabled for outputs that use the
 * {@link ImageFormat#PRIVATE} format. This includes surface sources like
 * {@link android.view.SurfaceView}, {@link android.media.MediaRecorder},
 * {@link android.graphics.SurfaceTexture} and {@link android.media.ImageReader}, configured using
 * the aforementioned format.</p>
 * <p> As of {@link android.os.Build.VERSION_CODES#P Android P}, all formats can be used for
 * sharing, subject to device support. On prior API levels, only {@link ImageFormat#PRIVATE}
 * format may be used.</p>
 *
 * @see CameraDevice#createCaptureSessionByOutputConfigurations
 *