Mir
Functions
mir_buffer.h File Reference
#include <stdbool.h>
#include <mir_toolkit/client_types.h>
#include <mir_toolkit/mir_native_buffer.h>
Include dependency graph for mir_buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void mir_connection_allocate_buffer (MirConnection *connection, int width, int height, MirPixelFormat format, MirBufferCallback available_callback, void *available_context)
 Allocate a MirBuffer and do not wait for the server to return it. More...
 
MirBuffermir_connection_allocate_buffer_sync (MirConnection *connection, int width, int height, MirPixelFormat format)
 Allocate a MirBuffer and wait for the server to return it. More...
 
bool mir_buffer_is_valid (MirBuffer const *buffer)
 Test for a valid buffer. More...
 
char const * mir_buffer_get_error_message (MirBuffer const *buffer)
 Retrieve a text description an error associated with a MirBuffer. More...
 
MirBufferPackagemir_buffer_get_buffer_package (MirBuffer *buffer)
 Access the MirBufferPackage. More...
 
bool mir_buffer_map (MirBuffer *buffer, MirGraphicsRegion *region, MirBufferLayout *layout)
 Access a CPU-mapped region associated with a given buffer. More...
 
void mir_buffer_unmap (MirBuffer *buffer)
 Flush the CPU caches for the buffer. More...
 
unsigned int mir_buffer_get_width (MirBuffer const *buffer)
 Retrieve the width of the buffer in pixels. More...
 
unsigned int mir_buffer_get_height (MirBuffer const *buffer)
 Retrieve the height of the buffer in pixels. More...
 
MirPixelFormat mir_buffer_get_pixel_format (MirBuffer const *buffer)
 Retrieve the pixel format of the buffer. More...
 
void mir_buffer_release (MirBuffer *buffer)
 release a MirBuffer More...
 

Function Documentation

◆ mir_buffer_release()

void mir_buffer_release ( MirBuffer buffer)

release a MirBuffer

Parameters
[in]bufferThe buffer to be released

Copyright © 2012-2021 Canonical Ltd.
Generated on Fri Jan 29 19:02:38 UTC 2021
This documentation is licensed under the GPL version 2 or 3.