MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Toggle main menu visibility
Loading...
Searching...
No Matches
include
maplibre_native_c
platform
android.h
Go to the documentation of this file.
1
6
7
#ifndef MAPLIBRE_NATIVE_C_PLATFORM_ANDROID_H
8
#define MAPLIBRE_NATIVE_C_PLATFORM_ANDROID_H
9
10
#include <stdint.h>
11
12
#include "
../base.h
"
13
#include "
../completion.h
"
14
#include "
../map.h
"
15
#include "
../render_session.h
"
16
#include "
../render_target.h
"
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
28
MLN_BINDING(
"platforms=android"
)
29
MLN_API
mln_status
mln_android_init
(
30
void
* jni_env,
void
* context,
mln_diagnostic
* out_diagnostic
31
) MLN_NOEXCEPT;
32
43
MLN_BINDING(
"platforms=android"
)
44
MLN_API
mln_status
mln_android_frame_pacer_create
(
45
const
mln_frame_pacer_options
* options MLN_BINDING(
"nullable=true"
),
46
mln_frame_pacer
* out_pacer MLN_BINDING(
"direction=out"
),
47
mln_diagnostic
* out_diagnostic
48
) MLN_NOEXCEPT;
49
57
typedef struct
mln_android_surface_descriptor
{
58
uint32_t
size
;
59
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
61
void
*
window
;
63
void
*
jni_env
;
65
void
*
surface
;
66
}
mln_android_surface_descriptor
;
67
75
typedef
struct
mln_android_surface_replacement
{
76
uint32_t
size
;
77
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
79
void
*
window
;
81
void
*
jni_env
;
83
void
*
surface
;
84
}
mln_android_surface_replacement
;
85
115
MLN_BINDING(
"execution=lifecycle;platforms=android"
)
116
MLN_API
mln_status
mln_map_attach_android_surface
(
117
mln_map
map, const
mln_android_surface_descriptor
* descriptor,
118
mln_vulkan_device
device MLN_BINDING(
"nullable=true"
),
119
const
mln_render_session_attach_options
* options,
120
mln_render_session
* out_session MLN_BINDING(
"direction=out"
),
121
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
122
) MLN_NOEXCEPT;
123
143
MLN_BINDING(
"execution=operation;platforms=android"
)
144
MLN_API
mln_status
mln_render_session_set_android_surface_target
(
145
mln_render_session
session,
146
const
mln_android_surface_replacement
* replacement,
147
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
148
) MLN_NOEXCEPT;
149
159
typedef struct
mln_android_hardware_buffer_ring_descriptor
{
160
uint32_t
size
;
161
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
163
uint32_t
buffer_count
MLN_BINDING(
"required=true"
);
168
uint64_t
usage
;
169
}
mln_android_hardware_buffer_ring_descriptor
;
170
172
typedef
struct
mln_android_hardware_buffer_frame
{
173
uint32_t
size
;
174
uint32_t
width
;
175
uint32_t
height
;
176
double
scale_factor
;
178
uint32_t
slot
;
180
void
*
buffer
MLN_BINDING(
"lifetime=owner"
);
181
}
mln_android_hardware_buffer_frame
;
182
212
MLN_BINDING(
"execution=lifecycle;platforms=android"
)
213
MLN_API
mln_status
mln_map_attach_android_hardware_buffer_ring
(
214
mln_map
map, const
mln_android_hardware_buffer_ring_descriptor
* descriptor,
215
mln_vulkan_device
device MLN_BINDING(
"nullable=true"
),
216
const
mln_render_session_attach_options
* options,
217
mln_render_session
* out_session MLN_BINDING(
"direction=out"
),
218
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
219
) MLN_NOEXCEPT;
220
239
MLN_BINDING(
"view_owner=frame;platforms=android"
)
240
MLN_API
mln_status
mln_acquired_frame_get_android_hardware_buffer
(
241
mln_acquired_frame
frame,
242
mln_android_hardware_buffer_frame
* out_frame MLN_BINDING(
"direction=out"
),
243
mln_diagnostic
* out_diagnostic
244
) MLN_NOEXCEPT;
245
246
#ifdef __cplusplus
247
}
248
#endif
249
250
#endif
// MAPLIBRE_NATIVE_C_PLATFORM_ANDROID_H
mln_map_attach_android_surface
mln_status mln_map_attach_android_surface(mln_map map, const mln_android_surface_descriptor *descriptor, mln_vulkan_device device, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_android_init
mln_status mln_android_init(void *jni_env, void *context, mln_diagnostic *out_diagnostic)
mln_map_attach_android_hardware_buffer_ring
mln_status mln_map_attach_android_hardware_buffer_ring(mln_map map, const mln_android_hardware_buffer_ring_descriptor *descriptor, mln_vulkan_device device, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_android_frame_pacer_create
mln_status mln_android_frame_pacer_create(const mln_frame_pacer_options *options, mln_frame_pacer *out_pacer, mln_diagnostic *out_diagnostic)
mln_acquired_frame_get_android_hardware_buffer
mln_status mln_acquired_frame_get_android_hardware_buffer(mln_acquired_frame frame, mln_android_hardware_buffer_frame *out_frame, mln_diagnostic *out_diagnostic)
mln_render_session_set_android_surface_target
mln_status mln_render_session_set_android_surface_target(mln_render_session session, const mln_android_surface_replacement *replacement, const mln_completion *completion, mln_diagnostic *out_diagnostic)
base.h
mln_render_session
uint64_t mln_render_session
Definition
base.h:147
mln_map
uint64_t mln_map
Definition
base.h:112
mln_vulkan_device
uint64_t mln_vulkan_device
Definition
base.h:127
mln_acquired_frame
uint64_t mln_acquired_frame
Definition
base.h:154
mln_status
mln_status
Definition
base.h:41
mln_frame_pacer
uint64_t mln_frame_pacer
Definition
base.h:164
completion.h
map.h
render_session.h
render_target.h
mln_android_hardware_buffer_frame
Definition
android.h:172
mln_android_hardware_buffer_frame::scale_factor
double scale_factor
Definition
android.h:176
mln_android_hardware_buffer_frame::size
uint32_t size
Definition
android.h:173
mln_android_hardware_buffer_frame::buffer
void * buffer
Definition
android.h:180
mln_android_hardware_buffer_frame::slot
uint32_t slot
Definition
android.h:178
mln_android_hardware_buffer_frame::height
uint32_t height
Definition
android.h:175
mln_android_hardware_buffer_frame::width
uint32_t width
Definition
android.h:174
mln_android_hardware_buffer_ring_descriptor
Definition
android.h:159
mln_android_hardware_buffer_ring_descriptor::usage
uint64_t usage
Definition
android.h:168
mln_android_hardware_buffer_ring_descriptor::size
uint32_t size
Definition
android.h:160
mln_android_hardware_buffer_ring_descriptor::logical_size
mln_logical_size logical_size
Definition
android.h:161
mln_android_hardware_buffer_ring_descriptor::buffer_count
uint32_t buffer_count
Definition
android.h:163
mln_android_surface_descriptor
Definition
android.h:57
mln_android_surface_descriptor::jni_env
void * jni_env
Definition
android.h:63
mln_android_surface_descriptor::logical_size
mln_logical_size logical_size
Definition
android.h:59
mln_android_surface_descriptor::window
void * window
Definition
android.h:61
mln_android_surface_descriptor::size
uint32_t size
Definition
android.h:58
mln_android_surface_descriptor::surface
void * surface
Definition
android.h:65
mln_android_surface_replacement
Definition
android.h:75
mln_android_surface_replacement::jni_env
void * jni_env
Definition
android.h:81
mln_android_surface_replacement::logical_size
mln_logical_size logical_size
Definition
android.h:77
mln_android_surface_replacement::window
void * window
Definition
android.h:79
mln_android_surface_replacement::surface
void * surface
Definition
android.h:83
mln_android_surface_replacement::size
uint32_t size
Definition
android.h:76
mln_completion
Definition
completion.h:66
mln_diagnostic
Definition
base.h:84
mln_frame_pacer_options
Definition
render_session.h:233
mln_logical_size
Definition
map.h:196
mln_render_session_attach_options
Definition
render_target.h:125
Generated by
1.18.0