Advanced API access for
These APIs are useful for other infrastructures, for example, acquiring extra reference
MlImage. However, an App developer should avoid using the following APIs.
APIs inside are treated as internal APIs which are subject to change.
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