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

#include <vlc_opengl_sampler.h>

Data Fields

void(* fetch_locations )(struct vlc_gl_sampler *sampler, uint32_t program)
 Callback to fetch locations of uniform or attribute variables.
void(* load )(struct vlc_gl_sampler *sampler)
 Callback to load sampler data.
int(* update )(struct vlc_gl_sampler *sampler, const struct vlc_gl_picture *picture)
 Update the input picture.
void(* select_plane )(struct vlc_gl_sampler *sampler, unsigned plane)
 Select the plane to expose.
void(* close )(struct vlc_gl_sampler *sampler)
 Close the sampler, releasing resources.

Field Documentation

◆ close

void(* vlc_gl_sampler_ops::close) (struct vlc_gl_sampler *sampler)

Close the sampler, releasing resources.

Parameters
samplerthe sampler

◆ fetch_locations

void(* vlc_gl_sampler_ops::fetch_locations) (struct vlc_gl_sampler *sampler, uint32_t program)

Callback to fetch locations of uniform or attribute variables.

This function pointer cannot be NULL. This callback is called one time after the program is linked.

Parameters
samplerthe sampler
programthe linked GL program handle

Referenced by vlc_gl_sampler_FetchLocations().

◆ load

void(* vlc_gl_sampler_ops::load) (struct vlc_gl_sampler *sampler)

Callback to load sampler data.

This function pointer cannot be NULL. This callback can be used to specify values of uniform variables.

Parameters
samplerthe sampler

Referenced by vlc_gl_sampler_Load().

◆ select_plane

void(* vlc_gl_sampler_ops::select_plane) (struct vlc_gl_sampler *sampler, unsigned plane)

Select the plane to expose.

If the sampler exposes planes separately (for plane filters), select the plane to expose via the GLSL function vlc_texture().

Parameters
samplerthe sampler
planethe plane number

Referenced by vlc_gl_sampler_SelectPlane().

◆ update

int(* vlc_gl_sampler_ops::update) (struct vlc_gl_sampler *sampler, const struct vlc_gl_picture *picture)

Update the input picture.

Parameters
samplerthe sampler
picturethe OpenGL picture
Returns
VLC_SUCCESS or a VLC error

Referenced by vlc_gl_sampler_Update().


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