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
e0fb9220
Commit
e0fb9220
authored
Feb 15, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stay polite
parent
31a51c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+5
-11
No files found.
src/video_output/vout_intf.c
View file @
e0fb9220
...
...
@@ -907,18 +907,12 @@ void vout_EnableFilter( vout_thread_t *p_vout, char *psz_name,
static
void
InitWindowSize
(
vout_thread_t
*
p_vout
,
unsigned
*
pi_width
,
unsigned
*
pi_height
)
{
vlc_value_t
val
;
int
i_width
,
i_height
;
uint64_t
ll_zoom
;
#define FP_FACTOR 1000
/* our fixed point factor */
var_Get
(
p_vout
,
"width"
,
&
val
);
i_width
=
val
.
i_int
;
var_Get
(
p_vout
,
"height"
,
&
val
);
i_height
=
val
.
i_int
;
var_Get
(
p_vout
,
"zoom"
,
&
val
);
ll_zoom
=
(
uint64_t
)(
FP_FACTOR
*
val
.
f_float
);
int
i_width
=
var_GetInteger
(
p_vout
,
"width"
);
int
i_height
=
var_GetInteger
(
p_vout
,
"height"
);
float
f_zoom
=
var_GetFloat
(
p_vout
,
"zoom"
);
uint64_t
ll_zoom
=
(
uint64_t
)(
FP_FACTOR
*
f_zoom
);
if
(
i_width
>
0
&&
i_height
>
0
)
{
...
...
@@ -944,7 +938,7 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
}
if
(
p_vout
->
fmt_in
.
i_sar_num
==
0
||
p_vout
->
fmt_in
.
i_sar_den
==
0
)
{
msg_Warn
(
p_vout
,
"
fucked up aspect
"
);
msg_Warn
(
p_vout
,
"
aspect ratio screwed up
"
);
*
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
);
}
...
...
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