typedef struct gavl_video_options_s gavl_video_options_t |
Opaque container for video conversion options
You don't want to know what's inside.
enum gavl_alpha_mode_t |
enum gavl_scale_mode_t |
Scaling algorithm
GAVL_SCALE_AUTO | Take mode from conversion quality |
GAVL_SCALE_NEAREST | Nearest neighbor |
GAVL_SCALE_BILINEAR | Bilinear |
GAVL_SCALE_QUADRATIC | Quadratic |
GAVL_SCALE_CUBIC_BSPLINE | Cubic B-Spline |
GAVL_SCALE_CUBIC_MITCHELL | Cubic Mitchell-Netravali |
GAVL_SCALE_CUBIC_CATMULL | Cubic Catmull-Rom |
GAVL_SCALE_SINC_LANCZOS | Sinc with Lanczos window. Set order with gavl_video_options_set_scale_order |
GAVL_SCALE_NONE | Used internally when the scaler is used as a convolver |
void gavl_video_options_set_defaults | ( | gavl_video_options_t * | opt | ) |
Set all options to their defaults.
opt | Video options |
gavl_video_options_t* gavl_video_options_create | ( | ) |
Create an options container.
void gavl_video_options_copy | ( | gavl_video_options_t * | dst, | |
const gavl_video_options_t * | src | |||
) |
Copy video options.
dst | Destination | |
src | Source |
void gavl_video_options_destroy | ( | gavl_video_options_t * | opt | ) |
Destroy video options.
opt | Video options |
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.
opt | Video options | |
src_rect | Rectangular area in the source frame or NULL | |
dst_rect | Rectangular area in the destination frame or NULL |
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.
opt | Video options | |
src_rect | Returns the rectangular area in the source frame | |
dst_rect | Returns the rectangular area in the destination frame |
void gavl_video_options_set_quality | ( | gavl_video_options_t * | opt, | |
int | quality | |||
) |
Set the quality level for the converter.
opt | Video options | |
quality | Quality level (see Quality settings) |
int gavl_video_options_get_quality | ( | gavl_video_options_t * | opt | ) |
Get the quality level for the converter.
opt | Video options |
void gavl_video_options_set_conversion_flags | ( | gavl_video_options_t * | opt, | |
int | conversion_flags | |||
) |
Set the conversion flags.
opt | Video options | |
conversion_flags | Conversion flags (see Video conversion flags) |
int gavl_video_options_get_conversion_flags | ( | gavl_video_options_t * | opt | ) |
void gavl_video_options_set_alpha_mode | ( | gavl_video_options_t * | opt, | |
gavl_alpha_mode_t | alpha_mode | |||
) |
Set the alpha mode.
opt | Video options | |
alpha_mode | Alpha mode |
gavl_alpha_mode_t gavl_video_options_get_alpha_mode | ( | gavl_video_options_t * | opt | ) |
Get the alpha mode.
opt | Video options |
void gavl_video_options_set_scale_mode | ( | gavl_video_options_t * | opt, | |
gavl_scale_mode_t | scale_mode | |||
) |
Set the scale mode.
opt | Video options | |
scale_mode | Scale mode |
gavl_scale_mode_t gavl_video_options_get_scale_mode | ( | gavl_video_options_t * | opt | ) |
Get the scale mode.
opt | Video options |
void gavl_video_options_set_scale_order | ( | gavl_video_options_t * | opt, | |
int | order | |||
) |
Set the scale order for GAVL_SCALE_SINC_LANCZOS.
opt | Video options | |
order | Order (must be at least 4) |
int gavl_video_options_get_scale_order | ( | gavl_video_options_t * | opt | ) |
Get the scale order for GAVL_SCALE_SINC_LANCZOS.
opt | Video options |
void gavl_video_options_set_background_color | ( | gavl_video_options_t * | opt, | |
const float * | color | |||
) |
Set the background color for alpha blending.
opt | Video options | |
color | Array of 3 float values (0.0 .. 1.0) in RGB order |
void gavl_video_options_get_background_color | ( | gavl_video_options_t * | opt, | |
float * | color | |||
) |
Get the background color for alpha blending.
opt | Video options | |
color | Returns 3 float values (0.0 .. 1.0) in RGB order |
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.
opt | Video options | |
deinterlace_drop_mode | Deinterlace drop mode |
gavl_deinterlace_drop_mode_t gavl_video_options_get_deinterlace_drop_mode | ( | gavl_video_options_t * | opt | ) |
Get the deinterlace drop mode.
opt | Video options |