public interface

Encoder.SurfaceInput

implements Encoder.EncoderInput

 androidx.camera.video.internal.encoder.Encoder.SurfaceInput

Overview

A SurfaceInput provides a as the interface to receive video raw data.

SurfaceInput is only available for video encoder. It has to set Encoder.SurfaceInput.setOnSurfaceUpdateListener(Executor, Encoder.SurfaceInput.OnSurfaceUpdateListener) to obtain the update. A new surface instance may be updated after there is already an updated surface. For Encoder, it is safe and recommended to release the old surface by the surface receiver via since the old surface is no longer used by Encoder. For the latest surface, the receiver should rely on Encoder.release() to release it. After Encoder.release() is called, all updated surfaces will be released.

Summary

Methods
public voidsetOnSurfaceUpdateListener(java.util.concurrent.Executor executor, Encoder.SurfaceInput.OnSurfaceUpdateListener listener)

Methods

public void setOnSurfaceUpdateListener(java.util.concurrent.Executor executor, Encoder.SurfaceInput.OnSurfaceUpdateListener listener)