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_image_transform_t * | gavl_image_transform_create () |
| Create a transformation engine. | |
| void | gavl_image_transform_destroy (gavl_image_transform_t *t) |
| Destroy a transformation engine. | |
| void | gavl_image_transform_init (gavl_image_transform_t *t, gavl_video_format_t *format, gavl_image_transform_func func, void *priv) |
| Destroy a transformation engine. | |
| 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_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_image_transform_t* gavl_image_transform_create | ( | ) |
Create a transformation engine.
| void gavl_image_transform_destroy | ( | gavl_image_transform_t * | t | ) |
Destroy a transformation engine.
| t | A transformation engine Since 1.1.0. |
| void gavl_image_transform_init | ( | gavl_image_transform_t * | t, | |
| gavl_video_format_t * | format, | |||
| gavl_image_transform_func | func, | |||
| void * | priv | |||
| ) |
Destroy a transformation engine.
| t | A transformation engine | |
| Format | (can be changed) | |
| func | Coordinate transform function | |
| priv | The priv argument for func Since 1.1.0. |
| 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 | |
| Input | frame | |
| Output | frame Since 1.1.0. |
| 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.
1.5.8