gl: add support for Y212_LE / Y212_BE format
authorHaihao Xiang <haihao.xiang@intel.com>
Mon, 30 Mar 2020 06:37:26 +0000 (14:37 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Wed, 1 Apr 2020 05:55:11 +0000 (13:55 +0800)
commit5f859203ad6a5a08bca5472b37050ffb16b26f1a
treed941f0fc7302fbaecd6fb7a7c43f1bd115539fab
parentfb1c284026333ca0988cb1b0ea7235c744b74f0b
gl: add support for Y212_LE / Y212_BE format

Because the color value is stored in MSB, so we can reuse the
Y210 code for P012_LE / P012_BE

Sample pipeline:
gst-launch-1.0 videotestsrc ! video/x-raw,format=Y212_LE ! glimagesink
gst-libs/gst/gl/gstglcolorconvert.c
gst-libs/gst/gl/gstglcolorconvert.h
gst-libs/gst/gl/gstglformat.c
gst-libs/gst/gl/gstglmemory.h