Typedefs | |
typedef struct gavl_image_transform_s | gavl_image_transform_t |
Opaque image transformation engine. | |
typedef void(* | gavl_image_transform_func )(void *priv, double xdst, double ydst, double *xsrc, double *ysrc) |
Function describing the method. | |
Functions | |
GAVL_PUBLIC gavl_image_transform_t * | gavl_image_transform_create () |
Create a transformation engine. | |
GAVL_PUBLIC void | gavl_image_transform_destroy (gavl_image_transform_t *t) |
Destroy a transformation engine. | |
GAVL_PUBLIC int | gavl_image_transform_init (gavl_image_transform_t *t, gavl_video_format_t *format, gavl_image_transform_func func, void *priv) |
Initialize a transformation engine. | |
GAVL_PUBLIC void | gavl_image_transform_transform (gavl_image_transform_t *t, gavl_video_frame_t *in_frame, gavl_video_frame_t *out_frame) |
Transform an image. | |
GAVL_PUBLIC gavl_video_options_t * | gavl_image_transform_get_options (gavl_image_transform_t *t) |
Get transformation options. |
The interpolation method is set with gavl_video_options_set_scale_mode, but not all modes are supported. When initialized with an invalid scale mode, the transformation engine will silently choose the closest one.
typedef struct gavl_image_transform_s gavl_image_transform_t |
Opaque image transformation engine.
You don't want to know what's inside.
typedef void(* gavl_image_transform_func)(void *priv, double xdst, double ydst, double *xsrc, double *ysrc) |
Function describing the method.
priv | User data | |
xdst | X-coordinate of the destination | |
ydst | Y-coordinate of the destination | |
xsrc | Returns X-coordinate of the source | |
ysrc | Returns Y-coordinate of the source |
GAVL_PUBLIC gavl_image_transform_t* gavl_image_transform_create | ( | ) |
Create a transformation engine.
GAVL_PUBLIC void gavl_image_transform_destroy | ( | gavl_image_transform_t * | t | ) |
Destroy a transformation engine.
t | A transformation engine Since 1.1.0. |
GAVL_PUBLIC int gavl_image_transform_init | ( | gavl_image_transform_t * | t, | |
gavl_video_format_t * | format, | |||
gavl_image_transform_func | func, | |||
void * | priv | |||
) |
Initialize a transformation engine.
t | A transformation engine | |
format | Format (can be changed) | |
func | Coordinate transform function | |
priv | The priv argument for func |
Return type was changed from void to in in version 1.1.2 Under normal circumstances, this function always returns 1.
Since 1.1.0.
GAVL_PUBLIC void gavl_image_transform_transform | ( | gavl_image_transform_t * | t, | |
gavl_video_frame_t * | in_frame, | |||
gavl_video_frame_t * | out_frame | |||
) |
Transform an image.
t | A transformation engine | |
in_frame | Input frame | |
out_frame | Output frame Since 1.1.0. |
GAVL_PUBLIC gavl_video_options_t* gavl_image_transform_get_options | ( | gavl_image_transform_t * | t | ) |
Get transformation options.
t | A transformation engine |
Since 1.1.0.