public static interface ImageWriter.OnImageReleasedListener
android.media.ImageWriter.OnImageReleasedListener |
ImageWriter回调接口,用于异步通知各种ImageWriter事件的应用程序。
Public methods |
|
---|---|
abstract void |
onImageReleased(ImageWriter writer) 当输入图像在数据消耗后被释放回ImageWriter时调用的回调函数。 |
void onImageReleased (ImageWriter writer)
当输入图像在数据消耗后被释放回ImageWriter时调用的回调函数。
客户端可以使用此回调来通知输入图像已被下游消费者使用和发布。 更具体地说,这个回调将在以下情况下被解雇:
dequeueInputImage()
method, uses it, and then queues it back to this ImageWriter via the queueInputImage()
method. After the downstream consumer uses and releases this image to this ImageWriter, this callback will be fired. This image will be available to be dequeued after this callback.ImageReader
), uses it, and then queues it to this ImageWriter via queueInputImage()
. After the downstream consumer uses and releases this image to this ImageWriter, this callback will be fired.Parameters | |
---|---|
writer |
ImageWriter : the ImageWriter the callback is associated with. |
也可以看看: