Commit a2fceb8d authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer
Browse files

GL video: updated documentation

parent 878e552f
......@@ -26,16 +26,42 @@
struct opengles_display;
/**
* Create opaque structure to handle OpenGL display
*/
struct opengles_display* ogl_display_new();
/**
* Release opaque struct memory
*/
void ogl_display_free(struct opengles_display* gldisp);
/**
* Perform initialization of opaque structure.
*
* Must be called every time the display area dimensions change
*
* @param width Width of the display area
* @param height Height of the display area.
*/
void ogl_display_init(struct opengles_display* gldisp, int width, int height);
/**
* Uninit opaque structure.
*
* @param freeGLresources Are we allowed to release GL resources. GL resources
* must only be freed within the correct GL context.
*/
void ogl_display_uninit(struct opengles_display* gldisp, bool_t freeGLresources);
/**
* Define the next yuv image to display. Note that yuv content will be copied.
*/
void ogl_display_set_yuv_to_display(struct opengles_display* gldisp, mblk_t *yuv);
/**
* Define the next preview image to diaplsy. Note that yuv its content will be copied.
*/
void ogl_display_set_preview_yuv_to_display(struct opengles_display* gldisp, mblk_t *yuv);
void ogl_display_render(struct opengles_display* gldisp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment