VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_gl_picture Struct Reference

An OpenGL picture state, with textures and a coordinate transformation matrix. More...

#include <vlc_opengl_picture.h>

Data Fields

uint32_t textures [(5)]
 Texture handles for each plane.
float mtx [2 *3]
 Matrix to convert from 2D pictures coordinates to texture coordinates.
bool mtx_has_changed
 Indicate if the transform to convert picture coordinates to textures coordinates have changed due to the last picture.

Detailed Description

An OpenGL picture state, with textures and a coordinate transformation matrix.

Field Documentation

◆ mtx

float vlc_gl_picture::mtx[2 *3]

Matrix to convert from 2D pictures coordinates to texture coordinates.

tex_coords = mtx × pic_coords

/ tex_x \ / a b c \ / pic_x \ \ tex_y / = \ d e f / × | pic_y | \ 1 /

It is stored in column-major order: [a, d, b, e, c, f].

Referenced by vlc_gl_picture_ComputeDirectionMatrix(), and vlc_gl_picture_ToTexCoords().

◆ mtx_has_changed

bool vlc_gl_picture::mtx_has_changed

Indicate if the transform to convert picture coordinates to textures coordinates have changed due to the last picture.

The filters should check this flag on every draw() call, and update their coordinates if necessary.

It is guaranteed to be true for the first picture.

◆ textures

uint32_t vlc_gl_picture::textures[(5)]

Texture handles for each plane.


The documentation for this struct was generated from the following file: