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
7ca5ee99
Commit
7ca5ee99
authored
Feb 15, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup
parent
e0fb9220
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+3
-8
No files found.
src/video_output/vout_intf.c
View file @
7ca5ee99
...
@@ -918,7 +918,6 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
...
@@ -918,7 +918,6 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
{
{
*
pi_width
=
(
int
)(
i_width
*
ll_zoom
/
FP_FACTOR
);
*
pi_width
=
(
int
)(
i_width
*
ll_zoom
/
FP_FACTOR
);
*
pi_height
=
(
int
)(
i_height
*
ll_zoom
/
FP_FACTOR
);
*
pi_height
=
(
int
)(
i_height
*
ll_zoom
/
FP_FACTOR
);
goto
initwsize_end
;
}
}
else
if
(
i_width
>
0
)
else
if
(
i_width
>
0
)
{
{
...
@@ -926,7 +925,6 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
...
@@ -926,7 +925,6 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
*
pi_height
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_height
*
ll_zoom
*
*
pi_height
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_height
*
ll_zoom
*
p_vout
->
fmt_in
.
i_sar_den
*
i_width
/
p_vout
->
fmt_in
.
i_sar_num
/
p_vout
->
fmt_in
.
i_sar_den
*
i_width
/
p_vout
->
fmt_in
.
i_sar_num
/
FP_FACTOR
/
p_vout
->
fmt_in
.
i_visible_width
);
FP_FACTOR
/
p_vout
->
fmt_in
.
i_visible_width
);
goto
initwsize_end
;
}
}
else
if
(
i_height
>
0
)
else
if
(
i_height
>
0
)
{
{
...
@@ -934,10 +932,9 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
...
@@ -934,10 +932,9 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
*
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
*
p_vout
->
fmt_in
.
i_sar_num
*
i_height
/
p_vout
->
fmt_in
.
i_sar_den
/
p_vout
->
fmt_in
.
i_sar_num
*
i_height
/
p_vout
->
fmt_in
.
i_sar_den
/
FP_FACTOR
/
p_vout
->
fmt_in
.
i_visible_height
);
FP_FACTOR
/
p_vout
->
fmt_in
.
i_visible_height
);
goto
initwsize_end
;
}
}
else
if
(
p_vout
->
fmt_in
.
i_sar_num
==
0
||
p_vout
->
fmt_in
.
i_sar_den
==
0
)
if
(
p_vout
->
fmt_in
.
i_sar_num
==
0
||
p_vout
->
fmt_in
.
i_sar_den
==
0
)
{
{
msg_Warn
(
p_vout
,
"aspect ratio screwed up"
);
msg_Warn
(
p_vout
,
"aspect ratio screwed up"
);
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
/
FP_FACTOR
);
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
/
FP_FACTOR
);
*
pi_height
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_height
*
ll_zoom
/
FP_FACTOR
);
*
pi_height
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_height
*
ll_zoom
/
FP_FACTOR
);
...
@@ -957,9 +954,7 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
...
@@ -957,9 +954,7 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
p_vout
->
fmt_in
.
i_sar_den
/
p_vout
->
fmt_in
.
i_sar_num
/
FP_FACTOR
);
p_vout
->
fmt_in
.
i_sar_den
/
p_vout
->
fmt_in
.
i_sar_num
/
FP_FACTOR
);
}
}
initwsize_end:
msg_Dbg
(
p_vout
,
"window size: %ux%u"
,
*
pi_width
,
*
pi_height
);
msg_Dbg
(
p_vout
,
"window size: %dx%d"
,
p_vout
->
i_window_width
,
p_vout
->
i_window_height
);
#undef 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