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
98a5db4c
Commit
98a5db4c
authored
Aug 11, 2005
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change name to --monitor-aspect-ratio so its consistent with other programs
(like mplayer)
parent
c4aaedc8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
NEWS
NEWS
+1
-1
src/libvlc.h
src/libvlc.h
+7
-7
src/video_output/video_output.c
src/video_output/video_output.c
+6
-6
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+1
-1
No files found.
NEWS
View file @
98a5db4c
...
...
@@ -5,7 +5,7 @@ Changes between 0.8.2 and 0.8.4-svn (not yet released):
Core support:
* IPv6 and Extended passive mode support for FTP
* new --
screen
-aspect-ratio option
* new --
monitor
-aspect-ratio option
Services discovery:
* Bleeding edge UPnP service discovery
...
...
src/libvlc.h
View file @
98a5db4c
...
...
@@ -275,11 +275,11 @@ static char *ppsz_align_descriptions[] =
"aspect, or a float value (1.25, 1.3333, etc.) expressing pixel " \
"squareness.")
#define
SASPECT_RATIO_TEXT N_("Screen
aspect ratio")
#define
S
ASPECT_RATIO_LONGTEXT N_( \
"This will force the
scree aspect ratio. Default screen aspect ratio
" \
"
is 4:3. Setting the screen aspect ratio to 4:3 will have no effect,
" \
"o
ther settings (like 16:9) will change the image
.")
#define
MASPECT_RATIO_TEXT N_("Monitor
aspect ratio")
#define
M
ASPECT_RATIO_LONGTEXT N_( \
"This will force the
monitor aspect ratio. Most monitors have a 4:3.
" \
"
If you have a 16:9 screen, you will need to change this to 16:9 in
" \
"o
rder to keep proportions
.")
#define SKIP_FRAMES_TEXT N_("Skip frames")
#define SKIP_FRAMES_LONGTEXT N_( \
...
...
@@ -997,8 +997,8 @@ vlc_module_begin();
add_integer
(
"video-y"
,
-
1
,
NULL
,
VIDEOY_TEXT
,
VIDEOY_LONGTEXT
,
VLC_TRUE
);
add_string
(
"aspect-ratio"
,
""
,
NULL
,
ASPECT_RATIO_TEXT
,
ASPECT_RATIO_LONGTEXT
,
VLC_FALSE
);
add_string
(
"
screen-aspect-ratio"
,
"
"
,
NULL
,
SASPECT_RATIO_TEXT
,
S
ASPECT_RATIO_LONGTEXT
,
VLC_FALSE
);
add_string
(
"
monitor-aspect-ratio"
,
"4:3
"
,
NULL
,
MASPECT_RATIO_TEXT
,
M
ASPECT_RATIO_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"video-deco"
,
1
,
NULL
,
VIDEO_DECO_TEXT
,
VIDEO_DECO_LONGTEXT
,
VLC_TRUE
);
add_string
(
"video-title"
,
NULL
,
NULL
,
VIDEO_TITLE_TEXT
,
...
...
src/video_output/video_output.c
View file @
98a5db4c
...
...
@@ -316,9 +316,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
* the video output pipe */
if
(
p_parent
->
i_object_type
!=
VLC_OBJECT_VOUT
)
{
int
i_
screen_aspect_x
=
4
,
i_screen
_aspect_y
=
3
;
int
i_
monitor_aspect_x
=
4
,
i_monitor
_aspect_y
=
3
;
var_Get
(
p_vout
,
"aspect-ratio"
,
&
val
);
var_Get
(
p_vout
,
"
screen
-aspect-ratio"
,
&
val2
);
var_Get
(
p_vout
,
"
monitor
-aspect-ratio"
,
&
val2
);
if
(
val2
.
psz_string
)
{
...
...
@@ -326,11 +326,11 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
if
(
psz_parser
)
{
*
psz_parser
++
=
'\0'
;
i_
screen
_aspect_x
=
atoi
(
val2
.
psz_string
);
i_
screen
_aspect_y
=
atoi
(
psz_parser
);
i_
monitor
_aspect_x
=
atoi
(
val2
.
psz_string
);
i_
monitor
_aspect_y
=
atoi
(
psz_parser
);
}
else
{
AspectRatio
(
VOUT_ASPECT_FACTOR
*
atof
(
val2
.
psz_string
),
&
i_
screen_aspect_x
,
&
i_screen
_aspect_y
);
&
i_
monitor_aspect_x
,
&
i_monitor
_aspect_y
);
}
free
(
val2
.
psz_string
);
...
...
@@ -358,7 +358,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
}
}
i_new_aspect
=
(
int
)((
float
)
i_new_aspect
*
(
float
)
i_
screen_aspect_y
*
4
.
0
/
((
float
)
i_screen
_aspect_x
*
3
.
0
));
*
(
float
)
i_
monitor_aspect_y
*
4
.
0
/
((
float
)
i_monitor
_aspect_x
*
3
.
0
));
free
(
val
.
psz_string
);
...
...
src/video_output/vout_intf.c
View file @
98a5db4c
...
...
@@ -177,7 +177,7 @@ void vout_IntfInit( vout_thread_t *p_vout )
var_Create
(
p_vout
,
"snapshot-path"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_vout
,
"snapshot-format"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_vout
,
"aspect-ratio"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_vout
,
"
screen
-aspect-ratio"
,
var_Create
(
p_vout
,
"
monitor
-aspect-ratio"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_vout
,
"width"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_vout
,
"height"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
...
...
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