public abstract class

HeifEncoder.Callback

extends java.lang.Object

 java.lang.Object

↳androidx.heifwriter.HeifEncoder.Callback

Summary

Constructors
publicCallback()

Methods
public abstract voidonComplete(HeifEncoder encoder)

Called when encoding reached the end of stream without error.

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

Called when an output buffer becomes available.

public abstract voidonError(HeifEncoder encoder, CodecException e)

Called when encoding hits an error.

public abstract voidonOutputFormatChanged(HeifEncoder 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(HeifEncoder encoder, MediaFormat format)

Called when the output format has changed.

Parameters:

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

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

Called when an output buffer becomes available.

Parameters:

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

public abstract void onComplete(HeifEncoder encoder)

Called when encoding reached the end of stream without error.

Parameters:

encoder: The HeifEncoder object.

public abstract void onError(HeifEncoder encoder, CodecException e)

Called when encoding hits an error.

Parameters:

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