OpenGL interlacing on Leia devices.
More...
|
LEIA_NODISCARD LEIASDK_API struct leia_interlacer * | leia_interlacer_opengl_initialize (struct leia_core *core, struct leia_interlacer_init_configuration const *config, void *context) |
| Initialize interlacer for usage with OpenGL.
|
|
LEIASDK_API void | leia_interlacer_opengl_do_post_process (struct leia_interlacer *, int32_t width, int32_t height, leia_bool blendedInterlace) |
| Perform OpenGL graphics rendering.
|
|
LEIASDK_API void | leia_interlacer_opengl_set_output_render_target (struct leia_interlacer *, uint32_t renderTarget) |
| Set the OpenGL output texture.
|
|
LEIASDK_API void | leia_interlacer_opengl_set_source_views (struct leia_interlacer *, uint32_t glTextureId, uint32_t glTextureTarget, int32_t viewIndex, int layer) |
| Set the OpenGL view texture.
|
|
OpenGL interlacing on Leia devices.
◆ leia_interlacer_opengl_initialize()
Initialize interlacer for usage with OpenGL.
If your application uses OpenGL or OpenGL-ES, use this method to initialize.
- Parameters
-
[in] | context | OpenGL context. |
◆ leia_interlacer_opengl_do_post_process()
Perform OpenGL graphics rendering.
Use this method to perform all graphics rendering - interlacing, ACT, and GUI display.
- Parameters
-
[in] | width | Width of the render-target. |
[in] | height | Height of the render-target. |
[in] | blendedInterlace | Whether to blend the graphics output onto the render-target. |
◆ leia_interlacer_opengl_set_output_render_target()
Set the OpenGL output texture.
To render to a render-target other than the default backbuffer, use this method to specify it's name.
- Parameters
-
[in] | renderTarget | Name of views OpenGL render-target. |
◆ leia_interlacer_opengl_set_source_views()
LEIASDK_API void leia_interlacer_opengl_set_source_views |
( |
struct leia_interlacer * |
, |
|
|
uint32_t |
glTextureId, |
|
|
uint32_t |
glTextureTarget, |
|
|
int32_t |
viewIndex, |
|
|
int |
layer |
|
) |
| |
Set the OpenGL view texture.
This method allows you to specify the texture for a specific view index and layer.
- Parameters
-
[in] | glTextureId | The view texture. |
[in] | glTextureTarget | The view texture target (GL_TEXTURE_2D or GL_TEXTURE_EXTERNAL_OES) |
[in] | viewIndex | The view index. |
[in] | layer | The layer at which to set the view texture. |