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
5a33cfd2
Commit
5a33cfd2
authored
Jan 07, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Same change as marq for positioning code.
parent
c8445968
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
25 deletions
+23
-25
modules/video_filter/logo.c
modules/video_filter/logo.c
+12
-13
modules/video_filter/rss.c
modules/video_filter/rss.c
+11
-12
No files found.
modules/video_filter/logo.c
View file @
5a33cfd2
...
...
@@ -105,14 +105,14 @@ vlc_module_begin();
set_callbacks
(
Create
,
Destroy
);
add_file
(
CFG_PREFIX
"file"
,
NULL
,
NULL
,
FILE_TEXT
,
FILE_LONGTEXT
,
VLC_FALSE
);
add_integer
(
CFG_PREFIX
"x"
,
-
1
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
VLC_TRUE
);
add_integer
(
CFG_PREFIX
"x"
,
0
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
VLC_TRUE
);
add_integer
(
CFG_PREFIX
"y"
,
0
,
NULL
,
POSY_TEXT
,
POSY_LONGTEXT
,
VLC_TRUE
);
/* default to 1000 ms per image, continuously cycle through them */
add_integer
(
CFG_PREFIX
"delay"
,
1000
,
NULL
,
DELAY_TEXT
,
DELAY_LONGTEXT
,
VLC_TRUE
);
add_integer
(
CFG_PREFIX
"repeat"
,
-
1
,
NULL
,
REPEAT_TEXT
,
REPEAT_LONGTEXT
,
VLC_TRUE
);
add_integer_with_range
(
CFG_PREFIX
"transparency"
,
255
,
0
,
255
,
NULL
,
TRANS_TEXT
,
TRANS_LONGTEXT
,
VLC_FALSE
);
add_integer
(
CFG_PREFIX
"position"
,
6
,
NULL
,
POS_TEXT
,
POS_LONGTEXT
,
VLC_FALSE
);
add_integer
(
CFG_PREFIX
"position"
,
-
1
,
NULL
,
POS_TEXT
,
POS_LONGTEXT
,
VLC_FALSE
);
change_integer_list
(
pi_pos_values
,
ppsz_pos_descriptions
,
0
);
/* subpicture filter submodule */
...
...
@@ -877,21 +877,20 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
vlc_mutex_unlock
(
&
p_logo_list
->
lock
);
/* where to locate the logo: */
if
(
p_sys
->
posx
<
0
||
p_sys
->
posy
<
0
)
{
/* set to one of the 9 relative locations */
p_region
->
i_align
=
p_sys
->
pos
;
p_spu
->
i_x
=
0
;
p_spu
->
i_y
=
0
;
p_spu
->
b_absolute
=
VLC_FALSE
;
if
(
p_sys
->
pos
<
0
)
{
/* set to an absolute xy */
p_spu
->
p_region
->
i_align
=
OSD_ALIGN_RIGHT
|
OSD_ALIGN_TOP
;
p_spu
->
b_absolute
=
VLC_TRUE
;
}
else
{
/* set to an absolute xy, referenced to upper left corner */
p_region
->
i_align
=
OSD_ALIGN_LEFT
|
OSD_ALIGN_TOP
;
p_spu
->
i_x
=
p_sys
->
posx
;
p_spu
->
i_y
=
p_sys
->
posy
;
p_spu
->
b_absolute
=
VLC_TRUE
;
{
/* set to one of the 9 relative locations */
p_spu
->
p_region
->
i_align
=
p_sys
->
pos
;
p_spu
->
b_absolute
=
VLC_FALSE
;
}
p_spu
->
i_x
=
p_sys
->
posx
;
p_spu
->
i_y
=
p_sys
->
posy
;
p_spu
->
p_region
=
p_region
;
p_spu
->
i_alpha
=
(
p_logo
->
i_alpha
!=
-
1
?
...
...
modules/video_filter/rss.c
View file @
5a33cfd2
...
...
@@ -186,9 +186,9 @@ vlc_module_begin();
add_string
(
CFG_PREFIX
"urls"
,
"rss"
,
NULL
,
MSG_TEXT
,
MSG_LONGTEXT
,
VLC_FALSE
);
set_section
(
N_
(
"Position"
),
NULL
);
add_integer
(
CFG_PREFIX
"x"
,
-
1
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
VLC_TRUE
);
add_integer
(
CFG_PREFIX
"x"
,
0
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
VLC_TRUE
);
add_integer
(
CFG_PREFIX
"y"
,
0
,
NULL
,
POSY_TEXT
,
POSY_LONGTEXT
,
VLC_TRUE
);
add_integer
(
CFG_PREFIX
"position"
,
5
,
NULL
,
POS_TEXT
,
POS_LONGTEXT
,
VLC_FALSE
);
add_integer
(
CFG_PREFIX
"position"
,
-
1
,
NULL
,
POS_TEXT
,
POS_LONGTEXT
,
VLC_FALSE
);
change_integer_list
(
pi_pos_values
,
ppsz_pos_descriptions
,
0
);
set_section
(
N_
(
"Font"
),
NULL
);
...
...
@@ -510,20 +510,19 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
p_spu
->
b_ephemer
=
VLC_TRUE
;
/* where to locate the string: */
if
(
p_sys
->
i_xoff
<
0
||
p_sys
->
i_yoff
<
0
)
if
(
p_sys
->
i_pos
<
0
)
{
/* set to an absolute xy */
p_spu
->
p_region
->
i_align
=
OSD_ALIGN_LEFT
|
OSD_ALIGN_TOP
;
p_spu
->
b_absolute
=
VLC_TRUE
;
}
else
{
/* set to one of the 9 relative locations */
p_spu
->
p_region
->
i_align
=
p_sys
->
i_pos
;
p_spu
->
i_x
=
0
;
p_spu
->
i_y
=
0
;
p_spu
->
b_absolute
=
VLC_FALSE
;
}
else
{
/* set to an absolute xy, referenced to upper left corner */
p_spu
->
p_region
->
i_align
=
OSD_ALIGN_LEFT
|
OSD_ALIGN_TOP
;
p_spu
->
i_x
=
p_sys
->
i_xoff
;
p_spu
->
i_y
=
p_sys
->
i_yoff
;
p_spu
->
b_absolute
=
VLC_TRUE
;
}
p_spu
->
i_x
=
p_sys
->
i_xoff
;
p_spu
->
i_y
=
p_sys
->
i_yoff
;
p_spu
->
i_height
=
1
;
p_spu
->
p_region
->
p_style
=
p_sys
->
p_style
;
...
...
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