[Bug 765795] glimagesink: support video frame rotation

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon May 16 07:51:17 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=765795

--- Comment #19 from Haihua Hu <jared.hu at nxp.com> ---
(In reply to Matthew Waters (ystreet00) from comment #18)
> The current transformation is based on 0 to 1 not -1 to 1 as is normal with
> transformations so you have to modify the matrix for that.

Hi Matthew,
I met a problem, when I just apply a translation matrix to the texture
coordinated which is intent to set the origin to point(0.5 0.5), then nothing
happen, the video frame do not move. blow is the matrix

v_texcoord = (u_transformation * vec4(a_texcoord, 0, 1)).xy;

 static const gfloat identity_matrix[] = {
    1.0f,  0.0f,  0.0f,  -0.5f,
    0.0f,  1.0f,  0.0f,  -0.5f,
    0.0f,  0.0f,  1.0f,  0.0f,
    0.0f,  0.0f,  0.0f,  1.0f,
};

but when I just v_texcoord = a_texcoord-0.5, then the origin move to the
middle.

What is the difference? where is wrong?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list