Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
f5ab870f
Commit
f5ab870f
authored
Oct 12, 2012
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rotate: simplify angle stuff
parent
79ab1f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/video_filter/rotate.c
modules/video_filter/rotate.c
+2
-4
No files found.
modules/video_filter/rotate.c
View file @
f5ab870f
...
@@ -211,11 +211,10 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -211,11 +211,10 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
p_sys
->
p_motion
!=
NULL
)
if
(
p_sys
->
p_motion
!=
NULL
)
{
{
int
i_angle
=
motion_get_angle
(
p_sys
->
p_motion
);
int
i_angle
=
motion_get_angle
(
p_sys
->
p_motion
)
/
2
;
if
(
p_sys
->
i_angle
!=
i_angle
)
if
(
p_sys
->
i_angle
!=
i_angle
)
{
{
p_sys
->
i_angle
=
i_angle
;
p_sys
->
i_angle
=
i_angle
;
i_angle
=
((
3600
+
i_angle
/
2
)
%
3600
);
cache_trigo
(
i_angle
,
&
p_sys
->
i_sin
,
&
p_sys
->
i_cos
);
cache_trigo
(
i_angle
,
&
p_sys
->
i_sin
,
&
p_sys
->
i_cos
);
}
}
}
}
...
@@ -376,11 +375,10 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
...
@@ -376,11 +375,10 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
if
(
p_sys
->
p_motion
!=
NULL
)
if
(
p_sys
->
p_motion
!=
NULL
)
{
{
int
i_angle
=
motion_get_angle
(
p_sys
->
p_motion
);
int
i_angle
=
motion_get_angle
(
p_sys
->
p_motion
)
/
2
;
if
(
p_sys
->
i_angle
!=
i_angle
)
if
(
p_sys
->
i_angle
!=
i_angle
)
{
{
p_sys
->
i_angle
=
i_angle
;
p_sys
->
i_angle
=
i_angle
;
i_angle
=
((
3600
+
i_angle
/
2
)
%
3600
);
cache_trigo
(
i_angle
,
&
p_sys
->
i_sin
,
&
p_sys
->
i_cos
);
cache_trigo
(
i_angle
,
&
p_sys
->
i_sin
,
&
p_sys
->
i_cos
);
}
}
}
}
...
...
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