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
2a2d47d7
Commit
2a2d47d7
authored
Sep 10, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/video_output.c: oops.
parent
ff375771
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
src/video_output/video_output.c
src/video_output/video_output.c
+14
-8
No files found.
src/video_output/video_output.c
View file @
2a2d47d7
...
...
@@ -52,7 +52,7 @@ static void ErrorThread ( vout_thread_t * );
static
void
EndThread
(
vout_thread_t
*
);
static
void
DestroyThread
(
vout_thread_t
*
);
static
int
ReduceHeight
(
int
);
static
void
AspectRatio
(
int
,
int
*
,
int
*
);
static
int
BinaryLog
(
uint32_t
);
static
void
MaskToShift
(
int
*
,
int
*
,
uint32_t
);
static
void
InitWindowSize
(
vout_thread_t
*
,
int
*
,
int
*
);
...
...
@@ -331,9 +331,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent,
if
(
i_new_aspect
&&
i_new_aspect
!=
i_aspect
)
{
unsigned
int
i_aspect_x
,
i_aspect_y
;
int
i_aspect_x
,
i_aspect_y
;
vout_
AspectRatio
(
i_new_aspect
,
&
i_aspect_x
,
&
i_aspect_y
);
AspectRatio
(
i_new_aspect
,
&
i_aspect_x
,
&
i_aspect_y
);
msg_Dbg
(
p_vout
,
"overriding source aspect ratio to %i:%i"
,
i_aspect_x
,
i_aspect_y
);
...
...
@@ -527,8 +527,7 @@ void vout_Destroy( vout_thread_t *p_vout )
*****************************************************************************/
static
int
InitThread
(
vout_thread_t
*
p_vout
)
{
int
i
;
unsigned
int
i_aspect_x
,
i_aspect_y
;
int
i
,
i_aspect_x
,
i_aspect_y
;
vlc_mutex_lock
(
&
p_vout
->
change_lock
);
...
...
@@ -577,7 +576,7 @@ static int InitThread( vout_thread_t *p_vout )
if( i_new_aspect && i_new_aspect != p_vout->output.i_aspect )
{
vout_
AspectRatio( i_new_aspect, &i_aspect_x, &i_aspect_y );
AspectRatio( i_new_aspect, &i_aspect_x, &i_aspect_y );
msg_Dbg( p_vout, "output ratio forced to %i:%i\n",
i_aspect_x, i_aspect_y );
...
...
@@ -587,14 +586,14 @@ static int InitThread( vout_thread_t *p_vout )
}
#endif
vout_
AspectRatio
(
p_vout
->
render
.
i_aspect
,
&
i_aspect_x
,
&
i_aspect_y
);
AspectRatio
(
p_vout
->
render
.
i_aspect
,
&
i_aspect_x
,
&
i_aspect_y
);
msg_Dbg
(
p_vout
,
"picture in %ix%i, chroma 0x%.8x (%4.4s), aspect ratio %i:%i"
,
p_vout
->
render
.
i_width
,
p_vout
->
render
.
i_height
,
p_vout
->
render
.
i_chroma
,
(
char
*
)
&
p_vout
->
render
.
i_chroma
,
i_aspect_x
,
i_aspect_y
);
vout_
AspectRatio
(
p_vout
->
output
.
i_aspect
,
&
i_aspect_x
,
&
i_aspect_y
);
AspectRatio
(
p_vout
->
output
.
i_aspect
,
&
i_aspect_x
,
&
i_aspect_y
);
msg_Dbg
(
p_vout
,
"picture out %ix%i, chroma 0x%.8x (%4.4s), aspect ratio %i:%i"
,
p_vout
->
output
.
i_width
,
p_vout
->
output
.
i_height
,
...
...
@@ -1164,6 +1163,13 @@ static int ReduceHeight( int i_ratio )
return
i_pgcd
;
}
static
void
AspectRatio
(
int
i_aspect
,
int
*
i_aspect_x
,
int
*
i_aspect_y
)
{
unsigned
int
i_pgcd
=
ReduceHeight
(
i_aspect
);
*
i_aspect_x
=
i_aspect
/
i_pgcd
;
*
i_aspect_y
=
VOUT_ASPECT_FACTOR
/
i_pgcd
;
}
/*****************************************************************************
* BinaryLog: computes the base 2 log of a binary value
*****************************************************************************
...
...
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