Most visited

Recently visited

Added in API level 23

ImageWriter.OnImageReleasedListener

public static interface ImageWriter.OnImageReleasedListener

android.media.ImageWriter.OnImageReleasedListener


ImageWriter回调接口,用于异步通知各种ImageWriter事件的应用程序。

Summary

Public methods

abstract void onImageReleased(ImageWriter writer)

当输入图像在数据消耗后被释放回ImageWriter时调用的回调函数。

Public methods

onImageReleased

Added in API level 23
void onImageReleased (ImageWriter writer)

当输入图像在数据消耗后被释放回ImageWriter时调用的回调函数。

客户端可以使用此回调来通知输入图像已被下游消费者使用和发布。 更具体地说,这个回调将在以下情况下被解雇:

  • The application dequeues an input Image via the 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.
  • The application obtains an Image from some other component (e.g. an 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.

    也可以看看:

    Hooray!