Go to the documentation of this file.
19 #ifndef MIR_CLIENT_EXTENSIONS_ANDROID_BUFFER_H_
20 #define MIR_CLIENT_EXTENSIONS_ANDROID_BUFFER_H_
49 int width,
int height,
50 unsigned int hal_pixel_format,
51 unsigned int gralloc_usage_flags,
63 connection,
"mir_extension_android_buffer", 1);
81 typedef MirBuffer* (*MirConnectionAllocateBufferAndroidSync)(
83 int width,
int height,
84 unsigned int hal_pixel_format,
85 unsigned int gralloc_usage_flags);
105 int* num_fds,
int const** fds,
106 int* num_data,
int const** data);
161 connection,
"mir_extension_android_buffer", 2);
MirBufferAndroidDecRef dec_ref
Definition: android_buffer.h:154
unsigned int(* MirBufferAndroidGrallocUsage)(MirBuffer const *buffer)
Access the GRALLOC_USAGE_FLAGS of the buffer.
Definition: android_buffer.h:121
MirBufferAndroidGrallocUsage gralloc_usage
Definition: android_buffer.h:151
MirBuffer *(* MirConnectionAllocateBufferAndroidSync)(MirConnection *connection, int width, int height, unsigned int hal_pixel_format, unsigned int gralloc_usage_flags)
Allocate a MirBuffer usable by the android platform and wait for server response.
Definition: android_buffer.h:81
void(* MirBufferAndroidNativeHandle)(MirBuffer const *buffer, int *num_fds, int const **fds, int *num_data, int const **data)
Access the data from the native_handle_t of the MirBuffer.
Definition: android_buffer.h:103
MirBufferAndroidStride stride
Definition: android_buffer.h:152
void(* MirBufferAndroidIncRef)(MirBuffer *buffer)
Increase refcount of the ANativeWindowBuffer.
Definition: android_buffer.h:136
MirBufferAndroidIncRef inc_ref
Definition: android_buffer.h:153
void(* MirBufferAndroidDecRef)(MirBuffer *buffer)
Decrease refcount of the ANativeWindowBuffer.
Definition: android_buffer.h:142
unsigned int(* MirBufferAndroidHalPixelFormat)(MirBuffer const *buffer)
Access the HAL_PIXEL_FORMAT of the buffer.
Definition: android_buffer.h:113
void const * mir_connection_request_extension(MirConnection *connection, char const *interface, int version)
Request a Mir extension.
void(* mir_connection_allocate_buffer_android)(MirConnection *connection, int width, int height, unsigned int hal_pixel_format, unsigned int gralloc_usage_flags, MirBufferCallback available_callback, void *available_context)
Allocate a MirBuffer usable by the android platform.
Definition: android_buffer.h:47
Definition: android_buffer.h:145
mir_connection_allocate_buffer_android allocate_buffer_android
Definition: android_buffer.h:146
mir_connection_allocate_buffer_android allocate_buffer_android
Definition: android_buffer.h:56
struct MirExtensionAndroidBufferV2 MirExtensionAndroidBufferV2
MirBufferAndroidNativeHandle native_handle
Definition: android_buffer.h:149
Definition: android_buffer.h:55
MirBufferAndroidHalPixelFormat hal_pixel_format
Definition: android_buffer.h:150
MirBufferIsAndroidCompatible is_android_compatible
Definition: android_buffer.h:148
bool(* MirBufferIsAndroidCompatible)(MirBuffer const *buffer)
Check if a MirBuffer is suitable for android usage.
Definition: android_buffer.h:92
MirConnectionAllocateBufferAndroidSync allocate_buffer_android_sync
Definition: android_buffer.h:147
unsigned int(* MirBufferAndroidStride)(MirBuffer const *buffer)
Access the stride in bytes of the buffer.
Definition: android_buffer.h:129
struct MirExtensionAndroidBufferV1 MirExtensionAndroidBufferV1
Copyright © 2012-2021
Canonical Ltd.
Generated on Thu Jun 24 19:55:23 UTC 2021
This documentation is licensed under the GPL version 2 or 3.