Google is committed to advancing racial equity for Black communities. See how.

AdaptingPreviewProcessor

class AdaptingPreviewProcessor : CaptureProcessor, CloseableProcessor
kotlin.Any
   ↳ androidx.camera.extensions.internal.AdaptingPreviewProcessor

A CaptureProcessor that calls a vendor provided preview processing implementation.

Summary

Public constructors
<init>(@NonNull impl: PreviewImageProcessorImpl)

Public methods
Unit

Unit
onOutputSurface(@NonNull surface: Surface, imageFormat: Int)

Unit
onResolutionUpdate(@NonNull size: Size)

Unit
process(@NonNull bundle: ImageProxyBundle)

Public constructors

<init>

AdaptingPreviewProcessor(@NonNull impl: PreviewImageProcessorImpl)

Public methods

close

fun close(): Unit

onOutputSurface

fun onOutputSurface(
    @NonNull surface: Surface,
    imageFormat: Int
): Unit

onResolutionUpdate

fun onResolutionUpdate(@NonNull size: Size): Unit

process

fun process(@NonNull bundle: ImageProxyBundle): Unit