upipe-gl/upipe_gl_sink_common.h header reference
Upipe GL - common definitions More
Header inclusion [link]
Members [link]
Types [link]
- enum upipe_gl_sink_command
- enum uprobe_gl_sink_event
Functions [link]
- int upipe_gl_sink_throw_render(struct upipe *upipe, struct uref *uref)
- bool upipe_gl_texture_load_uref(struct uref *uref, unsigned int texture)
Description [link]
Upipe GL - common definitions
Members detail [link]
#define UPIPE_GL_SINK_SIGNATURE [link]
This macro is declared in upipe-gl/upipe_gl_sink_common.h source file, line 38.
#define _UPIPE_GL_UPIPE_GL_SINK_COMMON_H_ [link]
This macro is declared in upipe-gl/upipe_gl_sink_common.h source file, line 31.
enum upipe_gl_sink_command [link]
This enum is declared in upipe-gl/upipe_gl_sink_common.h source file, line 69.
This enum extends upipe_command with specific commands for gl sink.
| Identifier | Value | Description |
|---|---|---|
| UPIPE_GL_SINK_SENTINEL | 0x8000 | |
| UPIPE_GL_SINK_CONTROL_LOCAL | 1 |
This function is declared in upipe-gl/upipe_gl_sink_common.h source file, line 63.
This function throws an UPROBE_GL_SINK_RENDER event.
Parameter list:
- upipe: pointer to pipe throwing the event
- uref: uref structure describing the picture
The return value is an error code
This function is declared in upipe-gl/upipe_gl_sink_common.h source file, line 80.
This function loads a uref picture into the specified texture
- uref: uref structure describing the picture
- texture: GL texture
The return value is false in case of error
enum uprobe_gl_sink_event [link]
This enum is declared in upipe-gl/upipe_gl_sink_common.h source file, line 42.
This enum extends uprobe_event with specific events for gl sink.
| Identifier | Value | Description |
|---|---|---|
| UPROBE_GL_SINK_SENTINEL | 0x8000 | |
| UPROBE_GL_SINK_INIT | 1 | init GL context (int width, int height) |
| UPROBE_GL_SINK_RENDER | 2 | render GL (struct uref *) |
| UPROBE_GL_SINK_RESHAPE | 3 | reshape GL (int width, int height) |
| UPROBE_GL_SINK_LOCAL | 4 |