diff options
author | Jarek Samic <cldfire3@gmail.com> | 2019-08-08 09:24:31 -0400 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-08-22 23:11:27 +0100 |
commit | 5b5746b1e0d2cfef307e3f7c8edec5876eca53dc (patch) | |
tree | 4ff56171e4ca91eb5feda34dc4619d9f0247ab8d /libavfilter/transform.h | |
parent | d3cd33ab1b23fb459e25ae92a0cd7fbfe7c1c169 (diff) | |
download | ffmpeg-5b5746b1e0d2cfef307e3f7c8edec5876eca53dc.tar.gz |
lavfi: modify avfilter_get_matrix to support separate scale factors
Diffstat (limited to 'libavfilter/transform.h')
-rw-r--r-- | libavfilter/transform.h | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/libavfilter/transform.h b/libavfilter/transform.h index 07436bfccb..9b0c19ceca 100644 --- a/libavfilter/transform.h +++ b/libavfilter/transform.h @@ -60,20 +60,28 @@ enum FillMethod { #define FILL_DEFAULT FILL_ORIGINAL /** - * Get an affine transformation matrix from a given translation, rotation, and - * zoom factor. The matrix will look like: + * Get an affine transformation matrix from given translation, rotation, and + * zoom factors. The matrix will look like: * - * [ zoom * cos(angle), -sin(angle), x_shift, - * sin(angle), zoom * cos(angle), y_shift, - * 0, 0, 1 ] + * [ scale_x * cos(angle), -sin(angle), x_shift, + * sin(angle), scale_y * cos(angle), y_shift, + * 0, 0, 1 ] * - * @param x_shift horizontal translation - * @param y_shift vertical translation - * @param angle rotation in radians - * @param zoom scale percent (1.0 = 100%) - * @param matrix 9-item affine transformation matrix + * @param x_shift horizontal translation + * @param y_shift vertical translation + * @param angle rotation in radians + * @param scale_x x scale percent (1.0 = 100%) + * @param scale_y y scale percent (1.0 = 100%) + * @param matrix 9-item affine transformation matrix */ -void avfilter_get_matrix(float x_shift, float y_shift, float angle, float zoom, float *matrix); +void ff_get_matrix( + float x_shift, + float y_shift, + float angle, + float scale_x, + float scale_y, + float *matrix +); /** * Add two matrices together. result = m1 + m2. |