SRSDK  0.10.39
Loading...
Searching...
No Matches
OpenGL Interlacer

OpenGL interlacing on Leia devices. More...

Namespaces

namespace  leia
 

Functions

LEIA_NODISCARD LEIASDK_API struct leia_interlacerleia_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.
 

Detailed Description

OpenGL interlacing on Leia devices.

Function Documentation

◆ leia_interlacer_opengl_initialize()

LEIA_NODISCARD LEIASDK_API struct leia_interlacer * leia_interlacer_opengl_initialize ( struct leia_core core,
struct leia_interlacer_init_configuration const *  config,
void *  context 
)
related

Initialize interlacer for usage with OpenGL.

If your application uses OpenGL or OpenGL-ES, use this method to initialize.

Parameters
[in]contextOpenGL context.

◆ leia_interlacer_opengl_do_post_process()

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.

Use this method to perform all graphics rendering - interlacing, ACT, and GUI display.

Parameters
[in]widthWidth of the render-target.
[in]heightHeight of the render-target.
[in]blendedInterlaceWhether to blend the graphics output onto the render-target.

◆ leia_interlacer_opengl_set_output_render_target()

LEIASDK_API void leia_interlacer_opengl_set_output_render_target ( struct leia_interlacer ,
uint32_t  renderTarget 
)

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]renderTargetName 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]glTextureIdThe view texture.
[in]glTextureTargetThe view texture target (GL_TEXTURE_2D or GL_TEXTURE_EXTERNAL_OES)
[in]viewIndexThe view index.
[in]layerThe layer at which to set the view texture.