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
3d03caf5
Commit
3d03caf5
authored
Jan 30, 2009
by
Joseph Tulou
Committed by
Jean-Baptiste Kempf
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SDL: support for autoscaling
Modifications by /me Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
65892a47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
modules/video_output/sdl.c
modules/video_output/sdl.c
+22
-0
No files found.
modules/video_output/sdl.c
View file @
3d03caf5
...
@@ -577,6 +577,28 @@ static int Manage( vout_thread_t *p_vout )
...
@@ -577,6 +577,28 @@ static int Manage( vout_thread_t *p_vout )
p_vout
->
i_changes
|=
VOUT_SIZE_CHANGE
;
p_vout
->
i_changes
|=
VOUT_SIZE_CHANGE
;
}
}
/* autoscale toggle */
if
(
p_vout
->
i_changes
&
VOUT_SCALE_CHANGE
)
{
p_vout
->
i_changes
&=
~
VOUT_SCALE_CHANGE
;
p_vout
->
b_autoscale
=
var_GetBool
(
p_vout
,
"autoscale"
);
p_vout
->
i_zoom
=
(
int
)
ZOOM_FP_FACTOR
;
p_vout
->
i_changes
|=
VOUT_SIZE_CHANGE
;
}
/* scaling factor (if no-autoscale) */
if
(
p_vout
->
i_changes
&
VOUT_ZOOM_CHANGE
)
{
p_vout
->
i_changes
&=
~
VOUT_ZOOM_CHANGE
;
p_vout
->
b_autoscale
=
false
;
p_vout
->
i_zoom
=
(
int
)(
ZOOM_FP_FACTOR
*
var_GetFloat
(
p_vout
,
"scale"
)
);
p_vout
->
i_changes
|=
VOUT_SIZE_CHANGE
;
}
/* Crop or Aspect Ratio Changes */
/* Crop or Aspect Ratio Changes */
if
(
p_vout
->
i_changes
&
VOUT_CROP_CHANGE
||
if
(
p_vout
->
i_changes
&
VOUT_CROP_CHANGE
||
p_vout
->
i_changes
&
VOUT_ASPECT_CHANGE
)
p_vout
->
i_changes
&
VOUT_ASPECT_CHANGE
)
...
...
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