Banuba SDK
Loading...
Searching...
No Matches
bnb::interfaces::image_releaser Class Referenceabstract

Only android interface. More...

#include <image_releaser.hpp>

Public Member Functions

virtual void add_ref ()=0
 Increments the reference count by 1 for an interface pointer to a object.
 
virtual void add_ref_count (int32_t number)=0
 Increments the reference count by number for an interface pointer to a object.
 
virtual void release ()=0
 Decrements the reference count for an interface on a COM object.
 

Detailed Description

Only android interface.

The interface required for the correct closing of java image, after pointers of the image planes have been freed on the cpp side.

Definition at line 20 of file image_releaser.hpp.

Constructor & Destructor Documentation

◆ ~image_releaser()

virtual bnb::interfaces::image_releaser::~image_releaser ( )
inlinevirtual

Definition at line 22 of file image_releaser.hpp.

22{}

Member Function Documentation

◆ add_ref()

virtual void bnb::interfaces::image_releaser::add_ref ( )
pure virtual

Increments the reference count by 1 for an interface pointer to a object.

MUST be called before release().

◆ add_ref_count()

virtual void bnb::interfaces::image_releaser::add_ref_count ( int32_t number)
pure virtual

Increments the reference count by number for an interface pointer to a object.

Parameters
numbernumber of add ref. MUST be called before release().

◆ release()

virtual void bnb::interfaces::image_releaser::release ( )
pure virtual

Decrements the reference count for an interface on a COM object.

After the last ref is deleted, the java image will be closed(released). MUST be called from the deleters of bnb::color_plane.


The documentation for this class was generated from the following file: