transform input video More...
#include <stdint.h>Go to the source code of this file.
transform input video
All matrices are defined as a single 9-item block of contiguous memory. For example, the identity matrix would be:
float *matrix = {1, 0, 0,
0, 1, 0,
0, 0, 1};
Definition in file transform.h.
Definition at line 47 of file transform.h.
Definition at line 48 of file transform.h.
Definition at line 49 of file transform.h.
Definition at line 60 of file transform.h.
| Enumerator | |
|---|---|
| INTERPOLATE_NEAREST | |
| INTERPOLATE_BILINEAR | |
| INTERPOLATE_BIQUADRATIC | |
| INTERPOLATE_COUNT | |
Definition at line 39 of file transform.h.
| Enumerator | |
|---|---|
| FILL_BLANK | |
| FILL_ORIGINAL | |
| FILL_CLAMP | |
| FILL_MIRROR | |
| FILL_COUNT | |
Definition at line 51 of file transform.h.
Get an affine transformation matrix from a given translation, rotation, and zoom factor.
The matrix will look like:
[ zoom * cos(angle), -sin(angle), x_shift, sin(angle), zoom * cos(angle), y_shift, 0, 0, 1 ]
Definition at line 106 of file transform.c.
Referenced by filter_frame().
Add two matrices together.
result = m1 + m2.
Definition at line 118 of file transform.c.
Subtract one matrix from another.
result = m1 - m2.
Definition at line 125 of file transform.c.
Multiply a matrix by a scalar value.
result = m1 * scalar.
Definition at line 132 of file transform.c.
Do an affine transformation with the given interpolation method.
This multiplies each vector [x,y,1] by the matrix and then interpolates to get the final value.
Definition at line 139 of file transform.c.
Referenced by deshake_transform_c().