VLC 4.0.0-dev
|
#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. More... | |
void(* | close )(struct vlc_gl_filter *filter) |
Free filter resources. More... | |
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) More... | |
void(* | on_input_size_change )(struct vlc_gl_filter *filter, const struct vlc_gl_tex_size *size) |
Callback to notify input size changes. More... | |
void(* vlc_gl_filter_ops::close) (struct vlc_gl_filter *filter) |
Free filter resources.
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.
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.
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).
true | if the resize is accepted (possibly with a modified size_out) |
false | if the resize is rejected (included on error) |