Skip to content

opengl: fix transform order

Romain Vimont requested to merge rom1v/vlc:fix_transform_order into master

The TransformMatrix is provided by Android to apply its internal coordinates transformations to sample the texture at the correct location, so it must be applied last, after the orientation/crop from the picture_t.

Refs https://developer.android.com/reference/android/graphics/SurfaceTexture#getTransformMatrix(float%5B%5D)

Beforehand, make all matrices 3x3 for consistency and to simplify the product of matrices.

Merge request reports

Loading