gl/utils: fix matrix conversion for column majorness
Companion to https://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=e4bf9ed8f060021151cd57e2b00493ed696cb47b https://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=16cba63d43f319ac33bc993eca2b1b51679727b3
This commit is contained in:
parent
969089f7a8
commit
bd2920ca2d
@ -161,8 +161,8 @@ void gst_gl_get_affine_transformation_meta_as_ndc_ext
|
||||
} else {
|
||||
float tmp[16];
|
||||
|
||||
gst_gl_multiply_matrix4 (to_ndc_matrix, meta->matrix, tmp);
|
||||
gst_gl_multiply_matrix4 (tmp, from_ndc_matrix, matrix);
|
||||
gst_gl_multiply_matrix4 (from_ndc_matrix, meta->matrix, tmp);
|
||||
gst_gl_multiply_matrix4 (tmp, to_ndc_matrix, matrix);
|
||||
}
|
||||
}
|
||||
|
||||
@ -173,6 +173,6 @@ void gst_gl_set_affine_transformation_meta_from_ndc_ext
|
||||
|
||||
g_return_if_fail (meta != NULL);
|
||||
|
||||
gst_gl_multiply_matrix4 (from_ndc_matrix, matrix, tmp);
|
||||
gst_gl_multiply_matrix4 (tmp, to_ndc_matrix, meta->matrix);
|
||||
gst_gl_multiply_matrix4 (to_ndc_matrix, matrix, tmp);
|
||||
gst_gl_multiply_matrix4 (tmp, from_ndc_matrix, meta->matrix);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user