19 #ifndef MIR_CLIENT_EXTENSIONS_ANDROID_BUFFER_H_ 20 #define MIR_CLIENT_EXTENSIONS_ANDROID_BUFFER_H_ 50 unsigned int hal_pixel_format,
51 unsigned int gralloc_usage_flags,
63 connection,
"mir_extension_android_buffer", 1);
81 typedef MirBuffer* (*MirConnectionAllocateBufferAndroidSync)(
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);
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
unsigned int(* MirBufferAndroidHalPixelFormat)(MirBuffer const *buffer)
Access the HAL_PIXEL_FORMAT of the buffer.
Definition: android_buffer.h:113
MirBufferAndroidNativeHandle native_handle
Definition: android_buffer.h:149
unsigned int height
Definition: mir_peace_wall.h:3
mir_connection_allocate_buffer_android allocate_buffer_android
Definition: android_buffer.h:56
unsigned int(* MirBufferAndroidStride)(MirBuffer const *buffer)
Access the stride in bytes of the buffer.
Definition: android_buffer.h:129
unsigned int width
Definition: mir_peace_wall.h:2
Definition: android_buffer.h:144
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
MirBufferAndroidStride stride
Definition: android_buffer.h:152
struct MirExtensionAndroidBufferV2 MirExtensionAndroidBufferV2
bool(* MirBufferIsAndroidCompatible)(MirBuffer const *buffer)
Check if a MirBuffer is suitable for android usage.
Definition: android_buffer.h:92
Definition: android_buffer.h:54
MirBufferAndroidGrallocUsage gralloc_usage
Definition: android_buffer.h:151
void const * mir_connection_request_extension(MirConnection *connection, char const *interface, int version)
Request a Mir extension.
MirBufferIsAndroidCompatible is_android_compatible
Definition: android_buffer.h:148
unsigned int(* MirBufferAndroidGrallocUsage)(MirBuffer const *buffer)
Access the GRALLOC_USAGE_FLAGS of the buffer.
Definition: android_buffer.h:121
MirBufferAndroidIncRef inc_ref
Definition: android_buffer.h:153
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
MirBufferAndroidHalPixelFormat hal_pixel_format
Definition: android_buffer.h:150
mir_connection_allocate_buffer_android allocate_buffer_android
Definition: android_buffer.h:146
MirConnectionAllocateBufferAndroidSync allocate_buffer_android_sync
Definition: android_buffer.h:147
struct MirExtensionAndroidBufferV1 MirExtensionAndroidBufferV1
MirBufferAndroidDecRef dec_ref
Definition: android_buffer.h:154
void(* MirBufferAndroidDecRef)(MirBuffer *buffer)
Decrease refcount of the ANativeWindowBuffer.
Definition: android_buffer.h:142
void(* MirBufferAndroidIncRef)(MirBuffer *buffer)
Increase refcount of the ANativeWindowBuffer.
Definition: android_buffer.h:136