glcolorconvert: don't assume Red/RG textures will be used
authorMatthew Waters <matthew@centricular.com>
Tue, 28 Jun 2016 03:09:51 +0000 (13:09 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:21 +0000 (19:32 +0000)
commit2ba09263859eef3789e0daa7c58ec25e6c21177c
treec37f9d3dbbda2f3f9e0ec21f2eb4d41f43d12690
parentdb51c90d5dfba8dc434648a10703b32aa9c0bf5a
glcolorconvert: don't assume Red/RG textures will be used

Take the used texture type from the memory instead.

Fixes conversion from multi-planar YUV formats with two components per plane
(NV12, NV21, YUY2, UYVY, GRAY16_*, etc) with Luminance Alpha input textures.

This is also needed for zerocopy decoding on iOS with GLES 3.x.
gst-libs/gst/gl/gstglcolorconvert.c