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

#include <vlc_opengl_filter.h>

Data Fields

int(* draw )(struct vlc_gl_filter *filter, const struct vlc_gl_picture *pic, const struct vlc_gl_input_meta *meta)
 Draw the result of the filter to the current framebuffer.
 
void(* close )(struct vlc_gl_filter *filter)
 Free filter resources.
 
int(* request_output_size )(struct vlc_gl_filter *filter, struct vlc_gl_tex_size *size_out, struct vlc_gl_tex_size *optimal_in)
 Request a (responsive) filter to adapt its output size (optional)
 
void(* on_input_size_change )(struct vlc_gl_filter *filter, const struct vlc_gl_tex_size *size)
 Callback to notify input size changes.
 

Field Documentation

◆ close

void(* vlc_gl_filter_ops::close) (struct vlc_gl_filter *filter)

Free filter resources.

◆ draw

int(* vlc_gl_filter_ops::draw) (struct vlc_gl_filter *filter, const struct vlc_gl_picture *pic, const struct vlc_gl_input_meta *meta)

Draw the result of the filter to the current framebuffer.

◆ on_input_size_change

void(* vlc_gl_filter_ops::on_input_size_change) (struct vlc_gl_filter *filter, const struct vlc_gl_tex_size *size)

Callback to notify input size changes.

When a filter changes its output size as a result of request_output_size(), the next filter is notified by this callback.

◆ request_output_size

int(* vlc_gl_filter_ops::request_output_size) (struct vlc_gl_filter *filter, struct vlc_gl_tex_size *size_out, struct vlc_gl_tex_size *optimal_in)

Request a (responsive) filter to adapt its output size (optional)

A responsive filter is a filter for which the size of the produced pictures depends on the output (e.g. display) size rather than the input. This is for example the case for a renderer.

A new output size is requested (size_out). The filter is authorized to change the size_out to enforce its own constraints.

In addition, it may request to the previous filter (if any) an optimal size it wants to receive. If set to non-zero value, this previous filter will receive this size as its requested size (and so on).

Return values
trueif the resize is accepted (possibly with a modified size_out)
falseif the resize is rejected (included on error)

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