public abstract class

EncoderBase.Callback

extends java.lang.Object

 java.lang.Object

↳androidx.heifwriter.EncoderBase.Callback

Subclasses:

WriterBase.WriterCallback

Summary

Constructors
publicCallback()

Methods
public abstract voidonComplete(EncoderBase encoder)

Called when encoding reached the end of stream without error.

public abstract voidonDrainOutputBuffer(EncoderBase encoder, java.nio.ByteBuffer byteBuffer)

Called when an output buffer becomes available.

public abstract voidonError(EncoderBase encoder, CodecException e)

Called when encoding hits an error.

public abstract voidonOutputFormatChanged(EncoderBase encoder, MediaFormat format)

Called when the output format has changed.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Callback()

Methods

public abstract void onOutputFormatChanged(EncoderBase encoder, MediaFormat format)

Called when the output format has changed.

Parameters:

encoder: The EncoderBase object.
format: The new output format.

public abstract void onDrainOutputBuffer(EncoderBase encoder, java.nio.ByteBuffer byteBuffer)

Called when an output buffer becomes available.

Parameters:

encoder: The EncoderBase object.
byteBuffer: the available output buffer.

public abstract void onComplete(EncoderBase encoder)

Called when encoding reached the end of stream without error.

Parameters:

encoder: The EncoderBase object.

public abstract void onError(EncoderBase encoder, CodecException e)

Called when encoding hits an error.

Parameters:

encoder: The EncoderBase object.
e: The exception that the codec reported.