Banuba SDK
libs
utils
bnb
utils
interfaces
image_releaser.hpp
Go to the documentation of this file.
1
/// \file
2
/// \addtogroup Utils
3
/// @{
4
///
5
// AUTOGENERATED FILE - DO NOT MODIFY!
6
// This file was generated by Djinni from utils.djinni
7
8
#pragma once
9
10
#include <bnb/utils/defs.hpp>
11
#include <cstdint>
12
13
namespace
bnb {
namespace
interfaces {
14
15
/**
16
* Only android interface.
17
* The interface required for the correct closing of java image,
18
* after pointers of the image planes have been freed on the cpp side.
19
*/
20
class
BNB_EXPORT
image_releaser
{
21
public
:
22
virtual
~
image_releaser
() {}
23
24
/**
25
* Increments the reference count by 1 for an interface pointer to a object.
26
* MUST be called before release().
27
*/
28
virtual
void
add_ref() = 0;
29
30
/**
31
* Increments the reference count by number for an interface pointer to a object.
32
* @param number number of add ref.
33
* MUST be called before release().
34
*/
35
virtual
void
add_ref_count(int32_t number) = 0;
36
37
/**
38
* Decrements the reference count for an interface on a COM object.
39
* After the last ref is deleted, the java image will be closed(released).
40
* MUST be called from the deleters of bnb::color_plane.
41
*/
42
virtual
void
release() = 0;
43
};
44
45
} }
// namespace bnb::interfaces
46
/// @}
47
bnb::interfaces::image_releaser
Only android interface.
Definition:
image_releaser.hpp:20
Generated by
1.8.17