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
acd098ab
Commit
acd098ab
authored
Aug 30, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed fb-aspect-ratio as it duplicates monitor-par.
parent
14c1f6de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
31 deletions
+3
-31
modules/video_output/fb.c
modules/video_output/fb.c
+3
-31
No files found.
modules/video_output/fb.c
View file @
acd098ab
...
...
@@ -62,10 +62,6 @@
"Run framebuffer on current TTY device (default enabled). " \
"(disable tty handling with caution)" )
#define ASPECT_RATIO_TEXT N_("Video aspect ratio")
#define ASPECT_RATIO_LONGTEXT N_( \
"Aspect ratio of the video image (4:3, 16:9). Default is square pixels." )
#define FB_MODE_TEXT N_("Framebuffer resolution to use.")
#define FB_MODE_LONGTEXT N_( \
"Select the resolution for the framebuffer. Currently it supports " \
...
...
@@ -88,8 +84,7 @@ vlc_module_begin ()
false
)
add_bool
(
"fb-tty"
,
1
,
NULL
,
TTY_TEXT
,
TTY_LONGTEXT
,
true
)
add_obsolete_string
(
"fb-chroma"
);
add_string
(
"fb-aspect-ratio"
,
NULL
,
NULL
,
ASPECT_RATIO_TEXT
,
ASPECT_RATIO_LONGTEXT
,
true
)
add_obsolete_string
(
"fb-aspect-ratio"
);
add_integer
(
"fb-mode"
,
4
,
NULL
,
FB_MODE_TEXT
,
FB_MODE_LONGTEXT
,
true
)
add_bool
(
"fb-hw-accel"
,
true
,
NULL
,
HW_ACCEL_TEXT
,
HW_ACCEL_LONGTEXT
,
...
...
@@ -153,7 +148,6 @@ struct vout_sys_t
/* Video information */
uint32_t
i_width
;
uint32_t
i_height
;
int
i_aspect
;
int
i_bytes_per_pixel
;
bool
b_auto
;
/* Automatically adjust video size to fb size */
...
...
@@ -205,24 +199,6 @@ static int Open( vlc_object_t *p_this )
#endif
#endif
p_sys
->
i_aspect
=
-
1
;
char
*
psz_aspect
=
var_CreateGetNonEmptyString
(
p_vout
,
"fb-aspect-ratio"
);
if
(
psz_aspect
)
{
char
*
psz_parser
=
strchr
(
psz_aspect
,
':'
);
if
(
psz_parser
)
{
*
psz_parser
++
=
'\0'
;
p_sys
->
i_aspect
=
(
atoi
(
psz_aspect
)
*
VOUT_ASPECT_FACTOR
)
/
atoi
(
psz_parser
);
}
msg_Dbg
(
p_vout
,
"using aspect ratio %d:%d"
,
atoi
(
psz_aspect
),
atoi
(
psz_parser
)
);
free
(
psz_aspect
);
}
p_sys
->
b_auto
=
false
;
const
int
i_mode
=
var_CreateGetInteger
(
p_vout
,
"fb-mode"
);
switch
(
i_mode
)
...
...
@@ -507,12 +483,8 @@ static int Init( vout_thread_t *p_vout )
p_vout
->
fmt_out
.
i_visible_height
=
p_sys
->
i_height
;
/* Assume we have square pixels */
if
(
p_sys
->
i_aspect
<
0
)
{
p_vout
->
output
.
i_aspect
=
(
p_sys
->
i_width
*
VOUT_ASPECT_FACTOR
)
/
p_sys
->
i_height
;
}
else
p_vout
->
output
.
i_aspect
=
p_sys
->
i_aspect
;
p_vout
->
output
.
i_aspect
=
(
p_sys
->
i_width
*
VOUT_ASPECT_FACTOR
)
/
p_sys
->
i_height
;
p_vout
->
fmt_out
.
i_sar_num
=
p_vout
->
fmt_out
.
i_sar_den
=
1
;
p_vout
->
fmt_out
.
i_aspect
=
p_vout
->
render
.
i_aspect
=
p_vout
->
output
.
i_aspect
;
...
...
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