public static final class MlImage.Internal extends Object

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 Method Summary

Acquires a reference on this MlImage.

Inherited Method Summary

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