mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-16 12:25:50 +00:00
eagl: Disable usage of R and RG textures on iOS
They don't work currently and just render zeroes, while the fallback code path with LUM and LUM_ALPHA textures still works. https://bugzilla.gnome.org/show_bug.cgi?id=732390
This commit is contained in:
parent
23eb9beef8
commit
f6ae4ab243
2 changed files with 12 additions and 0 deletions
|
@ -690,9 +690,13 @@ _YUV_to_RGB (GstGLColorConvert * convert)
|
|||
GstVideoFormat out_format = GST_VIDEO_INFO_FORMAT (&convert->out_info);
|
||||
const gchar *out_format_str = gst_video_format_to_string (out_format);
|
||||
gchar *pixel_order = _RGB_pixel_order ("rgba", out_format_str);
|
||||
#ifdef GST_GL_HAVE_PLATFORM_EAGL
|
||||
gboolean texture_rg = FALSE;
|
||||
#else
|
||||
gboolean texture_rg =
|
||||
gst_gl_context_check_feature (convert->context, "GL_EXT_texture_rg")
|
||||
|| gst_gl_context_check_feature (convert->context, "GL_ARB_texture_rg");
|
||||
#endif
|
||||
|
||||
info->out_n_textures = 1;
|
||||
|
||||
|
@ -885,9 +889,13 @@ _GRAY_to_RGB (GstGLColorConvert * convert)
|
|||
GstVideoFormat out_format = GST_VIDEO_INFO_FORMAT (&convert->out_info);
|
||||
const gchar *out_format_str = gst_video_format_to_string (out_format);
|
||||
gchar *pixel_order = _RGB_pixel_order ("rgba", out_format_str);
|
||||
#ifdef GST_GL_HAVE_PLATFORM_EAGL
|
||||
gboolean texture_rg = FALSE;
|
||||
#else
|
||||
gboolean texture_rg =
|
||||
gst_gl_context_check_feature (convert->context, "GL_EXT_texture_rg")
|
||||
|| gst_gl_context_check_feature (convert->context, "GL_ARB_texture_rg");
|
||||
#endif
|
||||
|
||||
info->in_n_textures = 1;
|
||||
info->out_n_textures = 1;
|
||||
|
|
|
@ -193,9 +193,13 @@ GstVideoGLTextureType
|
|||
gst_gl_texture_type_from_format (GstGLContext * context,
|
||||
GstVideoFormat v_format, guint plane)
|
||||
{
|
||||
#ifdef GST_GL_HAVE_PLATFORM_EAGL
|
||||
gboolean texture_rg = FALSE;
|
||||
#else
|
||||
gboolean texture_rg =
|
||||
gst_gl_context_check_feature (context, "GL_EXT_texture_rg")
|
||||
|| gst_gl_context_check_feature (context, "GL_ARB_texture_rg");
|
||||
#endif
|
||||
guint n_plane_components;
|
||||
|
||||
switch (v_format) {
|
||||
|
|
Loading…
Reference in a new issue