Modules |
| Video conversion flags |
Typedefs |
typedef struct gavl_video_options_s | gavl_video_options_t |
Enumerations |
enum | gavl_alpha_mode_t {
GAVL_ALPHA_IGNORE = 0,
GAVL_ALPHA_BLEND_COLOR
} |
enum | gavl_deinterlace_mode_t {
GAVL_DEINTERLACE_NONE = 0,
GAVL_DEINTERLACE_COPY = 1,
GAVL_DEINTERLACE_SCALE = 2,
GAVL_DEINTERLACE_BLEND = 3
} |
enum | gavl_deinterlace_drop_mode_t {
GAVL_DEINTERLACE_DROP_TOP,
GAVL_DEINTERLACE_DROP_BOTTOM
} |
| Specifies which field to drop when deinterlacing.
More...
|
enum | gavl_scale_mode_t {
GAVL_SCALE_AUTO,
GAVL_SCALE_NEAREST,
GAVL_SCALE_BILINEAR,
GAVL_SCALE_QUADRATIC,
GAVL_SCALE_CUBIC_BSPLINE,
GAVL_SCALE_CUBIC_MITCHELL,
GAVL_SCALE_CUBIC_CATMULL,
GAVL_SCALE_SINC_LANCZOS,
GAVL_SCALE_NONE
} |
enum | gavl_downscale_filter_t {
GAVL_DOWNSCALE_FILTER_AUTO = 0,
GAVL_DOWNSCALE_FILTER_NONE,
GAVL_DOWNSCALE_FILTER_WIDE,
GAVL_DOWNSCALE_FILTER_GAUSS
} |
Functions |
GAVL_PUBLIC void | gavl_video_options_set_defaults (gavl_video_options_t *opt) |
| Set all options to their defaults.
|
GAVL_PUBLIC gavl_video_options_t * | gavl_video_options_create () |
| Create an options container.
|
GAVL_PUBLIC void | gavl_video_options_copy (gavl_video_options_t *dst, const gavl_video_options_t *src) |
| Copy video options.
|
GAVL_PUBLIC void | gavl_video_options_destroy (gavl_video_options_t *opt) |
| Destroy video options.
|
GAVL_PUBLIC void | gavl_video_options_set_rectangles (gavl_video_options_t *opt, const gavl_rectangle_f_t *src_rect, const gavl_rectangle_i_t *dst_rect) |
| Set source and destination rectangles.
|
GAVL_PUBLIC void | gavl_video_options_get_rectangles (gavl_video_options_t *opt, gavl_rectangle_f_t *src_rect, gavl_rectangle_i_t *dst_rect) |
| Get source and destination rectangles.
|
GAVL_PUBLIC void | gavl_video_options_set_quality (gavl_video_options_t *opt, int quality) |
| Set the quality level for the converter.
|
GAVL_PUBLIC int | gavl_video_options_get_quality (gavl_video_options_t *opt) |
| Get the quality level for the converter.
|
GAVL_PUBLIC void | gavl_video_options_set_conversion_flags (gavl_video_options_t *opt, int conversion_flags) |
| Set the conversion flags.
|
GAVL_PUBLIC int | gavl_video_options_get_conversion_flags (gavl_video_options_t *opt) |
| Get the conversion flags.
|
GAVL_PUBLIC void | gavl_video_options_set_alpha_mode (gavl_video_options_t *opt, gavl_alpha_mode_t alpha_mode) |
| Set the alpha mode.
|
GAVL_PUBLIC gavl_alpha_mode_t | gavl_video_options_get_alpha_mode (gavl_video_options_t *opt) |
| Get the alpha mode.
|
GAVL_PUBLIC void | gavl_video_options_set_scale_mode (gavl_video_options_t *opt, gavl_scale_mode_t scale_mode) |
| Set the scale mode.
|
GAVL_PUBLIC gavl_scale_mode_t | gavl_video_options_get_scale_mode (gavl_video_options_t *opt) |
| Get the scale mode.
|
GAVL_PUBLIC void | gavl_video_options_set_scale_order (gavl_video_options_t *opt, int order) |
| Set the scale order for GAVL_SCALE_SINC_LANCZOS.
|
GAVL_PUBLIC int | gavl_video_options_get_scale_order (gavl_video_options_t *opt) |
| Get the scale order for GAVL_SCALE_SINC_LANCZOS.
|
GAVL_PUBLIC void | gavl_video_options_set_background_color (gavl_video_options_t *opt, const float *color) |
| Set the background color for alpha blending.
|
GAVL_PUBLIC void | gavl_video_options_get_background_color (gavl_video_options_t *opt, float *color) |
| Get the background color for alpha blending.
|
GAVL_PUBLIC void | gavl_video_options_set_deinterlace_drop_mode (gavl_video_options_t *opt, gavl_deinterlace_drop_mode_t deinterlace_drop_mode) |
| Set the deinterlace drop mode.
|
GAVL_PUBLIC
gavl_deinterlace_drop_mode_t | gavl_video_options_get_deinterlace_drop_mode (gavl_video_options_t *opt) |
| Get the deinterlace drop mode.
|
GAVL_PUBLIC void | gavl_video_options_set_downscale_filter (gavl_video_options_t *opt, gavl_downscale_filter_t f) |
| Set antialiasing filter for downscaling.
|
GAVL_PUBLIC gavl_downscale_filter_t | gavl_video_options_get_downscale_filter (gavl_video_options_t *opt) |
| Get the antialiasing filter for downscaling.
|
GAVL_PUBLIC void | gavl_video_options_set_downscale_blur (gavl_video_options_t *opt, float f) |
| Set blur factor for downscaling.
|
GAVL_PUBLIC float | gavl_video_options_get_downscale_blur (gavl_video_options_t *opt) |
| Get blur factor for downscaling.
|
GAVL_PUBLIC void | gavl_video_options_set_num_threads (gavl_video_options_t *opt, int n) |
| Set number of threads.
|
GAVL_PUBLIC int | gavl_video_options_get_num_threads (gavl_video_options_t *opt) |
| Set number of threads.
|
GAVL_PUBLIC void | gavl_video_options_set_run_func (gavl_video_options_t *opt, gavl_video_run_func func, void *client_data) |
| Set function to be passed to each thread.
|
GAVL_PUBLIC gavl_video_run_func | gavl_video_options_get_run_func (gavl_video_options_t *opt, void **client_data) |
| Get function to be passed to each thread.
|
GAVL_PUBLIC void | gavl_video_options_set_stop_func (gavl_video_options_t *opt, gavl_video_stop_func func, void *client_data) |
| Set function to be passed to each thread.
|
GAVL_PUBLIC gavl_video_stop_func | gavl_video_options_get_stop_func (gavl_video_options_t *opt, void **client_data) |
| Get function to be passed to each thread.
|