gstreamer/gst-libs/gst
Matthew Waters e4bf9ed8f0 gl/utils: Fix NDC conversion matrices for column-majorness
The matrices were converting the wrong values with non-diagonal-only matrices.
e.g. a typical yflip matrix in [-1,1]^3 such as
 1  0  0  0
 0 -1  0  0
 0  0  1  0
 0  0  0  1

Would have actually required a matrix like this in [0,1]^3
 1  0  0  0
 0 -1  0  0
 0  0  1  0
 0 -2  0  1

Which is
1. not consistent with our multiplication convention and would require
   transposing matrices or changing our multiplication order (from what is
   generally used on opengl matrix guides/tutorials).
2. Produces incorrect values when input with actual vertices accounting for
   the difference in multiplication order.  e.g. some vertices multiplied by
   the yflip matrix using vertex * yflip(== transpose(yflip) * vertex):

     vertex:       -> result:           expected:
     vec4(1,0,1,1) -> vec4(1,-2,1,1)    vec4(1,1,1,1)
     vec4(1,1,1,1) -> vec4(1,-3,1,1)    vec4(1,0,1,1)

With the updated values, we now get the expected values.

Includes a test for this behaviour and the example above
2018-06-06 23:36:08 +10:00
..
allocators libs: g-ir-scanner: do not hardcode libtool path 2018-05-18 13:41:25 +02:00
app docs: Fix typos 2018-05-22 14:10:03 +01:00
audio audio: fix some GIR array annotations 2018-05-21 09:18:35 +02:00
fft fft: GST_EXPORT -> GST_FFT_API 2018-03-13 12:10:29 +00:00
gl gl/utils: Fix NDC conversion matrices for column-majorness 2018-06-06 23:36:08 +10:00
pbutils libs: g-ir-scanner: do not hardcode libtool path 2018-05-18 13:41:25 +02:00
riff libs: g-ir-scanner: do not hardcode libtool path 2018-05-18 13:41:25 +02:00
rtp rtpbasedepayload: Properly propagate segment seqnum 2018-06-05 17:24:55 +02:00
rtsp libs: g-ir-scanner: do not hardcode libtool path 2018-05-18 13:41:25 +02:00
sdp libs: g-ir-scanner: do not hardcode libtool path 2018-05-18 13:41:25 +02:00
tag meson: install license-translations.dict and set LICENSE_TRANSLATIONS_PATH 2018-05-20 14:27:39 +01:00
video video: fix some GIR array annotations 2018-05-21 09:18:35 +02:00
gettext.h Fix FSF address 2012-11-03 23:05:09 +00:00
glib-compat-private.h Fix FSF address 2012-11-03 23:05:09 +00:00
gst-i18n-app.h tools: add simple command-line gst-play utility for testing purposes 2013-08-16 15:45:23 +01:00
gst-i18n-plugin.h Fix FSF address 2012-11-03 23:05:09 +00:00
Makefile.am gl: hook up to build system 2017-12-19 12:01:48 +00:00
meson.build gl: hook up to build system 2017-12-19 12:01:48 +00:00