MlImage.Internal

public static final class MlImage.Internal

Advanced API access for MlImage.

These APIs are useful for other infrastructures, for example, acquiring extra reference count for MlImage. However, an App developer should avoid using the following APIs.

APIs inside are treated as internal APIs which are subject to change.

Public Methods

void
acquire()
Acquires a reference on this MlImage.

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public void acquire ()

Acquires a reference on this MlImage. This will increase the reference count by 1.

This method is more useful for image consumer to acquire a reference so image resource will not be closed accidentally. As image creator, normal developer doesn't need to call this method.

The reference count is 1 when MlImage is created. Developer can call MlImage.close() to indicate it doesn't need this MlImage anymore.

See Also