Top | ![]() |
![]() |
![]() |
![]() |
GstVaapiTexture * gst_vaapi_texture_egl_new (GstVaapiDisplay *display
,guint target
,guint format
,guint width
,guint height
);
Creates a texture with the specified dimensions, target
and
format
. Note that only GL_TEXTURE_2D target
and GL_RGBA or
GL_BGRA formats are supported at this time.
The application shall maintain the live EGL context itself. That
is, gst_vaapi_window_egl_make_current()
must be called beforehand,
or any other function like eglMakeCurrent()
if the context is
managed outside of this library.
GstVaapiTexture * gst_vaapi_texture_egl_new_wrapped (GstVaapiDisplay *display
,guint id
,guint target
,guint format
,guint width
,guint height
);
Creates a texture from an existing GL texture, with the specified
target
and format
. Note that only GL_TEXTURE_2D target
and
GL_RGBA or GL_BGRA formats are supported at this time.
The application shall maintain the live EGL context itself. That
is, gst_vaapi_window_egl_make_current()
must be called beforehand,
or any other function like eglMakeCurrent()
if the context is
managed outside of this library.