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
fa972dcf
Commit
fa972dcf
authored
May 20, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/display: use hypot().
parent
584327f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
display.c
libavutil/display.c
+2
-4
No files found.
libavutil/display.c
View file @
fa972dcf
...
...
@@ -35,10 +35,8 @@ double av_display_rotation_get(const int32_t matrix[9])
{
double
rotation
,
scale
[
2
];
scale
[
0
]
=
sqrt
(
CONV_FP
(
matrix
[
0
])
*
CONV_FP
(
matrix
[
0
])
+
CONV_FP
(
matrix
[
3
])
*
CONV_FP
(
matrix
[
3
]));
scale
[
1
]
=
sqrt
(
CONV_FP
(
matrix
[
1
])
*
CONV_FP
(
matrix
[
1
])
+
CONV_FP
(
matrix
[
4
])
*
CONV_FP
(
matrix
[
4
]));
scale
[
0
]
=
hypot
(
CONV_FP
(
matrix
[
0
]),
CONV_FP
(
matrix
[
3
]));
scale
[
1
]
=
hypot
(
CONV_FP
(
matrix
[
1
]),
CONV_FP
(
matrix
[
4
]));
if
(
scale
[
0
]
==
0
.
0
||
scale
[
1
]
==
0
.
0
)
return
NAN
;
...
...
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