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
051aedcb
Commit
051aedcb
authored
Mar 31, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do the cropping from the extended panel.
parent
c338db8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+4
-13
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
051aedcb
...
...
@@ -222,24 +222,15 @@ ExtVideo::~ExtVideo()
void
ExtVideo
::
cropChange
()
{
char
*
psz_crop
;
unsigned
int
height
,
width
;
//TODO set the variables if vout exists...
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
p_vout
)
{
height
=
p_vout
->
i_window_height
;
width
=
p_vout
->
i_window_width
;
sprintf
(
psz_crop
,
"%ix%i+%i+%i"
,
width
-
ui
.
cropLeftPx
->
value
()
-
ui
.
cropRightPx
->
value
(),
height
-
ui
.
cropBotPx
->
value
()
-
ui
.
cropTopPx
->
value
(),
ui
.
cropLeftPx
->
value
(),
ui
.
cropTopPx
->
value
()
);
// var_Set( p_vout, "crop-geometry", qtu( qs_crop ) );
var_SetInteger
(
p_vout
,
"crop-top"
,
ui
.
cropTopPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-bottom"
,
ui
.
cropBotPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-left"
,
ui
.
cropLeftPx
->
value
()
);
var_SetInteger
(
p_vout
,
"crop-right"
,
ui
.
cropRightPx
->
value
()
);
}
}
void
ExtVideo
::
ChangeVFiltersString
(
char
*
psz_name
,
vlc_bool_t
b_add
)
...
...
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