Class ImageReleaserImpl

  • All Implemented Interfaces:
    com.banuba.sdk.utils.ImageReleaser

    public final class ImageReleaserImpl
    extends java.lang.Object
    implements com.banuba.sdk.utils.ImageReleaser
    ImageReleaserImpl class keep deleter for the frame and allowing it to be released after destroying pointers to planes on the cpp side
    • Constructor Detail

      • ImageReleaserImpl

        public ImageReleaserImpl​(@NonNull
                                 ReleaseCallback releaseCallback)
    • Method Detail

      • addRef

        public void addRef()
        Specified by:
        addRef in interface com.banuba.sdk.utils.ImageReleaser
      • addRefCount

        public void addRefCount​(int number)
        Specified by:
        addRefCount in interface com.banuba.sdk.utils.ImageReleaser
      • release

        public void release()
        Specified by:
        release in interface com.banuba.sdk.utils.ImageReleaser
      • isClosed

        public boolean isClosed()