Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
5e15330d
Commit
5e15330d
authored
Oct 28, 2005
by
Marian Durkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for
HDTV-1080
format: window size now correct (1920x1080)
parent
cff02a62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
src/video_output/video_output.c
src/video_output/video_output.c
+14
-10
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+1
-1
No files found.
src/video_output/video_output.c
View file @
5e15330d
...
...
@@ -356,6 +356,8 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
/* Initialize the dimensions of the video window */
InitWindowSize
(
p_vout
,
&
p_vout
->
i_window_width
,
&
p_vout
->
i_window_height
);
msg_Dbg
(
p_vout
,
"Window size: %dx%d"
,
p_vout
->
i_window_width
,
p_vout
->
i_window_height
);
/* Create the vout thread */
p_vout
->
p_module
=
module_Need
(
p_vout
,
...
...
@@ -1256,29 +1258,31 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
{
*
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
);
p_vout
->
fmt_in
.
i_aspect
/
FP_FACTOR
);
return
;
}
else
if
(
i_height
>
0
)
{
*
pi_height
=
(
int
)(
i_height
*
ll_zoom
/
FP_FACTOR
);
*
pi_width
=
(
int
)(
i_height
*
ll_zoom
*
p_vout
->
render
.
i_aspect
/
*
pi_width
=
(
int
)(
i_height
*
ll_zoom
*
p_vout
->
fmt_in
.
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
)
if
(
p_vout
->
fmt_in
.
i_visible_height
*
p_vout
->
fmt_in
.
i_aspect
>=
p_vout
->
fmt_in
.
i_visible
_width
*
VOUT_ASPECT_FACTOR
)
{
*
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
);
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_height
*
ll_zoom
*
p_vout
->
fmt_in
.
i_aspect
/
VOUT_ASPECT_FACTOR
/
FP_FACTOR
);
*
pi_height
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_height
*
ll_zoom
/
FP_FACTOR
);
}
else
{
*
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
);
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
/
FP_FACTOR
);
*
pi_height
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
*
VOUT_ASPECT_FACTOR
/
p_vout
->
fmt_in
.
i_aspect
/
FP_FACTOR
);
}
#undef FP_FACTOR
...
...
src/video_output/vout_intf.c
View file @
5e15330d
...
...
@@ -265,7 +265,7 @@ void vout_IntfInit( vout_thread_t *p_vout )
if
(
!
i_aspect_num
||
!
i_aspect_den
)
{
i_aspect_num
=
4
;
i_aspect_
num
=
3
;
i_aspect_
den
=
3
;
}
p_vout
->
i_par_num
=
i_aspect_num
*
3
*
4
;
p_vout
->
i_par_den
=
i_aspect_den
;
...
...
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