libfunnel
Loading...
Searching...
No Matches
funnel-egl.h
Go to the documentation of this file.
1
2#pragma once
3
4#include "funnel.h"
5#include <EGL/egl.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
17
24
36
52int funnel_stream_init_egl(struct funnel_stream *stream, EGLDisplay display);
53
69 enum funnel_egl_format format);
70
86int funnel_buffer_get_egl_image(struct funnel_buffer *buf, EGLImage *pimage);
87
101 enum funnel_egl_format *pformat);
102
120 EGLSync *psync);
121
139
140#ifdef __cplusplus
141}
142#endif
int funnel_buffer_get_acquire_egl_sync(struct funnel_buffer *buf, EGLSync *psync)
Get the EGLSync for acquiring the buffer.
int funnel_stream_init_egl(struct funnel_stream *stream, EGLDisplay display)
Set up a stream for EGL integration.
int funnel_buffer_get_egl_format(struct funnel_buffer *buf, enum funnel_egl_format *pformat)
Get the EGL format for a Funnel buffer.
int funnel_buffer_set_release_egl_sync(struct funnel_buffer *buf, EGLSync sync)
Set the EGLSync for releasing the buffer.
int funnel_stream_egl_add_format(struct funnel_stream *stream, enum funnel_egl_format format)
Add a supported EGL format.
funnel_egl_format
Formats available for EGL integration.
Definition funnel-egl.h:28
@ FUNNEL_EGL_FORMAT_RGB888
8-bit RGB without alpha, sRGB (32bpp with padding)
Definition funnel-egl.h:32
@ FUNNEL_EGL_FORMAT_RGBA8888
8-bit RGBA with premultiplied alpha, sRGB (32bpp)
Definition funnel-egl.h:34
@ FUNNEL_EGL_FORMAT_UNKNOWN
Unknown format.
Definition funnel-egl.h:30
int funnel_buffer_get_egl_image(struct funnel_buffer *buf, EGLImage *pimage)
Get the EGLImage for a Funnel buffer.
libfunnel core API
struct funnel_stream funnel_stream
A PipeWire video stream.
Definition funnel.h:36
struct funnel_buffer funnel_buffer
A video buffer (frame).
Definition funnel.h:58