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
e47ca53d
Commit
e47ca53d
authored
Feb 23, 2005
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wall.c: user-configurable aspect-ratio for the displays
parent
113fd7d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
modules/video_filter/wall.c
modules/video_filter/wall.c
+23
-0
No files found.
modules/video_filter/wall.c
View file @
e47ca53d
...
...
@@ -62,6 +62,9 @@ static int SendEvents( vlc_object_t *, char const *,
#define ACTIVE_LONGTEXT N_("Comma separated list of active windows, " \
"defaults to all")
#define ASPECT_TEXT N_("Element aspect ratio")
#define ASPECT_LONGTEXT N_("The aspect ratio of the individual displays building the display wall")
vlc_module_begin
();
set_description
(
_
(
"wall video filter"
)
);
set_shortname
(
N_
(
"Image wall"
));
...
...
@@ -72,6 +75,7 @@ vlc_module_begin();
add_integer
(
"wall-cols"
,
3
,
NULL
,
COLS_TEXT
,
COLS_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"wall-rows"
,
3
,
NULL
,
ROWS_TEXT
,
ROWS_LONGTEXT
,
VLC_FALSE
);
add_string
(
"wall-active"
,
NULL
,
NULL
,
ACTIVE_TEXT
,
ACTIVE_LONGTEXT
,
VLC_FALSE
);
add_string
(
"wall-element-aspect"
,
"4:3"
,
NULL
,
ASPECT_TEXT
,
ASPECT_LONGTEXT
,
VLC_FALSE
);
add_shortcut
(
"wall"
);
set_callbacks
(
Create
,
Destroy
);
...
...
@@ -231,6 +235,25 @@ static int Init( vout_thread_t *p_vout )
unsigned
int
w1
,
h1
,
w2
,
h2
;
int
i_xpos
,
i_ypos
;
int
i_vstart_rounded
=
0
,
i_hstart_rounded
=
0
;
char
*
psz_aspect
;
psz_aspect
=
config_GetPsz
(
p_vout
,
"wall-element-aspect"
);
if
(
psz_aspect
&&
*
psz_aspect
)
{
char
*
psz_parser
=
strchr
(
psz_aspect
,
':'
);
if
(
psz_parser
)
{
*
psz_parser
++
=
'\0'
;
i_aspect
=
atoi
(
psz_aspect
)
*
VOUT_ASPECT_FACTOR
/
atoi
(
psz_parser
);
}
else
{
msg_Warn
(
p_vout
,
"invalid aspect ratio specification"
);
}
free
(
psz_aspect
);
}
i_xpos
=
var_CreateGetInteger
(
p_vout
,
"video-x"
);
i_ypos
=
var_CreateGetInteger
(
p_vout
,
"video-y"
);
...
...
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