Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
4b626428
Commit
4b626428
authored
Nov 15, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./src/video_output/video_output.c: backport of a fix in MAIN for
spoiled FPU registers.
parent
b65d9970
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
src/video_output/video_output.c
src/video_output/video_output.c
+21
-17
No files found.
src/video_output/video_output.c
View file @
4b626428
...
...
@@ -5,7 +5,7 @@
* thread, and destroy a previously oppened video output thread.
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: video_output.c,v 1.180.2.
1 2002/06/02 02:23:34
sam Exp $
* $Id: video_output.c,v 1.180.2.
2 2002/11/15 12:22:58
sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -978,44 +978,48 @@ static void InitWindowSize( vout_thread_t *p_vout, int *pi_width,
int
*
pi_height
)
{
int
i_width
,
i_height
;
double
f_zoom
;
uint64_t
ll_zoom
;
#define FP_FACTOR 1000
/* our fixed point factor */
i_width
=
config_GetIntVariable
(
"width"
);
i_height
=
config_GetIntVariable
(
"height"
);
f_zoom
=
config_GetFloatVariable
(
"zoom"
);
ll_zoom
=
(
u64
)(
FP_FACTOR
*
config_GetFloatVariable
(
"zoom"
)
);
if
(
(
i_width
>=
0
)
&&
(
i_height
>=
0
))
{
*
pi_width
=
i_width
*
f_zoom
;
*
pi_height
=
i_height
*
f_zoom
;
*
pi_width
=
(
int
)(
i_width
*
ll_zoom
/
FP_FACTOR
)
;
*
pi_height
=
(
int
)(
i_height
*
ll_zoom
/
FP_FACTOR
)
;
return
;
}
else
if
(
i_width
>=
0
)
{
*
pi_width
=
i_width
*
f_zoom
;
*
pi_height
=
i_width
*
f
_zoom
*
VOUT_ASPECT_FACTOR
/
p_vout
->
render
.
i_aspect
;
*
pi_width
=
(
int
)(
i_width
*
ll_zoom
/
FP_FACTOR
)
;
*
pi_height
=
(
int
)(
i_width
*
ll
_zoom
*
VOUT_ASPECT_FACTOR
/
p_vout
->
render
.
i_aspect
/
FP_FACTOR
)
;
return
;
}
else
if
(
i_height
>=
0
)
{
*
pi_height
=
i_height
*
f_zoom
;
*
pi_width
=
i_height
*
f
_zoom
*
p_vout
->
render
.
i_aspect
/
VOUT_ASPECT_FACTOR
;
*
pi_height
=
(
int
)(
i_height
*
ll_zoom
/
FP_FACTOR
)
;
*
pi_width
=
(
int
)(
i_height
*
ll
_zoom
*
p_vout
->
render
.
i_aspect
/
VOUT_ASPECT_FACTOR
/
FP_FACTOR
)
;
return
;
}
if
(
p_vout
->
render
.
i_height
*
p_vout
->
render
.
i_aspect
>=
p_vout
->
render
.
i_width
*
VOUT_ASPECT_FACTOR
)
{
*
pi_width
=
p_vout
->
render
.
i_height
*
f
_zoom
*
p_vout
->
render
.
i_aspect
/
VOUT_ASPECT_FACTOR
;
*
pi_height
=
p_vout
->
render
.
i_height
*
f_zoom
;
*
pi_width
=
(
int
)(
p_vout
->
render
.
i_height
*
ll
_zoom
*
p_vout
->
render
.
i_aspect
/
VOUT_ASPECT_FACTOR
/
FP_FACTOR
)
;
*
pi_height
=
(
int
)(
p_vout
->
render
.
i_height
*
ll_zoom
/
FP_FACTOR
)
;
}
else
{
*
pi_width
=
p_vout
->
render
.
i_width
*
f_zoom
;
*
pi_height
=
p_vout
->
render
.
i_width
*
f
_zoom
*
VOUT_ASPECT_FACTOR
/
p_vout
->
render
.
i_aspect
;
*
pi_width
=
(
int
)(
p_vout
->
render
.
i_width
*
ll_zoom
/
FP_FACTOR
)
;
*
pi_height
=
(
int
)(
p_vout
->
render
.
i_width
*
ll
_zoom
*
VOUT_ASPECT_FACTOR
/
p_vout
->
render
.
i_aspect
/
FP_FACTOR
)
;
}
#undef FP_FACTOR
}
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