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
c34b5ca5
Commit
c34b5ca5
authored
Jan 19, 2010
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mozilla plugin: Bring marquee interface in line with logo.
parent
2f05ac6c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
196 additions
and
245 deletions
+196
-245
projects/mozilla/control/npolibvlc.cpp
projects/mozilla/control/npolibvlc.cpp
+133
-236
projects/mozilla/control/position.h
projects/mozilla/control/position.h
+54
-0
projects/mozilla/test.html
projects/mozilla/test.html
+9
-9
No files found.
projects/mozilla/control/npolibvlc.cpp
View file @
c34b5ca5
This diff is collapsed.
Click to expand it.
projects/mozilla/control/position.h
0 → 100644
View file @
c34b5ca5
/*****************************************************************************
* position.h: Support routines for logo and marquee plugin objects
*****************************************************************************
* Copyright (C) 2010 M2X BV
*
* Authors: JP Dinger <jpd (at) videolan (dot) org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef POSITION_H
#define POSITION_H
struct
posidx_s
{
const
char
*
n
;
size_t
i
;
};
static
const
posidx_s
posidx
[]
=
{
{
"center"
,
0
},
{
"left"
,
1
},
{
"right"
,
2
},
{
"top"
,
4
},
{
"bottom"
,
8
},
{
"top-left"
,
5
},
{
"top-right"
,
6
},
{
"bottom-left"
,
9
},
{
"bottom-right"
,
10
},
};
enum
{
num_posidx
=
sizeof
(
posidx
)
/
sizeof
(
*
posidx
)
};
static
inline
const
char
*
position_bynumber
(
size_t
i
)
{
for
(
const
posidx_s
*
h
=
posidx
;
h
<
posidx
+
num_posidx
;
++
h
)
if
(
h
->
i
==
i
)
return
h
->
n
;
return
"undefined"
;
}
static
inline
bool
position_byname
(
const
char
*
n
,
size_t
&
i
)
{
for
(
const
posidx_s
*
h
=
posidx
;
h
<
posidx
+
num_posidx
;
++
h
)
if
(
!
strcasecmp
(
n
,
h
->
n
)
)
{
i
=
h
->
i
;
return
true
;
}
return
false
;
}
#endif
projects/mozilla/test.html
View file @
c34b5ca5
...
...
@@ -761,23 +761,23 @@ function doMarqueeOption(option, value)
if( vlc )
{
if (option == 1)
vlc.video.marquee.color
(val)
;
vlc.video.marquee.color
= val
;
if (option == 2)
vlc.video.marquee.opacity
(val)
;
vlc.video.marquee.opacity
= val
;
if (option == 3)
vlc.video.marquee.position
(val)
;
vlc.video.marquee.position
= value
;
if (option == 4)
vlc.video.marquee.refresh
(val)
;
vlc.video.marquee.refresh
= val
;
if (option == 5)
vlc.video.marquee.size
(val)
;
vlc.video.marquee.size
= val
;
if (option == 6)
vlc.video.marquee.text
(value)
;
vlc.video.marquee.text
= value
;
if (option == 7)
vlc.video.marquee.timeout
(val)
;
vlc.video.marquee.timeout
= val
;
if (option == 8)
vlc.video.marquee.x
(val)
;
vlc.video.marquee.x
= val
;
if (option == 9)
vlc.video.marquee.y
(val)
;
vlc.video.marquee.y
= val
;
}
}
...
...
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