Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
61af3cf9
Commit
61af3cf9
authored
Nov 01, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified mouse handling in transform filter.
parent
cd3b9892
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
modules/video_filter/transform.c
modules/video_filter/transform.c
+3
-10
No files found.
modules/video_filter/transform.c
View file @
61af3cf9
...
...
@@ -163,19 +163,12 @@ static picture_t *Filter(filter_t *filter, picture_t *src)
static
int
Mouse
(
filter_t
*
filter
,
vlc_mouse_t
*
mouse
,
const
vlc_mouse_t
*
mold
,
const
vlc_mouse_t
*
mnew
)
{
const
video_format_t
*
fmt
=
&
filter
->
fmt_
in
.
video
;
const
video_format_t
*
fmt
=
&
filter
->
fmt_
out
.
video
;
const
transform_description_t
*
dsc
=
filter
->
p_sys
->
dsc
;
*
mouse
=
*
mnew
;
int
w
,
h
;
if
(
dsc
->
is_rotated
)
{
w
=
fmt
->
i_visible_height
;
h
=
fmt
->
i_visible_width
;
}
else
{
w
=
fmt
->
i_visible_width
;
h
=
fmt
->
i_visible_height
;
}
dsc
->
convert
(
&
mouse
->
i_x
,
&
mouse
->
i_y
,
w
,
h
,
mouse
->
i_x
,
mouse
->
i_y
);
dsc
->
convert
(
&
mouse
->
i_x
,
&
mouse
->
i_y
,
fmt
->
i_visible_width
,
fmt
->
i_visible_height
,
mouse
->
i_x
,
mouse
->
i_y
);
return
VLC_SUCCESS
;
}
...
...
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