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)
committerMatthew Waters <matthew@centricular.com>
Wed, 29 Jun 2016 08:04:28 +0000 (18:04 +1000)
commit6958b7a0147334e6d02c30f6f236fbd7e1089081
tree80df09db6b6ccc638b46d8941b4f1af0b6a42179
parentb9cdc9d4b0c115f51253b16665240577b1f81e5e
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