Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
99d48b07
Commit
99d48b07
authored
Oct 20, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/transform.h: apply misc doxy cosmetical changes
parent
8daf04ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
29 deletions
+24
-29
transform.h
libavfilter/transform.h
+24
-29
No files found.
libavfilter/transform.h
View file @
99d48b07
...
...
@@ -60,44 +60,40 @@ enum FillMethod {
*
* [ zoom * cos(angle), -sin(angle), x_shift,
* sin(angle), zoom * cos(angle), y_shift,
0, 0, 1 ]
*
0, 0, 1 ]
*
* Paramters:
* x_shift: Horizontal translation
* y_shift: Vertical translation
* angle: Rotation in radians
* zoom: Scale percent (1.0 = 100%)
* matrix: 9-item affine transformation matrix
* @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
*/
void
avfilter_get_matrix
(
float
x_shift
,
float
y_shift
,
float
angle
,
float
zoom
,
float
*
matrix
);
/**
* Add two matrices together. result = m1 + m2.
*
* Parameters:
* m1: 9-item transformation matrix
* m2: 9-item transformation matrix
* result: 9-item transformation matrix
* @param m1 9-item transformation matrix
* @param m2 9-item transformation matrix
* @param result 9-item transformation matrix
*/
void
avfilter_add_matrix
(
const
float
*
m1
,
const
float
*
m2
,
float
*
result
);
/**
* Subtract one matrix from another. result = m1 - m2.
*
* Parameters:
* m1: 9-item transformation matrix
* m2: 9-item transformation matrix
* result: 9-item transformation matrix
* @param m1 9-item transformation matrix
* @param m2 9-item transformation matrix
* @param result 9-item transformation matrix
*/
void
avfilter_sub_matrix
(
const
float
*
m1
,
const
float
*
m2
,
float
*
result
);
/**
* Multiply a matrix by a scalar value. result = m1 * scalar.
*
* Parameters:
* m1: 9-item transformation matrix
* scalar: A number
* result: 9-item transformation matrix
* @param m1 9-item transformation matrix
* @param scalar a number
* @param result 9-item transformation matrix
*/
void
avfilter_mul_matrix
(
const
float
*
m1
,
float
scalar
,
float
*
result
);
...
...
@@ -106,16 +102,15 @@ void avfilter_mul_matrix(const float *m1, float scalar, float *result);
* multiplies each vector [x,y,1] by the matrix and then interpolates to
* get the final value.
*
* Parameters:
* src: Source image
* dst: Destination image
* src_stride: Source image line size in bytes
* dst_stride: Destination image line size in bytes
* width: Image width in pixels
* height: Image height in pixels
* matrix: 9-item affine transformation matrix
* interpolate: Pixel interpolation method
* fill: Edge fill method
* @param src source image
* @param dst destination image
* @param src_stride source image line size in bytes
* @param dst_stride destination image line size in bytes
* @param width image width in pixels
* @param height image height in pixels
* @param matrix 9-item affine transformation matrix
* @param interpolate pixel interpolation method
* @param fill edge fill method
*/
void
avfilter_transform
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_stride
,
int
dst_stride
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment