Mir
mir_buffer_stream.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef MIR_TOOLKIT_MIR_BUFFER_STREAM_H_
19 #define MIR_TOOLKIT_MIR_BUFFER_STREAM_H_
20 
23 
24 #ifdef __cplusplus
25 
29 extern "C" {
30 #endif
31 
39 bool mir_buffer_stream_is_valid(MirBufferStream *buffer_stream);
40 
51 
73  int width, int height,
74  MirPixelFormat format,
75  MirBufferUsage buffer_usage,
77  void* context);
78 
95  int width, int height,
96  MirPixelFormat format,
97  MirBufferUsage buffer_usage);
98 
112  MirBufferStream * buffer_stream,
114  void *context);
115 
122 
141 __attribute__ ((deprecated))
143 
151  MirNativeBuffer **buffer_package);
152 
167  MirBufferStream *buffer_stream,
169  void *context);
170 
177 
188  MirBufferStream *buffer_stream,
189  MirGraphicsRegion *graphics_region);
190 
197 
205 
212 void mir_buffer_stream_set_scale_sync(MirBufferStream* stream, float scale);
213 
214 #ifdef __cplusplus
215 }
217 #endif
218 
219 #endif // MIR_TOOLKIT_MIR_BUFFER_STREAM_H_
struct MirBufferStream MirBufferStream
Definition: client_types.h:46
MirBufferStream * mir_connection_create_buffer_stream_sync(MirConnection *connection, int width, int height, MirPixelFormat format, MirBufferUsage buffer_usage)
Create a new buffer stream unattached to a surface and wait for the result.
Definition: mir_buffer_stream_api.cpp:67
Definition: mir_wait_handle.h:31
void(* mir_buffer_stream_callback)(MirBufferStream *stream, void *client_context)
Callback to be passed when calling:
Definition: client_types.h:96
int __attribute__((constructor)) init_google_protobuf()
Definition: google_protobuf_guard.cpp:21
void mir_buffer_stream_get_graphics_region(MirBufferStream *buffer_stream, MirGraphicsRegion *graphics_region)
Retrieve a buffer stream&#39;s graphics region.
Definition: mir_buffer_stream_api.cpp:135
void mir_buffer_stream_release_sync(MirBufferStream *buffer_stream)
Release the specified buffer stream like in mir,_buffer_stream_release(), but also wait for the opera...
Definition: mir_buffer_stream_api.cpp:94
MirWaitHandle * mir_buffer_stream_set_scale(MirBufferStream *stream, float scale)
Set the scale associated with all buffers in the stream.
Definition: mir_buffer_stream_api.cpp:184
void mir_buffer_stream_swap_buffers_sync(MirBufferStream *buffer_stream)
Advance a buffer stream&#39;s buffer as in mir_buffer stream_swap_buffers(), but also wait for the operat...
Definition: mir_buffer_stream_api.cpp:128
MirWaitHandle * mir_buffer_stream_release(MirBufferStream *buffer_stream, mir_buffer_stream_callback callback, void *context)
Release the supplied stream and any associated buffer.
Definition: mir_buffer_stream_api.cpp:84
Definition: mir_native_buffer.h:30
void mir_buffer_stream_set_scale_sync(MirBufferStream *stream, float scale)
Set the scale as in mir_buffer_stream_set_scale(), but also wait for the operation to complete...
Definition: mir_buffer_stream_api.cpp:199
MirEGLNativeWindowType mir_buffer_stream_get_egl_native_window(MirBufferStream *buffer_stream)
Retrieve a window type which may be used by EGL.
Definition: mir_buffer_stream_api.cpp:154
MirPlatformType mir_buffer_stream_get_platform_type(MirBufferStream *buffer_stream)
Definition: mir_buffer_stream_api.cpp:166
void mir_buffer_stream_get_current_buffer(MirBufferStream *buffer_stream, MirNativeBuffer **buffer_package)
Retrieve the current buffer in "raw" representation.
Definition: mir_buffer_stream_api.cpp:99
char const * mir_buffer_stream_get_error_message(MirBufferStream *surface)
Retrieve a text description of the error.
Definition: mir_buffer_stream_api.cpp:206
bool mir_buffer_stream_is_valid(MirBufferStream *buffer_stream)
Test for a valid buffer stream.
Definition: mir_buffer_stream_api.cpp:178
unsigned int width
Definition: touchspot_image.c:4
MirBufferUsage
MirBufferUsage specifies how a surface can and will be used.
Definition: client_types.h:159
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:134
void * MirEGLNativeWindowType
Definition: client_types.h:38
unsigned int height
Definition: touchspot_image.c:5
Definition: mir_connection.h:96
Retrieved information about a MirSurface.
Definition: client_types.h:236
MirPlatformType
The native buffer type for the system the client is connected on.
Definition: client_types.h:200
MirWaitHandle * mir_connection_create_buffer_stream(MirConnection *connection, int width, int height, MirPixelFormat format, MirBufferUsage buffer_usage, mir_buffer_stream_callback callback, void *context)
Create a new buffer stream.
Definition: mir_buffer_stream_api.cpp:50
MirWaitHandle * mir_buffer_stream_swap_buffers(MirBufferStream *buffer_stream, mir_buffer_stream_callback callback, void *context)
Advance a buffer stream&#39;s buffer.
Definition: mir_buffer_stream_api.cpp:110

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016